Detailed description of the invention
Embodiments providing a kind of mac address information and notice scheme, the program can be applicable to EVI
Network or similar two layers of internet, such as OTV(Overlay Transport Virtualization, cover
Lid transfer of virtual) network.As a example by the application in EVI network, the embodiment of the present invention is carried out in detail below
Thin description.
The embodiment of the present invention, in EVI network, by increasing the way of EVI-ISIS parameter, allows EVI stand
Point device (i.e. equipment in the edge device of station network, namely EVI network) is at war with, and elects
EVI home site equipment, is operated by this home site equipment adapter mac address information synchronization process, thus reaches
Transmission to the invalid mac address information between the purpose of minimizing network traffics, and minimizing site apparatus.
In order to achieve the above object, EVI site apparatus is increased as properties by the embodiment of the present invention:
(1) the ID attribute of EVI site apparatus, for identifying different EVI site apparatus, such as,
After receiving the EVI-ISIS LSP message for noticing mac address information, take according in this LSP message
The ID of the site apparatus of band identifies that this LSP message comes from which EVI site apparatus and this EVI
The Network ID of site apparatus;
(2) priority attribute of EVI website, is used for carrying out home site equipment competition;
(3) EVI-ISIS increases the TLV(Type containing priority attribute, Length, Value, type,
Length, numerical value), it is used for carrying out home site equipment competition.
First below the ID attribute of EVI site apparatus defined in the embodiment of the present invention is illustrated.
At present, it is Network ID that EVI is used for distinguishing the mark of network topology, and span is 1-16777215
(hexadecimal is converted into 1-FFFFFF, totally 6 bytes), it is real that Network ID is used for identifying EVI network
Example, all edge devices in same EVI network example must configure identical Network ID.
In view of under normal circumstances, for identifying have more than is needed 6 bytes of Network ID of EVI network example
Length, therefore the first character in existing Network ID is saved and sets as EVI website by the embodiment of the present invention
Standby numbering, it is used for identifying EVI network example, i.e. by remaining 5 byte as Network with 5 bytes
ID。
Such as, the ID attribute of an EVI site apparatus is 0001-1111-1111-1111-1111-1111, its
Middle first character joint " 0001 " is the device numbering of this site apparatus, i.e. the device numbering of this site apparatus
Being 1, remaining 5 byte-identifier has gone out the network ID of this site apparatus.
When implementing, network ID and device numbering the two Site ID property parameters separately can be carried
Supply user's configuration, to realize the convenience of EVI site apparatus ID attribute configuration.
Certainly, in addition to using aforesaid way configuration EVI site apparatus ID attribute, it would however also be possible to employ its
Its mode configures, and a kind of EVI site apparatus ID allocation rule of such as definition, is each EVI according to this rule
Site apparatus distribution Site ID, as long as ensureing that the ID of the site apparatus of distribution can uniquely identify an EVI
Site apparatus also can indicate the network ID of this site apparatus.
In the embodiment of the present invention, in addition to needs configure ID attribute on EVI site apparatus, also will be
Configuration preference level on EVI site apparatus, the priority of different EVI site apparatus can difference can also phase
With.The priority of site apparatus is the Main Basis of home site election.In the embodiment of the present invention, EVI website
During equipment carries out neighbor uni-cast according to ENDP agreement, it is achieved home site equipment is elected.
The basic functional principle of ENDP agreement is: dispose ENDS(EVI on the edge device of station network
Neighbor Discovery Server, EVI neighbor uni-cast server) and ENDC(EVI Neighbor
Discovery Client, EVI neighbor uni-cast client), wherein, ENDS itself is also an ENDC;
ENDS learns the letter of ENDC by receiving the logon message (EVI-ISIS hello packet) of ENDC
Breath, issues same EVI by registration reply message (EVI-ISIS hello packet) to ENDC simultaneously
The information of all ENDC in network example.After ENDC receives response message, with same EVI network
Each ENDC in example sets up EVI Link.Each edge device and its neighbours' edge device are set up neighbours and are closed
After system, form EVI network, locally created and safeguard ENDP at EVI site apparatus (i.e. edge device)
Neighbor table, wherein record has the relevant information of neighbor site equipment.
EVI-ISIS hello packet mutual in neighbor discovery process is extended by the embodiment of the present invention, makes
It can carry the priority attribute information of EVI site apparatus, in order to realize the competition of home site equipment.
Current EVI-ISIS realizes being to make foster son TLV by oneself by increase in ISIS hello packet to realize
EVI basic function, the TLV carried in EVI-ISIS hello packet at present includes EVI Neighbor
TLV(EVI neighbours TLV, this TVL are essential option), Multi Topology aware Port Capability
TLV(many topology ambiguity port capabilities TLV, i.e. port capabilities collection, this TLV is essential option, and EVI needs
This TLV is used to carry the sub-TLV of several key).In the embodiment of the present invention, to Multi Topology aware
Port Capability TLV is extended so that it is under carry the sub-TLV of site apparatus priority attribute.
Certainly, by the way of extension Multi Topology aware Port Capability TLV, site apparatus is carried
Priority attribute is only a kind of optimal way, it is possible to other TLV of ISIS hello packet is extended or
Person newly increases TLV to carry website priority attribute in ISIS hello packet.
Fig. 2 shows the form of existing Multi Topology aware Port Capability TLV.Fig. 3 shows
Go out in the Multi Topology aware Port Capability TLV after extension excellent for carrying site apparatus
The sub-TLV form of first level attribute, this sub-TLV can be described as Site-priority sub-TLV(website-priority
Sub-TLV), being described as follows of the most each field:
The type of Type:TLV is PRIORITY-TLV(priority TLV), value can be 223;
The length of Length:TLV, can be 51 bytes;
PRIORITY: priority attribute value;
The bridge MAC Address of Bridge MAC: equipment, form is XXXX-XXXX-XXXX.
The embodiment of the present invention carries out home site equipment competition in website neighbor discovery process.
The definition of ID attribute based on above-mentioned site apparatus, and the extension to EVI-ISIS hello packet,
Neighbor discovery process in the embodiment of the present invention comprises the steps that
Each ENDC sends logon message (the EVI-ISIS hello report carrying own priority to ENDS
Literary composition, the extended mode of this EVI-ISIS hello packet is ditto described);ENDS receives what ENDC sent
After carrying the logon message of priority, (EVI-ISIS hello reports to return registration reply message to ENDC
Literary composition, the extended mode of this EVI-ISIS hello packet is ditto described), this registration reply message carry same
The information of all ENDC in one EVI network example, including the ID of site apparatus, priority etc.
Information;After ENDC receives response message, set up with each ENDC in same EVI network example
EVI Link.By above flow process, each EVI site apparatus can obtain the priority of its neighbor site equipment,
So, each EVI site apparatus just can according to the priority of oneself and the priority of neighbor site equipment,
Campaign for out home site equipment, and by election or/and the priority of neighbor site equipment is saved in this locality.
As it was previously stated, the EVI site apparatus in same EVI network example, pass through neighbor discovery process
In local maintenance ENDP neighbor table, wherein have recorded the relevant information of the ENDP neighbours of this site apparatus.
The ENDP that the priority of election or neighbor site equipment can be recorded correspondence by the embodiment of the present invention is adjacent
Occupy in list item.Such as, the content of ENDP neighbor entry comprises the steps that the ID(device number of neighbor site equipment
+ network ID), the IP address of neighbor site equipment, EVI between this site apparatus and neighbor site equipment
The mark of Link, the priority etc. of neighbor site equipment;Or, the content of ENDP neighbor entry comprises the steps that
ID(device number+the network ID of neighbor site equipment), the IP address of neighbor site equipment, this site apparatus
And the mark of the EVI Link between neighbor site equipment, for representing that whether neighbours are the marks of home site equipment
Knowledge information.ENDP neighbor table will be used for Subsequent MAC addresses information announcement process.
By above-mentioned neighbor uni-cast flow process it can be seen that due to the EVI-ISIS mutual in neighbor discovery process
Carrying site apparatus precedence information in hello packet, the most each site apparatus can know same EVI
The priority of each site apparatus in network example, such that it is able to elect according to the priority of each site apparatus
Home site equipment.Further, EVI-ISIS hello packet also carries bridge mac address information, because of
This each site apparatus it can also be seen that the bridge MAC Address of each site apparatus in same EVI network example,
Thus when the priority of two site apparatus is equal, the bridge MAC Address of these two site apparatus comparable
Size, thus compete home site equipment.Such as, the site apparatus that bridge MAC Address is little is competed successfully.
After EVI Link between EVI site apparatus sets up, each site apparatus is initiated mac address information and is led to
Announcement process, the most each site apparatus execution flow process as shown in Figure 4:
Step 401, inquires about the ENDP neighbor table that this site apparatus is safeguarded.
Step 402, judges with the ENDP neighbor table of this site apparatus for foundation: if according to ENDP
Neighbor table judges that this site apparatus is non-master site apparatus, has home site equipment in its neighbor site equipment,
Then perform step 403;If judging that this site apparatus is home site equipment, then according to ENDP neighbor table
Perform step 404.
Step 403, the mac address information safeguarded by this site apparatus is carried on LSP message and is sent to this
Home site equipment, this flow process terminates.
Step 404, the mac address information safeguarded by this site apparatus is carried on LSP message and is sent to it
All of neighbor site equipment, this flow process terminates.
After home site equipment receives the LSP message that the transmission of non-master site apparatus comes, according to wherein carry
Mac address information safeguards the mac address table of this site apparatus, and safeguards LSDB(Link State
Data Base, LSD), this home site equipment is according to the ENDP neighbor table of this site apparatus
Judge that its neighbor site equipment is non-master site apparatus, therefore be transmitted to remove by the LSP message received
Other each neighbor site equipment beyond the sender of this LSP message.Non-master site apparatus receives home site
After equipment sends the LSP message come, the mac address information according to wherein carrying safeguards this site apparatus
Mac address table, and safeguard LSDB.
It is similar to, when EVI site apparatus learns to mac address information from local site network, this station
Point device inquires about the ENDP neighbours that this site apparatus is safeguarded, with the ENDP neighbor table of this site apparatus for depending on
According to judging: if judging that this site apparatus is non-master site apparatus according to ENDP neighbor table, it is adjacent
Occupy and site apparatus has home site equipment, then the mac address information that this site apparatus learns is carried on
LSP message is sent to this home site equipment;If judging that this site apparatus is main according to ENDP neighbor table
Site apparatus, then be carried on LSP message by the mac address information that this site apparatus learns and be sent to it
All of neighbor site equipment.After home site equipment receives the LSP message that the transmission of non-master site apparatus comes, root
Safeguard the mac address table of this site apparatus according to the mac address information wherein carried, and safeguard LSDB,
And the LSP message received is transmitted to other each neighbor station in addition to the sender of this LSP message
Point device.
It is similar to, when the LSP message of configuration sends time arrival on EVI site apparatus, also can trigger
Carried out the announcement process of mac address information by LSP message, this process is noticed with above-mentioned MAC Address
Process is similar to, and does not repeats them here.
Optionally, in above-mentioned mac address information announcement process, the ENDP neighbor table of institute's foundation also can be by it
Its record has home site equipment election or neighbor site priority facility (further to may also include neighbours
The bridge MAC Address of site apparatus) data structure replace.
In LSP message mutual in above-mentioned flow process in addition to carrying the mac address information needing to notice,
Also portability sends the ID attribute information of site apparatus of this LSP message.Fig. 5 shows a kind of EVI-ISIS
The form of LSP message.Wherein, being described as follows of each field:
Type(type): MAC-RI, value is 147;
Length(length): 5+6*N, N represent the quantity of local mac address;
Topology-Id/Nickname(topology ID/ is called): depend on actual application environment to identify transmission
Person.In EVI, this field is invalid, is arranged to 0, represents that MAC Address below can by source ED(i.e.
Edge device) arrive, need not distinguish mono-equipment of topological sum Nickname(may have multiple Nickname);
Confidence(credibility): for the preferred of MAC Address of conflicting.If you are using, need
Increase related command row;
RESV: reserved bit, this field inserts the ID of the site apparatus of equipment, to ensure and current
The compatibility of EVI-ISIS;
VLAN-ID: allow the VLAN that MAC Address below passes through.If 0, then it represents that do not have
Limit VLAN;
MAC: local mac address information.
Practical application request that should be the most stable in view of core net, in a preferred embodiment of the present invention
In, the priority that definable each EVI site apparatus is configured by manual mode is 0-15(or other numerical value
Interval, describes as a example by 0-15 at this), and be gradually lowered according to the order priority from 0 to 15.One
Denier elects home site equipment, and on home site equipment, the priority of all neighbor site equipment all can be arranged to
16, then in any case by the priority of manual mode amendment home site equipment, the priority of this home site
The most still will can exist as home site equipment less than 16, priority update will not be triggered, and then will not touch
Send out home site election process, restart unless there are site apparatus or new site equipment adds competition.Concrete, should
Home site equipment election contest process in preferred embodiment comprises the steps that
Each ENDC sends to ENDS and carries own priority and the logon message of bridge MAC Address
(EVI-ISIS hello packet).After ENDS receives the logon message that ENDC sends, according to this website
Equipment and the priority of distance station point device and bridge MAC Address compete home site equipment, if this website sets
For competing successfully, then the priority of this site apparatus He other ENDC is carried on registration reply message
(EVI-ISIS hello packet) returns to this ENDC;If this site apparatus is competed unsuccessfully, then abandon competing
Strive home site equipment, the priority of this site apparatus is set to 16, and by this site apparatus and other ENDC
Priority and bridge MAC Address be carried on registration reply message (EVI-ISIS hello packet) and return to this
ENDC, wherein the priority of this site apparatus is 16.
After ENDC receives the registration reply message (EVI-ISIS hello packet) that ENDS returns, root
Home site equipment is competed according to this site apparatus and the priority of each neighbor site equipment and bridge MAC Address, as
Really this site apparatus is competed unsuccessfully, then abandon competing home site equipment, the priority of this site apparatus be set to
16, and upper once to ENDS send logon message time, by priority (this priority of this site apparatus
Value is 16) it is carried on logon message and is sent to ENDS.
Realize process for the clearer explanation embodiment of the present invention, enter as a example by a concrete scene below
Row explanation.
As shown in Figure 6, EVI network exist 5 equipment, be designated as respectively equipment 1, equipment 2, equipment 3,
Equipment 4, equipment 5, these 5 equipment are respectively as EVI site apparatus, and they have same extension
VLAN, sets up fully-connected network each other.The span of website priority is [0,15], according to 0-15
Order, decreasing priority.On equipment 1-5, the attribute information of configuration is as shown in table 1:
The attribute of configuration on table 1, equipment 1-5
Equipment |
Network ID |
Device numbering |
Priority |
Equipment 1 |
100 |
1 |
2 |
Equipment 2 |
100 |
2 |
1 |
Equipment 3 |
100 |
3 |
1 |
Equipment 4 |
100 |
4 |
3 |
Equipment 5 |
200 |
5 |
1 |
Specify according to ENDP agreement, between the EVI network of same Network ID, neighbours can be set up,
The EVI Link consulting to set up after EVI Link, ENDP consult can be as shown in Figure 7.Wherein, equipment 2
With the EVI Link between equipment 1 is designated as Elink0, the EVI Link between equipment 2 and equipment 3 is designated as
Elink1, the EVI Link between equipment 2 and equipment 4 is designated as Elink2, between equipment 1 and equipment 3
EVI Link is designated as Elink3, and the EVI Link between equipment 1 and equipment 4 is designated as Elink4, equipment 3
With the EVI Link between equipment 4 is designated as Elink5.
Equipment 2 launches the competition of home site equipment together with other neighbor device, is reported by EVI-ISIS hello
Literary composition interaction priority level, by priority ratio relatively, equipment 1, equipment 4 abandon home site equipment contention automatically,
And be 16 by the priority modification of oneself in upper once hello packet is mutual.Equipment 2 and equipment 3 excellent
First level is equal, it is therefore desirable to carry out bridge MAC Address comparison, by comparison, the bridge MAC ground of equipment 2
Location is less, and equipment 3 abandons home site equipment contention, by the priority of oneself in upper once hello packet
It is revised as 16.
Through above-mentioned hello packet interaction, the ENDP neighbor table on equipment 1 can be as shown in table 2,
ENDP neighbor table on equipment 2 can be as shown in table 3, and the ENDP neighbor table on equipment 3 can be such as table 4
Shown in, the ENDP neighbor table on equipment 4 can be as shown in table 5.
ENDP neighbor table on table 2, equipment 1
ENDP neighbor table on table 3, equipment 2
ENDP neighbor table on table 4, equipment 3
ENDP neighbor table on table 4, equipment 4
It should be noted that the IP address table in above-mentioned table 2, table 3, table 4 be shown as A.A.A.A, B.B.B.B,
C.C.C.C or D.D.D.D, is different only for representing the IP address of distinct device, and concrete numerical value needs
Determining according to network design, the representation of this IP address does not here have other implication.
After equipment receives LSP message, with ENDP neighbor table for according to judging: work as ENDP
Neighbor table there is priority be less than the list item of 16, then LSP message EVI Link in this list item is sent;
When ENDP neighbor table not having priority be less than the list item of 16, then get rid of the source port of this LSP message,
EVI Link from the list item that other priority is 16 sends.
According to above principle, when equipment 1 needs to notice mac address information, this mac address information
Announcement process be:
When equipment 1 has mac address information to need to notice, (such as study is to MAC Address or notice
The cycle of mac address information arrives), inquire about the ENDP neighbor table (as shown in table 2) that this equipment is safeguarded,
Find that in its neighbor device, the numerical priority value of equipment 2 is less than 16, it is thus determined that equipment 2 is home site equipment;
Equipment 1 constructs LSP message, wherein carry need to notice mac address information (as MAC1,
MAC2, MAC3), the reserved field of this message is filled in Site ID (wherein, the Network of this equipment
ID=100, device number=1), by the Elink0 between equipment 2, this LSP message is sent to equipment
2。
After equipment 2 receives this LSP message, safeguard the mac address table of this equipment according to this LSP message,
Inquire about the ENDP neighbor table (as shown in table 3) of this plant maintenance, find the priority number of its neighbor device
Value is 16, it is thus determined that these neighbor devices equal non-master site apparatus, this equipment is home site equipment;If
According to the Site ID of the message sender carried in this LSP message, standby 2 determine that the sender of this message is for setting
Standby 1, thus be excluded that the Elink0 of equipment 1 correspondence in ENDP neighbor table, by remaining numerical priority value be
EVI Link(Elink1, Elink2 that the neighbor device (equipment 3, equipment 4) of 16 is corresponding), by this LSP
Message is transmitted to equipment 3 and equipment 4.
After equipment 3 receives this LSP message, safeguard the mac address table of this equipment according to this LSP message,
Inquire about the ENDP neighbor table (as shown in table 4) of this plant maintenance, find equipment 2 in its neighbor device
Numerical priority value is less than 16, it is thus determined that equipment 2 is home site equipment, this equipment is non-master site apparatus;
But this LSP message will not be transmitted to the equipment 2 of the sender as this LSP message by equipment 3 again.In like manner,
Equipment 4 also will not forward the LSP message received.
In like manner, when equipment 3 or equipment 4 need to notice mac address information, its handling process and above-mentioned stream
Journey is similar to.
By above flow process it can be seen that when non-master site apparatus have mac address information need notice time,
It is sent to home site equipment, by home site by carrying the LSP message needing the mac address information passed through
This LSP is transmitted to other non-master site apparatus by equipment, non-master site apparatus after receiving LSP message not
This LSP message can be forwarded.
When equipment 2 needs to notice mac address information (such as study to MAC Address or notice MAC
The cycle of address information arrives), inquire about the ENDP neighbor table (as shown in table 3) that this equipment is safeguarded, send out
The numerical priority value of its neighbor device existing is 16, it is thus determined that these neighbor devices are non-master site apparatus,
This equipment is home site equipment;Equipment 2 constructs LSP message, wherein carries the MAC ground needing to notice
Location information, the reserved field of this message is filled in this equipment Site ID (wherein, Network ID=100,
Device number=2), (equipment 1, equipment 3, set by neighbor device that numerical priority value all with it are 16
Standby 4) EVI Link(Elink0, Elink1, the Elink2 between), this LSP message is sent to equipment 1,
Equipment 3, equipment 4.
After equipment 1 receives this LSP message, safeguard the mac address table of this equipment according to this LSP message,
Inquire about the ENDP neighbor table (as shown in table 2) of this plant maintenance, find equipment 2 in its neighbor device
Numerical priority value is less than 16, it is thus determined that equipment 2 is home site equipment, this equipment is non-master site apparatus;
But this LSP message will not be forwarded the sender of this LSP message by equipment 1: equipment 2.In like manner, equipment 3,
Equipment 4 also will not forward the LSP message received.
By above flow process it can be seen that when home site equipment needs to notice mac address information, will take
The LSP message of the mac address information that band there is a need to notice is sent to all neighbours of this home site equipment and sets
Standby (neighbor device of this home site equipment is non-master site apparatus), rather than between home site equipment without
Forward this LSP message again.
In order to improve network stabilization, the embodiment of the present invention additionally provides following failure handling mechanisms.
In EVI network, when home site equipment delays machine (fault), home site equipment sets with each neighbor site
Standby ENDP connection can be interrupted, and Elink can fall by Down.Each site apparatus is from the ENDP of self maintained
Find in neighbor table to have delayed as the EVI neighbours of home site equipment machine, and each site apparatus initiates new master
Site apparatus election process, and again the mac address information of oneself is sent to newly after having elected
The home site equipment elected.
If a site apparatus is synchronizing the mac address information of this site apparatus to the mistake of home site equipment
Cheng Zhong, this home site equipment there occurs the machine of delaying, and the local mac address information of this site apparatus still can be by
Retaining, this site apparatus needs to participate in the election of home site equipment, to determine the mac address information of oneself
Be synchronized to which site apparatus (or oneself as home site equipment to other site apparatus forward LSP report
Literary composition).
Still as a example by above-mentioned scene, when machine occurs delaying in equipment 2, the ENDP table of equipment 1 is deleted about setting
The list item of standby 2, ENDP neighbor table response EVI Link down event resends ENDP hello packet,
In this hello packet, carry the priority of this site apparatus, re-start the competition of home site equipment.Main website
The victor of point device competition regains LSP message and forwards power.All devices occurs at new home site equipment
After, the mac address information of oneself this locality is again sent to this home site equipment.The machine of delaying of home site equipment,
Do not affect mac address information that miscellaneous equipment acquired and converting flow (relevant with home site itself
Except mac address information).
When new site apparatus adds the EVI network being complete the competition of home site equipment, it needs as adding
The EVI network entering to be not fully complete competition sends the priority of oneself like that to each site apparatus.Each non-main website
Point device responds priority 16 to this site apparatus, and home site equipment responds the preferential of oneself to this site apparatus
Level, if the site apparatus priority ratio current master station point device priority being newly added is low, it is non-just as other
The same message sending priority 16 to all neighbours of home site equipment;If its priority ratio home site
Equipment is high, oneself is home site equipment, issues the priority of oneself, current master station point device to all neighbours
Compete unsuccessfully, send the hello packet of priority 16 to the site apparatus that is newly added and oneself is received
LSP is transmitted to the site apparatus being newly added;After other non-master site apparatus receives new priority, by original master station
Point device priority puts 16, and sends LSP message to the site apparatus being newly added.
The embodiment of the present invention can effectively reduce the LSP message amount under EVI multi-site equipment complexity networking,
With according to the embodiment of the present invention, all site apparatus can obtain only one home site after election contest and set
Standby, the mac address information of oneself is synchronized to home site equipment by each site apparatus, home site equipment enter
Row global synchronization, data exchange times demand C of thus obtained network is:
C=(n-1)2
Message interaction total amount Mmax of network theory maximum is:
Mmax=Σl*C
It can be seen that compared with prior art, network data exchange number of times has reduced, and message interaction
Total amount has reduced.Owing to the switching requirement number of times of message reduces, it is possible to effectively reduce network data and hand over
Change pressure.
Based on identical technology design, the embodiment of the present invention additionally provides a kind of network equipment, this network equipment
Can be the edge device in the station network of above-mentioned big two layers of interconnection, the website in such as EVI network sets
Standby.
See Fig. 8, the structural representation of the network equipment provided for the embodiment of the present invention, as it can be seen, should
The network equipment comprises the steps that
Main equipment competition module 81, for the priority according to this equipment, and same virtualization network example
In the priority of other station network edge device, compete main equipment;
Synchronization module 82, for (the such as MAC Address when this equipment needs to notice mac address information
When the synchronizing information time arrives, obtained the MAC ground needing to notice by inquiry local mac address table 20
Location information), determine that this equipment is main equipment or non-main equipment according to main equipment competition results, if this equipment
For non-main equipment, then it is sent to main equipment by being packaged with the LSP needing the mac address information noticed;No
Then, the LSP being packaged with the mac address information needing notice is sent to all neighbor devices of this equipment;
Configuration module 83, after receiving be packaged with the LSP of mac address information when this equipment, by institute
State the mac address information carried in LSP and be configured to this locality;
Forwarding module 84, after receiving be packaged with the LSP of mac address information when this equipment, according to
Main equipment competition results determines that this equipment is main equipment or non-main equipment, if this equipment is main equipment, then will
The LSP received is transmitted to other neighbor device in addition to this LSP sender.
Concrete, main equipment competition module 81 specifically for: if this equipment is configured to neighbor uni-cast service
Device equipment, then be carried on the priority of this equipment protocol massages and be sent in same virtualization network example
Station network edge device is configured to the equipment of neighbor uni-cast server, and according to this equipment and each neighbours
Find that the priority of client device carries out main equipment competition, and by the priority of this equipment and each neighbor uni-cast
The priority of client device is carried on protocol massages and returns to neighbor uni-cast client device;If this equipment quilt
It is configured to neighbor uni-cast client device, then according to this equipment and other neighbor uni-cast client device and neighbour
Occupy and find that the priority of server apparatus carries out main equipment competition.
Wherein, main equipment competition module 81, when carrying out main equipment competition, if competing unsuccessfully, then will originally set
Standby priority is set to specify numerical value;Wherein, described appointment numerical value is by manual mode configuration preference level
Time priority span outside numerical value, be non-main equipment for representing corresponding equipment.Such as, pass through
The span that manual mode is allowed during configuration preference level on equipment is [0,15], and numerical value is the biggest preferentially
Level is the lowest, then definable 16 is above-mentioned appointment numerical value.
Further, main equipment competition module 81 is additionally operable to the neighbor table 10 safeguarding on this equipment, described neighbour
Occupy in table 10 record to have the equipment identification information of neighbor device (described equipment identification information includes device numbering
And network identity, described network identity is used for identifying virtualization network example), this equipment and neighbor device it
Between link identification, the priority of neighbor device, it is preferred that the priority of non-main equipment for specify numerical value,
Described appointment numerical value be by priority span during manual mode configuration preference level outside numerical value.Specifically
, main equipment competition module 81 can be in neighbor uni-cast and maintenance process, by assisting alternately with neighbor device
View message (wherein carrying priority facility information), is carried out according to the priority of this equipment with neighbor device
Main equipment is competed, and carries out main equipment competition.Accordingly, synchronization module 82 specifically for: if this equipment root
Determine that there is main equipment in its neighbor device (such as looks into according to the priority of record in its neighbor table 10 safeguarded
Ask in its neighbor device that to have the priority of equipment be not described appointment numerical value), then the neighbours safeguarded according to it
The link identification between this equipment and this main equipment inquired about by table 10, and to link corresponding to described link identification
Send the LSP being packaged with the mac address information needing notice;If the neighbor table that this equipment is safeguarded according to it
In 10, the priority of record determines that this equipment is that (priority such as inquiring its neighbor device is equal for main equipment
For described appointment numerical value), then inquire about between this equipment and each neighbor device according to its neighbor table 10 safeguarded
Link identification, and the MAC Address letter being packaged with needs notice is sent to the link that described link identification is corresponding
The LSP of breath.Accordingly, forwarding module 84 specifically for: if the neighbor table 10 that this equipment is safeguarded according to it
The priority of middle record determines that this equipment is that (priority such as inquiring its neighbor device is main equipment
Described appointment numerical value), then according to the equipment identification information inquiry neighbor table 10 carried in the LSP received,
The link identification that this device identification is corresponding, and remaining link in neighbor table 10 is got rid of from neighbor table 10
The link of mark correspondence forwards this LSP.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive the present invention
The mode of required general hardware platform can be added by software to realize, naturally it is also possible to by hardware, but very
In the case of Duo, the former is more preferably embodiment.Based on such understanding, technical scheme is substantially
The part contributed prior art in other words can embody with the form of software product, this computer
Software product is stored in a storage medium, including some instructions with so that a station terminal equipment is (permissible
It is mobile phone, personal computer, server, or the network equipment etc.) perform described in each embodiment of the present invention
Method.
The above is only the preferred embodiment of the present invention, it is noted that common for the art
For technical staff, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications,
These improvements and modifications also should regard protection scope of the present invention.