MAC Address synchronous method and the device of TRILL networkTechnical field
The application relates to network communications technology field, particularly a kind of MAC Address of TRILL networkSynchronous method and device.
Background technology
TRILL (TRansparentInterconnectionofLotsofLinks, multichain connects transparent interconnection)Agreement by by three layers of route technology IS-IS (IntermediateSystem-to-IntermediateSystem,Intermediate System-to-Intermediate System) mentality of designing introduce double layer network, thereby simple, flexibly by two layersProperty and three layers stable, can expand and high-performance organically blends, be applicable to very much data center and build largeThe needs of type double layer network. Below the basic concepts in TRILL agreement is simply introduced.
RB (RoutingBridge, routing bridge): the Bridge equipment of operation TRILL agreement is calledRB, also writes RBridge.
TRILL network: the double layer network being made up of RB is called TRILL network, as illustrated in fig. 1 and 2.
NickName (pet name): the address of RB in TRILL network is also that RB is at TRILL netUnique identification in network. Nickname is distributed automatically by system, without configuration.
AVF (AppointedVLAN-xForwarder, assigned vlan forwarding person) and designated port:TRILL agreement is relevant with VLAN (VirtualLocalAreaNetwork, VLAN), forPrevent loop, what all local flow on a network segment in a VLAN must be from same RBSame port goes out, enters TRILL network, and this RB is called the AVF of this VLAN, and corresponding port claimsFor designated port.
In prior art, in the time that RB receives user's unicast data message of local network, can be according to being somebody's turn to doObject MAC (MediaAccessControl, the media interviews control) address of user's unicast data messageIn local mac address table, search coupling list item with VLANID, if do not find coupling list item,After this user's unicast data message being packaged into TRILL multicast data message, in same VLAN, enterRow broadcast, but can take so the more network bandwidth, reduce message repeating efficiency. In order to solve thisProblem, IETF (InternetEngineeringTaskForce, Internet Engineering task groups) TRILL workAs group, use ESADI (EndStationAddressDistributionInformation, terminal are proposedAddress information is synchronous) agreement completes the synchronous of MAC Address. Taking the TRILL network shown in Fig. 1 asExample, illustrates and uses ESADI agreement to carry out the synchronous process of MAC Address.
As shown in Figure 1, RB201 (Nickname is 0x0201) learns by source MAC, learnsPractise and arrived the MAC Address mac1 of terminal device 1 in local network (VLANID is vlan1), andAdd in local mac address table, as shown in table 1:
Table 1
| MAC Address | VLAN ID | Outgoing interface |
| mac1 | vlan1 | RB201 connects the interface of local network |
After being designated as the AVF of vlan1, RB201 can be carried at ESADI by mac1 and vlan1In protocol massages, broadcast, other RB receives after this ESADI protocol massages, if this other RBEquipment is also the AVF of vlan1, can in local mac address table, add MAC as shown in table 2List item. Suppose, as the RB202 of the AVF of vlan1 in local mac address table, added asMAC address entries shown in table 2, the Nickname that the outgoing interface in this MAC address entries is RB201.
Table 2
| MAC Address | VLAN ID | Outgoing interface |
| mac1 | vlan1 | 0x0201 |
In the time that terminal device 2 is wanted to communicate by letter with terminal device 1, send target MAC (Media Access Control) address to RB202For user's unicast data message that mac1, VLANID are vlan1, it is single that RB202 receives this userAfter multicast data message, according to mac1 and vlan1, in local mac address table, find as tableCoupling list item shown in 2, is packaged into this user's unicast data message after TRILL unicast data messageSend to RB201. RB201 receives and carries out decapsulation after this TRILL unicast data message to obtain user singleMulticast data message, according to mac1 and vlan1 in this user's unicast data message, at local MACIn address table, find coupling list item as shown in table 1, thereby, can be by this user's unicast data messageBe transmitted to terminal device 1.
Therefore, synchronous by using ESADI agreement to carry out MAC Address, greatly reduce TRILLIn network, the quantity of the unicast message of target MAC (Media Access Control) address the unknown, has saved the network bandwidth, has improvedMessage repeating efficiency in TRILL network.
Within the data center of ESADI protocol application in TRILL network time, in these dataBetween all RB of the intracardiac AVF as same VLAN, mutual ESADI protocol massages, synchronously shouldThe MAC Address of all terminal devices in VLAN. When having disposed in multiple data in TRILL networkWhen the heart, if need to communicate between the terminal device at different pieces of information center, in multiple data centers, doBetween all RB for the AVF of same VLAN, need mutual ESADI protocol massages, be synchronously somebody's turn to doThe MAC Address of all terminal devices in VLAN.
But the MAC address entries spatial content on RB is limited, and, be deployed on diverse locationThe MAC address entries spatial content of RB not identical yet, wherein, the MAC address entries space of core layer RBCapacity is larger, and the MAC address entries spatial content of Access Layer RB is less, and terminal device generally all connectsOn Access Layer RB, so just require Access Layer RB except learning the terminal device in local networkMAC Address beyond, also to learn in same data center and in other data center as sameAll MAC Address that other RB of the AVF of VLAN synchronously comes, huge like this MAC address entriesQuantity is unaffordable for Access Layer RB.
Summary of the invention
In view of this, the application provides a kind of MAC Address synchronous method and device of TRILL network.
The application's technical scheme is as follows:
On the one hand, provide a kind of MAC Address synchronous method of TRILL network, in TRILL networkComprise at least Liang Ge data center, the method comprises:
The first core layer RB sends out to the Access Layer RB of the AVF of the same VLAN of conduct intracardiac in notebook dataSend the L1ESADI protocol massages that carries default MAC Address, so that receive L1ESADI agreement reportThe Access Layer RB of literary composition adds the first MAC address entries, the MAC in the first MAC address entries in mac address tableAddress is default MAC Address, the ID that VLANID is this VLAN, and outgoing interface is the first core layer RBNickName, the first MAC address entries for instruct forward from the VLAN of local network notKnow user's unicast data message;
The first core layer RB sends a L2ESADI association to the second core layer RB in other data centerView message, carries in the notebook data that the first core layer RB learns intracardiac in a L2ESADI protocol massagesVLAN in MAC Address so that the second core layer RB adds the 2nd MAC in mac address tableList item, the MAC Address in the second MAC address entries is the MAC ground in a L2ESADI protocol massagesLocation, the ID that VLANID is VLAN, outgoing interface is the NickName of the first core layer RB;
The first core layer RB receives the 2nd L2ESADI protocol massages that the second core layer RB sends, secondIn self place data center of carrying in L2ESADI protocol massages that the second core layer RB learnsMAC Address in VLAN;
The first core layer RB adds the 3rd MAC address entries in mac address table, in the 3rd MAC address entriesMAC Address be the MAC Address in the 2nd L2ESADI protocol massages, VLANID is VLANID, outgoing interface is the NickName of the second core layer RB.
On the other hand, also provide a kind of MAC Address synchronous method of TRILL network, TRILL networkComprise at least Liang Ge data center, the method comprises:
Access Layer RB receives the default MAC Address that carries that core layer RB intracardiac in notebook data sendsL1ESADI protocol massages;
Access Layer RB adds MAC address entries in mac address table, and the MAC Address in MAC address entries isDefault MAC Address, VLANID is L1ESADI protocol massages for the ID of VLAN, go out to connectMouth is the NickName of core layer RB, and MAC address entries is for instructing the VLAN forwarding from local networkInterior unknown subscriber's unicast data message.
Another aspect, also provides a kind of MAC Address sychronisation of TRILL network, TRILL networkComprise at least Liang Ge data center, in the first core layer RB of this application of installation in data center, this dressPut and comprise:
The first protocol massages sending module, for the AVF's to the intracardiac same VLAN of conduct of notebook dataAccess Layer RB sends the L1ESADI protocol massages that carries default MAC Address, so that receive L1The Access Layer RB of ESADI protocol massages adds the first MAC address entries in mac address table, a MACMAC Address in list item is default MAC Address, and the ID that VLAN mark ID is VLAN, goes out to connectMouth is the NickName of the first core layer RB, and the first MAC address entries is used for instructing forwarding from LANUnknown subscriber's unicast data message in the VLAN of network;
Second protocol message sending module, sends first for the second core layer RB in other data centerL2ESADI protocol massages, carries in a L2ESADI protocol massages that the first core layer RB learnsMAC Address in notebook data in intracardiac VLAN, so that the second core layer RB is in mac address tableAdd the second MAC address entries, the MAC Address in the second MAC address entries is a L2ESADI agreement reportMAC Address in literary composition, the ID that VLANID is this VLAN, outgoing interface is the first core layer RB'sNickName;
Receiver module, the 2nd L2ESADI protocol massages sending for receiving the second core layer RB, secondIn self place data center of carrying in L2ESADI protocol massages that the second core layer RB learnsMAC Address in VLAN;
List item adds module, for receive the 2nd L2ESADI protocol massages at receiver module after,In mac address table, add the 3rd MAC address entries, the MAC Address in the 3rd MAC address entries is the 2nd L2MAC Address in ESADI protocol massages, the ID that VLANID is VLAN, outgoing interface is the second coreThe NickName of layer RB.
Another aspect, also provides a kind of MAC Address sychronisation of TRILL network, TRILL networkComprise at least Liang Ge data center, in the Access Layer RB of this application of installation in data center, this device bagDraw together:
Receiver module, carries default MAC ground for what receive that the intracardiac core layer RB of notebook data sendsThe L1ESADI protocol massages of location;
List item adds module, for receive taking that the intracardiac core layer RB of notebook data sends at receiver moduleAfter L1ESADI protocol massages with default MAC Address, in mac address table, add MACList item, the MAC Address in MAC address entries is default MAC Address, VLANID is L1ESADI associationView message for the ID of VLAN, outgoing interface is the NickName of core layer RB, MAC address entriesForward from the unknown subscriber's unicast data message in the VLAN of local network for instructing.
In the application's above technical scheme, the MAC table of preserving in the mac address table of core layer RBQuantity is larger, not only preserved MAC Address in all VLAN intracardiac in notebook data correspondingMAC address entries, has also preserved MAC corresponding to MAC Address of all VLAN in other data centerList item; And the MAC address entries quantity of preserving in the mac address table of Access Layer RB is little, only preserve thisThe intracardiac same VLAN of conduct in MAC address entries that MAC Address in zone network is corresponding, notebook dataMAC address entries corresponding to the MAC Address that synchronously comes of other Access Layer RB of AVF and defaultThe MAC address entries that MAC Address is corresponding, that is, in the mac address table of Access Layer RB without preserve itsThe MAC ground that other Access Layer RB of the AVF of the same VLAN of conduct in its data center learnsThe MAC address entries that location is corresponding, thereby, alleviate the MAC address learning pressure of Access Layer RB, saveThe MAC address entries quantity of Access Layer RB.
Brief description of the drawings
Fig. 1 is a kind of Organization Chart of TRILL network of data;
Fig. 2 is the synchronous flow chart of MAC Address of the core layer RB of the embodiment of the present application;
Fig. 3 is the L1ESADI protocol massages of the embodiment of the present application and the report of L2ESADI protocol massagesLiterary composition structural representation;
Fig. 4 is the structural representation of the ESADIPayload in Fig. 3;
Fig. 5 is the structural representation of the VariableLengthFields in Fig. 4;
Fig. 6 is that the Access Layer RB of the embodiment of the present application forwards the user's clean culture receiving from local networkThe flow chart of data message;
Fig. 7 is the flow chart that the core layer RB of the embodiment of the present application forwards TRILL unicast data message;
Fig. 8 is a kind of configuration diagram of the TRILL network that is deployed with Liang Ge data center of reality;
Fig. 9 is the knot that is applied to the MAC Address sychronisation in core layer RB of the embodiment of the present applicationStructure schematic diagram;
Figure 10 is the knot that is applied to the MAC Address sychronisation in Access Layer RB of the embodiment of the present applicationStructure schematic diagram.
Detailed description of the invention
In prior art, multiple data centers in TRILL network, are disposed, the end at different pieces of information centerWhile needing to communicate between end equipment, Access Layer RB is except learning the terminal device in local networkMAC Address beyond, also to learn in same data center and in other data center as sameAll MAC Address that other RB of the AVF of VLAN synchronously comes, huge like this MAC address entriesQuantity is unaffordable for Access Layer RB. Ask in order to solve exist in prior art above-mentionedInscribe, in the embodiment of the present application, provide a kind of MAC Address synchronous method of TRILL network, Yi JiyiPlant the MAC Address sychronisation of the TRILL network that can apply the method.
The embodiment of the present application is applied in the TRILL network that comprises multiple data centers.
The MAC Address synchronous method of the TRILL network in the embodiment of the present application comprises following content:
One, MAC Address synchronizing process
Keeper, by the mode of static configuration, is configured to core by the role of the RB in data centerLayer RB. For example, a RB who configures in same data center is core layer RB, and configures other RBFor Access Layer RB; Or a RB who configures in same data center is core layer RB, other RBBe Access Layer RB.
The first Access Layer RB, the second Access Layer RB, the first core layer RB and the second core hereinafterLayer RB do not refer in particular to a certain Access Layer RB and a certain core layer RB, just makes for convenience of descriptionName.
The first Access Layer RB, after the user's unicast data message receiving from local network, carries outThe study of source MAC, by source MAC and the VLANID thereof of this user's unicast data messageStudy in mac address table, wherein, corresponding outgoing interface be this user's unicast data message enter to connectMouthful.
The first Access Layer RB also can in notebook data intracardiac as same VLAN (for convenience,Be designated as VLAN1) the second Access Layer RB of AVF send L1 (Level1, one deck) ESADIProtocol massages, carries in L1ESADI protocol massages in the local network that the first Access Layer RB learnsMAC Address in VLAN1, so that the second Access Layer RB adds MAC in mac address tableList item, the MAC Address in this MAC address entries is the MAC Address in L1ESADI protocol massages,VLANID is the ID of VLAN1, and outgoing interface is the NickName of the first Access Layer RB. Like this,All Access Layer RB of the AVF of the same VLAN of conduct in same data center are by mutual L1ESADI protocol massages, has realized the synchronous of all MAC Address in same VLAN.
All Access Layer RB of the AVF of the same VLAN of conduct in above-mentioned same data centerIn the process of mutual L1ESADI protocol massages, the core layer RB in this data center (is called the first coreHeart layer RB) can intercept these L1ESADI protocol massages, and by the L1ESADI agreement report listening toMAC Address in literary composition and VLANID thereof learn in mac address table, and wherein, corresponding goes out to connectMouth is the NickName of the Access Layer RB of this L1ESADI protocol massages of transmission. By above-mentioned interceptingWith MAC address learning process, the first core layer RB can obtain all VLAN intracardiac in notebook dataInterior MAC Address.
The first core layer RB can send the ESADI protocol massages of two types: L1ESADI agreement reportLiterary composition and L2 (Level2, two layers) ESADI protocol massages.
Concrete, for each VLAN intracardiac in notebook data, it is right that the first core layer RB can generateThe L1ESADI protocol massages of answering also sends to the institute of the intracardiac AVF as this VLAN in notebook dataThere is Access Layer RB, wherein, in this L1ESADI protocol massages, carry default MAC Address; ReceiveAccess Layer RB to this L1ESADI protocol massages can add corresponding MAC in mac address tableList item, the MAC Address in this MAC address entries is default MAC Address, VLANID is this VLANID, outgoing interface is the NickName of the first core layer RB.
In actual implementation process, default MAC Address can be the unicast mac address of arbitrary reservation,For example, 0000-0000-0000. The first core layer RB obtains the mode of VLAN intracardiac in notebook dataCan there be following two kinds of modes:
Mode one, static configuration mode
By keeper, the VLAN in data center is configured to the first core layer RB in this data centerUpper, like this, according to user's configuration, the VLANID in the first core layer RB meeting minute book data center,Then,, for this VLANID, generate the corresponding L1ESADI agreement that carries default MAC AddressMessage also sends to the Access Layer RB of the AVF of this VLAN of conduct intracardiac in notebook data.
Mode two, Dynamic Acquisition mode
Due in the mistake of intercepting the L1ESADI protocol massages that Access Layer RB intracardiac in notebook data sendsCheng Zhong, the first core layer RB can be by the MAC Address in the L1ESADI protocol massages listening to andVLANID learns in mac address table, thereby the first core layer RB can get notebook dataIn intracardiac VLAN. Like this, whether the first core layer RB can detect in mac address table and occurNew VLANID, if there is a new VLANID, generate corresponding for this VLANIDThe L1ESADI protocol massages that carries default MAC Address and send to work intracardiac in notebook dataFor the Access Layer RB of the AVF of this VLAN.
In addition, in different pieces of information, between intracardiac core layer RB, also can mutually send L2ESADI agreementMessage, as shown in Figure 2, the first core layer RB can carry out following steps:
Step S102, carries the MAC Address in same VLAN intracardiac in the notebook data of learningIn L2ESADI protocol massages, send to the second core layer RB in other data center;
Wherein, study to notebook data in MAC Address in intracardiac same VLAN be: MACIn address table from the L1ESADI protocol massages learning that listens to this VLAN in MAC groundLocation.
Step S104, receives the L2ESADI protocol massages that the second core layer RB sends, wherein,Self the place number that carries in the L2ESADI protocol massages receiving that the second core layer RB learnsAccording in MAC Address in intracardiac this VLAN;
Step S106 adds MAC address entries in mac address table, the MAC in this MAC address entriesAddress is the MAC Address in the L2ESADI protocol massages receiving, and VLANID is this VLANID, outgoing interface is the NickName of the second core layer RB. Like this, intracardiac core in different pieces of informationMutual L2ESADI protocol massages between heart layer RB, can realize intracardiac owning in different pieces of informationThe MAC Address of VLAN synchronous.
In actual implementation process, if the first core layer RB has also connected local network, that is, and firstCore layer RB is also Access Layer RB simultaneously, and so, the first core layer RB also can carry out above-mentioned first and connectEnter MAC address learning and synchronizing process that layer RB need to carry out. L1ESADI protocol massages and L2ESADI protocol massages sends according to VLAN,, generates corresponding L1 for arbitrary VLAN that isESADI protocol massages or L2ESADI protocol massages send, this L1ESADI protocol massages orIn L2ESADI protocol massages, only carry the MAC Address that belongs to this VLAN.
L1ESADI protocol massages is ESADI protocol massages of the prior art, L1ESADI agreementMessage only sends on the interface of L1 type; And L2ESADI protocol massages and L1ESADI agreement reportLiterary composition is different, only on the interface of L2 type, sends. L1ESADI protocol massages and L2ESADI agreementAs shown in Figure 3, ESADIPayload (ESADI load) is wherein for carrying MAC for the form of messageAddress. As shown in Figure 4, ESADIPayload comprises PDUType and VariableLengthFields,Be introduced respectively below:
PDUType (protocol Data Unit type): for identifying the type of this ESADI protocol massagesL1ESADI protocol massages or L2ESADI protocol massages, L1ESADI protocol massages and L2The PDUType value difference of ESADI protocol massages;
VariableLengthFields (variable-length territory): can carry as shown in Figure 5 multiple in this territoryMACReachabilityTLV ((TypeLengthValue, type is long for MAC accessibility TLVDegree value)), in MACReachabilityTLV, mainly comprise following field: Type, Length, VLAN-IDAnd MAC. Wherein:
Type: type is 147;
Value portion in Length:MACReachabilityTLV except Type and LengthThe total length dividing, for (5+6 × n) byte, wherein, the number that n is MAC Address;
VLANID under VLAN-ID:MAC address, according to RFC (RequestForComments, Request for Comment) 7357 requirement, this field must be set to zero. Receiving terminal study MACWhen MAC Address in ReachabilityTLV, no matter the value in VLAN-ID is how many, shouldMAC address learning is in mac address table time, and the value of VLANID should be used this ESADI agreement reportThe value of VLANID in InnerEthernetAddress (internal layer ethernet address) in literary composition.
MAC (i): for carrying MAC Address, the length of this field is 6 bytes.
Therefore, by above-mentioned MAC Address synchronizing process, the mac address table of core layer RBThe MAC address entries quantity of middle preservation is larger, not only preserved in all VLAN intracardiac in notebook dataThe MAC address entries that MAC Address is corresponding, has also preserved the MAC of all VLAN in other data centerThe MAC address entries that address is corresponding; And the MAC address entries number of preserving in the mac address table of Access Layer RBAmount seldom, is only preserved in MAC address entries that MAC Address in local network is corresponding, notebook data intracardiacMAC corresponding to MAC Address synchronously coming as other Access Layer RB of the AVF of same VLANList item and MAC address entries corresponding to default MAC Address, that is, and the MAC Address of Access Layer RBIn table without other Access Layer RB of AVF that preserves the same VLAN of conduct in other data centerMAC address entries corresponding to MAC Address that study is arrived, thereby, the MAC of Access Layer RB alleviatedLocation learning pressure, has saved the MAC address entries quantity of Access Layer RB.
Two, message repeating process
As shown in Figure 6, the method for the first Access Layer RB forwarding user unicast data message comprises following stepRapid:
Step S202, after receiving user's unicast data message, according to this user from local networkThe target MAC (Media Access Control) address of unicast data message and VLANID search matching list in mac address table;
Step S204, judges whether to have found coupling list item, if so, performs step S206, no, execution step S208;
Step S206, according to the outgoing interface in the coupling list item finding, by this user's unicast data messageForward;
Wherein, in step S206, if the outgoing interface in the coupling list item finding is local interface,This user's unicast data message is sent by this local interface; If in the coupling list item findingOutgoing interface be NickName, according to this NickName, this user's unicast data message is packaged intoAfter TRILL unicast data message, send.
Step S208 searches and includes default MAC Address and this user's clean culture in mac address tableThe MAC address entries of the VLANID of data message;
Step S210, judges whether to have found and includes default MAC Address and this user's unicast dataThe MAC address entries of the VLANID of message, if so, performs step S212, otherwise, execution stepS214;
Step S212, according to the outgoing interface in this MAC address entries, by this user's unicast data message encapsulationAfter becoming TRILL unicast data message, be transmitted to core layer RB intracardiac in notebook data;
Owing to including the MAC of VLANID of default MAC Address and this user's unicast data messageOutgoing interface in list item is the NickName of core layer RB intracardiac in notebook data, therefore, and step S212In, can be by TRILL unicast data message repeating to core layer RB intracardiac in notebook data.
Step S214, abandons this user's unicast data message.
The method of the first Access Layer RB forwarding TRILL unicast data message is same as the prior art: receivingThe TRILL unicast data message of the NickName that is this equipment to Egress (going out) RBNickName itAfter, this TRILL unicast data message is carried out to decapsulation and obtain user's unicast data message, according to this userThe target MAC (Media Access Control) address of unicast data message and VLANID find coupling list item in mac address table,According to the outgoing interface in this coupling list item by this user's unicast data message repeating in local network.
As shown in Figure 7, the method for the first core layer RB forwarding TRILL unicast data message comprises following stepRapid:
Step S302, is receiving the TRILL that EgressRBNickName is the NickName of this equipmentAfter unicast data message, this TRILL unicast data message is carried out to decapsulation and obtain user's unicast data reportLiterary composition;
Step S304, according to target MAC (Media Access Control) address and the VLANID of this user's unicast data message,In mac address table, search coupling list item;
Step S306, according to the outgoing interface in the coupling list item finding, turns this user's unicast data messageSend out.
Concrete, in step S306, if the outgoing interface in the coupling list item finding is intracardiac in notebook dataThe NickName of Access Layer RB, according to this NickName, this user's unicast data message is packaged intoAfter TRILL unicast data message, send to this Access Layer RB; If the outgoing interface in the coupling list item finding isThe NickName of the second core layer RB in other data center, according to this NickName by this userUnicast data message sends the second core layer RB after being packaged into TRILL unicast data message; If findThe outgoing interface of joining in list item is local interface, this user's unicast data message is forwarded by this local interfaceIn local network.
Taking the TRILL network that comprises multiple data centers shown in Fig. 8 as example, describe above-mentioned enforcement in detailThe method of example. In Fig. 8, the Nickname of each RB is identical with its numbering, for example, and RB100Nickname be 0x0100; The MAC Address of terminal device 1~6 be respectively 0000-0000-0101,0000-0000-0102、0000-0000-0103、0000-0000-0104、0000-0000-0105、0000-0000-0106, affiliated VLAN is vlan1; Terminal device 1 and data in data center 1In center 2, terminal device 4 will communicate; RB100 and RB200 are configured to core layer RB, andRB101, RB102, RB103, RB201, RB202 and RB203 are Access Layer RB; Default MACRepresent with 0000-0000-0000.
In data center 1, RB101 is by the source to the user's unicast data message from local networkMAC Address is learnt, and the L1ESADI protocol massages that reception RB102 and RB103 send is gone forward side by sideRow MAC address learning, and receive the L1ESADI protocol massages sent of RB100 and carry out MACAddress learning, obtains mac address table as shown in table 3; RB100 is by intercepting RB101, RB102With RB103 send L1ESADI protocol massages and carry out MAC address learning, and receive RB200The L2ESADI protocol massages of sending also carries out MAC address learning, obtains MAC as shown in table 4Address table.
Table 3
| MAC Address | VLAN ID | Outgoing interface |
| 0000-0000-0101 | vlan1 | Eth1/1 |
| 0000-0000-0102 | vlan1 | 0x0102 |
| 0000-0000-0103 | vlan1 | 0x0103 |
| 0000-0000-0000 | vlan1 | 0x0100 |
Table 4
| MAC Address | VLAN ID | Outgoing interface |
| 0000-0000-0101 | vlan1 | 0x0101 |
| 0000-0000-0102 | vlan1 | 0x0102 |
| 0000-0000-0103 | vlan1 | 0x0103 |
| 0000-0000-0201 | vlan1 | 0x0200 |
| 0000-0000-0202 | vlan1 | 0x0200 |
| 0000-0000-0203 | vlan1 | 0x0200 |
In data center 2, RB201 is by the source to the user's unicast data message from local networkMAC Address is learnt, and the L1ESADI protocol massages that reception RB202 and RB203 send is gone forward side by sideRow MAC address learning, and receive the L1ESADI protocol massages sent of RB200 and carry out MACAddress learning, obtains mac address table as shown in table 5; RB200 is by intercepting RB201, RB202With RB203 send L1ESADI protocol massages and carry out MAC address learning, and receive RB100The L2ESADI protocol massages of sending also carries out MAC address learning, obtains MAC as shown in table 6Address table.
Table 5
| MAC Address | VLAN ID | Outgoing interface |
| 0000-0000-0201 | vlan1 | Eth1/1 |
| 0000-0000-0202 | vlan1 | 0x0202 |
| 0000-0000-0203 | vlan1 | 0x0203 |
| 0000-0000-0000 | vlan1 | 0x0200 |
Table 6
| MAC Address | VLAN ID | Outgoing interface |
| 0000-0000-0201 | vlan1 | 0x0201 |
| 0000-0000-0202 | vlan1 | 0x0202 |
| 0000-0000-0203 | vlan1 | 0x0203 |
| 0000-0000-0101 | vlan1 | 0x0100 |
| 0000-0000-0102 | vlan1 | 0x0100 |
| 0000-0000-0103 | vlan1 | 0x0100 |
When terminal device 1 will send user's unicast data message to terminal device 4, terminal device 1 toRB101 sends user's unicast data message, and the source MAC of this user's unicast data message is0000-0000-0101, target MAC (Media Access Control) address are that 0000-0000-0201, VLANID are vlan1.
After RB101 receives this user's unicast data message, according to target MAC (Media Access Control) address0000-0000-0201 and VLANIDvlan1 search coupling in mac address table as shown in table 3List item, result does not find coupling list item, again in mac address table as shown in table 3, looks intoLook for the MAC address entries that includes default MAC Address 0000-0000-0000 and vlan1, result findsAs the MAC address entries of table 3 the 5th row, according to the outgoing interface 0x0100 in this MAC address entries, shouldUser's unicast data message is transmitted to RB100 after being packaged into TRILL unicast data message.
After RB100 receives this TRILL unicast data message, to this TRILL unicast data messageCarry out decapsulation and obtain user's unicast data message, according to the object MAC of this user's unicast data messageAddress 0000-0000-0201 and VLANIDvlan1 look in mac address table as shown in table 4Look for coupling list item, result has found as the MAC address entries of table 4 the 5th row, according in this MAC address entriesOutgoing interface 0x0200, again this user's unicast data message is packaged into TRILL unicast data messageAfter be transmitted to RB200.
After RB200 receives this TRILL unicast data message, to this TRILL unicast data messageCarry out decapsulation and obtain user's unicast data message, according to the object MAC of this user's unicast data messageAddress 0000-0000-0201 and VLANIDvlan1 look in mac address table as shown in table 6Look for coupling list item, result has found as the MAC address entries of table 6 the 2nd row, according in this MAC address entriesOutgoing interface 0x0201, again this user's unicast data message is packaged into TRILL unicast data messageAfter be transmitted to RB201.
After RB201 receives this TRILL unicast data message, to this TRILL unicast data messageCarry out decapsulation and obtain user's unicast data message, according to the object MAC of this user's unicast data messageAddress 0000-0000-0201 and VLANIDvlan1 look in mac address table as shown in table 5Look for coupling list item, result has found as the MAC address entries of table 5 the 2nd row, by this user's unicast dataMessage sends to terminal device 4 by the outgoing interface Eth1/1 in this MAC address entries.
After terminal device 4 is received this user's unicast data message, if want to reply message, replyRepeating process and the said process of user's unicast data message are similar, repeat no more here.
For the method in above-described embodiment, in the embodiment of the present application, also provide a kind of the method for can applyingThe MAC Address sychronisation of TRILL network.
As shown in Figure 9, in the time that this application of installation is in core layer RB, this device comprises with lower module: theOne protocol massages sending module 401, second protocol message sending module 402, receiver module 403 and list item addAdd module 404, wherein:
The first protocol massages sending module 401, for the AVF to the intracardiac same VLAN of conduct of notebook dataAccess Layer RB send and carry the L1ESADI protocol massages of default MAC Address so that receive L1The Access Layer RB of ESADI protocol massages adds the first MAC address entries in mac address table, a MACMAC Address in list item is default MAC Address, the ID that VLANID is this VLAN, and outgoing interface isThe NickName of the first core layer RB, the first MAC address entries forwards from local network for instructingUnknown subscriber's unicast data message in VLAN;
Second protocol message sending module 402, sends for the second core layer RB in other data centerThe one L2ESADI protocol massages, carries the first core layer RB study in a L2ESADI protocol massagesTo notebook data in MAC Address in intracardiac VLAN so that the second core layer RB is at MAC AddressIn table, add the second MAC address entries, the MAC Address in the second MAC address entries is a L2ESADI associationMAC Address in view message, the ID that VLANID is VLAN, outgoing interface is the first core layer RB'sNickName;
Receiver module 403, the 2nd L2ESADI protocol massages sending for receiving the second core layer RB,In self place data center of carrying in the 2nd L2ESADI protocol massages that the second core layer RB learnsMAC Address in VLAN;
List item add module 404, for receive at receiver module 403 the 2nd L2ESADI protocol massages itAfter, in mac address table, adding the 3rd MAC address entries, the MAC Address in the 3rd MAC address entries isMAC Address in the 2nd L2ESADI protocol massages, the ID that VLANID is this VLAN, outgoing interfaceBe the NickName of the second core layer RB.
Wherein, as shown in Figure 9, in this device, also comprise: decapsulation module 405, search module 406, envelopeDress module 407 and TRILL message sending module 408, wherein:
Receiver module 403, for receiving TRILL unicast data message;
Decapsulation module 405, for receiving EgressRBNickName for originally establishing at receiver module 403After the TRILL unicast data message of standby NickName, TRILL unicast data message is carried out to deblockingDress obtains user's unicast data message;
Search module 406, the user's unicast data message obtaining for 405 decapsulations according to decapsulation moduleTarget MAC (Media Access Control) address and VLANID search coupling list item in mac address table;
Package module 407, if found coupling list item for searching module 406, according to coupling list itemIn outgoing interface, user's unicast data message is packaged into TRILL unicast data message;
TRILL message sending module 408, for encapsulating by package module 407 the TRILL clean culture number obtainingSend according to message.
Wherein, the first protocol massages sending module 401 comprises: L1ESADI protocol massages generation unit andL1ESADI protocol massages transmitting element, wherein:
L1ESADI protocol massages generation unit, for the ID for VLAN, generates corresponding carryingThe L1ESADI protocol massages of default MAC Address;
L1ESADI protocol massages transmitting element, for what generate L1ESADI protocol massages generation unitL1ESADI protocol massages, sends to the Access Layer RB of the AVF as VLAN intracardiac in notebook data,Wherein, VLAN is user configured VLAN, or intracardiac VLAN in the notebook data of learning.
In another embodiment, in the time that this application of installation is in Access Layer RB, as shown in figure 10, in this deviceComprise: receiver module 501 and list item add module 502, wherein:
Receiver module 501, for receiving the default MAC that carries that the intracardiac core layer RB of notebook data sendsThe L1ESADI protocol massages of address;
List item adds module 502, for receive the intracardiac core layer RB of notebook data at receiver module 501After the L1ESADI protocol massages that carries default MAC Address of sending, in mac address table, addAdd MAC address entries, the MAC Address in MAC address entries is default MAC Address, and VLANID is L1ESADI protocol massages for the ID of VLAN, outgoing interface is the NickName of core layer RB, MACList item forwards from the unknown subscriber's unicast data message in the VLAN of local network for instructing.
In addition, as shown in figure 10, in this device, also comprise: search module 503, package module 504 and send outSend module 505, wherein:
Receiver module 501, also for receiving the user's unicast data message from local network;
Search module 503, for receive the user's unicast data report from local network at receiver module 501After literary composition, according to target MAC (Media Access Control) address and the VLANID of user's unicast data message, at mac address tableIn search coupling list item, if do not find coupling list item, search and include default MAC Address and userThe MAC address entries of the VLANID of unicast data message;
Package module 504, if found and included default MAC Address and user for searching module 503The MAC address entries of the VLANID of unicast data message, according to going out to connect in the MAC address entries findingMouthful, user's unicast data message is packaged into TRILL unicast data message;
Sending module 505, for encapsulating by package module 504 the TRILL unicast data message repeating obtainingGive intracardiac core layer RB in notebook data.
In addition, as shown in figure 10, in this device, also comprise: discard module 506, if for searching module 503Do not find the MAC table of the VLANID that includes default MAC Address and user's unicast data message, abandon user's unicast data message.
To sum up, the above embodiment of the application can reach following technique effect:
(1) the MAC address entries quantity of preserving in the mac address table of core layer RB is larger, not only protectsDeposit MAC address entries corresponding to MAC Address in all VLAN intracardiac in notebook data, also preservedMAC address entries corresponding to MAC Address of all VLAN in other data center; And Access LayerThe MAC address entries quantity of preserving in the mac address table of RB is little, only preserves the MAC in local networkOther access of the AVF of the intracardiac same VLAN of conduct in MAC address entries corresponding to address, notebook dataMAC address entries and default MAC Address that the synchronous next MAC Address of layer RB is corresponding are correspondingMAC address entries, that is, in the mac address table of Access Layer RB without the work of preserving in other data centerMAC table corresponding to MAC Address of learning for other Access Layer RB of the AVF of same VLAN, thereby, alleviate the MAC address learning pressure of Access Layer RB, save Access Layer RB'sMAC address entries quantity.
(2) after Access Layer RB in source receives the unknown subscriber's unicast data message in local network, meetingIn mac address table, find and include default MAC Address and this user's unicast data messageThe MAC address entries of VLANID, then, according to the outgoing interface in this MAC address entries by this user's clean cultureData message is transmitted to core layer RB intracardiac in notebook data after being packaged into TRILL unicast data message(referred to as source core layer RB), successively via source core layer RB, object Access Layer RB place dataIn intracardiac core layer RB (referred to as object core layer RB) and object Access Layer RB, finally arriveObject terminal device. Thereby, can forward by the form of clean culture for unknown subscriber's unicast data messageTo object terminal device, reduce the message amount in TRILL network, save the network bandwidth, guaranteeAcross the data retransmission efficiency of the TRILL network of data center.
The foregoing is only the application's preferred embodiment, not in order to limit the application, all at thisWithin the spirit and principle of application, any amendment of making, be equal to replacement, improvement etc., all should be included inWithin the scope of the application's protection.