CN107995084B - Tunnel selection method and device - Google Patents

Tunnel selection method and device Download PDF

Info

Publication number
CN107995084B
CN107995084B CN201711097200.3A CN201711097200A CN107995084B CN 107995084 B CN107995084 B CN 107995084B CN 201711097200 A CN201711097200 A CN 201711097200A CN 107995084 B CN107995084 B CN 107995084B
Authority
CN
China
Prior art keywords
tunnel
mpls
vtep
vxlan
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711097200.3A
Other languages
Chinese (zh)
Other versions
CN107995084A (en
Inventor
张帝民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201711097200.3A priority Critical patent/CN107995084B/en
Publication of CN107995084A publication Critical patent/CN107995084A/en
Application granted granted Critical
Publication of CN107995084B publication Critical patent/CN107995084B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/825Involving tunnels, e.g. MPLS

Abstract

The disclosure relates to a tunnel selection method and a device, which are applied to any virtual extensible local area network (VXLAN) tunnel endpoint (VTEP) in a VXLAN networking, and the method comprises the following steps: determining a tunnel forwarding class configured on a virtual switch instance VSI corresponding to a VXLAN identifier carried by a received message; re-marking the tunnel forwarding class in the message descriptor corresponding to the message according to the tunnel forwarding class; selecting an MPLS TE tunnel matching the re-labeled tunnel forwarding class from the MPLS TE tunnels created on the VTEP. Therefore, different forwarding services can be provided for user terminals belonging to different VXLANs, and a service provider can more accurately control the flow of the VXLAN network.

Description

Tunnel selection method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a tunnel selection method and apparatus.
Background
VXLAN (Virtual Extensible local area Network) is a two-layer VPN (Virtual Private Network) technology based on an IP Network and in the form of a "MAC in UDP" encapsulation. VXLAN can provide two-layer interconnection for decentralized physical sites based on existing service provider or enterprise IP networks and can provide service isolation for different tenants. VXLAN is used primarily in data center networks.
MPLS (Multiprotocol Label Switching) is a backbone network technology which is widely applied at present. TE (Traffic Engineering) is used to solve the congestion problem caused by load imbalance. An MPLS TE tunnel is a virtual point-to-point connection from a head node to a destination node.
Disclosure of Invention
In view of this, the present disclosure provides a tunnel selection method and apparatus.
According to an aspect of the present disclosure, there is provided a tunnel selection method applied to any one virtual extensible local area network tunnel endpoint VTEP in a virtual extensible local area network VXLAN networking, the method including:
determining a tunnel forwarding class configured on a virtual switch instance VSI corresponding to a VXLAN identifier carried by a received message;
re-marking the tunnel forwarding class in the message descriptor corresponding to the message according to the determined tunnel forwarding class;
and selecting the MPLS TE tunnel with the configured tunnel forwarding class matched with the re-marked tunnel forwarding class from the MPLS TE tunnels created on the VTEP.
According to another aspect of the present disclosure, there is provided a tunnel selection apparatus applied to any one virtual extensible local area network tunnel endpoint VTEP in a virtual extensible local area network VXLAN networking, the apparatus including:
a determining module, configured to determine a tunnel forwarding class configured on a virtual switch instance VSI corresponding to a VXLAN identifier carried by the received packet;
the relabeling module is used for relabeling the tunnel forwarding class in the message descriptor corresponding to the message according to the determined tunnel forwarding class;
and a selecting module, configured to select an MPLS TE tunnel whose configured tunnel forwarding class matches the re-labeled tunnel forwarding class from the MPLS TE tunnels of the multi-protocol label switching traffic engineering created on the VTEP.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the method comprises the steps of determining a tunnel forwarding class used when the tunnel forwarding class configured by a message is to be re-marked based on a VXLAN identifier, re-marking the tunnel forwarding class configured by the message by using the determined tunnel forwarding class, and selecting an MPLS TE tunnel matched with the re-marked tunnel forwarding class, so that different forwarding services can be provided for user terminals belonging to different VXLANs, and a service provider can more accurately control the flow of a VXLAN network.
In addition, since the VTEP selects the tunnel based on the VXLAN identifier, the configuration to be performed by the VTEP does not increase with the increase of ACs of VSIs configured on the VTEP, which simplifies the configuration to be performed by the user.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic view of an application scenario of a tunnel selection mechanism according to an embodiment of the present disclosure.
Fig. 2 is an application scenario diagram of a tunnel selection mechanism for implementing traffic by means of Qos re-labeling a tunnel forwarding class according to an embodiment of the present disclosure.
Fig. 3 is a schematic diagram of a VXLAN networking of an embodiment of the disclosure.
Fig. 4 is a flow chart illustrating a method of tunnel selection in accordance with an example embodiment.
Fig. 5 shows the format of the message descriptor.
Fig. 6 is a schematic diagram of another VXLAN networking of embodiments of the present disclosure.
Fig. 7 is a block diagram illustrating a structure of a tunnel selection apparatus according to an exemplary embodiment.
Fig. 8 is a block diagram illustrating a hardware structure of a tunnel selection apparatus according to an exemplary embodiment.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
For convenience of explanation, a part of the concept related to the present disclosure will be explained first.
The VXLAN Network is identified by a VXLAN ID, which is also called a VNI (VXLAN Network Identifier), and the length of the VNI is 24 bits, and virtual machines in different VXLAN networks cannot perform two-layer interworking.
The VTEP provides a VSI (Virtual Switch Instance) of a two-layer switching service for a VXLAN, and the VSI can be regarded as a Virtual Switch performing two-layer forwarding based on the VXLAN on the VTEP, and the VSI and VXLAN correspond one to one.
An MPLS TE tunnel is a virtual point-to-point connection from a head node to a destination node. Typically, an MPLS TE tunnel is composed of a CRLSP (constrained-based Routed Label Switched path) based on a constrained route. When a backup of a CRLSP is deployed or traffic needs to be transmitted over multiple paths, multiple CRLSPs need to be established for the same traffic. In this case, the MPLS TE tunnel is made up of a set of CRLSPs. The MPLS TE Tunnel on the head node is identified by a Tunnel (Tunnel) interface of MPLS TE mode. When the outgoing interface of the traffic is a Tunnel interface, the traffic will be forwarded through the CRLSP that constitutes the MPLS TE Tunnel.
The working principle of the tunnel selection mechanism of the flow is as follows: configuring a tunnel forwarding class (service-class) in the direction of the equipment access flow (message) through a flow behavior (behavior), and establishing the tunnel forwarding class for the flow; and configuring the tunnel forwarding class of the tunnel, wherein the traffic matched with the tunnel forwarding class of the tunnel can be forwarded through the tunnel instead of forwarding by using all tunnels as common load sharing.
That is, a tunnel forwarding class is configured for both traffic and MPLS TE tunnels, and the traffic is forwarded using a tunnel whose configured tunnel forwarding class matches the configured tunnel forwarding class configured for the traffic.
Fig. 1 is a schematic diagram of an application scenario of a tunnel selection mechanism in an embodiment of the present disclosure. As shown in fig. 1, the application scenario includes device a, devices P1 through P3, and device B.
An MPLS TE tunnel may be created between device a and device B. The MPLS TE tunnel created between device a and device B includes: tunnel1, tunnel 2 and tunnel 3, where tunnel1 is device a-device P1-device B, tunnel 2 is device a-device P2-device B, and tunnel 3 is device a-device P3-device B. Wherein, the tunnel1 is not configured with the tunnel forwarding class, the tunnel forwarding class configured with the tunnel 2 is 3, and the tunnel forwarding class configured with the tunnel 3 is 6.
If the tunnel forwarding class of traffic from device a to device B is 3, device a forwards the traffic to device B through tunnel 2. Accordingly, if the tunnel forwarding class of traffic from device a to device B is 6, device a forwards the traffic to device B through tunnel 3. If the traffic from device A to device B is not configured with a tunnel forwarding class, device A forwards the traffic to device B through tunnel 1.
The tunnel selection mechanism for traffic can be implemented by Qos re-labeling the tunnel forwarding class.
Fig. 2 is an application scenario diagram of a tunnel selection mechanism for implementing traffic by means of Qos re-labeling a tunnel forwarding class in the embodiment of the present disclosure. As shown in fig. 2, the application scenario includes CE (Customer Edge) 1, CE 2, CE 3, device a, devices P1 to P3, and device B.
Device A includes Ethernet interfaces Gigabit Ethernet1/0/1, Gigabit Ethernet1/0/2 and Gigabit Ethernet 1/0/3. CE 1, CE 2 and CE 3 access device A via Ethernet interfaces gigabit Ethernet1/0/1, gigabit Ethernet1/0/2 and gigabit Ethernet1/0/3, respectively.
The MPLS TE tunnel created between device a to device B includes: tunnel1, tunnel 2 and tunnel 3, where tunnel1 is device a-device P1-device B, tunnel 2 is device a-device P2-device B, and tunnel 3 is device a-device P3-device B. The tunnel forwarding class configured for the tunnel1 is 1, the tunnel forwarding class configured for the tunnel 2 is 2, and the tunnel forwarding class configured for the tunnel 3 is 3.
Device a enables CE 1 traffic from device a to device B to be forwarded through Tunnel 1(Tunnel 1) by performing the following processing. For the traffic (message) from CE 1, a flow behavior _ tunnel1 is defined, and the tunnel forwarding class of the flow behavior acting as a re-labeled message is 1. A Qos policy1 is defined, and the flow behavior is designated as behavior _ tunnel1 for the tunnel forwarding class. The Qos policy1 is applied to the Ethernet interface GigabitEthernet 1/0/1.
Device a re-marks the tunnel forwarding class (Tag service-class) field in the header of the dedicated packet descriptor as 1 when processing the packet incoming from the ethernet interface gigabit ethernet1/0/1, i.e., the value of the tunnel forwarding class of the traffic is re-marked as 1.
The forwarding module of the device a performs tunnel optimization on the packet. Specifically, the forwarding module preferentially selects a tunnel with the same tunnel forwarding class as the tunnel forwarding class of the traffic to forward the traffic, that is, selects tunnel1 to forward the traffic, according to the preference rule of the tunnel selection mechanism of the traffic. And the forwarding module of the device A forwards the message by using the selected tunnel1 according to the destination address of the message.
The processing performed to implement forwarding of CE 2 or CE 3 from device a to device B through tunnel 2 or tunnel 3 is similar to the processing performed to implement forwarding of CE 1 from device a to device B through tunnel1, and is not described herein again.
Therefore, the tunnel selection mechanism of traffic is realized by re-marking the tunnel forwarding class by Qos, so that the forwarding of CE 1 from device a to device B through tunnel1, the forwarding of CE 2 from device a to device B through tunnel 2, and the forwarding of CE 3 from device a to device B through tunnel 3 can be realized on device a.
However, for the Qos re-labeled tunnel forwarding class, the tunnel selection mechanism for traffic is implemented based on the ethernet interface of the CE access device a, so that the method is only applicable to an application scenario in which multiple CEs access devices through different ethernet interfaces, and is difficult to apply to the following VXLAN networking: in the VXLAN networking, a CE is a VM (Virtual Machine) created on a server and the server accesses a VTEP (VXLAN Tunnel End Point) through one ethernet interface, that is, multiple CEs access the VTEP through one ethernet interface.
Embodiments of the present disclosure are described in detail below with reference to the drawings.
Fig. 3 is a schematic diagram of a VXLAN networking of an embodiment of the disclosure. As shown in fig. 3, the XLAN networking includes a server, VTEP a, devices P1 to P3, and VTEP B.
The devices P1 to P3 are devices P in the IP core network, such as switches, and the devices P only need to forward the packet in three layers according to the outer layer destination IP address of the packet encapsulated by the VTEP, but do not participate in VXLAN processing, for example, the devices P do not participate in encapsulation and decapsulation of the packet.
VTEP a and VTEP B are edge devices of VXLAN, and VTEP a and VTEP B may be an independent physical device, such as a switch, or a server where a virtual machine is located. A VXLAN tunnel may be created between VTEP a and VTEP B, and VTEP a may encapsulate a VXLAN header, a UDP header, and an IP header for a data frame, and then forward the encapsulated packet to VTEP B through the VXLAN tunnel via device P, and then perform decapsulation on the packet by VTEP B.
The VTEP A comprises an Ethernet interface GigabitEthernet1/0/1, VSI 1, VSI 2 and VSI 3 are configured on the VTEP A, and VXLAN marks corresponding to the VSI 1, the VSI 2 and the VSI 3 are VXLAN 1, VXLAN 2 and VXLAN 3 respectively.
VM1, VM2, and VM 3 are created on the server, and VM1, VM2, and VM 3 belong to VXLAN 1, VXLAN 2, and VXLAN 3, respectively. VM1, VM2, and VM 3 on the server access VSI 1, VSI 2, and VSI 3 configured on VTEP a through an AC (access Circuit), respectively.
An MPLS TE tunnel may be created between VTEP a and VTEP B, and as shown in fig. 3, the MPLS TE tunnel from VTEP a to VTEP B includes: tunnel1, tunnel 2 and tunnel 3, tunnel1 being VTEP a-device P1-VTEP B, tunnel 2 being VTEP a-device P2-VTEP B, tunnel 3 being VTEP a-device P3-VTEP B. And the VTEP A configures a tunnel forwarding class 1 for the tunnel1 on the VSI 1, configures a tunnel forwarding class 2 for the tunnel 2 on the VSI 2, and configures a tunnel forwarding class 3 for the tunnel 3 on the VSI 3.
For convenience of explanation, the embodiments of the present disclosure will be described in detail below by taking VXLAN networking as an example, which is shown in fig. 3.
Fig. 4 shows a flow chart of a tunnel selection method according to an embodiment of the present disclosure. The tunnel selection method is applied to any one of the VTEPs in the VXLAN networking, for example, the tunnel selection method may be applied to the VTEP a in the VXLAN networking shown in fig. 3. As shown in fig. 4, the tunnel selection method includes the following steps.
In step S410, a tunnel forwarding class configured on the virtual switch instance VSI corresponding to the VXLAN identifier carried in the received message is determined.
In this embodiment, the VTEP receives a message from a user equipment through an ethernet interface, where the user equipment is, for example, a virtual machine configured on a server. The message received by the VTEP carries a VXLAN identifier (VNI), and since the VSIs in one-to-one correspondence with the VXLAN in the VXLAN networking, the VTEP can first acquire the VNIs carried by the message, and then uniquely determine a VSI according to the acquired VNIs, where the VSI is the VSI accessed by the user equipment that sends the message.
In this embodiment, the VTEP may configure a VSI, and may configure a tunnel forwarding class on the VSI for the MPLS TE tunnel corresponding to the VSI. The VTEP may be configured with one VSI or with a plurality of VSIs. In the case where multiple VSIs are configured, each VSI of the multiple VSIs corresponds to an MPLS TE tunnel created on a VTEP, which may be configured with a tunnel forwarding class on the VSI. The VTEP may configure different tunnel forwarding classes on multiple VSIs, or may configure the same tunnel forwarding class on multiple VSIs.
For example, in the VXLAN networking shown in fig. 3, the VTEP a configures a tunnel forwarding class 1 for tunnel1 on VSI 1, a tunnel forwarding class 2 for tunnel 2 on VSI 2, and a tunnel forwarding class 3 for tunnel 3 on VSI 3.
Therefore, the process for the VTEP to determine the tunnel forwarding class may be as follows: acquiring a VXLAN identifier carried by the message; determining the VSI to which the message belongs according to the obtained VXLAN identifier; and acquiring the tunnel forwarding class configured on the VSI.
For example, in the VXLAN networking shown in fig. 3, if the VTEP a receives a packet carrying a VXLAN identifier VXLAN 1 from the ethernet interface gigabit ethernet1/0/1, the VTEP a obtains the VXLAN identifier VXLAN 1 carried in the packet; determining that the VSI to which the message belongs is the VSI 1 corresponding to the VXLAN 1 according to the VXLAN 1; and acquiring the tunnel forwarding class 1 configured for the tunnel1 on the VSI 1.
In some embodiments, the smaller the value of the tunnel forwarding class is, the lower the priority of the tunnel forwarding is, the lower the value of the tunnel forwarding class is, the same value of the tunnel forwarding class is provided, the priority of the tunnel forwarding is the same, and the lowest priority of the tunnel without the tunnel forwarding class is configured.
In some embodiments, the smaller the value of the tunnel forwarding class is, the higher the priority of the tunnel forwarding is, the higher the value of the tunnel forwarding class is, the same value of the tunnel forwarding class is provided, the priority of the tunnel forwarding is the same, and the priority of the tunnel without the tunnel forwarding class is the highest.
It should be noted that, the present disclosure does not specifically limit the relationship between the value of the tunnel forwarding class and the priority of the tunnel forwarding.
In step S430, the tunnel forwarding class in the message descriptor corresponding to the message is re-marked according to the determined tunnel forwarding class.
For the description of the tunnel forwarding class, reference may be made to the description of step S410, and details are not described herein again.
In this embodiment, the VTEP allocates a dedicated packet descriptor to the received packet, so that each packet has a packet descriptor corresponding to the packet. Fig. 5 illustrates a format of a packet descriptor, and as illustrated in fig. 5, the packet descriptor includes a block information (BlockInfo) field, a tunnel service class (Tag service class) field, and an extension information field, where the block information field includes a DF _ HEAD _ S field, a data area field, and a product reservation field. The data area field includes: an Ethernet (Ethernet) field, an IP field, a UDP field, a VXLAN field, and a data (data) field.
In this embodiment, the VTEP re-marks the tunnel forwarding class in the message descriptor as the tunnel forwarding class configured on the VSI determined in step S410. Therefore, in this embodiment, the tunnel forwarding class is re-labeled based on the VNI carried in the packet.
Illustratively, continuing with the above example, if it is determined in step S410 that tunnel forwarding class 1 is configured for tunnel1 on VSI 1, then the VTEP re-marks the tunnel forwarding class in the message descriptor as 1.
In step S450, an MPLS TE tunnel is selected from the MPLS TE tunnels created on the VTEP, where the configured tunnel forwarding class matches the re-labeled tunnel forwarding class.
In this embodiment, a tunnel forwarding class is configured for both the traffic and the MPLS TE tunnel, and the traffic is forwarded by using a tunnel whose configured tunnel forwarding class matches the tunnel forwarding class configured for the traffic.
As described above, the VTEP re-labels the tunnel forwarding classes configured for the traffic based on the VNI, and the VTEP may match the tunnel forwarding classes re-labeled based on the VNI with the tunnel forwarding classes configured for the MPLS TE tunnels on the VSI, respectively, and select the MPLS TE tunnels that are successfully matched. Thus, the VTEP may select a tunnel based on the VNI.
For example, continuing with the above example, since the VTEP a re-marks the tunnel forwarding class in the packet descriptor as 1 in step S430, in step S450, the VTEP a may match 1 with the tunnel forwarding class 1 of tunnel1, the tunnel forwarding class 2 of tunnel 2, and the tunnel forwarding class 3 of tunnel 3 in the MPLS TE tunnel, respectively, and select tunnel1 with a successful matching.
Similarly, with embodiments of the present disclosure, for VXLAN networking as shown in fig. 3, the following requirements can be implemented on VTEP a: the flow of VM1 from VTEP A to VTEP B is forwarded through tunnel 1; the traffic of VM2 from VTEP A to VTEP B is forwarded through tunnel 2; traffic for VM 3 from VTEP a to VTEP B is forwarded through tunnel 3.
Therefore, in the embodiment of the present disclosure, a tunnel forwarding class used when the tunnel forwarding class configured in the packet is to be re-labeled is determined based on the VNI, the tunnel forwarding class configured in the packet is re-labeled using the determined tunnel forwarding class, and an MPLS TE tunnel matching the tunnel forwarding class and the re-labeled tunnel forwarding class is selected, so that different forwarding services can be provided for user terminals belonging to different VXLANs, and thus a service provider can more accurately perform flow control on a VXLAN network, which enables the service provider to provide diversified services using existing VXLAN network resources, optimize VXLAN network resources, and perform reasonable network management on the VXLAN network resources.
In addition, since the VTEP selects the tunnel based on the VNI, the configuration to be performed by the VTEP does not increase with the increase of the AC of the VSI configured on the VTEP, which simplifies the configuration to be performed by the user.
Illustratively, fig. 6 is a schematic diagram of another VXLAN networking of an embodiment of the present disclosure. As shown in fig. 6, the XLAN network includes a server 1, a server 2, a VTEP a, devices P1 to P3 in an IP core network, and a VTEP B.
The VTEP A comprises Ethernet interfaces Gigabitethernets 1/0/1 and Gigabitethernets 1/0/2, VSI 1, VSI 2 and VSI 3 are configured on the VTEP A, and VXLAN marks corresponding to the VSI 1, VSI 2 and VSI 3 are VXLAN 1, VXLAN 2 and VXLAN 3 respectively.
Server 1 accesses VTEP a through ethernet interface gigabit ethernet1/0/1, VM1, VM2 and VM 3 are created on server 1, and VM1, VM2 and VM 3 belong to VXLAN 1, VXLAN 2 and VXLAN 3, respectively. VM1, VM2, and VM 3 on the server 1 access VSI 1, VSI 2, and VSI 3 configured on the VTEP a through the AC, respectively.
Server 2 accesses VTEP a through ethernet interface gigabit ethernet1/0/2, VM 4, VM 5, and VM 6 are created on server 2, and VM 4, VM 5, and VM 6 belong to VXLAN 1, VXLAN 2, and VXLAN 3, respectively. VM 4, VM 5, and VM 6 on server 2 access VSI 1, VSI 2, and VSI 3 configured on VTEP a through the AC, respectively.
An MPLS TE tunnel may be created between VTEP a and VTEP B, and as shown in fig. 6, the MPLS TE tunnel from VTEP a to VTEP B includes: tunnel1, tunnel 2 and tunnel 3, tunnel1 being VTEP a-device P1-VTEP B, tunnel 2 being VTEP a-device P2-VTEP B, tunnel 3 being VTEP a-device P3-VTEP B.
The user only needs to configure tunnel forwarding class 1 for tunnel1 on VSI 1, tunnel forwarding class 2 for tunnel 2 on VSI 2, and tunnel forwarding class 3 for tunnel 3 on VSI 3 for VTEP a, that is, the same configuration as that of VTEP a in VXLAN networking shown in fig. 3 is performed, so that the following requirements can be met: traffic for VM1 and VM 4 from VTEP a to VTEP B is forwarded through tunnel 1; traffic for VM2 and VM 5 from VTEP a to VTEP B is forwarded through tunnel 2; the traffic of VM 3 and VM 6 from VTEP a to VTEP B is forwarded through tunnel 3.
Thus, the configuration to be performed by the VTEP a remains unchanged as the AC of the VSI configured on the VTEP a increases.
In a possible implementation manner, the tunnel selection method may further include: packaging the message into a VXLAN message; packaging the VXLAN message into an MPLS message; and forwarding the MPLS message by using the selected MPLS TE tunnel according to the destination address of the MPLS message.
In this embodiment, the destination address of the VXLAN tunnel is the same as the destination address of the selected MPLS TE tunnel. The VTEP may encapsulate the IP packet into a VXLAN packet by adding a VXLAN header, a UDP header, and an IP header on the basis of the received IP packet, and then may encapsulate the VXLAN packet into an MPLS packet by adding a packet header of MPLS on the basis of the VXLAN packet, and forward the MPLS packet to a destination address of the MPLS TE tunnel through the selected MPLS TE tunnel.
In one possible implementation, selecting an MPLS TE tunnel from the MPLS TE tunnels created on the VTEP that matches the configured tunnel forwarding class with the re-labeled tunnel forwarding class includes:
selecting an MPLS TE tunnel with the same configured tunnel forwarding class as the re-labeled tunnel forwarding class from the MPLS TE tunnels created on the VTEP,
if the tunnel forwarding classes configured by a plurality of MPLS TE tunnels in the MPLS TE tunnels established on the VTEP are the same as the re-marked tunnel forwarding classes, selecting any one of the MPLS TE tunnels;
and if the tunnel forwarding classes configured by the MPLS TE tunnels established on the VTEP are different from the re-marked tunnel forwarding classes, selecting the MPLS TE tunnel matched with the preset rule from the MPLS TE tunnels established on the VTEP.
Wherein, the user can set up the rule of presetting as required. For example, the preset rule is that the smaller the value of the tunnel forwarding class is, the higher the priority of tunnel forwarding of the MPLS TE tunnel having the tunnel forwarding class is. For example, the preset rule is that the smaller the value of the tunnel forwarding class is, the lower the priority of tunnel forwarding of the MPLS TE tunnel having the tunnel forwarding class is.
Fig. 7 is a block diagram illustrating a configuration of a tunnel selection apparatus according to an exemplary embodiment, where the tunnel selection apparatus may be applied to any VTEP in VXLAN networking, for example, the tunnel selection apparatus may be applied to the VTEP a in fig. 3 or the VTEP a in fig. 6. As shown in fig. 7, the tunnel selection apparatus 700 may include a determination module 710, a re-labeling module 730, and a selection module 750.
The determining module 710 is configured to determine a tunnel forwarding class configured on the virtual switch instance VSI corresponding to the VXLAN identifier carried in the received packet.
The re-marking module 730 is connected to the determining module 710, and is configured to re-mark the tunnel forwarding class in the message descriptor corresponding to the message according to the tunnel forwarding class determined by the determining module 710.
The selecting module 750 is connected to the re-labeling module 730, and is configured to select an MPLS TE tunnel, from the MPLS TE tunnels created on the VTEP, whose configured tunnel forwarding class matches the tunnel forwarding class re-labeled by the re-labeling module 730.
In a possible implementation, the selecting module 750 is specifically configured to: selecting an MPLS TE tunnel with the same configured tunnel forwarding class and the same re-marked tunnel forwarding class from the MPLS TE tunnels created on the VTEP, wherein if the tunnel forwarding classes configured by a plurality of MPLS TE tunnels in the MPLS TE tunnels created on the VTEP are the same as the re-marked tunnel forwarding class, any one MPLS TE tunnel in the MPLS TE tunnels is selected; and if the MPLS TE tunnels established on the VTEP are different from the re-marked tunnel forwarding classes, selecting the MPLS TE tunnel matched with the preset rule from the MPLS TE tunnels established on the VTEP.
In one possible implementation, the tunnel selection apparatus 700 may further include a configuration module (not shown) configured to configure a tunnel forwarding class for the MPLS TE tunnel corresponding to the VSI on the configured VSI.
In a possible implementation manner, the determining module 710 is specifically configured to: determining a VXLAN identifier carried by a received message; determining a VSI corresponding to the VXLAN identification; a tunnel forwarding class configured on the VSI corresponding to the VXLAN identification is determined.
In a possible implementation manner, the tunnel selection apparatus 700 may further include a VXLAN encapsulation module (not shown) for encapsulating the message into a VXLAN message; an MPLS encapsulation module (not shown) for encapsulating the VXLAN message into an MPLS message; and a forwarding module (not shown) configured to forward the MPLS packet using the selected MPLS TE tunnel according to a destination address of the MPLS packet.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 8 is a block diagram illustrating a hardware structure of a tunnel selection apparatus according to an exemplary embodiment. Referring to fig. 8, the apparatus 800 may include a processor 901, a machine-readable storage medium 902 having stored thereon machine-executable instructions. The processor 901 and the machine-readable storage medium 902 may communicate via a system bus 903. Also, processor 901 performs the tunnel selection method described above by reading machine-executable instructions in machine-readable storage medium 902 corresponding to tunnel selection logic.
The machine-readable storage medium 902 referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. A tunnel selection method is applied to any virtual extensible local area network tunnel endpoint (VTEP) in a virtual extensible local area network (VXLAN) networking, and is characterized by comprising the following steps:
determining a tunnel forwarding class configured on a virtual switch instance VSI corresponding to a VXLAN identifier carried by a received message;
re-marking the tunnel forwarding class in the message descriptor corresponding to the message according to the determined tunnel forwarding class;
and selecting the MPLS TE tunnel with the configured tunnel forwarding class matched with the re-marked tunnel forwarding class from the MPLS TE tunnels created on the VTEP.
2. The method of claim 1, wherein selecting, from the multiprotocol label switching traffic engineering (MPLS) TE tunnels created on the VTEP, an MPLS TE tunnel having a configured tunnel forwarding class matching a re-labeled tunnel forwarding class comprises:
selecting an MPLS TE tunnel having the configured tunnel forwarding class identical to the re-labeled tunnel forwarding class from the MPLS TE tunnels created on the VTEP,
if the tunnel forwarding classes configured by a plurality of MPLS TE tunnels in the MPLS TE tunnels created on the VTEP are the same as the re-marked tunnel forwarding classes, selecting any one of the MPLS TE tunnels;
and if the tunnel forwarding classes configured by the MPLS TE tunnels established on the VTEP are different from the re-marked tunnel forwarding classes, selecting the MPLS TE tunnel matched with a preset rule from the MPLS TE tunnels established on the VTEP.
3. The method of claim 1, wherein prior to determining the tunnel forwarding class configured on the virtual switch instance VSI corresponding to the VXLAN identifier carried in the received packet, the method comprises:
and configuring a tunnel forwarding class for the MPLS TE tunnel corresponding to the VSI on the configured VSI.
4. The method of claim 3, wherein determining the tunnel forwarding class configured on the virtual switch instance VSI corresponding to the VXLAN identifier carried in the received packet comprises:
determining a VXLAN identifier carried by a received message;
determining a VSI corresponding to the VXLAN identification;
and determining the tunnel forwarding class configured on the VSI corresponding to the VXLAN identification.
5. The method of any of claims 1 to 4, further comprising:
packaging the message into a VXLAN message;
packaging the VXLAN message into an MPLS message;
and forwarding the MPLS message by using the selected MPLS TE tunnel according to the destination address of the MPLS message.
6. A tunnel selection apparatus applied to any one virtual extensible local area network tunnel endpoint VTEP in a virtual extensible local area network VXLAN networking, the apparatus comprising:
a determining module, configured to determine a tunnel forwarding class configured on a virtual switch instance VSI corresponding to a VXLAN identifier carried by the received packet;
the relabeling module is used for relabeling the tunnel forwarding class in the message descriptor corresponding to the message according to the determined tunnel forwarding class;
and a selecting module, configured to select an MPLS TE tunnel whose configured tunnel forwarding class matches the re-labeled tunnel forwarding class from the MPLS TE tunnels of the multi-protocol label switching traffic engineering created on the VTEP.
7. The apparatus of claim 6, wherein the selection module is specifically configured to:
selecting an MPLS TE tunnel having the configured tunnel forwarding class identical to the re-labeled tunnel forwarding class from the MPLS TE tunnels created on the VTEP,
if the tunnel forwarding classes configured by a plurality of MPLS TE tunnels in the MPLS TE tunnels created on the VTEP are the same as the re-marked tunnel forwarding classes, selecting any one of the MPLS TE tunnels;
and if the tunnel forwarding classes configured by the MPLS TE tunnels established on the VTEP are different from the re-marked tunnel forwarding classes, selecting the MPLS TE tunnel matched with a preset rule from the MPLS TE tunnels established on the VTEP.
8. The apparatus of claim 6, further comprising:
and the configuration module is used for configuring a tunnel forwarding class for the MPLS TE tunnel corresponding to the VSI on the configured VSI.
9. The apparatus of claim 8, wherein the determining module is specifically configured to:
determining a VXLAN identifier carried by a received message;
determining a VSI corresponding to the VXLAN identification;
and determining the tunnel forwarding class configured on the VSI corresponding to the VXLAN identification.
10. The apparatus of any one of claims 6 to 9, further comprising:
the VXLAN packaging module is used for packaging the message into a VXLAN message;
the MPLS encapsulation module is used for encapsulating the VXLAN message into an MPLS message;
and the forwarding module is used for forwarding the MPLS message by using the selected MPLS TE tunnel according to the destination address of the MPLS message.
CN201711097200.3A 2017-11-09 2017-11-09 Tunnel selection method and device Active CN107995084B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711097200.3A CN107995084B (en) 2017-11-09 2017-11-09 Tunnel selection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711097200.3A CN107995084B (en) 2017-11-09 2017-11-09 Tunnel selection method and device

Publications (2)

Publication Number Publication Date
CN107995084A CN107995084A (en) 2018-05-04
CN107995084B true CN107995084B (en) 2020-12-01

Family

ID=62030707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711097200.3A Active CN107995084B (en) 2017-11-09 2017-11-09 Tunnel selection method and device

Country Status (1)

Country Link
CN (1) CN107995084B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110061898B (en) * 2019-04-28 2021-07-23 新华三技术有限公司 Message forwarding method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286941A (en) * 2008-05-22 2008-10-15 中兴通讯股份有限公司 Distribution method of tunnel resource in multiple protocol label switch/traffic engineering
CN103475557A (en) * 2013-09-05 2013-12-25 华为技术有限公司 Tunnel setup method and router
CN103916303A (en) * 2014-04-18 2014-07-09 杭州华三通信技术有限公司 MPLS TE tunnel configuration device and method
WO2014189793A1 (en) * 2013-05-24 2014-11-27 Alcatel Lucent Method for transmitting an alert using a virtual extensible lan (vxlan) tunneling mechanism
CN104767666A (en) * 2015-04-15 2015-07-08 杭州华三通信技术有限公司 Virtual extensible local area network tunnel terminal tunnel building method and equipment
CN105763385A (en) * 2016-04-27 2016-07-13 杭州华三通信技术有限公司 Flow scheduling method and apparatus
CN105812221A (en) * 2014-12-31 2016-07-27 华为技术有限公司 Data transmission device and method in virtual extensible local area network
CN106230749A (en) * 2016-08-30 2016-12-14 锐捷网络股份有限公司 A kind of method E-Packeted in virtual expansible LAN and convergence switch
CN107306222A (en) * 2016-04-25 2017-10-31 华为技术有限公司 The method and apparatus that traffic engineering tunnel on label switched path is set up

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286941A (en) * 2008-05-22 2008-10-15 中兴通讯股份有限公司 Distribution method of tunnel resource in multiple protocol label switch/traffic engineering
WO2014189793A1 (en) * 2013-05-24 2014-11-27 Alcatel Lucent Method for transmitting an alert using a virtual extensible lan (vxlan) tunneling mechanism
CN103475557A (en) * 2013-09-05 2013-12-25 华为技术有限公司 Tunnel setup method and router
CN103916303A (en) * 2014-04-18 2014-07-09 杭州华三通信技术有限公司 MPLS TE tunnel configuration device and method
CN105812221A (en) * 2014-12-31 2016-07-27 华为技术有限公司 Data transmission device and method in virtual extensible local area network
CN104767666A (en) * 2015-04-15 2015-07-08 杭州华三通信技术有限公司 Virtual extensible local area network tunnel terminal tunnel building method and equipment
CN107306222A (en) * 2016-04-25 2017-10-31 华为技术有限公司 The method and apparatus that traffic engineering tunnel on label switched path is set up
CN105763385A (en) * 2016-04-27 2016-07-13 杭州华三通信技术有限公司 Flow scheduling method and apparatus
CN106230749A (en) * 2016-08-30 2016-12-14 锐捷网络股份有限公司 A kind of method E-Packeted in virtual expansible LAN and convergence switch

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于策略的隧道选择在SDN场景中的应用;常杰;《无线互联科技》;20170610;全文 *

Also Published As

Publication number Publication date
CN107995084A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
US10320664B2 (en) Cloud overlay for operations administration and management
JP7290732B2 (en) Data transfer method and related equipment
US10063470B2 (en) Data center network system based on software-defined network and packet forwarding method, address resolution method, routing controller thereof
US20180013670A1 (en) Operations, administration and management (oam) in overlay data center environments
EP2806601B1 (en) Tunnels between virtual machines
US20090129384A1 (en) Data mirroring in a service
CN112019433B (en) Message forwarding method and device
CN105634942B (en) Method and switch for forwarding message
US20220191136A1 (en) Label Management Method, Data Stream Processing Method, and Device
CN108092890B (en) Route establishing method and device
CN107547340B (en) Message forwarding method and device
CN113973082A (en) Message processing method and network equipment
CN112787923A (en) Message processing method, device and system
US20230155930A1 (en) Packet Processing Method and Network Device
WO2022057810A1 (en) Service packet forwarding method, sr policy sending method, device, and system
CN113660164A (en) Message forwarding method and network equipment
CN111404797B (en) Control method, SDN controller, SDN access point, SDN gateway and CE
CN107995084B (en) Tunnel selection method and device
CN107995110B (en) Traffic forwarding method and device
CN116418632A (en) Message processing method, device, equipment and machine-readable storage medium
EP3902211A1 (en) Packet forwarding method and network device
CN111010344B (en) Message forwarding method and device, electronic equipment and machine-readable storage medium
CN115348202A (en) Data transmission method, device and equipment based on network slice and storage medium
CN107947989B (en) Dynamic AC generation method and device
CN113542111B (en) Message forwarding method and network equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant