CN104378297B - A kind of message forwarding method and equipment - Google Patents

A kind of message forwarding method and equipment Download PDF

Info

Publication number
CN104378297B
CN104378297B CN201310357517.1A CN201310357517A CN104378297B CN 104378297 B CN104378297 B CN 104378297B CN 201310357517 A CN201310357517 A CN 201310357517A CN 104378297 B CN104378297 B CN 104378297B
Authority
CN
China
Prior art keywords
address
mac address
gateway node
vlan
double layer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310357517.1A
Other languages
Chinese (zh)
Other versions
CN104378297A (en
Inventor
宋玉兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201310357517.1A priority Critical patent/CN104378297B/en
Publication of CN104378297A publication Critical patent/CN104378297A/en
Application granted granted Critical
Publication of CN104378297B publication Critical patent/CN104378297B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of message forwarding method and equipment, gateway node by one up to all node devices in big double layer network broadcast tree, notice this node device configuration virtual MAC address and affiliated VLAN;After non-gateway node device receives virtual MAC address and the affiliated VLAN of the gateway node configuration that each gateway node is noticed by broadcasting tree, the first mac address forwarding table item corresponding to generation;When non-gateway node receives the data message for the virtual MAC address that target MAC (Media Access Control) address is gateway node, according to matching list item of the target MAC (Media Access Control) address in the first mac address forwarding table item, directly forward the data message and without big double layer network protocol encapsulation;Gateway node receives the data message, and when to determine the target MAC (Media Access Control) address of the data message be itself virtual MAC address, according to the purpose IP address of the data message, search routing table and forward the data message.In the present invention, the L3 unicast traffics forwarding based on big double layer network is realized.

Description

A kind of message forwarding method and equipment
Technical field
The present invention relates to the multicasting technology of the communications field, more particularly to a kind of message forwarding method and equipment.
Background technology
STP is used in three traditional layer data center frameworks(Spanning Tree Protocol, Spanning-Tree Protocol)Come Optimize client to the path of server and support connection redundancy.The reasons such as the constringency performance due to STP, generally STP Not over 100 interchangers of network size.Simultaneously because STP needs to block redundance unit and link, network is also reduced Resource bandwidth utilization rate.It is traditional that data center's scale, bandwidth can not have been met based on STP alternate devices and link scheme Demand, and several seconds convergence time after malfunction occurred to a few minutes of STP protocol, the reliability requirement of data center can not be met.Cause This, it is desirable to be able to there is new technology, while double layer network scale is met, can also make full use of redundance unit and link, Link utilization is lifted, and the convergence time after malfunction occurred of data center can be reduced to submicrosecond even Millisecond.
Virtualization can effectively improve the utilization rate of server, reduce energy resource consumption, reduce the O&M cost of client, institute Great development has been obtained with virtualization technology.The raising for being not only server utilization brought to data center is virtualized, The also change of the network architecture.Virtual machine(Virtual Machine, VM)Migrating technology can make the computing resource of data center Flexibly allocated, further improve the utilization rate of resources of virtual machine.But before and after virtual machine (vm) migration requirement virtual machine (vm) migration IP and MAC(Media Access Control, medium access control)Address is constant, and this is just needed before and after virtual machine (vm) migration Network is in inside same two layers of domain.Because the scope of customer requirement virtual machine (vm) migration is increasing, even across difference Migration between region, different computer rooms, so that the scope of data center's double layer network is increasing, or even there are big rule Mould double layer network(Hereinafter referred to as big double layer network)This frontier special topic.
Tunneling technique can realize big two layers of net in the data center for covering multiple access switch and core switch Network.The Typical Representative of tunneling technique is TRILL(TRansparent Interconnection of Lots of Links are more Link transparency interconnects)And SPB(Shortest Path Bridging, shortest path bridge)Technology, both of which are to pass through borrow IS-IS(Intermediate System to Intermediate System, Intermediate System-to-Intermediate System)Routing Protocol Calculating and forward mode, realize the extensive extension of double layer network.These technologies currently in standardisation process, pass simultaneously System interchanger not only needs software upgrading, it is also necessary to hardware supported.
In existing big two layers of networking technology, three layers of forwarding for the travelling across VLAN under big two layers of environment are not also relatively good Solution, limit the actual deployment of big two layers of networking.
By taking Trill networkings as an example, soon, supporting chip is still immature for the related RFC of current Trill standards just issues, After related chip has handled Trill in a pipeline, L3 forwardings cannot be done again;, cannot after having performed L3 forwardings Trill processing is done again.
For the problem, there is the following two kinds settling mode in the prior art:
Mode one, using agency forward
Trill boards receive Trill messages, after completing Trill terminations, if desired do L3 forwardings, are then sent to message L3 agency boards carry out processing forward;
After L3 agency boards complete normal L3 agencies forwarding, if there is receiver external, message is sent to outer net;If There is recipient in Trill domains, message needs to be forwarded to the Special back collar extension of Trill boards again(Loopback ports), message Trill encapsulation is completed after winding mouth winding, Trill unicast tables are searched according to the Trill messages after encapsulation, sent out from corresponding port Trill networks are given, its handling process schematic diagram may refer to Fig. 1.
Mode two, Trill/L3 separating treatments
Trill is overseas to increase by one layer of special equipment to perform the function of L3 forwardings.Trill destination node saves in core Point, more than core nodes use the native ether network packet without encapsulation to forward, be up at L3 equipment and carry out at L3 forwardings Reason.
In addition, in existing big double layer network technology, forward, the gateway backup protocol that presently, there are, exist intrinsic for L3 The problem of sharing inequality.For large-scale cloud computation data center(Core nodes are more than 4), inside data center across When VLAN L3 flows are larger, forwarding bottleneck can be formed.
For the problem, in the prior art, for control plane, by establishing backup group, and a master is elected, All ARP requests of client can only all be responded by master, and master is different according to certain Load Sharing Algorithm ARP request responds different gateway A RP information, and the ARP that so different main frames obtains responds different.
For datum plane, the message that different main frames encapsulate has been sent to different gateways because gateway A RP is different, So as to realize that different main frame flows are shared what different L3 gateways went out.
During the present invention is realized, inventor has found problems with the prior art at least be present:
For in the settling mode of three layers of forwarding problems of the travelling across VLAN under existing big two layers of environment, mode one needs to concentrate Formula processing, poor-performing, and proxy configurations are complicated, it is necessary to special acts on behalf of board or winding port, cause the wasting of resources;Mode Extra L3 equipment is needed in two, the increase of equipment level, adds cost, meanwhile, the chain among Trill destination nodes and L3 gateways There is many loops, it is necessary to consider that loop avoids technology in road, and the performance of L3 forward process or relatively low.
In the settling mode that uneven problem is shared for existing gateway backup protocol, sent not for same client Same data flow, it can not be shared between different L3 gateways, cause to share inequality.
The content of the invention
The embodiment of the present invention provides a kind of message forwarding method and equipment, to realize L3 unicast streams in big double layer network Amount forwarding.
In order to reach object above, the embodiments of the invention provide a kind of message forwarding method, is set applied to multiple nodes In the standby big double layer network set up based on big double layer network agreement, the multiple node device includes the gateway as gateway device Node and the non-gateway node as access device, same VLAN each gateway node are configured with identical virtual IP address and void MAC Address, this method include:
Non-gateway node by one up to all node devices in the big double layer network broadcast tree, receive each net The virtual MAC address of the gateway node configuration of artis notice and affiliated vlan information;
Non-gateway node each gateway node according to corresponding to big double layer network agreement and the same virtual MAC address received Big double layer network mark, calculate the singlecast router for each gateway node for going to same VLAN, and then generate the virtual MAC address Corresponding first mac address forwarding table item, wherein, the VLAN in the first mac address forwarding table item is the virtual MAC institute Category VLAN, target MAC (Media Access Control) address are the virtual MAC address, outgoing interface is in the singlecast router corresponding to the route of Least-cost Outgoing interface;
When non-gateway node receives the data message for the virtual MAC address that target MAC (Media Access Control) address is a gateway node, according to this The target MAC (Media Access Control) address of data message, searches the first mac address forwarding table item of matching, and according to the matching list item found, directly Switch through and send out data message described and without big double layer network protocol encapsulation.
Wherein, this method also includes:
During link down between non-gateway node and gateway node, non-gateway node is according to the topology after renewal, weight The new singlecast router for calculating each gateway node for going to same VLAN, and update the singlecast router for recalculating to obtain, renewal the The outgoing interface of one mac address forwarding table item;
When gateway node delays machine, the first MAC corresponding to the virtual MAC address of non-gateway node updates gateway node configuration The outgoing interface of address repeat listing.
The embodiment of the present invention additionally provides a kind of message forwarding method, and big double layer network is based on applied to multiple node devices In the big double layer network that agreement is set up, the multiple node device includes setting as the gateway node of gateway node and as access Standby non-gateway node, same VLAN each gateway node are configured with identical virtual IP address and virtual MAC address, this method bag Include:
Gateway node by one up to all node devices in the big double layer network broadcast tree, notice this node and set The virtual MAC address of standby configuration and affiliated vlan information, so that non-gateway node device is according to big double layer network agreement and reception The big double layer network mark of each gateway node corresponding to the same virtual MAC address arrived, calculates each gateway for going to same VLAN The singlecast router of node, and then the first mac address forwarding table item corresponding to the virtual MAC address is generated, wherein, described first VLAN in mac address forwarding table item is the affiliated VLAN of the virtual MAC, target MAC (Media Access Control) address is the virtual MAC address, outgoing interface For outgoing interface corresponding to the route of Least-cost in the singlecast router;
Gateway node receives the data message that target MAC (Media Access Control) address is itself virtual MAC address, and the data message is non-net Artis is matched directly forwarding after the first mac address forwarding table item and not entered according to the target MAC (Media Access Control) address of message The big double layer network protocol encapsulation of row;
The gateway node is when it is itself virtual MAC address to judge the target MAC (Media Access Control) address of the data message, according to institute The purpose IP address of data message is stated, routing table is searched and forwards the data message.
Wherein, this method also includes:
Each node device is set by the broadcast, and the new local mac address learnt and affiliated VLAN are advertised to Other node devices, the local mac address include the MAC Address learnt from the user network side of this node device connection;
Gateway node from it is described broadcast tree on receive other node devices notice described in other node devices newly study to Local mac address and affiliated VLAN, and according to be in advance based on the big double layer network protocol generation big double layer network forward List item, the second mac address forwarding table item corresponding to the local mac address of generation other node devices, the 2nd MAC Target MAC (Media Access Control) address in the forwarding-table item of location is the local mac address of other node devices, and outgoing interface is big two layers of net The outgoing interface of other nodes is gone in network forwarding-table item;
The gateway node receives the unicast that target MAC (Media Access Control) address is not itself port mac address or the virtual MAC address After data message, according to the target MAC (Media Access Control) address of the unicast data message and affiliated VLAN, forwarded in second MAC Address Matched in list item, and the unicast data message is directly forwarded and without big two layers of net by matching the outgoing interface of list item Network protocol encapsulation.
Wherein, the gateway node is also connected with the routing device outside the big double layer network;
VLAN broadcast domain scope is set on each node device, wherein, the broadcast domain scope is set including the node Allow the user-side port that the VLAN passes through and the big double layer network cut positioned at the VLAN on tree on the node device on standby Side interface, the cutting tree are obtained based on the VLAN beta prunings for being distributed tree to the broadcast tree;
Gateway node searches the mesh for matching the data message when receiving the data message that the routing device is sent IP address ARP, and according to the target MAC (Media Access Control) address and outgoing interface of the ARP found, directly forward the number According to message without big double layer network protocol encapsulation.
Wherein, if gateway node does not find the ARP for the purpose IP address for matching the data message, the side Method also includes:
Corresponding to the data message in VLAN broadcast domain, direct broadcast transmission is used to asking described the gateway node First ARP request message of MAC Address corresponding to the purpose IP address of data message and without big double layer network protocol encapsulation, The transmitting terminal sender IP address of the first ARP request message is the sending port IP address of the gateway node, source MAC Address and transmitting terminal MAC Address are the sending port MAC Address of the gateway node;
The gateway node is according to the first arp reply message for the first ARP request message received, described in foundation ARP corresponding to the purpose IP address of data message, and according to the ARP of the foundation, forward the data message without Carry out big double layer network protocol encapsulation.
Wherein, a gateway node in same VLAN is elected as the major network artis of the VLAN, and this method also includes:
Gateway node receives the second ARP request message for being used to ask the MAC Address of gateway node of main frame transmission, and Determine itself to be when corresponding to VLAN major network artis, to generate the second arp reply message, the purpose of the second arp reply message MAC Address is the MAC Address of the main frame, and source MAC and transmitting terminal sender MAC Address are the gateway node Virtual MAC address, sender IP address is the virtual IP address of the gateway node, so that the main frame learns and establishes the net Incidence relation between the virtual IP address of artis and virtual MAC address;
The gateway node is according to the target MAC (Media Access Control) address of the arp reply message, in the second mac address forwarding table item Matched, and the arp reply message is directly forwarded and without big double layer network agreement by matching the outgoing interface of list item Encapsulation.
Wherein, the election of the major network artis includes:
Each gateway node in same VLAN is broadcasted with carrying respective port IP address, port mac in the VLAN The neighbours of location, empty IP and virtual MAC address find and major network artis voting protocol message;
Each gateway node in same VLAN receives the protocol massages of other gateway nodes transmission, elects Port IP Address and/or port mac address meet the gateway node of preset rules, as the major network artis.
Wherein, in addition to:
During link down between non-gateway node and gateway node, gateway node renewal reaches the non-gateway node The outgoing interface of the ARP of lower All hosts;
When non-gateway node delays machine down, gateway node deletes the ARP of the All hosts under the non-gateway node List item;
During major network artis down in VLAN, other gateway nodes re-elect the primary gateway in the VLAN in the VLAN Node;
Gateway node is when finding that outside router is unreachable, VLAN major network artis where exiting this gateway node Election, major network artis is re-elected to trigger other gateway nodes, disables itself three all layer interface, and by described wide The revocation message of tree notice virtual MAC address is broadcast, to cause non-gateway node device to update described the corresponding to the virtual MAC address The outgoing interface of one mac address forwarding table item.
The embodiment of the present invention also provides a kind of network equipment, and big double layer network protocol groups are based on applied to multiple node devices In the big double layer network built, the multiple node device is included as the gateway node of gateway device and as the non-of access device Gateway node, same VLAN each gateway node are configured with identical virtual IP address and virtual MAC address, the network equipment conduct Non-gateway node is applied in the big double layer network, and the network equipment includes:
Address management module, for by one up to all node devices in the big double layer network broadcast tree, connect Receive the virtual MAC address of the gateway node configuration of each gateway node notice and affiliated vlan information;
List item maintenance module, for the same void received according to big double layer network agreement and the address management module The big double layer network mark of each gateway node corresponding to MAC Address, calculates the unicast for each gateway node for going to same VLAN Route, and then the first mac address forwarding table item corresponding to the virtual MAC address is generated, wherein, the first MAC Address forwarding VLAN in list item is the affiliated VLAN of the virtual MAC, target MAC (Media Access Control) address is the virtual MAC address, outgoing interface is the unicast road The outgoing interface as corresponding to the route of middle Least-cost;
Packet forwarding module, for receiving the virtual MAC that target MAC (Media Access Control) address is a gateway node when the network equipment During the data message of location, according to the target MAC (Media Access Control) address of the data message, the first mac address forwarding table item of matching, and root are searched It is investigated that the matching list item found, directly forwards the data message and without big double layer network protocol encapsulation.
Wherein, the list item maintenance module is additionally operable to,
During link down between the network equipment and gateway node, according to the topology after renewal, recalculate Toward the singlecast router of same VLAN each gateway node, and the singlecast router for recalculating to obtain is updated, update the first MAC Address The outgoing interface of forwarding-table item;
When gateway node delays machine, the first mac address forwarding table corresponding to the virtual MAC address of gateway node configuration is updated The outgoing interface of item.
The embodiment of the present invention additionally provides a kind of network equipment, and big double layer network agreement is based on applied to multiple node devices In the big double layer network set up, the multiple node device is included as the gateway node of gateway device and as access device Non-gateway node, same VLAN each gateway node are configured with identical virtual IP address and virtual MAC address, and the network equipment is made It is applied to for gateway node in the big double layer network, the network equipment includes:
Address management module, for by one up to all node devices in the big double layer network broadcast tree, lead to The virtual MAC address of this node device configuration and affiliated vlan information are accused, so that non-gateway node device is according to big double layer network The big double layer network mark of each gateway node corresponding to agreement and the same virtual MAC address received, calculating is gone to same The singlecast router of VLAN each gateway node, and then the first mac address forwarding table item corresponding to the virtual MAC address is generated, its In, the VLAN in the first mac address forwarding table item is the affiliated VLAN of the virtual MAC, target MAC (Media Access Control) address is the virtual MAC Address, outgoing interface are outgoing interface corresponding to the route of Least-cost in the singlecast router;
Packet forwarding module, for receiving the data that target MAC (Media Access Control) address is itself virtual MAC address when the network equipment Message, and when to judge the target MAC (Media Access Control) address of the data message be itself virtual MAC address, according to the mesh of the data message IP address, search routing table and forward the data message;Wherein, the data message is non-gateway node according to message Target MAC (Media Access Control) address, match directly forwarding after the first mac address forwarding table item and without carrying out big double layer network agreement envelope Dress.
Wherein, the network equipment also includes:List item maintenance module;
The address management module is additionally operable to, and other sections described in the notice of other node devices are received from the broadcast tree The local mac address and affiliated VLAN that point device newly learns;The local mac address is included from other described node devices The MAC Address that the user network side of connection learns;
List item maintenance module, for according to the big double layer network forward table for being in advance based on the big double layer network protocol generation , generate the second mac address forwarding table item corresponding to the local mac address of other node devices, second MAC Address Target MAC (Media Access Control) address in forwarding-table item is the local mac address of other node devices, and outgoing interface is the big double layer network The outgoing interface of other node devices is gone in forwarding-table item;
The packet forwarding module is additionally operable to, and is not itself port mac when the network equipment receives target MAC (Media Access Control) address After the unicast data message of address or the virtual MAC address, according to the target MAC (Media Access Control) address of the unicast data message and affiliated VLAN, matched in the second mac address forwarding table item, and the outgoing interface by matching list item directly forwards the list Multicast data message and without big double layer network protocol encapsulation.
Wherein, the network equipment is also connected with the routing device outside the big double layer network;
VLAN broadcast domain scope is provided with the big double layer network on each node device, wherein, the broadcast domain model Enclose including allowing the user-side port that the VLAN passes through to cut tree positioned at the VLAN with the node device on the node device On big double layer network side interface, it is described that to cut tree be to be distributed what the beta pruning of tree obtained to the broadcast tree based on VLAN;
The packet forwarding module is additionally operable to, and when receiving the data message that the routing device is sent, searches matching The ARP of the purpose IP address of the data message, and according to the target MAC (Media Access Control) address of the ARP found and go out to connect Mouthful, directly forward the data message and without big double layer network protocol encapsulation.
Wherein, the packet forwarding module is additionally operable to, if not finding the purpose IP addresses for matching the data message ARP, corresponding to the data message in VLAN broadcast domain, direct broadcast transmission is used for the mesh for asking the data message IP address corresponding to MAC Address the first ARP request message and without big double layer network protocol encapsulation, the first ARP The transmitting terminal sender IP address of request message is the sending port IP address of the network equipment, source MAC and transmitting terminal MAC Address is the sending port MAC Address of the network equipment;
The list item maintenance module is additionally operable to, and is received when the network equipment receives basis for the first ARP request During the first arp reply message of message, ARP corresponding to the purpose IP address of the data message is established;
The packet forwarding module is additionally operable to, and the ARP established according to the list item maintenance module, forwards the data Message and without big double layer network protocol encapsulation.
Wherein, a gateway node in same VLAN is elected as the major network artis of the VLAN,
The packet forwarding module is additionally operable to, when the MAC Address for being used to ask gateway node for receiving main frame transmission Second ARP request message, and determine that the network equipment is when corresponding to VLAN major network artis, to generate the second arp reply report Text, the target MAC (Media Access Control) address of the second arp reply message are the MAC Address of the main frame, source MAC and transmitting terminal sender MAC Address is the virtual MAC address of the network equipment, and sender IP address is the virtual IP address of the network equipment, so that The incidence relation that the main frame learns and established between the virtual IP address of the network equipment and virtual MAC address;According to the ARP The target MAC (Media Access Control) address of response message, matched in the second mac address forwarding table item, and by matching the outgoing interface of list item Directly forward the arp reply message and without big double layer network protocol encapsulation.
Wherein, the network equipment also includes:
Module is elected, itself port of the network equipment is carried for being broadcasted in the VLAN belonging to the network equipment IP address, port mac address, empty IP and the neighbours of virtual MAC address find and major network artis voting protocol message;Described in reception The protocol massages that other gateway nodes are sent in VLAN, port IP address and/or port mac address is elected to meet default rule Gateway node then, as the major network artis.
Wherein, the list item maintenance module is additionally operable to, the link down between non-gateway node and the network equipment When, renewal reaches the outgoing interface of the ARP of All hosts under the non-gateway node;Delayed machine down in non-gateway node When, delete the ARPs of the All hosts under the non-gateway node;
The address management module is additionally operable to, and when the network equipment finds that outside router is unreachable, disables itself Three all layer interfaces, and by the revocation message of the broadcast tree notice virtual MAC address, to cause non-gateway node device more The outgoing interface of the first mac address forwarding table item corresponding to the new virtual MAC address;
The election module is additionally operable to, and when the network equipment finds that outside router is unreachable, exits Home Network joint The election of VLAN major network artis, major network artis is re-elected to trigger other gateway nodes where point.
In the above embodiment of the present invention, gateway node by one up to all node devices in big double layer network broadcast Tree, notice the virtual MAC address of this node device configuration and affiliated VLAN;Non-gateway node device is received by the broadcast tree After the virtual MAC address of the gateway node configuration of each gateway node notice and affiliated VLAN, according to big double layer network agreement With the same virtual MAC address that receives corresponding to each gateway node big double layer network mark, calculating goes to same VLAN's The singlecast router of each gateway node, and then generate the first mac address forwarding table item corresponding to the virtual MAC address;When non-gateway section Point receive data message, and determine the data message target MAC (Media Access Control) address be gateway node virtual MAC address when, the non-net Artis is according to the target MAC (Media Access Control) address of the data message, the list item of match query in the first mac address forwarding table, and according to The matching list item inquired, forward the data message and without big double layer network protocol encapsulation;Gateway node receives the number According to message, and when to determine the target MAC (Media Access Control) address of the data message be itself virtual MAC address, gateway node is according to the data message Purpose IP address, search routing table forward the data message, realize based on big double layer network L3 unicast traffics forwarding.
Brief description of the drawings
Fig. 1 is that a kind of use acts on behalf of the side that forwarding solution L3 forwardings are unable to coexistence problems with Trill processing in the prior art The schematic diagram of formula;
Fig. 2 is the schematic diagram of VLAN broadcast domains in a kind of Trill networkings provided in an embodiment of the present invention;
Fig. 3 is a kind of configuration diagram of Trill networkings provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic flow sheet of three layers of unicast message retransmission method provided in an embodiment of the present invention;
Fig. 5~8 are Trill networkings internal fault schematic diagram of a scenario provided in an embodiment of the present invention;
Fig. 9 is a kind of structural representation of the network equipment provided in an embodiment of the present invention;
Figure 10 is the structural representation of another network equipment provided in an embodiment of the present invention.
Embodiment
The embodiments of the invention provide a kind of technical scheme of message forwarding, is based on applied to multiple node devices big two layers In the big double layer network that procotol is set up, the plurality of node device is included as the gateway node of gateway node and as access The non-gateway node of equipment, same VLAN each gateway node are equipped with three layers of the VLAN(L3)Interface, same VLAN's Three layer interfaces of each gateway node have mutually different IP address and MAC Address, i.e., real IP address and real MAC Address.This hair In bright embodiment, for three layer interface of same VLAN each gateway node, with also configuring identical virtual IP address and virtual MAC Location, i.e., the different gateway nodes under same VLAN, has identical virtual IP address and virtual MAC address.
In the embodiment of the present invention, gateway node can by one up to all node devices in big double layer network broadcast Tree, notice the virtual MAC address of this node device configuration and affiliated VLAN.Here, the virtual MAC address of notice is three layers(L3)Connect Virtual MAC address corresponding to mouth virtual IP address.
Non-gateway node device receives the void for the gateway node configuration that each gateway node is noticed by the broadcast tree , can be each according to corresponding to big double layer network agreement and the same virtual MAC address received after MAC Address and affiliated VLAN The big double layer network mark of gateway node, calculates the singlecast router for each gateway node for going to same VLAN, and then generate the void Mac address forwarding table item corresponding to MAC Address(Hereinafter referred to as the first mac address forwarding table item), wherein, first MAC Address VLAN in forwarding-table item is the affiliated VLAN of the MAC Address, and target MAC (Media Access Control) address is the virtual MAC address, outgoing interface is the unicast Outgoing interface corresponding to the route of Least-cost in route;
When non-gateway node receives data message, and determine that the target MAC (Media Access Control) address of the data message is gateway node During virtual MAC address, the non-gateway node can be according to the target MAC (Media Access Control) address of the data message, in the first mac address forwarding table The list item of match query, and according to the matching list item inquired, directly forward the data message and assisted without big double layer network View encapsulation;
Gateway node receives the data message, and determines that the target MAC (Media Access Control) address of the data message is itself virtual MAC address When, gateway node searches routing table and forwards the data message according to the purpose IP address of the data message.
Wherein, when non-gateway node according to corresponding to big double layer network agreement and the same virtual MAC address that receives it is each The big double layer network of gateway node identifies, and a plurality of cost be present in the singlecast router for going to same VLAN being calculated(cost) During minimum route, then need to form equal-cost route, correspondingly, the corresponding to the virtual MAC address of non-gateway node generation Outgoing interface in one mac address forwarding table item is the aggregation port that outgoing interface corresponding to each route is formed in the equal-cost route.
Correspondingly, non-gateway node is when forwarding the data message that target MAC (Media Access Control) address is above-mentioned virtual MAC address, due to root The outgoing interface of first mac address forwarding table item of the matching arrived according to the virtual MAC address search is aggregation port, and non-gateway node can To pass through hash(Hash)Algorithm selects outgoing interface of a port as the data message forwarding from the aggregation port.
In embodiments of the present invention, each node device is also needed to by above-mentioned broadcast tree, by the new local mac learnt Address and affiliated VLAN are advertised to other node devices, and the local mac address includes the user network from the connection of this node device The MAC Address that network side learns;
Gateway node can receive what other node devices that other node devices pass through newly learnt from the broadcast tree Local mac address and affiliated VLAN, and according to the big double layer network forward table for being in advance based on the big double layer network protocol generation , generate mac address forwarding table item corresponding to the local mac address of other node devices(Hereinafter referred to as the second MAC Address turns Forwarding list item), the target MAC (Media Access Control) address in the second mac address forwarding table item is the local mac address of other above-mentioned node devices, Outgoing interface is the outgoing interface that other nodes are gone in the big double layer network forwarding-table item.
When gateway node equipment receives unicast data message, and determine that the unicast data message is not itself port mac When address or virtual MAC address, target MAC (Media Access Control) address and affiliated VLAN that the gateway node can be according to the unicast data message, Matched in above-mentioned second mac address forwarding table item, and the unicast data report is directly forwarded by matching the outgoing interface of list item Text and without big double layer network agreement.
Further, in embodiments of the present invention, said gateway node also connects with the routing device outside big double layer network Connect, be itself in the target MAC (Media Access Control) address of data message when gateway node receives the data message of routing device transmission During MAC Address, the purpose IP address of data message is checked, can be with if finding the direct connection network segment of the purpose IP address at oneself The ARP of matching is searched according to the purpose IP address of the data message, and according to the purpose MAC of the ARP found Location and outgoing interface, directly forward the data message and without big double layer network protocol encapsulation.
Wherein, the data message is matched when gateway node is not found according to the purpose IP address of the data message received Purpose IP address ARP when, the gateway node is needed corresponding to the data message in VLAN broadcast domain, directly wide Broadcast the ARP request message sent for asking MAC Address corresponding to the purpose IP address of the data message(Hereinafter referred to as first ARP request message)And encapsulated without big double layer network, the sender of the first ARP request message(Transmitting terminal)IP address is The real IP address of three layers of sending port of the gateway node, source MAC and sender MAC Address are the three of the gateway node The real MAC Address of layer sending port.
When the gateway node receives the arp reply message for the first ARP request message(Hereinafter referred to as the first ARP should Answer message)When, the gateway node can be according to corresponding to the first arp reply message establishes the purpose IP address of the data message ARP, and according to the ARP of the foundation, directly forward the data message and without big double layer network protocol encapsulation.
Wherein, gateway node in VLAN broadcast domain during broadcast ARP request message, it is necessary to according to the VLAN pre-set Broadcast domain scope broadcasted.
Specifically, in embodiments of the present invention, VLAN broadcast domain scope can be set on each node device, and this is wide Domain scope is broadcast including allowing position VLAN in the user-side port and the node device that the VLAN passes through on the node device The big double layer network side interface on tree is cut, the cutting tree is obtained based on the VLAN beta prunings for being distributed tree to above-mentioned broadcast tree Arrive.
Further, in embodiments of the present invention, each gateway node in same VLAN also needs to carry out major network artis Election, using elect a gateway node be used as the VLAN major network artis;When gateway node receives the use of main frame transmission In the ARP request message of the MAC Address of request gateway node(Hereinafter referred to as the second ARP request message)When, only major network joint Point is responded.
Specifically, in embodiments of the present invention, each gateway node in same VLAN can broadcast in the VLAN to be taken Real MAC Address, virtual IP address and the neighbours of virtual MAC address of real IP address, three-layer port with itself three-layer port have found And major network artis voting protocol message;When each gateway node in same VLAN receives the upper of other gateway nodes transmission Protocol massages are stated, elect port reality IP address and/or port reality MAC Address to meet the gateway node of preset rules, as major network Artis.For example, the maximum gateway node in port IP address+port mac address can be elected as major network artis, or, Port IP address or the gateway node of port mac address maximum are elected as major network artis.
When gateway node receives when being used to ask the second ARP request message of MAC Address of gateway of main frame transmission, net Artis is it needs to be determined that whether itself is the major network artis for corresponding to VLAN, however, it is determined that itself is corresponding VLAN major network joint Point, then generate arp reply message(Hereinafter referred to as the second arp reply message), the target MAC (Media Access Control) address of the second arp reply message For the MAC Address of the main frame, source MAC and sender MAC Address are the virtual MAC address of the gateway node, sender IP address is the virtual IP address of the gateway node, so that main frame learns and establishes the virtual IP address of gateway node with virtual MAC Incidence relation between location;If it is determined that itself it is not corresponding VLAN major network artis, then the gateway node is not to the arp reply Message is responded.
Wherein, after as the gateway node generation arp reply message of major network artis, according to the mesh of the arp reply message MAC Address, matched in the second mac address forwarding table item, and the outgoing interface by matching list item directly forwards the ARP Response message and without big double layer network protocol encapsulation.
It should be noted that it be can be seen that by above description in technical scheme provided in an embodiment of the present invention, non-net Artis is to gateway node for transmitting data message, big double layer network node device to ARP request message, the hair of arp reply message Send/forward, what is taken is to be encapsulated without big two layers, and the mode of directly match query mac address forwarding table item is carried out, Therefore, in order that those skilled in the art more fully understand technical scheme provided in an embodiment of the present invention, below to big two layers of net The technical scheme of two layers of unicast/broadcast traffic forwarding is described in detail in network.
In the control plane of big double layer network, each node device is by one up to all node devices in big double layer network Broadcast tree, the new local mac address learnt and affiliated VLAN are advertised to other node devices(, wherein it is desired to pay attention to , in embodiments of the present invention, for the node device as gateway node, it is advertised to other sections by above-mentioned broadcast tree The MAC Address of point device is the virtual MAC address of gateway node configuration);Node device receives other nodes from the broadcast tree and set The local mac address of other node devices of standby notice, and by being in advance based on the big two layers of the big double layer network protocol generation Forwarded list item, generate original MAC address forwarding-table item(In embodiments of the present invention, for the first mac address forwarding table item and Second mac address forwarding table item);In the datum plane of big double layer network, after node device receives unicast data message, if should The target MAC (Media Access Control) address of unicast data message is not the MAC Address of itself, then according to the target MAC (Media Access Control) address of the unicast data message And affiliated VLAN, matched in the original MAC address forwarding-table item, and the outgoing interface directly forwarding by matching list item should Unicast data message and without big double layer network protocol encapsulation.
Specifically, when a node device receive the notice of other node devices other node devices it is new learn the One MAC Address and during an affiliated VLAN, is identified, inquiry is in advance based on according to the big double layer network of other node devices The big double layer network forward table of big double layer network protocol generation, outgoing interface corresponding to other node devices is determined, and then generated Original MAC address forwarding-table item corresponding to first MAC Address.
Wherein, node device determines that outgoing interface can specifically be accomplished by the following way corresponding to other node devices:
Node device from big double layer network forward table, can find the big double layer network mark of other node devices Corresponding forwarding-table item;If only including an outgoing interface in the forwarding-table item searched, the outgoing interface that will be found, other are used as Outgoing interface corresponding to node device;If the forwarding-table item found includes more than two outgoing interfaces, by the two or more Outgoing interface form an aggregation port, and using the aggregation port as outgoing interface corresponding to other node devices.Wherein, on More than two outgoing interfaces that stating forwarding-table item includes can be existed in the form of equal cost multipath.
Correspondingly, when node device needs to forward unicast data message by the outgoing interface for matching list item, if matching list The outgoing interface of item is aggregation port, then can pass through HASH(Hash)One member port of the algorithms selection aggregation port, and By selected member port, the unicast data message is directly forwarded and without big double layer network protocol encapsulation.
, wherein it is desired to it is noted that in embodiments of the present invention, set notice by broadcasting due to gateway node is empty MAC Address, and the virtual MAC address that each gateway node configures in same VLAN is identical, therefore, non-gateway node device should in generation , it is necessary to during mac address forwarding table item corresponding to virtual MAC address according to big double layer network agreement and the same virtual MAC received The big double layer network mark of each gateway node corresponding to location, the singlecast router for each gateway node for going to same VLAN is calculated, And then generate the first mac address forwarding table item corresponding to the virtual MAC address.
Further, in big double layer network in the technical scheme of two layers of unicast/broadcast traffic forwarding, when node device During local mac address aging, local mac address and affiliated VLAN that node device is also required to aging will occur are advertised to other Node device, as the forwarding-table item corresponding to the MAC Address of other node devices deletion generation aging and affiliated VLAN.
Specifically, each node device can be set by broadcasting, by the local mac address that aging occurs and affiliated VLAN It is advertised to other node devices;When node device receives the MAC Address of generation aging at other node devices from broadcast tree (Second MAC Address)And during affiliated VLAN, from original MAC address forward table, delete second MAC Address and affiliated Forwarding-table item corresponding to VLAN.
In the embodiment of the present invention, node device can be carried out among the nodes in MAC address aging by notification packet MAC Address is synchronous.The situation for MAC Address vacation aging occur is possible in practical application.So-called MAC Address vacation aging, refers to end After end data sends message, one section of long period is spaced(More than the MAC address aging time)Without retransmiting message, then again Message is sent, repeatedly in this way, causing the MAC Address of the terminal to be learnt on the port of node device, aging, learning again, again Aging ..., each of which time aging or learning process can all trigger the transmission of notification packet.
In order to reduce the MAC Address notification packet quantity forwarded that frequently false aging is triggered, mitigate at the CPU of node device Reason is born, and each node device can be directed to the combination of itself different interface and VLAN in the present embodiment, be respectively configured a pair The MAC Address pond answered, for being maintained in the local mac address for belonging to corresponding VLAN learnt on the corresponding interface;
Each node device arrives local mac address in new study, such as records what is newly learnt in MAC forwarding-table items After ageing timer corresponding to MAC Address and foundation, if not including the new local mac learnt in corresponding MAC Address pond During address, then the new local mac address learnt is increased in MAC Address pond.Occur one section of aging in local mac address After preset time, just the local mac address of aging is deleted from corresponding MAC Address pond, that is to say, that in MAC forwarding-table items In MAC Address because of ageing timer time-out and after aging, after one section of preset time, just by the MAC Address from corresponding MAC Deleted in pond location.
Accordingly, each node device, when the local mac address newly learnt is further added in MAC Address pond, Set by the broadcast, the new local mac address learnt and affiliated VLAN are advertised to other node devices;And When the local mac address of aging is deleted in MAC Address pond, set by the broadcast, by the local mac address of aging and institute Category VLAN is advertised to other node devices.That is, the MAC address aging in MAC forwarding-table items can't directly trigger it is logical The transmission of message is accused, and is to wait for after the MAC Address deletes from MAC Address pond, just goes to send corresponding notification packet.
Corresponding, in embodiments of the present invention, non-gateway node can also be according in above-mentioned big double layer network two MAC address aging mode in the technical scheme of layer unicast/broadcast traffic forwarding carries out burin-in process to local mac address.
For broadcasting packet, in big double layer network in the technical scheme of two layers of unicast/broadcast traffic forwarding, can use According to chip vlan broadcast domain scopes(bitmap)The mode directly broadcasted is forwarded.
Specifically, VLAN broadcast domain scope can be set on each node device, wherein, the broadcast domain scope includes should Being cut positioned at the VLAN in the user-side port and the node device that the VLAN passes through is allowed to set on node device big by two Layer network side interface, it is what is obtained based on the VLAN beta prunings for being distributed tree to the broadcast tree that the VLAN, which cuts tree,;
After node device receives data message to be broadcast, the affiliated VLAN of data message to be broadcast is determined, and at this On the port of other in addition to receiving port included by VLAN broadcast domain scope, directly forward the data message to be broadcast without Big double layer network protocol encapsulation is carried out, wherein, the data message to be broadcast includes unknown unicast message, broadcasting data messages and not Know multicast message.
It is corresponding, in embodiments of the present invention, the processing for broadcasting packet, above-mentioned big two layers of net can be used Broadcast traffic pass-through mode is carried out to wide in the embodiment of the present invention in the technical scheme of two layers of unicast/broadcast traffic forwarding in network Text is reported to be forwarded.
By taking the Trill technologies in data center as an example, in embodiments of the present invention, it can be cut out according to the vlan in trill domains Tree is cut to set the broadcast domain scope of each vlan in hardware chip, user-side port is come according to the vlan for allowing to pass through on port It is correspondingly arranged;For trill mouths, it is impossible to set according to the vlan for allowing to pass through, but need what is calculated according to trill Vlan cuts tree to be correspondingly arranged(Need to remove and wrapped in the broadcast bitmap for the vlan and vlan that equipment upper port allows to pass through Consistency check containing the port).
For different vlan, tree can be cut using different vlan to realize the load balancing of broadcast traffic.Such as Fig. 2 Shown, the link of bold portion is vlan1 broadcast domain, according to this link topology, on nickname-1, sets vlan1's Bitmap includes user-side port P5(The port of lower extension main frame in nickname-1 to the VLAN)With up going port P1-P4(Respectively For nickname-1 to nickname-g1~nickname-g4 port);On nickname-g1, set vlan1's Bitmap only includes P1, P4 and Pn(Respectively nickname-g1 to nickname-1, nickname-4, nickname-n end Mouthful), user-side port P5 is only included on nickname-4(The port of lower extension main frame in nickname-4 to the VLAN)On and Row mouth P1(Nickname-4 to nickname-g1 port);On nickname-n, only including user-side port P5 (The port of lower extension main frame in nickname-n to the VLAN)With up going port P1(Nickname-n to nickname-g1 end Mouthful).For bitmaps of the vlan2 on each RB same vlan1 of setting principle(The link of dotted portion), it is not repeated to retouch herein State.When needing to broadcast in vlan1 for the message received from nickname-1 user-side ports, it is only necessary to according to phase The vlan bitmap answered are broadcasted, and the broadcasting packet can reach all vlan1 phases along the link of bold portion The RB of pass, and loop will not be produced.
Below by taking the Trill technologies in data center as an example, the message retransmission technique side that is provided the embodiment of the present invention Case is described in detail, and relative theory is equally applicable to other big two layers of networking technologys, such as Vxlan(virtual Extended VLAN, virtual extended VLAN(Virtual Local Area Network, VLAN), IETF draft (Draft)), SPB technologies etc..
Using the big double layer network of the data center of Trill technique constructions, core layer, Access Layer are generally divided into.Generally, run The equipment of Trill agreements is referred to as RBridge(That is Routing Bridge, there is the bridge equipment of routing forwarding characteristic, also referred to as Routing bridge, hereinafter referred to as RB), RB composition Trill domains(That is Trill networks).RB recognizes Trill by running link-state protocol The topology in domain, and the routing forwarding of other each RB using the generation of shortest path tree algorithm out of the RB arrival Trill networks Table(Referred to as Trill routing tables).
In embodiments of the present invention, each RB carries out nickname router-level topologies using Trill control protocols in Trill domains When, the nickname unicast routing tables and multicast table of generation only retain on software, without issuing hardware.
Accordingly, due to there is no nickname forwarding-table items in the hardware forwarding table of each RB in Trill domains, therefore, when Each RB uses ESADI in Trill domains(End Station Address Information, for terminal MAC address each The agreement of active synchronization between RB)When protocol massages to each RB local mac address mutually notice and be synchronous, ESADI associations View message needs to be sent to CPU progress software forwards and processing.Wherein it is possible to the wide of Trill is previously generated on software Tree is broadcast, does not do any cutting, all nodes(Each RB in Trill domains)It is reachable, it is specifically used to forward ESADI protocol massages.
It should be noted that in order to prevent because MAC Address learns caused forwarding loop automatically, in the embodiment of the present invention In, all user-side ports need to forbid MAC automatically to learn in Trill domains(Hardware is forbidden to learn), be changed to software learning or The mode that manual configuration or agreement automatically generate;Trill mouths(hybrid(Mix)Mouthful)Forbid learning(Forbid software, hardware Study), it is changed to the mode that manual configuration or agreement automatically generate.In addition, during using ESADI protocol synchronization MAC Address, own Node(Including transmission node(That is transit nodes))It is required for handling ESADI messages.
Meanwhile the RB nodes that gateway node is configured in Trill domains also need to run EGRP(Enhanced Gateway Redundancy Protocol, strengthen gateway backup protocol), for same VLAN multiple gateway nodes, except needing to configure Outside different real IP address/real MAC Address, it is also necessary to configure identical virtual IP address/virtual MAC address(It is i.e. same The real IP address of VLAN each gateway node/real MAC Address is different, and virtual IP address/virtual MAC address is identical).
After enabling EGRP agreements, the RB nodes for being configured to gateway node send EGRP protocol massages in VLAN, the EGRP Protocol massages can be carried out neighbours and found and master elections by the way of broadcast transmission in VLAN.
Wherein, each gateway node carries out neighbours' discovery and master elections using EGRP agreements to be specially:
Each gateway node sends EGRP protocol massages in VLAN, and respective equipment can be carried in the EGRP protocol massages Identification information, port IP address, port mac address, empty IP and virtual MAC address;Other gateway nodes receive this in the VLAN After EGRP protocol massages, by the port IP address of the port IP address in message and/or port mac address with itself and/or end Mouth MAC Address is made comparisons, and by comparing, port IP address+port mac address is maximum(Or port IP address or port mac address It is maximum)Gateway node will turn into master, remaining gateway node is then used as slave.
Wherein, the EGRP protocol massages can periodically be sent, and the transmission cycle is set according to actual scene.Work as slave Within a certain period of time(As twice of EGRP sends the cycle)The EGRP protocol massages of master transmissions are not received(Can basis Whether the EGRP protocol massages that the device identification carried in EGRP protocol massages determines to receive are what master was sent), then recognize Found and new master for the gateway node down as master, it is necessary to carry out neighbours between remaining gateway node again Election.
Wherein, for same VLAN multiple gateway nodes, host is being received(Main frame)The ARP of transmission(Address Resolution Protocol, address resolution protocol)During request message, master gateway node needs are only elected as Respond response message, and the response message be non-Trill encapsulation ARP messages, and the outer layer MAC address of the ARP messages and Sender MAC Address is the virtual MAC address of gateway node.And host ARP handling process is asked for gateway node, Source MAC of the real MAC Address of itself as ARP request message is used by gateway node, and without using virtual MAC address.
Diffusion and synchronization for MAC Address, in embodiments of the present invention, the RB equipment for being configured to gateway node, When by ESADI protocol synchronization MAC Address, it is configurable to synchronous virtual MAC address, i.e., carry the virtual MAC address of itself It is diffused in ESADI protocol massages and synchronous.
After each RB receives ESADI protocol massages in Trill domains, MAC Address, vlan information and the institute wherein carried is extracted The nickname information of category, and the nickname routing tables according to corresponding to nickname inquiries, by the nickname routing tables Be converted to MAC forward tables and issue Forwarding plane.
Specifically, can corresponding to the MAC+VLAN that is carried in ESADI protocol massages is replaced nickname route table items In nickname, if the exit port of the nickname route table items is single exit port, exit port in corresponding MAC address entries Directly use the exit port of the nickname route table items;If the nickname route table items have equal-cost route, corresponding MAC Exit port in list item can be each port in the nickname route table items(Port corresponding to each equal-cost route)It is corresponding poly- Close port.
It should be noted that because same VLAN gateway node has, identical virtual IP address/virtual MAC address is identical, For non-gateway node, in order to be generated to the equative route of the virtual MAC address of gateway node, non-gateway node needs to calculate respectively This node arrives the singlecast router of each gateway node corresponding to the virtual MAC address, and by path minimum cost in the singlecast router The exit port of the virtual MAC address is used as in the exit port of this node(I.e. in MAC forwarding-table items corresponding to the virtual MAC address Exit port);If the minimum paths of a plurality of cost be present, a plurality of this path is just chosen, these paths are gone out end in this node Mouth is listed together, if sharing an exit port, exit port corresponding to gateway mac is exactly a single physical port;Such as Fruit have it is multiple, then using these physical ports polymerize after as the virtual MAC address exit port.
When each RB receives data message in Trill domains, Trill encapsulation is not carried out to the message, and according to corresponding MAC forwarding-table items forward to message;If the exit port of the MAC forwarding-table items inquired according to the target MAC (Media Access Control) address of message For single port when, then the message is forwarded from the exit port;If the MAC inquired according to the target MAC (Media Access Control) address of message turns The exit port of forwarding list item is aggregation port, then can be shared by the hash of corresponding aggregated links, selective polymerization link certain Port corresponding to sub-links forwards to the message.
For L3 data messages, when gateway node carries out L3 forwardings to the message, outer net route can be directly forwarded to Device, without regard to the processing of solution Trill encapsulation;Correspondingly, outer network router forwards the packet to VLAN where destination host Gateway node when, be not related to pair plus the processing of Trill encapsulation yet.
Wherein, due in same VLAN each gateway node be configured with identical virtual IP address/virtual MAC address, and gateway section It is virtual MAC address that point, which carries out MAC Address synchronous during MAC Address synchronization, therefore, the RB in Trill domains as access layer equipment In the MAC forward tables of upper generation to should the exit port of virtual MAC address be aggregation port(Including each gateway of RB connections The port of node), therefore, when the RB as access layer equipment needs the L3 data messages for receiving host transmissions being sent to net During artis, the target MAC (Media Access Control) address to the L3 data messages can be passed through(The virtual MAC address of gateway node)Corresponding MAC turns Aggregated links corresponding to exit port carries out hash in forwarding list item, and port is to the report corresponding to certain sub-links of selective polymerization link Text is forwarded, and realizes and flow is shared.
It should be noted that in embodiments of the present invention, the difference of aggregation port and conventional polymeric port in MAC address entries Part is:The equipment at traditional aggregated links both ends is required for configuration to polymerize, and the aggregated links in the embodiment of the present invention is only Need to be aggregated links from the point of view of a side apparatus, opposite end not necessarily needs to be aggregated links.
In addition, when the RB in Trill as gateway node receives access nodes(Non-gateway node)The ARP of return should , it is necessary to inquire about the MAC table of itself storage according to the source MAC of the arp reply message when answering message, and by the source MAC Exit port in corresponding MAC address entries is as the exit port in ARP(The exit port can be single port or polymerization end Mouthful), wherein, when gateway node has equative route to access nodes, the exit port is aggregation port.
It can be seen that in embodiments of the present invention by above flow, when equipment receives datagram in big double layer network Wen Shi, big two-layer protocol encapsulation is not carried out to the message, but MAC address entries are inquired about according to the target MAC (Media Access Control) address of data message, and According to the MAC forwarding-table items inquired by the data message with native(It is primary)Form is forwarded.When gateway node determines When the data message needs to carry out L3 forwardings, it is not necessary to release the processing of big two layers of encapsulation, you can be sent to outer net route Device;Correspondingly, when the message is sent to other VLAN gateway node by outer network router, it is not required that carry out big two layers of encapsulation Processing, avoid pipeline processing L3 forwardings and big two-layer protocol add/decapsulated the problem of, reduce to core The requirement of piece, enhance the deployable of big double layer network;
Simultaneously as be configured to gateway node big two-layer equipment carry out MAC Address synchronization when, use for virtual MAC Location, and the virtual MAC address of same VLAN each gateway node is identical, therefore, the corresponding gateway node generated in big two-layer equipment MAC forwarding-table items in exit port be aggregation port, when big two-layer equipment is needed data message forwarding to gateway node, Hash, certain subchain of selective polymerization link can be carried out to aggregated links corresponding to exit port in corresponding MAC forwarding-table items Port corresponding to road forwards to the message, realizes the load balancing to flow.
In order to illustrate the embodiments of the present invention more clearly, below by taking the Trill group-network constructions shown in Fig. 3 as an example, this is illustrated The specific implementation process for the message retransmission technique that inventive embodiments provide.
As shown in figure 3, be a kind of configuration diagram of Trill networkings provided in an embodiment of the present invention, wherein:
Each access layer equipment(That is access nodes)Nickname be respectively nickname-1, nickname-2 ..., nickname-n;
Each core layer equipment(That is core nodes)Nickname be respectively nickname-g1, nickname-g2, Nickname-g3 and nickname-g4;
nickname-g1(That is nickname is nickname-g1 equipment, similarly hereinafter)、nickname-g2、nickname- G3 and nickname-g4 is gateway node;Nickname-g1, nickname-g2 and nickname-g3 are vlan1 net Close;Nickname-g2, nickname-g3 and nickname-g4 are vlan2 gateway.
Vlan1 three layer interfaces, and each net are configured with nickname-g1, nickname-g2 and nickname-g3 Artis is configured with different real IP address and real MAC Address, while each gateway node configuration identical virtual IP address: And virtual MAC address 1.1.1.1,:1-1-1.Similarly, it is configured with nickname-g2, nickname-g3 and nickname-g4 Vlan2 three layer interfaces, and each gateway node is configured with different real IP address and real MAC Address, while each net Artis configures identical virtual IP address:And virtual MAC address 2.2.2.1,:2-2-2.
In embodiments of the present invention, nickname-g1, nickname-g2, nickname-g3 and nickname-g4 On be each equipped with EGRP agreements.After enabling EGRP agreements, EGRP is sent in VLAN between same VLAN each gateway node Protocol massages, the protocol massages can use the sending method of broadcast in VLAN, carry out neighbours' discovery and master elections.
EGRP protocol massages can be periodically to send, and it is settable to send interval.When election is master gateway node (Hereinafter referred to as master)During down, neighbours are carried out between remaining gateway node again and find to elect with new master. By taking Fig. 3 as an example, it is assumed that by election, nickname-g1 turns into master in vlan1, and nickname-g4 is in vlan2 Master, remaining gateway node are slave.
In the ARP of host request gateways handling process, when host sends the ARP request of gateway, only Master is responsible for reply, and slave is not handled.Wherein, in embodiments of the present invention, outside the arp reply message that master is replied Layer MAC address and sender MAC Address are virtual mac address.
For example, it is assumed that host1.1.1.100 requests 1.1.1.1 ARP, is responsible for replying response message by nickname-g1, The sender MAC of the common ARP messages that response message encapsulates for non-Trill, outer layer MAC and internal layer are 1-1-1, and the ARP should The form for answering message can be as shown in table 1:
Table 1
In gateway requests host ARP handling process, each master uses respective real MAC Address as ARP The source MAC of request message, and without using virtual mac address.For host, now the real MAC Address of gateway is suitable In an other virtual host for same network segment.
Wherein, if because the reasons such as chip limitation do not support that the exit port of ARP is aggregation port, gateway is to connect Receive exit port of the port as ARP of arp reply message;If chip supports that the exit port of ARP is aggregation port, After then gateway receives arp reply message, according to MAC address entries corresponding to the inquiry of the source MAC of the ARP response messages, if looking for To corresponding MAC address entries, the exit port of the exit ports of the copy MAC address entries as ARP, so as to be arrived for gateway node There is the occasion of equative route in the host, the exit port of ARP can be aggregation port, and flow preferably can be divided Load and backup.
In embodiments of the present invention, it can be configured by order line, vlan1 and vlan2 virtual MAC address is passed through ESADI agreements are diffused and synchronously, final all nodes are known.Wherein, virtual MAC address 1-1-1 is belonged to simultaneously Nickname-g1, nickname-g2 and nickname-g3, virtual MAC address 2-2-2 belong to simultaneously nickname-g2, Nickname-g3 and nickname-g4.Wherein, because the real MAC Address of gateway node is in skill provided in an embodiment of the present invention Act on little in art scheme, therefore, can configure real MAC Address need not be diffused and synchronous by ESADI protocol massages.
After each RB receives ESADI protocol massages in Trill domains, for non-gateway node, gateway section is reached in order to acquire The equative route of point reaches each gateway node in the VLAN, it is necessary to calculate this node respectively(As the nickname-g1 in vlan1, Nickname-g2 and nickname-g3)Singlecast router, and select the minimum paths of cost to carry out in these singlecast routers Merge, and when having a plurality of, then form equal-cost route.
Non-gateway node is acquired up to after the equative route of gateway node in VLAN, is represented with link aggregation corresponding etc. Cost path, final forwarding-table item is formed, and be issued to hardware.For example, in scene shown in Fig. 3, nickname-1 and The forwarding-table item of nickname-4 generations can be respectively as shown in table 2 and table 3:
Table 2
Vlan MAC Egress Port(Exit port)
vlan1 1-1-1 Trunk(P1, P2, P3)
Table 3
Vlan MAC Egress Port
vlan2 2-2-2 Trunk(P2, P3, P4)
In data forwarding flow, for non-gateway node, after the L3 data messages for receiving host transmissions, not to the number Trill encapsulation is carried out according to message, and is forwarded according to the forwarding-table item under control plane to hardware.Wherein, if exit port is Aggregation port, then hash is carried out to aggregated links corresponding to the aggregation port, corresponding to certain sub-links of selective polymerization link Port forwards to the message.
For gateway node, each gateway node receives the host main frames transmission of non-gateway node forwarding in same VLAN L3 data messages, think itself to be gateway, Trill encapsulation is not carried out to the data message, and carry out L3 forward process flows.
With host1 in vlan1 in scene shown in Fig. 3(IP address is 1.1.1.100)The hsot2 into vlan2(IP address is 2.2.2.100)Message forwarding process exemplified by.
As shown in figure 4, for a kind of schematic flow sheet of three layers of unicast message retransmission method provided in an embodiment of the present invention, can To comprise the following steps:
Step 400, host1 when needing the host2 transmissions message into vlan2, has found host2 with itself not in vlan1 In the same network segment(That is host2 is not in local network), message is then sent to gateway node.If host1 is currently without net The ARP of artis, then broadcast transmission ARP request message, the IP of the target in the request message is the void of gateway node IP address.The ARP request message passes through access nodes, is forwarded to gateway node.Wherein, access nodes receive ARP and asked After seeking message, broadcast forwarding is carried out to the ARP request message by the VLAN of setting broadcast domain scope.
After gateway node receives above-mentioned ARP request message, if itself being the master gateway nodes in corresponding VLAN, to Main frame unicast returns to arp reply message, and the sender IP in the response message are the virtual IP address of gateway node, sender MAC Address is the virtual MAC address of gateway.The arp reply message passes through access nodes, should according to the ARP by access nodes Answer the target MAC (Media Access Control) address of message(That is the MAC Address of main frame)The MAC address entries of match query, are forwarded to main frame, so as to which main frame learns To the ARP of gateway, associating between the virtual IP address of gateway and virtual MAC address is established.
Step 401, host1 send message to nickname-1, and the target MAC (Media Access Control) address of the message is the void of gateway node MAC Address 1-1-1, purpose IP are host2 IP address 2.2.2.100.
Specifically, host1 sends message to host2, gateway A RP list items are searched, the purpose MAC of encapsulation is 1-1-1, purpose IP is 2.2.2.100.
After step 402, nickname-1 receive message, MAC forward tables are searched according to the outer layer MAC address of the message, And nickname-g1 is forwarded the packet to according to the list item inquired.
Specifically, after nickname-1 receives the message of host1 transmissions, according to the outer layer MAC address of the message(1-1- 1)Local mac forward table is inquired about, hits list item shown in table 3, exit port is aggregation port in the list item(Trunk(P1, P2, P3)), nickname-1 chooses one of them by hash algorithm, it is assumed that is port P1, and the message is sent from P1. Wherein, nickname-1 by the message from P1 forward when, Trill encapsulation will not be carried out to the message, but so that this to be reported Text is sent in the form of native.
After step 403, nickname-g1 receive message, outer network router is forwarded the message to.
Specifically, after nickname-g1 receives the message of nickname-1 forwardings, according to the purpose for finding the message MAC Address is the virtual MAC address of itself, then it is assumed that the message is destined to oneself, now needs table of query and routing to carry out three Layer forwarding.During specific implementation, specific sign can be set in the MAC forwarding-table items of virtual MAC address in advance, so Nickname-g1 is according to the target MAC (Media Access Control) address of the message(1-1-1)Local mac forward table is inquired about, is turned according to the MAC inquired The sign set in forwarding list item, it is determined that needing to carry out L3 forwardings to the message.Then table of query and routing, do not have due to local Direct-connected route, therefore, nickname-g1 forward the packet to outer network router.Wherein, nickname-g1 is not also to the report Text carries out Trill encapsulation.
After step 404, outer network router receive message, according to the purpose IP address table of query and routing of message, by message It is transmitted to nickname-g3.
Specifically, after outer network router receives the message of nickname-g1 forwardings, according to the purpose IP address of the message (2.2.2.100)Table of query and routing, is defined as equal-cost route, next-hop be respectively nickname-g2, nickname-g3 and Nickname-g4, outer network router can therefrom select an actual next-hop of conduct, it is assumed that be chosen to be by hash algorithm Nickname-g3, then outer network router forward the packet to nickname-g3.Wherein, the message non-Trill encapsulation not yet Message.
After step 405, nickname-g3 receive message, local ARP table is inquired about according to the purpose IP address of message, and List item according to inquiring forwards the message to nickname-4.
Wherein, if no host2 on nickname-g3(2.2.2.100)ARP, then can use the reality of itself IP address/real MAC Address initiates ARP request as source IP address/source MAC, to obtain host2 ARP information, and root Nickname-4 is forwarded the packet to according to obtained ARP information, wherein, nickname-g3 is sent to nickname-4 report Wen Weifei Trill encapsulated messages, and target MAC (Media Access Control) address is host2 target MAC (Media Access Control) address.
After step 406, nickname-4 receive message, local mac forwarding is inquired about according to the target MAC (Media Access Control) address of message Table, and forward the packet to host2.
Further, in embodiments of the present invention, it is contemplated that double layer network interior joint equipment or link may occur different greatly Often, in order to improve system availability, the embodiment of the present invention additionally provides exception handling.
Specifically, when the TRILL link downs between non-gateway node and gateway node, the non-gateway node can be by According to the topology after renewal, the singlecast router for each gateway node for going to same VLAN is recalculated, and updates and recalculates to obtain Singlecast router, update the first mac address forwarding table item outgoing interface;
The gateway node updates the exit port for reaching the ARP of All hosts under the non-gateway node.
When gateway node delays machine, the first MAC corresponding to the virtual MAC address of non-gateway node updates gateway node configuration The outgoing interface of address repeat listing.
When non-gateway node is delayed machine(down)When, gateway node deletes the All hosts under the non-gateway node ARP;
During major network artis down in VLAN, other gateway nodes re-elect the primary gateway in the VLAN in the VLAN Node;
When gateway node finds that outside router is unreachable, VLAN major network artis where exiting this gateway node Election, re-elects new major network artis to trigger other gateway nodes, disables itself three all layer interface, and pass through institute The revocation message of broadcast tree notice virtual MAC address is stated, to cause non-gateway node device to update institute corresponding to the virtual MAC address State the outgoing interface of the first mac address forwarding table item.
Still by taking the Trill technologies in data center as an example, the exception in the technical scheme provided the embodiment of the present invention Treatment mechanism is described in detail.
Scene one, Trill link failures
Referring to Fig. 5, it is assumed that the Trill links between nickname-1 and nickname-g1 break down, then with this The node device of Trill link direct correlation(That is nickname1 and nickname-g1)It needs to be determined that after the link failure Network topology, and notice the network topology to other node devices, such as can be by ISIS protocol massages to other node devices Network topology after advertising link failure.
Each non-gateway node needs according to the topology after renewal, to recalculate the list for each gateway node for going to same VLAN Route is broadcast, and updates the singlecast router for recalculating to obtain, updates the outgoing interface of the first mac address forwarding table item.
For example, in scene shown in Fig. 5, into virtual MAC address 1-1-1 path, three corresponding to port P1, P2, P3 In path minimum cost, because detouring occurs in path corresponding to the P1 of port, cost is increased, and is left out, therefore only remain Path minimum two cost corresponding to lower port P2 and P3, therefore, go out end to virtual MAC address 1-1-1 on nickname-1 Mouth brush is newly new aggregation port, and corresponding list item is refreshed as table 5 by table 4:
Table 4
VLAN MAC Egress port
vlan1 1-1-1 Trunk(P1、P2、P3)
Table 5
VLAN MAC Egress port
vlan1 1-1-1 Trunk(P2、P3)
Meanwhile nickname-g1 node updates reach the exit port of the ARP of the All hosts under nickname-1, Such as from port, P1 is updated to port P2(Detour path).
Scene two, access node failures
Referring to Fig. 6, it is assumed that nickname-1down, then the node device associated with nickname-1 is it needs to be determined that the section Network topology after point device failure, and notice the network topology to other node devices.
Each gateway node deletes the ARP of the All hosts under nickname-1.
Scene three, core node failures
Referring to Fig. 7, assume nickname-g1(Master in vlan1)Down, then other gateway nodes need in vlan1 New master is re-elected according to EGRP agreements(It is assumed to be nickname-g2), pass through before down nickname-g1 Virtual MAC address 1-1-1 agings during follow-up ESADI synchronized updates of ESADI protocol massages notice.Each node is set The standby new exit port for refreshing virtual MAC address 1-1-1.For example, nickname-1 to 1-1-1 exit port is what P2 and P3 was formed Aggregation port, port P1 are deleted.
Scene four, up-link(Link between gateway node and outside router)Failure
Referring to Fig. 8, it is assumed that the link down between nickname-g1 and external routes, then nickname-g1 discoveries are outside Router is unreachable, and down falls three layer interfaces on itself all vlan, and cancels the node by ESADI protocol massages and issue Virtual MAC address information so that each non-gateway node recalculate reach the gateway node configuration virtual MAC address path, Update the exit port of the first mac address forwarding table item corresponding to the virtual MAC address.Meanwhile nickname-g1 exits place VLAN EGRP elections, remaining gateway node re-elects new master, each non-gateway node
For example, in the scene shown in Fig. 8, after re-electing, nickname-g2 is new master, The exit port that nickname-1 reaches virtual MAC address 1-1-1 is only to include port P2 and P3 aggregation port, and port P1 is deleted Remove.
It should be appreciated that above-described embodiment turns by taking the Trill technologies in data center as an example to message provided by the invention Hair technical scheme is described in detail, when relative theory is applied to other big two layers of networking technologys(Such as Vxlan technologies, SPB skills Art)When in, corresponding description should be also adjusted.
For example, for access layer equipment and core layer equipment in big double layer network, in Trill technologies, Access Layer is set Standby and core layer equipment is RB;And in Vxlan technologies, access layer equipment VTEP(Vxlan Tunnel Endpoint, Vxlan endpoint of a tunnels), and to core layer equipment not special definition;And in SPB technologies, access layer equipment BEB (Backbone Edge Bridge, backbone edge bridge)Equipment, nucleus equipment BCB(Backbone Core Bridge, it is key Core bridges)Equipment.
For big double layer network forward table, in Trill technologies, the big double layer network forward table is specially Trill routes Table;And in Vxlan technologies, the big double layer network forward table is specially the backbone network L3 routing tables in Vxlan;And in SPB skills In art, the big double layer network forward table is specially the Bmac forward tables of the backbone network in SPBM.
For the control message synchronous for carrying out MAC Address, in Trill technologies, this is used to carry out MAC Address synchronization Control message be specially ESADI protocol massages;And in Vxlan technologies and SPB technologies, due to itself and undefined active MAC Address synchronization mechanism, therefore, the ESADI protocol massages in Trill technologies can be borrowed in Vxlan technologies and SPB technologies In, its specific implementation repeats no more herein.
Based on identical technical concept, the embodiment of the present invention additionally provides the equipment in above-mentioned big double layer network.
It is a kind of structural representation of the network equipment provided in an embodiment of the present invention referring to Fig. 9, the network equipment can answer In the big double layer network set up for multiple node devices based on big double layer network agreement, multiple node devices include being used as gateway The gateway node of equipment and the non-gateway node as access device, same VLAN each gateway node are configured with identical void IP Address and virtual MAC address, the network equipment are applied in the big double layer network as non-gateway node, the network equipment bag Include:
Address management module 91, for by one up to all node devices in the big double layer network broadcast tree, Receive the virtual MAC address of the gateway node configuration of each gateway node notice and affiliated vlan information;
List item maintenance module 92, it is same for being received according to big double layer network agreement and the address management module 91 The big double layer network mark of each gateway node corresponding to virtual MAC address, calculate the list for each gateway node for going to same VLAN Route is broadcast, and then generates the first mac address forwarding table item corresponding to the virtual MAC address, wherein, first MAC Address turns VLAN in forwarding list item is the affiliated VLAN of the virtual MAC, target MAC (Media Access Control) address is the virtual MAC address, outgoing interface is the unicast Outgoing interface corresponding to the route of Least-cost in route;
Packet forwarding module 93, for receiving the virtual MAC that target MAC (Media Access Control) address is a gateway node when the network equipment During the data message of address, according to the target MAC (Media Access Control) address of the data message, the first mac address forwarding table item of matching is searched, and According to the matching list item found, the data message is directly forwarded and without big double layer network protocol encapsulation.
Wherein, the list item maintenance module 92 can be additionally used in,
During link down between the network equipment and gateway node, according to the topology after renewal, recalculate Toward the singlecast router of same VLAN each gateway node, and the singlecast router for recalculating to obtain is updated, update the first MAC Address The outgoing interface of forwarding-table item;
When gateway node delays machine, the first mac address forwarding table corresponding to the virtual MAC address of gateway node configuration is updated The outgoing interface of item.
As shown in Figure 10, it is the structural representation of another network equipment provided in an embodiment of the present invention, the network equipment It can apply in the big double layer network that multiple node devices are set up based on big double layer network agreement, multiple node devices include making Gateway node for gateway device and the non-gateway node as access device, same VLAN each gateway node are configured with identical Virtual IP address and virtual MAC address, the network equipment as gateway node be applied to the big double layer network in, the network is set It is standby to include:
Address management module 101, for by one up to all node devices in the big double layer network broadcast tree, The virtual MAC address of this node device configuration and affiliated vlan information are noticed, so that non-gateway node device is according to big two layers of net The big double layer network mark of each gateway node corresponding to network agreement and the same virtual MAC address received, calculating is gone to same The singlecast router of VLAN each gateway node, and then the first mac address forwarding table item corresponding to the virtual MAC address is generated, its In, the VLAN in the first mac address forwarding table item is the affiliated VLAN of the virtual MAC, target MAC (Media Access Control) address is the virtual MAC Address, outgoing interface are outgoing interface corresponding to the route of Least-cost in the singlecast router;
Packet forwarding module 102, for receiving target MAC (Media Access Control) address when the network equipment as itself virtual MAC address Data message, and when to judge the target MAC (Media Access Control) address of the data message be itself virtual MAC address, according to the data message Purpose IP address, search routing table and forward the data message;Wherein, the data message is non-gateway node according to message Target MAC (Media Access Control) address, match directly forwarding after the first mac address forwarding table item and without carrying out big double layer network agreement Encapsulation.
Wherein, the network equipment also includes:List item maintenance module 103;
The address management module 101 can be additionally used in, and be received from the broadcast tree described in the notice of other node devices The local mac address and affiliated VLAN that other node devices newly learn;The local mac address is included from other described sections The MAC Address that the user network side of point device connection learns;
List item maintenance module 103, for according to the big double layer network forwarding for being in advance based on the big double layer network protocol generation List item, the second mac address forwarding table item corresponding to the local mac address of generation other node devices, the 2nd MAC Target MAC (Media Access Control) address in the forwarding-table item of location is the local mac address of other node devices, and outgoing interface is big two layers of net The outgoing interface of other node devices is gone in network forwarding-table item;
The packet forwarding module 102 can be additionally used in, and not be itself end when the network equipment receives target MAC (Media Access Control) address After mouthful MAC Address or the unicast data message of the virtual MAC address, according to the target MAC (Media Access Control) address of the unicast data message and Affiliated VLAN, matched in the second mac address forwarding table item, and the outgoing interface by matching list item directly forwards institute State unicast data message and without big double layer network protocol encapsulation.
Wherein, the network equipment is also connected with the routing device outside the big double layer network;
VLAN broadcast domain scope is provided with the big double layer network on each node device, wherein, the broadcast domain model Enclose including allowing the user-side port that the VLAN passes through to cut tree positioned at the VLAN with the node device on the node device On big double layer network side interface, it is described that to cut tree be to be distributed what the beta pruning of tree obtained to the broadcast tree based on VLAN;
The packet forwarding module 102 can be additionally used in, and when receiving the data message that the routing device is sent, search Match the ARP of the purpose IP address of the data message, and according to the target MAC (Media Access Control) address of the ARP found and Outgoing interface, directly forward the data message and without big double layer network protocol encapsulation.
Wherein, the packet forwarding module 102 can be additionally used in, if with not finding the purpose IP for matching the data message The ARP of location, corresponding to the data message in VLAN broadcast domain, direct broadcast transmission is used to ask the data message Purpose IP address corresponding to MAC Address the first ARP request message and without big double layer network protocol encapsulation, described first The transmitting terminal sender IP addresses of ARP request message are the sending port IP address of the network equipment, source MAC and hair Sending end MAC Address is the sending port MAC Address of the network equipment;
The list item maintenance module 103 can be additionally used in, and be received when the network equipment receives basis for the first ARP During the first arp reply message of request message, ARP corresponding to the purpose IP address of the data message is established;
The packet forwarding module 102 can be additionally used in, and the ARP established according to the list item maintenance module, forward institute State data message and without big double layer network protocol encapsulation.
Wherein, a gateway node in same VLAN is elected as the major network artis of the VLAN,
The packet forwarding module 102 can be additionally used in, as the MAC for being used to ask gateway node for receiving main frame transmission Second ARP request message of location, and determine that the network equipment is when corresponding to VLAN major network artis, the 2nd ARP of generation should Message is answered, the target MAC (Media Access Control) address of the second arp reply message is the MAC Address of the main frame, source MAC and transmitting terminal Sender MAC Address is the virtual MAC address of the network equipment, sender IP address for the network equipment empty IP Location, so that the incidence relation that the main frame learns and established between the virtual IP address of the network equipment and virtual MAC address;According to The target MAC (Media Access Control) address of the arp reply message, matched in the second mac address forwarding table item, and by matching list item Outgoing interface directly forwards the arp reply message and without big double layer network protocol encapsulation
Wherein, the network equipment also includes:
Module 104 is elected, the network equipment itself is carried for being broadcasted in the VLAN belonging to the network equipment Port IP address, port mac address, empty IP and the neighbours of virtual MAC address find and major network artis voting protocol message;Receive The protocol massages that other gateway nodes are sent in the VLAN, port IP address and/or port mac address is elected to meet in advance If the gateway node of rule, as the major network artis.
Wherein, the list item maintenance module 103 can be additionally used in, the link between non-gateway node and the network equipment During interruption, renewal reaches the outgoing interface of the ARP of All hosts under the non-gateway node;Delayed machine in non-gateway node During down, the ARP of the All hosts under the non-gateway node is deleted;
The address management module 101 can be additionally used in, when the network equipment finds that outside router is unreachable, disabling Itself three all layer interface, and by the revocation message of the broadcast tree notice virtual MAC address, to cause non-gateway node to set The standby outgoing interface for updating the first mac address forwarding table item corresponding to the virtual MAC address;
The election module 104 can be additionally used in, and when the network equipment finds that outside router is unreachable, exit Home Network The election of VLAN major network artis, major network artis is re-elected to trigger other gateway nodes where artis.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but the former is more in many cases Good embodiment.Based on such understanding, what technical scheme substantially contributed to prior art in other words Part can be embodied in the form of software product, and the computer software product is stored in a storage medium, if including It is dry to instruct to cause a station terminal equipment(Can be mobile phone, personal computer, server, or network equipment etc.)Perform sheet Invent the method described in each embodiment.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should Depending on protection scope of the present invention.

Claims (18)

1. a kind of message forwarding method, the big double layer network set up applied to multiple node devices based on big double layer network agreement In, it is characterised in that the multiple node device includes the gateway node as gateway device and the non-net as access device Artis, same VLAN each gateway node are configured with identical virtual IP address and virtual MAC address, and this method includes:
Non-gateway node by one up to all node devices in the big double layer network broadcast tree, receive each gateway section The virtual MAC address of the gateway node configuration of point notice and affiliated vlan information;
Non-gateway node according to corresponding to big double layer network agreement and the same virtual MAC address that receives each gateway node it is big Double layer network identifies, and calculates the singlecast router for each gateway node for going to same VLAN, and then it is corresponding to generate the virtual MAC address The first mac address forwarding table item, wherein, VLAN in the first mac address forwarding table item is belonging to the virtual MAC VLAN, target MAC (Media Access Control) address are the virtual MAC address, outgoing interface is to go out in the singlecast router corresponding to the route of Least-cost Interface;
When non-gateway node receives the data message for the virtual MAC address that target MAC (Media Access Control) address is a gateway node, according to the data The target MAC (Media Access Control) address of message, searches the first mac address forwarding table item of matching, and according to the matching list item found, directly turns Send out data message described and without big double layer network protocol encapsulation.
2. the method as described in claim 1, it is characterised in that this method also includes:
During link down between non-gateway node and gateway node, non-gateway node is counted again according to the topology after renewal The singlecast router for each gateway node for going to same VLAN is calculated, and updates the singlecast router for recalculating to obtain, updates the first MAC The outgoing interface of address repeat listing;
When gateway node delays machine, the first MAC Address corresponding to the virtual MAC address of non-gateway node updates gateway node configuration The outgoing interface of forwarding-table item.
3. a kind of message forwarding method, the big double layer network set up applied to multiple node devices based on big double layer network agreement In, it is characterised in that the multiple node device includes the gateway node as gateway node and the non-net as access device Artis, same VLAN each gateway node are configured with identical virtual IP address and virtual MAC address, and this method includes:
Gateway node by one up to all node devices in the big double layer network broadcast tree, notice this node device and match somebody with somebody The virtual MAC address put and affiliated vlan information, so that non-gateway node device is according to big double layer network agreement and receives The big double layer network mark of each gateway node corresponding to same virtual MAC address, calculates each gateway node for going to same VLAN Singlecast router, and then generate the first mac address forwarding table item corresponding to the virtual MAC address, wherein, the first MAC VLAN in the forwarding-table item of location is the affiliated VLAN of the virtual MAC, target MAC (Media Access Control) address is the virtual MAC address, outgoing interface is described Outgoing interface corresponding to the route of Least-cost in singlecast router;
Gateway node receives the data message that target MAC (Media Access Control) address is itself virtual MAC address, and the data message is non-gateway section The target MAC (Media Access Control) address according to message is put, it is directly being forwarded after matching the first mac address forwarding table item and big by two without carrying out Layer network protocol encapsulation;
The gateway node is when it is itself virtual MAC address to judge the target MAC (Media Access Control) address of the data message, according to the number According to the purpose IP address of message, search routing table and forward the data message.
4. method as claimed in claim 3, it is characterised in that this method also includes:
Each node device is set by the broadcast, and the new local mac address learnt and affiliated VLAN are advertised into other Node device, the local mac address include the MAC Address learnt from the user network side of this node device connection;
Gateway node receives the new sheet learnt of other node devices described in the notice of other node devices from the broadcast tree Ground MAC Address and affiliated VLAN, and according to the big double layer network forwarding-table item for being in advance based on the big double layer network protocol generation, Second mac address forwarding table item corresponding to the local mac address of generation other node devices, second MAC Address turn Target MAC (Media Access Control) address in forwarding list item is the local mac address of other node devices, and outgoing interface turns for the big double layer network The outgoing interface of other nodes is gone in forwarding list item;
The gateway node receives the unicast data that target MAC (Media Access Control) address is not itself port mac address or the virtual MAC address After message, according to the target MAC (Media Access Control) address of the unicast data message and affiliated VLAN, in the second mac address forwarding table item In matched, and by match the outgoing interface of list item directly forward the unicast data message and without big double layer network assist View encapsulation.
5. method as claimed in claim 4, it is characterised in that
The gateway node is also connected with the routing device outside the big double layer network;
VLAN broadcast domain scope is set on each node device, wherein, the broadcast domain scope is included on the node device Allow the big double layer network side joint cut positioned at the VLAN on tree in the user-side port and the node device that the VLAN passes through Mouthful, the cutting tree is obtained based on the VLAN beta prunings for being distributed tree to the broadcast tree;
Gateway node searches the purpose IP for matching the data message when receiving the data message that the routing device is sent The ARP of address, and according to the target MAC (Media Access Control) address and outgoing interface of the ARP found, directly forward the datagram Text and without big double layer network protocol encapsulation.
6. method as claimed in claim 5, it is characterised in that
If gateway node does not find the ARP for the purpose IP address for matching the data message, methods described also includes:
Corresponding to the data message in VLAN broadcast domain, direct broadcast transmission is used to ask the data gateway node First ARP request message of MAC Address corresponding to the purpose IP address of message and without big double layer network protocol encapsulation, it is described The transmitting terminal sender IP address of first ARP request message is the sending port IP address of the gateway node, source MAC And transmitting terminal MAC Address is the sending port MAC Address of the gateway node;
The gateway node establishes the data according to the first arp reply message for the first ARP request message received ARP corresponding to the purpose IP address of message, and according to the ARP of the foundation, forward the data message and without Big double layer network protocol encapsulation.
7. method as claimed in claim 4 a, it is characterised in that gateway node in same VLAN is elected as the VLAN Major network artis, this method also includes:
Gateway node receives the second ARP request message for being used to ask the MAC Address of gateway node of main frame transmission, and determination When itself being corresponding VLAN major network artis, the second arp reply message of generation, the purpose MAC of the second arp reply message Location is the MAC Address of the main frame, and source MAC and transmitting terminal sender MAC Address are the virtual MAC of the gateway node Address, sender IP address is the virtual IP address of the gateway node, so that the main frame learns and establishes the gateway node Virtual IP address and virtual MAC address between incidence relation;
The gateway node is carried out according to the target MAC (Media Access Control) address of the arp reply message in the second mac address forwarding table item Matching, and the arp reply message is directly forwarded and without big double layer network protocol encapsulation by matching the outgoing interface of list item.
8. method as claimed in claim 7, it is characterised in that the election of the major network artis includes:
Each gateway node in same VLAN is broadcasted in the VLAN carries respective port IP address, port mac address, void IP and the neighbours of virtual MAC address discovery and major network artis voting protocol message;
Each gateway node in same VLAN receives the protocol massages of other gateway nodes transmission, elects port IP address And/or port mac address meets the gateway node of preset rules, as the major network artis.
9. method as claimed in claim 3, it is characterised in that also include:
During link down between non-gateway node and gateway node, gateway node renewal reaches institute under the non-gateway node There is the outgoing interface of the ARP of main frame;
When non-gateway node delays machine down, gateway node deletes the ARP of the All hosts under the non-gateway node;
During major network artis down in VLAN, other gateway nodes re-elect the major network joint in the VLAN in the VLAN Point;
Gateway node is when finding that outside router is unreachable, the choosing of VLAN major network artis where exiting this gateway node Lift, re-elect major network artis to trigger other gateway nodes, disable itself three all layer interface, and pass through the broadcast The revocation message of tree notice virtual MAC address, to cause non-gateway node device to update described first corresponding to the virtual MAC address The outgoing interface of mac address forwarding table item.
10. a kind of network equipment, in the big double layer network set up applied to multiple node devices based on big double layer network agreement, its It is characterised by, the multiple node device includes the gateway node as gateway device and the non-gateway section as access device Point, same VLAN each gateway node are configured with identical virtual IP address and virtual MAC address, and the network equipment is as non-gateway Node is applied in the big double layer network, and the network equipment includes:
Address management module, for by one up to all node devices in the big double layer network broadcast tree, receive each The virtual MAC address of the gateway node configuration of individual gateway node notice and affiliated vlan information;
List item maintenance module, for the same virtual MAC that is received according to big double layer network agreement and the address management module The big double layer network mark of each gateway node corresponding to location, the singlecast router for each gateway node for going to same VLAN is calculated, And then the first mac address forwarding table item corresponding to the virtual MAC address is generated, wherein, in the first mac address forwarding table item VLAN be the affiliated VLAN of the virtual MAC, target MAC (Media Access Control) address is the virtual MAC address, outgoing interface is generation in the singlecast router Outgoing interface corresponding to the minimum route of valency;
Packet forwarding module, for receiving the virtual MAC address that target MAC (Media Access Control) address is a gateway node when the network equipment During data message, according to the target MAC (Media Access Control) address of the data message, the first mac address forwarding table item of matching is searched, and according to looking into The matching list item found, directly forward the data message and without big double layer network protocol encapsulation.
11. the network equipment as claimed in claim 10, it is characterised in that the list item maintenance module is additionally operable to,
During link down between the network equipment and gateway node, according to the topology after renewal, recalculate go to it is same The singlecast router of one VLAN each gateway node, and the singlecast router for recalculating to obtain is updated, renewal the first MAC Address forwarding The outgoing interface of list item;
When gateway node delays machine, the first mac address forwarding table item corresponding to the virtual MAC address of gateway node configuration is updated Outgoing interface.
12. a kind of network equipment, in the big double layer network set up applied to multiple node devices based on big double layer network agreement, its It is characterised by, the multiple node device includes the gateway node as gateway device and the non-gateway section as access device Point, same VLAN each gateway node are configured with identical virtual IP address and virtual MAC address, and the network equipment is as gateway section Point is applied in the big double layer network, and the network equipment includes:
Address management module, for by one up to all node devices in the big double layer network broadcast tree, notice this The virtual MAC address of node device configuration and affiliated vlan information, so that non-gateway node device is according to big double layer network agreement With the same virtual MAC address that receives corresponding to each gateway node big double layer network mark, calculating goes to same VLAN's The singlecast router of each gateway node, and then the first mac address forwarding table item corresponding to the virtual MAC address is generated, wherein, it is described VLAN in first mac address forwarding table item is the affiliated VLAN of the virtual MAC, target MAC (Media Access Control) address is the virtual MAC address, gone out Interface is outgoing interface corresponding to the route of Least-cost in the singlecast router;
Packet forwarding module, for receiving the datagram that target MAC (Media Access Control) address is itself virtual MAC address when the network equipment Text, and when to judge the target MAC (Media Access Control) address of the data message be itself virtual MAC address, according to the purpose of the data message IP address, search routing table and forward the data message;Wherein, the data message is purpose of the non-gateway node according to message MAC Address, match directly forwarding after the first mac address forwarding table item and without carrying out big double layer network protocol encapsulation.
13. the network equipment as claimed in claim 12, it is characterised in that the network equipment also includes:List item maintenance module;
The address management module is additionally operable to, and other nodes described in receiving the notice of other node devices are set from the broadcast and are set The standby new local mac address learnt and affiliated VLAN;The local mac address includes connecting from other described node devices The MAC Address that learns of user network side;
List item maintenance module, for according to the big double layer network forwarding-table item for being in advance based on the big double layer network protocol generation, life Into the second mac address forwarding table item corresponding to the local mac address of other node devices, the second MAC Address forwarding Target MAC (Media Access Control) address in list item is the local mac address of other node devices, and outgoing interface is the big double layer network forwarding The outgoing interface of other node devices is gone in list item;
The packet forwarding module is additionally operable to, and is not itself port mac address when the network equipment receives target MAC (Media Access Control) address Or after the unicast data message of the virtual MAC address, according to the target MAC (Media Access Control) address of the unicast data message and affiliated VLAN, Matched in the second mac address forwarding table item, and the unicast number is directly forwarded by matching the outgoing interface of list item According to message without big double layer network protocol encapsulation.
14. the network equipment as claimed in claim 13, it is characterised in that the network equipment also with outside the big double layer network The routing device connection in portion;
VLAN broadcast domain scope is provided with the big double layer network on each node device, wherein, the broadcast domain scope bag Include being cut positioned at the VLAN on tree in the user-side port for allowing the VLAN to pass through on the node device and the node device Big double layer network side interface, the cutting tree are obtained based on the VLAN beta prunings for being distributed tree to the broadcast tree;
The packet forwarding module is additionally operable to, and when receiving the data message that the routing device is sent, is searched described in matching The ARP of the purpose IP address of data message, and according to the target MAC (Media Access Control) address and outgoing interface of the ARP found, directly Switch through and send out data message described and without big double layer network protocol encapsulation.
15. the network equipment as claimed in claim 14, it is characterised in that
The packet forwarding module is additionally operable to, if not finding the ARP for the purpose IP address for matching the data message, Corresponding to the data message in VLAN broadcast domain, direct broadcast transmission is used for the purpose IP address pair for asking the data message First ARP request message of the MAC Address answered and without big double layer network protocol encapsulation, the first ARP request message Transmitting terminal sender IP address is the sending port IP address of the network equipment, and source MAC and transmitting terminal MAC Address are The sending port MAC Address of the network equipment;
The list item maintenance module is additionally operable to, and is received when the network equipment receives basis for the first ARP request message The first arp reply message when, establish ARP corresponding to the purpose IP address of the data message;
The packet forwarding module is additionally operable to, and the ARP established according to the list item maintenance module, forwards the data message And without big double layer network protocol encapsulation.
16. the network equipment as claimed in claim 13 a, it is characterised in that gateway node in same VLAN is elected as The major network artis of the VLAN,
The packet forwarding module is additionally operable to, when the second of the MAC Address for asking gateway node for receiving main frame transmission ARP request message, and determine that the network equipment is when corresponding to VLAN major network artis, to generate the second arp reply message, should The target MAC (Media Access Control) address of second arp reply message is the MAC Address of the main frame, source MAC and transmitting terminal sender MAC Location is the virtual MAC address of the network equipment, and sender IP address is the virtual IP address of the network equipment, so that described The incidence relation that main frame learns and established between the virtual IP address of the network equipment and virtual MAC address;According to the arp reply The target MAC (Media Access Control) address of message, matched in the second mac address forwarding table item, and the outgoing interface by matching list item is direct Forward the arp reply message and without big double layer network protocol encapsulation.
17. the network equipment as claimed in claim 16, it is characterised in that the network equipment also includes:
Module is elected, for broadcast to be with carrying the network equipment itself Port IP in the VLAN belonging to the network equipment Location, port mac address, empty IP and neighbours' discovery of virtual MAC address and major network artis voting protocol message;Receive the VLAN The protocol massages that other interior gateway nodes are sent, port IP address and/or port mac address is elected to meet preset rules Gateway node, as the major network artis.
18. the network equipment as claimed in claim 17, it is characterised in that
The list item maintenance module is additionally operable to, and during link down between non-gateway node and the network equipment, renewal reaches The outgoing interface of the ARP of All hosts under to the non-gateway node;When non-gateway node delays machine down, it is non-to delete this The ARP of All hosts under gateway node;
The address management module is additionally operable to, and when the network equipment finds that outside router is unreachable, it is all to disable itself Three layer interfaces, and by the revocation message of the broadcast tree notice virtual MAC address, to cause non-gateway node device to update institute State the outgoing interface of the first mac address forwarding table item corresponding to virtual MAC address;
The election module is additionally operable to, and when the network equipment finds that outside router is unreachable, exits this gateway node institute In the election of VLAN major network artis, major network artis is re-elected to trigger other gateway nodes.
CN201310357517.1A 2013-08-15 2013-08-15 A kind of message forwarding method and equipment Active CN104378297B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310357517.1A CN104378297B (en) 2013-08-15 2013-08-15 A kind of message forwarding method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310357517.1A CN104378297B (en) 2013-08-15 2013-08-15 A kind of message forwarding method and equipment

Publications (2)

Publication Number Publication Date
CN104378297A CN104378297A (en) 2015-02-25
CN104378297B true CN104378297B (en) 2018-01-16

Family

ID=52556964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310357517.1A Active CN104378297B (en) 2013-08-15 2013-08-15 A kind of message forwarding method and equipment

Country Status (1)

Country Link
CN (1) CN104378297B (en)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209638B (en) 2015-05-04 2019-07-12 新华三技术有限公司 From virtual LAN to the message forwarding method and equipment of virtual expansible local area network
CN104869058B (en) * 2015-06-04 2018-10-19 北京京东尚科信息技术有限公司 A kind of data message forwarding method and device
CN106302264B (en) * 2015-06-08 2019-06-14 新华三技术有限公司 Dune exchanges the unicast message interoperability methods and device between cable card board and flexible cable card board
CN106341857B (en) * 2015-07-17 2021-09-03 中兴通讯股份有限公司 Channel determination method and device
CN106487677B (en) * 2015-09-02 2019-10-01 华为技术有限公司 Provider edge equipment and data forwarding method
CN107204907B (en) * 2016-03-16 2021-03-26 中兴通讯股份有限公司 Cloud data center interconnection method and device
CN106059946B (en) * 2016-05-23 2019-12-06 新华三技术有限公司 Message forwarding method and device
CN106411835B (en) * 2016-05-25 2019-09-06 海尔优家智能科技(北京)有限公司 A kind of transmission method and device based on AllJoyn Control Panel
CN106506378B (en) * 2016-11-10 2019-09-06 杭州迪普科技股份有限公司 The update method and device of mac address table
CN108075969B (en) * 2016-11-17 2020-01-03 新华三技术有限公司 Message forwarding method and device
CN108900406B (en) * 2018-06-26 2021-05-28 新华三技术有限公司 Flow forwarding method and device
CN114726660A (en) 2018-09-30 2022-07-08 华为技术有限公司 Method for sending and processing message, inlet node and network system
CN110061922B (en) * 2019-04-30 2021-06-11 新华三技术有限公司 Message forwarding method and device
CN110290078A (en) * 2019-06-13 2019-09-27 杭州迪普科技股份有限公司 Message forwarding method, device, electronic equipment and machine readable storage medium
CN112152899B (en) * 2019-06-28 2023-04-07 中兴通讯股份有限公司 Data processing method and device based on network slice
CN110891325B (en) * 2019-12-10 2021-11-23 新华三大数据技术有限公司 Tunnel establishment method and device
CN111131435A (en) * 2019-12-19 2020-05-08 浙江源创建筑智能科技有限公司 Method for discovering and configuring Ethernet link layer equipment
CN111917624B (en) * 2020-07-13 2022-02-01 烽火通信科技股份有限公司 Method and system for transmitting control information in VXLAN transmission
CN114827027A (en) * 2021-01-19 2022-07-29 华为技术有限公司 Message processing method and related device
CN113794615B (en) * 2021-08-05 2023-04-25 新华三信息安全技术有限公司 Message forwarding method and device
CN114143244B (en) * 2021-11-24 2024-01-30 新华三大数据技术有限公司 Message processing method and device, storage medium and gateway equipment
CN114095420B (en) * 2022-01-20 2022-05-31 苏州浪潮智能科技有限公司 Link aggregation method and device, electronic equipment and storage medium
CN115834287B (en) * 2022-11-28 2023-11-14 北京神经元网络技术有限公司 Multi-domain data exchange equipment, network system and exchange method of broadband field bus

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103078969A (en) * 2013-02-01 2013-05-01 杭州华三通信技术有限公司 Method and equipment for announcing media access control (MAC) address information
CN103227843A (en) * 2012-08-31 2013-07-31 杭州华三通信技术有限公司 Physical link address management method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9363225B2 (en) * 2012-01-12 2016-06-07 Cisco Technology, Inc. Connecting layer-2 domains over layer-3 networks

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103227843A (en) * 2012-08-31 2013-07-31 杭州华三通信技术有限公司 Physical link address management method and device
CN103227757A (en) * 2012-08-31 2013-07-31 杭州华三通信技术有限公司 Message forwarding method and equipment
CN103078969A (en) * 2013-02-01 2013-05-01 杭州华三通信技术有限公司 Method and equipment for announcing media access control (MAC) address information

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Technology White Paper-TRILL;华为;《http://enterprise.huawei.com》;20130331;全文 *

Also Published As

Publication number Publication date
CN104378297A (en) 2015-02-25

Similar Documents

Publication Publication Date Title
CN104378297B (en) A kind of message forwarding method and equipment
CN104378296B (en) A kind of message forwarding method and equipment
CN110086714B (en) Handling multicast connection messages by multi-homed devices in Ethernet VPNs
CN103873373B (en) Multicast data message forwarding method and equipment
US20200067812A1 (en) First Hop Gateway Redundancy In A Network Computing Environment
US8694664B2 (en) Active-active multi-homing support for overlay transport protocol
US9112848B2 (en) 802.1aq support over IETF EVPN
CN104396192B (en) Dissymmetric network address encapsulates
CN103270736B (en) A kind of network equipment
US9036637B2 (en) Message transmission in virtual private networks
US20150023352A1 (en) Implement equal cost multiple path of trill network
US20150085862A1 (en) Forwarding Multicast Data Packets
CN107566263A (en) The method and the network equipment that layer 3 for EVPN link failures is assembled
CN102957589B (en) Method, network node and system for service data transmission
CN107948041B (en) Method and equipment for constructing VXLAN centralized multi-active gateway
WO2017099971A1 (en) Interconnection of switches based on hierarchical overlay tunneling
EP3528441B1 (en) Message forwarding
US8902794B2 (en) System and method for providing N-way link-state routing redundancy without peer links in a network environment
CN101800691A (en) Method, equipment and system for establishing data forwarding paths in ethernets
CN104579981B (en) A kind of multicast data packet forwarding method and apparatus
CN104009919A (en) Message forwarding method and device
CN113037883A (en) Method and device for updating MAC address table entries
CN108199960B (en) Multicast data message forwarding method, entrance routing bridge, exit routing bridge and system
CN114520762A (en) Method for sending BIERv6 message and first network equipment
CN104579980B (en) A kind of multicast data packet forwarding method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate 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