X-over-Y tunnel signaling and configuration and use of configured X-over-Y tunnels
By receiving and processing tunnel type and attribute information on network devices, automatically programming the decapsulator, and carrying relevant TLVs in BGP update messages, the problem of insufficient flexibility in MPLS-in-UDP technology is solved and multiple service types are realized. Encapsulation and decapsulation improve network operators’ configuration and management capabilities.
Patent Information
- Application Number
- CN202311131304.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-06-13
- Filing Date
- 2023-09-04
- Publication Date
- 2024-09-24
Smart Images

Figure CN118694629A_ABST
Abstract
Description
[0001] Related Applications
[0002] This application claims the benefit of U.S. Provisional Application No. 63 / 454,606 (referred to as the "'606 Provisional Application" and incorporated herein by reference), filed on March 24, 2023, entitled "X-Over UDP Tunnel Signaling using BGP" and listing Satya Praveen Kumar Pasalapudi and Kaliraj Vairavakkalai as inventors. The scope of the invention is not limited to any claims of the specific embodiments in the '606 Provisional Application. Technical Field
[0003] The present invention relates to communication networks. In particular, the present invention relates to establishing and using tunnels within a communication network. Background Art
[0004] Tunneling provides a private, secure path through an otherwise public network by encapsulating arbitrary packets in a transport protocol. Tunnels can be used to connect discontiguous subnetworks and enable encrypted interfaces, virtual private networks (VPNs), and multiprotocol label switching (MPLS).
[0005] As an example, Xu, X., Sheth, N., Yong, L., Callon, R., and D. Black, "Encapsulating MPLS in UDP", Request for Comments (RFC) 7510 (Internet Engineering Task Force (IETF), April 2015) (referred to as "RFC 7510", and incorporated herein by reference) specifies an IP-based encapsulation for MPLS, called MPLS-in-UDP, for use in situations where UDP (User Datagram Protocol) encapsulation is preferred over direct use of MPLS, for example, to implement UDP-based ECMP (Equal Cost Multi-Path) or link aggregation. Unfortunately, however, RFC 7510 is limited to a specific, predefined UDP destination port (i.e., 6635) assigned by the Internet Assigned Numbers Authority (IANA) to indicate that the UDP tunnel payload is an MPLS packet.
[0006] It would be useful to allow network operators and administrators the flexibility to encapsulate any protocol or traffic type (X) in a tunnel, such as a UDP tunnel. It would be particularly useful to allow network operators and administrators to easily configure routers at the ingress and / or egress of such tunnels to encapsulate and / or decapsulate different types of traffic, especially on an ad-hoc basis within a network under their control (e.g., without the need for fixed values assigned by AINA). Summary of the invention
[0007] An example method for use on a network device can be used to allow network operators and administrators the flexibility to encapsulate any protocol or traffic type (X) in a tunnel by, for example, (a) receiving information by a network device, the information including (1) the type of tunnel to be established, (2) attributes of the tunnel to be established, and (3) an association of the attributes of the tunnel to be established with one of a plurality of different traffic types; (b) determining whether the network device is an egress of the tunnel to be established; and (c) in response to determining that the network device is at the egress of the tunnel to be established, automatically programming a decapsulator on the network device and associating the decapsulator with the attributes of the tunnel to be established (e.g., a destination port), processing packets received at the destination port of the (e.g., UDP) tunnel to be established according to the traffic type, and otherwise, in response to determining that the network device is not the egress of the tunnel to be established, setting a forwarding state to send the traffic type.
[0008] In some example implementations of example methods consistent with the present specification, the received information originates from a central controller.
[0009] In some example implementations of example methods consistent with the present specification, the network device is an ingress to a tunnel to be established, and the received information originates from an egress to the tunnel to be established.
[0010] In some example implementations of example methods consistent with the present specification, the attribute of the tunnel to be established is a destination port of the tunnel to be established.
[0011] In some example implementations of example methods consistent with the present specification, the tunnel to be established is a UDP tunnel, and the attribute of the tunnel to be established is a UDP destination port.
[0012] In some example implementations of example methods consistent with the present specification, information received by the network device is carried in a BGP update message as a path characteristic. For example, the information received by the network device may be carried in a tunnel encapsulation characteristic TLV. In such an example implementation, the tunnel encapsulation characteristic TLV may include a tunnel destination port sub-TLV having a value specifying one of a plurality of different service types via the received association. The tunnel encapsulation characteristic TLV may include a tunnel encapsulation protocol sub-TLV having a value uniquely corresponding to and associated with one of a plurality of different service types.
[0013] In some example implementations of example methods consistent with the present specification, more than one tunnel may be established, and / or a given tunnel may carry more than one traffic type (e.g., corresponding to different UDP destination port values). Such example implementations may also include: (d) receiving, by the network device, another information including (1) a type of a second (e.g., UDP) tunnel to be established, (2) attributes of the second (e.g., UDP) tunnel to be established, and (3) an association of the attributes of the second tunnel to be established with a different one of a plurality of different traffic types to be carried by the second tunnel to be established; (e) determining whether the network device is an egress of the second tunnel to be established; and (f) in response to determining that the network device is an egress of the second tunnel to be established, automatically programming a second decapsulator on the network device associated with the (e.g., UDP) destination port to process packets received on the destination port of the second (e.g., UDP) tunnel to be established according to different traffic types, and otherwise, in response to determining that the network device is not an egress of the second tunnel to be established, setting a forwarding state to send a different traffic type.
[0014] Once the tunnel is established, some example implementations of the example methods consistent with the present specification may also include: (d) receiving a packet on a device at the destination of the (e.g., UDP) tunnel; (e) decapsulating the received packet using a decapsulator to generate a decapsulated packet; (f) determining whether the decapsulated packet conforms to one of a plurality of selected service types; and (g) in response to determining that the decapsulated packet does not conform to one of a plurality of selected different service types, discarding the decapsulated packet, and otherwise, in response to determining that the decapsulated packet conforms to one of a plurality of selected different service types, processing the decapsulated packet according to one of the plurality of selected different service types.
[0015] In some example implementations of example methods consistent with the present specification, a central controller or an egress device of a tunnel may advertise information for establishing an X-in-Y tunnel, where X is a traffic type and Y is a tunnel type. Such an example method may include: (a) receiving an identifier of one of a plurality of traffic types, one of the plurality of traffic types to be carried on a tunnel to be established; (b) determining a tunnel destination port value using (1) the received identifier of the traffic type and (2) a stored association of the traffic type with the tunnel destination port value; (c) generating a message including (1) information about the tunnel to be established and (2) the determined tunnel destination port value; and (d) sending the generated message for receipt by at least one of (A) a first device at an ingress of the tunnel to be established and / or (B) a second device at an egress of the tunnel to be established, wherein both the first device and the second device are in a communication network.
[0016] The example method(s) may be implemented on a network device(s), such as one or more routers. The network device may be a device at the entrance of a tunnel(s). Otherwise, the network device may be a device at the exit of a tunnel(s). A non-transitory computer-readable medium may be used to store processor-executable instructions for performing any example method consistent with this specification. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a flow chart of an example computer-implemented method performed by a network device at a tunnel entrance, a tunnel exit, and / or by a transit device within a tunnel according to the present specification.
[0018] Figure 2 An example data structure in an example implementation is shown in which the tunnel is a UDP tunnel and in which the attribute of the tunnel used to distinguish different traffic types is the destination port.
[0019] Figure 3A and 3B The data plane processing of messages of different traffic types at the ingress and egress of the UPD tunnel is shown.
[0020] Figure 4 Two data forwarding systems are shown that may be used as nodes coupled via communication links in a communication network, such as a communication network employing X-over-Y tunneling.
[0021] Figure 5 is a block diagram of a router that may be used in a communication network, such as a communication network that employs X-over-Y tunneling.
[0022] Figure 6is an example architecture in which ASICS may be distributed among packet forwarding components to divide packet forwarding responsibilities.
[0023] Fig. 7A and 7B yes Figure 6 An example of the operation of the sample schema.
[0024] Figure 8 is a flow chart of an example method for providing packet forwarding in an example router.
[0025] Fig. 9 is a block diagram of an exemplary machine that can perform one or more of the processes described and / or store information used and / or generated by such processes. DETAILED DESCRIPTION
[0026] The present disclosure may relate to novel methods, devices, message formats and / or data structures to allow network operators and administrators to flexibly encapsulate any protocol or service type (X) in a tunnel, such as a UDP tunnel. The present disclosure may relate to novel methods, devices, message formats and / or data structures to allow network operators and administrators to easily configure routers at the entrance and / or exit of such tunnels to encapsulate and / or decapsulate different types of services, especially on the basis of self-organization within the network under their control (e.g., fixed values assigned by AINA are not required). The following description is proposed to enable those skilled in the art to make and use the described embodiments, and is provided in the context of specific applications and their requirements. Therefore, the following description of the example embodiments provides an explanation and description, but is not intended to be exhaustive or to limit the present disclosure to the precise form disclosed. Various modifications to the disclosed embodiments will be apparent to those skilled in the art, and the general principles set forth below may be applied to other embodiments and applications. For example, although a series of actions may be described with reference to a flow chart, the order of actions may be different in other implementations when the execution of an action does not depend on the completion of another action. In addition, non-dependent actions may be executed in parallel. Unless explicitly described, any element, act or instruction used in the specification should not be interpreted as essential or necessary to the specification. In addition, as used herein, the article "a" is intended to include one or more items. If only one item is intended, the term "one" or similar language is used. Therefore, the present disclosure is not intended to be limited to the illustrated embodiments, and the inventors regard their invention as any patentable subject matter described.
[0027] §1(s) Example Methods
[0028] Figure 1The present invention is a flowchart of an example computer-implemented method consistent with the present specification, which is to be performed on a network device, and is specifically performed by a network device at a tunnel entrance, a network device at a tunnel exit, and / or a transit device within a tunnel. The present invention describes control plane processing for configuring a device for establishing a tunnel, and data plane processing for forwarding packets through a tunnel.
[0029] Still reference Figure 1 , executing different branches of the example method 100 in response to the occurrence of different events. (Event Condition 105) For example, in response to receiving tunnel configuration information (e.g., from a central controller, via a user interface, from a tunnel egress device, etc.), the leftmost branch of the example method 100 is executed. More specifically, in response to receiving the tunnel configuration information, the example method 100 receives information including (1) the type of (e.g., UDP) tunnel to be established, (2) attributes of the (e.g., UDP) tunnel to be established (e.g., destination port value), and (3) an association of the attributes of the tunnel to be established with one of a plurality of different protocol / traffic types (e.g., IPv4, IPv6, MPLS, SR, etc.). (Block 110) Determine whether the network device is an egress of the (e.g., UDP) tunnel to be established. (Block 115) In response to determining that the network device is at the egress of the tunnel to be established (decision 120=yes), the example method 100 automatically programs a decapsulator on the network device and associates the decapsulator with the attributes of the tunnel to be established (e.g., UDP destination port) to process packets received on the destination port of the (e.g., UDP) tunnel to be established according to the traffic type. (Block 130) Otherwise, in response to determining that the network device is not the egress of the tunnel to be established (decision 120=no), the example method 100 sets the forwarding state to send the traffic type. (Block 125) Setting the forwarding state may include setting the encapsulator.
[0030] If the network device executing the example method 100 is at the ingress of the tunnel to be established, the received information may originate from the egress of the tunnel to be established. Alternatively, the received information may originate from a central controller.
[0031] In some example implementations of the example method, the attribute of the tunnel to be established is the destination port of the tunnel to be established. For example, if the tunnel to be established is a UDP tunnel, the attribute of the tunnel to be established may be the UDP destination port.
[0032] In some example implementations of the example method 100, tunnel configuration information received by the network device is carried as a path characteristic in a Border Gateway Protocol (BGP) update message. For example, the information received by the network device can be carried in a tunnel encapsulation attribute (TEA) type-length value (TLV). In such an implementation, the tunnel encapsulation attribute (TEA) TLV can include a tunnel destination port sub-TLV, the tunnel destination port sub-TLV having a value that specifies one of a plurality of different service types via a received association, and / or the tunnel encapsulation attribute (TEA) TLV can include a tunnel encapsulation protocol sub-TLV, the tunnel encapsulation protocol sub-TLV having a value that uniquely corresponds to and is associated with one of the plurality of different service types. Note that a BGP update message can include more than one association, each association associating a particular service type with a particular destination port value.
[0033] refer to Figure 1 The right branch of the example method 100 can be executed in response to receiving a packet, depending on whether the example method 100 is executed by a network device at the entrance of the tunnel, a network device at the exit of the tunnel, or a transit network device in the tunnel. First, assume that the example method 100 is being executed by a network device at the entrance of the tunnel. (Decision 150 = entrance) In this case, the example method 100 encapsulates the received packet using a header having a tunnel attribute (e.g., a destination port) value set to a unique value associated with one of a plurality of different traffic types, thereby generating an encapsulated packet. (Box 140) The example method 100 then sends the encapsulated packet. (Box 145) On the other hand, assume that the example method 100 is being executed by a transit network device on the tunnel. (Decision 150 = transit) In this case, the example method 100 sends the encapsulated packet. (Box 145)
[0034] Finally, assume that the example method 100 is being performed by a network device at a tunnel egress. (Decision 150 = egress) In this case, the example method 100 receives an encapsulated packet (box 155), decapsulates the received packet using a previously programmed decapsulator (reviewing box 130) to generate a decapsulated packet (box 160), and determines whether the decapsulated packet conforms to one of a plurality of traffic types corresponding to the decapsulator (box 165). In response to determining that the decapsulated packet conforms to one of a selected plurality of different traffic types (Decision 170 = yes), the example method 100 processes the decapsulated packet according to one of the selected plurality of different traffic types. (box 175) On the other hand, in response to determining that the decapsulated packet does not conform to one of the selected plurality of different traffic types (Decision 170 = no), the example method 100 discards the decapsulated packet. (box 180)
[0035] §2 Example data structure
[0036] Figure 2 An example data structure 200 is shown in an example implementation in which the tunnel is a UDP tunnel and in which the attribute of the tunnel used to distinguish different traffic types is the destination port.
[0037] §2.1 UDP source port
[0038] Field 210 may be used to carry a 16-bit entropy value generated by the encapsulator to uniquely identify the flow. The flow is determined locally by the encapsulator. The algorithm for generating the entropy value may be a known or proprietary algorithm. If the tunnel does not require entropy, this field for all packets belonging to a given flow should be set to a (e.g., randomly selected) constant value to avoid packet reordering. The source port number carried in this field 210 is in the range of 49512 to 65535 (to avoid using IANA reserved port numbers assigned for specific applications / protocols (or reserved for future assignment)).
[0039] §2.2 UDP destination port
[0040] Field 220 is set to a configuration value defined by the network operator. The network operator should assign a port number based on the encapsulated protocol / traffic type (X), which can be processed after UDP decapsulation. The value carried in the destination port field 220 is used to map the UDP tunnel payload protocol / traffic type. The destination port number carried in field 220 is in the range of 49512 to 65535 (to avoid using IANA reserved port numbers that are allocated (or reserved for further allocation) for specific applications / protocols).
[0041] §2.3 UDP length
[0042] The use of the UPD length field 230 is consistent with current UDP specifications. (See, for example, Postel, J. et al., "User Datagram Protocol," Request for Comments (RFC) 768 (Internet Engineering Task Force (IETF), STD 6, RFC 768, August 1980) (referred to as "RFC 768" and incorporated herein by reference).
[0043] §2.4 UDP Checksum
[0044] The use of field 240 depends on the protocol encapsulated in UDP. For IPv4 UDP encapsulation, it is recommended to set this field to zero because the IPv4 header includes a checksum and the use of the UDP checksum is optional for IPv4. For IPv6 UDP encapsulation, the IPv6 header does not include a checksum, so this field should (and in some example implementations, must) contain a UDP checksum, which should (and in some example implementations, must) be used as specified in RFC 768 and S. Deering et al., "Internet Protocol, Version 6 (IPv6) Specification", Request for Comments (RFC): 2460 (Internet Engineering Task Force (IETF), December 1998) (referred to as "RFC 2460" and incorporated herein by reference), unless one of the exceptions allowing the use of UDP zero checksum mode applies (as specified in M. Eubanks et al., "IPv6 and UDP Checksums for Tunneled Packet"), Request for Comments (RFC): 6935 (Internet Engineering Task Force (IETF), April 2013) (referred to as "RFC 6935" and incorporated herein by reference).
[0045] §2.5 Proto X Header
[0046] Portion 250 of the example data structure 200 is the protocol / traffic type header of a packet encapsulated in UDP.
[0047] §2.6 Message Body
[0048] Portion 260 of the example data structure 200 contains the message body.
[0049] §3(Multiple) Operation Examples
[0050] Figure 3A and 3BThe data plane processing of messages of different business types at the entrance and exit of the UDP tunnel is shown. The UDP tunnel 310 is defined by a tunnel entrance device 320 and a tunnel exit device 330. There may be zero or more transit devices (not shown) on the UDP tunnel 310 between the tunnel entrance device 320 and the tunnel exit device 330. The tunnel entrance device 320 includes, among other things, an encapsulator 322 and an associated storage device or memory 324 storing one or more protocols / business types (e.g., IPv4, IPv6, MPLS, SR, etc.) and UDP destination port numbers. The tunnel exit device 330 includes, among other things, a decapsulator selector 332, an associated storage device or memory 334 storing one or more UDP destination port numbers and protocol / business types to be decapsulated, and one or more decapsulators 336. As understood, this example assumes that the forwarding state has been programmed on the tunnel entrance device 320, and that one or more decapsulators 336 have been programmed on the tunnel exit device 330. Please note that in this example, the UDP destination port number is represented by lowercase letters (q, r, s, ...) for simplicity of explanation. The value of the destination port number should be in the range of 49512 to 65535.
[0051] First reference Figure 3A , message 340 with a traffic type "X" header arrives at tunnel entry device 320. Encapsulator 322 uses the traffic type header to look up the corresponding UDP destination port number. In this example, UDP destination port number "q" is associated with traffic type "X". Message 350 output from tunnel entry device 320 corresponds to original message 340 encapsulated with a UDP header, where the UDP destination port value is set to "q". (Recall, for example, Figure 1 140). (Note that an entropy value may be provided for the UDP source port (although this is not required), and other UDP header fields may be populated, as described above.) Message 350 may be forwarded on zero or more relay devices (not shown) on UDP tunnel 310. (Recall, e.g. Figure 1 ) When the message arrives at the tunnel egress device 330, the decapsulator selector 332 uses the UDP destination port value "q" to look up the traffic type to be decapsulated (in this case, "X") and selects the appropriate decapsulator 336 to decapsulate the traffic type "X". The decapsulated message body 360 is output from the tunnel egress device 330. (Recall, e.g. Figure 1 160, 165 and 175 of FIG. )
[0052] Next reference Figure 3B, message 340' with a traffic type "Z" header arrives at tunnel entry device 320. Encapsulator 322 uses the traffic type header to look up the corresponding UDP destination port number. In this example, UDP destination port number "s" is associated with traffic type "Z". Message 350' output from tunnel entry device 320 corresponds to original message 340' encapsulated with a UDP header in which the UDP destination port value is set to "s". (Recall, for example, Figure 1 140). (Note that an entropy value may be provided for the UDP source port (although this is not required), and other UDP header fields may be populated, as described above.) Message 350' may be forwarded on zero or more relay devices (not shown) on UDP tunnel 310. (Recall, e.g. Figure 1 145). When the message arrives at the tunnel egress device 330, the decapsulator selector 332 uses the UDP destination port value "s" to find the traffic type to be decapsulated (in this case, "Z") and selects the appropriate decapsulator 336 to decapsulate the traffic type "Z". The decapsulated message body 360' is output from the tunnel egress device 330. (Recall, for example, Figure 1 160, 165 and 175 of FIG. )
[0053] Note that a network operator or administrator may specifically associate different protocols / traffic types with different UDP destination ports as desired, without the need to register with an authority such as AINA.
[0054] The encapsulator 322 at the tunnel ingress device 320 should discard packets that are different from the encapsulation protocol / traffic type. (Recall e.g. Figure 1 The source UDP port may be generated based on an entropy calculation algorithm at the source.
[0055] If the data field (UDP data) publishing UDP header does not match the protocol header (X) definition to which the destination port is mapped, each decapsulator 336 (or more specifically, decapsulator selector 332) at the tunnel egress device 330 should discard the packet.
[0056] §4 Example device
[0057] The data communication network device implementing the exemplary method 100 may be a forwarding device, such as a router. Figure 4Two data forwarding systems 410 and 420 are shown coupled via a communication link 430. These links can be physical links or "wireless" links. The data forwarding systems 410, 420 can be, for example, routers. If the data forwarding systems 410, 420 are example routers, each router can include a control component (e.g., a routing engine) 414, 424 and a forwarding component 412, 422. Each data forwarding system 410, 420 includes one or more interfaces 416, 426 that terminate one or more communication links 430.
[0058] As mentioned above, and with reference to Figure 5 , some example routers 500 include a control component (eg, routing engine) 510 and a packet forwarding component (eg, packet forwarding engine) 590 .
[0059] The control component 510 may include an operating system (OS) kernel 520, (multiple) routing protocol processes 530, (multiple) label-based forwarding protocol processes 540, (multiple) interface processes 550, (multiple) user interface (e.g., command line interface) processes 560, and (multiple) chassis processes 570, and may store (multiple) routing tables 539, label forwarding information 545, and (multiple) forwarding (e.g., route-based and / or label-based) tables 580. As shown, routing protocol process(es) 530 may support routing protocols such as Routing Information Protocol (“RIP”) 531, Intermediate System to Intermediate System Protocol (“IS-IS”) 532, Open Shortest Path First (“OSPF”) 533, Enhanced Interior Gateway Routing Protocol (“EIGRP”) 534, and Border Gateway Protocol (“BGP”) 535, and label-based forwarding protocol process(es) 540 may support protocols such as BGP 535, Label Distribution Protocol (“LDP”) 536, Resource Reservation Protocol (“RSVP”) 537, EVPN 538, and L2VPN 539. One or more components (not shown) may allow a user 565 to interact with user interface process(es) 560. Similarly, one or more components (not shown) may allow external devices to interact with one or more of the router protocol process(es) 530, label-based forwarding protocol process(es) 540, interface process(es) 550, and chassis process(es) 570 via SNMP 585, and such processes may send information to the external devices via SNMP 585.
[0060] The packet forwarding component 590 may include a microkernel 592 on hardware components (e.g., ASICs, switch fabrics, optical fibers, etc.) 591, (multiple) interface processes 593, ASIC drivers 594, (multiple) chassis processes 595, and (multiple) forwarding (e.g., route-based and / or label-based) tables 596.
[0061] exist Figure 5 In the example router 500, the control component 510 handles tasks such as executing routing protocols, executing label-based forwarding protocols, and controlling packet processing, which frees up the packet forwarding component 590 to quickly forward received packets. That is, the received control packets (e.g., routing protocol packets and / or label-based forwarding protocol packets) are not fully processed on the packet forwarding component 590 itself, but are passed to the control component 510, thereby reducing the workload that the packet forwarding component 590 must do and freeing it to process packets to be efficiently forwarded. Therefore, the control component 510 is primarily responsible for running routing protocols and / or label-based forwarding protocols, maintaining routing tables and / or label forwarding information, sending forwarding table updates to the packet forwarding component 590, and performing system management. The example control component 510 can process routing protocol packets, provide management interfaces, provide configuration management, perform accounting, and provide alarms. Processes 530, 540, 550, 560, and 570 can be modular and can interact with the OS kernel 520. That is, almost all processes communicate directly with the OS kernel 520. Using modular software that completely separates a process from other processes allows you to isolate problems with a given process so that such problems do not affect other processes that may be running. In addition, using modular software helps it scale more easily.
[0062] Still reference Figure 5 , the example OS kernel 520 can incorporate an application programming interface ("API") system for external program calls and scripting capabilities. The control component 510 can be based on an Intel PCI platform that runs an OS from flash memory, with a backup copy stored on the router's hard drive. The OS kernel 520 sits on the Intel PCI platform and establishes communications between the Intel PCI platform and the processes of the control component 510. The OS kernel 520 also ensures that the forwarding tables 596 used by the packet forwarding component 590 are synchronized with those 580 in the control component 510. Therefore, in addition to providing the underlying infrastructure to the control component 510 software process, the OS kernel 520 also provides a link between the control component 510 and the packet forwarding component 590.
[0063] refer to Figure 5(multiple) routing protocol processes 530, which provide routing and routing control functions within the platform. In this example, RIP 531, ISIS 532, OSPF 533 and EIGRP 534 (and BGP 535) protocols are provided. Of course, other routing protocols can be provided in addition or alternatively. Similarly, (multiple) label-based forwarding protocol processes 540 provide label forwarding and label control functions. In this example, LDP 536, RSVP 537, EVPN 538 and L2VPN 539 (and BGP 535) protocols are provided. Of course, other label-based forwarding protocols (e.g., MPLS, SR, etc.) can be provided in addition or alternatively. In the example router 500, (multiple) routing tables 539 are generated by (multiple) routing protocol processes 530, and label forwarding information 545 is generated by (multiple) label-based forwarding protocol processes 540.
[0064] Still reference Figure 5 , interface process(es) 550 perform configuration and encapsulation of the physical interface.
[0065] Example control component 510 can provide several ways to manage the router. For example, it 510 can provide (multiple) user interface processes 560, which allow system operators 565 to interact with the system through configuration, modification and monitoring. SNMP 585 allows systems that support SNMP to communicate with the router platform. This also allows the platform to provide necessary SNMP information to external agents. For example, SNMP 585 can allow the system to be managed through a framework such as HP's OpenView from a network management station running software, such as HP's Network Node Manager ("HP-NNM"). Accounting for packets (commonly referred to as business statistics) can be performed by control component 510 to avoid slowing down business forwarding performed by packet forwarding component 590.
[0066] Although not shown, the example router 500 can provide out-of-band management, RS-232DB9 ports for serial console and remote management access, and third-level storage using removable PC cards. In addition, although not shown, the process interface located in the front of the chassis provides an external view of the internal workings of the router. It can be used as a troubleshooting tool, a monitoring tool, or both. The process interface can include LED indicators, alarm indicators, control component ports, and / or display screens. Finally, the process interface can provide interaction with a command line interface ("CLI") 560 via a console port, an auxiliary port, and / or a management Ethernet port.
[0067] The packet forwarding component 590 is responsible for outputting received packets correctly and as quickly as possible. If there is no entry in the forwarding table for a given destination or a given label, and the packet forwarding component 590 itself cannot perform forwarding, the packet forwarding component 590 can send packets destined for the unknown destination to the control component 510 for processing. The example packet forwarding component 590 is designed to perform layer 2 and layer 3 switching, route lookup, and fast packet forwarding.
[0068] like Figure 5 As shown, the example packet forwarding component 590 has an embedded microkernel 592 on a hardware component 591, (multiple) interface processes 593, ASIC drivers 594, and (multiple) chassis processes 595, and stores (multiple) forwarding (e.g., route-based and / or label-based) tables 596. The microkernel 592 interacts with the (multiple) interface processes 593 and (multiple) chassis processes 595 to monitor and control these functions. The (multiple) interface processes 592 communicate directly with the OS kernel 520 of the control component 510. This communication includes forwarding exception packets and control packets to the control component 510, receiving packets to be forwarded, receiving forwarding table updates, providing information about the health of the packet forwarding component 590 to the control component 510, and allowing the interface to be configured from the (multiple) user interface (e.g., CLI) processes 560 of the control component 510. The stored (multiple) forwarding tables 596 are static until a new forwarding table is received from the control component 510. Interface process(es) 593 use forwarding table(s) 596 to look up next hop information. Interface process(es) 593 also communicate directly with distributed ASICs. Finally, chassis process(es) 595 can communicate directly with microkernel 592 and ASIC driver 594.
[0069] Figure 6 is an example of how to distribute ASICs in packet forwarding component 590 to divide packet forwarding responsibilities. Figure 6 As shown, the ASICs of the packet forwarding component 590 may be distributed across a physical interface card ("PIC") 610, a flexible PIC hub ("FPC") 620, a midplane or backplane 630, and (multiple) system control boards 640 (for switching and / or forwarding). The switching fabric is also shown as a system switch board ("SSB") or switching and forwarding module ("SFM") 650 (which may be Fig. 7A and 7B Each PIC 610 includes one or more PIC I / O managers 615. Each FPC 620 includes one or more I / O managers 622, each of which has an associated memory 624 (which may be, for example, Fig. 7A and 7BThe midplane / backplane 630 includes buffer managers 635a, 635b. Finally, the system control board 640 includes an instance of an Internet processor 642 and a forwarding table 644 (recall, for example, Figure 5 of 596).
[0070] Still reference Figure 6 , PIC 610 includes interface ports. Each PIC 610 can be plugged into FPC 620. Each individual PIC 610 can include an ASIC that handles media-specific functions such as framing or encapsulation. Some example PIC 610s provide SDH / SONET, ATM, Gigabit Ethernet, Fast Ethernet, and / or DS3 / E3 interface ports.
[0071] FPC 620 may include one or more PICs 610 and may transmit signals from PIC 610 to midplane / backplane 630, such as Figure 6 shown.
[0072] Midplane / backplane 630 holds line cards. When plugged into the chassis of the example router from the front, the line cards can be connected to midplane / backplane 630. Control components (e.g., routing engines) 510 can be plugged into the back of midplane / backplane 630 from the back of the chassis. Midplane / backplane 630 can transmit electrical (or optical) signals and power to each line card and control component 510.
[0073] The system control board 640 can perform forwarding lookups. It can also transmit errors to the routing engine. In addition, it can monitor the status of the router based on the information it receives from the sensors. If an abnormal situation is detected, the system control board 640 can immediately notify the control component 510.
[0074] refer to Figure 6 , Fig. 7A and Figure 7BIn some example routers, each PIC 610, 610' contains at least one I / O manager ASIC 615 responsible for media-specific tasks such as encapsulation. Packets pass through these I / O ASICs on their way into and out of the router. The I / O manager ASIC 615 on the PIC 610, 610' is responsible for managing the connection to the I / O manager ASIC 622 on the FPC 620, 620', managing link layer framing and creating bit streams, performing cyclic redundancy checks (CRCs), and detecting link layer errors and generating alarms when appropriate. The FPC 620 includes another I / O manager ASIC 622. This ASIC 622 (shown as layer 2 / layer 3 packet processing component 610' / 620') takes packets from the PIC 610 and divides them into (e.g., 74-byte) storage blocks. The FPC I / O Manager ASIC 622 (shown as a Layer 2 / Layer 3 Packet Processing Component 610' / 620') sends the block to a first Distributed Buffer Manager (DBM) 935a (shown as a Switch Interface Component 635a'), decodes the encapsulation and protocol specific information, counts packets and bytes per logic circuit, verifies packet integrity, and applies Class of Service (CoS) rules to the packet. At this point, the packet is first written to memory. More specifically, the example DBM ASIC 635 / 635a' manages the packet across all FPCs 620 and writes the packet to a shared memory 624. In parallel, the first DBM ASIC 635 / 635a' also extracts information about the packet's destination and passes the forwarding related information to an Internet Processor 642 / 642'. The Internet Processor 642 / 642' performs a routing lookup using a forwarding table 644 and sends the information to a second DBM ASIC 635b'. The internet processor ASIC 642 / 642' also collects the exception packets (i.e., those packets that do not have a forwarding table entry) and sends them to the control component 510. The second DBM ASIC 625 (shown as a queuing and memory interface component 635b') then takes this information and the 74-byte blocks and forwards them to the I / O Manager ASIC 622 of the egress FPC 620 / 620' (or in the case of multicast, multiple egress FPCs) for reassembly. (Thus, the DBM ASICs 635a / 635a' and 635b / 635b' are responsible for managing the packet memories 624 / 624' distributed across all FPCs 620 / 620', extracting forwarding related information from the packets, and instructing the FPCs where to forward the packets.)
[0075] The I / O Manager ASIC 622 on the egress FPC 620 / 620' may perform some value added services. In addition to incrementing the Time To Live ("TTL") value and re-encapsulating the packet for processing by the PIC 610, it may also apply Class of Service (CoS) rules. To do this, it may queue a pointer to the packet in one of the available queues, each of which has a share of the link bandwidth, before applying the rules to the packet. The queuing may be based on various rules. Thus, before applying the CoS rules, the I / O Manager ASIC 622 on the egress FPC 620 / 620' may be responsible for receiving the block from the second DBM ASIC 635 / 635', incrementing the TTL value, queuing the pointer to the packet, re-encapsulating the block, and sending the encapsulated packet to the PIC I / O Manager ASIC 615.
[0076] Figure 8 8 is a flow chart of an example method 800 for providing packet forwarding in an example router. The main actions of method 800 are triggered when a packet is received on an ingress (inbound) port or interface. (Event 810) The type of checksum and frame check required for the type of medium it serves is performed, and the packet is output as a serial bit stream. (Block 820) The packet is then decapsulated and parsed into (e.g., 64-byte) chunks. (Block 830) The packet is written to a buffer memory, and forwarding information is passed on an internet processor. (Block 840) The route is then looked up in a forwarding table using the passed forwarding information. (Block 850) Note that a forwarding table can typically handle unicast packets for which no options (e.g., accounting) are set, as well as multicast packets for which it already has a cache entry. Therefore, if it is determined that these conditions are met (the yes branch of decision 860), the packet forwarding component finds the next hop and the egress interface, and forwards (or queues for forwarding) the packet to the next hop via the egress interface (box 870) before method 800 leaves (node 890); otherwise, if these conditions are not met (the no branch of decision 860), the forwarding information is sent to the control component 510 for advanced forwarding resolution (box 880) before method 800 leaves (node 890).
[0077] Referring back to block 870, the packets may be queued. Figure 6As described above, pointers to packets can be queued. The packets themselves can be retained in shared memory. Therefore, all queuing decisions and CoS rules can be applied without the actual packets. When the pointer to the packet reaches the front of the row, the I / O Manager ASIC 622 can send a request for the packet to the second DBM ASIC 635b. The DBM ASIC 635 reads the blocks from the shared memory and sends them to the I / O Manager ASIC 622 on the FPC 620, which then serializes the bits and sends them to the media-specific ASIC of the egress interface. The I / O Manager ASIC 615 on the egress PIC 610 can apply physical layer framing, perform CRC, and send the bit stream out over the link.
[0078] Return to reference Figure 8 The frame 880 and Figure 6 Regarding the transmission of control and exception packets, the system control board 640 processes almost all exception packets. For example, the system control board 640 can pass the exception packets to the control component 510.
[0079] Although example embodiments consistent with the present specification may be Figure 4 or Figure 5 , but embodiments consistent with the present specification may be implemented on communication network nodes (e.g., routers, switches, etc.) having different architectures. More generally, embodiments consistent with the present specification may be implemented on Fig. 9 The example system 800 is shown.
[0080] Fig. 9 900 is a block diagram of an exemplary machine 900 that can perform one or more of the processes described and / or store information used and / or generated by these processes. The exemplary machine 900 includes one or more processors 910, one or more input / output interface units 930, one or more storage devices 920, and one or more system buses and / or networks 940 for facilitating information communication between coupled elements. One or more input devices 932 and one or more output devices 934 can be coupled to one or more input / output interfaces 930. One or more processors 910 can execute machine executable instructions (e.g., C or C++ running on a Linux operating system that is widely available from multiple vendors) to implement one or more aspects of the present specification. At least a portion of the machine executable instructions can be stored (temporarily or more permanently) on one or more storage devices 920, and / or can be received from an external source via one or more input interface units 930. The machine executable instructions can be stored as various software modules, each of which performs one or more operations. Functional software modules are examples of components of the present specification.
[0081] In some embodiments consistent with the present specification, processor 910 may be one or more microprocessors and / or ASICs. Bus 940 may include a system bus. Storage device 920 may include system memory, such as a read-only memory (ROM) and / or a random access memory (RAM). Storage device 920 may also include a hard disk drive for reading and writing a hard disk, a disk drive for reading or writing a (e.g., removable) disk, an optical drive for reading or writing a removable (magneto) optical disk, such as an optical disk or other (magneto) optical medium, or a solid-state non-volatile memory.
[0082] Some example embodiments consistent with this specification may also be provided as machine-readable media for storing machine-executable instructions. The machine-readable medium may be non-transient and may include, but is not limited to, flash memory, optical disks, CD-ROMs, DVDROMs, RAMs, EPROMs, EEPROMs, magnetic or optical cards, or any other type of machine-readable medium suitable for storing electronic instructions. For example, example embodiments consistent with this specification may be downloaded as a computer program that may be transmitted from a remote computer (e.g., a server) to a requesting computer (e.g., a client) via a communication link (e.g., a modem or a network connection) and stored on a non-transient storage medium. The machine-readable medium may also be referred to as a processor-readable medium.
[0083] Example embodiments consistent with the present specification (or components or modules thereof) may be implemented in hardware, such as one or more field programmable gate arrays ("FPGAs"), one or more integrated circuits such as ASICs, one or more network processors, etc. Alternatively or additionally, embodiments consistent with the present specification (or components or modules thereof) may be implemented as stored program instructions executed by a processor. Such hardware and / or software may be provided in an addressed data (e.g., packet, cell, etc.) forwarding device (e.g., switch, router, etc.), a laptop computer, a desktop computer, a tablet computer, a mobile phone, or any device with computing and networking capabilities.
[0084] §5 Alternatives, extensions and / or improvements
[0085] §5.1 Entropy for load balancing
[0086] Most existing routers are capable of using the UDP 5-tuple (source IP address, destination IP address, source port, destination port, and protocol) for flow control. As mentioned above, the UDP source port can be used as entropy for consistent hashing to provide fine-grained load balancing for encapsulated protocols (such as X), although this is not required.
[0087] §5.2 Port Mapping
[0088] Network operators should (and in some example implementations, must) clearly configure port mappings for encapsulation protocols (also more generally referred to as "traffic types") at both the source and destination of the X-in-UDP tunnel. Any mismatch will result in unexpected behavior because UDP packets may be processed at different ports.
[0089] The UDP destination port should be mapped to the encapsulated protocol / traffic type (X) so that further protocol (X) processing can be done after decapsulation. For example, if IPv4 packets are encapsulated at the source of the tunnel using UDP with port number 49567, the UDP tunnel destination should have a port mapping of the above port to protocol IPv4, thereby enabling packet lookup based on the IPv4 forwarding table for further processing.
[0090] The traffic type may include, for example, a protocol type, which indicates the type of data found in the payload portion of the datagram. The "protocol type" value provides demultiplexing functionality so that a datagram can be used to carry payloads of more than one protocol type. Although this field originally specified the transport layer protocol encapsulated by the datagram, it can now identify the encapsulated protocol, which may or may not be a transport protocol.
[0091] §5.3 Configuration
[0092] For X-in-UDP encapsulation, network operators should (and in some example implementations must) always use port numbers in the range of 49152 to 66635 (because ports less than 49512 are reserved by IANA to identify specific applications / protocols). The mapping that associates the destination port number and the encapsulated protocol (X) should (and in some example implementations must) be clearly configured on the tunnel destination. Firewalls or packet filters can be used to drop any UDP packets received on the mapped port with an unknown protocol (different from the configured encapsulation protocol).
[0093] Configuration should (and in some example implementations, must) be done at the tunnel source, defining the encapsulated protocol (X). Only packets of the protocol (X) configured at the tunnel source should (and in some example implementations, must) be encapsulated in the UDP tunnel using X (i.e., any protocol packets other than those defined in the source port mapping should be dropped). The following information is required for X-in-UDP encapsulation to tunnel packets of protocol (X).
[0094] i) Tunnel source address (source IP address of the UDP tunnel).
[0095] ii) Tunnel endpoint (IP address of the remote tunnel endpoint / egress).
[0096] iii) Source UDP port.
[0097] iv) Destination UDP port.
[0098] v) Encapsulation protocol (the protocol or service type of the message encapsulated in the UDP tunnel)
[0099] This information can be either manually configured by the network operator or signaled using the BGP Tunnel Encapsulation Attribute, according to K. Patel et al., “The BGP Tunnel Encapsulation Attribute”. Request for Comments (RFC) 9012 (Internet Engineering Task Force (IETF), April 2021) (referred to as "RFC 9012" and incorporated herein by reference), as updated in Section 5.3.1 below.
[0100] §5.3.1 Configuration using BGP signaling
[0101] In some example implementations, a BGP speaker includes a tunnel encapsulation feature (referred to as a "TEA") in some routing updates. A TEA may include one or more UDP tunnels. This UDP tunnel type may be used to tunnel multiple types of traffic, an improvement over legacy protocols. For example, an X-in-UDP tunnel type may be registered (although not necessarily with IANA) and used in a TEA, where X is any internal protocol. Allowing flexible use of UDP tunnels without having to register (multiple) internal protocol types with IANA is advantageous, particularly in networks managed by a single administrator or administrative entity.
[0102] In some example implementations, a UDP tunnel may include a protocol type sub-TLV and a UDP destination port sub-TLV. For example, the tunnel type may be set to 26, and the sub-TLVs may be used for different service types (TT) (e.g., {TTa, TTb, TTc, ...}, where a, b, c, ... are different types of services).
[0103] TEA can also be used to automatically set the decapsulation state at the egress when a routing update is sent from a controller (rather than from an egress). (Typically, the ingress uses TEA to set the encapsulation.) That is, in some example implementations, if the receiving router of the BGP update is a tunnel endpoint, it sets the tunnel decapsulation state accordingly. In this way, the receiving router does not need to rely on manual configuration. In some example implementations, the originating BGP speaker is a controller or is controlled by a controller.
[0104] In some example implementations, the receiving ingress router tunnels traffic (of a specified protocol type) using UDP with specified parameters (eg, a destination UDP port).
[0105] The BGP Tunnel Encapsulation feature in RFC 9012 defines a path feature, called the "Tunnel Encapsulation Feature", to provide the information needed to create a tunnel and its corresponding encapsulation header. X-in-UDP encapsulation can be signaled using the BGP Tunnel Encapsulation feature. A new tunnel type "X-in-UDP" will be used for the "Tunnel Type" in the Tunnel Encapsulation feature.
[0106] The X-in-UDP tunnel endpoint address can be encapsulated using the Tunnel Encapsulation Attributes TLV defined in Section 3.1 of RFC 9012.
[0107] The X-in-UDP tunnel UDP destination port can be encapsulated using the UDP Destination Port (Type Code 8) sub-TLV defined in RFC 9012 Section 3.3.2.
[0108] The X-in-UDP tunnel encapsulation protocol (ie, the protocol type or service type of the data portion in the UDP packet) can be encapsulated using the protocol type sub-TLV (type code 2) sub-TLV defined in Section 3.4.1 of RFC 9012.
[0109] The new tunnel type (X-in-UDP) should be assigned to "Tunnel Type" in the tunnel encapsulation properties.
[0110] §5.4 Applicability
[0111] The X-in-UDP (Any in UDP) encapsulation mechanism should (and in some example implementations must) be deployed only in a single network (with a single network operator) or in networks managed by cooperating network operators, where traffic is managed to avoid congestion and security. In addition, packet or firewall filters should be added to prevent these X-in-UDP packets from escaping the network due to misconfiguration or packet errors.
[0112] §5.5 Safety precautions
[0113] The example UDP encapsulation format described here does not ensure the integrity of the data packets encapsulated through these UDP tunnels. A UDP tunnel decapsulator cannot verify the origin of the tunnel (i.e., it cannot authenticate the encapsulator). In situations where security is a primary concern, X-in-UDP SHOULD be secured over Datagram Transport Layer Security (DTLS) (as specified in E. Rescorla et al., "Datagram Transport Layer Security Version 1.2"), Request for Comments (RFC): 6347(Internet Engineering Task Force (IETF), January 2012) (referred to as "RFC 6347" and incorporated herein by reference)) or other application-specific security protocols. (IPsec may not be used for security in this context because the UDP header (five-tuple) cannot be used for flow control because it encapsulates the entire contents of the IP packet.)
[0114] X-in-UDP tunnels will have the same or similar security issues as other UDP tunnels, such as MPLS-in-UDP as described in RFC 7510. Since intermediate routers cannot snoop on the UDP header, it is not recommended to use IPsec for end-to-end security of X-in-UDP tunnels (such as described in the following documents: S. Kent et al., "Security Architecture for the Internet Protocol"). Request for Comments (RFC): 4301 (Internet Engineering Task Force (IETF), December 2005) (referred to as "RFC 4301", and incorporated herein by reference)). Therefore, RFC 6347 or other application security protocols should be used.
[0115] §5.6 Extensions to other types of tunnels
[0116] Although an example embodiment supporting X-in-UDP tunnels is described (where “X” is the service type), this approach can be extended to other types of tunnels, such as X in GMPLS (commonly referred to as “X-in-Y tunnels” or simply “X-in-Y”).
[0117] §6 Conclusion
[0118] Example embodiments consistent with this specification provide a generic encapsulation mechanism for any user-configured protocol (e.g., X), without being limited to a specific predefined UDP destination port (e.g., in MPLS-in-UDP defined in RFC 7510). This specification describes a generic UDP encapsulation mechanism for any user-configured protocol (IPv4 in UDP, IPv6 in UDP, MPLS in UDP, etc.), which allows fine-grained load balancing on IP networks over equal-cost multipaths. This encapsulation scheme using UDP provides network operators with greater flexibility to define explicit port mappings for configured protocols while utilizing UDP port numbers for flow control. Since most existing routers are able to distribute IP traffic based on a hash of UDP's five-tuple (e.g., see RFC 768), the UDP source port number can be used as an entropy field for better flow control. (i.e., source IP address, destination IP address, source port, destination port, and protocol).
Claims
1. A computer-implemented method for use by a network device, the computer-implemented method comprising: a) receiving, by the network device, information including (1) a type of tunnel to be established, (2) attributes of the tunnel to be established, and (3) an association of the attributes of the tunnel to be established with a service type of a plurality of different service types; b) determining whether the network device is an exit of the tunnel to be established; as well as c) in response to determining that the network device is located at the egress of the tunnel to be established, automatically programming a decapsulator on the network device and associating the decapsulator with the attributes of the tunnel to be established to process packets received on a destination port of the tunnel to be established according to the traffic type, and Otherwise, in response to determining that the network device is not the egress of the tunnel to be established, setting a forwarding state to send the traffic type.
2. The computer-implemented method of claim 1, wherein the received information originates from a central controller.
3. The computer-implemented method of claim 1 , wherein the network device is a portal to the tunnel to be established, and The received information originates from the exit of the tunnel to be established.
4. The computer-implemented method of claim 1, wherein the attribute of the tunnel to be established is a destination port of the tunnel to be established.
5. The computer-implemented method of claim 1, wherein the tunnel to be established is a UDP tunnel, and wherein the attribute of the tunnel to be established is a UDP destination port.
6. The computer-implemented method of claim 1, wherein the information received by the network device is carried as path characteristics in a BGP update message.
7. The computer-implemented method of claim 6, wherein the information received by the network device is carried in a tunnel encapsulation properties TLV.
8. The computer-implemented method of claim 7, wherein the tunnel encapsulation characteristics TLV includes a tunnel destination port sub-TLV having a value that specifies the one of the plurality of different traffic types via the received association.
9. The computer-implemented method of claim 7, wherein the tunnel encapsulation characteristic TLV comprises a tunnel encapsulation protocol sub-TLV having a value uniquely corresponding to and associated with the one of the plurality of different traffic types.
10. The computer-implemented method of claim 1 , further comprising: d) receiving, by the network device, another information, the another information comprising (1) the type of the second tunnel to be established, (2) the attributes of the second tunnel to be established, and (3) associations of the attributes of the second tunnel to be established with different traffic types among a plurality of different traffic types to be carried by the second tunnel to be established; e) determining whether the network device is an exit of the second tunnel to be established; as well as f) in response to determining that the network device is the egress of the second tunnel to be established, automatically programming a second decapsulator associated with a destination port on the network device to process packets received on the destination port of the second tunnel to be established according to the different traffic types, and Otherwise, in response to determining that the network device is not the egress of the second tunnel to be established, setting a forwarding state to send the different traffic type.
11. The computer-implemented method of claim 1 , wherein the tunnel is established, the computer-implemented method further comprising: d) receiving a packet on a device at the destination of the tunnel; e) decapsulating the received packet using the decapsulator to generate a decapsulated packet; f) determining whether the decapsulated packet complies with the selected one of the plurality of service types; as well as g) in response to determining that the decapsulated packet does not conform to the selected one of the plurality of different traffic types, discarding the decapsulated packet, and Otherwise, in response to determining that the decapsulated packet conforms to the selected one of the plurality of different traffic types, the decapsulated packet is processed according to the selected one of the plurality of different traffic types.
12. The computer implemented method of claim 1, wherein the tunnel to be established is a UDP tunnel.
13. A computer implemented method for use in a device in a communication network, the computer implemented method comprising: a) receiving an identifier of a service type among a plurality of service types, the service type among the plurality of service types to be carried on a tunnel to be established; b) determining a tunnel destination port value using (1) the received identifier of the traffic type and (2) the stored association of the traffic type with the tunnel destination port value; c) generating a message comprising (1) information about the tunnel to be established and (2) the determined tunnel destination port value; as well as d) sending the generated message for reception by at least one of: (A) a first device at the entrance of the tunnel to be established and / or (B) a second device at the exit of the tunnel to be established, wherein both the first device and the second device are in the communication network.
14. A network device comprising: a) at least one processor; as well as b) a computer-readable storage medium storing program instructions, which, when executed by the at least one processor, cause the at least one processor to perform a method comprising: 1) receiving, by the network device, information including (i) a type of tunnel to be established, (ii) attributes of the tunnel to be established, and (iii) an association of the attributes of the tunnel to be established with a service type of a plurality of different service types, 2) determining whether the network device is the exit of the tunnel to be established, and 3) in response to determining that the network device is located at the egress of the tunnel to be established, automatically programming a decapsulator on the network device and associating the decapsulator with the attributes of the tunnel to be established to process packets received at a destination port of the tunnel to be established according to the traffic type, and Otherwise, in response to determining that the network device is not the egress of the tunnel to be established, setting a forwarding state to send the traffic type.
15. The network device of claim 14, wherein the received information originates from a central controller.
16. The network device according to claim 14, wherein the network device is a portal of the tunnel to be established, and The received information originates from the exit of the tunnel to be established.
17. The network device of claim 14, wherein the tunnel to be established is a UDP tunnel, and wherein the attribute of the tunnel to be established is a UDP destination port.
18. The network device of claim 14, wherein the information received by the network device is carried as path characteristics in a BGP update message.
19. The network device of claim 18, wherein the information received by the network device is carried in a tunnel encapsulation property TLV.
20. The network device of claim 19, wherein the tunnel encapsulation characteristics TLV includes a tunnel destination port sub-TLV having a value that specifies the one of the plurality of different traffic types via the received association, and The tunnel encapsulation characteristic TLV includes a tunnel encapsulation protocol sub-TLV, and the tunnel encapsulation protocol sub-TLV has a value uniquely corresponding to and associated with the one service type among the multiple different service types.
