CN107995084A - Tunnel selecting method and device - Google Patents

Tunnel selecting method and device Download PDF

Info

Publication number
CN107995084A
CN107995084A CN201711097200.3A CN201711097200A CN107995084A CN 107995084 A CN107995084 A CN 107995084A CN 201711097200 A CN201711097200 A CN 201711097200A CN 107995084 A CN107995084 A CN 107995084A
Authority
CN
China
Prior art keywords
tunnel
class
traffic engineering
vxlan
vtep
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.)
Granted
Application number
CN201711097200.3A
Other languages
Chinese (zh)
Other versions
CN107995084B (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.)
New H3C Technologies Co Ltd
Original Assignee
New 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 New H3C Technologies Co Ltd filed Critical New 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

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

This disclosure relates to a kind of tunnel selecting method and device, applied to any one virtual expansible LAN endpoint of a tunnel VTEP in virtual expansible local area network VXLAN networkings, the described method includes:The VXLAN entrained by message for determining and receiving identifies the tunnel forwarding class configured on corresponding virtual switch instance VSI;Class pair is forwarded to carry out heavy label with the tunnel forwarding class in the corresponding message descriptor of the message according to the tunnel;In the multi-protocol label switching traffic engineering MPLS traffic engineering tunnels created from the VTEP, selection and the tunnel forwarding matched MPLS traffic engineering tunnels of class of heavy label.User terminal thereby, it is possible to be embodied as belonging to different VXLAN provides different forwarding services, so that service provider more accurately can carry out flow control to VXLAN networks.

Description

Tunnel selecting method and device
Technical field
This disclosure relates to field of communication technology, more particularly to a kind of tunnel selecting method and device.
Background technology
VXLAN (Virtual Extensible LAN, virtual expansible LAN) is IP based network, using " MAC Two-layer VPN (Virtual Private Network, Virtual Private Network) technology of in UDP " packing forms.VXLAN can be with Based on existing service provider or enterprise IP network, two layers of interconnection are provided for scattered physical site, and can be difference Tenant provide business isolation.VXLAN is mainly used in data center network.
MPLS (Multiprotocol Label Switching, multiprotocol label switching) is current application than wide A kind of backbone technology.TE (Traffic Engineering, traffic engineering) is used to solve congestion caused by load imbalance Problem.MPLS traffic engineering tunnels are a virtual point-to-point connections from head node to destination node.
The content of the invention
In view of this, the present disclosure proposes a kind of tunnel selecting method and device.
According to the one side of the disclosure, there is provided a kind of tunnel selecting method, applied to virtual expansible local area network Any one virtual expansible LAN endpoint of a tunnel VTEP in VXLAN networkings, the described method includes:
The VXLAN entrained by message for determining and receiving identifies what is configured on corresponding virtual switch instance VSI Tunnel forwards class;
According to determine tunnel forwarding class pair with the corresponding message descriptor of the message tunnel forwarding class into Row heavy label;
In the multi-protocol label switching traffic engineering MPLS traffic engineering tunnels created from the VTEP, what selection was configured Tunnel forwards the tunnel of the class and heavy label forwarding matched MPLS traffic engineering tunnels of class.
According to another aspect of the present disclosure, there is provided a kind of tunnel selection device, applied to virtual expansible local area network Any one virtual expansible LAN endpoint of a tunnel VTEP in VXLAN networkings, described device include:
Determining module, corresponding virtual switch instance is identified for the definite VXLAN with entrained by message that is receiving The tunnel forwarding class configured on VSI;
Heavy label module, for according in the tunnel forwarding class pair and the corresponding message descriptor of the message determined Tunnel forwarding class carry out heavy label;
Selecting module, in the multi-protocol label switching traffic engineering MPLS traffic engineering tunnels that are created from the VTEP, The tunnel forwarding matched MPLS traffic engineering tunnels of class of the configured tunnel forwarding class of selection and heavy label.
The technical scheme provided by this disclosed embodiment can include the following benefits:Being determined based on VXLAN marks will The tunnel forwarding class configured to message carries out used tunnel forwarding class during heavy label, and class is forwarded using the tunnel determined The tunnel forwarding class that heavy label message is configured, and select configured tunnel forwarding class to be matched with the tunnel forwarding class of heavy label MPLS traffic engineering tunnels, the user terminal thereby, it is possible to be embodied as belonging to different VXLAN provides different forwarding service so that Service provider more accurately can carry out flow control to VXLAN networks.
Further, since VTEP is based on VXLAN mark selections tunnel, therefore the VTEP configurations to be carried out will not be with VTEP The AC of the VSI configured increases and increases, and simplifies user's configuration to be carried out.
According to below with reference to the accompanying drawings becoming to detailed description of illustrative embodiments, the further feature and aspect of the disclosure It is clear.
Brief description of the drawings
Comprising in the description and the attached drawing of a part for constitution instruction and specification together illustrate the disclosure Exemplary embodiment, feature and aspect, and for explaining the principle of the disclosure.
Fig. 1 is the application scenarios schematic diagram of the tunnel selection mechanism of the embodiment of the present disclosure.
Fig. 2 is that the embodiment of the present disclosure by Qos heavy labels tunnel forwards class to realize the tunnel selection mechanism of flow Application scenarios schematic diagram.
Fig. 3 is a kind of schematic diagram of VXLAN networkings of the embodiment of the present disclosure.
Fig. 4 is a kind of flow chart of tunnel selecting method according to an exemplary embodiment.
Fig. 5 shows the form of message descriptor.
Fig. 6 is the schematic diagram of another VXLAN networkings of the embodiment of the present disclosure.
Fig. 7 is a kind of structure diagram of tunnel selection device according to an exemplary embodiment.
Fig. 8 is a kind of hardware block diagram of tunnel selection device according to an exemplary embodiment.
Embodiment
Describe various exemplary embodiments, feature and the aspect of the disclosure in detail below with reference to attached drawing.It is identical in attached drawing Reference numeral represent functionally the same or similar element.Although the various aspects of embodiment are shown in the drawings, remove Non-specifically point out, it is not necessary to attached drawing drawn to scale.
Dedicated word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary " Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the disclosure, numerous details is given in embodiment below. It will be appreciated by those skilled in the art that without some details, the disclosure can equally be implemented.In some instances, for Method, means, element and circuit well known to those skilled in the art are not described in detail, in order to highlight the purport of the disclosure.
For purposes of illustration only, it is following first pair this disclosure relates to part concept be explained.
VXLAN networks are identified by VXLAN ID, VXLAN ID be also known as VNI (VXLAN Network Identifier, VXLAN network identifiers), the length of VNI is 24 bits, and the virtual machine in different VXLAN networks cannot carry out double layer intercommunication.
VTEP provides VSI (Virtual Switch Instance, the virtual switch of Layer2 switching service for a VXLAN Example), the stylobate that VSI can be regarded as on VTEP carries out the virtual switch of two layers of forwarding, VSI and VXLAN mono- in VXLAN One corresponds to.
MPLS traffic engineering tunnels are a virtual point-to-point connections from head node to destination node.Under normal conditions, MPLS Traffic engineering tunnel is by a CRLSP (Constraint-based Routed Label Switched Paths, based on CR- LDP Label switched path) form.Deployment CRLSP backup or need by flow by mulitpath transmit etc. in the case of, it is necessary to A plurality of CRLSP is established for same flow.In this case, MPLS traffic engineering tunnels are made of one group of CRLSP.On head node MPLS traffic engineering tunnels by MPLS TE patterns tunnel (Tunnel) interface identifier.When the outgoing interface of flow is Tunnel interfaces, The flow will be forwarded by forming the CRLSP of MPLS traffic engineering tunnels.
The operation principle of the tunnel selection mechanism of flow is:In the side of equipment access flow (message) upwardly through Flow Behavior (behavior) configured tunneling technique forwarding class (service-class), formulates tunnel for flow and forwards class;The tunnel of configured tunneling technique turns Class is sent out, can be forwarded with the tunnel forwarding matched flow of class in tunnel by the tunnel, rather than as being shared normal load It is forwarded to using all tunnels.
That is, forwarding class to flow and the equal configured tunneling technique of MPLS traffic engineering tunnels, and use configured configured tunneling technique The matched tunnel of configured tunneling technique forwarding class that forwarding class is configured with flow, is forwarded to the flow.
Fig. 1 is the application scenarios schematic diagram of the tunnel selection mechanism in the embodiment of the present disclosure.As shown in Figure 1, the applied field Scape includes device A, equipment P1 to P3 and equipment B.
MPLS traffic engineering tunnels can be created between device A and equipment B.Wherein, the MPLS created between device A and equipment B Traffic engineering tunnel includes:Tunnel 1, tunnel 2 and tunnel 3, tunnel 1 are device A-equipment P1- equipment B, and tunnel 2 is device A-equipment P2- Equipment B, tunnel 3 are device A-equipment P3- equipment B.Wherein, 1 non-configured tunneling technique of tunnel forwarding class, the tunnel that tunnel 2 is configured It is 3 to forward class, and the tunnel forwarding class that tunnel 3 is configured is 6.
If the tunnel forwarding class of slave device A to the flow of equipment B is 3, device A is forwarded the flow by tunnel 2 To equipment B.Correspondingly, if the tunnel forwarding class of slave device A to the flow of equipment B is 6, device A is flowed this by tunnel 3 Amount is forwarded to equipment B.If the non-configured tunneling technique forwarding class of the flow of slave device A to equipment B, device A are flowed this by tunnel 1 Amount is forwarded to equipment B.
By Qos heavy labels tunnel class can be forwarded to realize the tunnel selection mechanism of flow.
Fig. 2 is to forward class to realize the tunnel selection mechanism of flow by Qos heavy labels tunnel in the embodiment of the present disclosure Application scenarios schematic diagram.As shown in Fig. 2, the application scenarios include CE (Customer Edge, customer network edge) 1, CE 2nd, CE 3, device A, equipment P1 to P3 and equipment B.
Device A include Ethernet interface GigabitEthernet1/0/1, GigabitEthernet1/0/2 and GigabitEthernet1/0/3.Wherein, CE 1, CE 2 and CE 3 pass through Ethernet interface GigabitEthernet1/ respectively 0/1st, GigabitEthernet1/0/2 and GigabitEthernet1/0/3 access devices A.
Device A includes to the MPLS traffic engineering tunnels created between equipment B:Tunnel 1, tunnel 2 and tunnel 3, tunnel 1 are equipment A- equipment P1- equipment B, tunnel 2 are device A-equipment P2- equipment B, and tunnel 3 is device A-equipment P3- equipment B.Wherein, tunnel 1 The tunnel forwarding class configured is 1, and the tunnel forwarding class that tunnel 2 is configured is 2, and the tunnel forwarding class that tunnel 3 is configured is 3.
Device A realizes that the flow of CE 1 slave device A to equipment B passes through 1 (Tunnel of tunnel by performing following processing 1) forward.For the flow (message) from CE 1, Flow Behavior behavior_tunnel 1 is defined, the action of the Flow Behavior is The tunnel forwarding class of heavy label message is 1.Qos strategies policy 1 is defined, forwards class to specify the Flow Behavior to be for the tunnel behavior_tunnel1.Qos strategies policy1 is applied on Ethernet interface GigabitEthernet1/0/1.
Dedicated message is retouched during the message that device A will enter in processing from Ethernet interface GigabitEthernet1/0/1 Tunnel forwarding class (Tag service-class) the field heavy label stated in the head of symbol is 1, i.e. the tunnel forwarding class of the flow Value by heavy label be 1.
It is preferred that the forwarding module of device A carries out tunnel to the message.Specifically, forwarding module is selected according to the tunnel of flow The preference rule of mechanism, prioritizing selection tunnel forward the class tunnel identical with the tunnel forwarding class of flow to forward the flow, i.e., Tunnel 1 is selected to forward the flow.The forwarding module of device A is according to the destination address of message using the tunnel 1 of selection to the report Text is forwarded to.
Realize the flow of CE 2 or CE 3 slave device A to equipment B by tunnel 2 or tunnel 3 forward performed processing with Realize that the flow of CE 1 slave device A to equipment B forwards that performed processing is similar, and details are not described herein by tunnel 1.
Therefore, class is forwarded to realize the tunnel selection mechanism of flow by Qos heavy labels tunnel, can be real in device A The flow of existing CE 1 slave device A to equipment B is forwarded by tunnel 1, the flow of CE 2 slave device A to equipment B passes through 2 turns of tunnel Hair, the flow of CE 3 slave device A to equipment B are forwarded by tunnel 3.
However, forwarding class for above-mentioned Qos heavy labels tunnel, the Ethernet interface based on CE access devices A realizes flow Tunnel selection mechanism, therefore be only applicable to multiple CE respectively by the application scenarios of different Ethernet interface access devices, And it is difficult to be suitable for following VXLAN networkings:In the VXLAN networkings, CE is the VM (Virtual created on server Machine, virtual machine) and the server by Ethernet interface access VTEP (VXLAN Tunnel End Point, VXLAN endpoint of a tunnel), i.e., multiple CE access VTEP by an Ethernet interface.
Embodiment of the disclosure is described in detail below in conjunction with Figure of description.
Fig. 3 is a kind of schematic diagram of VXLAN networkings of the embodiment of the present disclosure.As shown in figure 3, the XLAN networkings include service Device, VTEP A, equipment P1 to P3 and VTEP B.
Equipment P1 to P3 is the equipment P in IP core network, is, for example, interchanger, and equipment P is only needed according to VTEP The outer layer purpose IP address of message after encapsulation carries out the message three layers of forwarding, and is not involved in VXLAN processing, such as equipment P It is not involved in the encapsulation and decapsulation of message.
VTEP A and VTEP B are the edge device of VXLAN, and VTEP A and VTEP B can be that an independent physics is set It is standby, such as the server where interchanger or virtual machine.VXLAN tunnels can be created between VTEP A and VTEP B, VTEP A can be data frame packaging V XLAN, UDP and IP heads, then by VXLAN tunnels via equipment P by the envelope Message after dress is transmitted to VTEP B, then the message is decapsulated by VTEP B.
VTEP A include being configured with VSI 1,2 and of VSI on Ethernet interface GigabitEthernet1/0/1, VTEP A VSI 3, VSI 1, VSI 2 and 3 corresponding VXLAN of VSI are identified as VXLAN 1, VXLAN 2 and VXLAN 3.
Being created on server has VM 1, VM 2 and a VM 3, and VM 1, VM 2 and VM 3 be belonging respectively to VXLAN 1, VXLAN 2 and VXLAN 3.VM 1, VM 2 and VM 3 on server pass through AC (Attachment Circuit, access respectively Circuit) VSI 1, VSI 2 and the VSI 3 configured is accessed on VTEP A.
It can create MPLS traffic engineering tunnels between VTEP A and VTEP B, and as shown in figure 3, VTEP A to VTEP B MPLS traffic engineering tunnels include:Tunnel 1, tunnel 2 and tunnel 3, tunnel 1 are VTEP A- equipment P1-VTEP B, and tunnel 2 is VTEP A- Equipment P2-VTEP B, tunnel 3 are VTEP A- equipment P3-VTEP B.And VTEP A are 1 configured tunneling technique of tunnel on VSI 1 Class 1 is forwarded, class 2 is forwarded for 2 configured tunneling technique of tunnel on VSI 2, class 3 is forwarded for 3 configured tunneling technique of tunnel on VSI 3.
For purposes of illustration only, embodiment of the disclosure is described in detail by taking the VXLAN networkings shown in Fig. 3 as an example below.
Fig. 4 shows the flow chart of the tunnel selecting method according to one embodiment of the disclosure.The tunnel selecting method is applied to Any one VTEP in VXLAN networkings, for example, the tunnel selecting method can be applied in the VXLAN networkings shown in Fig. 3 VTEP A.As shown in figure 4, the tunnel selecting method includes the following steps.
In step S410, the VXLAN entrained by message for determining and receiving identifies corresponding virtual switch instance The tunnel forwarding class configured on VSI.
In the present embodiment, VTEP receives message by Ethernet interface from user equipment, and wherein user equipment is, for example, to take The virtual machine configured on business device.The message that VTEP is received carries VXLAN marks (VNI), due to the VSI in VXLAN networkings Corresponded with VXLAN, therefore VTEP can first obtain the VNI entrained by the message, be uniquely determined further according to the VNI got Go out a VSI, the VSI which is accessed by the user equipment of the transmission message.
In the present embodiment, VTEP can configure VSI, and can be directed to and the corresponding MPLS of the VSI on the VSI Traffic engineering tunnel configured tunneling technique forwards class.VTEP can configure a VSI, can also configure multiple VSI.Configuring the feelings of multiple VSI Under condition, each VSI in multiple VSI is corresponding with the MPLS traffic engineering tunnel created on VTEP, and VTEP can be at this On VSI class is forwarded for the MPLS traffic engineering tunnels configured tunneling technique.VTEP can configure different tunnel forwarding on multiple VSI Class, can also configure identical tunnel forwarding class on multiple VSI.
Exemplary, in the VXLAN networkings shown in Fig. 3, VTEP A forward class on VSI 1 for 1 configured tunneling technique of tunnel 1, class 2 is forwarded for 2 configured tunneling technique of tunnel on VSI 2, class 3 is forwarded for 3 configured tunneling technique of tunnel on VSI 3.
Therefore, VTEP determines that the process of tunnel forwarding class can be as follows:Obtain the VXLAN marks entrained by the message;According to The VXLAN marks got determine the VSI belonging to the message;Obtain the tunnel forwarding class configured on the VSI.
It is exemplary, in the VXLAN networkings shown in Fig. 3, if VTEP A are from Ethernet interface GigabitEthernet1/0/1 receives the message for carrying VXLAN marks VXLAN 1, then VTEP A obtain the message and taken The VXLAN marks VXLAN 1 of band;VSI according to belonging to VXLAN 1 determines the message is and 1 corresponding VSI of VXLAN 1;Obtain and forward class 1 on the VSI 1 for the tunnel that tunnel 1 configures.
In certain embodiments, the value of tunnel forwarding class is smaller, and the priority of tunnel forwarding is lower, has identical tunnel Road forwards the value of class, and the priority of tunnel forwarding is identical, and the priority for being configured without the tunnel of tunnel forwarding class is minimum.
In certain embodiments, the value of tunnel forwarding class is smaller, and the priority of tunnel forwarding is higher, has identical tunnel Road forwards the value of class, and the priority of tunnel forwarding is identical, is configured without the highest priority in the tunnel of tunnel forwarding class.
It should be noted that the disclosure does not make specifically the relation of the value and the priority of tunnel forwarding of tunnel forwarding class Limit.
In step S430, according to the tunnel forwarding class pair determined and the tunnel in the corresponding message descriptor of message Class is forwarded to carry out heavy label.
Explanation on tunnel forwarding class can refer to the description previously for step S410, and details are not described herein.
In the present embodiment, VTEP is that the message received distributes a dedicated message descriptor, therefore each message tool Have and the corresponding message descriptor of the message.Fig. 5 shows the form of message descriptor, as shown in figure 5, message descriptor includes Block message (BlockInfo) field, tunnel service class (Tag service class) field and extended info field, wherein block Information field includes DF_HEAD_S fields, data field field and product reserved field.Data field field includes:Ethernet (Ethernet) field, IP fields, UDP fields, VXLAN fields and data (data) field.
In the present embodiment, VTEP determines the tunnel forwarding class heavy label in message descriptor in step S410 The tunnel forwarding class configured on VSI.Therefore, in the present embodiment, class is forwarded based on the VNI heavy labels tunnel that message carries.
Exemplary, continue the example presented above, determine for the tunnel that tunnel 1 configures to turn on VSI 1 in step S410 Class 1 is sent out, then the tunnel forwarding class heavy label in message descriptor is 1 by VTEP.
In step S450, in the MPLS traffic engineering tunnels created from VTEP, select configured tunnel forwarding class with again The tunnel forwarding matched MPLS traffic engineering tunnels of class of mark.
In the present embodiment, class is forwarded to flow and the equal configured tunneling technique of MPLS traffic engineering tunnels, and use configured tunnel to turn The tunnel matched tunnel of forwarding class that hair class is configured with flow, is forwarded to the flow.
Also, as described above, VTEP carries out heavy label based on the tunnel forwarding class that VNI configures flow, and VTEP can So that the tunnel forwarding class based on VNI heavy labels with being carried out respectively on VSI by the tunnel forwarding class that MPLS traffic engineering tunnels configure Matching, and select the MPLS traffic engineering tunnels of successful match.Thus, VTEP can be based on VNI selections tunnel.
Exemplary, continue the example presented above, since VTEP A forward the tunnel in message descriptor in step S430 Class heavy label is 1, therefore in step S450, VTEP A can turn 1 tunnel respectively with the tunnel 1 in MPLS traffic engineering tunnels The tunnel forwarding class 3 of hair class 1, the tunnel forwarding class 2 in tunnel 2 and tunnel 3 is matched, and selects the tunnel 1 of successful match.
Similarly, using embodiment of the disclosure, for the VXLAN networkings shown in Fig. 3, can be realized such as on VTEP A Lower demand:The flow of VM 1 from VTEP A to VTEP B are forwarded by tunnel 1;The flow of VM 2 from VTEP A to VTEP B pass through Tunnel 2 forwards;The flow of VM 3 from VTEP A to VTEP B are forwarded by tunnel 3.
Therefore, in embodiment of the disclosure, marked again based on the VNI tunnel forwarding classes for determining to configure message Forwarding class in tunnel used in clocking, the tunnel configured using the tunnel forwarding class heavy label message determined forward class, and The tunnel forwarding matched MPLS traffic engineering tunnels of class of tunnel forwarding class and heavy label are selected, thereby, it is possible to be embodied as belonging to different The user terminal of VXLAN provides different forwarding services, so that service provider more accurately can flow VXLAN networks Amount control, this enables service providers to provide diversified service using existing VXLAN Internet resources, while can be excellent Change VXLAN Internet resources, and rational network management is carried out to VXLAN Internet resources.
Further, since VTEP is based on VNI selections tunnel, therefore the VTEP configurations to be carried out will not be with being configured on VTEP The AC of VSI increase and increase, simplify user's configuration to be carried out.
Exemplary, Fig. 6 is the schematic diagram of another VXLAN networkings of the embodiment of the present disclosure.As shown in fig. 6, the XLAN Networking includes the equipment P1 to P3 and VTEP B in server 1, server 2, VTEP A, IP core network.
VTEP A include Ethernet interface GigabitEthernet1/0/1 and GigabitEthernet1/0/2, VTEP A On be configured with VSI 1, VSI 2 and VSI 3, VSI 1, VSI 2 and 3 corresponding VXLAN of VSI are identified as VXLAN 1, VXLAN 2 and VXLAN 3.
Server 1 accesses VTEP A by Ethernet interface GigabitEthernet1/0/1, and being created on server 1 has VM 1st, VM 2 and VM 3, and VM 1, VM 2 and VM 3 are belonging respectively to VXLAN 1, VXLAN 2 and VXLAN 3.On server 1 VM 1, VM 2 and VM 3 access on VTEP A the VSI 1, VSI 2 and the VSI 3 that are configured by AC respectively.
Server 2 accesses VTEP A by Ethernet interface GigabitEthernet1/0/2, and being created on server 2 has VM 4th, VM 5 and VM 6, and VM 4, VM 5 and VM 6 are belonging respectively to VXLAN 1, VXLAN 2 and VXLAN 3.On server 2 VM 4, VM 5 and VM 6 access on VTEP A the VSI 1, VSI 2 and the VSI 3 that are configured by AC respectively.
It can create MPLS traffic engineering tunnels between VTEP A and VTEP B, and as shown in fig. 6, VTEP A to VTEP B MPLS traffic engineering tunnels include:Tunnel 1, tunnel 2 and tunnel 3, tunnel 1 are VTEP A- equipment P1-VTEP B, and tunnel 2 is VTEP A- Equipment P2-VTEP B, tunnel 3 are VTEP A- equipment P3-VTEP B.
User only needs to forward class 1 on VSI 1 for 1 configured tunneling technique of tunnel for VTEP A, is tunnel 2 on VSI 2 Configured tunneling technique forward class 2, on VSI 3 for 3 configured tunneling technique of tunnel forward class 3, i.e. carry out with Fig. 3 shown in VXLAN networkings in The identical configurations of VTEP A, it becomes possible to realize following demand:The flow of VM1 and VM 4 from VTEP A to VTEP B pass through tunnel 1 forwarding;The flow of VM2 and VM 5 from VTEP A to VTEP B are forwarded by tunnel 2;VM 3 and VM 6 is from VTEP A to VTEP B Flow forwarded by tunnel 3.
Therefore, the VTEP A configurations to be carried out are as the AC of the VSI configured on VTEP A increases and remains unchanged.
In a kind of possible implementation, tunnel selecting method can also include:Message is encapsulated as VXLAN messages; VXLAN messages are encapsulated as MPLS messages;According to the destination address of MPLS messages, selected MPLS traffic engineering tunnels pair are used MPLS messages are forwarded to.
In the present embodiment, the destination address in VXLAN tunnels is identical with the destination address of selected MPLS traffic engineering tunnels. VTEP can be encapsulated IP packet by increasing VXLAN, UDP and IP on the basis of the IP packet received For VXLAN messages, then VXLAN messages can be sealed by the heading for increasing MPLS on the basis of the VXLAN messages Fill as MPLS messages, then the MPLS messages are transmitted to the destination of MPLS traffic engineering tunnels by selected MPLS traffic engineering tunnels Location.
In a kind of possible implementation, the multi-protocol label switching traffic engineering MPLS TE that are created from VTEP In tunnel, the tunnel forwarding matched MPLS traffic engineering tunnels of class of configured tunnel forwarding class and heavy label are selected, including:
In the MPLS traffic engineering tunnels created from VTEP, the tunnel of configured tunnel forwarding class and heavy label is selected to turn The identical MPLS traffic engineering tunnels of class are sent out,
Wherein, if the tunnel forwarding class that a plurality of MPLS traffic engineering tunnels in the MPLS traffic engineering tunnels created on VTEP are configured It is identical with the tunnel forwarding class of heavy label, then select any one MPLS traffic engineering tunnel in a plurality of MPLS traffic engineering tunnels;
If tunnel of the tunnel forwarding class that the MPLS traffic engineering tunnels created on VTEP are configured with heavy label forwards class not Together, then selection and the matched MPLS traffic engineering tunnels of preset rules in the MPLS traffic engineering tunnels created from VTEP.
Wherein, user can be arranged as required to preset rules.Exemplary, which is, for example, tunnel forwarding class Value it is smaller, possess the tunnel forwarding class MPLS traffic engineering tunnels tunnel forwarding priority it is higher.Exemplary, this is pre- If rule be, for example, tunnel forwarding class value it is smaller, possess the tunnel forwarding class MPLS traffic engineering tunnels tunnel forwarding it is excellent First level is lower.
Fig. 7 is a kind of structure diagram of tunnel selection device according to an exemplary embodiment, and tunnel selection fills Any one VTEP that can be applied in VXLAN networkings is put, for example, the tunnel selection device can be applied to the VTEP in Fig. 3 VTEP A in A or Fig. 6.As shown in fig. 7, the tunnel selection device 700 can include determining that module 710, heavy label module 730 With selecting module 750.
Wherein it is determined that module 710 identifies corresponding virtual friendship for the definite VXLAN with entrained by message that is receiving The tunnel forwarding class configured is changed on example VSI.
Heavy label module 730 is connected with determining module 710, and the tunnel for being determined according to determining module 710 forwards class Pair with the corresponding message descriptor of message tunnel forwarding class carry out heavy label.
Selecting module 750 is connected with heavy label module 730, for the multiprotocol label switching flow created from VTEP In engineering MPLS traffic engineering tunnels, configured tunnel forwarding class is selected to be matched with the tunnel forwarding class of 730 heavy label of heavy label module MPLS traffic engineering tunnels.
In a kind of possible implementation, selecting module 750 is specifically used for:The MPLS TE tunnels created from VTEP Road, selects the configured tunnel forwarding class MPLS traffic engineering tunnel identical with the tunnel forwarding class of heavy label, wherein, if on VTEP The tunnel forwarding class and the tunnel forwarding class of heavy label that a plurality of MPLS traffic engineering tunnels in the MPLS traffic engineering tunnels created are configured It is identical, then select any one MPLS traffic engineering tunnel in a plurality of MPLS traffic engineering tunnels;If the MPLS traffic engineering tunnels created on VTEP It is different from the tunnel forwarding class of heavy label, then select to match with preset rules in the MPLS traffic engineering tunnels created from VTEP MPLS traffic engineering tunnels.
In a kind of possible implementation, tunnel selection device 700 can also include configuration module (not shown), be used for On the VSI configured class is forwarded for MPLS traffic engineering tunnels configured tunneling technique corresponding with VSI.
In a kind of possible implementation, determining module 710 is specifically used for:Determine entrained by the message that receives VXLAN is identified;Determine to identify corresponding VSI with VXLAN;Determine to identify the tunnel configured on corresponding VSI with VXLAN Forward class.
In a kind of possible implementation, tunnel selection device 700 (can also not show including VXLAN package modules Go out), for message to be encapsulated as VXLAN messages;MPLS package module (not shown), for VXLAN messages to be encapsulated as MPLS Message;Forwarding module (not shown), for the destination address according to MPLS messages, uses selected MPLS traffic engineering tunnels pair MPLS messages are forwarded to.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 8 is a kind of hardware block diagram of tunnel selection device according to an exemplary embodiment.Reference Fig. 8, The device 800 may include processor 901, be stored with the machinable medium 902 of machine-executable instruction.Processor 901 It can communicate with machinable medium 902 via system bus 903.Also, processor 901 passes through read machine readable storage With the tunnel corresponding machine-executable instruction of selection logic to perform tunnel selecting method described above in medium 902.
Machinable medium 902 referred to herein can be any electronics, magnetism, optics or other physical stores Device, can include or store information, such as executable instruction, data, etc..For example, machinable medium can be: RAM (Radom Access Memory, random access memory), volatile memory, nonvolatile memory, flash memory, storage are driven Dynamic device (such as hard disk drive), solid state hard disc, any kind of storage dish (such as CD, dvd), or similar storage are situated between Matter, or combinations thereof.
The presently disclosed embodiments is described above, described above is exemplary, and non-exclusive, and It is not limited to disclosed each embodiment.In the case of without departing from the scope and spirit of illustrated each embodiment, for this skill Many modifications and changes will be apparent from for the those of ordinary skill in art field.The selection of term used herein, purport Best explain the principle of each embodiment, practical application or technological improvement to the technology in market, or lead this technology Other those of ordinary skill in domain are understood that each embodiment disclosed herein.

Claims (10)

1. a kind of tunnel selecting method, can virtually expand applied to any one in virtual expansible local area network VXLAN networkings Open up LAN endpoint of a tunnel VTEP, it is characterised in that the described method includes:
The VXLAN entrained by message for determining and receiving identifies the tunnel configured on corresponding virtual switch instance VSI Forward class;
Weight is carried out according to the tunnel forwarding class pair determined and the tunnel forwarding class in the corresponding message descriptor of the message Mark;
In the multi-protocol label switching traffic engineering MPLS traffic engineering tunnels created from the VTEP, configured tunnel is selected Forward the tunnel of the class and heavy label forwarding matched MPLS traffic engineering tunnels of class.
2. the according to the method described in claim 1, it is characterized in that, multiprotocol label switching stream created from the VTEP Measure in engineering MPLS traffic engineering tunnels, select the tunnel forwarding matched MPLS TE tunnels of class of configured tunnel forwarding class and heavy label Road, including:
In the MPLS traffic engineering tunnels created from the VTEP, the tunnel of configured tunnel forwarding class and the heavy label is selected The identical MPLS traffic engineering tunnels of road forwarding class,
Wherein, if the tunnel forwarding class that a plurality of MPLS traffic engineering tunnels in the MPLS traffic engineering tunnels created on the VTEP are configured It is identical with the tunnel forwarding class of the heavy label, then select any one MPLS TE tunnel in a plurality of MPLS traffic engineering tunnels Road;
If tunnel of the tunnel forwarding class that the MPLS traffic engineering tunnels created on the VTEP are configured with the heavy label forwards Class is different, then selection and the matched MPLS traffic engineering tunnels of preset rules in the MPLS traffic engineering tunnels created from the VTEP.
3. according to the method described in claim 1, it is characterized in that, marked in the VXLAN entrained by the message for determining and receiving Before the tunnel forwarding class configured on sensible corresponding virtual switch instance VSI, including:
On the VSI configured class is forwarded for MPLS traffic engineering tunnels configured tunneling technique corresponding with the VSI.
4. according to the method described in claim 3, it is characterized in that, the VXLAN entrained by the message for determining and receiving is identified The tunnel forwarding class configured on corresponding virtual switch instance VSI, including:
The VXLAN entrained by message for determining to receive is identified;
Determine to identify corresponding VSI with the VXLAN;
Determine to identify the tunnel configured on corresponding VSI forwarding class with the VXLAN.
5. method according to any one of claim 1 to 4, it is characterised in that further include:
The message is encapsulated as VXLAN messages;
VXLAN messages are encapsulated as MPLS messages;
According to the destination address of the MPLS messages, the MPLS messages are forwarded to using selected MPLS traffic engineering tunnels.
6. a kind of tunnel selection device, can virtually expand applied to any one in virtual expansible local area network VXLAN networkings Open up LAN endpoint of a tunnel VTEP, it is characterised in that described device includes:
Determining module, corresponding virtual switch instance VSI is identified for the definite VXLAN with entrained by message that is receiving The tunnel forwarding class configured;
Heavy label module, for according to the tunnel forwarding class pair determined and the tunnel in the corresponding message descriptor of the message Road forwarding class carries out heavy label;
Selecting module, in the multi-protocol label switching traffic engineering MPLS traffic engineering tunnels that are created from the VTEP, selection The tunnel forwarding class and the tunnel forwarding matched MPLS traffic engineering tunnels of class of heavy label configured.
7. device according to claim 6, it is characterised in that the selecting module is specifically used for:
In the MPLS traffic engineering tunnels created from the VTEP, the tunnel of configured tunnel forwarding class and the heavy label is selected The identical MPLS traffic engineering tunnels of road forwarding class,
Wherein, if the tunnel forwarding class that a plurality of MPLS traffic engineering tunnels in the MPLS traffic engineering tunnels created on the VTEP are configured It is identical with the tunnel forwarding class of the heavy label, then select any one MPLS TE tunnel in a plurality of MPLS traffic engineering tunnels Road;
If tunnel of the tunnel forwarding class that the MPLS traffic engineering tunnels created on the VTEP are configured with the heavy label forwards Class is different, then selection and the matched MPLS traffic engineering tunnels of preset rules in the MPLS traffic engineering tunnels created from the VTEP.
8. device according to claim 6, it is characterised in that further include:
Configuration module, for being that MPLS traffic engineering tunnels configured tunneling technique corresponding with the VSI forwards class on the VSI configured.
9. device according to claim 8, it is characterised in that the determining module is specifically used for:
The VXLAN entrained by message for determining to receive is identified;
Determine to identify corresponding VSI with the VXLAN;
Determine to identify the tunnel configured on corresponding VSI forwarding class with the VXLAN.
10. the device according to any one of claim 6 to 9, it is characterised in that further include:
VXLAN package modules, for the message to be encapsulated as VXLAN messages;
MPLS package modules, for the VXLAN messages to be encapsulated as MPLS messages;
Forwarding module, for the destination address according to the MPLS messages, using selected MPLS traffic engineering tunnels to the MPLS Message is forwarded to.
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 true CN107995084A (en) 2018-05-04
CN107995084B 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)

Cited By (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场景中的应用", 《无线互联科技》 *

Cited By (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

Also Published As

Publication number Publication date
CN107995084B (en) 2020-12-01

Similar Documents

Publication Publication Date Title
US10320664B2 (en) Cloud overlay for operations administration and management
JP5410998B2 (en) Software control plane for switches and routers
JP2023516180A (en) Packet processing method and apparatus, network device and storage medium
CN105245452B (en) Multi-protocol label switching traffic engineering tunnel establishing method and equipment
CN112087386B (en) Message processing method, device and system
US9819586B2 (en) Network-based ethernet switching packet switch, network, and method
CN108737128A (en) It is a kind of to realize the method and device with interior operation management maintainance IOAM
CN111628921B (en) Message processing method, message forwarding device and message processing device
CN105765926A (en) Configurable service proxy mapping
CN109587059B (en) SR-BE inner layer tunnel label configuration method, device and communication system
CN111385207A (en) Service data forwarding method, network device and network system
EP3253012B1 (en) Method and apparatus for obtaining port path
US10833975B2 (en) Operations processing of multiple-protocol packets by packet switching devices in a network
CN104219098A (en) Hard pipe building method, packet forwarding method and device in network
US20220263751A1 (en) Packet Processing Method, Apparatus, and System
CN112019433A (en) Message forwarding method and device
US20230300070A1 (en) Packet Sending Method, Device, and System
US20230216786A1 (en) Method for forwarding service packet, method for sending sr policy, device, and system
CN109788018B (en) Cross-domain service intercommunication method, network equipment and storage medium
JP2009519666A (en) Resource sharing between network and tunnel
EP2832055B1 (en) Pseudowire groups in a packet switched network
CN107995084A (en) Tunnel selecting method and device
US20130258871A1 (en) Psuedowire extended group messaging in a packet switched network
WO2022222750A1 (en) Packet forwarding method and apparatus, network device, and storage medium
CN111435948B (en) Method for transmitting message in network 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