CN104022954A - Message forwarding method and device - Google Patents

Message forwarding method and device Download PDF

Info

Publication number
CN104022954A
CN104022954A CN201310065280.XA CN201310065280A CN104022954A CN 104022954 A CN104022954 A CN 104022954A CN 201310065280 A CN201310065280 A CN 201310065280A CN 104022954 A CN104022954 A CN 104022954A
Authority
CN
China
Prior art keywords
evi
message
hub
spoke
link
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
CN201310065280.XA
Other languages
Chinese (zh)
Other versions
CN104022954B (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.)
Hangzhou H3C 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 CN201310065280.XA priority Critical patent/CN104022954B/en
Publication of CN104022954A publication Critical patent/CN104022954A/en
Application granted granted Critical
Publication of CN104022954B publication Critical patent/CN104022954B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application discloses a message forwarding method and device, wherein the method includes the following steps: a Spoke ED receives an Ethernet message from a local branch site, searches a corresponding first EVI-Link interface in a branch site forwarding table according to a VLAN identifier and a target MAC address of the received Ethernet message, and encapsulates the received Ethernet message into an EVI message according to the searched first EV-Link interface and sends the EVI message to a main Hub ED, wherein the first EVI-Link interface corresponds to EVI-Link of the main Hub ED connected with the device; and the Spoke ED receives the EVI message from the main Hub ED, de-encapsulates the EVI message into the Ethernet message, searches a corresponding port in a central site forwarding table according to a VLAN identifier and a target MAC address of the de-encapsulated Ethernet message, and sends the Ethernet message to a Spoke CE of the local branch site through the searched port.

Description

Message forwarding method and device
Technical field
The application relates to network communications technology field, particularly a kind of message forwarding method and device.
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 multiple data centers conventionally in 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 is to user transparent, can not change IP(Internet Protocol, Internet Protocol) address, so it is interconnected to realize double layer network between the data center that is distributed in strange land.Existing double layer network interconnection technique comprises: EVI(Ethernet VirtualizationInterconnection, Ethernet is virtual interconnected) and VPLS(Virtual Private LAN Service, virtual special local area network service).
Wherein, 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 two layers of interconnecting function flexibly.EVI is a kind of advanced person " MAC(Media AccessControl, media interviews control) in IP " technology, for realizing the L2VPN(Layer2VirtualPrivate Network based on IP kernel heart net, two-layer virtual private network) technology.EVI just safeguards route and forwarding information on the edge device (Edge Device, ED) of data center's website (being designated hereinafter simply as website), and without changing website inside and core network.
As shown in Figure 1, adopted the network (being called EVI network) of EVI technology to be formed by core network, website (Site) network and overlapping (Overlay) network.Be described below respectively:
Station network is by one or many edge of table equipment (Edge Device, ED) be connected to the double layer network with separate traffic function of core network, conventionally by unique user tissue, management, control and maintenance, mainly be made up of main frame and switching equipment, edge device provides two layers of function of exchange between website.
Edge device is the switching equipment that is positioned at the execution EVI function at the edge of station network, it moves as two-layer equipment in station network side, move as three-layer equipment in core network side, it completes message slave site network to EVI tunnel, and EVI tunnel is to mapping and the forwarding of station network.Between edge device in same EVI example, set up full connection, in all ED equipment of EVI MAC in this EVI example, flood.
Crossover network is the virtual network of setting up between the edge device in station network, provide two layers between station network interconnected, realize the expansion of VLAN between different websites, the Layer 2 data stream of the VLAN expanding between datum plane carrying website, pass through IGP(Interior Gateway Protocol at control plane, Interior Gateway Protocol) agreement notices and is connected to the All hosts of edge device and the MAC Address reachability information of router between website, by interconnected multiple websites, form two layers of larger forwarding territory.In identical EVI network example, between edge device, pass through a two-way virtual Gigabit EtherChannel, the i.e. virtual interconnected connection EVI-Link(link of Ethernet), complete data transparent transmission each other.This EVI-Link is carried on the EVI tunnel between edge device, and each EVI can carry multiple EVI-Link in tunnel.
Core network is the network interconnected between station network that provides mainly being carried by IP routing device.The IP that core network carries out channel message forwards.
Summary of the invention
The application provides a kind of message forwarding method and device, to realize the message repeating of EVI network of center-branch (Hub-Spoke) framework of two Hub equipment.
The application's technical scheme is as follows:
On the one hand, provide a kind of message forwarding method, the method is applied to Spoke ED, and this Spoke ED is arranged in the branch site of the EVI network of Hub-Spoke framework, and central site comprises: form two HubED of main and standby relation, the method comprises:
Spoke ED receives the Ethernet message from local branch site, in transmitting, branch site finds a corresponding EVI-Link interface according to VLAN mark and the target MAC (Media Access Control) address of the Ethernet message receiving, according to the EVI-Link interface finding, the Ethernet message receiving is encapsulated as to EVI message and sends to primary Hub ED, wherein, an EVI-Link interface is corresponding to the EVI-Link of the primary Hub ED of this equipment connection;
Spoke ED receives the EVI message from primary Hub ED, this EVI message is descapsulated into Ethernet message, in central site is transmitted, find corresponding port according to VLAN mark and the target MAC (Media Access Control) address of the Ethernet message after decapsulation, this Ethernet message is sent to the Spoke CE of local branch site by the port finding.
On the other hand, also provide a kind of message forwarding method, the method is applied to any in two HubED that form main and standby relation, and two Hub ED of this formation main and standby relation are positioned at the central site of the EVI network of Hub-Spoke framework, and the method comprises:
Hub ED receives the EVI message from the Spoke ED of a branch site, the EVI message of receiving is descapsulated into Ethernet message, in transmitting, branch site finds corresponding port according to VLAN mark and the target MAC (Media Access Control) address of the Ethernet message after decapsulation, the Hub CE by the Ethernet message after the port transmission decapsulation finding to central site;
Hub ED receives the Ethernet message that Hub CE returns, in central site is transmitted, find corresponding EVI-Link interface according to the VLAN mark of the Ethernet message of receiving and target MAC (Media Access Control) address, according to the EVI-Link interface finding, the Ethernet message of receiving is encapsulated as to EVI message and is sent to the SpokeED of other branch sites;
Hub ED detects the state of the EVI-Link of each Spoke ED of this equipment connection, in the time the EVI-Link fault of any Spoke ED of this equipment connection being detected, notify other these equipment of Spoke ED unavailable, in the time detecting that the EVI-Link of fault recovers normal, notify other these equipment of Spoke ED to recover available.
Another aspect, a kind of apparatus for forwarding message is also provided, and this apparatus for forwarding message is applied to Spoke ED, and this Spoke ED is arranged in the branch site of the EVI network of Hub-Spoke framework, central site comprises: form two Hub ED of main and standby relation, this apparatus for forwarding message comprises:
Receiver module, for receiving Ethernet message and EVI message;
Processing module, the VLAN mark and the target MAC (Media Access Control) address that are used for the Ethernet message receiving according to receiver module are transmitted and are found a corresponding EVI-Link interface at branch site, wherein, an EVI-Link interface connects the EVI-Link of primary Hub ED corresponding to this ED; Also be descapsulated into Ethernet message for the EVI message that receiver module is received, in central site is transmitted, find corresponding port according to VLAN mark and the target MAC (Media Access Control) address of the Ethernet message after decapsulation;
Sending module, Ethernet message receiver module being received for the EVI-Link interface finding according to processing module is encapsulated as EVI message and sends to primary Hub ED; Also send the Ethernet message after decapsulation for the port finding by processing module;
Memory module, transmits with central site and transmits for preserving branch site.
Another aspect, a kind of apparatus for forwarding message is also provided, this apparatus for forwarding message is applied to any in two Hub ED that form main and standby relation, and two Hub ED of this formation main and standby relation are positioned at the central site of the EVI network of Hub-Spoke framework, and this apparatus for forwarding message comprises:
Receiver module, for receiving EVI message and Ethernet message;
Processing module, is descapsulated into Ethernet message for the EVI message that receiver module is received, and finds corresponding port according to VLAN mark and the target MAC (Media Access Control) address of the Ethernet message after decapsulation in branch site is transmitted; And transmit and find corresponding EVI-Link interface at central site for VLAN mark and the target MAC (Media Access Control) address of the Ethernet message received according to receiver module;
Sending module, sends the Ethernet message after decapsulation for the port finding by processing module; And the Ethernet message that the EVI-Link interface finding according to processing module is received receiver module is encapsulated as EVI message and sends the EVI message after encapsulation;
Detection module, connects the state of the EVI-Link of each Spoke ED for detection of this ED;
Notification module, for in the time that detection module detects that this ED connects the EVI-Link fault of any Spoke ED, notify other these ED of Spoke ED unavailable, in the time that detection module detects that the EVI-Link of fault recovers normal, notify other these ED of Spoke ED to recover available.
The application's technical scheme, in the EVI network of the Hub-Spoke of two Hub equipment framework, has realized the forwarding of message.
Brief description of the drawings
Fig. 1 is common EVI network of network configuration diagram;
Fig. 2 is the Organization Chart of the EVI network of the Hub-Spoke framework of two Hub equipment of the application's embodiment;
Fig. 3 is that the Hub ED1 of the application's embodiment is primary Hub ED, Hub ED2 while being Hub ED for subsequent use, the message repeating flow chart that Spoke ED1 carries out;
Fig. 4 is that the Hub ED1 of the application's embodiment is primary Hub ED, Hub ED2 while being Hub ED for subsequent use, the message repeating flow chart that Hub ED1 carries out;
Fig. 5 is a kind of configuration diagram of the EVI network of the Hub-Spoke framework of two Hub equipment of the application's embodiment;
Fig. 6 is the structural representation of the apparatus for forwarding message of the application's embodiment.
Embodiment
Following examples of the application provide a kind of message forwarding method and device, can be applied to the EVI network of the Hub-Spoke framework of two Hub equipment, that is, and and the Hub CE that includes two Hub ED in the central site of this EVI network and connect separately.
As shown in Figure 2, the EVI network of Hub-Spoke framework is made up of a central site (Hub website) and multiple branch site (Spoke website).Center edge equipment Hub ED1 and Hub ED2 are the edge devices in Hub website, central user edge device Hub CE(Customer Edge, customer edge) 1 and Hub CE2 be the customer edge in Hub website.The edge device Spoke ED1 of branch and Spoke ED2 are the edge devices of the local branch site of access SpokeED.The customer edge Spoke CE1 of branch and Spoke CE2 are respectively the customer edge in each branch site.
Hub ED1 and Hub ED2 set up EVI tunnel with Spoke ED1 and Spoke ED2 respectively.Hub ED1 and Hub ED2 are all configured to ENDS(EVI Neighbor Discovery Server, neighbours' discovery server), the Spoke ED1 of branch site and Spoke ED2 are configured to respectively ENDC(EVI Neighbor DiscoveryClient, and neighbours find client).As Hub ED1 and the Hub ED2 of ENDS, all for safeguarding all neighbor informations of same EVI network example, but ENDS itself is also an ENDC simultaneously.Spoke ED1 and Spoke ED2 coordinate Hub ED1 and Hub ED2 to complete neighbours' study, set up EVI-Link with neighbours.SpokeED1 and Spoke ED2 send logon message to Hub ED1 and Hub ED2 respectively separately, to issue in same EVI network example this equipment as ENDC information.Hub ED1 and Hub ED2 receive the logon message of Spoke ED1 and Spoke ED2 and learn the information of ENDC in EVI network example and safeguard, send respectively registration reply message to Spoke ED1 and Spoke ED2, to issue in same EVI network example this equipment as ENDS information.Thereby Spoke ED1 and Spoke ED2 receive after registration reply message separately, separately with the neighbor device of this equipment in EVI network example, i.e. Hub ED1 and Hub ED2, sets up the virtual interconnected connection EVI-Link of Ethernet.Owing to not setting up EVI-Link between Spoke ED1 and Spoke ED2, thereby data flow between branch site need forward by central site, not communication mutually between two branch sites.
The present embodiment describes the message repeating in an EVI network example in the EVI network of the Hub-Spoke framework with two Hub equipment.Below the situation of two Hub ED formation main and standby relation is elaborated.
1, the study of MAC Address, issue and forwarding-table item layoutprocedure
In Fig. 2, for Spoke ED1 and Spoke ED2, a side that connects local branch site is Spoke side, and a side that connects central site is Hub side; For Hub ED1 and Hub ED2, a side that connects two branch sites is Spoke side, and a side that connects Hub CE is Hub side.For example, it is that Master(is primary that Hub ED1 is configured (or appointment)) Hub ED, it is for subsequent use that Hub ED2 is configured to Backup() Hub ED, after configuration, each Spoke ED comes into force with the EVI-Link that the Hub ED1 as primary Hub ED is connected, and the EVI-Link that each Spoke ED is connected with the Hub ED2 as Hub ED for subsequent use is as for subsequent use, does not come into force, only have after Hub ED1 is unavailable, just can be activated.Taking Hub ED1 as primary Hub ED, Hub ED2 is that Hub ED for subsequent use is that example describes below.
(1) layoutprocedure of mac learning, issue and the forwarding-table item of branch's edge device of branch site
Taking Spoke ED1 as example, the MAC address learning of this equipment, forwarding-table item configuration and MAC Address are issued and are at least comprised the following steps:
Step S102, Spoke ED1 is configured to central site by VLAN mark and the source MAC of the Ethernet message receiving (in the local branch site of this Ethernet message from Spoke ED1) and the corresponding relation that receives the port of this Ethernet message and transmits; Obtain EVI-Link interface corresponding to EVI-Link of two Hub ED:Hub ED1 of this equipment connection and Hub ED2; The corresponding relation of the EVI-Link interface in the VLAN mark of the Ethernet message receiving and source MAC and two EVI-Link interfaces obtaining is configured to branch site to be transmitted, wherein, an EVI-Link interface is EVI-Link interface corresponding to EVI-Link of this equipment connection Hub ED1;
Step S104, Spoke ED1 generates the MAC Address synchronization message of carrying this VLAN mark and source MAC; According to two EVI-Link interfaces that obtain, the MAC Address synchronization message of generation is encapsulated as to EVI message and sends to Hub ED1 and Hub ED2 respectively.
By step S102-S104, in the MAC Address of Spoke ED1 in branch site in the local branch site of study, this MAC Address can also be synchronized to respectively to Hub ED1 and the Hub ED2 in central site, make Hub ED1 and Hub ED2 also this MAC Address can be configured to local central site and transmit with branch site and transmit.Wherein, when the MAC Address of learning in configuration is transmitted to branch site, Spoke ED1 can be only EVI-Link interface corresponding to EVI-Link of the primary Hub ED of this equipment connection by EVI-Link interface configuration corresponding this MAC Address.
Step S106, Spoke ED1 receives the EVI message from Hub ED1;
Step S108, the EVI message receiving is descapsulated into MAC Address synchronization message by Spoke ED1, obtains an EVI-Link interface corresponding to EVI-Link of this equipment connection Hub ED1;
Step S110, the corresponding relation of the VLAN mark that Spoke ED1 carries the MAC Address synchronization message after decapsulation and MAC Address and the EVI-Link interface that obtains in step S108 is configured to branch site and transmits.
Due to Spoke ED can by study to MAC Address be synchronized to Hub ED1 and Hub ED2 simultaneously, therefore, Spoke ED1 can receive the MAC Address synchronization message that Hub ED1 sends, also can receive the MAC Address synchronization message that Hub ED2 sends, but, Spoke ED1 is receiving after the MAC Address synchronization message that Hub ED2 sends, judging is the MAC Address synchronization message from Hub ED for subsequent use, obtain EVI-Link interface corresponding to EVI-Link of this equipment connection Hub ED2, the EVI-Link interface that preservation is obtained, but can not carry out above-mentioned configuration operation., Spoke ED1 only, receiving after the MAC Address synchronization message that primary Hub ED sends, just can be configured to branch site by the corresponding relation of EVI-Link the interface corresponding EVI-Link of primary to MAC Address wherein and this equipment connection Hub ED and transmit.
Step S112, Spoke ED1 is configured to branch site by the corresponding relation of VLAN mark and a broadcast MAC Address EVI-Link interface corresponding with the EVI-Link of this equipment connection Hub ED1 and transmits; The corresponding relation of the port of the Spoke CE of VLAN mark and broadcast MAC Address and the local branch site of this equipment connection is configured to central site to be transmitted.
By step S112, Spoke ED1 can transmit with central site and transmit middle configuration broadcast MAC Address at local branch site, and, in branch site is transmitted, EVI-Link interface corresponding to broadcast MAC Address is the EVI-Link interface of the EVI-Link of the primary Hub ED of this equipment connection.
In step S102, the order that Spoke ED1 configuration center website is transmitted and branch site is transmitted is unrestricted.In step S108, Spoke ED1 can the decapsulation of executed in parallel EVI message process and obtain the processing of EVI-Link interface.
(2) MAC address learning of the center edge equipment of central site, issue and forwarding-table item layoutprocedure
Taking Hub ED1 as example, the MAC address learning of this equipment, forwarding-table item configuration and MAC Address are issued and are at least comprised the following steps:
Step S202, Hub ED1 receives the EVI message that Spoke ED1 sends;
Step S204, the EVI message of receiving is descapsulated into MAC Address synchronization message by Hub ED1, obtains EVI-Link interface corresponding to EVI-Link of this equipment connection Spoke ED1;
Step S206, Hub ED1, by the corresponding relation of the VLAN mark of carrying in this MAC Address synchronization message and the MAC Address EVI-Link interface corresponding with the EVI-Link of the connection Spoke ED1 obtaining, is configured to central site and transmits; The corresponding relation of the port of the VLAN mark of carrying in this MAC Address synchronization message and MAC Address and this equipment connection Hub CE1 is disposed to branch site to be transmitted.
By step S202-S206, the MAC Address that Hub ED1 can synchronously carry out the Spoke ED1 in branch site be configured to local branch site and transmit with central site and transmit.
Step S208, Hub ED1 obtains EVI-Link interface corresponding to EVI-Link of this equipment connection Spoke ED2, by the MAC Address synchronization message Reseal after decapsulation and be transmitted to Spoke ED2.
By step S208, after the MAC Address that Hub ED1 synchronously comes at the Spoke ED:Spoke ED1 that receives a branch site, also this MAC Address can be continued be synchronized to the Spoke ED:SpokeED2 of other branch sites.
Spoke ED2 receives that after the EVI message of Hub ED1, the processing of execution is identical with step S108 and S110.
Step S210, the corresponding relation that Hub ED1 identified and broadcasted the MAC Address EVI-Link interface corresponding with the EVI-Link of the Spoke ED of the each branch site of this equipment connection by VLAN, is disposed at central site and transmits; By the corresponding relation of the port of VLAN mark and broadcast MAC Address and this equipment connection Hub CE1, be disposed at branch site and transmit.
By step S210, Hub ED1 can transmit with central site and transmit middle configuration broadcast MAC Address at local branch site.
2, message repeating process
(1) the message repeating process of branch's edge device of branch site
The process E-Packeting taking Spoke ED1 is below example explanation:
As shown in Figure 3, the message repeating process of Spoke ED1 comprises the following steps:
Step S302, Spoke ED1 receives the Ethernet message from local branch site;
For example, receive the next Ethernet message of Spoke CE1 forwarding of local branch site.
Step S304, Spoke ED1 finds a corresponding EVI-Link interface according to VLAN mark and the target MAC (Media Access Control) address of the Ethernet message receiving in branch site is transmitted, wherein, the EVI-Link interface finding is the outgoing interface that Spoke ED1 is connected to the EVI-Link of Hub ED1,, Spoke ED1 connects EVI-Link interface corresponding to EVI-Link of primary Hub ED, then, according to the EVI-Link interface finding, the Ethernet message receiving is encapsulated as to EVI message and sends to Hub ED1;
Step S306, Spoke ED1 receives the EVI message from Hub ED1;
Step S308, this EVI message is descapsulated into Ethernet message by Spoke ED1, finds corresponding port according to VLAN mark and the target MAC (Media Access Control) address of the Ethernet message after decapsulation in central site is transmitted;
For example, the port finding is the port that this Spoke ED1 is connected to Spoke CE1.
Step S310, Spoke ED1 sends to Spoke CE1 by this Ethernet message by the port finding.
Spoke CE1 can be according to the target MAC (Media Access Control) address of the Ethernet message of receiving, forwards Ethernet message to corresponding main frame.
(2) the message repeating process of the center edge equipment of central site
Due to now, Hub ED1 is primary Hub ED, only has Hub ED1 just can receive the EVI message being packaged into by Ethernet message that each Spoke ED sends, and as shown in Figure 4, the process E-Packeting of Hub ED1 comprises the following steps:
Step S402, Hub ED1 receives the EVI message from Spoke ED1;
Spoke ED1 is packaged into EVI message by the Ethernet message in local branch site and is transmitted to the detailed process of Hub ED1, can, referring to above-mentioned steps S302-S304, repeat no more here.
Step S404, Hub ED1 is forwarded to Hub CE1 after the EVI message deblocking receiving is dressed up to Ethernet message.
Concrete, Hub ED1 is after receiving EVI message, this EVI message is descapsulated into Ethernet message, in transmitting, searches branch site corresponding to the VLAN mark of this Ethernet message and the port of target MAC (Media Access Control) address, wherein, the port finding is the port that Hub ED1 is connected to Hub CE1, then, this Ethernet message is sent to Hub CE1 by the port finding.Hub CE1 can be used as data stream management device, receiving after this Ethernet message, message is managed, and afterwards, this Ethernet message is intactly returned to Hub ED1.
Step S406, after Hub ED1 receives the Ethernet message that Hub CE1 returns, in transmitting, central site finds corresponding to the VLAN mark of this Ethernet message and the EVI-Link interface of target MAC (Media Access Control) address, for example, the EVI-Link interface that this finds is connected to the EVI-Link of Spoke ED2 corresponding to Hub ED1, therefore, HubED1 is transmitted to SpokeED2 after this Ethernet message being encapsulated as to EVI message according to the EVI-Link interface finding.
Spoke ED2 can, referring to above-mentioned steps S306-S310, repeat no more here in the processing procedure that receives this EVI message and forward.
3, situation when primary Hub ED is unavailable
Comprise two kinds of situations as the Hub ED1 of primary Hub ED is unavailable: one is Hub ED1 fault, and another kind is some EVI-Link faults that Hub ED1 connects, and the application does not limit this.Hub ED1 has occurred after fault, and each Spoke ED can be by detecting the EVI-Link down(fault of this equipment connection Hub ED1) know that Hub ED1 is unavailable; If the EVI-Link fault that Hub ED1 connects, for example, the EVI-Link fault being connected with SpokeED1, now, Hub ED1 can send down state notification message to other SpokeED:Spoke ED2 by other EVI Link that connect, like this, Spoke ED1 can know that Hub ED1 is unavailable by the EVI-Link down that this equipment and Hub ED1 detected, and Spoke ED2 can know that Hub ED1 is unavailable by down state notification message.
(1) the configuration modification process of mac learning, issue and the forwarding-table item of branch's edge device of branch site
Situation one: the in the situation that of Hub ED1 fault:
In this situation once, taking Spoke ED1 as example, the MAC address learning of this equipment, forwarding-table item configuration modification and MAC Address are issued and are at least comprised the following steps:
Step S502, Spoke ED1 detects the state of the EVI-Link of this equipment connection Hub ED1 and Hub ED2; In the time the EVI-Link fault that connects Hub ED1 being detected, an EVI-Link interface during Spoke ED1 transmits branch site is revised as the 2nd EVI-Link interface, wherein, the 2nd EVI-Link interface is EVI-Link interface corresponding to EVI-Link of this equipment connection HubED2.
Because Spoke ED1 is receiving after the MAC Address synchronization message of sending as the Hub ED2 of Hub ED for subsequent use, can obtain and preserve the 2nd EVI-Link interface corresponding to EVI-Link of this equipment connection Hub ED2.Therefore, Spoke ED1, after knowing that Hub ED1 is unavailable, can obtain the 2nd EVI-Link interface of preservation, and during branch site is transmitted, an EVI-Link interface corresponding to each MAC Address is revised as the 2nd EVI-Link interface, now, the EVI-Link of this equipment connection Hub ED2 is activated.
Step S504, Spoke ED1 is by VLAN mark and the source MAC of the Ethernet message of receiving (in the local branch site of this Ethernet message from Spoke ED1) and receive the corresponding relation of the port of this Ethernet message, is disposed at central site and transmits; Obtain the 2nd EVI-Link interface corresponding to EVI-Link of this equipment connection Hub ED2, the corresponding relation of the VLAN mark of the Ethernet message receiving and source MAC and the 2nd EVI-Link interface that obtains is configured to described branch site and transmits;
Now, because Hub ED1 is unavailable, Spoke ED1 by study to MAC Address when being configured to branch site and transmitting, EVI-Link interface corresponding to this MAC Address of meeting is set to EVI-Link interface corresponding to EVI-Link of this equipment connection Hub ED2, i.e. the 2nd EVI-Link interface.
Step S506, Spoke ED1 generates the MAC Address synchronization message of carrying this VLAN mark and source MAC, according to the 2nd EVI-Link interface, the MAC Address synchronization message of generation is encapsulated as to EVI message and sends to Hub ED2.
Due to Hub ED1 fault, by above-mentioned step S502-S506, detecting after the EVI-Link fault of this equipment connection Hub ED1, EVI-Link interface corresponding to EVI-Link of this equipment connection Hub ED1 during Spoke ED1 can transmit branch site is revised as EVI-Link interface corresponding to EVI-Link of this equipment connection Hub ED2, and, learning after MAC Address, only the corresponding relation of EVI-Link interface corresponding with the EVI-Link of this equipment connection HubED2 this MAC Address can be configured to branch site transmits, and only this MAC Address is synchronized to Hub ED2.
Step S508, Spoke ED1 receives the EVI message from Hub ED2;
Step S510, the EVI message from Hub ED2 receiving is descapsulated into MAC Address synchronization message by Spoke ED1, obtains the 2nd EVI-Link interface corresponding to EVI-Link of this equipment connection Hub ED2;
Step S512, the corresponding relation of the VLAN mark that Spoke ED1 carries the MAC Address synchronization message after decapsulation and MAC Address and the 2nd EVI-Link interface that obtains is configured to branch site and transmits.
Due to fault of Hub ED1, by above-mentioned step S508-S512, Spoke ED1 only can receive the MAC Address that other Spoke ED that Hub ED2 synchronously comes learn.
In this situation once, the operation that Spoke ED2 carries out, with step S502-S512, repeats no more here.
Situation two, connect Spoke ED1 at Hub ED1 EVI-Link fault:
This situation two times, the operation that Spoke ED1 carries out, with step S502-S512, repeats no more here.
This situation two times, the MAC address learning of Spoke ED2, forwarding-table item configuration modification and MAC Address are issued and are at least comprised the following steps:
Step S502 ', Spoke ED2 receives the down state notification message that Hub ED1 sends; Spoke ED2 is receiving after this down state notification message, an EVI-Link interface during branch site is transmitted is revised as the 2nd EVI-Link interface, wherein, the 2nd EVI-Link interface is EVI-Link interface corresponding to EVI-Link of this equipment connection Hub ED2;
Wherein, this down state notification message is used for notifying this Hub ED unavailable.
Hub ED1 is detecting after the EVI-Link fault of this equipment connection Spoke ED1, can send down state notification message to other Spoke ED:Spoke ED2 by other EVI Link that connect.
Step S504 ', Spoke ED2 is configured to central site by the VLAN mark of the Ethernet message receiving and source MAC and the corresponding relation that receives the port of this Ethernet message and transmits; Obtain the 2nd EVI-Link interface corresponding to EVI-Link of this equipment connection HubED2, the corresponding relation of the VLAN mark of the Ethernet message receiving and source MAC and the 2nd EVI-Link interface that obtains is configured to branch site and transmits;
Step S506 ', Spoke ED2 generates the MAC Address synchronization message of carrying above-mentioned VLAN mark and source MAC, according to the 2nd EVI-Link interface obtaining in step S504 ', the MAC Address synchronization message of generation is encapsulated as to EVI message and sends to Hub ED2.
Because Hub ED1 has connected the EVI-Link fault of Spoke ED1, by above-mentioned step S502 '-S506 ', receiving after the down state notification message that Hub ED1 sends, EVI-Link interface corresponding to EVI-Link of this equipment connection Hub ED1 during Spoke ED2 can transmit branch site is revised as EVI-Link interface corresponding to EVI-Link of this equipment connection Hub ED2, and, learning after MAC Address, only the corresponding relation of EVI-Link interface corresponding with the EVI-Link of this equipment connection Hub ED2 this MAC Address can be configured to branch site transmits, and only this MAC Address is synchronized to Hub ED2.
Step S508 ', Spoke ED2 receives the EVI message that Hub ED2 sends;
Step S510 ', the EVI message of receiving is descapsulated into MAC Address synchronization message by Spoke ED2, obtains the 2nd EVI-Link interface corresponding to EVI-Link of this equipment connection Hub ED2;
Step S512 ', Spoke ED2 is configured to branch site by the corresponding relation of the VLAN mark of carrying in this MAC Address synchronization message and MAC Address and the 2nd EVI-Link interface that obtains in step S512 ' and transmits.
Due to the EVI-Link fault of Hub ED1 connection Spoke ED1, Hub ED1 is unavailable, and by above-mentioned step S508 '-S512 ', Spoke ED2 only can receive the MAC Address that synchronous other the next Spoke ED of Hub ED2 learn.
(2) the message repeating process of branch's edge device of branch site
The process E-Packeting taking Spoke ED1 is below example explanation:
Step S602, Spoke ED1 receives the Ethernet message from local branch site;
For example, receive the next Ethernet message of Spoke CE1 forwarding of local branch site.
Step S604, Spoke ED1 finds the 2nd corresponding EVI-Link interface according to VLAN mark and the target MAC (Media Access Control) address of the Ethernet message receiving in branch site is transmitted, wherein, the 2nd EVI-Link interface finding is the outgoing interface that Spoke ED1 is connected to the EVI-Link of Hub ED2, then, according to the 2nd EVI-Link interface, the Ethernet message receiving is encapsulated as to EVI message, and sends to Hub ED2.
Spoke ED1 receives after the EVI message from Hub ED2, and the process of decapsulation forwarding of carrying out, with step S306-S310, repeats no more here.
(3) configuration of mac learning, issue and the forwarding-table item of the center edge equipment of central site, and message repeating process
Now, Hub ED1 is unavailable, the configuration of mac learning, issue and the forwarding-table item of Hub ED2, and message repeating process is with step S202-S208, repeats no more here.
4, situation when primary Hub ED recovers normal
With unavailable similar, Hub ED1 recovers the available two kinds of situations that comprise: one is Hub ED1 fault recovery, and another kind is some EVI-Link fault recoveries that Hub ED1 connects, and the application does not limit this.After the fault recovery of Hub ED1, each Spoke ED can be normal by the EVI-Link up(of this equipment connection Hub ED1 being detected) know that Hub ED1 recovers available; If the EVI-Link fault recovery that Hub ED1 connects, for example, the EVI-Link fault recovery being connected with Spoke ED1, now, Hub ED1 can be sent and recover upstate notification message to other Spoke ED:Spoke ED2 by other EVILink that connect, like this, Spoke ED1 can be by detecting that the EVI-Link up of this equipment connection Hub ED1 knows that Hub ED1 recovers available, and SpokeED2 can know that Hub ED1 recovers available by recovering upstate notification message.
(1) the configuration modification process of mac learning, issue and the forwarding-table item of branch's edge device of branch site
Situation one, the in the situation that of Hub ED1 fault recovery:
In this situation once, taking Spoke ED1 as example, the forwarding-table item amendment of this equipment comprises the following steps:
Step S702, Spoke ED1 detects the state of the EVI-Link of this equipment connection Hub ED1 and Hub ED2; Spoke ED1, in the time that the EVI-Link that this equipment connection Hub ED1 detected recovers normal, if desired switches back to HubED1, and the two EVI-Link interface of Spoke ED1 during branch site is transmitted is revised as an EVI-Link interface;
Switch back to Hub ED1 if do not need, Spoke ED1 does not need branch site to transmit and modify.
Step S704, Spoke ED1 generates and carries the MAC Address of the clean culture in the local branch site of central site in transmitting and the MAC Address synchronization message of corresponding VLAN mark thereof, according to an EVI-Link interface, the MAC Address synchronization message of generation is encapsulated as to EVI message and sends to Hub ED1.
Because Spoke ED1 may learn to have arrived MAC Address during Hub ED1 is unavailable, therefore, after HubED1 recovery is available, Spoke ED1, by step S704, just can all be synchronized to Hub ED1 by the MAC Address of all clean cultures from learning in local branch site (comprising: the MAC Address of learning before Hub ED1 is unavailable and during unavailable).
Recover available at Hub ED1, and switchback is to after Hub ED1, the layoutprocedure of mac learning, issue and the forwarding-table item of Spoke ED1, with step S102-S110, repeats no more here.
In this situation once, the operation that Spoke ED2 carries out, with step S702-S704, repeats no more here.
Situation two, connect Spoke ED1 at Hub ED1 EVI-Link fault recovery:
This situation two times, the operation that Spoke ED1 carries out, with step S702-S704, repeats no more here.
This situation two times, the forwarding-table item amendment that Spoke ED2 carries out comprises the following steps:
Step S802, Spoke ED2 receives the recovery upstate notification message that Hub ED1 sends, and wherein, this recovery notification message is used for notifying Hub ED1 to recover available;
Step S804, if desired switches back to Hub ED1, and the 2nd EVI-Link interface during Spoke ED2 transmits branch site is revised as an EVI-Link interface;
Step S806, Spoke ED2 generates and carries the MAC Address of the clean culture in the local branch site of central site in transmitting and the MAC Address synchronization message of corresponding VLAN mark thereof, and an EVI-Link interface corresponding according to the EVI-Link of this equipment connection Hub ED1 is encapsulated as the MAC Address synchronization message of generation EVI message and sends to Hub ED1.
Recover available at Hub ED1, and switchback is to after Hub ED1, the layoutprocedure of mac learning, issue and the forwarding-table item of Spoke ED2, with step S102-S110, repeats no more here.
Figure 5 shows that the schematic diagram of communicating by letter between the different branch sites of EVI network of the Hub-Spoke framework of two Hub equipment that the embodiment of the present application provides.In Fig. 5, Hub ED1 is configured to primary Hub ED, and Hub ED2 is configured to Hub ED for subsequent use.Spoke ED1 sets up EVI-Link with Hub ED1 and Hub ED2 respectively and is connected: EVI-Link1 and EVI-Link3, and these two EVI-Link of EVI-Link1 and EVI-Link3 form main and standby relation, and EVI-Link3 is as the backup of EVI-Link1.Equally, Spoke ED2 also sets up EVI-Link with Hub ED1 and Hub ED2 respectively and is connected: EVI-Link4 and EVI-Link2, and these two EVI-Link of EVI-Link4 and EVI-Link2 also form main and standby relation, and EVI-Link2 is as the backup of EVI-Link4.MAC Address synchronization message can utilize Intermediate System to Intermediate System message to realize.
Suppose that Spoke ED1, Spoke ED2, Hub ED1 and Hub ED2 have the listed related port of table 1 and EVI-Link interface.
Table 1
Port?A On Spoke ED1, be connected to the port of Spoke CE1
Link1 Spoke ED1 connects the EVI-Link interface of the EVI-Link1 of Hub ED1
Link3 Spoke ED1 connects the EVI-Link interface of the EVI-Link3 of Hub ED2
Port?B On Spoke ED2, be connected to the port of Spoke CE2
Link2 Spoke ED2 connects the EVI-Link interface of the EVI-Link2 of Hub ED2
Link4 Spoke ED2 connects the EVI-Link interface of the EVI-Link4 of Hub ED1
Port?C On Hub ED1, be connected to the interface of Hub CE1
Port?D On Hub ED2, be connected to the interface of Hub CE2
Link1’ Hub ED1 connects the EVI-Link interface of the EVI-Link1 of Spoke ED1
Link4’ Hub ED1 connects the EVI-Link interface of the EVI-Link4 of Spoke ED2
Link3’ Hub ED2 connects the EVI-Link interface of the EVI-Link3 of Spoke ED1
Link2’ Hub ED2 connects the EVI-Link interface of the EVI-Link2 of Spoke ED2
Based on table 1, Spoke ED1, Spoke ED2, Hub ED1 and Hub ED2 dispose transmitting respectively of broadcast MAC forwarding-table item as table 2-1,2-2, and 2-3, shown in 2-4.
Table 2-1
Target MAC (Media Access Control) address Outlet outgoing interface VLAN?ID Index(index)
FFFF-FFFF-FFFF PORT?A 10 Hub side
FFFF-FFFF-FFFF Link1 10 Spoke side
Table 2-2
Target MAC (Media Access Control) address Outlet outgoing interface VLAN?ID Index
FFFF-FFFF-FFFF PORT?B 10 Hub side
FFFF-FFFF-FFFF Link4 10 Spoke side
Table 2-3
Target MAC (Media Access Control) address Outlet outgoing interface VLAN?ID Index
FFFF-FFFF-FFFF Link1’,Link4’ 10 Hub side
FFFF-FFFF-FFFF Port?C 10 Spoke side
Table 2-4
Target MAC (Media Access Control) address Outlet outgoing interface VLAN?ID Index
FFFF-FFFF-FFFF Link3’,Link2’ 10 Hub side
FFFF-FFFF-FFFF Port?D 10 Spoke side
Spoke ED1 receives Spoke CE1 from Port A and forwards the Ethernet message of coming, the VLAN ID of this Ethernet message is VLAN10, source MAC is the MAC Address that MAC1(is connected in the main frame 1 of Spoke CE1), target MAC (Media Access Control) address is the MAC Address that MAC2(is connected in the main frame 2 of Spoke CE2), SpokeED1 transmits at branch site and (has the table of the list item composition that Spoke funiculus lateralis draws according to the VLAN10 of this Ethernet message and source MAC MAC1, being called branch site transmits) in do not find the list item of coupling, transmit at central site respectively and (there is the table of the list item composition that Hub funiculus lateralis draws, being called central site transmits) and branch site transmit the list item that middle configuration packet contains VLAN10 and MAC1.The central site that table 3-1 is depicted as Spoke ED1 transmits and branch site is transmitted.
Table 3-1
Target MAC (Media Access Control) address Outlet outgoing interface VLAN?ID Index
FFFF-FFFF-FFFF-FFFF Port?A VLAN10 Hub side
MAC1 Port?A VLAN10 Hub side
FFFF-FFFF-FFFF-FFFF Link1 VLAN10 Spoke side
MAC1 Link1 VLAN10 Spoke side
During the central site of table 3-1 is transmitted, the outgoing interface that MAC1 is corresponding is the port PortA that receives this Ethernet message; During the branch site of table 3-1 is transmitted, the outgoing interface that MAC1 is corresponding is EVI-Link interface corresponding to EVI-Link1 that Spoke ED1 is connected to Hub ED1: Link1.
If Spoke ED1 does not find VLAN10 and list item corresponding to target MAC (Media Access Control) address MAC2 in the branch of this equipment transmits, the VLAN10 of Spoke ED1 in branch site broadcasts, and in EVI network, do not forward, the broadcast that has reduced accordingly the interior unknown unicast message of EVI network of Hub-Spoke framework forwards.That is, the clean culture Ethernet message of target MAC (Media Access Control) address the unknown is only broadcasted in this VLAN, and not at EVI network repeating.
Spoke ED1 generates the IS-IS message that carries VLAN10 and MAC1, is this IS-IS message encapsulation EVI head respectively according to Link1 and Link3, and this IS-IS message is encapsulated as to EVI message.Wherein, Link1 or Link3 at least comprise following information: outer Ethernet header (as the MAC Address of the down hop of public network VLAN ID, arrival opposite end, EVI tunnel), the outer IP header (as the IP address of the IP address of local EVI tunnel interface, opposite end EVI tunnel interface) of IP gre tunneling head, the gre tunneling header (tunnel type) of IP gre tunneling head, EVI message outbound port (the actual transmission physical port of EVI message).
The EVI message that Spoke ED1 obtains encapsulation sends to respectively Hub ED1 and Hub ED2.Thereby, SpokeED1 by this learning equipment to MAC1 be synchronized to Hub ED1 and Hub ED2.
Hub ED1 receives the EVI message that Spoke ED1 sends, this EVI message is descapsulated into IS-IS message, Hub ED1 is according to the VLAN10 that is associated with MAC1 in EVI heading and Intermediate System to Intermediate System, and that determine the carrying of EVI tunnel is EVI-Link1 and EVI-Link interface corresponding to this EVI-Link1: Link1 '.Then, Hub ED1 transmits with branch site and transmits middle configuration MAC1 and list item corresponding to VLAN10 at central site respectively.The central site that table 3-2 is depicted as Hub ED1 transmits and branch site is transmitted.
Table 3-2
Target MAC (Media Access Control) address Outlet outgoing interface VLAN?ID Index
FFFF-FFFF-FFFF-FFFF Link1’,Link4’ VLAN10 Hub side
MAC1 Link1’ VLAN10 Hub side
FFFF-FFFF-FFFF-FFFF Port?C VLAN10 Spoke side
MAC1 Port?C VLAN10 Spoke side
The IS-IS message of what Hub ED1 obtained decapsulation carry VLAN10 and MAC1, is this IS-IS message encapsulation EVI head according to interface Link4 ', and this IS-IS message is encapsulated as to EVI message.This EVI message is sent to Spoke ED2 by Hub ED1.Thereby the MAC1 that Hub ED1 synchronously carrys out Spoke ED1 continues to be synchronized to SpokeED2.
Equally, Hub ED2 receives that handling process after the EVI message that Spoke ED1 sends is with Hub ED1, and the central site that table 3-3 is depicted as Hub ED2 transmits and branch site is transmitted.
Table 3-3
Target MAC (Media Access Control) address Outlet outgoing interface VLAN?ID Index
FFFF-FFFF-FFFF-FFFF Link3’,Link2’ VLAN10 Hub side
MAC1 Link3’ VLAN10 Hub side
FFFF-FFFF-FFFF-FFFF Port?D VLAN10 Spoke side
MAC1 Port?D VLAN10 Spoke side
The IS-IS message of what Hub ED2 also can obtain decapsulation carry VLAN10 and MAC1, is this IS-IS message encapsulation EVI head according to interface Link2 ', and this IS-IS message is encapsulated as to EVI message.This EVI message is sent to Spoke ED2 by Hub ED2.Thereby the MAC1 that Hub ED2 also synchronously carrys out Spoke ED1 continues to be synchronized to Spoke ED2.
Spoke ED2 receives the EVI message that Hub ED1 sends, this EVI message is descapsulated into IS-IS message, Spoke ED2 is according to the VLAN10 that is associated with MAC1 in EVI heading and Intermediate System to Intermediate System, and that determine the carrying of EVI tunnel is the EVI-Link interface that EVI-Link4 and this EVI-Link4 are corresponding: Link4.Spoke ED2 transmits middle configuration MAC1 and list item corresponding to VLAN10 at the branch site of this equipment.The central site that table 3-4 is depicted as SpokeED2 transmits and branch site is transmitted.
Table 3-4
Target MAC (Media Access Control) address Outlet outgoing interface VLAN?ID Index
FFFF-FFFF-FFFF-FFFF Port?B VLAN10 Hub side
MAC1 Link4 VLAN10 Spoke side
FFFF-FFFF-FFFF-FFFF Link4 VLAN10 Spoke side
Spoke ED2 is receiving being encapsulated after the EVI message obtaining by IS-IS message that Hub ED2 sends, the MAC1 wherein comprising and list item corresponding to VLAN10 can be increased to during branch site transmits.
Spoke ED2 receives the Ethernet message from Spoke CE2 from Port B, and the VLAN ID of this Ethernet message is VLAN10, and source MAC is MAC2, and target MAC (Media Access Control) address is MAC1.Spoke ED2 is according to the VLAN10 in this Ethernet message and source MAC MAC2, in the branch site of table 3-4 is transmitted, do not find the list item of coupling, transmit with branch site and transmit middle configuration VLAN10 and list item corresponding to MAC2 at the central site of this equipment respectively.The central site that table 4-1 is depicted as after Spoke ED2 upgrades is transmitted and branch site is transmitted.
Table 4-1
Target MAC (Media Access Control) address Outlet outgoing interface VLAN?ID Index
FFFF-FFFF-FFFF-FFFF Port?B VLAN10 Hub side
MAC2 Port?B VLAN10 Hub side
FFFF-FFFF-FFFF-FFFF Link4 VLAN10 Spoke side
MAC1 Link4 VLAN10 Spoke side
MAC2 Link4 VLAN10 Spoke side
During the central site of table 4-1 is transmitted, the outgoing interface that MAC2 is corresponding is the port PortB that receives this Ethernet message; During the branch site of table 4-1 is transmitted, the outgoing interface that MAC2 is corresponding is EVI-Link interface corresponding to EVI-Link4 that Spoke ED2 is connected to Hub ED1: Link4.
Spoke ED2 generates the IS-IS message that carries VLAN10 and MAC2, is this IS-IS message encapsulation EVI head respectively according to Link2 and Link4, and this IS-IS message is encapsulated as to EVI message.The EVI message after encapsulation is sent to respectively Hub ED1 and Hub ED2 by Spoke ED2.Thereby, Spoke ED2 by this learning equipment to MAC2 be synchronized to Hub ED1 and Hub ED2.
Spoke ED2 is according to VLAN10 and the target MAC (Media Access Control) address MAC1 of this Ethernet message of receiving, in transmitting, the branch site of table 4-1 finds the list item of coupling, outgoing interface in the list item finding is: Link4, according to Link4, this Ethernet message is encapsulated as to EVI message, the EVI message after encapsulation is sent to Hub ED1.
Hub ED1 receives the EVI message that Spoke ED2 sends, this EVI message is descapsulated into IS-IS message, Hub ED1 is according to the VLAN10 that is associated with MAC2 in EVI heading and Intermediate System to Intermediate System, and that determine the carrying of EVI tunnel is the EVI-Link interface that EVI-Link4 and this EVI-Link4 are corresponding: Link4 '.Then, Hub ED1 transmits with branch site and transmits middle configuration MAC2 and list item corresponding to VLAN10 at central site respectively.Table 4-2 is that the central site after Hub ED1 upgrades is transmitted and branch site is transmitted.
Table 4-2
Target MAC (Media Access Control) address Outlet outgoing interface VLAN?ID Index
FFFF-FFFF-FFFF-FFFF Link1’,Link4’ VLAN10 Hub side
MAC1 Link1’ VLAN10 Hub side
MAC2 Link4’ VLAN10 Hub side
FFFF-FFFF-FFFF-FFFF PORT?C VLAN10 Spoke side
MAC1 PORT?C VLAN10 Spoke side
MAC2 PORT?C VLAN10 Spoke side
The IS-IS message of what Hub ED1 obtained decapsulation carry VLAN10 and MAC2, is this IS-IS message encapsulation EVI head according to interface Link1 ', and this IS-IS message is encapsulated as to EVI message.This EVI message is sent to Spoke ED1 by Hub ED1.Thereby the MAC2 that Hub ED1 synchronously carrys out Spoke ED2 continues to be synchronized to SpokeED1.
Equally, Hub ED2 receives the EVI message that Spoke ED2 sends, this EVI message is descapsulated into IS-IS message, Hub ED2 is according to the VLAN10 that is associated with MAC2 in EVI heading and Intermediate System to Intermediate System, and that determine the carrying of EVI tunnel is the EVI-Link interface that EVI-Link2 and this EVI-Link2 are corresponding: Link2 '.Then, HubED2 transmits with branch site and transmits middle configuration MAC2 and list item corresponding to VLAN10 at central site respectively.Table 4-3 is that the central site after Hub ED2 upgrades is transmitted and branch site is transmitted.
Table 4-3
Target MAC (Media Access Control) address Outlet outgoing interface VLAN?ID Index
FFFF-FFFF-FFFF-FFFF Link3’,Link2’ VLAN10 Hub side
MAC1 Link3’ VLAN10 Hub side
MAC2 Link2’ VLAN10 Hub side
FFFF-FFFF-FFFF-FFFF Port?D VLAN10 Spoke side
MAC1 Port?D VLAN10 Spoke side
MAC2 Port?D VLAN10 Spoke side
The IS-IS message of what Hub ED2 obtained decapsulation carry VLAN10 and MAC2, is this IS-IS message encapsulation EVI head according to interface Link3 ', and this IS-IS message is encapsulated as to EVI message.This EVI message is sent to Spoke ED1 by Hub ED2.Thereby the MAC2 that Hub ED2 also synchronously carrys out Spoke ED2 continues to be synchronized to Spoke ED1.
Hub ED1 receives the EVI message that Spoke ED2 sends, this EVI message is descapsulated into Ethernet message, according to the VLAN10 in this Ethernet message and target MAC (Media Access Control) address MAC1, in transmitting, the branch site of table 4-2 finds the list item of coupling,, according to the outgoing interface Port C of the list item finding, this Ethernet message is sent to Hub CE1.Hub CE1 receives that this Ethernet message manages, and as monitoring and statistics, then this Ethernet message is returned to Hub ED1.
As can be seen here, embodiment illustrated in fig. 5 in, Hub website has not only been realized the communication between each branch site, also can carry out unified management to the message data stream of each branch site.
Hub ED1 receives the Ethernet message that Hub CE1 returns, in transmitting, the central site shown in table 4-2 finds the list item of coupling according to the VLAN10 in this Ethernet message and target MAC (Media Access Control) address MAC1, according to the outgoing interface Link1 ' in the list item finding, this Ethernet message is encapsulated as to EVI message, the EVI message after encapsulation is sent to Spoke ED1.
Spoke ED1 receives the EVI message that Hub ED1 sends, this EVI message is descapsulated into IS-IS message, Spoke ED1 is according to the VLAN10 that is associated with MAC2 in EVI heading and Intermediate System to Intermediate System, and that determine the carrying of EVI tunnel is the EVI-Link interface that EVI-Link1 and this EVI-Link1 are corresponding: Link1.Spoke ED1 transmits middle configuration MAC2 and list item corresponding to VLAN10 at the branch site of this equipment.The central site that table 4-4 is depicted as after SpokeED1 upgrades is transmitted and branch site is transmitted.
Table 4-4
Target MAC (Media Access Control) address Outlet outgoing interface VLAN?ID Index
FFFF-FFFF-FFFF-FFFF Port?A VLAN10 Hub side
MAC1 Port?A VLAN10 Hub side
FFFF-FFFF-FFFF-FFFF Link1 VLAN10 Spoke side
MAC1 Link1 VLAN10 Spoke side
MAC2 Link1 VLAN10 Spoke side
During the branch site of table 4-4 is transmitted, the outgoing interface that MAC2 is corresponding is EVI-Link interface corresponding to EVI-Link1 that Spoke ED1 is connected to Hub ED1: Link1.
In addition, Spoke ED1, at the EVI message of receiving that Hub ED2 sends, is descapsulated into IS-IS message by this EVI message, and still, Spoke ED1 can not transmit the MAC2 and list item corresponding to VLAN10 that in this IS-IS message of middle increase, comprise at branch site.
Spoke ED1 receives the EVI message that Hub ED1 sends, this EVI message is descapsulated into Ethernet message, according to the VLAN10 in this Ethernet message and target MAC (Media Access Control) address MAC1, in transmitting, the central site of table 4-4 finds the list item of coupling,, according to the outgoing interface Port A of the list item finding, this Ethernet message is sent to Spoke CE1.
Spoke CE1 transmits according to this plant maintenance, forwards Ethernet message to main frame 1.
In addition, be that while broadcasting the broadcast Ethernet message of MAC Address, the broadcast Ethernet message that SpokeCE1 receives is broadcasted in VLAN10 when main frame 1 sends target MAC (Media Access Control) address.Spoke ED1 receives this broadcast Ethernet message in VLAN10, according to VLAN10 and broadcast MAC Address, in transmitting, the branch site of table 4-4 finds the list item of coupling, EVI-Link interface in this list item is: Link1, according to Link1, this broadcast Ethernet message is encapsulated as to broadcast EVI message, sends to Hub ED1.
Hub ED1 receives broadcast EVI message, this broadcast EVI message is descapsulated into broadcast Ethernet message, according to the VLAN10 in this Ethernet message and broadcast MAC Address, in transmitting, the branch site of table 4-2 finds the list item of coupling,, according to the outgoing interface Port C in the list item finding, this broadcast Ethernet message is sent to HubCE1.Hub CE1 receives that this broadcast Ethernet message manages, and as monitoring and statistics, then this broadcast Ethernet message is returned to Hub ED1.
Hub ED1 receives the broadcast Ethernet message that Hub CE1 returns, in transmitting, the central site of table 4-2 finds the list item of coupling with broadcast MAC Address according to the VLAN10 in this broadcast Ethernet message, respectively according to outgoing interface Link1 ' and Link4 ' in the list item finding, this broadcast Ethernet message is encapsulated as to broadcast EVI message, the broadcast EVI message after encapsulation is sent to Spoke ED1 and Spoke ED2.
Spoke ED1 receives after this broadcast EVI message, determines that by the source MAC of message this message is sent by this equipment, therefore, can filter principle based on source and do discard processing, prevents the internal loopback of data flow.Spoke ED2 receives after this broadcast EVI message, this broadcast EVI message is descapsulated into broadcast Ethernet message, according to the VLAN10 in this broadcast Ethernet message and broadcast MAC Address, in transmitting, the central site of table 4-1 finds the list item of coupling,, according to the outgoing interface Port B in the list item finding, this broadcast Ethernet message is sent to SpokeCE2.Spoke CE2 transmits according to this plant maintenance, the broadcast Ethernet message that broadcast is received in VLAN10.
Follow-up, when after Hub ED1 fault, Spoke ED1 detects EVI-Link1down, and EVI-Link interface Link1 corresponding to EVI-Link1 in the branch site in table 4-4 being transmitted is revised as: the EVI-Link interface Link3 that EVI-Link3 is corresponding, now, table 4-4 is updated to table 5-1.Equally, Spoke ED2 detects EVI-Link4down, EVI-Link interface Link4 corresponding to EVI-Link4 in the branch site in table 4-1 being transmitted is revised as: the EVI-Link interface Link2 that EVI-Link2 is corresponding, now, table 4-1 is updated to table 5-2.
Table 5-1
Target MAC (Media Access Control) address Outlet outgoing interface VLAN?ID Index
FFFF-FFFF-FFFF-FFFF Port?A VLAN10 Hub side
MAC1 Port?A VLAN10 Hub side
FFFF-FFFF-FFFF-FFFF Link3 VLAN10 Spoke side
MAC1 Link3 VLAN10 Spoke side
MAC2 Link3 VLAN10 Spoke side
Table 5-2
Target MAC (Media Access Control) address Outlet outgoing interface VLAN?ID Index
FFFF-FFFF-FFFF-FFFF Port?B VLAN10 Hub side
MAC2 Port?B VLAN10 Hub side
FFFF-FFFF-FFFF-FFFF Link2 VLAN10 Spoke side
MAC1 Link2 VLAN10 Spoke side
MAC2 Link2 VLAN10 Spoke side
When Spoke ED1 receives the Ethernet message that Spoke CE1 sends, the source MAC of this Ethernet message is MAC3, target MAC (Media Access Control) address is MAC2, VLAN ID is VLAN10, Spoke ED1 does not find coupling list item according to MAC3 and VLAN10 in table 5-1, the central site in table 5-1 is transmitted with branch site and is transmitted middle increase MAC3 and list item corresponding to VLAN10, and now, table 5-1 is updated to table 6-1.Meanwhile, Spoke ED1 generates the IS-IS message that carries MAC3 and VLAN10, according to Link3, this IS-IS message is encapsulated as to EVI message and sends to Hub ED2.Spoke ED1 finds the list item of coupling in the branch site shown in table 6-1 is transmitted according to MAC2 and VLAN10, EVI-Link interface in this list item is Link3, therefore, can this Ethernet message be packaged into EVI message and send to Hub ED2 according to Link3.
Table 6-1
Target MAC (Media Access Control) address Outlet outgoing interface VLAN?ID Index
FFFF-FFFF-FFFF-FFFF Port?A VLAN10 Hub side
MAC1 Port?A VLAN10 Hub side
MAC3 Port?A VLAN10 Hub side
FFFF-FFFF-FFFF-FFFF Link3 VLAN10 Spoke side
MAC1 Link3 VLAN10 Spoke side
MAC2 Link3 VLAN10 Spoke side
MAC3 Link3 VLAN10 Spoke side
Hub ED2 receives after the EVI message that Spoke ED1 sends, and this EVI message is descapsulated into IS-IS message, transmits at the central site shown in table 4-3 the MAC3 and list item corresponding to VLAN10 that carry in transmitting this IS-IS message of middle increase with branch site.Central site after Hub ED2 upgrades is transmitted with branch site and is transmitted as table 6-2.
Table 6-2
Target MAC (Media Access Control) address Outlet outgoing interface VLAN?ID Index
FFFF-FFFF-FFFF-FFFF Link3’,Link2’ VLAN10 Hub side
MAC1 Link3’ VLAN10 Hub side
MAC2 Link2’ VLAN10 Hub side
MAC3 Link3’ VLAN10 Hub side
FFFF-FFFF-FFFF-FFFF Port?D VLAN10 Spoke side
MAC1 Port?D VLAN10 Spoke side
MAC2 Port?D VLAN10 Spoke side
MAC3 Port?D VLAN10 Spoke side
The process that Hub ED2 continues to be synchronized to Spoke ED2 by MAC3 and VLAN10 is the same, repeats no more here.
Hub ED2 receives the EVI message that Spoke ED1 sends, and this EVI message is descapsulated into Ethernet message, transmits that to carry out the operating process of encapsulate forwarded the same according to branch site, repeats no more here.
Spoke ED2 is receiving after the EVI message that Hub ED2 sends, this EVI message is descapsulated into IS-IS message, the MAC3 and list item corresponding to VLAN10 that in the branch site shown in table 5-2 is transmitted this IS-IS message of middle increase, carry, the central site after Spoke ED2 upgrades is transmitted with branch site and is transmitted as shown in table 6-3:
Table 6-3
Target MAC (Media Access Control) address Outlet outgoing interface VLAN?ID Index
FFFF-FFFF-FFFF-FFFF Port?B VLAN10 Hub side
MAC2 Port?B VLAN10 Hub side
FFFF-FFFF-FFFF-FFFF Link2 VLAN10 Spoke side
MAC1 Link2 VLAN10 Spoke side
MAC2 Link2 VLAN10 Spoke side
MAC3 Link2 VLAN10 Spoke side
After Hub ED1 fault recovery, Spoke ED1 detects EVI-Link1up, if desired primary Hub ED is switched back to Hub ED1, Spoke ED1 can be by table the Link3 of the branch site in 6-1 in transmitting be revised as Link1, now show 6-1 and revise in order to show 6-4.If do not need switchback to arrive Hub ED2, Spoke ED1 can not modify by his-and-hers watches 6-1.
The MAC Address of the clean culture in the local branch site during Spoke ED1 also can transmit central site: MAC1, MAC3 and VLAN ID:VLAN10 separately thereof are carried in IS-IS message, and according to Link1, this IS-IS message is encapsulated as to EVI message and sends to Hub ED1.Like this, Hub ED1 just can be configured to the new Spoke ED1 MAC3 learning and list item corresponding to VLAN ID thereof in table 4-2, and now, the central site after Hub ED1 upgrades is transmitted with branch site and transmitted as shown in table 6-5.
Table 6-4
Target MAC (Media Access Control) address Outlet outgoing interface VLAN?ID Index
FFFF-FFFF-FFFF-FFFF Port?A VLAN10 Hub side
MAC1 Port?A VLAN10 Hub side
MAC3 Port?A VLAN10 Hub side
FFFF-FFFF-FFFF-FFFF Link1 VLAN10 Spoke side
MAC1 Link1 VLAN10 Spoke side
MAC2 Link1 VLAN10 Spoke side
MAC3 Link1 VLAN10 Spoke side
Table 6-5
Target MAC (Media Access Control) address Outlet outgoing interface VLAN?ID Index
FFFF-FFFF-FFFF-FFFF Link1’,Link4’ VLAN10 Hub side
MAC1 Link1’ VLAN10 Hub side
MAC2 Link4’ VLAN10 Hub side
MAC3 Link1’ VLAN10 Hub side
FFFF-FFFF-FFFF-FFFF PORT?C VLAN10 Spoke side
MAC1 PORT?C VLAN10 Spoke side
MAC2 PORT?C VLAN10 Spoke side
MAC3 PORT?C VLAN10 Spoke side
Equally, Spoke ED2 detects EVI-Link4up, and if desired switchback is to Hub ED1, and the Link2 of Spoke ED2 in the branch site in table 6-3 can being transmitted is revised as Link4, now shows 6-3 and revises in order to show 6-6.If do not need switchback, Spoke ED2 can not modify by his-and-hers watches 6-3.
The MAC Address of the clean culture in the local branch site during Spoke ED2 also can transmit central site: MAC2 and VLAN ID:VLAN10 thereof are carried in IS-IS message, and according to Link4, this IS-IS message is encapsulated as to EVI message and sends to Hub ED1.
Table 6-6
Target MAC (Media Access Control) address Outlet outgoing interface VLAN?ID Index
FFFF-FFFF-FFFF-FFFF Port?B VLAN10 Hub side
MAC2 Port?B VLAN10 Hub side
FFFF-FFFF-FFFF-FFFF Link4 VLAN10 Spoke side
MAC1 Link4 VLAN10 Spoke side
MAC2 Link4 VLAN10 Spoke side
MAC3 Link4 VLAN10 Spoke side
Follow-up, Hub ED1 and Hub ED2 will carry out message repeating process according to table 6-5 and table 6-2 respectively.If desired switchback is to Hub ED1, Spoke ED1 and Spoke ED2 can carry out message repeating process according to table 6-4 and table 6-6 respectively, if do not need switchback to arrive Hub ED1, Spoke ED1 and Spoke ED2 can carry out message repeating process according to table 6-1 and table 6-3 respectively.
For the method in above-described embodiment, the application's embodiment also provides a kind of apparatus for forwarding message that can apply the method, this apparatus for forwarding message can be applied to Spoke ED, this Spoke ED is arranged in the branch site of the EVI network of Hub-Spoke framework, and central site comprises: two Hub ED, these two Hub ED form main and standby relation.
As shown in Figure 6, this apparatus for forwarding message comprises: receiver module 10, processing module 20, sending module 30 and memory module 40, wherein:
Receiver module 10, for receiving Ethernet message and EVI message;
Processing module 20, the VLAN mark and the target MAC (Media Access Control) address that are used for the Ethernet message receiving according to receiver module 10 are transmitted and are found a corresponding EVI-Link interface at branch site, wherein, an EVI-Link interface connects the EVI-Link of primary Hub ED corresponding to this ED; Also be descapsulated into Ethernet message for the EVI message that receiver module 10 is received, in central site is transmitted, find corresponding port according to VLAN mark and the target MAC (Media Access Control) address of the Ethernet message after decapsulation;
Sending module 30, Ethernet message receiver module 10 being received for the EVI-Link interface finding according to processing module 20 is encapsulated as EVI message and sends to primary Hub ED; Also send the Ethernet message after decapsulation for the port finding by processing module 20;
Memory module 40, transmits with central site and transmits for preserving branch site.
Wherein, processing module is also configured to central site for VLAN mark and the source MAC of Ethernet message that receiver module is received and the corresponding relation that receives the port of this Ethernet message and transmits; Also connect EVI-Link interface corresponding to EVI-Link of two Hub ED for obtaining this ED; Also for being configured to branch site, transmits the corresponding relation of an EVI-Link interface of the VLAN mark of the Ethernet message receiving and source MAC and two EVI-Link interfaces obtaining; Also for generating the MAC Address synchronization message of carrying VLAN mark and source MAC; Sending module is also encapsulated as the MAC Address synchronization message of generation EVI message and sends for two EVI-Link interfaces that obtain according to processing module respectively.
In addition, processing module is also descapsulated into MAC Address synchronization message for the EVI message that receiver module is received; Also connect an EVI-Link interface corresponding to EVI-Link of primary Hub ED for obtaining this ED, the corresponding relation of the VLAN mark that the MAC Address synchronization message after decapsulation is carried and MAC Address and the EVI-Link interface that obtains is configured to branch site and transmits.
Processing module is also configured to branch site and transmits for VLAN mark and broadcast MAC Address are connected to the corresponding relation of the EVI-Link interface that the EVI-Link of primary Hub ED is corresponding with this ED, by VLAN mark with broadcast MAC Address is connected the port of the Spoke CE of local branch site corresponding relation with this ED and be configured to central site and transmit.
According to a kind of embodiment of the application, in this apparatus for forwarding message, can also comprise: detection module, wherein:
Detection module connects the state of the EVI-Link of two Hub ED for detection of this ED;
Processing module is also when detecting that at detection module this ED connects the EVI-Link fault of primary Hub ED, an EVI-Link interface during branch site is transmitted is revised as the 2nd EVI-Link interface, wherein, the 2nd EVI-Link interface connects the EVI-Link of Hub ED for subsequent use corresponding to this ED; Also being configured to central site for VLAN mark and the source MAC of Ethernet message that receiver module is received and the corresponding relation that receives the port of this Ethernet message transmits; Also connect the 2nd EVI-Link interface corresponding to EVI-Link of Hub ED for subsequent use for obtaining this ED, the corresponding relation of the VLAN mark of the Ethernet message receiving and source MAC and the 2nd EVI-Link interface that obtains is configured to branch site and transmits; Also for generating the MAC Address synchronization message of carrying VLAN mark and source MAC; Also for the EVI message from Hub ED for subsequent use receiving is descapsulated into MAC Address synchronization message, obtain the 2nd EVI-Link interface corresponding to EVI-Link that this ED connects Hub ED for subsequent use, the corresponding relation of the VLAN mark that the MAC Address synchronization message after decapsulation is carried and MAC Address and the 2nd EVI-Link interface that obtains is configured to branch site and transmits; Also when detecting that at detection module EVI-Link that this ED connects primary Hub ED recovers normal, judge whether to switch back primary Hub ED from Hub ED for subsequent use, if desired switch back primary Hub ED from Hub ED for subsequent use, the 2nd EVI-Link interface in branch site being transmitted is revised as an EVI-Link interface, generates and carries the MAC Address of the clean culture in the local branch site of central site in transmitting and the MAC Address synchronization message of corresponding VLAN mark thereof;
Sending module is also encapsulated as the MAC Address synchronization message of generation EVI message and sends to Hub ED for subsequent use for the 2nd EVI-Link interface getting according to processing module; Also be encapsulated as EVI message and send to primary Hub ED for MAC Address synchronization message processing module being generated according to an EVI-Link interface.
According to the application's another kind of embodiment, receiver module, processing module and sending module also have following functions:
Receiver module, also for receiving down state notification message and recovering upstate notification message;
Processing module, also for receive the down state notification message that primary Hub ED sends at receiver module after, an EVI-Link interface during branch site is transmitted is revised as the 2nd EVI-Link interface, wherein, the 2nd EVI-Link interface connects the EVI-Link of Hub ED for subsequent use corresponding to this ED; Also being configured to central site for VLAN mark and the source MAC of Ethernet message that receiver module is received and the corresponding relation that receives the port of this Ethernet message transmits; Also connect the 2nd EVI-Link interface corresponding to EVI-Link of Hub ED for subsequent use for obtaining this ED, the corresponding relation of the VLAN mark of the Ethernet message receiving and source MAC and the 2nd EVI-Link interface that obtains is configured to branch site and transmits; Also for generating the MAC Address synchronization message of carrying VLAN mark and source MAC; Also for the EVI message from Hub ED for subsequent use receiving is descapsulated into MAC Address synchronization message, obtain the 2nd EVI-Link interface corresponding to EVI-Link that this ED connects Hub ED for subsequent use, the corresponding relation of the VLAN mark that the MAC Address synchronization message after decapsulation is carried and MAC Address and the 2nd EVI-Link interface that obtains is configured to branch site and transmits; Also for receive the recovery upstate notification message that primary Hub ED sends at receiver module after, judge whether to switch back primary Hub ED from Hub ED for subsequent use, if desired switch back primary Hub ED from Hub ED for subsequent use, the 2nd EVI-Link interface in branch site being transmitted is revised as an EVI-Link interface, generates and carries the MAC Address of the clean culture in the local branch site of central site in transmitting and the MAC Address synchronization message of corresponding VLAN mark thereof;
Sending module, is also encapsulated as the MAC Address synchronization message of generation EVI message and sends to Hub ED for subsequent use for the 2nd EVI-Link interface getting according to processing module; Also for the MAC Address synchronization message of generation being encapsulated as to EVI message and sending to primary Hub ED according to an EVI-Link interface.
For above-mentioned method, the application's embodiment also provides a kind of apparatus for forwarding message that can apply the method, this apparatus for forwarding message is applied to any in two Hub ED that form main and standby relation, two Hub ED of this formation main and standby relation are positioned at the central site of the EVI network of Hub-Spoke framework, this apparatus for forwarding message comprises: receiver module, processing module, sending module, detection module, notification module and memory module, wherein:
Receiver module, for receiving EVI message and Ethernet message;
Processing module, is descapsulated into Ethernet message for the EVI message that receiver module is received, and finds corresponding port according to VLAN mark and the target MAC (Media Access Control) address of the Ethernet message after decapsulation in branch site is transmitted; And transmit and find corresponding EVI-Link interface at central site for VLAN mark and the target MAC (Media Access Control) address of the Ethernet message received according to receiver module;
Sending module, sends the Ethernet message after decapsulation for the port finding by processing module; And the Ethernet message that the EVI-Link interface finding according to processing module is received receiver module is encapsulated as EVI message and sends the EVI message after encapsulation;
Detection module, connects the state of the EVI-Link of each Spoke ED for detection of this ED;
Notification module, for in the time that detection module detects that this ED connects the EVI-Link fault of any Spoke ED, notify other these ED of Spoke ED unavailable, in the time that detection module detects that the EVI-Link of fault recovers normal, notify other these ED of Spoke ED to recover available;
Memory module, transmits with central site and transmits for preserving branch site.
Wherein, processing module is also descapsulated into MAC Address synchronization message for the EVI message that receiver module is received, obtains EVI-Link interface corresponding to EVI-Link that this ED connects the Spoke ED that sends this EVI message; Also be configured to central site for the corresponding relation of VLAN mark that MAC Address synchronization message is carried and MAC Address and the EVI-Link interface that obtains and transmit, the VLAN mark that MAC Address synchronization message is carried is connected the port of the central user edge device Hub CE of central site with this ED corresponding relation with MAC Address is configured to branch site and transmits; Also connect EVI-Link interface corresponding to EVI-Link of the Spoke ED of other branch sites for obtaining this ED; Sending module also, for EVI-Link interface corresponding to EVI-Link of the Spoke ED of other branch sites of connection of obtaining according to processing module, heavily encapsulates MAC Address synchronization message respectively and sends the EVI message after heavily encapsulation.
Wherein, processing module is also configured to central site and transmits for VLAN mark and broadcast MAC Address are connected to the corresponding relation of the EVI-Link interface that the EVI-Link of Spoke ED of each branch site is corresponding with this ED, by VLAN mark with broadcast MAC Address is connected the port of Hub CE corresponding relation with this ED and be configured to branch site and transmit.
To sum up, the above embodiment of the application can reach following technique effect:
(1) realized the message repeating in the EVI network of Hub-spoke framework of two Hub equipment;
(2) by dispose two cover Hub equipment (comprising Hub ED and Hub CE) in the EVI of Hub-Spoke framework network, while having avoided only having a set of Hub equipment, because Hub equipment fault affects the normal forwarding of the data flow of all branch sites, the reliability and stability of Hub equipment are improved;
(3) realized the management of the data flow in EVI network, and, by having disposed two cover Hub equipment, realize the management of data flow more reliably, comprise monitoring and statistics.
The foregoing is only the application's preferred embodiment, not in order to limit the application, all within the application's spirit and principle, any amendment of making, be equal to replacement, improvement etc., within all should being included in the scope of the application's protection.

Claims (22)

1. a message forwarding method, it is characterized in that, the method is applied to the edge device Spoke ED of branch, the branch site of the virtual interconnected EVI network of Ethernet that this Spoke ED is arranged in Hub-Spoke framework, central site comprises: form two center edge equipment Hub ED of main and standby relation, described method comprises:
Described Spoke ED receives the Ethernet message from local branch site, in transmitting, branch site finds a corresponding EVI-Link interface according to VLAN mark and the target MAC (Media Access Control) address of the Ethernet message receiving, according to the EVI-Link interface finding, the described Ethernet message receiving is encapsulated as to EVI message and sends to primary Hub ED, wherein, an EVI-Link interface is corresponding to the EVI-Link of the primary Hub ED of this equipment connection;
Described Spoke ED receives the EVI message from described primary Hub ED, this EVI message is descapsulated into Ethernet message, in central site is transmitted, find corresponding port according to VLAN mark and the target MAC (Media Access Control) address of the Ethernet message after decapsulation, this Ethernet message is sent to the customer edge Spoke CE of branch of local branch site by the port finding.
2. method according to claim 1, is characterized in that, also comprises:
Described Spoke ED is configured to described central site by the VLAN mark of the Ethernet message receiving and source MAC and the corresponding relation that receives the port of this Ethernet message and transmits; Obtain EVI-Link interface corresponding to EVI-Link of two Hub ED described in this equipment connection, the corresponding relation of the EVI-Link interface in the VLAN mark of the described Ethernet message receiving and source MAC and two EVI-Link interfaces obtaining is configured to described branch site and transmits; The MAC Address synchronization message of described VLAN mark and described source MAC is carried in generation, the MAC Address synchronization message of generation is encapsulated as to EVI message and sends to described two Hub ED respectively according to two EVI-Link interfaces that obtain.
3. method according to claim 1, is characterized in that, also comprises:
Described Spoke ED receives the EVI message from primary Hub ED, and the EVI message receiving is descapsulated into MAC Address synchronization message;
Described Spoke ED obtains an EVI-Link interface corresponding to EVI-Link of the primary Hub ED of this equipment connection, and the corresponding relation of the VLAN mark that the MAC Address synchronization message after decapsulation is carried and MAC Address and the EVI-Link interface that obtains is configured to described branch site and transmits.
4. method according to claim 1, is characterized in that, also comprises:
Described Spoke ED is configured to described branch site by the corresponding relation of VLAN mark and a broadcast MAC Address EVI-Link interface corresponding with the EVI-Link of the primary Hub ED of this equipment connection and transmits; The corresponding relation of the port of the Spoke CE of VLAN mark and broadcast MAC Address and the local branch site of this equipment connection is configured to described central site to be transmitted.
5. method according to claim 3, is characterized in that, also comprises:
Described Spoke ED detects the state of the EVI-Link of two Hub ED described in this equipment connection;
In the time the EVI-Link fault of the primary Hub ED of this equipment connection being detected, an EVI-Link interface during described Spoke ED transmits described branch site is revised as the 2nd EVI-Link interface, wherein, the 2nd EVI-Link interface is corresponding to the EVI-Link of this equipment connection Hub ED for subsequent use;
Described Spoke ED is configured to described central site by the VLAN mark of the Ethernet message receiving and source MAC and the corresponding relation that receives the port of this Ethernet message and transmits; Obtain the 2nd EVI-Link interface corresponding to EVI-Link of this equipment connection Hub ED for subsequent use, the corresponding relation of the VLAN mark of the described Ethernet message receiving and source MAC and the 2nd EVI-Link interface that obtains is configured to described branch site and transmits; The MAC Address synchronization message of described VLAN mark and described source MAC is carried in generation, according to the 2nd EVI-Link interface, the MAC Address synchronization message of generation is encapsulated as to EVI message and sends to Hub ED for subsequent use;
Described Spoke ED receives the EVI message from Hub ED for subsequent use, and the EVI message receiving is descapsulated into MAC Address synchronization message; Obtain the 2nd EVI-Link interface corresponding to EVI-Link of this equipment connection Hub ED for subsequent use, the corresponding relation of the VLAN mark that the MAC Address synchronization message after decapsulation is carried and MAC Address and the 2nd EVI-Link interface that obtains is configured to described branch site and transmits.
6. method according to claim 5, is characterized in that, also comprises:
In the time that the EVI-Link that the primary Hub ED of this equipment connection detected recovers normal, judge whether to switch back primary Hub ED from Hub ED for subsequent use;
If desired switch back primary Hub ED from Hub ED for subsequent use, the two EVI-Link interface of described Spoke ED during described branch site is transmitted is revised as an EVI-Link interface;
Described Spoke ED generates and carries the MAC Address of the clean culture in the local branch site of described central site in transmitting and the MAC Address synchronization message of corresponding VLAN mark thereof, according to an EVI-Link interface, the MAC Address synchronization message of generation is encapsulated as to EVI message and sends to primary Hub ED.
7. method according to claim 1, is characterized in that, also comprises:
Described Spoke ED receives the down state notification message that primary Hub ED sends;
An EVI-Link interface during described Spoke ED transmits described branch site is revised as the 2nd EVI-Link interface, and wherein, the 2nd EVI-Link interface is corresponding to the EVI-Link of this equipment connection Hub ED for subsequent use;
Described Spoke ED is configured to described central site by the VLAN mark of the Ethernet message receiving and source MAC and the corresponding relation that receives the port of this Ethernet message and transmits; Obtain the 2nd EVI-Link interface corresponding to EVI-Link of this equipment connection Hub ED for subsequent use, the corresponding relation of the VLAN mark of the described Ethernet message receiving and source MAC and the 2nd EVI-Link interface that obtains is configured to described branch site and transmits; The MAC Address synchronization message of described VLAN mark and described source MAC is carried in generation, according to the 2nd EVI-Link interface, the MAC Address synchronization message of generation is encapsulated as to EVI message and sends to Hub ED for subsequent use;
Described Spoke ED receives the EVI message from Hub ED for subsequent use, and the EVI message receiving is descapsulated into MAC Address synchronization message; Obtain the 2nd EVI-Link interface corresponding to EVI-Link of this equipment connection Hub ED for subsequent use, the corresponding relation of the VLAN mark that the MAC Address synchronization message after decapsulation is carried and MAC Address and the 2nd EVI-Link interface that obtains is configured to described branch site and transmits.
8. method according to claim 7, is characterized in that, also comprises:
Described Spoke ED receives the recovery upstate notification message that primary Hub ED sends, and judges whether to switch back primary Hub ED from Hub ED for subsequent use;
If desired switch back primary Hub ED from Hub ED for subsequent use, the two EVI-Link interface of described Spoke ED during described branch site is transmitted is revised as an EVI-Link interface;
Described Spoke ED generates and carries the MAC Address of the clean culture in the local branch site of described central site in transmitting and the MAC Address synchronization message of corresponding VLAN mark thereof, according to an EVI-Link interface, the MAC Address synchronization message of generation is encapsulated as to EVI message and sends to primary Hub ED.
9. a message forwarding method, it is characterized in that, the method is applied to any in two center edge equipment Hub ED that form main and standby relation, the central site of the virtual interconnected EVI network of Ethernet that two Hub ED of this formation main and standby relation are positioned at Hub-Spoke framework, described method comprises:
Described Hub ED receives the EVI message from the edge device Spoke ED of branch of a branch site, the EVI message of receiving is descapsulated into Ethernet message, in branch site is transmitted, find corresponding port according to VLAN mark and the target MAC (Media Access Control) address of the Ethernet message after decapsulation, send the extremely central user edge device Hub CE of described central site of Ethernet message after decapsulation by the port finding;
Described Hub ED receives the Ethernet message that described Hub CE returns, in central site is transmitted, find corresponding EVI-Link interface according to the VLAN mark of the Ethernet message of receiving and target MAC (Media Access Control) address, according to the EVI-Link interface finding, the Ethernet message of receiving is encapsulated as to EVI message and is sent to the Spoke ED of other branch sites;
Described Hub ED detects the state of the EVI-Link of each Spoke ED of this equipment connection, in the time the EVI-Link fault of any Spoke ED of this equipment connection being detected, notify other these equipment of Spoke ED unavailable, in the time detecting that the EVI-Link of fault recovers normal, notify other these equipment of Spoke ED to recover available.
10. method according to claim 9, is characterized in that, also comprises:
Described Hub ED receives the EVI message of sending from the Spoke ED of a branch site, and the EVI message of receiving is descapsulated into MAC Address synchronization message;
Described Hub ED obtains this equipment connection and sends EVI-Link interface corresponding to EVI-Link of the Spoke ED of this EVI message; The corresponding relation of the VLAN mark that described MAC Address synchronization message is carried and MAC Address and the EVI-Link interface that obtains is configured to described central site and transmits, and the corresponding relation of the port of Hub CE is configured to described branch site and transmits described in the VLAN mark that described MAC Address synchronization message is carried and MAC Address and this equipment connection;
Described Hub ED obtains EVI-Link interface corresponding to EVI-Link of the Spoke ED of other branch sites of this equipment connection, according to EVI-Link interface corresponding to the EVI-Link of the Spoke ED of other branch sites of connection that obtain, described MAC Address synchronization message is heavily encapsulated respectively and is transmitted to the Spoke ED of other branch sites.
11. methods according to claim 9, is characterized in that, also comprise:
Described Hub ED is configured to described central site by the corresponding relation of VLAN mark and the broadcast MAC Address EVI-Link interface corresponding with the EVI-Link of the SpokeED of the each branch site of this equipment connection and transmits, by VLAN mark with broadcast described in MAC Address and this equipment connection the corresponding relation of the port of Hub CE and be configured to described branch site and transmit.
12. 1 kinds of apparatus for forwarding message, it is characterized in that, this apparatus for forwarding message is applied to the edge device SpokeED of branch, the branch site of the virtual interconnected EVI network of Ethernet that this Spoke ED is arranged in Hub-Spoke framework, central site comprises: form two center edge equipment Hub ED of main and standby relation, described apparatus for forwarding message comprises:
Receiver module, for receiving Ethernet message and EVI message;
Processing module, the VLAN mark and the target MAC (Media Access Control) address that are used for the Ethernet message receiving according to described receiver module are transmitted and are found a corresponding EVI-Link interface at branch site, wherein, an EVI-Link interface connects the EVI-Link of primary Hub ED corresponding to this ED; Also be descapsulated into Ethernet message for the EVI message that described receiver module is received, in central site is transmitted, find corresponding port according to VLAN mark and the target MAC (Media Access Control) address of the Ethernet message after decapsulation;
Sending module, the Ethernet message described receiver module being received for the EVI-Link interface finding according to described processing module is encapsulated as EVI message and sends to primary Hub ED; Also send the Ethernet message after decapsulation for the port finding by described processing module;
Memory module, transmits with described central site and transmits for preserving described branch site.
13. apparatus for forwarding message according to claim 12, is characterized in that,
Described processing module, is also configured to described central site for VLAN mark and the source MAC of Ethernet message that described receiver module is received and the corresponding relation that receives the port of this Ethernet message and transmits; Also connect EVI-Link interface corresponding to EVI-Link of described two Hub ED for obtaining this ED; Also for being configured to described branch site, transmits the corresponding relation of an EVI-Link interface of the VLAN mark of the described Ethernet message receiving and source MAC and two EVI-Link interfaces obtaining; Also for generating the MAC Address synchronization message of carrying described VLAN mark and described source MAC;
Described sending module, is also encapsulated as the MAC Address synchronization message of generation EVI message and sends for two EVI-Link interfaces that obtain according to described processing module respectively.
14. apparatus for forwarding message according to claim 12, is characterized in that,
Described processing module, is also descapsulated into MAC Address synchronization message for the EVI message that described receiver module is received; Also connect an EVI-Link interface corresponding to EVI-Link of primary Hub ED for obtaining this ED, the corresponding relation of the VLAN mark that the MAC Address synchronization message after decapsulation is carried and MAC Address and the EVI-Link interface that obtains is configured to described branch site and transmits.
15. apparatus for forwarding message according to claim 12, is characterized in that,
Described processing module, also be configured to described branch site and transmit for VLAN mark and broadcast MAC Address are connected to the corresponding relation of the EVI-Link interface that the EVI-Link of primary Hub ED is corresponding with this ED, by VLAN mark with broadcast MAC Address is connected the port of the Spoke CE of local branch site corresponding relation with this ED and be configured to described central site and transmit.
16. apparatus for forwarding message according to claim 12, is characterized in that, also comprise: detection module, wherein:
Described detection module, connects the state of the EVI-Link of described two Hub ED for detection of this ED;
Described processing module, also when detecting that at described detection module this ED connects the EVI-Link fault of primary Hub ED, an EVI-Link interface during described branch site is transmitted is revised as the 2nd EVI-Link interface, wherein, the 2nd EVI-Link interface connects the EVI-Link of Hub ED for subsequent use corresponding to this ED; Also being configured to described central site for VLAN mark and the source MAC of Ethernet message that described receiver module is received and the corresponding relation that receives the port of this Ethernet message transmits; Also connect the 2nd EVI-Link interface corresponding to EVI-Link of Hub ED for subsequent use for obtaining this ED, the corresponding relation of the VLAN mark of the described Ethernet message receiving and source MAC and the 2nd EVI-Link interface that obtains is configured to described branch site and transmits; Also for generating the MAC Address synchronization message of carrying described VLAN mark and described source MAC; Also for the EVI message from Hub ED for subsequent use receiving is descapsulated into MAC Address synchronization message, obtain the 2nd EVI-Link interface corresponding to EVI-Link that this ED connects Hub ED for subsequent use, the corresponding relation of the VLAN mark that the MAC Address synchronization message after decapsulation is carried and MAC Address and the 2nd EVI-Link interface that obtains is configured to described branch site and transmits;
Described sending module, is also encapsulated as the MAC Address synchronization message of generation EVI message and sends to Hub ED for subsequent use for the 2nd EVI-Link interface getting according to described processing module.
17. apparatus for forwarding message according to claim 16, is characterized in that,
Described processing module, also when detecting that at described detection module EVI-Link that this ED connects primary Hub ED recovers normal, judge whether to switch back primary Hub ED from Hub ED for subsequent use, if desired switch back primary Hub ED from Hub ED for subsequent use, the 2nd EVI-Link interface in described branch site being transmitted is revised as an EVI-Link interface; Also carry the MAC Address of the clean culture in the local branch site that described central site transmits and the MAC Address synchronization message of corresponding VLAN mark thereof for generating;
Described sending module, is also encapsulated as EVI message and sends to primary Hub ED for the MAC Address synchronization message described processing module being generated according to an EVI-Link interface.
18. apparatus for forwarding message according to claim 12, is characterized in that,
Described receiver module, also for receiving down state notification message;
Described processing module, also for receive the down state notification message that primary Hub ED sends at described receiver module after, an EVI-Link interface during described branch site is transmitted is revised as the 2nd EVI-Link interface, wherein, the 2nd EVI-Link interface connects the EVI-Link of Hub ED for subsequent use corresponding to this ED; Also being configured to described central site for VLAN mark and the source MAC of Ethernet message that described receiver module is received and the corresponding relation that receives the port of this Ethernet message transmits; Also connect the 2nd EVI-Link interface corresponding to EVI-Link of Hub ED for subsequent use for obtaining this ED, the corresponding relation of the VLAN mark of the described Ethernet message receiving and source MAC and the 2nd EVI-Link interface that obtains is configured to described branch site and transmits; Also for generating the MAC Address synchronization message of carrying described VLAN mark and described source MAC; Also for the EVI message from Hub ED for subsequent use receiving is descapsulated into MAC Address synchronization message, obtain the 2nd EVI-Link interface corresponding to EVI-Link that this ED connects Hub ED for subsequent use, the corresponding relation of the VLAN mark that the MAC Address synchronization message after decapsulation is carried and MAC Address and the 2nd EVI-Link interface that obtains is configured to described branch site and transmits;
Described sending module, is also encapsulated as the MAC Address synchronization message of generation EVI message and sends to Hub ED for subsequent use for the 2nd EVI-Link interface getting according to described processing module.
19. apparatus for forwarding message according to claim 18, is characterized in that,
Described receiver module, also recovers upstate notification message for receiving;
Described processing module, also for receive the recovery upstate notification message that primary Hub ED sends at described receiver module after, judge whether to switch back primary Hub ED from Hub ED for subsequent use, if desired switch back primary Hub ED from HubED for subsequent use, the 2nd EVI-Link interface in described branch site being transmitted is revised as an EVI-Link interface; Also carry the MAC Address of the clean culture in the local branch site that described central site transmits and the MAC Address synchronization message of corresponding VLAN mark thereof for generating;
Described sending module, also for being encapsulated as the MAC Address synchronization message of generation EVI message and sending to primary Hub ED according to an EVI-Link interface.
20. 1 kinds of apparatus for forwarding message, it is characterized in that, this apparatus for forwarding message is applied to any in two center edge equipment Hub ED that form main and standby relation, the central site of the virtual interconnected EVI network of Ethernet that two Hub ED of this formation main and standby relation are positioned at Hub-Spoke framework, described apparatus for forwarding message comprises:
Receiver module, for receiving EVI message and Ethernet message;
Processing module, is descapsulated into Ethernet message for the EVI message that described receiver module is received, and finds corresponding port according to VLAN mark and the target MAC (Media Access Control) address of the Ethernet message after decapsulation in branch site is transmitted; And transmit and find corresponding EVI-Link interface at central site for VLAN mark and the target MAC (Media Access Control) address of the Ethernet message received according to described receiver module;
Sending module, sends the Ethernet message after decapsulation for the port finding by described processing module; And the Ethernet message that the EVI-Link interface finding according to described processing module is received described receiver module is encapsulated as EVI message and sends the EVI message after encapsulation;
Detection module, connects the state of the EVI-Link of each Spoke ED for detection of this ED;
Notification module, for in the time that described detection module detects that this ED connects the EVI-Link fault of any Spoke ED, notify other these ED of Spoke ED unavailable, in the time that described detection module detects that the EVI-Link of fault recovers normal, notify other these ED of Spoke ED to recover available;
Memory module, transmits with central site and transmits for preserving branch site.
21. devices according to claim 20, is characterized in that,
Described processing module, is also descapsulated into MAC Address synchronization message for the EVI message that described receiver module is received, obtains EVI-Link interface corresponding to EVI-Link that this ED connects the Spoke ED that sends this EVI message; Also be configured to described central site for the corresponding relation of VLAN mark that described MAC Address synchronization message is carried and MAC Address and the EVI-Link interface that obtains and transmit, the VLAN mark that described MAC Address synchronization message is carried is connected the port of the central user edge device Hub CE of described central site with this ED corresponding relation with MAC Address is configured to described branch site and transmits; Also connect EVI-Link interface corresponding to EVI-Link of the Spoke ED of other branch sites for obtaining this ED;
Described sending module, also, for EVI-Link interface corresponding to EVI-Link of the Spoke ED of other branch sites of connection of obtaining according to described processing module, heavily encapsulates described MAC Address synchronization message respectively and sends the EVI message after heavily encapsulation.
22. devices according to claim 20, is characterized in that,
Described processing module, also be configured to described central site and transmit for VLAN mark and broadcast MAC Address are connected to the corresponding relation of the EVI-Link interface that the EVI-Link of Spoke ED of each branch site is corresponding with this ED, by VLAN mark with broadcast MAC Address is connected the port of described Hub CE corresponding relation with this ED and be configured to described branch site and transmit.
CN201310065280.XA 2013-03-01 2013-03-01 Message forwarding method and device Active CN104022954B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310065280.XA CN104022954B (en) 2013-03-01 2013-03-01 Message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310065280.XA CN104022954B (en) 2013-03-01 2013-03-01 Message forwarding method and device

Publications (2)

Publication Number Publication Date
CN104022954A true CN104022954A (en) 2014-09-03
CN104022954B CN104022954B (en) 2017-05-10

Family

ID=51439529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310065280.XA Active CN104022954B (en) 2013-03-01 2013-03-01 Message forwarding method and device

Country Status (1)

Country Link
CN (1) CN104022954B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109587064A (en) * 2019-01-09 2019-04-05 中国铁路总公司 A kind of IPv4/IPv6 address management system and method
CN114006788A (en) * 2020-11-30 2022-02-01 易识科技(广东)有限责任公司 Control method and system for establishing bidirectional tunnel
CN114844830A (en) * 2022-07-05 2022-08-02 南凌科技股份有限公司 SD-WAN-based site traffic forwarding method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104532A (en) * 2009-12-22 2011-06-22 杭州华三通信技术有限公司 Fault switching method and system and hub provider edge (Hub PE) router
CN102316030A (en) * 2011-09-01 2012-01-11 杭州华三通信技术有限公司 Method for realizing two-layer internetworking of data center and device
CN102571610A (en) * 2012-03-02 2012-07-11 杭州华三通信技术有限公司 Packet forwarding method and edge equipment
CN102932254A (en) * 2012-11-19 2013-02-13 杭州华三通信技术有限公司 Message forwarding method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104532A (en) * 2009-12-22 2011-06-22 杭州华三通信技术有限公司 Fault switching method and system and hub provider edge (Hub PE) router
CN102316030A (en) * 2011-09-01 2012-01-11 杭州华三通信技术有限公司 Method for realizing two-layer internetworking of data center and device
CN102571610A (en) * 2012-03-02 2012-07-11 杭州华三通信技术有限公司 Packet forwarding method and edge equipment
CN102932254A (en) * 2012-11-19 2013-02-13 杭州华三通信技术有限公司 Message forwarding method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109587064A (en) * 2019-01-09 2019-04-05 中国铁路总公司 A kind of IPv4/IPv6 address management system and method
CN109587064B (en) * 2019-01-09 2021-03-16 中国铁路总公司 IPv4/IPv6 address management system and method
CN114006788A (en) * 2020-11-30 2022-02-01 易识科技(广东)有限责任公司 Control method and system for establishing bidirectional tunnel
CN114844830A (en) * 2022-07-05 2022-08-02 南凌科技股份有限公司 SD-WAN-based site traffic forwarding method, device and storage medium

Also Published As

Publication number Publication date
CN104022954B (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN102932254B (en) Message forwarding method and device
CN103685022B (en) Message forwarding method and service provider network edge equipment
CN104009926B (en) Multicast method in EVI network and edge device ED
CN107819677B (en) Message forwarding method and device
CN104378297B (en) A kind of message forwarding method and equipment
CN102035729B (en) Multicast data forwarding method
CN103795631B (en) Deploy the flow forwarding method and equipment in the network of Ethernet virtual link
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
CN102932499B (en) Method and device for learning media access control (MAC) addresses in virtual private lan service (VPLS) networks
CN103546374A (en) Message forwarding method and device in two-layered edge network
CN102413061A (en) Message transmission method and equipment
CN104378296A (en) Message forwarding method and device
CN103078800B (en) Mac address information control method in EVI network and edge device
CN103139075B (en) A kind of message transmitting method and equipment
CN105187311B (en) A kind of message forwarding method and device
CN103731349A (en) Method for conducting Ethernet virtualized message transmission between interconnection neighbors and edge device
US10757066B2 (en) Active-active access to transparent interconnection of lots of links (TRILL) edges
CN104009919A (en) Message forwarding method and device
CN103685007B (en) A kind of mac learning method when edge device message forwards and edge device
CN103780470A (en) IS-IS information synchronization method and device
CN102355402B (en) Method, system and router for establishing LSP (Label Switched Path) based on VPN (Virtual Private Network) route
CN104022954A (en) Message forwarding method and device
CN102857435B (en) Method and device for forwarding three-layer data flow in data center site
US9548887B2 (en) Proactive creation of multicast state in an overlay transport network to achieve fast convergence on failover

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

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

Applicant after: Xinhua three Technology 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

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant