CN106789635A - A kind of message forwarding method and device - Google Patents
A kind of message forwarding method and device Download PDFInfo
- Publication number
- CN106789635A CN106789635A CN201610176722.1A CN201610176722A CN106789635A CN 106789635 A CN106789635 A CN 106789635A CN 201610176722 A CN201610176722 A CN 201610176722A CN 106789635 A CN106789635 A CN 106789635A
- Authority
- CN
- China
- Prior art keywords
- edge
- link
- neighbours
- equipment
- edge equipment
- 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
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/22—Alternate routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention provides a kind of message forwarding method and device.The specific embodiment of methods described includes:When the first edge equipment detects first link to break down, used as second edge equipment, the first neighbours edge device with first edge equipment there is one first neighbours' edge device of selection Border Gateway Protocol (BGP) neighborhood to be connected with the target virtual machine;Obtain the first logical tunnel between the first edge equipment and the second edge equipment;When the first edge equipment receive send to the target virtual machine object message when, the object message is forwarded to the second edge equipment by first logical tunnel, so that the object message is forwarded to the target virtual machine by the second edge equipment.The present embodiment can prevent loss of data when the link in EVPN networks breaks down, it is to avoid because link break down and fault recovery caused by network topology convergence.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of message forwarding method and device.
Background technology
Many home links refer to ether Virtual Private Network (Ethernet Virtual Private Network, EVPN)
In a virtual machine and two or more edge devices set up a kind of link connection mode being connected.
Ether Virtual Private Network EVPN is to build on virtual expansible LAN (Virtual eXtensible
Local Area Network, VXLAN) on a kind of network.Virtual expansible LAN VXLAN,
It is a kind of network technology of overlay, i.e., constructs a virtual network on legacy network, and traditional net
Network need not again do any adaptation.It is packaged using the method for MAC in UDP to data, Ji Jiangyuan
Beginning message is encapsulated in UDP messages.The architecture of VXLAN networks includes that the edge of its core network sets
Standby (VXLAN Tunnel End Point, VTEP) and ustomer premises access equipment be virtual machine (Virtual Machine,
VM) etc..Multiple edge devices of VXLAN networks set up neighborhood by bgp protocol, and these are adjacent
The logical tunnel set up between edge device and have transmitting message is occupied, being set up between edge device and virtual machine has biography
The link of defeated message.Wherein, general an of virtual machine sets up link, this link with an edge device
Belong to single home link, it cannot realize load balancing, when the link between virtual machine and edge device occurs
During failure, will be unable to send message to the virtual machine.And can be solved in EVPN networks it is this cannot
Realize the problem of load balancing.
The maximum of EVPN and VXLAN networks is distinguished and is:EVPN networks can realize load balancing, move
The link set up between edge device and virtual machine to state, makes a virtual machine and two or more sides
Edge equipment sets up link, and this link connection mode is referred to as many home links.
As shown in figure 1, wherein, virtual machine VM3 and edge device VTEP2 and VTEP3 are established
Link, this connected mode of virtual machine VM3 belongs to many home links;VM1 and VM2 are equal for virtual machine
Link is established with edge device VTEP1, this connected mode of virtual machine VM1 and VM2 belongs to single
Home link.
When there is the data service of the VM3 sent from virtual machine VM1 into same logic double layer network,
Business is sent edge device VTEP1, VTEP1 equipment into EVPN networks by business datum by VM1
Carry out VXLAN, UDP, IP, make VXLAN messages after the encapsulation such as MAC header,
Then the message is sent to distal end VTEP3 equipment by logical tunnel again, VTEP3 equipment will be received
Message decapsulated, obtain the information such as IP address in message, then message is packaged, concurrently
Deliver to the corresponding target virtual machine VM3 of the IP address.So far, message transmission process terminates.Wherein, seal
Include the IP address (internet protocol address) and MAC of source virtual machine and purpose virtual machine in message after dress
The information such as address (physical address).
In the prior art, for EVPN networks in many home links networking model, a virtual machine
VM establishes multiple links with multiple VTEP equipment simultaneously.When wherein certain link breaks down, should
The corresponding VTEP equipment of link needs to send failure message to its neighbours' edge device, to avoid loss of data.
After faulty link recovers, the corresponding VTEP equipment of the link is also required to send event to its neighbours' edge device
Barrier repairs message, with resume data transmission.
But, when in this period before failure has occurred, failure message is sent to other VTEP equipment,
The data sent by the link will lose.Also, when breaking down and during fault restoration, VTEP sets
Standby to send notice to its neighbours' edge device, this can cause the convergence of network topology.For substantial amounts of
For VTEP equipment, when there is multiple failure, this announcement operations are by the substantial amounts of money of consumption network system
Source.
The content of the invention
The purpose of the embodiment of the present invention there are provided a kind of message forwarding method and device, can be in EVPN
Link in network prevents loss of data when breaking down, it is to avoid because link break down and fault recovery and
The convergence of caused network topology.
In order to achieve the above object, the invention discloses a kind of message forwarding method, it is applied to ether virtually special
With the first edge equipment in net EVPN networks, formed between the first edge equipment and target virtual machine
First link, target virtual machine is connected with two or more edge devices, and methods described includes:
When the first edge equipment detects first link to break down, first neighbours are selected
Edge device has border as second edge equipment, the first neighbours edge device with first edge equipment
Gateway protocol bgp neighbor relation is connected with the target virtual machine;
Obtain the first logical tunnel between the first edge equipment and the second edge equipment;
When the first edge equipment receives the object message sent to the target virtual machine, will be described
Object message is forwarded to the second edge equipment by first logical tunnel, so that the second edge
The object message is forwarded to the target virtual machine by equipment.
In order to achieve the above object, the invention also discloses a kind of apparatus for forwarding message, it is applied to ether virtual
First edge equipment in private network EVPN networks, shape between the first edge equipment and target virtual machine
Into the first link, target virtual machine is connected with two or more edge devices, and described device includes:
Detection module, for detecting whether first link breaks down;
Selecting module, for when first link breaks down, selecting first neighbours' edge device
Used as second edge equipment, the first neighbours edge device has Border Gateway Protocol with first edge equipment
Bgp neighbor relation is connected with the target virtual machine;
Module is obtained, is patrolled for obtaining between the first edge equipment and the second edge equipment first
Collect tunnel;
Receiver module, for receiving the object message sent to the target virtual machine;
Forwarding module, for the object message to be forwarded into second side by first logical tunnel
Edge equipment, so that the object message is forwarded to the target virtual machine by the second edge equipment.
As seen from the above technical solution, in the embodiment of the present invention, when first edge equipment detects the first link
When breaking down, one first neighbours' edge device of first edge equipment choice is obtained as second edge equipment
Obtain its first logical tunnel with second edge equipment;When first edge equipment receives object message, will
Object message is sent to second edge equipment by first logical tunnel so that second edge equipment by its
It is forwarded to target virtual machine.Wherein, first neighbours' edge device with first edge equipment there is borde gateway to assist
View bgp neighbor relation, and be connected with the target virtual machine.
That is, first edge equipment can select one and target virtual machine when the first link breaks down
Connected neighbours' edge device, and using the logical tunnel between first edge equipment and neighbours' edge device
Forwarding object message, finally makes object message be forwarded to target virtual machine, therefore, the embodiment of the present invention can
Loss of data is prevented when link breaks down, it is to avoid because of network caused by link failure and fault recovery
The convergence of topology.
Certainly, implement any product of the invention or method it is not absolutely required to while reaching above-described institute
There is advantage.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to implementing
Example or the accompanying drawing to be used needed for description of the prior art are briefly described.It should be evident that description below
In accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not paying
On the premise of going out creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the link connection schematic diagram of many home links;
Fig. 2 is a kind of schematic flow sheet of message forwarding method provided in an embodiment of the present invention;
Fig. 3 is the idiographic flow schematic diagram of step S101 in Fig. 2 provided in an embodiment of the present invention;
Fig. 4 is the annexation schematic diagram between neighbours' edge device in an example;
Fig. 5 is a kind of structural representation of apparatus for forwarding message provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly
Chu, complete description.Obviously, described embodiment is only a part of embodiment of the invention, without
It is whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making wound
The every other embodiment that the property made is obtained on the premise of working, belongs to the scope of protection of the invention.
A kind of message forwarding method and device are the embodiment of the invention provides, in EVPN networks is applied to
One edge device, can prevent loss of data when link breaks down, it is to avoid because of link failure and failure
The convergence of network topology caused by recovery.
It should be noted that in embodiments of the present invention, EVPN networks include multiple edge devices, edge
There is the connection set up between equipment, also there is the connection set up between edge device and the virtual machine of user terminal,
Message between virtual machine is transmitted by the multiple edge devices in EVPN networks.In the present embodiment,
The connection that will be set up between edge device is referred to as logical tunnel, the company that will be set up between edge device and virtual machine
Connect referred to as link.
Below by specific embodiment, the present invention is described in detail.
Fig. 2 is a kind of schematic flow sheet of message forwarding method provided in an embodiment of the present invention, is applied to EVPN
First edge equipment in network, forms between the first edge equipment and the target virtual machine of user terminal
One link, target virtual machine is connected with two or more edge devices, and it comprises the following steps:
Step S101:When the first edge equipment detects first link to break down, selection one
Individual first neighbours edge device sets as second edge equipment, the first neighbours edge device with first edge
It is standby that there is Border Gateway Protocol (BGP) neighborhood to be connected with the target virtual machine.
The process of the present embodiment is specifically to be performed by the first edge equipment in EVPN networks.
It is directly connected between first edge equipment and target virtual machine, when first edge equipment and target are empty
When the first link between plan machine breaks down, first edge equipment can detect link failure.Edge sets
The process of standby detection link failure belongs to prior art, and its detailed process is no longer repeated.
In embodiments of the present invention, when the first link breaks down, sent to mesh by first edge equipment
The object message for marking virtual machine can not be forwarded successfully.In order to solve this problem, can be set with first edge
Selection one is connected with target virtual machine in standby neighbours' edge device with bgp neighbor relation first is adjacent
Edge device is occupied, can help forward the message sent from first edge equipment to target virtual machine.
When the first link breaks down, first edge equipment selects a work in first neighbours' edge device
It is second edge equipment, the process can have numerous embodiments.For example, can be according to first edge equipment
The information related to the first link of middle storage selects first neighbours' edge device in different ways.
It should be noted that there is the bgp neighbor set up to close between second edge equipment and first edge equipment
System, can be with respective address information of intercommunication etc. between them.
Step S102:Obtain the first logic tunnel between the first edge equipment and the second edge equipment
Road.
There may be the logical tunnel set up between first edge equipment and its neighbours' edge device, it is also possible to do not have
There is the logical tunnel set up.Therefore, in the present embodiment, in order to more accurately obtain the first logical tunnel,
Step S102 can specifically include:Judge between the first edge equipment and the second edge equipment whether
Logical tunnel is set up, if it is, the logical tunnel that will have been set up is defined as the first logical tunnel;Otherwise,
Logical tunnel, and the logic that will be set up are set up between the first edge equipment and the second edge equipment
Tunnel is defined as the first logical tunnel.
Specifically, first edge equipment and the second side can be judged according to the address information of second edge equipment
Whether the logical tunnel set up is had between edge equipment, it is of course possible to judge by other means, the present invention
Concrete mode to judging is not limited.When judging do not have between first edge equipment and second edge equipment
During the logical tunnel set up, logical tunnel is set up between first edge equipment and second edge equipment, this
Belong to prior art, its detailed process is repeated no more.
Step S103:When the first edge equipment receives the object message sent to the target virtual machine
When, the object message is forwarded to the second edge equipment by first logical tunnel, so that institute
State second edge equipment and the object message is forwarded to the target virtual machine.
In the present embodiment, in order to more accurately send to target virtual machine, step S103 object message
Can specifically include:The message that will be received is decapsulated, and obtains the mesh sent to the target virtual machine
Mark message;According to the object message and the address information of the second edge equipment that obtain, after decapsulation
Object message Reseal;Object message after Resealing is forwarded to the second edge equipment.Its
In, the address information of target virtual machine is included in object message.
In one example, when first edge equipment obtains message, the destination ground in message is detected
When location information is the address information of target virtual machine, you can determine that the message is object message.It is assumed that target
The IP address of virtual machine is 100.0.0.1, and the IP address of second edge equipment is 2.2.2.2.When by the first side
Original forwarding-table item " destination 100.0.0.1 → local 0.0.0.0 " is changed to " destination in edge equipment
During 100.0.0.1 → second edge equipment 2.2.2.2 ", the object message after just can Resealing passes through first
Logical tunnel is forwarded to second edge equipment, after second edge equipment receives object message, you can according to mesh
Destination-address in mark message sends to target virtual machine object message.
Specifically, the message that first edge equipment is received is sent out by other edge devices in EVPN networks
Send.
As shown in the above, in the embodiment of the present invention, first edge equipment is when the first link breaks down
A neighbours' edge device being connected with target virtual machine can be selected, and using first edge equipment and the neighbours
Logical tunnel forwarding object message between edge device, finally makes object message be forwarded to target virtual machine,
Therefore, the embodiment of the present invention can prevent loss of data when link breaks down, it is to avoid because link failure with
And caused by fault recovery network topology convergence.
In another embodiment of the present invention, in order to it is more accurate, more efficiently select a first neighbours side
Edge equipment the step of embodiment illustrated in fig. 2 in S101, selects one first neighbour as second edge equipment
Occupying edge device can be carried out as second edge equipment according to schematic flow sheet shown in Fig. 3, and it specifically can be with
Including:
Step S101A:According to the corresponding virtual machine mark of first link and the first edge equipment
The link information of the link of storage, obtains virtual machine mark and the second link of the first link identical, and
The corresponding neighbours' edge device of second link is defined as first neighbours' edge device.
Wherein, it is stored with the first edge equipment:The chain of the link being connected with the first edge equipment
Road information, and the link being connected with the first neighbours edge device link information;The chain of each of the links
Road information includes:The address information of the edge device that the link is connected virtual machine mark corresponding with the link.
Specifically, virtual machine mark can include the ethernet segment mark of the link being connected with the virtual machine
The unique mark such as (Ethernet Segment Identifier, ESI), the address information of the virtual machine virtual machine
One or more in information.Address information can also include Internet protocol address (Internet Protocol
Address, IP address) and media access control address (Media Access Control, MAC Address)
Deng.
More specifically, can be searched from the link information of first edge equipment storage should with first link pair
Virtual machine mark the link of identical second, obtain one or more the second link, set further according to first edge
The link information of the second link of standby middle storage, first is defined as by the edge device being connected with the second link
Neighbours' edge device.
Step S101B:According to the link information of the second link, selected from the first neighbours edge device
One edge device is used as second edge equipment.
The first neighbours' edge device determined using step S101A may more than one, therefore specifically can be with
An edge device is selected from first neighbours' edge device in different ways as second edge equipment.
In one example, it is assumed that first edge equipment represents that its neighbours' edge device has two with VTEP3
It is individual, represent that target virtual machine is represented with VM3 with VTEP2 and VTEP4 respectively, each neighbours' edge device
Between annexation it is as shown in Figure 4.The link information stored on VTEP3 includes the content in table 1:
Table 1
When VTEP3 detects link 3 to break down, VTEP3 can be from the link information of itself storage
Selection one virtual machine mark, such as ESI values this, the corresponding ESI values of its link 3 are 3, from table 1
Link information in search all links that ESI values are 3, obtain link 2 and link 4, and will be with the two chains
Connected neighbours' edge device VTEP2 and VTEP4 are defined as first neighbours' edge device on road.In this example
In, first neighbours' edge device has 2, therefrom selects one as second edge equipment.
In another embodiment of the invention, when the second link for obtaining has a plurality of, in Fig. 3 embodiments
Step S101B can specifically include:Obtain the corresponding first neighbours edge device of each described second link
Address information;Address information is met first neighbours' edge device of the first preset rules, is defined as described the
Two edge devices.
Wherein, the address information includes IP address and MAC Address etc..First preset rules can be
Take the maximum or minimum value in the IP address or MAC Address, will maximum or minimum IP address correspondence
First neighbours' edge device be defined as second edge equipment, or by the MAC Address correspondence of maximum or minimum
First neighbours' edge device be defined as second edge equipment.Certainly, preset rules can also have other shapes
Formula, the embodiment of the present invention is not limited this.
In another embodiment of the invention, when the second link for obtaining has a plurality of, in order to select preferably
Second edge equipment, in embodiment illustrated in fig. 3, step S101B can specifically include:
Step 1:Detect the corresponding first neighbours edge device of each second link and the first edge equipment
Between whether set up logical tunnel.
Step 2:An edge device is selected from second neighbours' edge device as second edge equipment, institute
It is the first neighbours edge that logical tunnel has been set up with the first edge equipment to state second neighbours' edge device
Equipment.
When the second link for obtaining has a plurality of, as preferred scheme, can be by the second link corresponding the
The edge device for having set up logical tunnel in one neighbours' edge device between first edge equipment is defined as
Two neighbours' edge devices, select an edge device as second edge equipment from the second neighbor device.
From above content, preferentially from there is the logical tunnel set up between first edge equipment the
One is selected in two neighbours' edge devices as second edge equipment, without on first edge equipment and the second side
Logical tunnel is set up between edge equipment, message repeating process can be made more efficient, it is also possible to save the network equipment
Resource.
In another embodiment of the invention, in the embodiment shown in fig. 3, when it is determined that the second neighbours edge
When equipment has multiple, in order to further determine that preferably second edge equipment, above-mentioned steps 2 can also include:
Obtain the hop count between the first edge equipment and each second neighbours' edge device;Hop count is met
Second neighbours' edge device of the second preset rules is defined as the second edge equipment.
Wherein, it is stored with the first edge equipment:The first edge equipment sets with the second neighbours edge
Hop count between standby.
Specifically, second neighbours' edge device that hop count meets the second preset rules is defined as into second side
Edge equipment can include:The corresponding second neighbours edge device of minimum hop count is defined as into the second edge to set
It is standby.So, between identified second edge equipment and first edge equipment hop count is minimum, when the first side
When edge equipment is forwarded object message by second edge equipment, the hop count of process is also less, so that can
To improve efficiency during message transmissions, system resource is saved.Certainly, the second preset rules can also include it
His mode, the embodiment of the present invention is not limited this.
In another embodiment of the invention, when first link-recovery is connected, in order that passing through first
The process that edge device is forwarded to target virtual machine is more efficient, in the embodiment depicted in figure 2, when described
When one edge device detects the first link-recovery and connects, first logical tunnel is disabled, and by the mesh
The first link that mark message passes through to have recovered is forwarded.
Specifically, by the logical tunnel quantity to be set up of the edge device in EVPN networks is that have one
Definite limitation, therefore, when the first edge equipment detects the first link-recovery to be connected, it is also possible to delete
Except first logical tunnel, and the first link that the object message passes through to have recovered is forwarded.This
Sample, can discharge a part of Internet resources, improve the carrying capacity of network system.
Fig. 5 is a kind of structural representation of apparatus for forwarding message provided in an embodiment of the present invention, with side shown in Fig. 2
Method embodiment is corresponding, is applied to the first edge equipment in ether Virtual Private Network EVPN networks, described
Form the first link between first edge equipment and the target virtual machine of user terminal, same virtual machine with least
Two edge devices are connected, and described device includes:
Detection module 501, for detecting whether first link breaks down;
Selecting module 502, for when first link breaks down, selecting a first neighbours edge
Equipment has borde gateway as second edge equipment, the first neighbours edge device with first edge equipment
Agreement bgp neighbor relation is connected with the target virtual machine;
Module 503 is obtained, for obtaining the between the first edge equipment and the second edge equipment
One logical tunnel;
Receiver module 504, for receiving the object message sent to the target virtual machine;
Forwarding module 505, for the object message to be forwarded into described by first logical tunnel
Two edge devices, so that the object message is forwarded to the target virtual machine by the second edge equipment.
In the present embodiment, module 503 is obtained specifically to can be used for:
Judge whether set up logical tunnel between the first edge equipment and the second edge equipment, such as
Fruit is that the logical tunnel that will then set up is defined as the first logical tunnel;Otherwise, set in the first edge
It is standby that logical tunnel is set up between the second edge equipment, and the logical tunnel of foundation is defined as first patrols
Collect tunnel.
In the present embodiment, described device can also include that the second link obtains module (not shown);
Second link obtains module to be used for:According to the corresponding virtual machine mark of first link and institute
The link information of the link of first edge equipment storage is stated, virtual machine mark is obtained identical with first link
The second link;
The selecting module 502 specifically can be used for:After second link is obtained, by the second link
Corresponding neighbours' edge device is defined as first neighbours' edge device, and according to the link information of the second link,
An edge device is selected from the first neighbours edge device as second edge equipment.
Wherein, it is stored with the first edge equipment:The chain of the link being connected with the first edge equipment
Road information, and the link being connected with the first neighbours edge device link information;The chain of each of the links
Road information includes:The address information of the edge device that the link is connected virtual machine mark corresponding with the link.
In the present embodiment, described device can also include that address information obtains module (not shown);
The address information obtains module to be used for:When the second link for obtaining has a plurality of, obtain described in each
The address information of the corresponding first neighbours edge device of the second link;
The selecting module 502 specifically can be used for:It is corresponding first adjacent each described second link is obtained
Occupy after the address information of edge device, the first neighbours edge that address information meets the first preset rules is set
It is standby, it is defined as the second edge equipment.
In the present embodiment, described device can also include logical tunnel detection module (not shown);
The logical tunnel detection module is used for:When obtain the second link have a plurality of when, detect each second
Whether logical tunnel has been set up between the corresponding first neighbours edge device of link and the first edge equipment;
The selecting module 502 specifically can be used for:Detecting the corresponding first neighbours side of each second link
Whether set up after logical tunnel between edge equipment and the first edge equipment, set from the second neighbours edge
Used as second edge equipment, the second neighbours edge device is and described the one edge device of standby middle selection
One edge device has set up first neighbours' edge device of logical tunnel.
In the present embodiment, described device can also include hop count acquisition module (not shown):
The hop count acquisition module is used for:Obtain the first edge equipment and each second neighbours' edge device
Between hop count;
The selecting module specifically for:Set with each second neighbours edge when the first edge equipment is obtained
After hop count between standby, second neighbours' edge device that hop count meets the second preset rules is defined as described
Second edge equipment.
Wherein, it is stored with the first edge equipment:The first edge equipment sets with the second neighbours edge
Hop count between standby.
In the present embodiment, described device can also include logical tunnel deactivation module (not shown);
The logical tunnel deactivation module is used for:When the first edge equipment, to detect first link extensive
It is multiply-connected when connecing, disable first logical tunnel;
The forwarding module 505 specifically can be used for:After first logical tunnel is disabled, by
The first link for recovering forwards the object message.
Because said apparatus embodiment is obtained based on message forwarding method embodiment, there is phase with the method
With technique effect, therefore the technique effect of device embodiment will not be repeated here.
For device embodiment, because it is substantially similar to embodiment of the method, so describing to compare
Relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
It should be noted that herein, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these
There is any this actual relation or order between entity or operation.And, term " including ", " bag
Containing " or any other variant be intended to including for nonexcludability so that including a series of key elements
Process, method, article or equipment not only include those key elements, but also its including being not expressly set out
His key element, or it is this process, method, article or the intrinsic key element of equipment also to include.Do not having
In the case of having more limitations, the key element limited by sentence "including a ...", it is not excluded that including
Also there is other identical element in the process of the key element, method, article or equipment.
It will appreciated by the skilled person that all or part of step in above-mentioned implementation method is can
Completed by the related hardware of programmed instruction, described program can be stored in embodied on computer readable storage
In medium.Storage medium designated herein, refers to ROM/RAM, magnetic disc, CD etc..
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the scope of the present invention.
All any modification, equivalent substitution and improvements done within the spirit and principles in the present invention etc., are all contained in
In protection scope of the present invention.
Claims (14)
1. a kind of message forwarding method, it is characterised in that be applied to ether Virtual Private Network EVPN networks
In first edge equipment, form the first link, target between the first edge equipment and target virtual machine
Virtual machine is connected with two or more edge devices, and methods described includes:
When the first edge equipment detects first link to break down, first neighbours are selected
Edge device has border as second edge equipment, the first neighbours edge device with first edge equipment
Gateway protocol bgp neighbor relation is connected with the target virtual machine;
Obtain the first logical tunnel between the first edge equipment and the second edge equipment;
When the first edge equipment receives the object message sent to the target virtual machine, will be described
Object message is forwarded to the second edge equipment by first logical tunnel, so that the second edge
The object message is forwarded to the target virtual machine by equipment.
2. method according to claim 1, it is characterised in that be stored with the first edge equipment:
The link information of the link being connected with the first edge equipment, and with the first neighbours edge device phase
The link information of link even;The link information of each of the links includes:The edge device that the link is connected
Address information virtual machine mark corresponding with the link;
It is described to select first neighbours' edge device as second edge equipment, including:
According to the link that the corresponding virtual machine mark of first link and the first edge equipment are stored
Link information, obtain virtual machine mark and the second link of the first link identical, and by the second link
Corresponding neighbours' edge device is defined as first neighbours' edge device;
According to the link information of the second link, an edge device is selected from the first neighbours edge device
As second edge equipment.
3. method according to claim 2, it is characterised in that when the second link for obtaining has a plurality of,
The link information according to the second link, selects an edge device from the first neighbours edge device
As second edge equipment, including:
Obtain the address information of the corresponding first neighbours edge device of each described second link;By address information
Meet first neighbours' edge device of the first preset rules, be defined as the second edge equipment.
4. method according to claim 2, it is characterised in that when the second link for obtaining has a plurality of,
The link information according to the second link, selects an edge device from the first neighbours edge device
As second edge equipment, including:
Detecting between the corresponding first neighbours edge device of each second link and the first edge equipment is
It is no to have set up logical tunnel;
Select an edge device as second edge equipment from second neighbours' edge device, described second is adjacent
It is first neighbours' edge device that logical tunnel has been set up with the first edge equipment to occupy edge device.
5. method according to claim 4, it is characterised in that be stored with the first edge equipment:
Hop count between the first edge equipment and second neighbours' edge device;
It is described that an edge device is selected from second neighbours' edge device as second edge equipment, including:
Obtain the hop count between the first edge equipment and each second neighbours' edge device;Hop count is met
Second neighbours' edge device of the second preset rules is defined as the second edge equipment.
6. the method according to any one of Claims 1 to 5, it is characterised in that the acquisition described
The first logical tunnel between one edge device and the second edge equipment, including:
Judge whether set up logical tunnel between the first edge equipment and the second edge equipment, such as
Fruit is that the logical tunnel that will then set up is defined as the first logical tunnel;Otherwise, set in the first edge
It is standby that logical tunnel is set up between the second edge equipment, and the logical tunnel of foundation is defined as first patrols
Collect tunnel.
7. method according to claim 1, it is characterised in that methods described also includes:
When the first edge equipment detects first link-recovery to be connected, first logic is disabled
Tunnel, and the object message is forwarded by the first link for having recovered.
8. a kind of apparatus for forwarding message, it is characterised in that be applied to ether Virtual Private Network EVPN networks
In first edge equipment, form the first chain between the first edge equipment and the target virtual machine of user terminal
Road, same virtual machine is connected with two or more edge devices, and described device includes:
Detection module, for detecting whether first link breaks down;
Selecting module, for when first link breaks down, selecting first neighbours' edge device
Used as second edge equipment, the first neighbours edge device has Border Gateway Protocol with first edge equipment
Bgp neighbor relation is connected with the target virtual machine;
Module is obtained, is patrolled for obtaining between the first edge equipment and the second edge equipment first
Collect tunnel;
Receiver module, for receiving the object message sent to the target virtual machine;
Forwarding module, for the object message to be forwarded into second side by first logical tunnel
Edge equipment, so that the object message is forwarded to the target virtual machine by the second edge equipment.
9. device according to claim 8, it is characterised in that be stored with the first edge equipment:
The link information of the link being connected with the first edge equipment, and with the first neighbours edge device phase
The link information of link even;The link information of each of the links includes:The edge device that the link is connected
Address information virtual machine mark corresponding with the link;
Described device also includes that the second link obtains module;
Second link obtains module to be used for:According to the corresponding virtual machine mark of first link and institute
The link information of the link of first edge equipment storage is stated, virtual machine mark is obtained identical with first link
The second link;
The selecting module specifically for:After second link is obtained, by the corresponding neighbour of the second link
Occupy edge device and be defined as first neighbours' edge device, and according to the link information of the second link, from described
An edge device is selected in one neighbours' edge device as second edge equipment.
10. device according to claim 9, it is characterised in that described device also includes address information
Obtain module;
The address information obtains module to be used for:When the second link for obtaining has a plurality of, obtain described in each
The address information of the corresponding first neighbours edge device of the second link;
The selecting module specifically for:Set the corresponding first neighbours edge of each described second link is obtained
After standby address information, address information is met first neighbours' edge device of the first preset rules, it is determined that
It is the second edge equipment.
11. devices according to claim 9, it is characterised in that described device also includes logical tunnel
Detection module;
The logical tunnel detection module is used for:When obtain the second link have a plurality of when, detect each second
Whether logical tunnel has been set up between the corresponding first neighbours edge device of link and the first edge equipment;
The selecting module specifically for:Detect the corresponding first neighbours edge device of each second link with
Whether set up after logical tunnel between the first edge equipment, selected from second neighbours' edge device
One edge device is to be set with the first edge as second edge equipment, the second neighbours edge device
The standby first neighbours' edge device for having set up logical tunnel.
12. devices according to claim 11, it is characterised in that stored in the first edge equipment
Have:Hop count between the first edge equipment and second neighbours' edge device;
Described device also includes hop count acquisition module:
The hop count acquisition module is used for:Obtain the first edge equipment and each second neighbours' edge device
Between hop count;
The selecting module specifically for:Set with each second neighbours edge when the first edge equipment is obtained
After hop count between standby, second neighbours' edge device that hop count meets the second preset rules is defined as described
Second edge equipment.
13. device according to any one of claim 8~12, it is characterised in that the acquisition module
Specifically for:
Judge whether set up logical tunnel between the first edge equipment and the second edge equipment, such as
Fruit is that the logical tunnel that will then set up is defined as the first logical tunnel;Otherwise, set in the first edge
It is standby that logical tunnel is set up between the second edge equipment, and the logical tunnel of foundation is defined as first patrols
Collect tunnel.
14. devices according to claim 8, it is characterised in that described device also includes logical tunnel
Deactivation module;
The logical tunnel deactivation module is used for:When the first edge equipment, to detect first link extensive
It is multiply-connected when connecing, disable first logical tunnel;
The forwarding module specifically for:After first logical tunnel is disabled, by recovered the
One link forwards the object message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610176722.1A CN106789635B (en) | 2016-03-25 | 2016-03-25 | Message forwarding method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610176722.1A CN106789635B (en) | 2016-03-25 | 2016-03-25 | Message forwarding method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106789635A true CN106789635A (en) | 2017-05-31 |
CN106789635B CN106789635B (en) | 2020-08-14 |
Family
ID=58972056
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610176722.1A Active CN106789635B (en) | 2016-03-25 | 2016-03-25 | Message forwarding method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106789635B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018090907A1 (en) * | 2016-11-17 | 2018-05-24 | 新华三技术有限公司 | Message forwarding |
CN108494686A (en) * | 2018-02-28 | 2018-09-04 | 新华三技术有限公司 | Route processing method and device |
CN108718276A (en) * | 2018-04-10 | 2018-10-30 | 新华三技术有限公司 | A kind of message forwarding method and device |
WO2019201014A1 (en) * | 2018-04-17 | 2019-10-24 | 中兴通讯股份有限公司 | Ethernet segment identifier adjacency detection processing method, device, and storage medium |
CN110945835A (en) * | 2017-09-21 | 2020-03-31 | 华为技术有限公司 | Message synchronization method and device |
CN111988222A (en) * | 2020-08-31 | 2020-11-24 | 网易(杭州)网络有限公司 | Data transmission method and device, electronic equipment and computer readable storage medium |
CN113452551A (en) * | 2021-06-11 | 2021-09-28 | 烽火通信科技股份有限公司 | VXLAN tunnel topology monitoring method, device, equipment and storage medium |
CN113726556A (en) * | 2021-08-06 | 2021-11-30 | 国网电力科学研究院有限公司 | Operation and maintenance method, system, storage medium and computing device for edge internet of things agent node |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2613477A1 (en) * | 2010-09-08 | 2013-07-10 | Huawei Technologies Co., Ltd. | Method for triggering route switching and service provider-end provider edge device |
CN103647853A (en) * | 2013-12-04 | 2014-03-19 | 华为技术有限公司 | Method for sending ARP message in VxLAN, VTEP and VxLAN controller |
US20140146817A1 (en) * | 2012-11-29 | 2014-05-29 | Futurewei Technologies, Inc. | System and Method for VXLAN Intern-Domain Communications |
CN103973459A (en) * | 2013-01-24 | 2014-08-06 | 中兴通讯股份有限公司 | Method and device for transmitting multicast messages among IPv6 multicast islands |
CN104135420A (en) * | 2014-07-31 | 2014-11-05 | 华为技术有限公司 | A method, apparatus and system for forwarding message |
CN104168140A (en) * | 2014-08-14 | 2014-11-26 | 杭州华三通信技术有限公司 | VTEP abnormal condition processing method and device |
CN104270298A (en) * | 2014-09-30 | 2015-01-07 | 杭州华三通信技术有限公司 | Method and device for forwarding message in VXLAN |
CN104767680A (en) * | 2015-04-15 | 2015-07-08 | 杭州华三通信技术有限公司 | Rapid route switch method and device |
-
2016
- 2016-03-25 CN CN201610176722.1A patent/CN106789635B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2613477A1 (en) * | 2010-09-08 | 2013-07-10 | Huawei Technologies Co., Ltd. | Method for triggering route switching and service provider-end provider edge device |
US20140146817A1 (en) * | 2012-11-29 | 2014-05-29 | Futurewei Technologies, Inc. | System and Method for VXLAN Intern-Domain Communications |
CN103973459A (en) * | 2013-01-24 | 2014-08-06 | 中兴通讯股份有限公司 | Method and device for transmitting multicast messages among IPv6 multicast islands |
CN103647853A (en) * | 2013-12-04 | 2014-03-19 | 华为技术有限公司 | Method for sending ARP message in VxLAN, VTEP and VxLAN controller |
CN104135420A (en) * | 2014-07-31 | 2014-11-05 | 华为技术有限公司 | A method, apparatus and system for forwarding message |
CN104168140A (en) * | 2014-08-14 | 2014-11-26 | 杭州华三通信技术有限公司 | VTEP abnormal condition processing method and device |
CN104270298A (en) * | 2014-09-30 | 2015-01-07 | 杭州华三通信技术有限公司 | Method and device for forwarding message in VXLAN |
CN104767680A (en) * | 2015-04-15 | 2015-07-08 | 杭州华三通信技术有限公司 | Rapid route switch method and device |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018090907A1 (en) * | 2016-11-17 | 2018-05-24 | 新华三技术有限公司 | Message forwarding |
US11159341B2 (en) | 2016-11-17 | 2021-10-26 | New H3C Technologies Co., Ltd. | Forwarding packet |
CN110945835A (en) * | 2017-09-21 | 2020-03-31 | 华为技术有限公司 | Message synchronization method and device |
CN108494686A (en) * | 2018-02-28 | 2018-09-04 | 新华三技术有限公司 | Route processing method and device |
CN108718276B (en) * | 2018-04-10 | 2021-04-27 | 新华三技术有限公司 | Message forwarding method and device |
CN108718276A (en) * | 2018-04-10 | 2018-10-30 | 新华三技术有限公司 | A kind of message forwarding method and device |
WO2019201014A1 (en) * | 2018-04-17 | 2019-10-24 | 中兴通讯股份有限公司 | Ethernet segment identifier adjacency detection processing method, device, and storage medium |
CN110391951A (en) * | 2018-04-17 | 2019-10-29 | 中兴通讯股份有限公司 | Ethernet segment identifies adjacent detection processing method and device, storage medium |
CN110391951B (en) * | 2018-04-17 | 2022-11-08 | 中兴通讯股份有限公司 | Ethernet segment identifier adjacency detection processing method and device and storage medium |
CN111988222A (en) * | 2020-08-31 | 2020-11-24 | 网易(杭州)网络有限公司 | Data transmission method and device, electronic equipment and computer readable storage medium |
CN113452551A (en) * | 2021-06-11 | 2021-09-28 | 烽火通信科技股份有限公司 | VXLAN tunnel topology monitoring method, device, equipment and storage medium |
CN113452551B (en) * | 2021-06-11 | 2022-07-08 | 烽火通信科技股份有限公司 | VXLAN tunnel topology monitoring method, device, equipment and storage medium |
CN113726556A (en) * | 2021-08-06 | 2021-11-30 | 国网电力科学研究院有限公司 | Operation and maintenance method, system, storage medium and computing device for edge internet of things agent node |
CN113726556B (en) * | 2021-08-06 | 2024-05-31 | 国网电力科学研究院有限公司 | Edge internet of things proxy node operation and maintenance method, system, storage medium and computing equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106789635B (en) | 2020-08-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106789635A (en) | A kind of message forwarding method and device | |
CN101964746B (en) | Routing frames in shortest path computer network for multi-homed legacy bridge node | |
CN100563211C (en) | The implementation method of a kind of virtual gateway, virtual subnet and system | |
US9608903B2 (en) | Systems and methods for recovery from network changes | |
CN102724118B (en) | Label distribution method and device | |
CN102368727B (en) | Crossed IP network TRILL network communication method, system thereof and devices | |
CN103795631B (en) | Deploy the flow forwarding method and equipment in the network of Ethernet virtual link | |
CN100525312C (en) | A method and device for MAC frame forwarding | |
CN104104570A (en) | Aggregation processing method in IRF (Intelligent Resilient Framework) system and device | |
CN105871721A (en) | Segment routing processing method, processing device and sending device | |
CN101582834A (en) | Updating method, equipment and system of forwarding table during service transmission of Ethernet | |
CN103795570B (en) | The unicast message restoration methods and device of the stacked switchboard system of ring topology | |
US9674767B2 (en) | Method and apparatus for forming a tiered wireless local area network (WLAN) server topology | |
CN107332683A (en) | A kind of link switch-over method and system | |
CN104767680B (en) | It route the method and apparatus being switched fast | |
EP2736198B1 (en) | Message processing method and system | |
CN107948041A (en) | The method and apparatus for building the more gateways living of VXLAN centralizations | |
CN106470155A (en) | A kind of retransmission method of virtual-machine data, SDN controller and SDN system | |
CN103731349A (en) | Method for conducting Ethernet virtualized message transmission between interconnection neighbors and edge device | |
CN102984058B (en) | Network communication method based on open stream, controller and exchangers | |
CN105471725A (en) | Routing method and routing device for traversing autonomous system | |
CN105763439B (en) | The interconnected method and device of data center in a kind of multilink transparent internet | |
CN101931586A (en) | Method and system for rapidly rerouting MPLS VPN (Multi-Protocol Label Switching Virtual Private Network) | |
CN106992931A (en) | Interchanger redundancy backup method and dual homed loop system based on dual homed ring | |
CN102801622B (en) | A kind of retransmission method of data message and retransmission unit |
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 |