CN102821168A - Method and device for aging MAC (media access control) address based on VPLS (virtual private LAN service) - Google Patents

Method and device for aging MAC (media access control) address based on VPLS (virtual private LAN service) Download PDF

Info

Publication number
CN102821168A
CN102821168A CN2012102817200A CN201210281720A CN102821168A CN 102821168 A CN102821168 A CN 102821168A CN 2012102817200 A CN2012102817200 A CN 2012102817200A CN 201210281720 A CN201210281720 A CN 201210281720A CN 102821168 A CN102821168 A CN 102821168A
Authority
CN
China
Prior art keywords
mac
vpls
aging
address
mac 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.)
Granted
Application number
CN2012102817200A
Other languages
Chinese (zh)
Other versions
CN102821168B (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

Images

Abstract

The invention relates to a method and device for aging an MAC (media access control) address based on VPLS (virtual private LAN service). The method comprises the following steps of: obtaining a message from a remote-end side and/or a local side after a VPLS example is constructed, performing source MAC address learning on the message, creating or updating a VPLS MAC aging table according to a learning result of the MAC address; when the predetermined aging time corresponding to the VPLS example is reached, performing MAC address aging operation according to an MAC aging software link table and the VPLS MAC aging table. Different MAC aging times can be respectively allocated as required by aiming at different VPLS examples, and therefore, the limit that all the VPLS examples can only be aged at the same time is overcome and the flexibility requirement of the service is met.

Description

Method and device based on the MAC address aging of VPLS
Technical field
The present invention relates to the network data communication technical field, relate in particular 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) similar LAN is provided a kind of business of (Local Area Network, local area network (LAN)) on the network, the some while access network that it can make the user disperse from a plurality of geographical position; Visit each other directly is linked on the LAN the same as these points.VPLS has combined the advantage of Ethernet and MPLS technology; Be emulation to traditional LAN repertoire; Its main purpose is to connect a plurality of LAN that are made up of Ethernet that isolate on the region through the MPLS network that operator provides; Make them as a LAN, go work, thereby form VPN.
Through the study of MAC Address, all can generate corresponding M AC address table on PE (Provider Edge, the Provider Edge) equipment of each carrying VPN, this mac address table is called VFI (Virtual Forwarding Instance).If the PE learning equipment to the MAC Address list item do not re-use, then need aging mechanism and remove.
Aging mechanism is handled according to the source MAC that PE equipment carries out in the message that MAC address learning received; Its processing procedure is: when PE equipment is received message; Except the study source MAC,, also need to be provided with " activation " perhaps " effectively " mark for the MAC address entries that has generated; Be not set up " activation " perhaps MAC address entries of " effectively " mark within a certain period of time, will from mac address table, remove.
At present, the MAC aging mechanism of the network equipment generally all is based on hardware and realizes automatically, and its advantage is need not consume cpu resource each MAC is added timestamp, so efficient is higher.But hardware aging mechanism function singleness and dumb; Can only adopt unified ageing time to all MAC Addresss; And traditional VPLS MAC address aging also is to adopt the hardware mechanisms identical with the normal MAC aging mechanism to realize; Therefore, can not deal with the demand of the different MAC ageing times of different VPLS exemplary configuration.
Summary of the invention
Main purpose of the present invention is to provide a kind of method and device of the MAC address aging based on VPLS, is intended to realize for the different MAC ageing time of different VPLS exemplary configuration, satisfies professional flexibility demand.
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 making up the VPLS instance, obtain message from distal side and/or local side;
Said message is carried out source MAC study,, create or the aging table of renewal VPLS MAC according to the learning outcome of source MAC;
After the ageing time of pre-configured corresponding said VPLS instance arrives, carry out the MAC address aging operation according to aging software chained list of MAC and the aging table of said VPLS MAC.
Preferably, said after making up the VPLS instance, also comprise before obtaining step from the message of far-end and/or local side:
The MAC ageing time of configuration VPLS instance is stored in the aging software chained list of said MAC.
Preferably, said message is carried out source MAC study,, creates or the step of upgrading the aging table of VPLS MAC comprises according to the learning outcome of source MAC:
Obtain the VPNID of said VPLS instance;
VPNID with said VPLS instance searches the VPN table as key assignments;
When getting access to said VPLS instance through lookup result when enabling the aging function of VPLS MAC, according to said VPNID and the mac source address lookup mac address table that from said message, parses;
If there be the MAC address entries corresponding in the said mac address table, then with corresponding Refresh mark set in the aging table of said VPLS MAC with said source MAC; Otherwise carry out the MAC address learning report flow, create the aging table of VPLS MAC simultaneously.
Preferably, the step of the VPNID of the said VPLS of obtaining instance comprises:
When said message is local side message, obtain the VPNID of said VPLS instance through the query interface attribute list;
When said message is the distal side message, obtain the VPNID of said VPLS instance through the inquiry tag table.
Preferably, the said MAC address learning report flow that carries out comprises:
When learning a new MAC address entries; Add MAC address entries in the aging software chained list of said MAC correspondence position with identical VPNID; And order assignment one statistics register address adds corresponding list item to the aging software chained list of said MAC, the aging table of VPLS MAC and mac address table.
Preferably, said step of carrying out the MAC address aging operation according to the aging software chained list of MAC and the aging table of said VPLS MAC comprises:
The MAC Address of VPLS instance described in the aging software chained list of traversal MAC;
Obtain the corresponding statistic registers address of said MAC Address;
The aging table of VPLS MAC after the said renewal is inquired about in the statistic registers address corresponding according to said MAC Address;
If corresponding MAC address entries in the aging software chained list of said MAC, mac address table and the aging table of VPLS MAC is then deleted in the corresponding not set of Refresh mark in statistic registers address described in the aging table of said VPLS MAC;
If the corresponding Refresh mark set in statistic registers address described in the aging table of said VPLS MAC is then with the Refresh zero clearing.
The present invention also proposes a kind of device of the MAC address aging based on VPLS, comprising:
Receive and forwarding module, be used for after making up the VPLS instance, obtaining message from distal side and/or local side;
Inquiry and operational module are used for said message is carried out source MAC study, according to the learning outcome of source MAC, create or the aging table of renewal VPLS MAC;
The burin-in process module is used for after the ageing time of pre-configured corresponding said VPLS instance arrives, and carries out the MAC address aging operation according to aging software chained list of MAC and the aging table of said VPLS MAC.
Preferably, said burin-in process module also is used to dispose the MAC ageing time of VPLS instance, is stored in the aging software chained list of said MAC.
Preferably, said inquiry and operational module comprise:
Acquiring unit is used to obtain the VPNID of said VPLS instance;
First searches the unit, is used for searching the VPN table with the VPNID of said VPLS instance;
Second searches the unit, is used for when getting access to said VPLS instance through lookup result when enabling the aging function of VPLS MAC, according to said VPNID and the mac source address lookup mac address table that from said message, parses;
The study processing unit is used for when there be the MAC address entries corresponding with said source MAC in said mac address table, with corresponding Refresh mark set in the aging table of said VPLS MAC; Otherwise carry out the MAC address learning report flow, create the aging table of VPLS MAC simultaneously.
Preferably, said acquiring unit also is used for when said message is local side message, obtaining the VPNID of said VPLS instance through the query interface attribute list; When said message is the distal side message, obtain the VPNID of said VPLS instance through the inquiry tag table.
Preferably; Said study processing unit also is used for when learning a new MAC address entries; Add MAC address entries in the aging software chained list of said MAC correspondence position with identical VPNID; And order assignment one statistics register address adds corresponding list item to the aging software chained list of said MAC, the aging table of VPLS MAC and mac address table.
Preferably, said burin-in process module comprises:
Travel through the unit, be used to travel through the MAC Address of VPLS instance described in the aging software chained list of MAC;
Address acquisition unit is used to obtain the corresponding statistic registers address of said MAC Address;
The query unit is used for the statistic registers address corresponding according to said MAC Address, inquires about the aging table of VPLS MAC after the said renewal;
Aging unit is used for then deleting corresponding MAC address entries in the aging software chained list of said MAC, mac address table and the aging table of VPLS MAC when the corresponding not set of Refresh mark in statistic registers address described in the aging table of said VPLS MAC; When the corresponding Refresh mark set in statistic registers address described in the aging table of said VPLS MAC, then with the Refresh zero clearing.
The method and the device of the present invention proposes a kind of MAC address aging based on VPLS, after making up the VPLS instance, the message that obtains from distal side and/or local side carries out source MAC study; Perhaps upgrade the aging table of VPLS MAC according to the learning outcome establishment; After the ageing time of pre-configured corresponding said VPLS instance arrives; Carry out the MAC address aging operation according to aging software chained list of MAC and the aging table of said VPLS MAC; Can dispose different MAC ageing times as required respectively to different VPLS instances thus; Solve the limitation that all VPLS instances can only adopt same ageing time, more can satisfy professional flexibility demand.
Description of drawings
Fig. 1 is the schematic flow sheet of method one embodiment that the present invention is based on the MAC address aging of VPLS;
Fig. 2 a is the init state sketch map of the aging software register of VPLS MAC of the present invention;
Fig. 2 b is the view after the aging software register configuration of the VPLS MAC of the present invention 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 the present invention is based among method one embodiment of MAC address aging of VPLS message is carried out source MAC study, according to the learning outcome of source MAC, creates or upgrade the schematic flow sheet of the aging table of VPLS MAC;
Fig. 4 the present invention is based among method one embodiment of MAC address aging of VPLS the schematic flow sheet that carries out the MAC address aging operation according to the aging software chained list of MAC and the aging table of said VPLS MAC;
Fig. 5 is the schematic flow sheet of another embodiment of method that the present invention is based on the MAC address aging of VPLS;
Fig. 6 is the structural representation of device one embodiment that the present invention is based on the MAC address aging of VPLS;
Fig. 7 is the structural representation that the present invention is based on inquiry and operational module among device one embodiment of MAC address aging of VPLS;
Fig. 8 is the structural representation that the present invention is based on burin-in process module among device one embodiment of MAC address aging of VPLS.
Clearer for the technical scheme that makes invention, clear, will combine accompanying drawing to do further to detail below.
Embodiment
The solution of the embodiment of the invention mainly is: after making up the VPLS instance, the message that receives from distal side and/or local side carries out the MAC Address inquiry; Perhaps upgrade the aging table of VPLS MAC according to the Query Result establishment; After the ageing time of pre-configured corresponding said VPLS instance arrives; Carry out the MAC address aging operation according to aging software chained list of MAC and the aging table of said VPLS MAC; To realize to dispose different MAC ageing times as required respectively, satisfy professional flexibility demand for different VPLS instances.
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 making up the VPLS instance, obtains the message from distal side and/or local side;
Step S102 carries out source MAC study to said message, according to the learning outcome of source MAC, creates or the aging table of renewal VPLS MAC;
The structure of VPLS instance is exactly between the PE of correspondence, to set up pseudo-line to connect, and needs the corresponding pseudo-line traffic control signaling of definition, and it can set up the extension realization of signaling through the tunnel.After setting up the VPLS instance, PE will bear the function of emulation bridge, and the ethernet frame that a certain area L AN of client is sent into via AC is forwarded to suitable pseudo-line, can send to purpose area L AN, accomplishes the interconnected of client's zones of different LAN thus.Usually, all unique instance number VPNID of correspondence of each VPLS instance.
Present embodiment method running environment relates to reception and forwarding module, inquiry and operational module and burin-in process module.
After making up the VPLS instance, reception and forwarding module receive the message from distal side and/or local side, and inquiry and operational module carry out the MAC Address inquiry and transmit and operate.
If do not inquire this MAC Address, then report this MAC Address of study, create the aging table of VPLS MAC simultaneously; If inquire this MAC Address, then upgrade the marker bit that refreshes of the aging table of VPLS MAC according to Query Result.
Present embodiment has been created the aging software chained list of mac address table and MAC in advance in this locality; And after making up the VPLS instance; For each VPLS exemplary configuration the MAC ageing time is arranged in advance, the MAC ageing time of each VPLS instance is unique corresponding with the instance number of this VPLS instance.
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 is shown in Fig. 2 a, and the state after the configuration ageing time of the aging software register of VPLS MAC is shown in Fig. 2 b, and the state of the interpolation MAC Address of the aging software register of VPLS MAC is shown in Fig. 2 c.
KEY Result
CNT1 (initial address+1) Refresh mark (0: expression is not hit 1: expression was hit)
CNT2 (initial address+2) Refresh mark (0: expression is not hit 1: expression was hit)
CNT3 (initial address+3) Refresh mark (0: expression is not hit 1: expression was hit)
The aging table of table 1 VPLS MAC
Vpls instance number VpnId Mac Outgoing interface information The Cnt value
Table 2 mac address table
The cnt value is the statistic registers address in above-mentioned table 1 and the table 2.
When configuration VPLS instance MAC ageing time, can the MAC ageing time that this instance number disposed be handed down to the burin-in process module.The ageing time that each VPLS instance of burin-in process module records is disposed and is safeguarded this MAC software chained list that wear out to the aging software chained list of MAC, safeguard that simultaneously the aging table of VPLS MAC operates for inquiry and operational module.
Inquiry and operational module are receiving message from distal side and/or local side when carrying out the MAC Address inquiry; 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; MAC address entries with identical VPNID is added in the same doubly linked list, and the aging list item of showing of VPLS MAC is added in the address of a statistic registers of order assignment simultaneously.
If what learn is not new MAC address entries, then corresponding Refresh mark in the aging table of VPLS MAC is changed to 1, represent that this MAC address entries is hit.
Inquiry and operational module carry out the renewal operation of the aging table of VPLS MAC according to the VPNID+MAC address of message, and message is sent to receives and forwarding module is transmitted accordingly.
Step S103 after the ageing time of pre-configured corresponding said VPLS instance arrives, carries out the MAC address aging operation according to aging software chained list of MAC and the aging table of said VPLS MAC.
The burin-in process module is come the aging software chained list of poll traversal MAC through the ageing time of configuration, the VPLS MAC that satisfies condition is reported unify the deletion processing.
Particularly, as shown in Figure 3, above-mentioned steps S102 comprises:
Step S1011 obtains the VPNID of said VPLS instance;
Wherein, the process of obtaining the VPNID of VPLS instance is: if said message is local side message, then obtain the VPNID of said VPLS instance through the query interface attribute list; If said message is the distal side message, then obtain the VPNID of said VPLS instance through the inquiry tag table.
Step S1012 searches the VPN table with the VPNID of said VPLS instance as key assignments;
Step S1013 judges whether said VPLS instance enables the aging function of VPLS MAC; If then get into step S1014; Otherwise, get into step S1015;
Step S1014 gets into common forwarding process;
Step S1015 reaches the MAC Address inquiry mac address table that from message, parses according to said VPNID;
Step S1016 judges whether there be the MAC address entries corresponding with said source MAC in the said mac address table, if then get into step S1017; Otherwise, get into step S1018;
Step S1017 is changed to 1 with corresponding Refresh mark in the aging table of said VPLS MAC;
Step S1018 carries out the MAC address learning report flow.
The said MAC address learning report flow that carries out comprises: when learning a new MAC address entries; Add MAC address entries in the aging software chained list of said MAC correspondence position with identical VPNID; And order assignment one statistics register address adds corresponding list item to the aging software chained list of said MAC, the aging table of VPLS MAC and mac address table.
As shown in Figure 4, the step of carrying out the MAC address aging operation according to the aging software chained list of MAC and the aging table of said VPLS MAC among the above-mentioned steps S103 comprises:
Step S1031, the MAC Address of VPLS instance described in the aging software chained list of traversal MAC;
Step S1032 obtains the corresponding statistic registers address of said MAC Address;
Step S1033, the aging table of VPLS MAC after the said renewal is inquired about in the statistic registers address corresponding according to said MAC Address;
Step S1034 judges whether the corresponding Refresh mark set in statistic registers address is 0 described in the aging table of said VPLS MAC; If then get into step S1035; Otherwise, get into step S1036;
Step S1035 deletes corresponding MAC address entries in the aging software chained list of said MAC, mac address table and the aging table of VPLS MAC;
Step S1036 is with the Refresh zero clearing.
If refresh is 0, then be illustrated in the ageing time, this MAC Address was not hit, so this MAC Address of deletion; If refresh is 1, then be illustrated in the ageing time, this MAC Address was hit, so need not delete this MAC Address, the burin-in process module is with its refresh zero clearing 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 the foregoing description, in above-mentioned steps S101, make up the VPLS instance after, also comprise before obtaining step from the message of far-end and/or local side:
Step S100, the MAC ageing time of configuration VPLS instance is stored in the aging software chained list of said MAC.
In the present embodiment, when the configuration ageing time, the corresponding MAC ageing time of each VPLS instance of burin-in process module records; If disposed the aging function under this VPLS instance; Need the MAC address entries that all are relevant with this instance to be arranged to hardware aging function disable, prevent by common this MAC of hardware MAC aging mechanism deletion, simultaneously when VPLS MAC has static MAC; Can not delete, need walk normal flow process.
For example; Shown in Fig. 2 a; The MAC ageing time that the profile instance name is called VPLS1 is 20S; The MAC ageing time that the profile instance name is called VPLS2 is 60S, and the MAC ageing time that the profile instance name is called VPLS3 is 10S, and then the burin-in process module need be set up a data structure and is used to preserve these information.
The data structure that wherein is used to preserve the aging configuration of VPLS instance is:
Figure BDA0000199168801
More particularly, the process of the present embodiment detection ageing time and the operation judges that wears out is following:
Set a cycle timer, start cycle timer and be used to detect ageing time.The cycle of definition cycle timer is unit interval T (size of supposing a unit interval T value is 10S).The every tick of timer once; Aging counter adds up once; When aging counter equals the ageing time of this exemplary configuration; This counter is carried out clear operation, simultaneously all MAC of this instance are carried out traversing operation, the burin-in process module judges whether the aging refresh mark of this MAC is set.
For example, shown in Fig. 2 b, timer is behind the process one-period; This moment, the age timer of all instances all added up once, and for instance vpls3, ageing time just in time is 10S; Need carry out the MAC traversing operation to it, need carry out rezero operation to aging counter simultaneously.
In addition; After passing through MAC address learning, upgrade when VPLS MAC is aging to be shown; When learning a new MAC address entries; Driving is added the MAC address entries with identical VPNID in the same doubly linked list to, and the aging list item of showing of VPLS MAC is added in the address of a statistic registers of order assignment simultaneously.
For example, shown in Fig. 2 c, reception and forwarding module are received a series of messages, and learn three new VPLS MAC, and instance is that the corresponding VPNID of VPLS3 is 3, and MAC Address is respectively macA, macB, and macC drives and can make up MAC address entries.Simultaneously, as shown in table 1, their statistic registers address of order assignment is initial address+1, initial address+2, initial address+3.
The data structure that wherein is used to store the doubly linked list of aging MAC is:
Figure BDA0000199168802
Figure BDA0000199168803
In addition, in the aging software register traversing operation of VPLS MAC, when the time of aging counter equals the ageing time of this configuration, can trigger the aging function of MAC under this instance.
For example, when the ageing time of instance Vpls3 arrives 10S, will carry out traversing operation to all MAC address entries under this instance, judging whether need be to the operation of wearing out of this MAC address entries.Through the corresponding statistic registers address of this MAC in the doubly linked list, inquire about the aging table of VPLS MAC, judge whether this list item needs by aging.
If refresh is 0, then be illustrated in the ageing time, this MAC was not hit, so this MAC of deletion; If refresh is 1, then be illustrated in the ageing time, this MAC was hit, so need not delete this MAC, the burin-in process module is with its refresh zero clearing simultaneously.
Present embodiment realized can disposing different MAC ageing times as required respectively to different VPLS instances, solved the limitation that all VPLS instances can only adopt same ageing time, more can satisfy professional flexibility demand.
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, be used for after making up the VPLS instance, obtaining message from distal side and/or local side;
Inquiry and operational module 502 are used for said message is carried out source MAC study, according to the learning outcome of source MAC, create or the aging table of renewal VPLS MAC;
Burin-in process module 503 is used for after the ageing time of pre-configured corresponding said VPLS instance arrives, and carries out the MAC address aging operation according to aging software chained list of MAC and the aging table of said VPLS MAC.
The structure of VPLS instance is exactly between the PE of correspondence, to set up pseudo-line to connect, and needs the corresponding pseudo-line traffic control signaling of definition, and it can set up the extension realization of signaling through the tunnel.After setting up the VPLS instance, PE will bear the function of emulation bridge, and the ethernet frame that a certain area L AN of client is sent into via AC is forwarded to suitable pseudo-line, can send to purpose area L AN, accomplishes the interconnected of client's zones of different LAN thus.Usually, all unique instance number VPNID of correspondence of each VPLS instance.
After making up the VPLS instance, the message that reception and forwarding module 501 receive from distal side and/or local side carries out MAC Address by inquiry and operational module 502 and inquires about and transmit and operate.
If do not inquire this MAC Address, then report this MAC Address of study, create the aging table of VPLS MAC simultaneously; If inquire this MAC Address, then upgrade the marker bit that refreshes of the aging table of VPLS MAC according to Query Result.
Present embodiment has been created the aging software chained list of mac address table and MAC in advance in this locality; And after making up the VPLS instance; For each VPLS exemplary configuration the MAC ageing time is arranged in advance, the MAC ageing time of each VPLS instance is unique corresponding with the instance number of this VPLS instance.
Wherein, VPLS MAC is aging to be shown as above shown in the table 1; Mac address table is as above shown in the table 2; The init state of the aging software register of VPLS MAC is shown in Fig. 2 a, and the state after the configuration ageing time of the aging software register of VPLS MAC is shown in Fig. 2 b, and the state of the interpolation MAC Address of the aging software register of VPLS MAC is shown in Fig. 2 c.
The cnt value is the statistic registers address in above-mentioned table 1 and the table 2.
When configuration VPLS instance MAC ageing time, can the MAC ageing time that this instance number disposed be handed down to burin-in process module 503.The ageing time that each VPLS instances of burin-in process module 503 record are disposed and is safeguarded this MAC software chained list that wear out to the aging software chained list of MAC, safeguard that simultaneously the aging table of VPLS MAC operates for inquiry and operational module 502.
Inquiry and operational module 502 are when carrying out the 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; MAC address entries with identical VPNID is added in the same doubly linked list, and the aging list item of showing of VPLS MAC is added in the address of a statistic registers of order assignment simultaneously.
If what learn is not new MAC address entries, then corresponding Refresh mark in the aging table of VPLS MAC is changed to 1, represent that this MAC address entries is hit.
Inquiry and operational module 502 carry out the renewal operation of the aging table of VPLS MAC according to the VPNID+MAC address of message, and message is sent to receives and forwarding module 501 is transmitted accordingly.
Burin-in process module 503 is come the aging software chained list of poll traversal MAC through the ageing time of configuration, and the VPLS MAC that satisfies condition is reported, and unifies deletion and handles.
Particularly, as shown in Figure 7, said inquiry and operational module 501 comprise: acquiring unit 5011, first is searched unit 5012, second and is searched unit 5013 and study processing unit 5014, wherein:
Acquiring unit 5011 is used to obtain the VPNID of said VPLS instance;
First searches unit 5012, is used for searching the VPN table with the VPNID of said VPLS instance as key assignments;
Second searches unit 5013, is used for when getting access to said VPLS instance through lookup result when enabling the aging function of VPLS MAC, according to said VPNID and the MAC Address inquiry mac address table that from said message, parses;
Study processing unit 5014 is used for when there be the MAC address entries corresponding with said source MAC in said mac address table, with corresponding Refresh mark set in the aging table of said VPLS MAC; Otherwise carry out the MAC address learning report flow, create the aging table of VPLS MAC simultaneously.
The process that said acquiring unit 5011 obtains the VPNID of VPLS instance is: when said message is local side message, obtain the VPNID of said VPLS instance through the query interface attribute list; When said message is the distal side message, obtain the VPNID of said VPLS instance through the inquiry tag table.
Particularly; Said study processing unit 5014 also is used for when learning a new MAC address entries; Add MAC address entries in the aging software chained list of said MAC correspondence position with identical VPNID; And order assignment one statistics register address adds corresponding list item to the aging software chained list of said MAC, the aging table of VPLS MAC and mac address table.
As shown in Figure 8, said burin-in process module 503 comprises: traversal unit 5031, address acquisition unit 5032, query unit 5033 and aging unit 5034, wherein:
Travel through unit 5031, be used to travel through the MAC Address of VPLS instance described in the aging software chained list of MAC;
Address acquisition unit 5032 is used to obtain the corresponding statistic registers address of said MAC Address;
Query unit 5033 is used for the statistic registers address corresponding according to said MAC Address, inquires about the aging table of VPLS MAC after the said renewal;
Aging unit 5034 is used for deleting the MAC address entries of correspondence in the aging software chained list of said MAC, mac address table and the aging table of VPLS MAC when the corresponding Refresh mark in statistic registers address described in the aging table of said VPLS MAC not during set; When the corresponding Refresh mark set in statistic registers address described in the aging table of said VPLS MAC, with the Refresh zero clearing.
Further, said burin-in process module 503 also is used to dispose the MAC ageing time of VPLS instance, is stored in the aging software chained list of said MAC.
When the configuration ageing time; The corresponding MAC ageing time of burin-in process module 503 each VPLS instance of record if disposed the aging function under this VPLS instance, needs the MAC address entries that all are relevant with this instance to be arranged to hardware aging function disable; Prevent by common this MAC of hardware MAC aging mechanism deletion; When VPLS MAC has static MAC, can not delete simultaneously, need walk normal flow process.
For example; Shown in Fig. 2 a; The MAC ageing time that the profile instance name is called VPLS1 is 20S; The MAC ageing time that the profile instance name is called VPLS2 is 60S, and the MAC ageing time that the profile instance name is called VPLS3 is 10S, and then burin-in process module 503 need be set up a data structure and is used to preserve these information.
The data structure that wherein is used to preserve the aging configuration of VPLS instance is:
Figure BDA0000199168805
More particularly, the process of the present embodiment detection ageing time and the operation judges that wears out is following:
Set a cycle timer, start cycle timer and be used to detect ageing time.The cycle of definition cycle timer is unit interval T (size of supposing a unit interval T value is 10S).The every tick of timer once; Aging counter adds up once; When aging counter equals the ageing time of this exemplary configuration; This counter is carried out clear operation, simultaneously all MAC of this instance are carried out traversing operation, burin-in process module 503 judges whether the aging refresh mark of this MAC is set.
For example, shown in Fig. 2 b, timer is behind the process one-period; This moment, the age timer of all instances all added up once, and for instance vpls3, ageing time just in time is 10S; Need carry out the MAC traversing operation to it, need carry out rezero operation to aging counter simultaneously.
In addition; After passing through MAC address learning, upgrade when VPLS MAC is aging to be shown; When learning a new MAC address entries; Driving is added the MAC address entries with identical VPNID in the same doubly linked list to, and the aging list item of showing of VPLS MAC is added in the address of a statistic registers of order assignment simultaneously.
For example, shown in Fig. 2 c, reception and forwarding module 501 are received a series of messages, and learn three new VPLS MAC, and instance is that the corresponding VPNID of VPLS3 is 3, and MAC Address is respectively macA, macB, and macC drives and can make up MAC address entries.Simultaneously, as shown in table 1, their statistic registers address of order assignment is initial address+1, initial address+2, initial address+3.
The data structure that wherein is used to store the doubly linked list of aging MAC is:
Figure BDA0000199168806
Figure BDA0000199168807
Figure BDA0000199168808
In addition, in the aging software register traversing operation of VPLS MAC, when the time of aging counter equals the ageing time of this configuration, can trigger the aging function of MAC under this instance.
For example, when the ageing time of instance Vpls3 arrives 10S, will carry out traversing operation to all MAC address entries under this instance, judging whether need be to the operation of wearing out of this MAC address entries.Through the corresponding statistic registers address of this MAC in the doubly linked list, inquire about the aging table of VPLS MAC, judge whether this list item needs by aging.
If refresh is 0, then be illustrated in the ageing time, this MAC was not hit, so this MAC of deletion; If refresh is 1, then be illustrated in the ageing time, this MAC was hit, so need not delete this MAC, burin-in process module 503 is with its refresh zero clearing simultaneously.
The embodiment of the invention after making up the VPLS instance, receives and transmits the message from distal side and/or local side based on the method and the device of the MAC address aging of VPLS, and said message is carried out the MAC Address inquiry and transmits operation; According to the result of inquiry MAC Address, create or the aging table of renewal VPLS MAC; After the ageing time of pre-configured corresponding said VPLS instance arrives; Carry out the MAC address aging operation according to aging software chained list of MAC and the aging table of said VPLS MAC; Can dispose different MAC ageing times as required respectively to different VPLS instances thus; Solve the limitation that all VPLS instances can only adopt same ageing time, more can satisfy professional flexibility demand.
The above is merely the preferred embodiments of the present invention; Be not so limit claim of the present invention; Every equivalent structure or flow process conversion that utilizes specification of the present invention and accompanying drawing content to be done; Or directly or indirectly be used in other relevant technical field, all in like manner be included in the scope of patent protection of the present invention.

Claims (12)

1. the method based on the MAC address aging of VPLS is characterized in that, comprising:
After making up the VPLS instance, obtain message from distal side and/or local side;
Said message is carried out source MAC study,, create or the aging table of renewal VPLS MAC according to the learning outcome of source MAC;
After the ageing time of pre-configured corresponding said VPLS instance arrives, carry out the MAC address aging operation according to aging software chained list of MAC and the aging table of said VPLS MAC.
2. method according to claim 1 is characterized in that, and is said after making up the VPLS instance, also comprises before obtaining the step from the message of far-end and/or local side:
The MAC ageing time of configuration VPLS instance is stored in the aging software chained list of said MAC.
3. method according to claim 1 is characterized in that, said message is carried out source MAC study, according to the learning outcome of source MAC, creates or the step of upgrading the aging table of VPLS MAC comprises:
Obtain the VPNID of said VPLS instance;
VPNID with said VPLS instance searches the VPN table as key assignments;
When getting access to said VPLS instance through lookup result when enabling the aging function of VPLS MAC, according to said VPNID and the mac source address lookup mac address table that from said message, parses;
If there be the MAC address entries corresponding in the said mac address table, then with corresponding Refresh mark set in the aging table of said VPLS MAC with said source MAC; Otherwise carry out the MAC address learning report flow, create the aging table of VPLS MAC simultaneously.
4. method according to claim 3 is characterized in that, the step of the VPNID of the said VPLS of obtaining instance comprises:
When said message is local side message, obtain the VPNID of said VPLS instance through the query interface attribute list;
When said message is the distal side message, obtain the VPNID of said VPLS instance through the inquiry tag table.
5. method according to claim 3 is characterized in that, the said MAC address learning report flow that carries out comprises:
When learning a new MAC address entries; Add MAC address entries in the aging software chained list of said MAC correspondence position with identical VPNID; And order assignment one statistics register address adds corresponding list item to the aging software chained list of said MAC, the aging table of VPLS MAC and mac address table.
6. according to each described method among the claim 1-5, it is characterized in that said step of carrying out the MAC address aging operation according to the aging software chained list of MAC and the aging table of said VPLS MAC comprises:
The MAC Address of VPLS instance described in the aging software chained list of traversal MAC;
Obtain the corresponding statistic registers address of said MAC Address;
The aging table of VPLS MAC after the said renewal is inquired about in the statistic registers address corresponding according to said MAC Address;
If corresponding MAC address entries in the aging software chained list of said MAC, mac address table and the aging table of VPLS MAC is then deleted in the corresponding not set of Refresh mark in statistic registers address described in the aging table of said VPLS MAC;
If the corresponding Refresh mark set in statistic registers address described in the aging table of said VPLS MAC is then with the Refresh zero clearing.
7. the device based on the MAC address aging of VPLS is characterized in that, comprising:
Receive and forwarding module, be used for after making up the VPLS instance, obtaining message from distal side and/or local side;
Inquiry and operational module are used for said message is carried out source MAC study, according to the learning outcome of source MAC, create or the aging table of renewal VPLS MAC;
The burin-in process module is used for after the ageing time of pre-configured corresponding said VPLS instance arrives, and carries out the MAC address aging operation according to aging software chained list of MAC and the aging table of said VPLS MAC.
8. device according to claim 7 is characterized in that, said burin-in process module also is used to dispose the MAC ageing time of VPLS instance, is stored in the aging software chained list of said MAC.
9. device according to claim 7 is characterized in that, said inquiry and operational module comprise:
Acquiring unit is used to obtain the VPNID of said VPLS instance;
First searches the unit, is used for searching the VPN table with the VPNID of said VPLS instance;
Second searches the unit, is used for when getting access to said VPLS instance through lookup result when enabling the aging function of VPLS MAC, according to said VPNID and the mac source address lookup mac address table that from said message, parses;
The study processing unit is used for when there be the MAC address entries corresponding with said source MAC in said mac address table, with corresponding Refresh mark set in the aging table of said VPLS MAC; Otherwise carry out the MAC address learning report flow, create the aging table of VPLS MAC simultaneously.
10. device according to claim 9 is characterized in that, said acquiring unit also is used for when said message is local side message, obtaining the VPNID of said VPLS instance through the query interface attribute list; When said message is the distal side message, obtain the VPNID of said VPLS instance through the inquiry tag table.
11. device according to claim 9; It is characterized in that; Said study processing unit also is used for when learning a new MAC address entries; Add MAC address entries in the aging software chained list of said MAC correspondence position, and order assignment one statistics register address adds corresponding list item to the aging software chained list of said MAC, the aging table of VPLS MAC and mac address table with identical VPNID.
12., it is characterized in that said burin-in process module comprises according to each described device among the claim 7-11:
Travel through the unit, be used to travel through the MAC Address of VPLS instance described in the aging software chained list of MAC;
Address acquisition unit is used to obtain the corresponding statistic registers address of said MAC Address;
The query unit is used for the statistic registers address corresponding according to said MAC Address, inquires about the aging table of VPLS MAC after the said renewal;
Aging unit is used for then deleting corresponding MAC address entries in the aging software chained list of said MAC, mac address table and the aging table of VPLS MAC when the corresponding not set of Refresh mark in statistic registers address described in the aging table of said VPLS MAC; When the corresponding Refresh mark set in statistic registers address described in the aging table of said VPLS MAC, then with the Refresh zero clearing.
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 true CN102821168A (en) 2012-12-12
CN102821168B 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)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581022A (en) * 2013-10-23 2014-02-12 福建星网锐捷网络有限公司 MAC address finding and transmitting method and device
CN104333520A (en) * 2014-11-28 2015-02-04 上海斐讯数据通信技术有限公司 Method for controlling interchanger MAC address table dual-ageing time
CN104426775A (en) * 2013-08-19 2015-03-18 中兴通讯股份有限公司 Method and device for realizing routing update
CN105634999A (en) * 2014-11-05 2016-06-01 北京东土科技股份有限公司 Aging method and device for medium access control address
CN106357451A (en) * 2016-09-30 2017-01-25 广东电网有限责任公司电力科学研究院 Fuzzing test data stream management method
CN107124346A (en) * 2017-05-09 2017-09-01 烽火通信科技股份有限公司 Dynamically distributes void port VPLS forwards error-preventing method and system
CN107707690A (en) * 2017-11-28 2018-02-16 锐捷网络股份有限公司 A kind of non-ageing method, apparatus of dynamic address and medium
CN108900405A (en) * 2018-06-25 2018-11-27 烽火通信科技股份有限公司 VPLS mac address table based on VSI, port echoes method and system
CN112491722A (en) * 2020-12-04 2021-03-12 锐捷网络股份有限公司 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

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104426775A (en) * 2013-08-19 2015-03-18 中兴通讯股份有限公司 Method and device for realizing routing update
CN103581022B (en) * 2013-10-23 2017-01-11 福建星网锐捷网络有限公司 MAC address finding and transmitting method and device
CN103581022A (en) * 2013-10-23 2014-02-12 福建星网锐捷网络有限公司 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
CN105634999A (en) * 2014-11-05 2016-06-01 北京东土科技股份有限公司 Aging method and device for medium access control address
CN104333520A (en) * 2014-11-28 2015-02-04 上海斐讯数据通信技术有限公司 Method for controlling interchanger MAC address table dual-ageing time
CN106357451A (en) * 2016-09-30 2017-01-25 广东电网有限责任公司电力科学研究院 Fuzzing test data stream management method
CN107124346A (en) * 2017-05-09 2017-09-01 烽火通信科技股份有限公司 Dynamically distributes void port VPLS forwards error-preventing method and system
WO2018205541A1 (en) * 2017-05-09 2018-11-15 烽火通信科技股份有限公司 Dynamically allocated virtual port vpls forwarding mistake-proof method and system
CN107707690A (en) * 2017-11-28 2018-02-16 锐捷网络股份有限公司 A kind of non-ageing method, apparatus of dynamic address and medium
CN108900405A (en) * 2018-06-25 2018-11-27 烽火通信科技股份有限公司 VPLS mac address table based on VSI, port echoes method and system
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
CN112491722A (en) * 2020-12-04 2021-03-12 锐捷网络股份有限公司 Address table maintenance method, device and equipment
CN112491722B (en) * 2020-12-04 2022-05-20 锐捷网络股份有限公司 Address table maintenance method, device and equipment

Also Published As

Publication number Publication date
CN102821168B (en) 2015-08-12

Similar Documents

Publication Publication Date Title
CN102821168A (en) Method and device for aging MAC (media access control) address based on VPLS (virtual private LAN service)
US11252063B2 (en) System and method for obtaining micro-service telemetry data
US11290367B2 (en) Hierarchical network configuration
CN104823405B (en) The IP multicast services departure process networked for the virtual private cloud based on MPLS
JP5991424B2 (en) Packet rewriting device, control device, communication system, packet transmission method and program
CN103401777B (en) The parallel search method and system of Openflow
CN104871483A (en) IP multicast service join process for MPLS-based virtual private cloud networking
US20200213181A1 (en) System and method for network root cause analysis
CN106576054A (en) Network device configuration framework
CN104038401A (en) Interoperability for distributed overlay virtual environments
CN102457439A (en) Virtual switching system and method of cloud computing system
CN107241305A (en) A kind of network protocol analysis system and its analysis method based on polycaryon processor
CN103873460B (en) Service resources group implementation method and device
CN103634214B (en) A kind of routing iinformation generation method and device
CN101552734A (en) Non-automatic multi-outlet routing method
US11140072B2 (en) Transparent satellite routing system and method
CN102195844A (en) Method and equipment for managing forwarding table entry
CN106330788A (en) Message fragmentation transmission method and apparatus
CN102629345A (en) Chain type communication cooperation method, apparatus and system thereof
CN104702508A (en) Method and system for dynamically updating table items
CN103905545A (en) Reinforced LRU cache replacement method in content-centric network
CN104022917B (en) Cloud bridge monitoring method
CN105323234B (en) Service node ability processing method, device, business classifier and service controller
CN103907318B (en) Method and device for refreshing flow table
CN102123101A (en) Message processing method and device

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