~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/networking/bareudp.rst

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 .. SPDX-License-Identifier: GPL-2.0
  2 
  3 ========================================
  4 Bare UDP Tunnelling Module Documentation
  5 ========================================
  6 
  7 There are various L3 encapsulation standards using UDP being discussed to
  8 leverage the UDP based load balancing capability of different networks.
  9 MPLSoUDP (__ https://tools.ietf.org/html/rfc7510) is one among them.
 10 
 11 The Bareudp tunnel module provides a generic L3 encapsulation support for
 12 tunnelling different L3 protocols like MPLS, IP, NSH etc. inside a UDP tunnel.
 13 
 14 Special Handling
 15 ----------------
 16 The bareudp device supports special handling for MPLS & IP as they can have
 17 multiple ethertypes.
 18 MPLS procotcol can have ethertypes ETH_P_MPLS_UC  (unicast) & ETH_P_MPLS_MC (multicast).
 19 IP protocol can have ethertypes ETH_P_IP (v4) & ETH_P_IPV6 (v6).
 20 This special handling can be enabled only for ethertypes ETH_P_IP & ETH_P_MPLS_UC
 21 with a flag called multiproto mode.
 22 
 23 Usage
 24 ------
 25 
 26 1) Device creation & deletion
 27 
 28     a) ip link add dev bareudp0 type bareudp dstport 6635 ethertype mpls_uc
 29 
 30        This creates a bareudp tunnel device which tunnels L3 traffic with ethertype
 31        0x8847 (MPLS traffic). The destination port of the UDP header will be set to
 32        6635.The device will listen on UDP port 6635 to receive traffic.
 33 
 34     b) ip link delete bareudp0
 35 
 36 2) Device creation with multiproto mode enabled
 37 
 38 The multiproto mode allows bareudp tunnels to handle several protocols of the
 39 same family. It is currently only available for IP and MPLS. This mode has to
 40 be enabled explicitly with the "multiproto" flag.
 41 
 42     a) ip link add dev bareudp0 type bareudp dstport 6635 ethertype ipv4 multiproto
 43 
 44        For an IPv4 tunnel the multiproto mode allows the tunnel to also handle
 45        IPv6.
 46 
 47     b) ip link add dev bareudp0 type bareudp dstport 6635 ethertype mpls_uc multiproto
 48 
 49        For MPLS, the multiproto mode allows the tunnel to handle both unicast
 50        and multicast MPLS packets.
 51 
 52 3) Device Usage
 53 
 54 The bareudp device could be used along with OVS or flower filter in TC.
 55 The OVS or TC flower layer must set the tunnel information in SKB dst field before
 56 sending packet buffer to the bareudp device for transmission. On reception the
 57 bareudp device extracts and stores the tunnel information in SKB dst field before
 58 passing the packet buffer to the network stack.

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php