CN102821168B - Based on method and the device of the MAC address aging of VPLS - Google Patents

Based on method and the device of the MAC address aging of VPLS Download PDF

Info

Publication number
CN102821168B
CN102821168B CN201210281720.0A CN201210281720A CN102821168B CN 102821168 B CN102821168 B CN 102821168B CN 201210281720 A CN201210281720 A CN 201210281720A CN 102821168 B CN102821168 B CN 102821168B
Authority
CN
China
Prior art keywords
mac
vpls
aging
mac address
address
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
CN201210281720.0A
Other languages
Chinese (zh)
Other versions
CN102821168A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201210281720.0A priority Critical patent/CN102821168B/en
Publication of CN102821168A publication Critical patent/CN102821168A/en
Application granted granted Critical
Publication of CN102821168B publication Critical patent/CN102821168B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to a kind of method and device of the MAC address aging based on VPLS, its method comprises: after structure VPLS example, obtain the message from distal side and/or local side, source MAC study is carried out to described message, according to the learning outcome of source MAC, create or upgrade the aging table of VPLS MAC; After the ageing time of pre-configured corresponding VPLS example arrives, carry out MAC address aging operation according to MAC aging software chained list and the aging table of VPLS MAC.The present invention is directed to different VPLS examples and can configure different MAC ageing times as required respectively, solve the limitation that all VPLS examples can only adopt same ageing time, more can meet the flexibility demand of business.

Description

Based on method and the device of the MAC address aging of VPLS
Technical field
The present invention relates to network data communication technical field, particularly relate to a kind of method and device of the MAC address aging based on VPLS.
Background technology
VPLS(Virtual Private LAN Services, VPLS) be a kind of at MPLS(Multi-protocol Label Switching, multiprotocol label switching) network provides similar LAN(Local Area Network, local area network (LAN)) a kind of business, the point that it can make user disperse from multiple geographical position is access network simultaneously, mutual access, as these points are directly linked on LAN.VPLS combines the advantage of Ethernet and MPLS technology, the emulation to traditional LAN repertoire, its main purpose is that the MPLS network provided by operator connects the multiple LAN be made up of Ethernet geographically isolated, make them as a LAN, go work, thus form VPN (virtual private network).
By the study of MAC Address, the PE(Provider Edge of each carrying VPN, Provider Edge) equipment all can generate corresponding mac address table, this mac address table is called VFI (Virtual Forwarding Instance).If PE learning equipment to MAC Address list item do not re-use, then need aging mechanism to remove.
The source MAC that aging mechanism carries out in the message that MAC address learning receives according to PE equipment processes, its processing procedure is: when PE equipment receives message, except study source MAC, for the MAC address entries generated, also need to arrange " activation " or " effectively " mark, be not set up the MAC address entries that " activation " or " effectively " marks within a certain period of time, will remove from mac address table.
At present, the MAC aging mechanism of the network equipment is all generally automatically realize based on hardware, and its advantage need not consume cpu resource to add timestamp each MAC, therefore efficiency is higher.But hardware aging mechanism function singleness and dumb, unified ageing time can only be adopted to all MAC Address, and traditional VPLS MAC address aging is also adopt the hardware mechanisms identical with common MAC aging mechanism to realize, therefore, the demand of the different MAC ageing time of different VPLS exemplary configuration can not be dealt with.
Summary of the invention
Main purpose of the present invention is the method and the device that provide a kind of MAC address aging based on VPLS, is intended to realize, for the different MAC ageing time of different VPLS exemplary configuration, meeting the flexibility demand of business.
In order to achieve the above object, the present invention proposes a kind of method of the MAC address aging based on VPLS, comprising:
After structure VPLS example, obtain the message from distal side and/or local side;
Source MAC study is carried out to described message, according to the learning outcome of source MAC, creates or upgrade the aging table of VPLS MAC;
After the ageing time of the described VPLS example of pre-configured correspondence arrives, carry out MAC address aging operation according to MAC aging software chained list and the aging table of described VPLS MAC.
Preferably, described after structure VPLS example, also comprise before obtaining the step from the message of far-end and/or local side:
The MAC ageing time of configuration VPLS example, is stored in the aging software chained list of described MAC.
Preferably, described source MAC study is carried out to message, according to the learning outcome of source MAC, to create or the step that upgrades the aging table of VPLS MAC comprises:
Obtain the VPNID of described VPLS example;
VPN table is searched using the VPNID of described VPLS example as key assignments;
When being got the aging function of described VPLS example enable VPLS MAC by lookup result, according to described VPNID and the mac source address lookup mac address table that parses from described message;
If there is the MAC address entries corresponding with described source MAC in described mac address table, then Refresh corresponding in the aging table of described VPLS MAC is marked set; Otherwise carry out MAC address learning report flow, create the aging table of VPLS MAC simultaneously.
Preferably, the step of the VPNID of described acquisition VPLS example comprises:
When described message is local side message, obtained the VPNID of described VPLS example by query interface attribute list;
When described message is distal side message, obtained the VPNID of described VPLS example by inquiry tag table.
Preferably, carry out MAC address learning report flow described in comprise:
When learning a new MAC address entries, the MAC address entries with identical VPNID is added to correspondence position in the aging software chained list of described MAC, and order-assigned one adds up register address to described MAC aging software chained list, the aging table of VPLS MAC and mac address table, adds corresponding list item.
Preferably, described step of carrying out MAC address aging operation according to MAC aging software chained list and the aging table of described VPLS MAC comprises:
The MAC Address of VPLS example described in the aging software chained list of traversal MAC;
Obtain the statistic registers address that described MAC Address is corresponding;
The statistic registers address corresponding according to described MAC Address, inquires about the aging table of VPLS MAC after described renewal;
If the Refresh that described in the aging table of described VPLS MAC, statistic registers address is corresponding marks non-set, then delete MAC address entries corresponding in described MAC aging software chained list, mac address table and the aging table of VPLS MAC;
If the Refresh that described in the aging table of described VPLS MAC, statistic registers address is corresponding marks set, then Refresh is reset.
The present invention also proposes a kind of device of the MAC address aging based on VPLS, comprising:
Receive and forwarding module, for after structure VPLS example, obtain the message from distal side and/or local side;
Inquiry and operational module, for carrying out source MAC study to described message, according to the learning outcome of source MAC, creating or upgrading the aging table of VPLS MAC;
Burin-in process module, for after the ageing time of the described VPLS example of pre-configured correspondence arrives, carries out MAC address aging operation according to MAC aging software chained list and the aging table of described VPLS MAC.
Preferably, described burin-in process module, also for configuring the MAC ageing time of VPLS example, is stored in the aging software chained list of described MAC.
Preferably, described inquiry and operational module comprise:
Acquiring unit, for obtaining the VPNID of described VPLS example;
First searches unit, for searching VPN table with the VPNID of described VPLS example;
Second searches unit, for when being got the aging function of the enable VPLSMAC of described VPLS example by lookup result, according to described VPNID and the mac source address lookup mac address table that parses from described message;
Study processing unit, for when there is the MAC address entries corresponding with described source MAC in described mac address table, marks set by Refresh corresponding in the aging table of described VPLS MAC; Otherwise carry out MAC address learning report flow, create the aging table of VPLS MAC simultaneously.
Preferably, described acquiring unit also for when described message is local side message, obtains the VPNID of described VPLS example by query interface attribute list; When described message is distal side message, obtained the VPNID of described VPLS example by inquiry tag table.
Preferably, described study processing unit is also for when learning a new MAC address entries, the MAC address entries with identical VPNID is added to correspondence position in the aging software chained list of described MAC, and order-assigned one adds up register address to described MAC aging software chained list, the aging table of VPLS MAC and mac address table, adds corresponding list item.
Preferably, described burin-in process module comprises:
Traversal Unit, for traveling through the MAC Address of VPLS example described in the aging software chained list of MAC;
Address acquisition unit, for obtaining statistic registers address corresponding to described MAC Address;
3rd query unit, for the statistic registers address corresponding according to described MAC Address, inquires about the aging table of VPLS MAC after described renewal;
Aged cell, marks non-set for the Refresh corresponding when statistic registers address described in the aging table of described VPLS MAC, then delete MAC address entries corresponding in described MAC aging software chained list, mac address table and the aging table of VPLS MAC; The Refresh corresponding when statistic registers address described in the aging table of described VPLS MAC marks set, then reset by Refresh.
The method of a kind of MAC address aging based on VPLS that the present invention proposes and device, after structure VPLS example, the message obtained from distal side and/or local side carries out source MAC study; Create according to learning outcome or upgrade the aging table of VPLS MAC; After the ageing time of the described VPLS example of pre-configured correspondence arrives, MAC address aging operation is carried out according to MAC aging software chained list and the aging table of described VPLS MAC, different MAC ageing times can be configured as required respectively thus for different VPLS examples, solve the limitation that all VPLS examples can only adopt same ageing time, more can meet the flexibility demand of business.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of method one embodiment of the MAC address aging that the present invention is based on VPLS;
Fig. 2 a is the init state schematic diagram of the aging software register of VPLS MAC of the present invention;
Fig. 2 b is the view after VPLS MAC of the present invention aging software register configuration ageing time;
Fig. 2 c is the view that the aging software register of VPLS MAC of the present invention adds MAC Address;
Fig. 3 carries out source MAC study to message in method one embodiment of the MAC address aging that the present invention is based on VPLS, according to the learning outcome of source MAC, creates or upgrade the schematic flow sheet of the aging table of VPLS MAC;
Fig. 4 is the schematic flow sheet carrying out MAC address aging operation in method one embodiment of the MAC address aging that the present invention is based on VPLS according to MAC aging software chained list and the aging table of described VPLS MAC;
Fig. 5 is the schematic flow sheet of another embodiment of method of the MAC address aging that the present invention is based on VPLS;
Fig. 6 is the structural representation of device one embodiment of the MAC address aging that the present invention is based on VPLS;
Fig. 7 is the structural representation of inquiry and operational module in device one embodiment of the MAC address aging that the present invention is based on VPLS;
Fig. 8 is the structural representation of burin-in process module in device one embodiment of the MAC address aging that the present invention is based on VPLS.
In order to make the technical scheme of invention clearly, understand, be described in further detail below in conjunction with accompanying drawing.
Embodiment
The solution of the embodiment of the present invention is mainly: after structure VPLS example, the message received from distal side and/or local side carries out MAC Address inquiry; Create according to Query Result or upgrade the aging table of VPLS MAC; After the ageing time of the described VPLS example of pre-configured correspondence arrives, MAC address aging operation is carried out according to MAC aging software chained list and the aging table of described VPLS MAC, to realize can configuring different MAC ageing times as required respectively for different VPLS examples, meet the flexibility demand of business.
As shown in Figure 1, one embodiment of the invention proposes a kind of method of the MAC address aging based on VPLS, comprising:
Step S101, after structure VPLS example, obtains the message from distal side and/or local side;
Step S102, carries out source MAC study to described message, according to the learning outcome of source MAC, creates or upgrades the aging table of VPLS MAC;
The structure of VPLS example is exactly between the PE of correspondence, set up pseudo-line connect, and needs to define corresponding pseudo-line traffic control signaling, and its expansion of setting up signaling by tunnel realizes.After setting up VPLS example, a certain for client region LAN, by bearing the function of emulation bridge, is forwarded to suitable pseudo-line via the ethernet frame that AC sends into, can sends to object region LAN, complete the interconnected of client zones of different LAN thus by PE.Usually, correspondence instance number VPNID that each VPLS example is unique.
The present embodiment method running environment relates to reception and forwarding module, inquiry and operational module and burin-in process module.
After structure VPLS example, reception and forwarding module receive the message from distal side and/or local side, and inquiry and operational module carry out MAC Address inquiry and forward operation.
If do not inquire this MAC Address, then report this MAC Address of study, create the aging table of VPLSMAC simultaneously; If inquire this MAC Address, then upgrade the refreshing marker bit of the aging table of VPLS MAC according to Query Result.
The present embodiment creates mac address table and the aging software chained list of MAC in advance in this locality, and after structure VPLS example, have MAC ageing time for each VPLS exemplary configuration in advance, the MAC ageing time of each VPLS example is uniquely corresponding with the instance number of this VPLS example.
Wherein, VPLS MAC is aging, and table is as shown in table 1 below, mac address table is as shown in table 2 below, the init state of the aging software register of VPLS MAC as shown in Figure 2 a, as shown in Figure 2 b, the state of the interpolation MAC Address of the aging software register of VPLS MAC as shown in Figure 2 c for state after the configuration ageing time of the aging software register of VPLS MAC.
KEY Result
CNT1 (initial address+1) Refresh mark (0: represent and be not hit 1: represent and hit)
CNT2 (initial address+2) Refresh mark (0: represent and be not hit 1: represent and hit)
CNT3 (initial address+3) Refresh mark (0: represent and be not hit 1: represent and hit)
The aging table of table 1 VPLS MAC
Vpls instance number VpnId Mac Outgoing interface information Cnt value
Table 2 mac address table
In above-mentioned table 1 and table 2, cnt value is statistic registers address.
When configuring VPLS example MAC ageing time, the MAC ageing time that this instance number can be configured is handed down to burin-in process module.The ageing time that each VPLS example of burin-in process module record configures in the aging software chained list of MAC, and safeguards the aging software chained list of this MAC, safeguards that the aging table of VPLS MAC is for inquiry and operational module operation simultaneously.
Inquiry and operational module receive carry out MAC Address inquiry from the message of distal side and/or local side time, if do not inquire this MAC Address, then report this MAC Address of study, create the aging table of VPLS MAC simultaneously, when learning a new MAC address entries, the MAC address entries with identical VPNID is added in same doubly linked list, simultaneously the address of an order-assigned statistic registers, add a list item of the aging table of VPLS MAC.
If what learn is not new MAC address entries, then Refresh corresponding in aging for VPLS MAC table mark is set to 1, represents that this MAC address entries is hit.
Inquiry and operational module carry out the renewal rewards theory of the aging table of VPLS MAC according to the VPNID+MAC address of message, and message is sent to reception and forwarding module forward accordingly.
Step S103, after the ageing time of the described VPLS example of pre-configured correspondence arrives, carries out MAC address aging operation according to MAC aging software chained list and the aging table of described VPLS MAC.
Burin-in process module carrys out the aging software chained list of poll traversal MAC by the ageing time of configuration, is reported by the VPLS MAC satisfied condition and carries out unifying delete processing.
Particularly, as shown in Figure 3, above-mentioned steps S102 comprises:
Step S1011, obtains the VPNID of described VPLS example;
Wherein, the process obtaining the VPNID of VPLS example is: if described message is local side message, then obtained the VPNID of described VPLS example by query interface attribute list; If described message is distal side message, then obtained the VPNID of described VPLS example by inquiry tag table.
Step S1012, searches VPN table using the VPNID of described VPLS example as key assignments;
Step S1013, judges the aging function of the whether enable VPLS MAC of described VPLS example; If so, then step S1014 is entered; Otherwise, enter step S1015;
Step S1014, enters common forwarding process;
Step S1015, according to described VPNID and parse from message MAC Address inquiry mac address table;
Step S1016, judges whether there is the MAC address entries corresponding with described source MAC in described mac address table, if so, then enters step S1017; Otherwise, enter step S1018;
Step S1017, is set to 1 by Refresh corresponding in the aging table of described VPLS MAC mark;
Step S1018, carries out MAC address learning report flow.
The described MAC address learning report flow that carries out comprises: when learning a new MAC address entries, the MAC address entries with identical VPNID is added to correspondence position in the aging software chained list of described MAC, and order-assigned one adds up register address to described MAC aging software chained list, the aging table of VPLS MAC and mac address table, adds corresponding list item.
As shown in Figure 4, the step of carrying out MAC address aging operation according to MAC aging software chained list and the aging table of described VPLS MAC in above-mentioned steps S103 comprises:
The MAC Address of VPLS example described in the aging software chained list of step S1031, traversal MAC;
Step S1032, obtains the statistic registers address that described MAC Address is corresponding;
Step S1033, the statistic registers address corresponding according to described MAC Address, inquires about the aging table of VPLS MAC after described renewal;
Step S1034, judges that the Refresh that described in the aging table of described VPLS MAC, statistic registers address is corresponding marks whether set is 0; If so, then step S1035 is entered; Otherwise, enter step S1036;
Step S1035, deletes MAC address entries corresponding in described MAC aging software chained list, mac address table and the aging table of VPLS MAC;
Step S1036, resets Refresh.
If refresh is 0, then represent in ageing time, this MAC Address was not hit, therefore deleted this MAC Address; If refresh is 1, then represent in ageing time, this MAC Address was hit, therefore did not need to delete this MAC Address, and its refresh resets by burin-in process module simultaneously.
As shown in Figure 5, another embodiment of the present invention proposes a kind of method of the MAC address aging based on VPLS, on the basis of above-described embodiment, build VPLS example in above-mentioned steps S101 after, also comprise before obtaining the step from the message of far-end and/or local side:
The MAC ageing time of step S100, configuration VPLS example, is stored in the aging software chained list of described MAC.
In the present embodiment, when configuring ageing time, the MAC ageing time that burin-in process module record each VPLS example is corresponding, if be configured with the aging function under this VPLS example, need all MAC address entries relevant to this example to be arranged to hardware aging function disable, prevent from being deleted this MAC by common hardware MAC aging mechanism, simultaneously when VPLS MAC has static MAC, can not delete, need to walk normal flow process.
Such as, as shown in Figure 2 a, profile instance name is called that the MAC ageing time of VPLS1 is 20S, profile instance name is called that the MAC ageing time of VPLS2 is 60S, profile instance name is called that the MAC ageing time of VPLS3 is 10S, then burin-in process module needs to set up a data structure for preserving these information.
For preserving the data structure of the aging configuration of VPLS example be wherein:
More specifically, the present embodiment detects ageing time and carries out the process of burnin operation judgement as follows:
Setting a cycle timer, starting cycle timer for detecting ageing time.The cycle of definition cycle timer is that unit time T(supposes that the size of a unit interval T value is 10S).The every tick of timer once, aging counters accumulates once, when aging counters equals the ageing time of this exemplary configuration, this counter is carried out clear operation, simultaneously all to this example MAC carry out traversing operation, and burin-in process module judges that the aging refresh of this MAC marks whether to be set.
Such as, as shown in Figure 2 b, timer is after one-period, now the age timer of all examples is all accumulated once, and for example vpls3, ageing time is just in time 10S, need to carry out MAC traversing operation to it, need aging counters to carry out rezero operation simultaneously.
In addition, when upgrading the aging table of VPLS MAC after by MAC address learning, when learning a new MAC address entries, driving adds in same doubly linked list by the MAC address entries with identical VPNID, the address of an order-assigned statistic registers simultaneously, adds a list item of the aging table of VPLS MAC.
Such as, as shown in Figure 2 c, to receive and forwarding module receives a series of message, and study is to three new VPLS MAC, example is the VPNID that VPLS3 is corresponding is 3, and MAC Address is respectively macA, macB, macC, and driving can build MAC address entries.Meanwhile, as shown in table 1, their statistic registers address of order-assigned is initial address+1, initial address+2, initial address+3.
For storing the data structure of the doubly linked list of aging MAC be wherein:
In addition, in the aging software register traversing operation of VPLS MAC, when the time of aging counters equals the ageing time of this configuration, the aging function of MAC under this example can be triggered.
Such as, when the ageing time of example Vpls3 arrives 10S, carry out traversing operation by all MAC address entries under this example, judge whether to need to carry out burnin operation to this MAC address entries.By the statistic registers address that this MAC in doubly linked list is corresponding, inquiring about the aging table of VPLS MAC, judging that this list item is the need of being aging.
If refresh is 0, then represent in ageing time, this MAC was not hit, therefore deleted this MAC; If refresh is 1, then represent in ageing time, this MAC was hit, therefore did not need to delete this MAC, and its refresh resets by burin-in process module simultaneously.
The present embodiment achieves and can configure different MAC ageing times as required respectively for different VPLS examples, solves the limitation that all VPLS examples can only adopt same ageing time, more can meet the flexibility demand of business.
As shown in Figure 6, one embodiment of the invention proposes a kind of device of the MAC address aging based on VPLS, comprising: receive and forwarding module 501, inquiry and operational module 502 and burin-in process module 503, wherein:
Receive and forwarding module 501, for after structure VPLS example, obtain the message from distal side and/or local side;
Inquiry and operational module 502, for carrying out source MAC study to described message, according to the learning outcome of source MAC, creating or upgrading the aging table of VPLS MAC;
Burin-in process module 503, for after the ageing time of the described VPLS example of pre-configured correspondence arrives, carries out MAC address aging operation according to MAC aging software chained list and the aging table of described VPLS MAC.
The structure of VPLS example is exactly between the PE of correspondence, set up pseudo-line connect, and needs to define corresponding pseudo-line traffic control signaling, and its expansion of setting up signaling by tunnel realizes.After setting up VPLS example, a certain for client region LAN, by bearing the function of emulation bridge, is forwarded to suitable pseudo-line via the ethernet frame that AC sends into, can sends to object region LAN, complete the interconnected of client zones of different LAN thus by PE.Usually, correspondence instance number VPNID that each VPLS example is unique.
After structure VPLS example, to receive and forwarding module 501 receives message from distal side and/or local side, by inquire about and operational module 502 carries out MAC Address inquiry and forwards operation.
If do not inquire this MAC Address, then report this MAC Address of study, create the aging table of VPLSMAC simultaneously; If inquire this MAC Address, then upgrade the refreshing marker bit of the aging table of VPLS MAC according to Query Result.
The present embodiment creates mac address table and the aging software chained list of MAC in advance in this locality, and after structure VPLS example, have MAC ageing time for each VPLS exemplary configuration in advance, the MAC ageing time of each VPLS example is uniquely corresponding with the instance number of this VPLS example.
Wherein, the aging table of VPLS MAC as shown in Table 1, mac address table is as above shown in table 2, the init state of the aging software register of VPLS MAC as shown in Figure 2 a, as shown in Figure 2 b, the state of the interpolation MAC Address of the aging software register of VPLS MAC as shown in Figure 2 c for state after the configuration ageing time of the aging software register of VPLS MAC.
In above-mentioned table 1 and table 2, cnt value is statistic registers address.
When configuring VPLS example MAC ageing time, the MAC ageing time that this instance number can be configured is handed down to burin-in process module 503.Burin-in process module 503 records ageing time that each VPLS example configures in the aging software chained list of MAC, and safeguards the aging software chained list of this MAC, safeguards that the aging table of VPLS MAC operates for inquiry and operational module 502 simultaneously.
Inquiry and operational module 502 are when carrying out MAC Address inquiry to the message from distal side and/or local side, if do not inquire this MAC Address, then report this MAC Address of study, create the aging table of VPLS MAC simultaneously, when learning a new MAC address entries, the MAC address entries with identical VPNID is added in same doubly linked list, simultaneously the address of an order-assigned statistic registers, add a list item of the aging table of VPLS MAC.
If what learn is not new MAC address entries, then Refresh corresponding in aging for VPLS MAC table mark is set to 1, represents that this MAC address entries is hit.
Inquiry and operational module 502 carry out the renewal rewards theory of the aging table of VPLS MAC according to the VPNID+MAC address of message, and message is sent to reception and forwarding module 501 forward accordingly.
Burin-in process module 503 carrys out the aging software chained list of poll traversal MAC by the ageing time of configuration, is reported by the VPLS MAC satisfied condition, carries out unifying delete processing.
Particularly, as shown in Figure 7, described inquiry and operational module 501 comprise: acquiring unit 5011, first is searched unit 5012, second and searched unit 5013 and study processing unit 5014, wherein:
Acquiring unit 5011, for obtaining the VPNID of described VPLS example;
First searches unit 5012, for searching VPN table using the VPNID of described VPLS example as key assignments;
Second searches unit 5013, for when being got the aging function of described VPLS example enable VPLS MAC by lookup result, according to described VPNID and the MAC Address inquiry mac address table that parses from described message;
Study processing unit 5014, for when there is the MAC address entries corresponding with described source MAC in described mac address table, marks set by Refresh corresponding in the aging table of described VPLS MAC; Otherwise carry out MAC address learning report flow, create the aging table of VPLS MAC simultaneously.
The process that described acquiring unit 5011 obtains the VPNID of VPLS example is: when described message is local side message, is obtained the VPNID of described VPLS example by query interface attribute list; When described message is distal side message, obtained the VPNID of described VPLS example by inquiry tag table.
Particularly, described study processing unit 5014 is also for when learning a new MAC address entries, the MAC address entries with identical VPNID is added to correspondence position in the aging software chained list of described MAC, and order-assigned one adds up register address to described MAC aging software chained list, the aging table of VPLS MAC and mac address table, adds corresponding list item.
As shown in Figure 8, described burin-in process module 503 comprises: Traversal Unit 5031, address acquisition unit 5032, the 3rd query unit 5033 and aged cell 5034, wherein:
Traversal Unit 5031, for traveling through the MAC Address of VPLS example described in the aging software chained list of MAC;
Address acquisition unit 5032, for obtaining statistic registers address corresponding to described MAC Address;
3rd query unit 5033, for the statistic registers address corresponding according to described MAC Address, inquires about the aging table of VPLS MAC after described renewal;
Aged cell 5034, when marking non-set for the Refresh corresponding when statistic registers address described in the aging table of described VPLS MAC, deletes MAC address entries corresponding in described MAC aging software chained list, mac address table and the aging table of VPLS MAC; When the Refresh that statistic registers address described in the aging table of described VPLS MAC is corresponding marks set, Refresh is reset.
Further, described burin-in process module 503, also for configuring the MAC ageing time of VPLS example, is stored in the aging software chained list of described MAC.
When configuring ageing time, burin-in process module 503 records MAC ageing time corresponding to each VPLS example, if be configured with the aging function under this VPLS example, all MAC address entries relevant to this example are needed to be arranged to hardware aging function disable, prevent from being deleted this MAC by common hardware MAC aging mechanism, simultaneously when VPLS MAC has static MAC, can not delete, need to walk normal flow process.
Such as, as shown in Figure 2 a, profile instance name is called that the MAC ageing time of VPLS1 is 20S, profile instance name is called that the MAC ageing time of VPLS2 is 60S, profile instance name is called that the MAC ageing time of VPLS3 is 10S, then burin-in process module 503 needs to set up a data structure for preserving these information.
For preserving the data structure of the aging configuration of VPLS example be wherein:
More specifically, the present embodiment detects ageing time and carries out the process of burnin operation judgement as follows:
Setting a cycle timer, starting cycle timer for detecting ageing time.The cycle of definition cycle timer is that unit time T(supposes that the size of a unit interval T value is 10S).The every tick of timer once, aging counters accumulates once, when aging counters equals the ageing time of this exemplary configuration, this counter is carried out clear operation, simultaneously all to this example MAC carry out traversing operation, and burin-in process module 503 judges that the aging refresh of this MAC marks whether to be set.
Such as, as shown in Figure 2 b, timer is after one-period, now the age timer of all examples is all accumulated once, and for example vpls3, ageing time is just in time 10S, need to carry out MAC traversing operation to it, need aging counters to carry out rezero operation simultaneously.
In addition, when upgrading the aging table of VPLS MAC after by MAC address learning, when learning a new MAC address entries, driving adds in same doubly linked list by the MAC address entries with identical VPNID, the address of an order-assigned statistic registers simultaneously, adds a list item of the aging table of VPLS MAC.
Such as, as shown in Figure 2 c, to receive and forwarding module 501 receives a series of message, and study is to three new VPLS MAC, example is the VPNID that VPLS3 is corresponding is 3, and MAC Address is respectively macA, macB, macC, and driving can build MAC address entries.Meanwhile, as shown in table 1, their statistic registers address of order-assigned is initial address+1, initial address+2, initial address+3.
For storing the data structure of the doubly linked list of aging MAC be wherein:
In addition, in the aging software register traversing operation of VPLS MAC, when the time of aging counters equals the ageing time of this configuration, the aging function of MAC under this example can be triggered.
Such as, when the ageing time of example Vpls3 arrives 10S, carry out traversing operation by all MAC address entries under this example, judge whether to need to carry out burnin operation to this MAC address entries.By the statistic registers address that this MAC in doubly linked list is corresponding, inquiring about the aging table of VPLS MAC, judging that this list item is the need of being aging.
If refresh is 0, then represent in ageing time, this MAC was not hit, therefore deleted this MAC; If refresh is 1, then represent in ageing time, this MAC was hit, therefore did not need to delete this MAC, and its refresh resets by burin-in process module 503 simultaneously.
The embodiment of the present invention, based on the method for the MAC address aging of VPLS and device, after structure VPLS example, receives and forwards the message from distal side and/or local side, carries out MAC Address inquiry and forwarding operates to described message; According to the result of inquiry MAC Address, create or upgrade the aging table of VPLS MAC; After the ageing time of the described VPLS example of pre-configured correspondence arrives, MAC address aging operation is carried out according to MAC aging software chained list and the aging table of described VPLS MAC, different MAC ageing times can be configured as required respectively thus for different VPLS examples, solve the limitation that all VPLS examples can only adopt same ageing time, more can meet the flexibility demand of business.
The foregoing is only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or flow process conversion; or be directly or indirectly used in other relevant technical field, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. based on a method for the MAC address aging of VPLS, it is characterized in that, comprising:
The MAC ageing time of configuration VPLS example, be stored in the aging software chained list of MAC, specifically comprise: when configuring ageing time, the MAC ageing time that burin-in process module record each VPLS example is corresponding, if be configured with the aging function under this VPLS example, all MAC address entries relevant to this example are arranged to hardware aging function disable; Burin-in process module sets up a data structure for preserving above-mentioned configuration information;
After structure VPLS example, obtain the message from distal side and/or local side;
Source MAC study is carried out to described message, according to the learning outcome of source MAC, creates or upgrade the aging table of VPLS MAC;
After the ageing time of the described VPLS example of pre-configured correspondence arrives, carry out MAC address aging operation according to MAC aging software chained list and the aging table of described VPLS MAC.
2. method according to claim 1, is characterized in that, describedly carries out source MAC study to message, according to the learning outcome of source MAC, to create or the step that upgrades the aging table of VPLS MAC comprises:
Obtain the VPNID of described VPLS example;
VPN table is searched using the VPNID of described VPLS example as key assignments;
When being got the aging function of described VPLS example enable VPLS MAC by lookup result, according to described VPNID and the mac source address lookup mac address table that parses from described message;
If there is the MAC address entries corresponding with described source MAC in described mac address table, then Refresh corresponding in the aging table of described VPLS MAC is marked set; Otherwise carry out MAC address learning report flow, create the aging table of VPLS MAC simultaneously.
3. method according to claim 2, is characterized in that, the step of the VPNID of described acquisition VPLS example comprises:
When described message is local side message, obtained the VPNID of described VPLS example by query interface attribute list;
When described message is distal side message, obtained the VPNID of described VPLS example by inquiry tag table.
4. method according to claim 2, is characterized in that, described in carry out MAC address learning report flow and comprise:
When learning a new MAC address entries, the MAC address entries with identical VPNID is added to correspondence position in the aging software chained list of described MAC, and order-assigned one adds up register address to described MAC aging software chained list, the aging table of VPLS MAC and mac address table, adds corresponding list item.
5. the method according to any one of claim 1-4, is characterized in that, described step of carrying out MAC address aging operation according to MAC aging software chained list and the aging table of described VPLS MAC comprises:
The MAC Address of VPLS example described in the aging software chained list of traversal MAC;
Obtain the statistic registers address that described MAC Address is corresponding;
The statistic registers address corresponding according to described MAC Address, inquires about the aging table of VPLSMAC after described renewal;
If the Refresh that described in the aging table of described VPLS MAC, statistic registers address is corresponding marks non-set, then delete MAC address entries corresponding in described MAC aging software chained list, mac address table and the aging table of VPLS MAC;
If the Refresh that described in the aging table of described VPLS MAC, statistic registers address is corresponding marks set, then Refresh is reset.
6. based on a device for the MAC address aging of VPLS, it is characterized in that, comprising:
Receive and forwarding module, for after structure VPLS example, obtain the message from distal side and/or local side;
Inquiry and operational module, for carrying out source MAC study to described message, according to the learning outcome of source MAC, creating or upgrading the aging table of VPLS MAC;
Burin-in process module, for after the ageing time of the described VPLS example of pre-configured correspondence arrives, carries out MAC address aging operation according to MAC aging software chained list and the aging table of described VPLS MAC; Described burin-in process module is also for configuring the MAC ageing time of VPLS example, be stored in the aging software chained list of described MAC, when configuring ageing time, the MAC ageing time that burin-in process module record each VPLS example is corresponding, if be configured with the aging function under this VPLS example, all MAC address entries relevant to this example are arranged to hardware aging function disable; Burin-in process module sets up a data structure for preserving above-mentioned configuration information.
7. device according to claim 6, is characterized in that, described inquiry and operational module comprise:
Acquiring unit, for obtaining the VPNID of described VPLS example;
First searches unit, for searching VPN table with the VPNID of described VPLS example;
Second searches unit, for when being got the aging function of the enable VPLSMAC of described VPLS example by lookup result, according to described VPNID and the mac source address lookup mac address table that parses from described message;
Study processing unit, for when there is the MAC address entries corresponding with described source MAC in described mac address table, marks set by Refresh corresponding in the aging table of described VPLS MAC; Otherwise carry out MAC address learning report flow, create the aging table of VPLS MAC simultaneously.
8. device according to claim 7, is characterized in that, described acquiring unit also for when described message is local side message, obtains the VPNID of described VPLS example by query interface attribute list; When described message is distal side message, obtained the VPNID of described VPLS example by inquiry tag table.
9. device according to claim 7, it is characterized in that, described study processing unit is also for when learning a new MAC address entries, the MAC address entries with identical VPNID is added to correspondence position in the aging software chained list of described MAC, and order-assigned one adds up register address to described MAC aging software chained list, the aging table of VPLS MAC and mac address table, adds corresponding list item.
10. the device according to any one of claim 6-9, is characterized in that, described burin-in process module comprises:
Traversal Unit, for traveling through the MAC Address of VPLS example described in the aging software chained list of MAC;
Address acquisition unit, for obtaining statistic registers address corresponding to described MAC Address;
3rd query unit, for the statistic registers address corresponding according to described MAC Address, inquires about the aging table of VPLS MAC after described renewal;
Aged cell, marks non-set for the Refresh corresponding when statistic registers address described in the aging table of described VPLS MAC, then delete MAC address entries corresponding in described MAC aging software chained list, mac address table and the aging table of VPLSMAC; The Refresh corresponding when statistic registers address described in the aging table of described VPLS MAC marks set, then reset by Refresh.
CN201210281720.0A 2012-08-09 2012-08-09 Based on method and the device of the MAC address aging of VPLS Active CN102821168B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210281720.0A CN102821168B (en) 2012-08-09 2012-08-09 Based on method and the device of the MAC address aging of VPLS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210281720.0A CN102821168B (en) 2012-08-09 2012-08-09 Based on method and the device of the MAC address aging of VPLS

Publications (2)

Publication Number Publication Date
CN102821168A CN102821168A (en) 2012-12-12
CN102821168B true CN102821168B (en) 2015-08-12

Family

ID=47305020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210281720.0A Active CN102821168B (en) 2012-08-09 2012-08-09 Based on method and the device of the MAC address aging of VPLS

Country Status (1)

Country Link
CN (1) CN102821168B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426775B (en) * 2013-08-19 2019-06-14 中兴通讯股份有限公司 A kind of implementation method and device of routing update
CN103581022B (en) * 2013-10-23 2017-01-11 福建星网锐捷网络有限公司 MAC address finding and transmitting method and device
CN105634999B (en) * 2014-11-05 2018-09-11 北京东土科技股份有限公司 A kind of aging method and device of Media Access Control address
CN104333520A (en) * 2014-11-28 2015-02-04 上海斐讯数据通信技术有限公司 Method for controlling interchanger MAC address table dual-ageing time
CN106357451B (en) * 2016-09-30 2019-06-25 广东电网有限责任公司电力科学研究院 A kind of management method of fuzz testing data flow
CN107124346A (en) * 2017-05-09 2017-09-01 烽火通信科技股份有限公司 Dynamically distributes void port VPLS forwards error-preventing method and system
CN107707690B (en) * 2017-11-28 2021-07-16 锐捷网络股份有限公司 Method, device and medium for preventing dynamic address from aging
CN108900405B (en) * 2018-06-25 2020-12-29 烽火通信科技股份有限公司 VSI (virtual local area network interface), port-based VPLS (virtual private LAN service) MAC (media access control) address table display method and system
CN112491722B (en) * 2020-12-04 2022-05-20 锐捷网络股份有限公司 Address table maintenance method, device and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1992644A (en) * 2005-12-31 2007-07-04 中兴通讯股份有限公司 Method of controlling address aging with medium access in virtual private LAN
CN101404611A (en) * 2008-11-07 2009-04-08 中兴通讯股份有限公司 Method for control address access by aging medium in Ethernet void connection field
CN102571564A (en) * 2011-12-19 2012-07-11 福建星网锐捷网络有限公司 Method, apparatus and device for aging static medium access control address

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1992644A (en) * 2005-12-31 2007-07-04 中兴通讯股份有限公司 Method of controlling address aging with medium access in virtual private LAN
CN101404611A (en) * 2008-11-07 2009-04-08 中兴通讯股份有限公司 Method for control address access by aging medium in Ethernet void connection field
CN102571564A (en) * 2011-12-19 2012-07-11 福建星网锐捷网络有限公司 Method, apparatus and device for aging static medium access control address

Also Published As

Publication number Publication date
CN102821168A (en) 2012-12-12

Similar Documents

Publication Publication Date Title
CN102821168B (en) Based on method and the device of the MAC address aging of VPLS
CN106209553B (en) Message processing method, equipment and system
US11290367B2 (en) Hierarchical network configuration
JP5991424B2 (en) Packet rewriting device, control device, communication system, packet transmission method and program
CN104823405B (en) The IP multicast services departure process networked for the virtual private cloud based on MPLS
CN203135921U (en) System for forwarding data package
CN103491129B (en) A kind of service node collocation method, pool of service nodes Register and system
CN103095546B (en) A kind of method, device and data center network processing message
CN104871483A (en) IP multicast service join process for MPLS-based virtual private cloud networking
CN103430149B (en) Virtual machine migration notification method and system
CN105721543A (en) Cross-protocol distribution-type cloud storage system based on operation control unit and data management method
CN102457439A (en) Virtual switching system and method of cloud computing system
CN105634901B (en) Mac address information synchronous method and device based on CAS VXLAN
US9094316B2 (en) Dynamic name generation
CN103634214B (en) A kind of routing iinformation generation method and device
CN105959430A (en) Switcher MAC address aging method
CN108696370B (en) Method, device and system for binding and unbinding server and service
CN106506315A (en) The transparent collocation method that a kind of message is forwarded
CN107896188A (en) Data forwarding method and device
CN105450520A (en) Message processing method and device, and method and device for building aggregation tunnel
CN106027321A (en) Method and system for automatically generating network topology
CN104038421A (en) Method and device for forwarding messages in VPN (virtual private network)
CN208939985U (en) CNOOC cloud Virtual Networking System
CN103533079B (en) A kind of ESL picture update method based on Zigbee and system
CN102868746A (en) Method for realizing mobile informationization

Legal Events

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