CN109005097A - Message forwarding method and device - Google Patents
Message forwarding method and device Download PDFInfo
- Publication number
- CN109005097A CN109005097A CN201810706217.2A CN201810706217A CN109005097A CN 109005097 A CN109005097 A CN 109005097A CN 201810706217 A CN201810706217 A CN 201810706217A CN 109005097 A CN109005097 A CN 109005097A
- Authority
- CN
- China
- Prior art keywords
- tunnel
- vxlan
- vsi
- state
- mark
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/146—Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/148—Migration or transfer of sessions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention relates to a kind of message forwarding method and devices.This method comprises: tunnel switching command is received, the mark of mark and the first tunnel VXLAN including the first VSI;According to the mark of the first VSI and the mark in the first tunnel VXLAN, the tunnel interface state in the first tunnel VXLAN and the tunnel interface state in the 2nd tunnel VXLAN in the first VSI are obtained;If the tunnel interface state in the first tunnel VXLAN is effective status in the first VSI, and the 2nd the tunnel VXLAN tunnel interface state be blocked state, the tunnel interface state in the first tunnel VXLAN in the first VSI is then switched to blocked state, and the tunnel interface state in the 2nd tunnel VXLAN is switched to effective status;The corresponding exit port of first VSI in forwarding table stored in VTEP is changed to the mark in the 2nd tunnel VXLAN by the mark in the first tunnel VXLAN, VTEP can neatly select the tunnel VXLAN in VSI for being forwarded to service message.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of message forwarding methods and device.
Background technique
Empty seemingly extension local area network (English: Virtual Extensible Local Area Network, abbreviation: VXLAN)
It is to encapsulate number of users based on network protocol (English: Internet Protocol, abbreviation: IP) network, using medium access control
According to datagram protocol (English: Media Access Control in User Datagram Protocol, abbreviation: MAC in UDP)
Two-layer virtual private network (English: Virtual Private Network, abbreviation: VPN) technology of packing forms.VXLAN master
To be applied to data center network, existing service provider or enterprise IP network can be based on, mentioned for the physical site of dispersion
It is interconnected for two layers, and business isolation can be provided for different tenants.
In the related technology, reliability service message transmitted by the active and standby tunnel VXLAN guarantee VXLAN network.For example,
First tunnel VXLAN and the 2nd tunnel VXLAN are the active and standby tunnel VXLAN.Service message is turned by the first tunnel VXLAN
Hair.If the first tunnel VXLAN breaks down, service message is switched to the 2nd tunnel VXLAN and is forwarded.Thus business report
The transmission of text will not be interrupted, and realize the reliability for improving VXLAN network.
But VTEP can not neatly select the tunnel VXLAN for being forwarded to service message.In other words, if
Service message is forwarded by the first tunnel VXLAN, unless the tunnel interface state in the first tunnel VXLAN becomes from effective status
For invalid state, otherwise the tunnel interface state in the 2nd tunnel VXLAN can not be switched to effective status, business report from blocked state
Text can not be switched to the 2nd tunnel VXLAN and be forwarded.If the tunnel interface state in the first tunnel VXLAN is always maintained at effectively
State, service message will be forwarded all the time by the first tunnel VXLAN, and can not be switched to the 2nd tunnel VXLAN and be turned
Hair.
Summary of the invention
In view of this, the invention proposes a kind of message forwarding method and device, with solve in the related technology active and standby
In the tunnel VXLAN, the problem of VTEP can not neatly select the tunnel VXLAN for being forwarded to service message.
In a first aspect, the invention proposes a kind of message forwarding method, it is being suitable for VXLAN endpoint of a tunnel VTEP, it is described
VTEP configures the first tunnel VXLAN and the association of relevant first VXLAN configured with the first virtual switch instance VSI, the first VSI
The 2nd tunnel VXLAN of first VXLAN, which comprises
Receive tunnel switching command, the tunnel switching command include the first VSI mark and the first VXLAN
The mark in tunnel;
According to the mark of the first VSI and the mark in the first tunnel VXLAN, obtain described in the first VSI
The tunnel interface state in the first tunnel VXLAN and the tunnel interface state in the 2nd tunnel VXLAN;
If the tunnel interface state in the first tunnel VXLAN described in the first VSI is effective status, and described second
The tunnel interface state in the tunnel VXLAN is blocked state, then connects the tunnel in the first tunnel VXLAN described in the first VSI
Mouth state is switched to blocked state, and the tunnel interface state in the 2nd tunnel VXLAN is switched to effective status;
By the corresponding exit port of the first VSI in forwarding table stored in the VTEP by the first tunnel VXLAN
Mark be changed to the mark in the 2nd tunnel VXLAN.
With reference to first aspect, in the first implementation, the method also includes:
If the tunnel interface state in the first tunnel VXLAN described in the first VSI is effective status, and described second
The tunnel interface state in the tunnel VXLAN is invalid state, then keeps the tunnel in the first tunnel VXLAN described in the first VSI
The tunnel interface state in Interface status and the 2nd tunnel VXLAN is constant.
With reference to first aspect, in the second implementation, the method also includes:
If the tunnel interface state in the first tunnel VXLAN described in the first VSI becomes invalid shape from effective status
The tunnel interface state in the 2nd tunnel VXLAN described in the first VSI is then switched to effective status from blocked state by state;
By the corresponding exit port of the first VSI in forwarding table stored in the VTEP by the first tunnel VXLAN
Mark be changed to the mark in the 2nd tunnel VXLAN.
With reference to first aspect, in the third implementation, the tunnel in the first tunnel VXLAN described in the first VSI
After pipeline joint state becomes invalid state from effective status, the method also includes:
The order of tunnel switchback is received, the tunnel switchback order includes the mark of the first VSI, the first VXLAN
The mark and switchback duration in tunnel;
If the tunnel interface state in the first tunnel VXLAN described in the first VSI is switched to obstruction from invalid state
State, and blocked state is kept to reach the switchback duration, then by the tunnel in the first tunnel VXLAN described in the first VSI
Interface status is switched to effective status from blocked state, and the tunnel interface state in the 2nd tunnel VXLAN is cut from effective status
It is changed to blocked state;
By the corresponding exit port of the first VSI in forwarding table stored in the VTEP by the 2nd tunnel VXLAN
Mark be changed to the mark in the first tunnel VXLAN.
With reference to first aspect, in the 4th kind of implementation, VTEP other than the VTEP or the VTEP is configured with the
Two VSI, the 2nd VSI configure the first tunnel VXLAN of relevant 2nd VXLAN, the method also includes:
When the tunnel interface state in the first tunnel VXLAN described in the first VSI changes, described second is kept
The tunnel interface state in the first tunnel VXLAN described in VSI is constant.
In second aspect, the invention proposes a kind of apparatus for forwarding message, are suitable for VXLAN endpoint of a tunnel VTEP, described
VTEP configures the first tunnel VXLAN and the association of relevant first VXLAN configured with the first virtual switch instance VSI, the first VSI
The 2nd tunnel VXLAN of first VXLAN, described device include:
Receiving module, for receiving tunnel switching command, the tunnel switching command include the first VSI mark and
The mark in the first tunnel VXLAN;
Module is obtained, for according to the mark of the first VSI and the mark in the first tunnel VXLAN, described in acquisition
The tunnel interface state in the first tunnel VXLAN described in first VSI and the tunnel interface state in the 2nd tunnel VXLAN;
Processing module, if the tunnel interface state for the first tunnel VXLAN described in the first VSI is effective shape
State, and the tunnel interface state in the 2nd tunnel VXLAN is blocked state, then by the first VXLAN described in the first VSI
The tunnel interface state in tunnel is switched to blocked state, and the tunnel interface state in the 2nd tunnel VXLAN has been switched to
Effect state;
Replace module, for by the corresponding exit port of the first VSI in forwarding table stored in the VTEP by described
The mark in the first tunnel VXLAN is changed to the mark in the 2nd tunnel VXLAN.
In conjunction with second aspect, in the first implementation, described device further include:
The processing module, if the tunnel interface state for being also used to the first tunnel VXLAN described in the first VSI is
Effective status, and the tunnel interface state in the 2nd tunnel VXLAN is invalid state, then keeps described in the first VSI
The tunnel interface state in the first tunnel VXLAN and the tunnel interface state in the 2nd tunnel VXLAN are constant.
In conjunction with second aspect, in the second implementation, described device further include:
The processing module, if be also used to the tunnel interface state in the first tunnel VXLAN described in the first VSI from
Effective status becomes invalid state, then by the tunnel interface state in the 2nd tunnel VXLAN described in the first VSI from obstruction shape
State is switched to effective status;
The replacement module is also used to the corresponding exit port of the first VSI in forwarding table stored in the VTEP
The mark in the 2nd tunnel VXLAN is changed to by the mark in the first tunnel VXLAN.
In conjunction with second aspect, in the third implementation, described device further include:
The receiving module, is also used to receive tunnel switchback order, and the tunnel switchback order includes the first VSI
Mark, the mark and switchback duration in the first tunnel VXLAN;
The processing module, if be also used to the tunnel interface state in the first tunnel VXLAN described in the first VSI from
Invalid state is switched to blocked state, and blocked state is kept to reach the switchback duration, then by described in the first VSI the
The tunnel interface state in one tunnel VXLAN is switched to effective status, the tunnel interface in the 2nd tunnel VXLAN from blocked state
State is switched to blocked state from effective status;
The replacement module is also used to the corresponding exit port of the first VSI in forwarding table stored in the VTEP
The mark in the first tunnel VXLAN is changed to by the mark in the 2nd tunnel VXLAN.
In conjunction with second aspect, in the third implementation, VTEP other than the VTEP or the VTEP is configured with the
Two VSI, the 2nd VSI configure the first tunnel VXLAN of relevant 2nd VXLAN, described device further include:
The processing module, the tunnel interface state for being also used to the first tunnel VXLAN described in the first VSI occur
When variation, keep the tunnel interface state in the first tunnel VXLAN described in the 2nd VSI constant.
In the third aspect, the present invention provides a kind of apparatus for forwarding message, comprising: processor;It can for storage processor
The memory executed instruction;Wherein, the processor is configured to executing the above method.
In fourth aspect, the present invention provides a kind of non-volatile computer readable storage medium storing program for executing, are stored thereon with calculating
Machine program instruction, the computer program instructions realize the above method when being executed by processor.
The message forwarding method and device of the embodiment of the present invention lead in the tunnel VXLAN that VSI configures multiple association VXLAN
It crosses tunnel switching command and can be realized VTEP and neatly select in VSI for the tunnel VXLAN that is forwarded to service message, from
And realize the reasonable employment to the tunnel VXLAN.For example, switching is biggish using bandwidth when the quantity of service message increases
The tunnel VXLAN.
According to below with reference to the accompanying drawings becoming to detailed description of illustrative embodiments, other feature of the invention and aspect
It is clear.
Detailed description of the invention
Comprising in the description and constitute the attached drawing of part of specification and specification together illustrate it is of the invention
Exemplary embodiment, feature and aspect, and principle for explaining the present invention.
Fig. 1 shows the schematic diagram of VXLAN networking according to an embodiment of the invention;
Fig. 2 shows the flow charts of message forwarding method according to an embodiment of the invention;
Fig. 3 shows the block diagram of apparatus for forwarding message according to an embodiment of the invention;
Fig. 4 shows the block diagram of apparatus for forwarding message according to an embodiment of the invention.
Specific embodiment
Below with reference to attached drawing various exemplary embodiments, feature and the aspect that the present invention will be described in detail.It is identical in attached drawing
Appended drawing reference indicate element functionally identical or similar.Although the various aspects of embodiment are shown in the attached drawings, remove
It non-specifically points 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.
It is only to be not intended to limit the invention merely for for the purpose of describing particular embodiments in terminology used in the present invention.
It is also intended in the present invention and the "an" of singular used in the attached claims, " described " and "the" including majority
Form, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to and wraps
It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the present invention
A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from
In the case where the scope of the invention, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on context, word as used in this " if " or " if " it is understood that become " ... when " or
" when ... " or " in response to determination " etc..
In addition, in order to better illustrate the present invention, numerous details is given in specific embodiment below.
It will be appreciated by those skilled in the art that without certain details, the present invention equally be can 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 purport of the invention.
Technical solution in embodiment in order to enable those skilled in the art to better understand the present invention, below first to this hair
Portion of techniques term involved in bright embodiment is briefly described.
Virtual machine (English: Virtual Machine, referred to as: VM): one or more can be created on a server
VM, different VM may belong to different VXLAN.The VM for belonging to identical VXLAN is in the same logic double layer network, each other it
Between double layered communication interaction;Belong to two layers of isolation between the VM of different VXLAN.
VXLAN endpoint of a tunnel (English: VXLAN Tunnel End Point, referred to as: VTEP): the edge device of VXLAN.
The relevant treatment of VXLAN carries out all on VTEP, such as identifies VXLAN belonging to ethernet data frame, is based on VXLAN to data
Frame carries out two layers of forwarding, encapsulation/decapsulation message etc..VTEP can be an independent physical equipment, be also possible to where VM
Server.
The tunnel VXLAN: the point-to-point logical tunnel between two VTEP.VTEP is data frame packaging V XLAN, UDP head
After IP, the message after encapsulation is transmitted to by distal end VTEP by the tunnel VXLAN, distal end VTEP unseals it
Dress.
Virtual switch instance (English: Virtual Switch Instance, referred to as: VSI): it is a VXLAN on VTEP
The virtual switch instance of Layer2 switching service is provided.VSI can regard that the stylobate on VTEP carries out two layers of forwarding in VXLAN as
Virtual switch, with traditional ethernet interchanger institute it is functional, including source MAC study, MAC address aging,
It floods.VSI and VXLAN is corresponded.
VXLAN network: user network may include the VM being distributed in multiple websites of diverse geographic location.It can use
The tunnel VXLAN connects these websites, provides the two-layer VPN of a logic for user.This two-layer VPN is known as one
VXLAN network.VXLAN network is identified by VXLAN ID, VXLAN ID be also known as VXLAN network identifier (English:
VXLAN Network Identifier, referred to as: VNI), the length is 24 bits.
In the related technology, reliability service message transmitted by the active and standby tunnel VXLAN guarantee VXLAN network.Wherein,
The main tunnel VXLAN refers in the active and standby tunnel VXLAN that tunnel interface state is the tunnel VXLAN of effective status.The main tunnel VXLAN
Currently service message is forwarded.The standby tunnel VXLAN refers in the active and standby tunnel VXLAN, other other than the main tunnel VXLAN
The tunnel VXLAN.The tunnel interface state in the standby tunnel VXLAN can be blocked state or invalid state.The standby tunnel VXLAN is currently not
Service message is forwarded.
As an example, the first tunnel VXLAN and the 2nd tunnel VXLAN are the active and standby tunnel VXLAN.In the first VXLAN
When the tunnel interface state in tunnel is effective status, the tunnel interface state in the 2nd tunnel VXLAN is blocked state.First
The tunnel VXLAN is the main tunnel VXLAN, and the 2nd tunnel VXLAN is the standby tunnel VXLAN, service message by the first tunnel VXLAN into
Row forwarding.If the first tunnel VXLAN breaks down, the tunnel interface state in the first tunnel VXLAN becomes from effective status
The tunnel interface state of invalid state, the 2nd tunnel VXLAN is switched to effective status from blocked state.2nd tunnel VXLAN is
The main tunnel VXLAN, the first tunnel VXLAN are the standby tunnel VXLAN, and service message is forwarded by the 2nd tunnel VXLAN.Thus
The transmission of service message will not be interrupted, and realize the reliability for improving VXLAN network.
But VTEP can not neatly select the tunnel VXLAN for being forwarded to service message.In other words, if
Service message is forwarded by the first tunnel VXLAN, unless the tunnel interface state in the first tunnel VXLAN becomes from effective status
For invalid state, otherwise the tunnel interface state in the 2nd tunnel VXLAN can not be switched to effective status, business report from blocked state
Text can not be switched to the 2nd tunnel VXLAN and be forwarded.If the tunnel interface state in the first tunnel VXLAN is always maintained at effectively
State, service message will be forwarded all the time by the first tunnel VXLAN, and can not be switched to the 2nd tunnel VXLAN and be turned
Hair.
In addition, if the first tunnel VXLAN breaks down, the tunnel interface state in the first tunnel VXLAN is from effective status
Become invalid state, the tunnel interface state in the 2nd tunnel VXLAN is switched to effective status, service message switching from blocked state
It is forwarded to the 2nd tunnel VXLAN.But if the first VXLAN Segment rehabilitation failure, the tunnel in the first tunnel VXLAN
Interface status is switched to blocked state from invalid state.Unless the tunnel interface state in the 2nd tunnel VXLAN becomes from effective status
For invalid state, otherwise the tunnel interface state in the first tunnel VXLAN can not be switched to effective status, business report from blocked state
Text can not be switched to the first tunnel VXLAN and be forwarded.
For when VTEP configures the tunnel VXLAN of multiple association VXLAN, VTEP can not be selected neatly in the related technology
The tunnel VXLAN for being forwarded to service message, the problems such as causing the utilization rate in the tunnel VXLAN lower, the disclosure are implemented
Example provides a kind of message forwarding method and device.The message forwarding method and device of the embodiment of the present invention configure multiple in VSI
It is associated with the tunnel VXLAN of VXLAN, VTEP can be realized by tunnel switching command and neatly select in VSI for business report
The tunnel VXLAN that text is forwarded, to realize the reasonable employment to the tunnel VXLAN.For example, the quantity in service message increases
When, switching uses the biggish tunnel VXLAN of bandwidth.
Fig. 1 shows the schematic diagram of VXLAN networking according to an embodiment of the invention.The IP address of VTEP1 is 1.1.1.1,
The IP address of VTEP2 is 2.2.2.2, and the IP address of VTEP3 is 3.3.3.3.The IP address of VM1 is 10.1.1.2, the IP of VM2
Location is 11.1.1.2.As shown in Figure 1:
The tunnel VXLAN Tunnel1 is established between VTEP1 and VTEP2.In VTEP1, the source IP address of Tunnel1 is
1.1.1.1, purpose IP address 2.2.2.2.In VTEP2, the source IP address of Tunnel1 is 2.2.2.2, and purpose IP address is
1.1.1.1。
The tunnel VXLAN Tunnel2 is established between VTEP1 and VTEP2.In VTEP1, the source IP address of Tunnel1 is
1.1.1.1, purpose IP address 3.3.3.3.In VTEP3, the source IP address of Tunnel2 is 3.3.3.3, and purpose IP address is
1.1.1.1。
VSI1 is configured on VTEP1, VSI1 configuration Tunnel1 and Tunnel2 is associated with VXLAN10.VM1 passes through access electricity
Road (English: Attachment Circuit, referred to as: AC) access VSI1.VSI2 is configured on VTEP2, VSI2 configures Tunnel1
It is associated with VXLAN10.VM2 accesses VSI2 by AC.VSI3 is configured on VTEP3, VSI3 configures Tunnel2 and VXLAN10 and closes
Connection.
The message forwarding method of the embodiment of the present invention, is suitable for VXLAN endpoint of a tunnel VTEP, which is configured with first
VSI, the first VSI configure the first tunnel VXLAN of relevant first VXLAN and the 2nd tunnel VXLAN for being associated with the first VXLAN.
Fig. 2 shows the flow charts of message forwarding method according to an embodiment of the invention.As shown in Fig. 2, the method comprising the steps of S21 is extremely
Step S24.
In the step s 21, tunnel switching command is received, tunnel switching command includes the mark and the first VXLAN of the first VSI
The mark in tunnel.
Wherein, tunnel switching command refers to the order switched over for the tunnel interface state to tunnel.Pass through tunnel
Switching command, which can be realized, switch the standby tunnel VXLAN as the main tunnel VXLAN, is thus configured in VSI and multiple is associated with VXLAN's
The tunnel VXLAN can be realized VTEP and neatly select the tunnel VXLAN for being used to be forwarded service message in VSI.
In one implementation, tunnel switching command is vxlan-tunnel switchover vsi vsi-name
tunnel tunnel-id.Wherein, vsi-name indicates the mark of VSI, and tunnel-id indicates the mark in the tunnel VXLAN.Pass through
The mark of VSI and the mark in the tunnel VXLAN can uniquely determine the tunnel VXLAN.Pass through the vsi- in tunnel switching command
Name and tunnel-id can uniquely determine the tunnel VXLAN.
In one implementation, if the tunnel interface for passing through the tunnel VXLAN determined vsi-name and tunnel-id
State is effective status, and the tunnel interface state in the corresponding standby tunnel VXLAN in the tunnel VXLAN is blocked state, then switches
Use the corresponding standby tunnel VXLAN in the tunnel VXLAN.
In step S22, according to the mark of the first VSI and the mark in the first tunnel VXLAN, obtain first in the first VSI
The tunnel interface state in the tunnel VXLAN and the tunnel interface state in the 2nd tunnel VXLAN.
Table 1 shows the schematic table of the tunnel interface state in the tunnel VXLAN according to an embodiment of the invention.As shown in table 1,
The tunnel interface state in the tunnel VXLAN includes: effective status, blocked state and invalid state.Wherein, the tunnel in the tunnel VXLAN
Interface status is configured in VSI, only effective to the VSI of the tunnel interface state in the setting tunnel VXLAN, and to other
VSI is invalid.
Table 1
Tunnel state | Forwarding module whether there is tunnel | Whether converting flow is used for |
Up (available mode) | It is | It is |
Block (blocked state) | It is no | It is no |
Down (invalid state) | It is no | It is no |
Wherein, if the tunnel interface state in the tunnel VXLAN is effective status in VSI, VSI can pass through the VXLAN
The interface in tunnel sends and receives service message.If the tunnel interface state in the tunnel VXLAN is blocked state, VSI in VSI
Service message can not be sent and received by the interface in the tunnel VXLAN.If the tunnel interface in the tunnel VXLAN in VSI
State is invalid state, then VSI can not send and receive service message by the interface in the tunnel VXLAN.
In step S23, if the tunnel interface state in the first tunnel VXLAN is effective status in the first VSI, and second
The tunnel interface state in the tunnel VXLAN is blocked state, then cuts the tunnel interface state in the first tunnel VXLAN in the first VSI
It is changed to blocked state, and the tunnel interface state in the 2nd tunnel VXLAN is switched to effective status.
As an example, as shown in Figure 1, configuring VSI1 on VTEP1, VSI1 configure Tunnel1 and Tunnel2 with
VXLAN10 association.VM1 accesses VSI1 by AC.If the tunnel interface state of Tunnel1 is effective status in VSI1,
Tunnel1 is the main tunnel VXLAN, and Tunnel2 is the standby tunnel VXLAN.The tunnel interface state of Tunnel2 is blocked state.Such as
It is Tunnel1 with the VM2 exit port for carrying out communication interaction in VTEP1 in the forwarding table of stored VSI1 shown in table 2.
As shown in Figure 1, the process that VM1 sends service message to VM2 is as follows: VTEP1 receives the business report of VM1 transmission
Text judges that the service message belongs to VSI1 (VXLAN10), searches the forwarding table of VSI1, obtains carrying out going out for communication interaction with VM2
Port is Tunnel1.Then VTEP1 encapsulates to obtain VXLAN message 1 to service message progress VXLAN, and VXLAN message 1 is led to
The interface for crossing Tunnel1 issues.
Table 2
VTEP1 receives tunnel switching command vxlan-tunnel switchover vsi1 tunnel1.Such as Fig. 1 institute
Show, the tunnel interface state that VTEP1 obtains Tunnel1 in VSI1 is effective status, and the tunnel for obtaining Tunnel2 in VSI1 connects
Mouth state is blocked state.The tunnel interface state of Tunnel1 and the tunnel interface state of Tunnel2 meet tunnel and cut in VSI1
Condition is changed, then the tunnel interface state of Tunnel1 in VSI1 is switched to blocked state from effective status by VTEP1, and by VSI1
The tunnel interface state of middle Tunnel2 is switched to effective status from blocked state.At this point, Tunnel2 is the main tunnel VXLAN,
Tunnel1 is the available standby tunnel VXLAN.
In step s 24, by the corresponding exit port of the first VSI in forwarding table stored in VTEP by the first VXLAN
The mark in tunnel is changed to the mark in the 2nd tunnel VXLAN.
The example of step S23 is accepted, as shown in table 3, after VTEP1 receives tunnel switching command, in VTEP1
In the forwarding table of stored VSI1, Tunnel2 is changed to by Tunnel1 with the VM2 exit port for carrying out communication interaction.
As shown in Figure 1, the process that VM1 sends service message to VM2 is as follows: VTEP1 receives the business report of VM1 transmission
Text judges that the service message belongs to VSI1 (VXLAN10), searches the forwarding table of VSI1, obtains carrying out going out for communication interaction with VM2
Port is Tunnel2.Then VTEP1 encapsulates to obtain VXLAN message 2 to service message progress VXLAN, and VXLAN message 2 is led to
The interface for crossing Tunnel1 issues.
Table 3
The message forwarding method of the embodiment of the present invention passes through tunnel in the tunnel VXLAN that VSI configures multiple association VXLAN
Switching command can be realized VTEP and neatly select the tunnel VXLAN for being used to be forwarded service message in VSI, to realize
To the reasonable employment in the tunnel VXLAN.For example, switching uses the biggish VXLAN tunnel of bandwidth when the quantity of service message increases
Road.
In one implementation, this method further include: if in the first VSI the first tunnel VXLAN tunnel interface shape
State is effective status, and the tunnel interface state in the 2nd tunnel VXLAN is invalid state, then keeps the first VXLAN in the first VSI
The tunnel interface state in tunnel and the tunnel interface state in the 2nd tunnel VXLAN are constant.
In one implementation, tunnel switching command is vxlan-tunnel switchover vsi vsi-name
tunnel tunnel-id.Wherein, vsi-name indicates the mark of VSI, and tunnel-id indicates the mark in the tunnel VXLAN.Pass through
Vsi-name and tunnel-id can uniquely determine the tunnel VXLAN.
In one implementation, if the tunnel interface for passing through the tunnel VXLAN determined vsi-name and tunnel-id
State is effective status, but the tunnel interface state in the corresponding standby tunnel VXLAN in the tunnel VXLAN is invalid state, then does not cut
It changes and uses the corresponding standby tunnel VXLAN in the tunnel VXLAN.
As an example, as shown in Figure 1, configuring VSI1 on VTEP1, VSI1 configure Tunnel1 and Tunnel2 with
VXLAN10 association.VM1 accesses VSI1 by AC.If the tunnel interface state of Tunnel1 is effective status in VSI1,
Tunnel1 is the main tunnel VXLAN, and Tunnel2 is the standby tunnel VXLAN.The tunnel interface state of Tunnel2 is invalid state.
VTEP1 receives tunnel switching command vxlan-tunnel switchover vsi1tunnel1.As shown in Figure 1,
The tunnel interface state that VTEP1 obtains Tunnel1 in VSI1 is effective status, and obtains the tunnel interface of Tunnel2 in VSI1
State is invalid state.The tunnel interface state of Tunnel1 and the tunnel interface state of Tunnel2 are unsatisfactory for tunnel and cut in VSI1
Condition is changed, then it is effective status that VTEP1, which keeps the tunnel interface state of Tunnel1 in VSI1,.At this point, Tunnel1 is main VXLAN
Tunnel, Tunnel2 are the not available standby tunnel VXLAN.
The message forwarding method of the embodiment of the present invention passes through tunnel in the tunnel VXLAN that VSI configures multiple association VXLAN
Switching command can be realized VTEP and neatly select the tunnel VXLAN for being used to be forwarded service message in VSI, to realize
To the reasonable employment in the tunnel VXLAN.For example, switching uses the biggish VXLAN tunnel of bandwidth when the quantity of service message increases
Road.
In one implementation, this method further include: if in the first VSI the first tunnel VXLAN tunnel interface shape
State becomes invalid state from effective status, then cuts the tunnel interface state in the 2nd tunnel VXLAN in the first VSI from blocked state
It is changed to effective status;By the corresponding exit port of the first VSI in forwarding table stored in VTEP by the mark in the first tunnel VXLAN
Know the mark for being changed to the 2nd tunnel VXLAN.
As an example, as shown in Figure 1, configuring VSI1 on VTEP1, VSI1 configure Tunnel1 and Tunnel2 with
VXLAN10 association.VM1 accesses VSI1 by AC.If the tunnel interface state of Tunnel1 is effective status in VSI1,
Tunnel1 is the main tunnel VXLAN, and Tunnel2 is the standby tunnel VXLAN.The tunnel interface state of Tunnel2 is blocked state.?
It is Tunnel1 with the VM2 exit port for carrying out communication interaction in VTEP1 in the forwarding table of stored VSI1.
As shown in Figure 1, the process that VM1 sends service message to VM2 is as follows: VTEP1 receives the business report of VM1 transmission
Text judges that the service message belongs to VSI1 (VXLAN10), searches the forwarding table of VSI1, obtains carrying out going out for communication interaction with VM2
Port is Tunnel1.Then VTEP1 encapsulates to obtain VXLAN message 3 to service message progress VXLAN, and VXLAN message 3 is led to
The interface for crossing Tunnel1 issues.
Tunnel1 failure, VTEP1 detect that the tunnel interface state of the Tunnel1 in VSI1 becomes nothing from effective status
Effect state, then the tunnel interface state of Tunnel2 in VSI1 is switched to effective status from blocked state by VTEP1.At this point,
Tunnel2 is the main tunnel VXLAN, and Tunnel1 is the not available standby tunnel VXLAN.The forwarding of stored VSI1 in VTEP1
In table, Tunnel2 is changed to by Tunnel1 with the VM2 exit port for carrying out communication interaction.
As shown in Figure 1, the process that VM1 sends service message to VM2 is as follows: VTEP1 receives the business report of VM1 transmission
Text judges that the service message belongs to VSI1 (VXLAN10), searches the forwarding table of VSI1, obtains carrying out going out for communication interaction with VM2
Port is Tunnel2.Then VTEP1 encapsulates to obtain VXLAN message 2 to service message progress VXLAN, and VXLAN message 2 is led to
The interface for crossing Tunnel1 issues.
The message forwarding method of the embodiment of the present invention configures the tunnel VXLAN of multiple association VXLAN in VSI, in master
When the tunnel interface state in the tunnel VXLAN becomes invalid state from effective status, it can switch corresponding using the tunnel VXLAN
The standby tunnel VXLAN, thus the transmission of service message will not be interrupted, and realize the reliability for improving VXLAN network.
In one implementation, the tunnel interface state in the first tunnel VXLAN becomes from effective status in the first VSI
After invalid state, this method further include: receive the order of tunnel switchback, tunnel switchback order includes the mark of the first VSI, first
The mark and switchback duration in the tunnel VXLAN;If the tunnel interface state in the first tunnel VXLAN is from invalid state in the first VSI
It is switched to blocked state, and blocked state is kept to reach switchback duration, then is connect the tunnel in the first tunnel VXLAN in the first VSI
Mouth state is switched to effective status from blocked state, and the tunnel interface state in the 2nd tunnel VXLAN is switched to resistance from effective status
Plug-like state;The corresponding exit port of first VSI in forwarding table stored in VTEP is replaced by the mark in the 2nd tunnel VXLAN
For the mark in the first tunnel VXLAN.
Wherein, tunnel switching command refers to the order that switchback is carried out for the tunnel interface state to tunnel.Pass through tunnel
The tunnel interface state that switching command can be realized the first tunnel VXLAN in the first VSI becomes invalid state from effective status
Later, if the tunnel interface state in the first tunnel VXLAN becomes blocked state from invalid state again in the first VSI, switchback
Use the first tunnel VXLAN.
In one implementation, tunnel switching command: tunnel-revertive { wtr wtr-time/never } and
undo tunnel-revertive{wtr|never}.Tunnel-revertive { wtr wtr-timenever } indicates setting
Tunnel switching command, and undo tunnel-revertive wtr | and never } indicate revocation tunnel switching command.Wherein, wtr-
Time indicates switchback duration, and never indicates never switchback.Switchback duration can be pre-set time span, such as 30s.
The embodiment of the present invention to the value of switchback duration with no restriction.
As an example, as shown in Figure 1, configuring VSI1 on VTEP1, VSI1 configure Tunnel1 and Tunnel2 with
VXLAN10 association.VM1 accesses VSI1 by AC.If the tunnel interface state of Tunnel1 is effective status in VSI1,
Tunnel1 is the main tunnel VXLAN, and Tunnel2 is the standby tunnel VXLAN.The tunnel interface state of Tunnel2 is blocked state.?
It is Tunnel1 with the VM2 exit port for carrying out communication interaction in VTEP1 in the forwarding table of stored VSI1.
Tunnel1 failure, VTEP1 detect that the tunnel interface state of the Tunnel1 in VSI1 becomes nothing from effective status
Effect state, then the tunnel interface state of Tunnel2 in VSI1 is switched to effective status from blocked state by VTEP1.At this point,
Tunnel2 is the main tunnel VXLAN, and Tunnel1 is the not available standby tunnel VXLAN.The forwarding of stored VSI1 in VTEP1
In table, Tunnel2 is changed to by Tunnel1 with the VM2 exit port for carrying out communication interaction.
When the tunnel interface state of Tunnel1 in VSI1 becomes invalid state from effective status, in VSI1
Tunnel1 is arranged the order of tunnel switchback, when switchback a length of 30s.Switchback duration is saved in database by VTEP1.In Tunnel1
Failure when being repaired, the tunnel interface state of the Tunnel1 in VSI1 becomes blocked state from invalid state, and VTEP1 is automatic
It goes in database to check whether configuration switchback duration.
As shown in Figure 1, VTEP1 is obtained switchback duration 30 seconds, the counting of the switchback of the Tunnel1 in VSI1 is set to 30, and
Check whether switchback timer has been turned on.If do not started, the switchback timer of a 1s is played, often when the timer times out,
Then the switchback counting of the Tunnel1 in VSI1 is subtracted 1 by VTEP1.Until switchback is counted as 0, VTEP1 judges in VSI1
Whether Tunnel1 can be used, and switch if available using the Tunnel1 in VSI1.During this period if Tunnel1 in VSI1
Become invalid state, switchback counting will be cleared, and will not continue to switchback.
In one implementation, VTEP is configured with the 2nd VSI, and the 2nd VSI configures the first of relevant 2nd VXLAN
The tunnel VXLAN, this method further include: when the tunnel interface state in the first tunnel VXLAN changes in the first VSI, keep
The tunnel interface state in the first tunnel VXLAN is constant in 2nd VSI.
For example, as shown in Figure 1, on VTEP1 configure VSI1 and VSI4, VSI1 configure Tunnel1 and Tunnel2 with
VXLAN10 association, VSI4 configuration Tunnel1 and Tunnel2 are associated with VXLAN20.The tunnel interface shape of Tunnel1 in VSI1
When state changes, the tunnel interface state of Tunnel1 is constant in VSI4.The tunnel interface state of Tunnel2 occurs in VSI1
When variation, the tunnel interface state of Tunnel2 is constant in VSI4.I.e. for the same tunnel VXLAN, VXLAN in different VSI
The tunnel interface state in tunnel can be different, to improve the utilization rate in the tunnel VXLAN.
For another example VSI1 configures Tunnel1 and Tunnel2 and VXLAN10 as shown in Figure 1, configuring VSI1 on VTEP1
Association.VSI2 is configured on VTEP2, VSI2 configuration Tunnel1 and Tunnel2 is associated with VXLAN10.The Tunnel1 in VSI1
Tunnel interface state when changing, the tunnel interface state of Tunnel1 is constant in VSI2.The tunnel of Tunnel2 in VSI1
When pipeline joint state changes, the tunnel interface state of Tunnel2 is constant in VSI2.I.e. for the same tunnel VXLAN, no
The tunnel interface state in the tunnel VXLAN can be different in same VSI, to improve the utilization rate in the tunnel VXLAN.
Correspondingly, the embodiment of the present invention provides a kind of apparatus for forwarding message.The apparatus for forwarding message of the embodiment of the present invention,
It is configured with the first VSI suitable for VXLAN endpoint of a tunnel VTEP, the VTEP, the first VSI configures the first of relevant first VXLAN
The tunnel VXLAN and the 2nd tunnel VXLAN for being associated with the first VXLAN.Fig. 3 shows message forwarding dress according to an embodiment of the invention
The block diagram set.As shown in figure 3, the device includes:
Receiving module 31, for receiving tunnel switching command, the tunnel switching command includes the mark of the first VSI
With the mark in the first tunnel VXLAN;
Module 32 is obtained, for obtaining institute according to the mark of the first VSI and the mark in the first tunnel VXLAN
State the tunnel interface state in the first tunnel VXLAN described in the first VSI and the tunnel interface state in the 2nd tunnel VXLAN;
Processing module 33, if the tunnel interface state for the first tunnel VXLAN described in the first VSI is effective
State, and the tunnel interface state in the 2nd tunnel VXLAN is blocked state, then it will be first described in the first VSI
The tunnel interface state in the tunnel VXLAN is switched to blocked state, and the tunnel interface state in the 2nd tunnel VXLAN is switched
For effective status;
Replace module 34, for by the corresponding exit port of the first VSI in forwarding table stored in the VTEP by institute
The mark for stating the first tunnel VXLAN is changed to the mark in the 2nd tunnel VXLAN.
In one implementation, described device further include: the processing module 33, if being also used to the first VSI
Described in the tunnel interface state in the first tunnel VXLAN be effective status, and the tunnel interface state in the 2nd tunnel VXLAN
For invalid state, then keep the first tunnel VXLAN described in the first VSI tunnel interface state and the 2nd VXLAN
The tunnel interface state in tunnel is constant.
In one implementation, described device further include: the processing module 33, if being also used to the first VSI
Described in the tunnel interface state in the first tunnel VXLAN become invalid state from effective status, then will be described in the first VSI
The tunnel interface state in the 2nd tunnel VXLAN is switched to effective status from blocked state;
The replacement module 34 is also used to the corresponding outlet of the first VSI in forwarding table stored in the VTEP
Mouth is changed to the mark in the 2nd tunnel VXLAN by the mark in the first tunnel VXLAN.
In one implementation, described device further include: the receiving module 31 is also used to receive tunnel switchback life
It enables, the tunnel switchback order includes the mark of the first VSI, the mark and switchback duration in the first tunnel VXLAN;
The processing module 33, if being also used to the tunnel interface state in the first tunnel VXLAN described in the first VSI
It is switched to blocked state from invalid state, and blocked state is kept to reach the switchback duration, then it will be described in the first VSI
The tunnel interface state in the first tunnel VXLAN is switched to effective status from blocked state, and the tunnel in the 2nd tunnel VXLAN connects
Mouth state is switched to blocked state from effective status;
The replacement module 34 is also used to the corresponding outlet of the first VSI in forwarding table stored in the VTEP
Mouth is changed to the mark in the first tunnel VXLAN by the mark in the 2nd tunnel VXLAN.
In one implementation, the VTEP other than the VTEP or VTEP be configured with the 2nd VSI, described second
VSI configures the first tunnel VXLAN of relevant 2nd VXLAN, described device further include: the processing module 33 is also used to
When the tunnel interface state in the first tunnel VXLAN described in the first VSI changes, keep described in the 2nd VSI
The tunnel interface state in the first tunnel VXLAN is constant.
The apparatus for forwarding message of the embodiment of the present invention passes through tunnel in the tunnel VXLAN that VSI configures multiple association VXLAN
Switching command can be realized VTEP and neatly select the tunnel VXLAN for being used to be forwarded service message in VSI, to realize
To the reasonable employment in the tunnel VXLAN.For example, switching uses the biggish VXLAN tunnel of bandwidth when the quantity of service message increases
Road.
Correspondingly, Fig. 4 shows the block diagram of apparatus for forwarding message according to an embodiment of the invention.Referring to Fig. 4, the device
900 may include processor 901, the machine readable storage medium 902 for being stored with machine-executable instruction.Processor 901 and machine
Readable storage medium storing program for executing 902 can be communicated via system bus 903.Also, processor 901 passes through read machine readable storage medium storing program for executing
Machine-executable instruction corresponding with message forwarding logic is in 902 to execute message forwarding method described above.
Machine readable storage medium 902 referred to herein can be any electronics, magnetism, optics or other physical stores
Device may include or store information, such as executable instruction, data, etc..For example, machine readable storage medium can be with
Machine accesses memory: (English: Radom Access Memory, abbreviation: RAM), volatile memory, nonvolatile memory, sudden strain of a muscle
It deposits, memory driver (such as hard disk drive), solid state hard disk, any kind of storage dish (such as CD, dvd) or similar
Storage medium or their combination.
Various embodiments of the present invention are described above, above description is exemplary, and non-exclusive, and
It is not limited to disclosed each embodiment.Without departing from the scope and spirit of illustrated each embodiment, for this skill
Many modifications and changes are obvious for the those of ordinary skill in art field.The selection of term used herein, purport
In the principle, practical application or technological improvement to the technology in market for best explaining each embodiment, or make the art
Other those of ordinary skill can understand each embodiment disclosed herein.
Claims (10)
1. a kind of message forwarding method, which is characterized in that be suitable for VXLAN endpoint of a tunnel VTEP, the VTEP is configured with first
Virtual switch instance VSI, the first VSI configure the first tunnel VXLAN of relevant first VXLAN be associated with the of the first VXLAN
Two tunnels VXLAN, which comprises
Receive tunnel switching command, the tunnel switching command include the first VSI mark and the first tunnel VXLAN
Mark;
According to the mark of the first VSI and the mark in the first tunnel VXLAN, obtain first described in the first VSI
The tunnel interface state in the tunnel VXLAN and the tunnel interface state in the 2nd tunnel VXLAN;
If the tunnel interface state in the first tunnel VXLAN described in the first VSI is effective status, and described second
The tunnel interface state in the tunnel VXLAN is blocked state, then connects the tunnel in the first tunnel VXLAN described in the first VSI
Mouth state is switched to blocked state, and the tunnel interface state in the 2nd tunnel VXLAN is switched to effective status;
By the corresponding exit port of the first VSI in forwarding table stored in the VTEP by the mark in the first tunnel VXLAN
Know the mark for being changed to the 2nd tunnel VXLAN.
2. the method according to claim 1, wherein the method also includes:
If the tunnel interface state in the first tunnel VXLAN described in the first VSI is effective status, and described second
The tunnel interface state in the tunnel VXLAN is invalid state, then keeps the tunnel in the first tunnel VXLAN described in the first VSI
The tunnel interface state in Interface status and the 2nd tunnel VXLAN is constant.
3. the method according to claim 1, wherein the method also includes:
If the tunnel interface state in the first tunnel VXLAN described in the first VSI becomes invalid state from effective status,
The tunnel interface state in the 2nd tunnel VXLAN described in the first VSI is switched to effective status from blocked state;
By the corresponding exit port of the first VSI in forwarding table stored in the VTEP by the mark in the first tunnel VXLAN
Know the mark for being changed to the 2nd tunnel VXLAN.
4. the method according to claim 1, wherein the tunnel in the first tunnel VXLAN described in the first VSI
After pipeline joint state becomes invalid state from effective status, the method also includes:
The order of tunnel switchback is received, the tunnel switchback order includes the mark of the first VSI, the first tunnel VXLAN
Mark and switchback duration;
If the tunnel interface state in the first tunnel VXLAN described in the first VSI is switched to blocked state from invalid state,
And blocked state is kept to reach the switchback duration, then by the tunnel interface shape in the first tunnel VXLAN described in the first VSI
State is switched to effective status from blocked state, and the tunnel interface state in the 2nd tunnel VXLAN is switched to resistance from effective status
Plug-like state;
By the corresponding exit port of the first VSI in forwarding table stored in the VTEP by the mark in the 2nd tunnel VXLAN
Know the mark for being changed to the first tunnel VXLAN.
5. the method according to claim 1, wherein VTEP other than the VTEP or VTEP is configured with the
Two VSI, the 2nd VSI configure the first tunnel VXLAN of relevant 2nd VXLAN, the method also includes:
When the tunnel interface state in the first tunnel VXLAN described in the first VSI changes, the 2nd VSI is kept
Described in the first tunnel VXLAN tunnel interface state it is constant.
6. a kind of apparatus for forwarding message, which is characterized in that be suitable for VXLAN endpoint of a tunnel VTEP, the VTEP is configured with first
Virtual switch instance VSI, the first VSI configure the first tunnel VXLAN of relevant first VXLAN be associated with the of the first VXLAN
Two tunnels VXLAN, described device include:
Receiving module, for receiving tunnel switching command, the tunnel switching command includes the mark of the first VSI and described
The mark in the first tunnel VXLAN;
Module is obtained, for obtaining described first according to the mark of the first VSI and the mark in the first tunnel VXLAN
The tunnel interface state of the tunnel interface state in the first tunnel VXLAN and the 2nd tunnel VXLAN described in VSI;
Processing module, if the tunnel interface state for the first tunnel VXLAN described in the first VSI is effective status,
And the tunnel interface state in the 2nd tunnel VXLAN is blocked state, then by the first VXLAN tunnel described in the first VSI
The tunnel interface state in road is switched to blocked state, and the tunnel interface state in the 2nd tunnel VXLAN is switched to effectively
State;
Replace module, for by the corresponding exit port of the first VSI in forwarding table stored in the VTEP by described first
The mark in the tunnel VXLAN is changed to the mark in the 2nd tunnel VXLAN.
7. device according to claim 6, which is characterized in that described device further include:
The processing module, if the tunnel interface state for being also used to the first tunnel VXLAN described in the first VSI is effective
State, and the tunnel interface state in the 2nd tunnel VXLAN is invalid state, then keeps first described in the first VSI
The tunnel interface state in the tunnel VXLAN and the tunnel interface state in the 2nd tunnel VXLAN are constant.
8. device according to claim 6, which is characterized in that described device further include:
The processing module, if being also used to the tunnel interface state in the first tunnel VXLAN described in the first VSI from effective
State becomes invalid state, then cuts the tunnel interface state in the 2nd tunnel VXLAN described in the first VSI from blocked state
It is changed to effective status;
The replacement module is also used to the corresponding exit port of the first VSI in forwarding table stored in the VTEP by institute
The mark for stating the first tunnel VXLAN is changed to the mark in the 2nd tunnel VXLAN.
9. device according to claim 6, which is characterized in that described device further include:
The receiving module, is also used to receive tunnel switchback order, and the tunnel switchback order includes the mark of the first VSI
Know, the mark and switchback duration in the first tunnel VXLAN;
The processing module, if being also used to the tunnel interface state in the first tunnel VXLAN described in the first VSI from invalid
State is switched to blocked state, and blocked state is kept to reach the switchback duration, then will be first described in the first VSI
The tunnel interface state in the tunnel VXLAN is switched to effective status, the tunnel interface shape in the 2nd tunnel VXLAN from blocked state
State is switched to blocked state from effective status;
The replacement module is also used to the corresponding exit port of the first VSI in forwarding table stored in the VTEP by institute
The mark for stating the 2nd tunnel VXLAN is changed to the mark in the first tunnel VXLAN.
10. device according to claim 6, which is characterized in that the VTEP other than the VTEP or VTEP is configured with
2nd VSI, the 2nd VSI configure the first tunnel VXLAN of relevant 2nd VXLAN, described device further include:
The processing module, the tunnel interface state for being also used to the first tunnel VXLAN described in the first VSI change
When, keep the tunnel interface state in the first tunnel VXLAN described in the 2nd VSI constant.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810706217.2A CN109005097B (en) | 2018-06-29 | 2018-06-29 | Message forwarding method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810706217.2A CN109005097B (en) | 2018-06-29 | 2018-06-29 | Message forwarding method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109005097A true CN109005097A (en) | 2018-12-14 |
CN109005097B CN109005097B (en) | 2020-12-01 |
Family
ID=64601072
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810706217.2A Active CN109005097B (en) | 2018-06-29 | 2018-06-29 | Message forwarding method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109005097B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109639552A (en) * | 2018-12-24 | 2019-04-16 | 新华三技术有限公司 | A kind of three-layer forwarding method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101207529B (en) * | 2007-11-22 | 2010-12-01 | 杭州华三通信技术有限公司 | Method for link circuit fault detection and recovery based on PMD and corresponding apparatus |
US20150229724A1 (en) * | 2014-02-10 | 2015-08-13 | Brocade Communications Systems, Inc. | Virtual extensible lan tunnel keepalives |
CN105577417A (en) * | 2014-11-06 | 2016-05-11 | 杭州华三通信技术有限公司 | VXLAN (virtual extensible local area network)-based massage forwarding method and device |
CN106878072A (en) * | 2017-02-10 | 2017-06-20 | 新华三技术有限公司 | A kind of message transmitting method and device |
CN107846342A (en) * | 2016-09-20 | 2018-03-27 | 华为技术有限公司 | A kind of retransmission method, equipment and the system of VXLAN messages |
US20180139124A1 (en) * | 2013-11-05 | 2018-05-17 | Cisco Technology, Inc. | Source address translation in overlay networks |
-
2018
- 2018-06-29 CN CN201810706217.2A patent/CN109005097B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101207529B (en) * | 2007-11-22 | 2010-12-01 | 杭州华三通信技术有限公司 | Method for link circuit fault detection and recovery based on PMD and corresponding apparatus |
US20180139124A1 (en) * | 2013-11-05 | 2018-05-17 | Cisco Technology, Inc. | Source address translation in overlay networks |
US20150229724A1 (en) * | 2014-02-10 | 2015-08-13 | Brocade Communications Systems, Inc. | Virtual extensible lan tunnel keepalives |
CN105577417A (en) * | 2014-11-06 | 2016-05-11 | 杭州华三通信技术有限公司 | VXLAN (virtual extensible local area network)-based massage forwarding method and device |
CN107846342A (en) * | 2016-09-20 | 2018-03-27 | 华为技术有限公司 | A kind of retransmission method, equipment and the system of VXLAN messages |
CN106878072A (en) * | 2017-02-10 | 2017-06-20 | 新华三技术有限公司 | A kind of message transmitting method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109639552A (en) * | 2018-12-24 | 2019-04-16 | 新华三技术有限公司 | A kind of three-layer forwarding method and device |
CN109639552B (en) * | 2018-12-24 | 2022-02-11 | 新华三技术有限公司 | Three-layer forwarding method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109005097B (en) | 2020-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7417816B2 (en) | Providing services using guest VM mobility | |
US10698739B2 (en) | Multitenant access to multiple desktops on host machine partitions in a service provider network | |
TWI543566B (en) | Data center network system based on software-defined network and packet forwarding method, address resolution method, routing controller thereof | |
US8761048B2 (en) | Managing hierarchical ethernet segments | |
JP5410998B2 (en) | Software control plane for switches and routers | |
TWI441476B (en) | Method for routing data packets in a fat tree network | |
US8102781B2 (en) | Dynamic distribution of virtual machines in a communication network | |
CN104579727B (en) | A kind of method and apparatus for the network connection for managing network node | |
US20140181292A1 (en) | Systems and methods for topology discovery and application in a border gateway protocol based data center | |
CN103997513B (en) | A kind of programmable virtual network service system | |
CN108243106A (en) | Control method, forwarding unit, control device and the communication system of network slice | |
CN109936516B (en) | System and method for facilitating transparent service mapping across multiple network transport options | |
CN107210959A (en) | Router logic with multiple route parts | |
US10826823B2 (en) | Centralized label-based software defined network | |
CN106105162A (en) | Load equalizer based on switch | |
CN104954288B (en) | Method for sending information, device and communication system | |
US20220321470A1 (en) | Wide area networking service using provider network backbone network | |
TW201212589A (en) | Automated traffic engineering for fat tree networks | |
CN104579966B (en) | Method, forward node and the controller that forwarding-table item generates | |
CN104937892A (en) | Multi-node virtual switching system (MVSS) | |
CN106209636B (en) | Multicast data packet forwarding method and apparatus from VLAN to VXLAN | |
JP6231598B2 (en) | Server system, method, and computer-readable storage medium for extending hold time of power supply unit | |
CN109587059A (en) | Configuration method, equipment and the communication system of SR-BE internal layer tunnel label | |
CN108900414A (en) | Forwarding table generation method and device | |
CN103457820B (en) | The implementation method and device of hierarchical virtual private local area network service |
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 |