CN105490937A - Ethernet virtual network gateway switching method and service provider edge node equipment - Google Patents

Ethernet virtual network gateway switching method and service provider edge node equipment Download PDF

Info

Publication number
CN105490937A
CN105490937A CN201410475331.0A CN201410475331A CN105490937A CN 105490937 A CN105490937 A CN 105490937A CN 201410475331 A CN201410475331 A CN 201410475331A CN 105490937 A CN105490937 A CN 105490937A
Authority
CN
China
Prior art keywords
vrrp
gateway
state
vrrp gateway
data center
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410475331.0A
Other languages
Chinese (zh)
Other versions
CN105490937B (en
Inventor
尚旭祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410475331.0A priority Critical patent/CN105490937B/en
Publication of CN105490937A publication Critical patent/CN105490937A/en
Application granted granted Critical
Publication of CN105490937B publication Critical patent/CN105490937B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an Ethernet virtual network gateway switching method and service provider edge node equipment, and belongs to the technical field of networks. The method includes the following steps: first service provider edge node equipment (PE) monitors the state of a first virtual router redundancy protocol (VRRP) gateway, and the first VRRP gateway and the first PE are in a first data center; and when the state of the first VRRP gateway is an abnormal state or standby state, a media access control (MAC) route of the first VRRP gateway on the first PE is eliminated, an MAC route of a second VRRP gateway sent by second PE is obtained, the MAC route of the second VRRP gateway is used to forward flow, the second VRRP gateway and the second PE are in a second data center, the second data center is a data center adjacent to the first data center, and the first data center and the second data center are connected through an internet protocol (IP) tunnel.

Description

Ether virtual network gateway changing method and service provider's edge node devices
Technical field
The present invention relates to networking technology area, particularly a kind of ether virtual network gateway changing method and service provider's edge node devices.
Background technology
Ether virtual network (English: EthernetVirtualNetwork, to be called for short " EVN ") is based upon the double layer network between Liang Ge data center in IP network, is a kind of IP tunneling, is responsible for two layers of traffic transport between Liang Ge data center.See Fig. 1, first data center A is connected by EVN network with the second data center B, first service business edge node devices is provided with (English: ProviderEdge in first data center A, be called for short: PE) and the first Virtual Router Redundacy Protocol (English: VirtualRouterRedundancyProtocol, be called for short: VRRP) gateway, the 2nd PE and the 2nd VPRR gateway is provided with in second data center B, one VRRP gateway and the 2nd VRRP gateway share the three laminar flow amounts forwarding Liang Ge data center jointly, first data center A and the second data center B is (English: InternetProtocol by Internet protocol, be called for short: IP) tunnel connects.One VRRP gateway and the 2nd VRRP gateway all adopt VRRP protocol construction, and namely a VRRP gateway and the 2nd VRRP gateway are all virtual gateways, namely can be made up of a gateway or multiple gateway respectively.Particularly, when a VRRP gateway is made up of multiple gateway, this VRRP gateway is made up of the gateway of a master state and the gateway of multiple stand-by state, functionally be equivalent to a gateway, VRRP gateway has media interviews and controls (English: MediaAccessControl, be called for short: MAC) address, is called virtual mac address.High 40 place values of the virtual mac address of VRRP gateway are fixing, are used for identifying VRRP agreement, and least-significant byte is that (English: Identity is called for short: ID) VRRP mark.
Under normal circumstances, the customer flow of each data center is directly forwarded to the VPRR gateway in this data center by the PE in this data center, do not cross over EVN forwarded flow.
When (easily appearing at the VRRP gateway scene that a gateway is formed) during a VRRP gateway fails in described EVN, such as, it is (English: WirelessLocalAreaNetworks that one VRRP gateway uplink is interfaced to WLAN, be called for short " WLAN ") side is obstructed, or physical link or the logical links of VRRP gateway connection an one PE side are obstructed, a described VRRP gateway can not forward three laminar flow amounts, now a PE needs three laminar flow amounts of the first data center to switch to the 2nd VRRP gateway fast, ensures that three laminar flow amounts continue to flow.
When a VRRP gateway in described EVN and the 2nd VRRP gateway adopt active and standby setting, namely VRRP gateway forwards the flow of Liang Ge data center simultaneously as primary gateway, and another is as standby gateway.But in the case, PE perception switches less than the standby usage state of VRRP gateway.Such as, one VRRP gateway is stand-by state, when 2nd VRRP gateway is master state, one PE still retains the virtual mac address of a VRRP gateway, customer flow under first data center is forwarded to a VRRP gateway by a PE, and due to a VRRP gateway be stand-by state, not converting flow, causes customer flow to be dropped.Therefore, under this scene, require that flow can be switched to the 2nd VRRP gateway and forward by a PE fast.
The scheme of current this problem of solution has two classes: the aging mechanism one, depending on MAC Address, and after the MAC address aging of the VRRP gateway on a PE falls, flow switch is on the 2nd VRRP gateway; Two, when breaking down, people is that the MAC disposed on a PE transmits, and the mode that dependence MAC Address relearns solves this problem.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
No matter be that the aging mechanism relying on MAC Address realizes flow switch or the artificial mac address forwarding table removed on PE, all likely cause flow slow to the speed of the 2nd VRRP gateway from a VRRP gateway handoff, and cause service disconnection further.
Summary of the invention
In order to solve the problem of prior art, the invention provides a kind of ether virtual network gateway changing method and service provider's edge node devices.Described technical scheme is as follows:
On the one hand, this embodiment provides a kind of ether virtual network gateway changing method, and described method comprises:
First service business edge node devices PE monitors the state of the first Virtual Router Redundacy Protocol VRRP gateway, and a described VRRP gateway and a described PE are in the first data center;
When the state of a described VRRP gateway be abnormality or stand-by state time, remove the media interviews control MAC route of a described VRRP gateway on a described PE, obtain the MAC route of the 2nd VRRP gateway that the 2nd PE sends, and use the MAC routing forwarding flow of described 2nd VRRP gateway, described 2nd VRRP gateway and described 2nd PE are in the second data center, described second data center is adjacent data center of described first data center, and described first data center is connected by Internet protocol IP tunnel with described second data center.
In a kind of implementation of the embodiment of the present invention, a described PE monitors the state of a VRRP gateway, comprising:
Monitor local VRRP message;
When listening to local VRRP message, determine that the state of a described VRRP gateway is master state;
When exceeding setting-up time and not hearing local VRRP message, determine that the state of a described VRRP gateway is abnormality or stand-by state.
In the another kind of implementation of the embodiment of the present invention, the MAC route of the 2nd VRRP gateway that described acquisition the 2nd PE sends, comprising:
The virtual LAN VLAN of a described VRRP gateway, VRRP are identified ID and VRRP state and send to described 2nd PE;
Receive the MAC route of the described 2nd VRRP gateway that described 2nd PE sends.
In the another kind of implementation of the embodiment of the present invention, described VLAN, VRRPID and VRRP state by a described VRRP gateway sends to the 2nd PE, comprising:
VLAN, VRRPID and VRRP state of a described VRRP gateway is added in the extended field of Border Gateway Protocol (BGP) message;
The BGP message of VLAN, VRRPID and VRRP state that with the addition of a described VRRP gateway is sent to described 2nd PE.
In the another kind of implementation of the embodiment of the present invention, described method also comprises:
Monitor the state of described 2nd VRRP gateway;
When the state of described 2nd VRRP gateway be abnormality or stand-by state time, the MAC route of a described VRRP gateway is sent to described 2nd PE.
In the another kind of implementation of the embodiment of the present invention, the described MAC route by a described VRRP gateway sends to described 2nd PE, comprising:
The MAC route of a described VRRP gateway is added in the extended field of BGP message;
The BGP message of the MAC route that with the addition of a described VRRP gateway is sent to described 2nd PE.
On the other hand, this embodiment still provides a kind of provider edge node device PE, and described PE comprises:
Monitor module, for monitoring the state of the first Virtual Router Redundacy Protocol VRRP gateway, a described VRRP gateway and described PE are in the first data center;
Processing module, for when the state of a described VRRP gateway be abnormality or stand-by state time, remove the media interviews control MAC route of a described VRRP gateway on described PE, obtain the MAC route of the 2nd VRRP gateway that the 2nd PE sends, and use the MAC routing forwarding flow of described 2nd VRRP gateway; Wherein, described 2nd VRRP gateway and described 2nd PE are in the second data center, described second data center is adjacent data center of described first data center, and described first data center is connected by Internet protocol IP tunnel with described second data center.
In a kind of implementation of the embodiment of the present invention, described monitoring module specifically for:
Monitor local VRRP message; When listening to local VRRP message, determine that the state of a described VRRP gateway is master state;
When exceeding setting-up time and not hearing local VRRP message, determine that the state of a described VRRP gateway is abnormality or stand-by state.
In the another kind of implementation of the embodiment of the present invention, when obtaining the MAC route of described 2nd VRRP gateway that described 2nd PE sends, described processing module specifically for:
The virtual LAN VLAN of a described VRRP gateway, VRRP are identified ID and VRRP state and send to described 2nd PE; And receive the MAC route of the described 2nd VRRP gateway that described 2nd PE sends.
In the another kind of implementation of the embodiment of the present invention, VLAN, VRRP of a described VRRP gateway are identified ID and VRRP state when sending to described 2nd PE, described processing module specifically for:
VLAN, VRRPID and VRRP state of a described VRRP gateway is added in the extended field of Border Gateway Protocol (BGP) message; And
The BGP message of VLAN, VRRPID and VRRP state that with the addition of a described VRRP gateway is sent to described 2nd PE.
In the another kind of implementation of the embodiment of the present invention, described monitoring module, also for monitoring the state of described 2nd VRRP gateway;
Described PE also comprises: sending module, for when the state of described 2nd VRRP gateway be abnormality or stand-by state time, the MAC route of a described VRRP gateway is sent to described 2nd PE.
In the another kind of implementation of the embodiment of the present invention, described sending module specifically for:
The MAC route of a described VRRP gateway is added in the extended field of BGP message; And
The BGP message of the MAC route that with the addition of a described VRRP gateway is sent to described 2nd PE.
The beneficial effect that technical scheme provided by the invention is brought is:
The state of a VRRP gateway is monitored by a PE, when the state of a VRRP gateway be abnormality or stand-by state time, remove the MAC route of a described VRRP gateway on a described PE, use the MAC routing forwarding flow of the 2nd VRRP gateway, both avoided in prior art that to rely on the flow that causes of MAC address aging mechanism slow to the speed of the 2nd VRRP gateway from a VRRP gateway handoff, the problem of the service disconnection caused, in turn saves the human resources of manual switching.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the network diagram provided in background technology of the present invention;
Fig. 2 is the application scenarios schematic diagram that the embodiment of the present invention provides;
Fig. 3 is the ether virtual network gateway changing method flow chart that the embodiment of the present invention one provides;
Fig. 4 is the ether virtual network gateway changing method flow chart that the embodiment of the present invention two provides;
Fig. 5 is the provider edge node device structural representation that the embodiment of the present invention three provides;
Fig. 6 is the provider edge node device structural representation that the embodiment of the present invention four provides;
Fig. 7 is the provider edge node device structural representation that the embodiment of the present invention five provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
For the ease of the description of embodiment, below first simply introduce the application scenarios of embodiment in the present invention.See Fig. 2, this scene relates to a kind of ether virtual network gateway switched system, comprise the first data center 10 and the second data center 20, the heart 10 comprises a VRRP gateway 11, a PE12 and some first storage arrays 13 in the data, and the heart 20 comprises the 2nd VRRP gateway 21, the 2nd PE22 and some second storage arrays 23 in the data.First data center 10 is connected by IP tunnel with the second data center 20, data center specifically can be adopted interconnected (English: DataCenterinterconnect, be called for short: DCI) technology realizes, and between two data centers, namely sets up tunnel for transmitting two laminar flow amounts between two data centers.Wherein, DCI is used on public network, use IP tunnel to carry EVN message, and a PE12 is responsible for, to two layer message encapsulation IP head, then two layer message being sent to the second data center by tunnel from the first data center.
In configuration, because a VRRP gateway 11 and the 2nd VRRP gateway 21 can be master state simultaneously, now the flow of Liang Ge data center is all from local VRRP gateway forwards.When in two gateways, one is master state, when another is stand-by state, the flow of Liang Ge data center is all from the gateway forwards of master state.
It should be noted that, above-described device category is only citing, and the present invention is not restricted this.
Embodiment one
Embodiments provide a kind of ether virtual network gateway changing method, see Fig. 3, the method comprises:
Step 101: first service business fringe node PE monitors the state of the first Virtual Router Redundacy Protocol VRRP gateway, a described VRRP gateway and a described PE are in the first data center.
When the state of a described VRRP gateway is master state, a described PE uses the MAC routing forwarding flow of a described VRRP gateway.
Step 102: when the state of a described VRRP gateway be abnormality or stand-by state time, remove the MAC route of a described VRRP gateway on a described PE, obtain the MAC route of the 2nd VRRP gateway that the 2nd PE sends, and use the MAC routing forwarding flow of described 2nd VRRP gateway.Wherein, described 2nd VRRP gateway and described 2nd PE are in the second data center, described second data center is adjacent data center of described first data center, described first data center is connected by IP tunnel with described second data center, described MAC route by VLAN ID (English: VirtualLocalAreaNetworkIdentifier, VLANID), the IP address composition of MAC Address and down hop be called for short:.As described in the 2nd VRRP gateway MAC route in, VLANID is the VLANID of described 2nd VRRP gateway, MAC Address is the virtual mac address of described 2nd VRRP gateway, and the IP address of down hop is the IP address of the port of a MAC route described PE receiving described 2nd VRRP gateway.Certain MAC route here also can adopt traditional mac address forwarding table to realize, and the IP address by down hop replaces with outbound port.
Use the MAC routing forwarding flow of described 2nd VRRP gateway to refer to, use the MAC route of described 2nd VRRP gateway by traffic forwarding extremely described 2nd VRRP gateway, to make described 2nd VRRP gateway, traffic forwarding is gone out.
The embodiment of the present invention monitors the state of a VRRP gateway by a PE, when the state of a VRRP gateway be abnormality or stand-by state time, remove the MAC route of a described VRRP gateway on a described PE, use the MAC routing forwarding flow of the 2nd VRRP gateway, both avoided in prior art that to rely on the flow that causes of MAC address aging mechanism slow to the speed of the 2nd VRRP gateway from a VRRP gateway handoff, the problem of the service disconnection caused, in turn saves the human resources of manual switching.
Embodiment two
Based on the system shown in Fig. 2, the embodiment of the present invention additionally provides a kind of ether virtual network gateway changing method, and see Fig. 4, the method comprises:
Step 201 a: PE monitors local VRRP message.
In the present embodiment, described local VRRP message is the VRRP message that a described VRRP gateway sends, and is namely in the VRRP message that the VRRP gateway in same data center sends with a described PE.
State is the VRRP gateway meeting timed sending VRRP message of master state, i.e. VRRP notification packet (VRRP message only has a type), notifies that the VRRP gateway oneself being in Status of Backups is working properly.VRRP message comprises VRRPID and priority, VRRPID span 1 ~ 255, priority span 0 ~ 255, and numerical priority value shows that more greatly priority is higher.Other fields are also comprised in certain VRRP message, as VLAN, verify data, School Affairs etc.
VRRP message is encapsulated in IP message, is sent to the IP multicast address distributing to VRRP.In IP heading, source address is the IP address that VRRP gateway sends the interface of message, and destination address is IP multicast address 224.0.0.18, and the time-to-live (English: TimeToLive, be called for short: be TTL) 255, protocol number is 112.
Step 202: when listening to described local VRRP message, a described PE determines that the state of a described VRRP gateway is master state; When exceeding setting-up time and not hearing described local VRRP message, a described PE determines that the state of a described VRRP gateway is abnormality or stand-by state.
Wherein, the state of VRRP gateway can be changed by election.Such as, under preempt-mode, after the VRRP gateway of stand-by state receives VRRP message, the priority in the priority of oneself and VRRP message can be compared.If the priority of oneself is greater than the priority in VRRP message, then become the gateway of master state; Otherwise will stand-by state be kept.In addition, the time interval of the VRRP gateway transmission VRRP message of master state can be arranged, if the VRRP gateway of stand-by state is after the time interval having waited for setting quantity, still do not receive VRRP message, then think it oneself is the VRRP gateway of master state, and externally send VRRP message.
In order to avoid VRRP gateway frequently carries out activestandby state conversion, the VRRP gateway of stand-by state receives priority lower than after the VRRP message of local first level, can not seize immediately and become master state, but after waiting for certain hour (namely seizing time of delay), just externally can send the VRRP gateway that VRRP message replaces original master state.
Under normal circumstances, the VRRP gateway being respectively equipped with master state in Liang Ge data center, the VRRP gateway of master state can send VRRP message termly and go out, this VRRP message can be arrested by the PE being in same data center with VRRP gateway, when described PE in sense cycle continuous reception to the VRRP message of this VRRP gateway, and the parameter that VRRP message carries is normal, comprise the VLAN of VRRP gateway, VRRPID, then judge that gateway VRRP state is master state, suppose all not receive VRRP message in sense cycle, the state of the VRRP gateway then thought in the data center at its place is stand-by state or malfunction.
Step 203: when the state of a described VRRP gateway be abnormality or stand-by state time, a described PE removes the MAC route of a described VRRP gateway on a described PE, obtain the MAC route of the 2nd VRRP gateway that the 2nd PE sends, and use the MAC routing forwarding flow of described 2nd VRRP gateway; When the state of a described VRRP gateway is master state, use the MAC routing forwarding flow of a described VRRP gateway.
Wherein, described 2nd VRRP gateway and described 2nd PE are in the second data center, and described second data center is adjacent data center of described first data center, and described first data center is connected by IP tunnel with described second data center; Described MAC route is made up of the IP address of VLANID, MAC Address and down hop.As described in the 2nd VRRP gateway MAC route in, VLANID is the VLANID of described 2nd VRRP gateway, MAC Address is the virtual mac address of described 2nd VRRP gateway, and the IP address of down hop is the IP address of the port of a MAC route described PE receiving described 2nd VRRP gateway.Certain MAC route here also can adopt traditional mac address forwarding table to realize, and the IP address by down hop replaces with outbound port.
Use the MAC routing forwarding flow of described 2nd VRRP gateway to refer to, adopt the MAC route of described 2nd VRRP gateway by traffic forwarding extremely described 2nd VRRP gateway, to make described 2nd VRRP gateway, traffic forwarding is gone out.
Further, the MAC route obtaining the described 2nd VRRP gateway that described 2nd PE sends can adopt following manner to realize:
VLAN, VRRPID and VRRP state of a described VRRP gateway is sent to described 2nd PE;
Receive the MAC route of the described 2nd VRRP gateway that described 2nd PE sends.
By VLAN, VRRPID and VRRP state of a described VRRP gateway is sent to described 2nd PE, described 2nd PE can be known, and a current described VRRP gateway is in abnormality or stand-by state, after described 2nd PE knows the state of a described VRRP gateway, the MAC route of described 2nd VRRP gateway is sent on a described PE, make a described PE can adopt the MAC routing forwarding flow of described 2nd VRRP gateway, realize flow and switch to described 2nd VRRP gateway fast from a described VRRP gateway, guaranteed flow does not interrupt.
Particularly, VLAN, VRRPID and VRRP state of a described VRRP gateway is sent to described 2nd PE, following manner can be adopted to realize:
VLAN, VRRPID and VRRP state of a described VRRP gateway is added to Border Gateway Protocol (English: BorderGatewayProtocol, be called for short: in the extended field of BGP) message;
The BGP message of VLAN, VRRPID and VRRP state that with the addition of a described VRRP gateway is sent to described 2nd PE.
EVN is set up neighborhood at chain of command by bgp protocol and is notified, namely bgp neighbor can be set up between a described PE and described 2nd PE, when the state that a described PE listens to a described VRRP gateway becomes stand-by state or malfunction, a described PE needs this information announcement to described 2nd PE, this announcement process is realized, as the optional transitive property of BGP by the mode of TLV newly-increased in the extended field of BGP.Monitor function can be configured in described 2nd PE simultaneously, only have the equipment of configuration monitor function just the optional transitive property of treatments B GP.If described 2nd PE is configured with reflector, allow the optional transitive property of described 2nd PE to BGP to notice, but other PE being only configured with monitor function receive this notice just can process optional transitive property.Be not mutually configure neighborhood between two between the PE that described reflector refers to each data center in network, but specify wherein a PE as reflector, other PE all set up neighborhood with this PE, this PE is responsible for receiving MAC route from wherein PE, and then MAC route is distributed to other PE.In the optional transitive property of BGP, by increasing the standby usage state that the mode of a TLV notices a VRRP gateway in BGP message, this TLV comprises: type is (English: type), length is (English: length) and value (English: value).Wherein type type can be self-defined, takies a byte; Length takies a byte; VLANID, VRRP state (English: status) field, takies 8 bytes of VRRPID, a VRRP gateway is carried in value field.VRRPstatus is for identifying the standby usage state of VRRP gateway.
Rely on bgp protocol in EVN and set up neighborhood between the PE at adjacent data center, as as described in a PE and as described between the 2nd PE, after establishing neighborhood, a described PE can not only obtain the MAC route of a described VRRP gateway, and can receive the MAC route that described 2nd PE issues the described 2nd VRRP gateway of coming.
Step 204: a described PE monitors the state of described 2nd VRRP gateway.
Particularly, the state monitoring the 2nd VRRP gateway both can adopt in step 201 and step 202 mode monitoring VRRP message to realize.The BGP message that can also send by receiving described 2nd PE realizes, and with the addition of the VRRP state of described 2nd VRRP gateway, can determine the state of described 2nd VRRP gateway according to this BGP message in BGP message.
Step 205: when the state of described 2nd VRRP gateway be abnormality or stand-by state time, the MAC route of a described VRRP gateway is sent to described 2nd PE by a described PE.
By the MAC route of a described VRRP gateway is sent to described 2nd PE, can ensure when described 2nd VRRP gateway is in abnormality or stand-by state, described 2nd PE can adopt the MAC route of a described VRRP gateway to carry out traffic forwarding, realize flow and switch to a described VRRP gateway fast from described 2nd VRRP gateway, guaranteed flow does not interrupt.
Before transmission, a described PE is by VLAN field, the VRRPID field of a described VRRP gateway, and whether inquiry has a described VRRP gateway MAC route, if inquire corresponding MAC route, then the MAC route of a described VRRP gateway is sent to the 2nd PE; If do not inquire, then do not deal with.
Particularly, described 2nd PE is sent to comprise the MAC route of a described VRRP gateway:
The MAC route of a described VRRP gateway is added in the extended field of BGP message;
The BGP message of the MAC route that with the addition of a described VRRP gateway is sent to described 2nd PE.
Concrete mode can be identical with the form of aforementioned " VLAN, VRRPID of a described VRRP gateway are sent to described 2nd PE with VRRP state ", repeats no more here.
The embodiment of the present invention monitors the state of a VRRP gateway by a PE, when the state of a VRRP gateway be abnormality or stand-by state time, remove the MAC route of a described VRRP gateway on a described PE, use the MAC routing forwarding flow of the 2nd VRRP gateway, both avoided in prior art that to rely on the flow that MAC aging mechanism causes slow to the speed of the 2nd VRRP gateway from a VRRP gateway handoff, the problem of the service disconnection caused, in turn saves the human resources of manual switching.
Embodiment three
Embodiments provide a kind of provider edge node device PE, see Fig. 5, this PE comprises:
Monitor module 301, for monitoring the state of the first Virtual Router Redundacy Protocol VRRP gateway, a described VRRP gateway and described PE are in the first data center;
Processing module 302, for when the state of a described VRRP gateway be abnormality or stand-by state time, remove the MAC route of a described VRRP gateway on described PE, obtain the MAC route of the 2nd VRRP gateway that the 2nd PE sends, and use the MAC routing forwarding flow of described 2nd VRRP gateway, described 2nd VRRP gateway and described 2nd PE are in the second data center, described second data center is adjacent data center of described first data center, and described first data center is connected by IP tunnel with described second data center.
Described processing module 302 also for when the state of a described VRRP gateway is master state, uses the MAC routing forwarding flow of a described VRRP gateway.
Wherein, MAC route is made up of the IP address of VLANID, MAC Address and down hop.As described in the 2nd VRRP gateway MAC route in, VLANID is the VLANID of described 2nd VRRP gateway, MAC Address is the virtual mac address of described 2nd VRRP gateway, and the IP address of down hop is the IP address of the port of a MAC route described PE receiving described 2nd VRRP gateway.Certain MAC route here also can adopt traditional mac address forwarding table to realize, and the IP address by down hop replaces with outbound port.
Use the MAC routing forwarding flow of described 2nd VRRP gateway to refer to, adopt the MAC route of described 2nd VRRP gateway by traffic forwarding extremely described 2nd VRRP gateway, to make described 2nd VRRP gateway, traffic forwarding is gone out.
The embodiment of the present invention monitors the state of a VRRP gateway by PE, when the state of a VRRP gateway be abnormality or stand-by state time, remove the MAC route of a described VRRP gateway on described PE, use the MAC routing forwarding flow of the 2nd VRRP gateway, both avoided in prior art that to rely on the flow that MAC aging mechanism causes slow to the speed of the 2nd VRRP gateway from a VRRP gateway handoff, the problem of the service disconnection caused, in turn saves the human resources of manual switching.
Embodiment four
Embodiments provide a kind of provider edge node device PE, see Fig. 6, this PE comprises:
Monitor module 401, for monitoring the state of the first Virtual Router Redundacy Protocol VRRP gateway, a described VRRP gateway is in the first data center with described PE;
Processing module 402, for when the state of a described VRRP gateway be abnormality or stand-by state time, remove the MAC route of a described VRRP gateway on described PE, obtain the MAC route of the 2nd VRRP gateway that the 2nd PE sends, and use the MAC routing forwarding flow of described 2nd VRRP gateway, described 2nd VRRP gateway and described 2nd PE are in the second data center, described second data center is adjacent data center of described first data center, and described first data center is connected by IP tunnel with described second data center.
Described processing module 402 also for when the state of a described VRRP gateway is master state, uses the MAC routing forwarding flow of a described VRRP gateway.
Wherein, MAC route is made up of the IP address of VLANID, MAC Address and down hop.As described in the 2nd VRRP gateway MAC route in, VLANID is the VLANID of described 2nd VRRP gateway, MAC Address is the virtual mac address of described 2nd VRRP gateway, and the IP address of down hop is the IP address of the port of a MAC route described PE receiving described 2nd VRRP gateway.Certain MAC route here also can adopt traditional mac address forwarding table to realize, and the IP address by down hop replaces with outbound port.
Use the MAC routing forwarding flow of described 2nd VRRP gateway to refer to, adopt the MAC route of described 2nd VRRP gateway by traffic forwarding extremely described 2nd VRRP gateway, to make described 2nd VRRP gateway, traffic forwarding is gone out.
In the present embodiment, state is the VRRP gateway meeting timed sending VRRP message of master state, i.e. VRRP notification packet (VRRP message only has a type), notifies that the VRRP gateway oneself being in Status of Backups is working properly.VRRP message comprises VRRPID and priority, VRRPID span 1 ~ 255, priority span 0 ~ 255, and numerical value shows that more greatly priority is higher.Other fields are also comprised in certain VRRP message, as VLAN, verify data, School Affairs etc.
VRRP message is encapsulated in IP message, is sent to the IP multicast address distributing to VRRP message.In IP heading, source address is the IP address that VRRP gateway sends the interface of message, and destination address is IP multicast address 224.0.0.18, TTL is 255, and protocol number is 112.
Particularly, monitor module 401 specifically for:
Monitor local VRRP message; And
When listening to local VRRP message, determine that the state of a described VRRP gateway is master state;
When exceeding setting-up time and not hearing local VRRP message, determine that the state of a described VRRP gateway is abnormality or stand-by state.
Wherein, the state of VRRP gateway can be changed by election.Such as, under preempt-mode, after the VRRP gateway of stand-by state receives VRRP message, the priority in the priority of oneself and VRRP message can be compared.If the priority of oneself is greater than the priority in VRRP message, then become the gateway of master state; Otherwise will stand-by state be kept.In addition, the time interval of the VRRP gateway transmission VRRP message of master state can be arranged, if the VRRP gateway of stand-by state is after the time interval having waited for setting quantity, still do not receive VRRP message, then think it oneself is the VRRP gateway of master state, and externally send VRRP message.
In order to avoid VRRP gateway frequently carries out activestandby state conversion, the VRRP gateway of stand-by state receives priority lower than after the VRRP message of local first level, can not seize immediately and become master state, but after waiting for certain hour (namely seizing time of delay), just externally can send the VRRP gateway that VRRP message replaces original master state.
Under normal circumstances, the VRRP gateway being respectively equipped with master state in Liang Ge data center, the VRRP gateway of master state can send VRRP message termly, this message can be arrested by the PE being in same data center with VRRP gateway, when PE in sense cycle continuous reception to the message of this VRRP, and the parameter that VRRP message carries is normal, comprise the VLAN of VRRP gateway, VRRPID, interface index, then judge that gateway VRRP state is master state, suppose all not receive VRRP message in sense cycle, the state of the VRRP gateway in the data center at then its place is stand-by state or malfunction.
In one embodiment, when obtaining the MAC route of described 2nd VRRP gateway that described 2nd PE sends, processing module 402 specifically for:
VLAN, VRRPID and VRRP state of a described VRRP gateway is sent to described 2nd PE; And receive the MAC route of the 2nd VRRP gateway that described 2nd PE sends.
By VLAN, VRRPID and VRRP state of a described VRRP gateway is sent to described 2nd PE, described 2nd PE can be known, and a current described VRRP gateway is in abnormality or stand-by state, after described 2nd PE knows the state of a described VRRP gateway, the MAC route of described 2nd VRRP gateway is sent on a described PE, make a described PE can adopt the MAC routing forwarding flow of described 2nd VRRP gateway, realize flow and switch to described 2nd VRRP gateway fast from a described VRRP gateway, guaranteed flow does not interrupt.
Further, VLAN, VRRP of a described VRRP gateway are identified ID and VRRP state when sending to described 2nd PE, processing module 402 specifically for:
VLAN, VRRPID and VRRP state of a described VRRP gateway is added in the extended field of BGP message; And
The BGP message of VLAN, VRRPID and VRRP state that with the addition of a described VRRP gateway is sent to the 2nd PE.
EVN is set up neighborhood at chain of command by bgp protocol and is notified, namely bgp neighbor is set up between described PE and described 2nd PE, when the state that described PE listens to a described VRRP gateway becomes stand-by state or malfunction, described PE needs this information announcement to described 2nd PE, this announcement process we realized, as the optional transitive property of BGP by the mode of TLV newly-increased in the extended field of BGP message.Monitor function can be configured in described 2nd PE simultaneously, only have the equipment of configuration monitor function just the optional transitive property of treatments B GP.If described 2nd PE is configured with reflector, allow the optional transitive property of described 2nd PE to BGP to notice, but other PE being only configured with monitor function receive this notice just can process optional transitive property.Be not mutually configure neighborhood between two between the PE that reflector refers to each data center in network, but specify wherein a PE as reflector, other PE all set up neighborhood in this PE, this PE is responsible for receiving MAC route from wherein PE, and then MAC route is distributed to other PE.In the optional transitive property of BGP, the mode increasing TLV notices the standby usage state of a VRRP gateway, and this TLV comprises: type, length and value.Wherein type can be self-defined, takies a byte; Length takies a byte; Carry VLANID, VRRPstatus field of VRRPID, a VRRP gateway in value field, take 8 bytes.VRRPstatus is for identifying the standby usage state of VRRP gateway.
Rely on bgp protocol in EVN and set up neighborhood between the PE at adjacent data center, as as described in a PE and as described between the 2nd PE, after establishing neighborhood, a described PE can not only obtain the MAC route of a described VRRP gateway, and can receive the MAC route that described 2nd PE issues the described 2nd VRRP gateway of coming.
Further, module 401 is monitored, also for monitoring the state of described 2nd VRRP gateway;
This PE also comprises: sending module 403, for when the state of described 2nd VRRP gateway be abnormality or stand-by state time, the MAC route of a described VRRP gateway is sent to described 2nd PE.
By the MAC route of a described VRRP gateway is sent to described 2nd PE, can ensure when described 2nd VRRP gateway is in abnormality or stand-by state, described 2nd PE can adopt the MAC route of a described VRRP gateway to carry out traffic forwarding, realize flow and switch to a described VRRP gateway fast from described 2nd VRRP gateway, guaranteed flow does not interrupt.
Before transmission, described PE is by VLAN field, the VRRPID field of a described VRRP gateway, and whether inquiry has the MAC route of a described VRRP gateway, if inquire corresponding MAC route, then sends to described 2nd PE; If do not inquire, then do not deal with.
In one embodiment, sending module 403 specifically for:
The MAC route of a described VRRP gateway is added in the extended field of BGP message; And
The BGP message of the MAC route that with the addition of a described VRRP gateway is sent to described 2nd PE.
Concrete mode can be identical with the form of aforementioned " VLAN, VRRPID of a VRRP gateway are sent to described 2nd PE with VRRP state ", repeats no more here.
The embodiment of the present invention monitors the state of a VRRP gateway by PE, when the state of a VRRP gateway be abnormality or stand-by state time, remove the MAC route of a described VRRP gateway on described PE, use the MAC routing forwarding flow of the 2nd VRRP gateway, both avoided in prior art that to rely on the flow that MAC aging mechanism causes slow to the speed of the 2nd VRRP gateway from a VRRP gateway handoff, the problem of the service disconnection caused, in turn saves the human resources of manual switching.
Embodiment five
Embodiments provide a kind of provider edge node PE, see Fig. 7, this PE comprises processor 601, memory 602, bus 603 and communication interface 604.Wherein, memory 602 is for program code stored, processor 601, memory 602, communication interface 604 are connected by bus 603, when described PE runs, the described program code that processor 601 execute store 602 stores, to make the ether virtual network gateway changing method in described PE execution embodiment one or embodiment two.
The embodiment of the present invention monitors the state of a VRRP gateway by PE, when the state of a VRRP gateway be abnormality or stand-by state time, remove the MAC route of a described VRRP gateway on described PE, use the MAC routing forwarding flow of the 2nd VRRP gateway, both avoided in prior art that to rely on the flow that MAC aging mechanism causes slow to the speed of the 2nd VRRP gateway from a VRRP gateway handoff, the problem of the service disconnection caused, in turn saves the human resources of manual switching.
It should be noted that: the provider edge node device that above-described embodiment provides is when switching gateway, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by equipment is divided into different functional modules, to complete all or part of function described above.In addition, the provider edge node device that above-described embodiment provides and ether virtual network gateway changing method embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. an ether virtual network gateway changing method, is characterized in that, described method comprises:
First service business edge node devices PE monitors the state of the first Virtual Router Redundacy Protocol VRRP gateway, and a described VRRP gateway and a described PE are in the first data center;
When the state of a described VRRP gateway be abnormality or stand-by state time, remove the media interviews control MAC route of a described VRRP gateway on a described PE, obtain the MAC route of the 2nd VRRP gateway that the 2nd PE sends, and use the MAC routing forwarding flow of described 2nd VRRP gateway, described 2nd VRRP gateway and described 2nd PE are in the second data center, described second data center is adjacent data center of described first data center, and described first data center is connected by Internet protocol IP tunnel with described second data center.
2. method according to claim 1, is characterized in that, a described PE monitors the state of a VRRP gateway, comprising:
Monitor local VRRP message;
When listening to local VRRP message, determine that the state of a described VRRP gateway is master state;
When exceeding setting-up time and not hearing local VRRP message, determine that the state of a described VRRP gateway is abnormality or stand-by state.
3. method according to claim 1 and 2, is characterized in that, the MAC route of the 2nd VRRP gateway that described acquisition the 2nd PE sends, comprising:
The virtual LAN VLAN of a described VRRP gateway, VRRP are identified ID and VRRP state and send to described 2nd PE;
Receive the MAC route of the described 2nd VRRP gateway that described 2nd PE sends.
4. method according to claim 3, is characterized in that, described VLAN, VRRPID and VRRP state by a described VRRP gateway sends to described 2nd PE, comprising:
VLAN, VRRPID and VRRP state of a described VRRP gateway is added in the extended field of Border Gateway Protocol (BGP) message;
The BGP message of VLAN, VRRPID and VRRP state that with the addition of a described VRRP gateway is sent to described 2nd PE.
5. method according to claim 1 and 2, is characterized in that, described method also comprises:
Monitor the state of described 2nd VRRP gateway;
When the state of described 2nd VRRP gateway be abnormality or stand-by state time, the MAC route of a described VRRP gateway is sent to described 2nd PE.
6. method according to claim 5, is characterized in that, the described MAC route by a described VRRP gateway sends to described 2nd PE, comprising:
The MAC route of a described VRRP gateway is added in the extended field of BGP message;
The BGP message of the MAC route that with the addition of a described VRRP gateway is sent to described 2nd PE.
7. a provider edge node device PE, is characterized in that, described PE comprises:
Monitor module, for monitoring the state of the first Virtual Router Redundacy Protocol VRRP gateway, a described VRRP gateway and described PE are in the first data center;
Processing module, for when the state of a described VRRP gateway be abnormality or stand-by state time, remove the media interviews control MAC route of a described VRRP gateway on described PE, obtain the MAC route of the 2nd VRRP gateway that the 2nd PE sends, and use the MAC routing forwarding flow of described 2nd VRRP gateway; Wherein, described 2nd VRRP gateway and described 2nd PE are in the second data center, described second data center is adjacent data center of described first data center, and described first data center is connected by Internet protocol IP tunnel with described second data center.
8. PE according to claim 7, is characterized in that, described monitoring module specifically for:
Monitor local VRRP message; When listening to local VRRP message, determine that the state of a described VRRP gateway is master state; When exceeding setting-up time and not hearing local VRRP message, determine that the state of a described VRRP gateway is abnormality or stand-by state.
9. the PE according to claim 7 or 8, is characterized in that, when obtaining the MAC route of described 2nd VRRP gateway that described 2nd PE sends, described processing module specifically for:
The virtual LAN VLAN of a described VRRP gateway, VRRP are identified ID and VRRP state and send to described 2nd PE; And receive the MAC route of the described 2nd VRRP gateway that described 2nd PE sends.
10. PE according to claim 9, is characterized in that, VLAN, VRRP of a described VRRP gateway is identified ID and VRRP state when sending to described 2nd PE, described processing module specifically for:
VLAN, VRRPID and VRRP state of a described VRRP gateway is added in the extended field of Border Gateway Protocol (BGP) message; And
The BGP message of VLAN, VRRPID and VRRP state that with the addition of a described VRRP gateway is sent to described 2nd PE.
11. PE according to claim 7 or 8, is characterized in that, described monitoring module, also for monitoring the state of described 2nd VRRP gateway;
Described PE also comprises: sending module, for when the state of described 2nd VRRP gateway be abnormality or stand-by state time, the MAC route of a described VRRP gateway is sent to described 2nd PE.
12. PE according to claim 11, is characterized in that, described sending module specifically for:
The MAC route of a described VRRP gateway is added in the extended field of BGP message; And
The BGP message of the MAC route that with the addition of a described VRRP gateway is sent to described 2nd PE.
CN201410475331.0A 2014-09-17 2014-09-17 Ether virtual network gateway switching method and service provider's edge node devices Active CN105490937B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410475331.0A CN105490937B (en) 2014-09-17 2014-09-17 Ether virtual network gateway switching method and service provider's edge node devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410475331.0A CN105490937B (en) 2014-09-17 2014-09-17 Ether virtual network gateway switching method and service provider's edge node devices

Publications (2)

Publication Number Publication Date
CN105490937A true CN105490937A (en) 2016-04-13
CN105490937B CN105490937B (en) 2019-02-01

Family

ID=55677667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410475331.0A Active CN105490937B (en) 2014-09-17 2014-09-17 Ether virtual network gateway switching method and service provider's edge node devices

Country Status (1)

Country Link
CN (1) CN105490937B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948041A (en) * 2017-11-22 2018-04-20 锐捷网络股份有限公司 The method and apparatus for building the more gateways living of VXLAN centralizations
CN107959626A (en) * 2017-12-13 2018-04-24 迈普通信技术股份有限公司 Communication means, the apparatus and system of data center
CN109041101A (en) * 2018-08-24 2018-12-18 北京小米移动软件有限公司 WIFI cutout processing method, terminal, server and storage medium
CN109617716A (en) * 2018-11-30 2019-04-12 新华三技术有限公司合肥分公司 Data center's abnormality eliminating method and device
CN110753002A (en) * 2019-09-29 2020-02-04 北京浪潮数据技术有限公司 Traffic scheduling method and device
WO2020030000A1 (en) * 2018-08-08 2020-02-13 华为技术有限公司 Disaster recovery switching method, related device and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102780615A (en) * 2012-07-17 2012-11-14 杭州华三通信技术有限公司 Link backup method and routing forwarding device
CN102984014A (en) * 2012-12-18 2013-03-20 北京华为数字技术有限公司 Data transmission method and network system
WO2013107356A1 (en) * 2012-01-20 2013-07-25 Hangzhou H3C Technologies Co., Ltd. Implementing dual-homed node protection
CN103746881A (en) * 2014-01-13 2014-04-23 杭州华三通信技术有限公司 Neighbor state detection method and neighbor state detection device in EVI (Ethernet Virtualization Interconnection) network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013107356A1 (en) * 2012-01-20 2013-07-25 Hangzhou H3C Technologies Co., Ltd. Implementing dual-homed node protection
CN102780615A (en) * 2012-07-17 2012-11-14 杭州华三通信技术有限公司 Link backup method and routing forwarding device
CN102984014A (en) * 2012-12-18 2013-03-20 北京华为数字技术有限公司 Data transmission method and network system
CN103746881A (en) * 2014-01-13 2014-04-23 杭州华三通信技术有限公司 Neighbor state detection method and neighbor state detection device in EVI (Ethernet Virtualization Interconnection) network

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948041A (en) * 2017-11-22 2018-04-20 锐捷网络股份有限公司 The method and apparatus for building the more gateways living of VXLAN centralizations
CN107948041B (en) * 2017-11-22 2020-12-18 锐捷网络股份有限公司 Method and equipment for constructing VXLAN centralized multi-active gateway
CN107959626A (en) * 2017-12-13 2018-04-24 迈普通信技术股份有限公司 Communication means, the apparatus and system of data center
CN107959626B (en) * 2017-12-13 2021-06-04 迈普通信技术股份有限公司 Communication method, device and system of data center
WO2020030000A1 (en) * 2018-08-08 2020-02-13 华为技术有限公司 Disaster recovery switching method, related device and computer storage medium
CN109041101A (en) * 2018-08-24 2018-12-18 北京小米移动软件有限公司 WIFI cutout processing method, terminal, server and storage medium
CN109041101B (en) * 2018-08-24 2022-03-18 北京小米移动软件有限公司 WIFI cut-off processing method, terminal, server and storage medium
CN109617716A (en) * 2018-11-30 2019-04-12 新华三技术有限公司合肥分公司 Data center's abnormality eliminating method and device
CN109617716B (en) * 2018-11-30 2022-02-25 新华三技术有限公司合肥分公司 Data center exception handling method and device
CN110753002A (en) * 2019-09-29 2020-02-04 北京浪潮数据技术有限公司 Traffic scheduling method and device

Also Published As

Publication number Publication date
CN105490937B (en) 2019-02-01

Similar Documents

Publication Publication Date Title
CN106936777B (en) Cloud computing distributed network implementation method and system based on OpenFlow
EP2945320B1 (en) Method, device and routing system for data transmission of network virtualization
EP3255840B1 (en) Label distribution method and device
KR102342286B1 (en) DCN message processing method, network device, and network system
US8503329B2 (en) Signaling of attachment circuit status and automatic discovery of inter-chassis communication peers
EP2533475B1 (en) Method and system for host route reachability in packet transport network access ring
EP3958509A1 (en) Method, apparatus and system for communication between controllers in tsn
CN105490937A (en) Ethernet virtual network gateway switching method and service provider edge node equipment
CN106230749B (en) A kind of method to E-Packet in virtual expansible local area network and convergence switch
CN102638389A (en) Redundancy backup method and system of TRILL (Transparent Interconnection over Lots of Links) network
EP4016932A1 (en) Evpn and vpls coexistence method, apparatus, and system
US11563680B2 (en) Pseudo wire load sharing method and device
US11736962B2 (en) Methods, apparatus and computer-readable mediums relating to configuration of redundant paths
CN104270309A (en) Method for achieving multi-hop BFD under IP RAN equipment
WO2015144018A1 (en) Information transmission method, device and communication system
CN107040441B (en) Cross-data-center data transmission method, device and system
WO2016095322A1 (en) Vrrp-based data transmission method and apparatus
EP3866408A1 (en) Method for determining df of multicast stream, device, and system
WO2022021818A1 (en) Method and device for processing data message, storage medium, and electronic device
CN102437919B (en) Access router and link reliability protection method
CN113259235A (en) IPv 6-based dual-active route redundancy method and system
CN107592259B (en) Flow switching method in a kind of VRRP protection scene
JP2023503825A (en) Packet forwarding method, first network device and first device group
CN209982508U (en) IP RAN network system
CN104702498A (en) Method and device for reducing the number of optical connections through coordination protection

Legal Events

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