CN105490937B - Ether virtual network gateway switching method and service provider's edge node devices - Google Patents

Ether virtual network gateway switching method and service provider's edge node devices Download PDF

Info

Publication number
CN105490937B
CN105490937B CN201410475331.0A CN201410475331A CN105490937B CN 105490937 B CN105490937 B CN 105490937B CN 201410475331 A CN201410475331 A CN 201410475331A CN 105490937 B CN105490937 B CN 105490937B
Authority
CN
China
Prior art keywords
vrrp
gateway
state
data center
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410475331.0A
Other languages
Chinese (zh)
Other versions
CN105490937A (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 a kind of ether virtual network gateway switching method and service provider's edge node devices, belong to network technique field.The described method includes: first service quotient's edge node devices PE monitors the state of the first Virtual Router Redundacy Protocol VRRP gateway, the first VRRP gateway and the first PE are in the first data center;When the state of the first VRRP gateway is abnormality or stand-by state, remove the media access control MAC routing of the first VRRP gateway on the first PE, obtain the MAC routing of the 2nd VRRP gateway of the 2nd PE transmission, and use the MAC routing forwarding flow of the 2nd VRRP gateway, the 2nd VRRP gateway and the 2nd PE are in the second data center, second data center is adjacent data center of first data center, and first data center is connect with second data center by Internet protocol IP tunnel.

Description

Ether virtual network gateway switching method and service provider's edge node devices
Technical field
The present invention relates to network technique field, in particular to a kind of ether virtual network gateway switching method and service provider side Edge node device.
Background technique
Ether virtual network (English: Ethernet Virtual Network, referred to as " EVN ") it is built upon two data Double layer network between center on IP network is a kind of IP tunneling, the two laminar flow amounts transmission being responsible between Liang Ge data center.Ginseng See that Fig. 1, the first data center A and the second data center B are connected to the network by EVN, first service is equipped in the first data center A Quotient's edge node devices (English: Provider Edge, referred to as: PE) and the first Virtual Router Redundacy Protocol (English: Virtual Router Redundancy Protocol, referred to as: VRRP) gateway, the 2nd PE and the 2nd VPRR is equipped in the second data center B Gateway, the first VRRP gateway and the 2nd VRRP gateway share three laminar flow amounts of forwarding Liang Ge data center jointly, in the first data Heart A and the second data center B passes through Internet protocol (English: Internet Protocol, abbreviation: IP) tunnel connection.First VRRP gateway and the 2nd VRRP gateway are all made of VRRP protocol construction, i.e., the first VRRP gateway and the 2nd VRRP gateway are virtual Gateway, it can be made of respectively a gateway or multiple gateways.Specifically, when a VRRP gateway is made of multiple gateways When, which is made of the gateway of master state and the gateway of multiple stand-by states, is functionally equivalent to a net It closes, VRRP gateway has a media access control (English: Media Access Control, abbreviation: MAC) address, referred to as Virtual mac address.High 40 place value of the virtual mac address of VRRP gateway be it is fixed, for identifying VRRP agreement, least-significant byte is VRRP mark (English: Identity, referred to as: ID).
Under normal conditions, the customer flow of each data center is forwarded directly in the data by the PE in the data center VPRR gateway in the heart, not across EVN forwarded flow.
(the VRRP gateway scene of gateway composition is easily appeared in) when the first VRRP gateway fails in the EVN, example Such as, the first VRRP gateway uplink is interfaced to Wireless LAN (English: Wireless Local Area Networks, abbreviation " WLAN ") side is obstructed or the first VRRP gateway connect the first side PE physical link or logical links it is obstructed, described first VRRP gateway cannot forward three laminar flow amounts, and the first PE needs three laminar flow amounts of the first data center being rapidly switched to second at this time VRRP gateway guarantees that three laminar flow amounts do not stop.
When the first VRRP gateway in the EVN and the 2nd VRRP gateway use active and standby setting, i.e., a VRRP gateway is made Forward the flow of Liang Ge data center simultaneously for primary gateway, another is used as standby gateway.But in the case, PE is perceived not Standby usage state to VRRP gateway switches.For example, the first VRRP gateway is stand-by state, the 2nd VRRP gateway is master state When, the first PE still retains the virtual mac address of the first VRRP gateway, and the customer flow under the first data center is forwarded by the first PE To the first VRRP gateway, and since the first VRRP gateway is stand-by state, converting flow, does not cause customer flow to be dropped.Cause This, in this scenario, it is desirable that flow can be rapidly switched to the 2nd VRRP gateway and is forwarded by the first PE.
Solve the problems, such as that this scheme has two classes at present: one, dependent on the aging mechanism of MAC Address, on the first PE first Flow switches on the 2nd VRRP gateway after the MAC address aging of VRRP gateway falls;Two, in the event of a failure, artificial to remove Fall the MAC forwarding table on the first PE, relies on the mode that MAC Address relearns to solve the problems, such as this.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
The aging mechanism for either relying on MAC Address realizes flow switching or the artificial MAC Address forwarding removed on PE It is slow from the first VRRP gateway handoff to the speed of the 2nd VRRP gateway to be likely to result in flow, and further results in business for table It interrupts.
Summary of the invention
In order to solve problems in the prior art, the present invention provides a kind of ether virtual network gateway switching method and services Quotient's edge node devices.The technical solution is as follows:
On the one hand, this hair embodiment provides a kind of ether virtual network gateway switching method, which comprises
First service quotient's edge node devices PE monitors the state of the first Virtual Router Redundacy Protocol VRRP gateway, and described the One VRRP gateway and the first PE are in the first data center;
When the state of the first VRRP gateway is abnormality or stand-by state, remove described on the first PE The media access control MAC of first VRRP gateway is routed, and obtains the MAC routing for the 2nd VRRP gateway that the 2nd PE is sent, and is made With the MAC routing forwarding flow of the 2nd VRRP gateway, the 2nd VRRP gateway and the 2nd PE are in the second data In center, second data center is adjacent data center of first data center, first data center and institute The second data center is stated to connect by Internet protocol IP tunnel.
In an implementation of the embodiment of the present invention, the first PE monitors the state of the first VRRP gateway, comprising:
Monitor local VRRP message;
When listening to local VRRP message, determine that the state of the first VRRP gateway is master state;
When being more than that setting time does not hear local VRRP message, determine that the state of the first VRRP gateway is abnormal State or stand-by state.
In another implementation of the embodiment of the present invention, the 2nd VRRP gateway for obtaining the 2nd PE transmission MAC routing, comprising:
The virtual LAN VLAN of the first VRRP gateway, VRRP mark ID and VRRP state are sent to described second PE;
Receive the MAC routing for the 2nd VRRP gateway that the 2nd PE is sent.
In another implementation of the embodiment of the present invention, VLAN, VRRP ID by the first VRRP gateway The 2nd PE is sent to VRRP state, comprising:
VLAN, VRRP ID of the first VRRP gateway and VRRP state are added to Border Gateway Protocol (BGP) message In extended field;
The BGP message of the VLAN, VRRP ID that are added to the first VRRP gateway and VRRP state are sent to described Two PE.
In another implementation of the embodiment of the present invention, the method also includes:
Monitor the state of the 2nd VRRP gateway;
When the state of the 2nd VRRP gateway is abnormality or stand-by state, by the first VRRP gateway MAC routing is sent to the 2nd PE.
In another implementation of the embodiment of the present invention, the MAC by the first VRRP gateway, which is routed, to be sent To the 2nd PE, comprising:
The MAC routing of the first VRRP gateway is added in the extended field of BGP message;
The MAC for being added to the first VRRP gateway BGP message routed is sent to the 2nd PE.
On the other hand, this hair embodiment additionally provides a kind of provider edge node device PE, and the PE includes:
Module is monitored, for monitoring the state of the first Virtual Router Redundacy Protocol VRRP gateway, the first VRRP gateway It is in the first data center with the PE;
Processing module, for removing institute when the state of the first VRRP gateway is abnormality or stand-by state The media access control MAC routing for stating the first VRRP gateway on PE, obtains the MAC for the 2nd VRRP gateway that the 2nd PE is sent Routing, and use the MAC routing forwarding flow of the 2nd VRRP gateway;Wherein, the 2nd VRRP gateway and described second PE is in the second data center, and second data center is adjacent data center of first data center, and described One data center is connect with second data center by Internet protocol IP tunnel.
In an implementation of the embodiment of the present invention, the monitoring module is specifically used for:
Monitor local VRRP message;When listening to local VRRP message, determine that the state of the first VRRP gateway is Master state;
When being more than that setting time does not hear local VRRP message, determine that the state of the first VRRP gateway is abnormal State or stand-by state.
In another implementation of the embodiment of the present invention, when the 2nd VRRP net for obtaining the 2nd PE transmission When the MAC routing of pass, the processing module is specifically used for:
The virtual LAN VLAN of the first VRRP gateway, VRRP mark ID and VRRP state are sent to described second PE;And receive the MAC routing for the 2nd VRRP gateway that the 2nd PE is sent.
In another implementation of the embodiment of the present invention, VLAN, VRRP of the first VRRP gateway are identified into ID When being sent to two PE with VRRP state, the processing module is specifically used for:
VLAN, VRRP ID of the first VRRP gateway and VRRP state are added to Border Gateway Protocol (BGP) message In extended field;And
The BGP message of the VLAN, VRRP ID that are added to the first VRRP gateway and VRRP state are sent to described Two PE.
In another implementation of the embodiment of the present invention, the monitoring module is also used to monitor the 2nd VRRP The state of gateway;
The PE further include: sending module, the state for working as the 2nd VRRP gateway are abnormality or spare When state, the MAC routing of the first VRRP gateway is sent to the 2nd PE.
In another implementation of the embodiment of the present invention, the sending module is specifically used for:
The MAC routing of the first VRRP gateway is added in the extended field of BGP message;And
The MAC for being added to the first VRRP gateway BGP message routed is sent to the 2nd PE.
Technical solution provided by the invention has the benefit that
The state that the first VRRP gateway is monitored by the first PE, when the state of the first VRRP gateway is abnormality or standby When with state, the MAC routing of the first VRRP gateway on the first PE is removed, is routed using the MAC of the 2nd VRRP gateway Converting flow, both avoided in the prior art rely on MAC address aging mechanism caused by flow from the first VRRP gateway handoff to The problem of speed of 2nd VRRP gateway is slow, caused service disconnection, and save the human resources of manual switching.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the network diagram provided in background of invention;
Fig. 2 is application scenarios schematic diagram provided in an embodiment of the present invention;
Fig. 3 is the ether virtual network gateway switching method flow chart that the embodiment of the present invention one provides;
Fig. 4 is ether virtual network gateway switching method flow chart provided by Embodiment 2 of the present invention;
Fig. 5 is the provider edge node device structural schematic diagram that the embodiment of the present invention three provides;
Fig. 6 is the provider edge node device structural schematic diagram that the embodiment of the present invention four provides;
Fig. 7 is the provider edge node device structural schematic diagram that the embodiment of the present invention five provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
For the ease of the description of embodiment, below first simply introduce the application scenarios of embodiment in the present invention.Referring to Fig. 2, the scene are related to a kind of ether virtual network gateway switching system, including the first data center 10 and the second data center 20, it include the first VRRP gateway 11, the first PE12 and several first storage arrays 13 in data center 10, in data center 20 In include the 2nd VRRP gateway 21, the 2nd PE22 and several second storage arrays 23.In first data center 10 and the second data The heart 20 is connected by IP tunnel, specifically can be using data center's interconnection (English: Data Center interconnect, letter Claim: DCI) technology realization, i.e., the two laminar flow amounts that tunnel is used for transmission between two data centers are established between two data centers.Wherein, DCI is used on public network carry EVN message using IP tunnel, and the first PE12 is responsible for encapsulating IP head to two layer message, then by two Layer message is sent to the second data center from the first data center by tunnel.
In terms of configuration, since the first VRRP gateway 11 and the 2nd VRRP gateway 21 can be master state simultaneously, at this time The flow of Liang Ge data center is from local VRRP gateway forwards.When one is master state in two gateways, another is standby When with state, the flow of Liang Ge data center is from the gateway forwards of master state.
It should be noted that the apparatus described above type is only for example, the invention is not limited in this regard.
Embodiment one
The embodiment of the invention provides a kind of ether virtual network gateway switching methods, referring to Fig. 3, this method comprises:
Step 101: first service quotient's fringe node PE monitors the state of the first Virtual Router Redundacy Protocol VRRP gateway, institute It states the first VRRP gateway and the first PE is in the first data center.
When the state of the first VRRP gateway is master state, the first PE uses the first VRRP gateway MAC routing forwarding flow.
Step 102: when the state of the first VRRP gateway is abnormality or stand-by state, removing described first The MAC of the upper first VRRP gateway of PE is routed, and obtains the MAC routing for the 2nd VRRP gateway that the 2nd PE is sent, and uses institute State the MAC routing forwarding flow of the 2nd VRRP gateway.Wherein, the 2nd VRRP gateway and the 2nd PE are in the second data In center, second data center is adjacent data center of first data center, first data center and institute It states the second data center to connect by IP tunnel, the MAC routing is by VLAN ID (English: Virtual Local Area Network Identifier, referred to as: VLAN ID), the IP address composition of MAC Address and next-hop.Such as described second In the MAC routing of VRRP gateway, VLAN ID is the VLAN ID of the 2nd VRRP gateway, and MAC Address is the 2nd VRRP The virtual mac address of gateway, the IP address of next-hop are that the MAC routing of the 2nd VRRP gateway is received on the first PE Port IP address.Certainly MAC routing here can also be realized using traditional mac address forwarding table, i.e., by next-hop IP address replace with exit port.
MAC routing forwarding flow using the 2nd VRRP gateway refers to, uses the road MAC of the 2nd VRRP gateway By flow is forwarded to the 2nd VRRP gateway, so that the 2nd VRRP gateway forwards flow.
The embodiment of the present invention monitors the state of the first VRRP gateway by the first PE, when the state of the first VRRP gateway is different When normal state or stand-by state, the MAC routing of the first VRRP gateway on the first PE is removed, the 2nd VRRP net is used The MAC routing forwarding flow of pass had both avoided and has relied on flow caused by MAC address aging mechanism in the prior art from the first VRRP The problem of speed of gateway handoff to the 2nd VRRP gateway is slow, caused service disconnection, and save the manpower money of manual switching Source.
Embodiment two
Based on system shown in Fig. 2, the embodiment of the invention also provides a kind of ether virtual network gateway switching method, ginsengs See Fig. 4, this method comprises:
Step 201: the first PE monitors local VRRP message.
In the present embodiment, the local VRRP message be the first VRRP gateway send VRRP message, i.e., with it is described First PE is in the VRRP message of the transmission of the VRRP gateway in the same data center.
State is that the VRRP gateway of master state can regularly send VRRP message, i.e., (VRRP message is only for VRRP notification packet Have a seed type), to notify the VRRP gateway oneself in Status of Backups working properly.In VRRP message include VRRP ID and Priority, VRRP ID value range 1~255, priority value range 0~255, numerical priority value shows more greatly priority more It is high.It further include other fields, such as VLAN in certain VRRP message, authentication data is verified and waited.
VRRP message is encapsulated in IP packet, is sent to the IP multicast address for distributing to VRRP.In IP packet head, source Location is the IP address for the interface that VRRP gateway sends message, and destination address is IP multicast address 224.0.0.18, time-to-live (English Text: Time To Live, referred to as: TTL) and it is 255, protocol number is 112.
Step 202: when listening to the local VRRP message, the first PE determines the shape of the first VRRP gateway State is master state;When being more than that setting time does not hear the local VRRP message, the first PE determines described first The state of VRRP gateway is abnormality or stand-by state.
Wherein, the state of VRRP gateway can be changed by election.For example, working as stand-by state under preempt-mode VRRP gateway receive VRRP message after, the priority of oneself can be compared with the priority in VRRP message.If from Oneself priority is greater than the priority in VRRP message, then becomes the gateway of master state;Otherwise stand-by state will be kept.Separately Outside, the time interval that the VRRP gateway of master state sends VRRP message can be set, if the VRRP net of stand-by state It closes after the time interval for having waited setting quantity, does not receive VRRP message still, then it is assumed that oneself be master state VRRP gateway, and externally send VRRP message.
In order to avoid the conversion of VRRP gateway frequent progress activestandby state, it is low that the VRRP gateway of stand-by state receives priority It after the VRRP message of local first grade, will not seize immediately as master state, but certain time is waited (to seize delay Time) after, it just can externally send the VRRP gateway that VRRP message replaces original master state.
Under normal conditions, the VRRP gateway for being respectively equipped with master state in Liang Ge data center, the VRRP of master state Gateway can regularly send VRRP message and go out, which can be grabbed by the PE for being in same data center with VRRP gateway It obtains, when the PE persistently receives the VRRP message of the VRRP gateway in detection cycle, and the parameter that VRRP message carries is just Often, including VLAN, VRRP ID of VRRP gateway, then judge gateway VRRP state for master state, it is assumed that in detection cycle VRRP message is not received, then it is assumed that the state of the VRRP gateway in the data center where it is stand-by state or failure shape State.
Step 203: when the state of the first VRRP gateway is abnormality or stand-by state, the first PE is clear Except the MAC routing of the first VRRP gateway on the first PE, the road MAC for the 2nd VRRP gateway that the 2nd PE is sent is obtained By, and use the MAC routing forwarding flow of the 2nd VRRP gateway;When the state of the first VRRP gateway is master state When, use the MAC routing forwarding flow of the first VRRP gateway.
Wherein, the 2nd VRRP gateway and the 2nd PE are in the second data center, second data center It is adjacent data center of first data center, first data center and second data center pass through IP tunnel Connection;The MAC routing is made of the IP address of VLAN ID, MAC Address and next-hop.Such as the MAC of the 2nd VRRP gateway In routing, VLAN ID is the VLAN ID of the 2nd VRRP gateway, and MAC Address is the Virtual MAC of the 2nd VRRP gateway Address, the IP address of next-hop are the IP that the port of MAC routing of the 2nd VRRP gateway is received on the first PE Location.Certainly MAC routing here can also be realized using traditional mac address forwarding table, i.e., replace the IP address of next-hop For exit port.
MAC routing forwarding flow using the 2nd VRRP gateway refers to, using the road MAC of the 2nd VRRP gateway By flow is forwarded to the 2nd VRRP gateway, so that the 2nd VRRP gateway forwards flow.
Further, the MAC routing for obtaining the 2nd VRRP gateway that the 2nd PE is sent can use following sides Formula is realized:
VLAN, VRRP ID of the first VRRP gateway and VRRP state are sent to the 2nd PE;
Receive the MAC routing for the 2nd VRRP gateway that the 2nd PE is sent.
By the way that VLAN, VRRP ID of the first VRRP gateway and VRRP state are sent to the 2nd PE, so that institute It states the 2nd PE and is known that presently described first VRRP gateway is in abnormality or stand-by state, when the 2nd PE knows After the state of the first VRRP gateway, send the MAC routing of the 2nd VRRP gateway on the first PE, so that institute The MAC routing forwarding flow of the 2nd VRRP gateway can be used by stating the first PE, realize flow from the first VRRP gateway It is rapidly switched to the 2nd VRRP gateway, guarantees that flow does not interrupt.
Specifically, VLAN, VRRP ID of the first VRRP gateway and VRRP state are sent to the 2nd PE, it can To be realized using following manner:
By VLAN, VRRP ID of the first VRRP gateway and VRRP state be added to Border Gateway Protocol (English: Border Gateway Protocol, referred to as: BGP) message extended field in;
The BGP message of the VLAN, VRRP ID that are added to the first VRRP gateway and VRRP state are sent to described Two PE.
EVN is established neighborhood by bgp protocol in control plane and notified, it can in the first PE and institute It states and establishes bgp neighbor between the 2nd PE, when the state that the first PE listens to the first VRRP gateway becomes stand-by state Or when malfunction, the first PE is needed this information announcement to the 2nd PE, this announcement process passes through in BGP Extended field in increase the mode of TLV newly and realize, optional transitive property as BGP.It can match in the 2nd PE simultaneously Monitor function is set, the equipment of only configuration monitor function can just handle the optional transitive property of BGP.If the 2nd PE configuration Reflector allows the 2nd PE to notice the optional transitive property of BGP, but is only configured with monitor function other PE, which receives the notice, can just handle optional transitive property.The reflector refers in network between the PE of each data center It is not to be mutually arranged neighborhood two-by-two, but a specified wherein PE, as reflector, other PE establish with the PE adjacent Relationship is occupied, which is responsible for receiving MAC routing from a wherein PE, and MAC routing is then distributed to other PE again.In BGP can It selects in transitive property, the standby usage state of the first VRRP gateway is noticed by way of increasing a TLV in BGP message, The TLV includes: type (English: type), length (English: length) and value (English: value).Wherein type type can be with It is customized, occupy a byte;Length occupies a byte;VRRP ID, the first VRRP gateway are carried in value field VLAN ID, VRRP state (English: status) field, occupy 8 bytes.VRRP status is used to identify the master of VRRP gateway Stand-by state.
Bgp protocol is relied in EVN establishes neighborhood between the PE at adjacent data center, such as the first PE and described the Between two PE, after establishing neighborhood, the first PE can not only obtain the MAC routing of the first VRRP gateway, and And it can receive the MAC routing for the 2nd VRRP gateway that the 2nd PE publication comes.
Step 204: the first PE monitors the state of the 2nd VRRP gateway.
Specifically, the state for monitoring the 2nd VRRP gateway both can be using monitoring VRRP message in step 201 and step 202 Mode realize.It can also be realized by receiving the BGP message that the 2nd PE is sent, be added to described second in BGP message The VRRP state of VRRP gateway can determine the state of the 2nd VRRP gateway according to the BGP message.
Step 205: when the state of the 2nd VRRP gateway is abnormality or stand-by state, the first PE will The MAC routing of the first VRRP gateway is sent to the 2nd PE.
By the way that the MAC routing of the first VRRP gateway is sent to the 2nd PE, it is ensured that described second When VRRP gateway is in abnormality or stand-by state, the 2nd PE can use the road MAC of the first VRRP gateway By carry out flow forwarding, realizes that flow is rapidly switched to the first VRRP gateway from the 2nd VRRP gateway, guarantee flow It does not interrupt.
Before transmission, the first PE is by VLAN field, the VRRP id field of the first VRRP gateway, and whether inquiry There is the first VRRP gateway MAC to route, if inquiring corresponding MAC routing, the MAC of the first VRRP gateway is routed It is sent to the 2nd PE;If not inquiring, do not deal with.
Specifically, the MAC routing of the first VRRP gateway is sent to the 2nd PE may include:
The MAC routing of the first VRRP gateway is added in the extended field of BGP message;
The MAC for being added to the first VRRP gateway BGP message routed is sent to the 2nd PE.
VLAN, VRRP ID of the first VRRP gateway and VRRP state " can be sent to institute with aforementioned by concrete mode State the 2nd PE " form it is identical, which is not described herein again.
The embodiment of the present invention monitors the state of the first VRRP gateway by the first PE, when the state of the first VRRP gateway is different When normal state or stand-by state, the MAC routing of the first VRRP gateway on the first PE is removed, the 2nd VRRP net is used The MAC routing forwarding flow of pass had both avoided and has relied on flow caused by MAC aging mechanism in the prior art from the first VRRP gateway The problem of speed for switching to the 2nd VRRP gateway is slow, caused service disconnection, and save the human resources of manual switching.
Embodiment three
The embodiment of the invention provides a kind of provider edge node device PE, include: referring to Fig. 5, the PE
Module 301 is monitored, for monitoring the state of the first Virtual Router Redundacy Protocol VRRP gateway, the first VRRP net It closes and is in the first data center with the PE;
Processing module 302, for removing when the state of the first VRRP gateway is abnormality or stand-by state The MAC routing of the first VRRP gateway on the PE, obtains the MAC routing for the 2nd VRRP gateway that the 2nd PE is sent, and makes With the MAC routing forwarding flow of the 2nd VRRP gateway, the 2nd VRRP gateway and the 2nd PE are in the second data In center, second data center is adjacent data center of first data center, first data center and institute The second data center is stated to connect by IP tunnel.
The processing module 302 is also used to use described the when the state of the first VRRP gateway is master state The MAC routing forwarding flow of one VRRP gateway.
Wherein, MAC routing is made of the IP address of VLAN ID, MAC Address and next-hop.Such as the 2nd VRRP gateway MAC routing in, VLAN ID be the 2nd VRRP gateway VLAN ID, MAC Address be the 2nd VRRP gateway void Quasi- MAC Address, the IP address of next-hop are that the port of the MAC routing of the 2nd VRRP gateway is received on the first PE IP address.Certainly MAC routing here can also be realized using traditional mac address forwarding table, i.e., by the IP address of next-hop Replace with exit port.
MAC routing forwarding flow using the 2nd VRRP gateway refers to, using the road MAC of the 2nd VRRP gateway By flow is forwarded to the 2nd VRRP gateway, so that the 2nd VRRP gateway forwards flow.
The embodiment of the present invention monitors the state of the first VRRP gateway by PE, when the state of the first VRRP gateway is abnormal shape When state or stand-by state, the MAC routing of the first VRRP gateway on the PE is removed, the MAC of the 2nd VRRP gateway is used Routing forwarding flow, both avoided in the prior art rely on MAC aging mechanism caused by flow from the first VRRP gateway handoff to The problem of speed of 2nd VRRP gateway is slow, caused service disconnection, and save the human resources of manual switching.
Example IV
The embodiment of the invention provides a kind of provider edge node device PE, include: referring to Fig. 6, the PE
Module 401 is monitored, for monitoring the state of the first Virtual Router Redundacy Protocol VRRP gateway, the first VRRP net Pass is in the first data center with the PE;
Processing module 402, for removing when the state of the first VRRP gateway is abnormality or stand-by state The MAC routing of the first VRRP gateway on the PE, obtains the MAC routing for the 2nd VRRP gateway that the 2nd PE is sent, and makes With the MAC routing forwarding flow of the 2nd VRRP gateway, the 2nd VRRP gateway and the 2nd PE are in the second data In center, second data center is adjacent data center of first data center, first data center and institute The second data center is stated to connect by IP tunnel.
The processing module 402 is also used to use described the when the state of the first VRRP gateway is master state The MAC routing forwarding flow of one VRRP gateway.
Wherein, MAC routing is made of the IP address of VLAN ID, MAC Address and next-hop.Such as the 2nd VRRP gateway MAC routing in, VLAN ID be the 2nd VRRP gateway VLAN ID, MAC Address be the 2nd VRRP gateway void Quasi- MAC Address, the IP address of next-hop are that the port of the MAC routing of the 2nd VRRP gateway is received on the first PE IP address.Certainly MAC routing here can also be realized using traditional mac address forwarding table, i.e., by the IP address of next-hop Replace with exit port.
MAC routing forwarding flow using the 2nd VRRP gateway refers to, using the road MAC of the 2nd VRRP gateway By flow is forwarded to the 2nd VRRP gateway, so that the 2nd VRRP gateway forwards flow.
In the present embodiment, state is that the VRRP gateway of master state can regularly send VRRP message, i.e. VRRP notice report Literary (VRRP message only has a seed type), to notify the VRRP gateway oneself in Status of Backups working properly.In VRRP message Including VRRP ID and priority, VRRP ID value range 1~255, priority value range 0~255, numerical value shows more greatly excellent First grade is higher.It further include other fields, such as VLAN in certain VRRP message, authentication data is verified and waited.
VRRP message is encapsulated in IP packet, is sent to the IP multicast address for distributing to VRRP message.In IP packet head, Source address is the IP address for the interface that VRRP gateway sends message, and destination address is IP multicast address 224.0.0.18, and TTL is 255, protocol number is 112.
Specifically, module 401 is monitored to be specifically used for:
Monitor local VRRP message;And
When listening to local VRRP message, determine that the state of the first VRRP gateway is master state;
When being more than that setting time does not hear local VRRP message, determine that the state of the first VRRP gateway is abnormal State or stand-by state.
Wherein, the state of VRRP gateway can be changed by election.For example, working as stand-by state under preempt-mode VRRP gateway receive VRRP message after, the priority of oneself can be compared with the priority in VRRP message.If from Oneself priority is greater than the priority in VRRP message, then becomes the gateway of master state;Otherwise stand-by state will be kept.Separately Outside, the time interval that the VRRP gateway of master state sends VRRP message can be set, if the VRRP net of stand-by state It closes after the time interval for having waited setting quantity, does not receive VRRP message still, then it is assumed that oneself be master state VRRP gateway, and externally send VRRP message.
In order to avoid the conversion of VRRP gateway frequent progress activestandby state, it is low that the VRRP gateway of stand-by state receives priority It after the VRRP message of local first grade, will not seize immediately as master state, but certain time is waited (to seize delay Time) after, it just can externally send the VRRP gateway that VRRP message replaces original master state.
Under normal conditions, the VRRP gateway for being respectively equipped with master state in Liang Ge data center, the VRRP of master state Gateway can regularly send VRRP message, which can be arrested by the PE for being in same data center with VRRP gateway, when PE exists Persistently receive the message of the VRRP in detection cycle, and the parameter that VRRP message carries is normal, VLAN including VRRP gateway, VRRP ID, interface index then judge gateway VRRP state for master state, it is assumed that not receive VRRP in detection cycle Message, then the state of the VRRP gateway in the data center where it is stand-by state or malfunction.
In one embodiment, when obtaining the MAC routing for the 2nd VRRP gateway that the 2nd PE is sent, place Reason module 402 is specifically used for:
VLAN, VRRP ID of the first VRRP gateway and VRRP state are sent to the 2nd PE;And receive institute State the MAC routing of the 2nd VRRP gateway of the 2nd PE transmission.
By the way that VLAN, VRRP ID of the first VRRP gateway and VRRP state are sent to the 2nd PE, so that institute It states the 2nd PE and is known that presently described first VRRP gateway is in abnormality or stand-by state, when the 2nd PE knows After the state of the first VRRP gateway, send the MAC routing of the 2nd VRRP gateway on the first PE, so that institute The MAC routing forwarding flow of the 2nd VRRP gateway can be used by stating the first PE, realize flow from the first VRRP gateway It is rapidly switched to the 2nd VRRP gateway, guarantees that flow does not interrupt.
Further, VLAN, VRRP mark ID and VRRP state of the first VRRP gateway are sent to described second When PE, processing module 402 is specifically used for:
VLAN, VRRP ID of the first VRRP gateway and VRRP state are added in the extended field of BGP message; And
The BGP message of the VLAN, VRRP ID that are added to the first VRRP gateway and VRRP state are sent to second PE。
EVN is established by bgp protocol in control plane and neighborhood and is notified, i.e., the described PE and the 2nd PE it Between establish bgp neighbor, when the state that the PE listens to the first VRRP gateway becomes stand-by state or malfunction, The PE is needed this information announcement to the 2nd PE, this announcement process we pass through the extended field in BGP message In increase the mode of TLV newly and realize, optional transitive property as BGP.Monitor function can be configured in the 2nd PE simultaneously, The equipment for only configuring monitor function can just handle the optional transitive property of BGP.If the 2nd PE is configured with reflector, permit Perhaps described 2nd PE notices the optional transitive property of BGP, but other PE for being only configured with monitor function receive this Notice can just handle optional transitive property.Reflector refers to not being mutual two-by-two between the PE of each data center in network Neighborhood is configured, but a specified wherein PE establishes neighborhood in the PE as reflector, other PE, which is responsible for MAC routing is received from a wherein PE, MAC routing is then distributed to other PE again.In the optional transitive property of BGP, increase Add the mode of TLV to notice the standby usage state of the first VRRP gateway, which includes: type, length and value.Wherein Type can be customized, occupies a byte;Length occupies a byte;VRRP ID, first are carried in value field The VLAN ID of VRRP gateway, VRRP status field occupy 8 bytes.VRRP status is used to identify the master of VRRP gateway Stand-by state.
Bgp protocol is relied in EVN establishes neighborhood between the PE at adjacent data center, such as the first PE and described the Between two PE, after establishing neighborhood, the first PE can not only obtain the MAC routing of the first VRRP gateway, and And it can receive the MAC routing for the 2nd VRRP gateway that the 2nd PE publication comes.
Further, module 401 is monitored, is also used to monitor the state of the 2nd VRRP gateway;
The PE further include: sending module 403, the state for working as the 2nd VRRP gateway are abnormality or spare When state, the MAC routing of the first VRRP gateway is sent to the 2nd PE.
By the way that the MAC routing of the first VRRP gateway is sent to the 2nd PE, it is ensured that described second When VRRP gateway is in abnormality or stand-by state, the 2nd PE can use the road MAC of the first VRRP gateway By carry out flow forwarding, realizes that flow is rapidly switched to the first VRRP gateway from the 2nd VRRP gateway, guarantee flow It does not interrupt.
Before transmission, the PE is by VLAN field, the VRRP id field of the first VRRP gateway, and whether inquiry The MAC routing of the first VRRP gateway is stated, if inquiring corresponding MAC routing, is sent to the 2nd PE;If not inquiring It arrives, does not then deal with.
In one embodiment, sending module 403 is specifically used for:
The MAC routing of the first VRRP gateway is added in the extended field of BGP message;And
The MAC for being added to the first VRRP gateway BGP message routed is sent to the 2nd PE.
VLAN, VRRP ID of first VRRP gateway and VRRP state " can be sent to described with aforementioned by concrete mode The form of two PE " is identical, and which is not described herein again.
The embodiment of the present invention monitors the state of the first VRRP gateway by PE, when the state of the first VRRP gateway is abnormal shape When state or stand-by state, the MAC routing of the first VRRP gateway on the PE is removed, the MAC of the 2nd VRRP gateway is used Routing forwarding flow, both avoided in the prior art rely on MAC aging mechanism caused by flow from the first VRRP gateway handoff to The problem of speed of 2nd VRRP gateway is slow, caused service disconnection, and save the human resources of manual switching.
Embodiment five
The embodiment of the invention provides a kind of provider edge node PE, include processor 601, storage referring to Fig. 7, the PE Device 602, bus 603 and communication interface 604.Wherein, memory 602 is for storing program code, processor 601, memory 602, communication interface 604 is connected by bus 603, and when PE operation, processor 601 executes the institute that memory 602 stores Program code is stated, so that the PE executes the ether virtual network gateway switching method in embodiment one or embodiment two.
The embodiment of the present invention monitors the state of the first VRRP gateway by PE, when the state of the first VRRP gateway is abnormal shape When state or stand-by state, the MAC routing of the first VRRP gateway on the PE is removed, the MAC of the 2nd VRRP gateway is used Routing forwarding flow, both avoided in the prior art rely on MAC aging mechanism caused by flow from the first VRRP gateway handoff to The problem of speed of 2nd VRRP gateway is slow, caused service disconnection, and save the human resources of manual switching.
It should be understood that provider edge node device provided by the above embodiment is when switching gateway, only with above-mentioned The division progress of each functional module can according to need and for example, in practical application by above-mentioned function distribution by different Functional module is completed, i.e., the internal structure of equipment is divided into different functional modules, with complete it is described above whole or Partial function.In addition, provider edge node device provided by the above embodiment and ether virtual network gateway switching method are real It applies example and belongs to same design, specific implementation process is detailed in embodiment of the method, and which is not described herein again.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of ether virtual network gateway switching method, which is characterized in that the described method includes:
First service quotient's edge node devices PE monitors local VRRP message, and the local VRRP message is that the first virtual flow-line is superfluous The VRRP message that remaining agreement VRRP gateway is sent, the first VRRP gateway and the first PE are in the first data center;
When being more than that setting time does not hear local VRRP message, determine that the state of the first VRRP gateway is abnormality Or stand-by state;
The media access control MAC routing for removing the first VRRP gateway on the first PE, by the first VRRP gateway Virtual LAN VLAN, VRRP mark ID and VRRP state be sent to the 2nd PE;
The MAC routing for the 2nd VRRP gateway that the 2nd PE is sent is received, and is routed using the MAC of the 2nd VRRP gateway Converting flow, the 2nd VRRP gateway and the 2nd PE are in the second data center, and second data center is institute Adjacent data center of the first data center is stated, first data center and second data center pass through Internet protocol IP tunnel connection;
Wherein, the MAC routing includes the IP address of VLAN ID, MAC Address and next-hop.
2. the method according to claim 1, wherein the first PE monitor local VRRP message after, it is described Method further include:
When listening to local VRRP message, determine that the state of the first VRRP gateway is master state.
3. the method according to claim 1, wherein VLAN, VRRP ID by the first VRRP gateway The 2nd PE is sent to VRRP state, comprising:
VLAN, VRRP ID of the first VRRP gateway and VRRP state are added to the extension of Border Gateway Protocol (BGP) message In field;
The BGP message of the VLAN, VRRP ID that are added to the first VRRP gateway and VRRP state are sent to described second PE。
4. method according to claim 1 or 2, which is characterized in that the method also includes:
Monitor the state of the 2nd VRRP gateway;
When the state of the 2nd VRRP gateway is abnormality or stand-by state, by the MAC of the first VRRP gateway Routing is sent to the 2nd PE.
5. according to the method described in claim 4, it is characterized in that, the MAC by the first VRRP gateway is routed and is sent To the 2nd PE, comprising:
The MAC routing of the first VRRP gateway is added in the extended field of BGP message;
The MAC for being added to the first VRRP gateway BGP message routed is sent to the 2nd PE.
6. a kind of provider edge node device PE, which is characterized in that the PE includes:
Module is monitored, for monitoring local VRRP message, the local VRRP message is the first Virtual Router Redundacy Protocol VRRP The VRRP message that gateway is sent, the first VRRP gateway and the PE are in the first data center;
The monitoring module is also used to determine the first VRRP when being more than that setting time does not hear local VRRP message The state of gateway is abnormality or stand-by state;
Processing module, the media access control MAC for removing the first VRRP gateway on the PE is routed, by described first Virtual LAN VLAN, the VRRP mark ID and VRRP state of VRRP gateway are sent to the 2nd PE;The 2nd PE is received to send The 2nd VRRP gateway MAC routing, and using the 2nd VRRP gateway MAC routing forwarding flow;Wherein, described second VRRP gateway and the 2nd PE are in the second data center, and second data center is that first data center is adjacent Data center, first data center connect with second data center by Internet protocol IP tunnel;
Wherein, the MAC routing includes the IP address of VLAN ID, MAC Address and next-hop.
7. PE according to claim 6, which is characterized in that the monitoring module is also used to:
When listening to local VRRP message, determine that the state of the first VRRP gateway is master state.
8. PE according to claim 6, which is characterized in that by VLAN, VRRP of the first VRRP gateway identify ID and When VRRP state is sent to two PE, the processing module is specifically used for:
VLAN, VRRP ID of the first VRRP gateway and VRRP state are added to the extension of Border Gateway Protocol (BGP) message In field;And
The BGP message of the VLAN, VRRP ID that are added to the first VRRP gateway and VRRP state are sent to described second PE。
9. PE according to claim 6 or 7, which is characterized in that the monitoring module is also used to monitor the 2nd VRRP The state of gateway;
The PE further include: sending module is abnormality or stand-by state for the state when the 2nd VRRP gateway When, the MAC routing of the first VRRP gateway is sent to the 2nd PE.
10. PE according to claim 9, which is characterized in that the sending module is specifically used for:
The MAC routing of the first VRRP gateway is added in the extended field of BGP message;And
The MAC for being added to the first VRRP gateway BGP message routed is sent to the 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 CN105490937A (en) 2016-04-13
CN105490937B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107948041B (en) * 2017-11-22 2020-12-18 锐捷网络股份有限公司 Method and equipment for constructing VXLAN centralized multi-active gateway
CN107959626B (en) * 2017-12-13 2021-06-04 迈普通信技术股份有限公司 Communication method, device and system of data center
CN109309617A (en) * 2018-08-08 2019-02-05 华为技术有限公司 Disaster tolerance switching method, relevant device and computer storage medium
CN109041101B (en) * 2018-08-24 2022-03-18 北京小米移动软件有限公司 WIFI cut-off processing method, terminal, server and storage medium
CN109617716B (en) * 2018-11-30 2022-02-25 新华三技术有限公司合肥分公司 Data center exception handling method and device
CN110753002B (en) * 2019-09-29 2023-04-07 北京浪潮数据技术有限公司 Traffic scheduling method and device

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

Also Published As

Publication number Publication date
CN105490937A (en) 2016-04-13

Similar Documents

Publication Publication Date Title
EP3188409B1 (en) Oam mechanisms for evpn active-active services
US10554542B2 (en) Label distribution method and device
CN105490937B (en) Ether virtual network gateway switching method and service provider's edge node devices
US9665530B2 (en) Method and system for implementing elastic network interface and interconnection
US9769054B2 (en) Network topology discovery method and system
US7558194B2 (en) Virtual private network fault tolerance
US8325611B2 (en) Scaling OAM for point-to-point trunking
EP2608459B1 (en) Router, virtual cluster router system and establishing method thereof
US8817593B2 (en) Method and apparatus providing failover for a point to point tunnel for wireless local area network split-plane environments
JP5873597B2 (en) System and method for virtual fabric link failure recovery
CN108574616A (en) A kind of method, equipment and the system of processing routing
EP2911355B1 (en) Method and device for flow path negotiation in link aggregation group
JP2007507990A (en) Switching system with distributed switching structure
KR102050910B1 (en) Method and system to enable re-routing for home networks upon connectivity failure
CN109672619A (en) A kind of method, equipment and system handling message
US8446818B2 (en) Routed split multi-link trunking resiliency for wireless local area network split-plane environments
CN103780419B (en) A kind of distributed aggregated link group business switch method and device
CN105763439B (en) The interconnected method and device of data center in a kind of multilink transparent internet
CN104702498A (en) Method and device for reducing the number of optical connections through coordination protection
CN102857435B (en) Method and device for forwarding three-layer data flow in data center site
WO2011011934A1 (en) Method and apparatus for ethernet tunnel segmentation protection
CN104468386A (en) Method and device for balancing flow in Ethernet virtual Internet
CN106549798B (en) A method of network, which is constructed, in IP communication network manages bus
US8781320B2 (en) Automatically switched optical network and method for data transmission in the network
CN113132129A (en) Network management method, device and system, and storage medium

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