CN102857435A - Method and device for forwarding three-layer data flow in data center site - Google Patents

Method and device for forwarding three-layer data flow in data center site Download PDF

Info

Publication number
CN102857435A
CN102857435A CN201210371417XA CN201210371417A CN102857435A CN 102857435 A CN102857435 A CN 102857435A CN 201210371417X A CN201210371417X A CN 201210371417XA CN 201210371417 A CN201210371417 A CN 201210371417A CN 102857435 A CN102857435 A CN 102857435A
Authority
CN
China
Prior art keywords
gateway
edge device
information
jumping
server
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
CN201210371417XA
Other languages
Chinese (zh)
Other versions
CN102857435B (en
Inventor
江帅华
魏巍
周万
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Information Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201210371417.XA priority Critical patent/CN102857435B/en
Publication of CN102857435A publication Critical patent/CN102857435A/en
Application granted granted Critical
Publication of CN102857435B publication Critical patent/CN102857435B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for forwarding three-layer data flow in a data center site. The method comprises the following steps that a server is used for maintaining and managing gateway information of a first jump gateway in the site, which is obtained by each edge device, and ping time delay from self to a neighbor edge device in another site, and when changes occur, updating is performed; and after the first jump gateway fails in the site, the server is requested to replace the information of the first jump gateway by the edge device, an optimal first jump gateway in the site where the edge device is located is selected by the server to be used as a replaced first jump gateway, thereby hosting the three-layer data flow in the site to the replaced first jump gateway. According to the method and the device, the operation burden of the edge device and the network flow are reduced.

Description

The method and apparatus of the three layer data stream in the forwarding data central site
Technical field
The present invention relates to network communications technology field, particularly the method and apparatus of the stream of three layer data in a kind of forwarding data central site.
Background technology
In order to realize high reliability and redundant deployment, and provide better service, most enterprises network and data center thereof or service provider dispose a plurality of data centers usually in the strange land, realize load balancing and high reliability, and realize the free migration of virtual machine between data center.Because the transition process of virtual machine to user transparent, can not change IP(Internet Protocol, Internet Protocol) address, so must realize between the data center in strange land that double layer network is interconnected being distributed in.Existing double layer network interconnection technique comprises: EVI(Ethernet Virtualization Interconnection, Ethernet dummy interconnect) and VPLS(Virtual Private LAN Service, the virtual special local area network service).
Wherein, the EVI technology is based on existing service provider (SP) network and enterprise network, for the physical site (being data center's website) of disperseing provides flexibly two layers of interconnecting function.EVI is a kind of advanced person " MAC(Media Access Control, media interviews control) in IP " technology is used for realization based on the L2VPN(Layer2Virtual Private Network of IP kernel heart net, two-layer virtual private network) technology.EVI just safeguards route and forwarding information at the edge device (Edge Device, ED) of data center's website (being designated hereinafter simply as website), and need not to change website inside and core network.
Adopted the network (being called the EVI network) of EVI technology to be formed by core network, website (Site) network and overlapping (Overlay) network.Comprise in the station network: edge device and lower a large amount of main frame of hanging and router etc., station network is by the edge device Access Core Network, wherein, edge device is the switching equipment that is positioned at the execution EVI function at station network edge, it moves as two-layer equipment in the station network side, move as three-layer equipment in core network side, it finishes message from private network to the public network tunnel, and the public network tunnel is to mapping and the forwarding of private network.Form crossover network between the edge device in the website, crossover network is the virtual network of setting up between the edge device in the station network, provide two layers between the station network interconnected, announcement is connected to the MAC Address of All hosts and the router of edge device, with a plurality of website interconnection, form two layers of larger forwarding territory.In identical crossover network example (being the VLAN example), by a two-way virtual Gigabit EtherChannel EVI Link, finish data transparent transmission each other between the edge device.
In the EVI network, under the default scenario, data center's website realized by edge device separately two layers interconnected after, the edge device in station network can not be flooded to other websites to the multicast message of unknown address.Usually in each station network, dispose a first gateway (GW) of jumping, jump gateway operation VRRP(Virtual Router Redundancy Protocol, Virtual Router Redundancy Protocol at this head) agreement.Owing to filtering the multicast message of unknown address on the edge device, comprise the VRRP protocol massages, therefore the head of each website jumps gateway can become the interior VRRP Master(master control of this website) gateway, thereby each station network has local three-layer network to close, and website is all jumped gateway forwards to core network by the head of this locality to the three layer data stream of core net.
The network model of typical EVI network comprises the website Site1 of data center, Site2 and Site3 as shown in Figure 1 in the EVI network.Comprise among the Site1: (simply being represented by Host1) such as ED1, the first network G W1 of jumping and a large amount of main frame, routers, comprise among the Site2: (simply being represented by Host2) such as ED2, the first network G W2 of jumping and a large amount of main frame, routers, comprise among the Site3: (simply being represented by Host3) such as ED3, the first network G W3 of jumping and a large amount of main frame, routers.Site 1, Site2 and Site3 GW1, GW2 and the GW3 Access Core Network by separately, ED1, ED2 and ED3 interconnection form crossover network, and have realized that Site1, Site2 and Site3 two layers are interconnected.GW1 operation VRRP agreement in Site1, the upper filtration of ED1 VRRP protocol massages, thereby the VRRP protocol massages can't be flooded to Site2 by the EVI Link between ED1 and the ED2, equally also can't be flooded to Site3 by the EVI Link between ED1 and the ED3, first jump the VRRP Master gateway that gateway GW1 becomes Site1, three layer data streams in the Site 1 can only by GW1 be forwarded to core network (as among Fig. 1 with shown in the solid line of arrow).Equally, Site2 and Site3 also are like this.
But, because three layer data streams in data center's website can only be jumped by the head of this locality gateway forwards to core network, like this, when the head of this locality jumps gateway inefficacy (fault has for example occured), can cause three layer data streams in this data center's website to forward, cause communication disruption.In order to address this problem, following solution has been proposed in the prior art:
Edge device in each website is jumped gateway redundancy agreement (First Hop Redundancy Protocol by intercepting the local first head that jumps gateway, FHRP) message obtains local gateway information, and the gateway information that this locality is obtained is published to the edge device of other data center's websites.Simultaneously, edge device also receives and preserves the gateway information of sending from the edge device of other websites.When the head in the website jumps the gateway inefficacy, edge device in this website selects a head who has the remote station of identical virtual mac address with local first jumping gateway to jump gateway (can be called and substitute the first gateway of jumping) in the gateway information of remote station based on preset rules, set up the incidence relation of the edge device of this virtual mac address and this remote station, the contemporary alternative first gateway of jumping for this selection sends gratuitous ARP (Address Resolution Protocol to site-local inside, address resolution protocol) message, thus alternative first the jumping on the gateway that three layer data streams in the site-local are drawn to this selection forwarded.
As shown in Figure 2, when the GW1 in Site1 lost efficacy, ED1 has selected the head that has the remote station Site2 of identical virtual mac address with GW1 to jump gateway GW2 in the gateway information of remote station according to preset rules, set up the incidence relation of this virtual mac address and ED2, the contemporary GW2 of replacing is to the inner gratuitous ARP packet that sends of site-local, thereby three layer data streams in the Site1 are sent to ED2, be transmitted to GW2 and be forwarded to core network by ED2.
But in the scheme of above-mentioned prior art, the edge device in each website needs the edge device in other remote stations to send local gateway information, thereby has increased network traffics, when especially website is more; And, substitute the first gateway of jumping by edge device management and selection, increased the computational burden of edge device.
In addition, when selecting to substitute first jumping gateway, the preset rules of institute's foundation is random selection or selects priority the highest, like this, the alternative first edge device of jumping in the website of gateway place of choosing might not be optimum, for example, the alternative first edge device of jumping in the website of gateway place of choosing is just busy, and the head of unchecked remote station jump exist in the edge device in the website of gateway place relatively idle, like this, because three layer data streams of site-local will be transmitted to this alternative first gateway of jumping by substituting first edge device of jumping in the website of gateway place, therefore, on the one hand, can cause three layer data streams in the site-local to can not get transmitting in time, on the other hand, also can be so that the forwarding data flow congestion situation of the edge device in the website of alternative first jumping gateway place be more serious.
Summary of the invention
In view of this, the invention provides the method and apparatus of the three layer data stream in a kind of forwarding data central site, larger to solve at least the network traffics that exist in the prior art, the computational burden of edge device is larger, and, because the alternative first edge device of jumping in the website of gateway place of choosing might not be optimum one, and three layer data streams in the site-local that causes can not get transmitting in time, and so that substitute the first more serious problem of forwarding data flow congestion situation of jumping the edge device in the website of gateway place.
Technical scheme of the present invention is as follows:
On the one hand, the method of the three layer data stream in a kind of forwarding data central site is provided, realized between data center's website that double layer network is interconnected, comprise in data center's website: edge device and the first gateway of jumping, the method comprises: the head that the first edge device is intercepted the transmission of First jumping gateway jumps gateway redundancy agreement FHRP message, obtain First and jump the gateway information of gateway from the FHRP message, wherein, gateway information comprises: virtual ip address and virtual mac address; The first edge device obtains self to the ping latency of the interior neighbours' edge device of other data center's websites; When the information that gets access to changes, information after the first edge device will change sends to server, so that server is with the local information corresponding with the first edge device of preserving of the information updating after changing, wherein, the information that gets access to comprises: gateway information and ping latency; When detecting the inefficacy of First jumping gateway, the first edge device-to-server request substitutes first information of jumping gateway, jump gateway and feed back to the first edge device so that server meets the alternative first of following preset rules according to one of the Information Selection corresponding with the first edge device, preset rules is: this substitutes the first gateway of jumping and has identical virtual ip address with the first gateway of jumping, the first edge device arrives the ping latency minimum of the second interior edge device of this data center's website that substitutes first jumping gateway place, and it is effective to substitute head jumping gateway; The first edge device is receiving after this substitutes first information of jumping gateway, sends in the notebook data central site to carry this and substitute first gratuitous ARP packet of jumping the information of gateway; When three layer data in receiving the notebook data central site flowed, the first edge device sent to the second edge device with this data flow, should alternative first jumping gateway in order to given by the second edge device forwards.
On the other hand, the method of the three layer data stream in a kind of forwarding data central site also is provided, realized between data center's website that double layer network is interconnected, comprise in data center's website: edge device and the first gateway of jumping, the method comprises: server receives the information after the change that the first edge device sends when the information that gets access to changes, with the local information corresponding with the first edge device of preserving of the information updating after changing, wherein, the information that gets access to comprises: the first edge device is jumped the gateway transmission by intercepting First head jumps gateway redundancy agreement FHRP message, the First that gets access to from the FHRP message is jumped the gateway information of gateway, and the ping latency of the neighbours edge device of the first edge device in other data center's websites, gateway information comprises: virtual ip address and virtual mac address; Server receives the first edge device and is detecting the request message that request substitutes the information of first jumping gateway that is used for of sending when First is jumped the gateway inefficacy, one of the Information Selection corresponding with the first edge device of preserving according to this locality meets the alternative first jumping gateway of following preset rules and feeds back to the first edge device, so that the first edge device is after receiving this information that substitutes first jumping gateway, send in the notebook data central site and carry this and substitute first gratuitous ARP packet of jumping the information of gateway, and three layer data in receiving notebook data central site when stream, this data flow is sent to the second edge device, in order to give and to jump gateway by alternative head by the second edge device forwards, wherein, preset rules is: this substitutes the first gateway of jumping and has identical virtual ip address with the first gateway of jumping, the first edge device arrives the ping latency minimum of the second interior edge device of this data center's website that substitutes first jumping gateway place, and it is effective to substitute head jumping gateway.
Wherein, receive at server before the information after the change of sending when information that the first edge device getting access to changes, also comprise: server is that the first edge device is registered, and in the process of registration, receive First that the first edge device that the first edge device sends gets access to and jump the gateway information of gateway and self to the ping latency of neighbours' edge device, the First that receives at local record is jumped gateway information and the ping latency of gateway, and the corresponding relation of foundation and the first edge device, wherein, the first edge device set up and other data center's websites in neighbours' edge device between two layers of link after, register to server.
Wherein, be after the first edge device is registered at server, also comprise: server is that the first edge device is nullified, and with the information deletion corresponding with the first edge device of local record, wherein, the first edge device removed and neighbours' edge device between two layers of link after, nullify to server.
Wherein, the method also comprises: server receives the first edge and is detecting the notice that is used for informing the inefficacy of First jumping gateway of sending when First is jumped the gateway inefficacy; In information corresponding to the first edge device that server is preserved in this locality First jumped gateway be recorded as invalid.
Wherein, the method also comprises: server receives the first edge device and jumps the notification server First that is used for of sending when gateway recovers effective and jump gateway and recover First that effective notice and the first edge device get access to again and jump the gateway information of gateway and self to the ping latency of neighbours' edge device detecting First; Server upgrades local information corresponding to the first edge device of preserving with the gateway information that again gets access to that receives and ping latency, and First is jumped gateway is recorded as effectively.
Another aspect, a kind of edge device also is provided, also comprise First jumping gateway in data center's website at this edge device place, realized between data center's website that double layer network is interconnected, this edge device comprises: acquisition module, the head that is used for intercepting the First jumping gateway transmission in the notebook data central site jumps gateway redundancy agreement FHRP message, from the FHRP message, obtain First and jump the gateway information of gateway, and, obtain this edge device to the ping latency of the interior neighbours' edge device of other data center's websites, wherein, gateway information comprises: virtual ip address and virtual mac address; Sending module, be used for when the information that acquisition module gets access to changes, the information after changing is sent to server, so that server is with the local information corresponding with this edge device of preserving of the information updating after changing, wherein, the information that gets access to comprises: gateway information and ping latency; After the first information of jumping gateway of receiver module should substituting of receiving that server feedback comes, send in the notebook data central site and carry this and substitute first gratuitous ARP packet of jumping the information of gateway; When three layer data in receiver module receives the notebook data central site flow, this data flow is sent to the second edge device, in order to substitute first jumping gateway by the second edge device forwards to being somebody's turn to do; Whether detection module is jumped gateway for detection of First and was lost efficacy, and when losing efficacy, the notice request module; Request module, be used for after receiving the notice of detection module, substitute first information of jumping gateway to server request, jump gateway and feed back to this edge device so that server meets the alternative first of following preset rules according to one of the Information Selection corresponding with this edge device, preset rules is: this substitutes the first gateway of jumping and has identical virtual ip address with First jumping gateway, this edge device arrives the ping latency minimum of the second interior edge device of this data center's website that substitutes first jumping gateway place, and it is effective to substitute head jumping gateway; Receiver module is used for being somebody's turn to do of reception server feedback and substitutes first information of jumping gateway, and, the three layer data stream that reception notebook data central site is interior.
Another aspect, a kind of server also is provided, comprise: receiver module, be used for to receive the information after the change that the first edge device sends when the information that gets access to changes, receive the first edge device and detecting the request message that request substitutes the information of first jumping gateway that is used for of sending when First is jumped the gateway inefficacy, preserve module, the local information corresponding with the first edge device of preserving of information updating after the change that is used for receiving with receiver module, wherein, the information that gets access to comprises: the first edge device is jumped the gateway transmission by intercepting First head jumps gateway redundancy agreement FHRP message, the First that gets access to from the FHRP message is jumped the gateway information of gateway, and the ping latency of the neighbours edge device of the first edge device in other data center's websites, gateway information comprises: virtual ip address and virtual mac address; Select module, for the information corresponding with the first edge device of preserving according to the preservation module, select an alternative first gateway of jumping that meets following preset rules, wherein, preset rules is: this substitutes the first gateway of jumping and has identical virtual ip address with the first gateway of jumping, the first edge device arrives the ping latency minimum of the second interior edge device of this data center's website that substitutes first jumping gateway place, and it is effective to substitute head jumping gateway; Sending module, the first information of jumping gateway that should substitute that is used for selecting module to select feeds back to the first edge device, so that the first edge device is after receiving this information that substitutes first jumping gateway, send in the notebook data central site and carry this and substitute first gratuitous ARP packet of jumping the information of gateway, and three layer data in receiving notebook data central site when stream, this data flow is sent to the second edge device, should the alternative first gateway of jumping in order to given by the second edge device forwards.
Wherein, this server also comprises: Registering modules, wherein, Registering modules, be used to the first edge device to register, and in the process of registration, receive First that the first edge device that the first edge device sends gets access to and jump the gateway information of gateway and self to the ping latency of neighbours' edge device; Preserve module and also jump gateway information and the ping latency of gateway for the First that receives at the local record Registering modules, and the corresponding relation of foundation and the first edge device, wherein, the first edge device set up and other data center's websites in neighbours' edge device between two layers of link after, register to server.
Wherein, this server also comprises: nullify module, wherein, nullify module, be used to the first edge device to nullify, and notice is preserved module with the information deletion corresponding with the first edge device of local record, wherein, the first edge device removed and neighbours' edge device between two layers of link after, nullify to server.
Wherein, receiver module is also detecting the notice that is used for informing the inefficacy of First jumping gateway of sending when First is jumped the gateway inefficacy for reception the first edge; Preserve after module also is used for informing that in receiver module being used for of receiving that the first edge device sends First is jumped the notice that gateway lost efficacy, in information corresponding to the first edge device of preserving in this locality First jumped gateway be recorded as invalid.
Wherein, receiver module also be used for to receive the first edge device and jumps the notification server First that is used for of sending when gateway recovers effective and jump gateway and recover First that effective notice and the first edge device get access to again and jump the gateway information of gateway and self to the ping latency of neighbours' edge device detecting First; Preserve module and also upgrade local information corresponding to the first edge device of preserving for the gateway information that again gets access to that receives with receiver module and ping latency, and according to effectively notifying for the recovery of notification server First jumping gateway that receiver module receives, First is jumped gateway be recorded as effectively.
Above technical scheme of the present invention, alternative first to jump gateway be the first edge device in the ping latency of neighbours' edge device that the interior head of website at minimum that edge device (i.e. the second edge device) place jumps gateway because Server selects, the first edge device is minimum to the ping latency of the second edge device, illustrate that the second edge device is the fastest to the response of oneself, from recently own, show that also the second edge device is the most idle this moment, like this, the first edge device is after sending to the second edge device with three layer data streams in this website, the second edge device can be transmitted this data flow the most in time, cause simultaneously the congested possibility of the forwarding data flow of the second edge device also just less, thereby substituting first edge device of jumping the gateway place is optimum edge device.
In addition, do not need the mutual local first gateway information of jumping gateway that gets access to separately between the edge device, the gateway information of also need to the head in all remote stations are preserved in this locality not jumping gateway, after local first jumping gateway lost efficacy, need to not carry out computing by edge device oneself yet, select to substitute first gateway, but unify the information that each edge device of maintenance and management gets access to by a Server, each edge device is when registration, send the information that oneself gets access to Server, and when the information that gets access to changes, send the information after changing, owing to only need to send the information that gets access to Server, and do not need to all neighbours' edge devices to send, greatly reduced network traffics, and, when local first jumping gateway lost efficacy, can substitute first information of jumping gateway to the Server request, the Information Selection to should edge device of being preserved according to this locality by Server substitutes gateway, need to not carry out computing by edge device oneself, has also eliminated the computational burden of edge device.
Description of drawings
Fig. 1 is the network model schematic diagram according to the typical EVI network of prior art;
Fig. 2 is after jumping the gateway inefficacy according to the head in the website of prior art, the forwarding schematic diagram of the three layer data stream in the website;
Fig. 3 is the flow chart according to the method for the stream of three layer data in the forwarding data central site of embodiments of the invention one;
Fig. 4 is that the ED1 according to embodiments of the invention two intercepts the FHRP message of GW1 and to the schematic diagram of Server registration;
Fig. 5 is the schematic diagram when losing efficacy according to the GW1 of embodiments of the invention two;
Fig. 6 is the schematic diagram of the GW1 according to embodiments of the invention two when recovering effective;
Fig. 7 is a kind of structural representation according to the edge device of embodiments of the invention three;
Fig. 8 is the another kind of structural representation according to the edge device of embodiments of the invention three;
Fig. 9 is a kind of structural representation according to the server of embodiments of the invention four;
Figure 10 is the another kind of structural representation according to the server of embodiments of the invention four.
Embodiment
Embodiment one
In EVI network as shown in Figure 1, comprise a plurality of data centers website (hereafter is website), realized between each website that double layer network is interconnected, comprise in each website: edge device (ED) and the first gateway (GW) of jumping, in addition, at two layers of internet (in the EVI network, these two layers of internet are crossover network) in, increased a Server(server), this Server jumps the gateway information of gateway for the head that administers and maintains the edge device place website in each website, simultaneously, also each edge device of maintenance and management is to the ping(Packet Internet Groper of the interior neighbours' edge device of other websites, the Internet packets survey meter) time delay.When reality was implemented, Server can be independent equipment, also can be arranged in the existing equipment, and the present invention does not do restriction to this.
Based on this network architecture, embodiments of the invention one provide the method for the three layer data stream in a kind of forwarding data central site, the method can be carried out by the edge device in any one website, can realize that head in a website jumps gateway when losing efficacy, select a first as an alternative first gateway of jumping of gateway of jumping in other websites, substitute the first forwarding that gateway is taken over the three layer data stream in this website of jumping by this.
Need to prove, the first edge device hereinafter can be the edge device in any one website, does not refer in particular to some edge devices.
As shown in Figure 3, the handling process according to the method for three layer data in the forwarding data central site of embodiments of the invention one stream may further comprise the steps:
1, the first edge device adds crossover network, obtains relevant information
Step S302, the head that the first edge device is intercepted in the notebook data central site jumps the first gateway redundancy agreement of jumping of FHRP(that gateway (be called First and jump gateway) sends) message, from the FHRP message, obtain First and jump the gateway information of gateway, wherein, gateway information comprises: virtual ip address and virtual mac address;
Because jumping gateway, First can periodically send the FHRP message, this FHRP message specifically can be the VRRP message, also can be HSRP(Hot Standby Routing Protocol, HSRP) message, that is, the FHRP agreement specifically can be VRRP agreement or HSRP agreement, therefore, the first edge device can be intercepted the FHRP message, and gets access to the gateway information that First is jumped gateway from the FHRP message, comprises virtual ip address and virtual mac address etc.
Step S304, the first edge device set up and other data center's websites in neighbours' edge device between two layers of link after, the first edge device obtains self ping latency to these neighbours' edge devices;
The first edge device can belong to neighbours' edge device in other websites of same VLAN by the ENDP protocol discovery, then, can set up two layers of link (being EVI Link) with these neighbours' edge devices, thereby join in the crossover network.The first edge device (has also namely joined crossover network at two layers of link having set up with neighbours' edge device, or be linked among the EVI Link) afterwards, can obtain by the ENDP agreement information of the neighbours' edge device on the EVI Link, and obtain self to the ping latency of these neighbours' edge devices.Those skilled in the art can know, the value of ping latency is less, the expression opposite end from oneself more close to, the opposite end responds sooner, shows that the opposite end is relatively more idle, otherwise, the expression opposite end from oneself more away from, the opposite end responds slowlyer, shows that the opposite end is busy.
Wherein, ENDP(EVI Neighbor Discovery Protocol, EVI Neighbor Discovery Protocol) be used for automatically finding website and edge device, set up and safeguard virtual link between the edge device, the information of the edge device of mutual same VLAN.
When reality was implemented, the first edge device can periodically carry out the ping operation to neighbours' edge device, thereby gets access to self to the ping latency of neighbours' edge device.For example, the cycle can be 1s.
Step S306, the first edge device set up and neighbours' edge device between two layers of link after, the first edge device is registered to Server, and in the process of registration, the First that gets access to is jumped the gateway information of gateway and self send to Server to the ping latency of neighbours' edge device, so that the First that Server receives at local record is jumped gateway information and the ping latency of gateway, and the corresponding relation of foundation and the first edge device.
The first edge device (has also namely joined crossover network at two layers of link with neighbours' edge device, or be linked among the EVI Link) afterwards, also need to register to Server, the information of registration comprises: First is jumped the gateway information of gateway and the ping latency that the first edge device arrives neighbours' edge device.
For Server, Server can register for the first edge device, and in the process of registration, receive First that the first edge device that the first edge device sends gets access to and jump the gateway information of gateway and the first edge device to the ping latency of neighbours' edge device, then, the First that receives at local record is jumped gateway information and this ping latency of gateway, and sets up and the corresponding relation of the first edge device.
Concrete registration process for example can send the registration request message to Server for: the first edge device, wherein, carry First in this registration request message and to the information of the ping latency of neighbours' edge device and the first edge device (for example jump the gateway information of gateway, the first edge device, the MAC Address of the first edge device and IP address etc.) etc. information, Server is after receiving this registration request message, these information recording /s can be arrived this locality, and set up the corresponding relation between these information and the first edge device.For example, can set up in this locality Registry as shown in table 1, the information of the corresponding edge device of each line item in this Registry.Then, return the response message that succeeds in registration to the first edge device.
Table 1
The first gateway information of jumping The Ping time delay Edge device information
ED1 IPv、MACv To ED2:0.5s, to ED3:0.3s IP1、MAC1
Obviously, the above-mentioned information that also can adopt other form to preserve the first edge device, perhaps Registry also can adopt other form, and the present invention does not do restriction to this.
In addition, because the first edge device can periodically get access to First and jump the gateway information of gateway and self arrive the ping latency of neighbours' edge device, therefore, the first edge device gets access to each time First and jumps after the gateway information and/or above-mentioned ping latency of gateway, the local corresponding informance of preserving is upgraded in the capital, thereby the information that sends to Server is also always current up-to-date.
Above-mentioned steps S302, S304 and S306 carry out when reality is implemented simultaneously.
Step S308, after registration is finished, when the information that gets access to changes, information after the first edge device will change sends to Server, so that Server is with the local information corresponding with the first edge device of preserving of the information updating after changing, wherein, the information that gets access to comprises: gateway information and ping latency;
The information that gets access to changes, change (change has occured for virtual ip address and/or virtual mac address) has occured in the gateway information that can be First jumping gateway, also can be self to the ping latency of at least one neighbours' edge device change have occured, also can be that change has both occured, in a word, information after changing can be sent to Server as long as there is an information to occur to change namely, be upgraded the corresponding informance in the information corresponding with the first edge device of preserving this locality by Server.
In actual implementation process, in order to save the network bandwidth, the first edge device can only send to Server with the information that has occured to change and get final product, for example, only the virtual mac address of First jumping gateway has sent change, and the virtual mac address after just only will changing is issued Server and got final product.
For Server, Server can receive the information after the change that the first edge device sends when the information that gets access to changes, then with the local information corresponding with the first edge device of preserving of the information updating after changing.For example, in Registry as described in Table 1, find that corresponding with the first edge device, with the corresponding informance in this item of information updating after this change, for example, information after the change is the new virtual mac address that First is jumped gateway, so, the Server virtual mac address that the First of record in that corresponding with the first edge device will be jumped gateway is updated to new virtual mac address.
Like this, arbitrarily edge device is jumped the gateway information of gateway and/or self when to the ping latency of neighbours' edge device change having occured at the First of finding to get access to, information after can will changing in real time sends to Server, corresponding informance with real-time update Server preservation, thereby guarantee that the corresponding informance of preserving is always up-to-date in Server, after follow-up local first jumping gateway lost efficacy, when substituting first jumping gateway to the Server request, it also is up-to-date that Server selects to substitute first information of jumping gateway institute foundation, has guaranteed selected alternative first accuracy of jumping gateway.
2, the first edge equipment Inspection is jumped the gateway inefficacy to First, and request substitutes the first gateway of jumping
Step S310, when detecting First jumping gateway inefficacy (for example breaking down), the first edge device notice Server First is jumped gateway and was lost efficacy, substitute first information of jumping gateway to the Server request simultaneously, so that Server in information corresponding to the first edge device, First jumped gateway be recorded as invalid, and meet the alternative first of following preset rules according to one of the Information Selection corresponding with the first edge device and jump gateway and feed back to the first edge device, this preset rules is: this substitutes the first gateway of jumping and has identical virtual ip address with the first gateway of jumping, the first edge device arrives the ping latency minimum of the second interior edge device of this data center's website that substitutes first jumping gateway place, and it is effective to substitute head jumping gateway;
For example, when the first edge equipment Inspection is jumped gateway fails to First, send the request message that obtains the information that substitutes first jumping gateway to Server, Server receives after this request message, can be according to the information corresponding with the first edge device of local record, can select head in other websites jump gateway according to above-mentioned preset rules and firstly jump gateway as substituting, and the information that will substitute head jumping gateway be issued the first edge device.Simultaneously also can carry specific markers or other modes in this request message, be used for the expression First and jump the gateway inefficacy, perhaps also can send independent notice message, the notice First is jumped gateway and was lost efficacy, and the present invention does not do restriction to this.
Thereby, for Server, Server receives the first edge device and jumps the request that is used for of sending when gateway lost efficacy and substitute the request message (or request message) of first information of jumping gateway and be used for informing that First jumps the notice that gateway lost efficacy detecting First, then, in information corresponding to the first edge device of preserving in this locality First jumped gateway and be recorded as invalidly, and feed back to the first edge device according to the alternative first information of jumping gateway and will substitute head jumping gateway that one of the Information Selection corresponding with the first edge device that preserve this locality meets above-mentioned preset rules.
For example, the physical record First jump gateway be invalid mode can for: the head in Registry as shown in table 1 jumps increases a mark in the gateway information, whether being used for head corresponding to expression, to jump gateway effective, for example, represent that with d corresponding head jumps gateway and lost efficacy, represent that with u corresponding head jumps gateway effective; Perhaps also can in each (one is delegation), increase in addition by row, it for example is effective identifier, when this effective identifier is set to the first value, the information that represents this is effective, shown that also head in this row jumps gateway effective, when this effective identifier is set to the second value, represent that this information is invalid, shown that also head in this row jumps gateway invalid.When thereby Server substitutes first jumping gateway in selection, just need not to consider that those item or effective identifiers with the d mark have been the item of the second value.Obviously, in actual implementation process, can adopt neatly variety of way to represent that the first gateway of jumping is invalid, the present invention does not do restriction to this.
Lost efficacy because First is jumped gateway, First is jumped gateway can periodically not send the FHRP message again, and the first edge device also need not to have upgraded the information that oneself gets access to Server again.Jump after gateway lost efficacy at First, notify in time Server, so as Server First can be jumped gateway be recorded as invalid, thereby guaranteed that Server is selecting to substitute first when jumping gateway, can not choose the head that had lost efficacy to jump gateway.
Alternative first to jump gateway be the first edge device in the ping latency of neighbours' edge device that the interior head of website at minimum that edge device (i.e. the second edge device) place jumps gateway because Server selects, the first edge device is minimum to the ping latency of the second edge device, illustrate that the second edge device is the fastest to the response of oneself, from recently own, show that also the second edge device is the most idle this moment, like this, the first edge device is after sending to the second edge device with three layer data streams in this website, the second edge device can be transmitted this data flow the most in time, cause simultaneously the congested possibility of the forwarding data flow of the second edge device also just less, thereby substituting first edge device of jumping the gateway place is optimum edge device.
Step S312, the first edge device is receiving after this substitutes first information of jumping gateway, sends in the notebook data central site to carry this and substitute first gratuitous ARP packet of jumping the information of gateway;
Step S314, when three layer data in receiving the notebook data central site flowed, the first edge device sent to the second edge device with this data flow, should alternative first jumping gateway in order to given by the second edge device forwards.
The first edge device receives after the information that substitutes first jumping gateway, this information can comprise: substitute first virtual mac address and virtual ip address of jumping gateway, can be with the local mac address table of preserving of this information updating, and contemporary for should in this website, sending gratuitous ARP packet by the alternative first gateway of jumping, carry virtual mac address and virtual ip address that this substitutes first jumping gateway in this gratuitous ARP packet.Like this, main frame in the website at the first edge device place etc. receives after this gratuitous ARP packet, can upgrade the local mac address table of preserving with the virtual mac address in this gratuitous ARP packet and virtual ip address, when again sending three layer data stream, will send according to the information in this table.After the first edge device receives three layer data stream, also can this three layer data stream be sent to the second edge device according to the mac address table of this locality, thereby jumped gateway by the second edge device forwards to substituting head, and substitute the first gateway forwards of jumping to core net by this, realized the effect that three laminar flow amounts are gone out via alternative gateway forwards in the guiding site-local.
In the embodiment of the invention, do not need the mutual local first gateway information of jumping gateway that gets access to separately between the edge device, the gateway information of also need to the head in all remote stations are preserved in this locality not jumping gateway, after local first jumping gateway lost efficacy, need to not carry out computing by edge device oneself yet, select to substitute first gateway, but unify the information that each edge device of maintenance and management gets access to by a Server, each edge device is when registration, send the information that oneself gets access to Server, and when the information that gets access to changes, send the information after changing, owing to only need to send the information that gets access to Server, and do not need to all neighbours' edge devices to send, network traffics have been greatly reduced, and, when local first jumping gateway lost efficacy, can substitute first information of jumping gateway to the Server request, the Information Selection to should edge device of being preserved according to this locality by Server substitutes gateway, need to not carry out computing by edge device oneself, eliminate the computational burden of edge device yet.
3, the first edge equipment Inspection is jumped the gateway recovery to First, recovers three layer data flow forwardings in this website
Jump gateway when recovering effective when detecting First, the first edge device stops to send the gratuitous ARP packet of the information that carries this alternative first jumping gateway in the notebook data central site, and notice Server First is jumped the gateway recovery effectively, the First that will again get access to is simultaneously jumped the gateway information of gateway and self and is sent to Server to the ping latency of neighbours' edge device, so that Server upgrades information corresponding to the first edge device with the gateway information and the ping latency that again get access to, and First is jumped gateway be recorded as effectively.
After First is jumped the gateway recovery, can in this website, send FHRP message and gratuitous ARP packet.After the first edge device listens to the FHRP message of First jumping gateway transmission, again upgrade the First that gets access to Server and jump the gateway information of gateway and self arrive the ping latency of neighboring edge equipment.Host(main frame in this website) receives First and jump the FHRP message that gateway sends, First is jumped gateway becomes the interior Master of this website again, and after receiving First and jumping the gratuitous ARP packet that gateway sends, jump virtual ip address and the MAC Address of gateway with the First that carries in this gratuitous ARP packet and upgrade local mac address table, when sending three layer data stream, just send according to the information in this mac address table, thereby transmit this locality of automatically having recovered the three layer data stream in this website, that is three layer data of, being jumped in this website of gateway forwards by First flow.Wherein, when the FHRP agreement is specially the VRRP agreement, that is, the head in each station network jumps when moving the VRRP agreement on the gateway, and after First was jumped the gateway recovery, First is jumped gateway can become the interior VRRPMaster of this website again; When the FHRP agreement is specially the HSRP agreement, that is, the head in each station network jumps when moving the HSRP agreement on the gateway, and after First was jumped the gateway recovery, First is jumped gateway can become the interior HSRP Master of this website again.
For Server, Server receives the first edge device and jumps being used for of sending when gateway recovers effective and inform that the Server First jumps gateway and recover First that effective notice and the first edge device get access to again and jump the gateway information of gateway and self to the ping time delay of neighbours' edge device detecting First, then, Server upgrades local information corresponding to the first edge device of preserving with the gateway information that again gets access to that receives and ping latency, and First is jumped gateway is recorded as effectively.Like this, after First was jumped the gateway recovery, Server had upgraded the corresponding informance of local preservation in time.
4, the first edge device leaves crossover network
The first edge device removed and neighbours' edge device between two layers of link, namely leave crossover network or leave after the EVI-Link, the first edge device is nullified to Server, so that Server is with the information deletion corresponding with the first edge device of local record.
For example, the first edge device sends to Server and nullifies message, can only carry the sign of the first edge device in this cancellation message, Server is after receiving this cancellation message, just according to finding that of the sign correspondence of carrying in this cancellation message the Registry of preserving from this locality, delete the information in that.
Thereby for Server, Server is that the first edge device is nullified, and with the information deletion corresponding with the first edge device of local record, wherein, the first edge device removed and neighbours' edge device between two layers of link after, nullify to Server.
Obviously, this method can also be applied to adopt VPLS(Virtual Private LAN Service, the virtual special local area network service) in the network (being called the VPLS network) of technology, concrete method is same as described above, wherein edge device is CE(Customer Edge, customer edge), and two layers of link between the CE are PW(Pseudo Wire, virtual link).
Embodiment two
Take the EVI network shown in Fig. 4-6 as example, the method in above-described embodiment one is described.In this EVI network, in crossover network, disposed a Server.
As shown in Figure 4, edge device ED 1 intercepts first FHRP message (representing with the real thick line with arrow) of jumping gateway GW1 in Fig. 4, therefrom obtain the gateway information of GW1, comprise: the virtual ip address of GW1 and virtual mac address etc., ED1 is by neighbours' edge device ED2 and ED3 among ENDP protocol discovery other websites Site2 and the Site3, and the EVI Link between foundation and ED2 and the ED3, afterwards, by and ED2 and ED3 between EVI Link periodically carry out ping operation, obtain self to the ping latency of ED2 and ED3.
After getting access to first above-mentioned information, ED1 just can be encapsulated in these information (comprising the ping latency of gateway information and ED 1 to ED2 and the ED3 of GW1) in the logon message (representing with the empty thick line with arrow in Fig. 4), registers to Server.Server receives after this logon message, will record these information in the Registry of this locality, and sets up the corresponding relation of these information and ED1.
Equally, ED2 and ED3 also can carry out the above-mentioned operation of obtaining, and register to Server by same mode.Thereby, preserve the corresponding informance (comprise first gateway information of jumping gateway and to the ping latency of neighbours' edge device) of ED1, ED2 and ED3 at Server.ED1, ED2 and ED3 can when the information that gets access to changes, to the Server lastest imformation, that is, send to Server with the information after changing, with validity and the real-time of keeping the information of preserving among the Server after registration is finished.
As shown in Figure 5, after the GW1 among the Site1 broke down, ED1 can not receive the FHRP protocol massages of GW1 in predetermined time interval, thereby determined the GW1 fault, and ED1 can notify GW1 to lose efficacy to Server, and request substitutes first information of jumping gateway.Server receives that ED1 sends informs that notice that GW1 lost efficacy and request substitute after the request message of first information of jumping gateway, from the local record Registry, find that information corresponding with ED1, from ED2 and ED3, select to jump the effective and corresponding head of gateway with minimum, the corresponding head of the ping latency of ED1 and jump the virtual IP address of the gateway ED2 identical with GW1, the information of the head in the website of ED2 place being jumped gateway GW2 sends to ED1, and the information of GW2 comprises: the virtual ip address of GW2 and virtual mac address.This reciprocal process, the empty thick line with four-headed arrow in Fig. 5 represents.
ED1 receives after the information of the GW2 that Server sends, replaces GW2 structure gratuitous ARP packet, carries virtual mac address and the virtual ip address of GW2 in this gratuitous ARP packet, mails to (the real thick line with unidirectional arrow in Fig. 5 represents) among the Site1.Thereby, can with the three layer data outlet data conductances of each Host among the Site1 GW2 in the Site2, that is, after the three layer data stream of ED1 in receiving Site1, can with this forwarding data flow to ED2, be forwarded to GW2 by ED2.
As shown in Figure 6, follow-up after GW1 recovers, will again in Site1, send FHRP message and gratuitous ARP packet (the real thick line with unidirectional arrow in Fig. 6 represents).When ED1 after the FHRP message that listens to GW1, ED1 is effective to Server notice GW1, and stops to send in Site1 the gratuitous ARP packet of the information that carries GW2.Each Host in the Site1 receives FHRP message and the gratuitous ARP packet of GW1, thereby three layers of outlet data having recovered each Host in the Site1 are flowed through and are forwarded to core net by GW1.
Embodiment three
For the method in above-described embodiment one, a kind of edge device that can use the method is provided, this edge device can be the edge device in any website, be the first edge device among the embodiment one), comprise also in data center's website at this edge device place that First jumps gateway, this edge device can be applied to have realized between data center's website in the EVI network and VPLS network that double layer network is interconnected.
As shown in Figure 7, this edge device comprises: acquisition module 101, sending module 102, detection module 103, request module 104 and receiver module 105, wherein:
Acquisition module 101, the First that is used for intercepting in the notebook data central site is jumped the FHRP message that gateway sends, from the FHRP message, obtain First and jump the gateway information of gateway, and, obtain this edge device to the ping latency of the interior neighbours' edge device of other data center's websites, wherein, gateway information comprises: virtual ip address and virtual mac address.
Sending module 102, be used for when the information that acquisition module 101 gets access to changes, information after changing is sent to Server, so that Server is with the local information corresponding with this edge device of preserving of the information updating after changing, wherein, the information that gets access to comprises: gateway information and ping latency; After the first information of jumping gateway of receiver module 105 should substituting of receiving that Server feedback comes, send in the notebook data central site and carry this and substitute first gratuitous ARP packet of jumping the information of gateway; When three layer data in receiver module 105 receives the notebook data central site flow, this data flow is sent to the second edge device, in order to substitute first jumping gateway by the second edge device forwards to being somebody's turn to do; Detect First at detection module 103 and jump gateway when losing efficacy, notice Server First is jumped gateway and was lost efficacy, so as Server in information corresponding to this edge device, First jumped gateway be recorded as invalid; Detect First at detection module 103 and jump gateway when recovering effective, stop in the notebook data central site, to send and carry the gratuitous ARP packet that this substitutes the information of first jumping gateway, and notice Server First is jumped the gateway recovery effectively, the gateway information of the First jumping gateway that simultaneously acquisition module 101 is got access to again and this edge device send to Server to the ping latency of neighbours' edge device, so that Server upgrades information corresponding to this edge device with the gateway information and the ping latency that again get access to, and First is jumped gateway be recorded as effectively.
Whether detection module 103 is jumped gateway for detection of First and was lost efficacy, and when losing efficacy, notice request module 104.
Request module 104, be used for after the notice that receives detection module 103, substitute first information of jumping gateway to the Server request, jump gateway and feed back to this edge device so that Server meets the alternative first of following preset rules according to one of the Information Selection corresponding with this edge device, this preset rules is: this substitutes the first gateway of jumping and has identical virtual ip address with First jumping gateway, this edge device arrives the ping latency minimum of the second interior edge device of this data center's website that substitutes first jumping gateway place, and it is effective to substitute head jumping gateway.
Receiver module 105 is used for receiving being somebody's turn to do of Server feedback and substitutes first information of jumping gateway, and, the three layer data stream that reception notebook data central site is interior.
As shown in Figure 8, can also comprise in this edge device: Registering modules 106 and cancellation module 107, wherein,
Registering modules 106, be used for this edge device set up and other data center's websites in neighbours' edge device between two layers of link after, register to Server, and in the process of registration, the First that acquisition module 101 is got access to is jumped the gateway information of gateway and this edge device and is sent to Server to the ping latency of neighbours' edge device, so that the First that Server receives at local record is jumped gateway information and the ping latency of gateway, and the corresponding relation of foundation and this edge device.Registering modules is finished after the registration, and is follow-up, when the information that sending module 102 gets access at definite acquisition module 101 changes, the information after changing will be sent to Server, to upgrade the corresponding informance of preserving among the Server.
Nullify module 107, be used for this edge device removed and neighbours' edge device between two layers of link after, nullify to Server, so that Server is with the information deletion corresponding with this edge device of local record.
Embodiment four
For the method in above-described embodiment one, a kind of server that can use the method is provided, this server can be applied to have realized between data center's website comprise in data center's website: edge device and the first gateway of jumping in the EVI network and VPLS network that double layer network is interconnected.
As shown in Figure 9, this Server comprises with lower module: receiver module 201, preservation module 202, selection module 203 and sending module 204, wherein:
Receiver module 201, be used for to receive the information after the change that the first edge device sends when the information that gets access to changes, receive the first edge device and jump the request that is used for of sending when gateway lost efficacy and substitute first request message of jumping the information of gateway detecting First; Receive the first edge and detecting the notice that is used for informing the inefficacy of First jumping gateway of sending when First is jumped the gateway inefficacy; Receiving the first edge device jumps being used for of sending when gateway recovers effective and informs that the Server First jumps gateway and recover First that effective notice and the first edge device get access to again and jump the gateway information of gateway and self to the ping latency of neighbours' edge device detecting First.
Preserve module 202, the local information corresponding with the first edge device of preserving of information updating after the change that is used for receiving with receiver module 201, wherein, the information that gets access to comprises: the first edge device is jumped the gateway transmission by intercepting First head jumps gateway redundancy agreement FHRP message, the First that gets access to from the FHRP message is jumped the ping latency of the gateway information of gateway and the first edge device neighbours' edge device in other data center's websites, and gateway information comprises: virtual ip address and virtual mac address; After informing that in receiver module 201 being used for of receiving that the first edge device sends First is jumped the notice that gateway lost efficacy, in information corresponding to the first edge device of preserving in this locality First jumped gateway be recorded as invalid; Upgrade local information corresponding to the first edge device of preserving with the gateway information that again gets access to and ping latency that receiver module 201 receives, and inform that according to receiver module being used for of receiving the Server First jumps gateway and recover effectively notice, First is jumped gateway be recorded as effectively.
Select module 203, be used for according to the information corresponding with the first edge device of preserving module 202 preservations, select an alternative first gateway of jumping that meets following preset rules, wherein, this preset rules is: this substitutes the first gateway of jumping and has identical virtual ip address with the first gateway of jumping, the first edge device arrives the ping latency minimum of the second interior edge device of this data center's website that substitutes first jumping gateway place, and it is effective to substitute head jumping gateway.
Sending module 204, the first information of jumping gateway that should substitute that is used for selecting module 203 to select feeds back to the first edge device, so that the first edge device is after receiving this information that substitutes first jumping gateway, send in the notebook data central site and carry this and substitute first gratuitous ARP packet of jumping the information of gateway, and three layer data in receiving notebook data central site when stream, this data flow is sent to the second edge device, should the alternative first gateway of jumping in order to given by the second edge device forwards.
In addition, as shown in figure 10, can also comprise among this Server: Registering modules 205 and cancellation module 206, wherein,
Registering modules 205, be used to the first edge device to register, and in the process of registration, receive First that the first edge device that the first edge device sends gets access to and jump the gateway information of gateway and self to the ping latency of neighbours' edge device, by gateway information and the ping latency of preserving First that module 202 receives at local record Registering modules 205 and jump gateway, and the corresponding relation of foundation and the first edge device, wherein, the first edge device set up and other data center's websites in neighbours' edge device between two layers of link after, register to Server.
Nullify module 206, be used to the first edge device to nullify, and notice is preserved module 202 with the information deletion corresponding with the first edge device of local record, wherein, the first edge device removed and neighbours' edge device between two layers of link after, nullify to Server.
To sum up, the above embodiment of the present invention can reach following technique effect:
Alternative first to jump gateway be the first edge device in the ping latency of neighbours' edge device that the interior head of website at minimum that edge device (i.e. the second edge device) place jumps gateway because Server selects, the first edge device is minimum to the ping latency of the second edge device, illustrate that the second edge device is the fastest to the response of oneself, from recently own, show that also the second edge device is the most idle this moment, like this, the first edge device is after sending to the second edge device with three layer data streams in this website, the second edge device can be transmitted this data flow the most in time, cause simultaneously the congested possibility of the forwarding data flow of the second edge device also just less, thereby substituting first edge device of jumping the gateway place is optimum edge device.
In addition, do not need the mutual local first gateway information of jumping gateway that gets access to separately between the edge device, the gateway information of also need to the head in all remote stations are preserved in this locality not jumping gateway, after local first jumping gateway lost efficacy, need to not carry out computing by edge device oneself yet, select to substitute first gateway, but unify the information that each edge device of maintenance and management gets access to by a Server, each edge device is when registration, send the information that oneself gets access to Server, and when the information that gets access to changes, send the information after changing, owing to only need to send the information that gets access to Server, and do not need to all neighbours' edge devices to send, greatly reduced network traffics, and, when local first jumping gateway lost efficacy, can substitute first information of jumping gateway to the Server request, the Information Selection to should edge device of being preserved according to this locality by Server substitutes gateway, need to not carry out computing by edge device oneself, has also eliminated the computational burden of edge device
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (10)

1. the method that three interior layer data of forwarding data central site flow has realized between data center's website that double layer network is interconnected, comprises in data center's website: edge device and the first gateway of jumping, it is characterized in that, and described method comprises:
The head that the first edge device is intercepted the transmission of First jumping gateway jumps gateway redundancy agreement FHRP message, obtains the gateway information that described First is jumped gateway from the FHRP message, and wherein, described gateway information comprises: virtual ip address and virtual mac address;
Described the first edge device obtains self to the ping latency of the interior neighbours' edge device of other data center's websites;
When the information that gets access to changes, information after described the first edge device will change sends to server, so that the local information corresponding with described the first edge device of preserving of the information updating of described server after with described change, wherein, the described information that gets access to comprises: described gateway information and described ping latency;
When detecting described First jumping gateway inefficacy, described the first edge device substitutes first information of jumping gateway to described server request, jump gateway and feed back to described the first edge device so that described server meets the alternative first of following preset rules according to one of the Information Selection corresponding with described the first edge device, described preset rules is: this substitutes the first gateway of jumping and has identical virtual ip address with the described first gateway of jumping, described the first edge device arrives the ping latency minimum of the second interior edge device of this data center's website that substitutes first jumping gateway place, and it is effective to substitute head jumping gateway;
Described the first edge device is receiving after this substitutes first information of jumping gateway, sends in the notebook data central site to carry this and substitute first gratuitous ARP packet of jumping the information of gateway;
When three layer data in receiving the notebook data central site flowed, described the first edge device sent to described the second edge device with this data flow, should alternative first jumping gateway in order to given by described the second edge device forwards.
2. method according to claim 1 is characterized in that, when described information when getting access to changed, the information after described the first edge device will change sent to before the server, also comprises:
Described the first edge device set up and other data center's websites in neighbours' edge device between two layers of link after, described the first edge device is registered to described server, and in the process of registration, the described First that gets access to is jumped the gateway information of gateway and self send to described server to the ping latency of neighbours' edge device, so that the First that described server receives at local record is jumped gateway information and the ping latency of gateway, and the corresponding relation of foundation and described the first edge device.
3. method according to claim 2 is characterized in that,, also comprises after described server is registered at described the first edge device:
Described the first edge device removed and described neighbours' edge device between two layers of link after, described the first edge device is nullified to described server, so that described server is with the information deletion corresponding with described the first edge device of local record.
4. method according to claim 1 is characterized in that, also comprises:
When detecting described First jumping gateway inefficacy, described the first edge device notifies the described First of described server to jump the gateway inefficacy, and is invalid so that described server is recorded as described First jumping gateway in information corresponding to described the first edge device.
5. method according to claim 4 is characterized in that, also comprises:
Jump gateway when recovering effective when detecting described First, described the first edge device stops to send the gratuitous ARP packet of the information that carries described alternative first jumping gateway in the notebook data central site, and notify the described First of described server to jump gateway and recover effectively, the described First that will again get access to is simultaneously jumped the gateway information of gateway and self and is sent to described server to the ping latency of described neighbours' edge device, so that described server upgrades information corresponding to described the first edge device with the described gateway information that again gets access to and ping latency, and described First is jumped gateway be recorded as effectively.
6. an edge device also comprises First jumping gateway in data center's website at described edge device place, has realized between data center's website that double layer network is interconnected, it is characterized in that, described edge device comprises:
Acquisition module, the head that is used for intercepting the First jumping gateway transmission in the notebook data central site jumps gateway redundancy agreement FHRP message, from the FHRP message, obtain described First and jump the gateway information of gateway, and, obtain this edge device to the ping latency of the interior neighbours' edge device of other data center's websites, wherein, described gateway information comprises: virtual ip address and virtual mac address;
Sending module, be used for when the information that acquisition module gets access to changes, information after changing is sent to server, so that the local information corresponding with this edge device of preserving of the information updating of described server after with described change, wherein, the described information that gets access to comprises: described gateway information and described ping latency; After the alternative first information of jumping gateway that receiver module receives that described server feedback comes, send in the notebook data central site and carry this and substitute first gratuitous ARP packet of jumping the information of gateway; When three layer data in described receiver module receives the notebook data central site flow, this data flow is sent to the second edge device, in order to substitute first jumping gateway by described the second edge device forwards to being somebody's turn to do;
Whether detection module is jumped gateway for detection of described First and was lost efficacy, and when losing efficacy, the notice request module;
The described request module, be used for after receiving the notice of described detection module, substitute first information of jumping gateway to described server request, jump gateway and feed back to this edge device so that described server meets the alternative first of following preset rules according to one of the Information Selection corresponding with this edge device, described preset rules is: this substitutes the first gateway of jumping and has identical virtual ip address with described First jumping gateway, this edge device arrives the ping latency minimum of interior described the second edge device of this data center's website that substitutes first jumping gateway place, and it is effective to substitute head jumping gateway;
Receiver module is used for receiving being somebody's turn to do of described server feedback and substitutes first information of jumping gateway, and, the three layer data stream that reception notebook data central site is interior.
7. edge device according to claim 6 is characterized in that, also comprises:
Registering modules, be used for this edge device set up and other data center's websites in neighbours' edge device between two layers of link after, register to described server, and in the process of registration, the described First that described acquisition module is got access to is jumped the gateway information of gateway and this edge device and is sent to described server to the ping latency of neighbours' edge device, so that the First that described server receives at local record is jumped gateway information and the ping latency of gateway, and the corresponding relation of foundation and this edge device.
8. edge device according to claim 7 is characterized in that, also comprises:
Nullify module, be used for this edge device removed and described neighbours' edge device between two layers of link after, nullify to described server, so that described server is with the information deletion corresponding with this edge device of local record.
9. edge device according to claim 6 is characterized in that,
Described sending module also is used for when described detection module detects described First jumping gateway inefficacy, notify the described First of described server to jump gateway and lost efficacy, invalid so that described server is recorded as described First jumping gateway in information corresponding to this edge device.
10. edge device according to claim 9 is characterized in that,
Described sending module also is used for detecting described First at described detection module and jumps gateway when recovering effective, stop in the notebook data central site, to send and carry the gratuitous ARP packet that this substitutes the information of first jumping gateway, and notify the described First of described server to jump gateway and recover effectively, the gateway information of the described First jumping gateway that simultaneously described acquisition module is got access to again and this edge device send to described server to the ping latency of described neighbours' edge device, so that described server upgrades information corresponding to this edge device with the described gateway information that again gets access to and ping latency, and described First is jumped gateway be recorded as effectively.
CN201210371417.XA 2012-09-27 2012-09-27 Method and device for forwarding three-layer data flow in data center site Active CN102857435B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210371417.XA CN102857435B (en) 2012-09-27 2012-09-27 Method and device for forwarding three-layer data flow in data center site

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210371417.XA CN102857435B (en) 2012-09-27 2012-09-27 Method and device for forwarding three-layer data flow in data center site

Publications (2)

Publication Number Publication Date
CN102857435A true CN102857435A (en) 2013-01-02
CN102857435B CN102857435B (en) 2015-04-15

Family

ID=47403638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210371417.XA Active CN102857435B (en) 2012-09-27 2012-09-27 Method and device for forwarding three-layer data flow in data center site

Country Status (1)

Country Link
CN (1) CN102857435B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103078800A (en) * 2013-01-29 2013-05-01 杭州华三通信技术有限公司 MAC (media access control) address information control method in EVI (Ethernet Virtualization Interconnection) network and edge device
CN103095507A (en) * 2013-02-04 2013-05-08 杭州华三通信技术有限公司 Message transmission method and edge device based on Ethernet virtualization internet network
CN103117913A (en) * 2013-01-31 2013-05-22 杭州华三通信技术有限公司 Method and equipment for informing MAC (media access control) address information
CN114070790A (en) * 2021-11-15 2022-02-18 中国联合网络通信集团有限公司 Method, PE, system, equipment and medium for forwarding information in VPLS equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101951345A (en) * 2010-10-15 2011-01-19 杭州华三通信技术有限公司 Message transmitting method and equipment
US20110116509A1 (en) * 2009-11-16 2011-05-19 Moreno Victor M Method for the provision of gateway anycast virtual mac reachability in extended subnets
CN102546389A (en) * 2011-11-08 2012-07-04 杭州华三通信技术有限公司 Method and device for flow trusteeship of cross-data center

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110116509A1 (en) * 2009-11-16 2011-05-19 Moreno Victor M Method for the provision of gateway anycast virtual mac reachability in extended subnets
CN101951345A (en) * 2010-10-15 2011-01-19 杭州华三通信技术有限公司 Message transmitting method and equipment
CN102546389A (en) * 2011-11-08 2012-07-04 杭州华三通信技术有限公司 Method and device for flow trusteeship of cross-data center

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103078800A (en) * 2013-01-29 2013-05-01 杭州华三通信技术有限公司 MAC (media access control) address information control method in EVI (Ethernet Virtualization Interconnection) network and edge device
CN103078800B (en) * 2013-01-29 2015-08-12 杭州华三通信技术有限公司 Mac address information control method in EVI network and edge device
CN103117913A (en) * 2013-01-31 2013-05-22 杭州华三通信技术有限公司 Method and equipment for informing MAC (media access control) address information
CN103117913B (en) * 2013-01-31 2016-08-10 杭州华三通信技术有限公司 A kind of mac address information notifying method and equipment
CN103095507A (en) * 2013-02-04 2013-05-08 杭州华三通信技术有限公司 Message transmission method and edge device based on Ethernet virtualization internet network
CN103095507B (en) * 2013-02-04 2015-09-09 杭州华三通信技术有限公司 Based on message transmitting method and the edge device of Ethernet virtualization internet network
CN114070790A (en) * 2021-11-15 2022-02-18 中国联合网络通信集团有限公司 Method, PE, system, equipment and medium for forwarding information in VPLS equipment
CN114070790B (en) * 2021-11-15 2023-09-26 中国联合网络通信集团有限公司 Information forwarding method, PE, system, equipment and medium in VPLS equipment

Also Published As

Publication number Publication date
CN102857435B (en) 2015-04-15

Similar Documents

Publication Publication Date Title
CN104205748B (en) Has redundancy between the frame of coordinated traffic direction
CN104052666B (en) The method and apparatus for realizing host routing reachable
CN102546389B (en) Method and device for flow trusteeship of cross-data center
CN103891216B (en) The method and system that in structural path exchange network, the FHRP of gateway load balance optimizes
CN103281247B (en) The general method for routing of a kind of data center network and system
CN102368727B (en) Crossed IP network TRILL network communication method, system thereof and devices
CN101557343B (en) Detecting and protecting method of double-layer loop in VRRP topological network
EP2533475A1 (en) Method and system for host route reachability in packet transport network access ring
CN104135418B (en) It is a kind of to realize two layers of method and device for coordinating to switch with Layer3 Virtual Private Network
CN103546374A (en) Message forwarding method and device in two-layered edge network
CN104378297A (en) Message forwarding method and device
CN104113459A (en) Method for smoothly migrating virtual machine in Ethernet virtual interconnection (EVI) network, and device for smoothly migrating virtual machine in EVI network
CN104009926A (en) Multicast method in EVI network and edge device ED
CN104378296A (en) Message forwarding method and device
CN103179228A (en) Internet protocol address analysis method and edge node
CN104168184A (en) Message forwarding method and device
CN104767680B (en) It route the method and apparatus being switched fast
CN102932254A (en) Message forwarding method and device
CN109660442A (en) The method and device of multicast replication in Overlay network
CN106936943A (en) The distribution method and system of virtual machine address
CN105490937B (en) Ether virtual network gateway switching method and service provider's edge node devices
CN104683206A (en) Method and device for coordinating and switching layer 2 and layer 3 virtual private networks in bridging apparatus
CN104579981B (en) A kind of multicast data packet forwarding method and apparatus
CN102857435B (en) Method and device for forwarding three-layer data flow in data center site
CN107872368A (en) Detection method, device and the terminal of gateway accessibility in a kind of network node cluster

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230614

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.