CN113794642B - MAC table item synchronization method and device - Google Patents

MAC table item synchronization method and device Download PDF

Info

Publication number
CN113794642B
CN113794642B CN202110992953.0A CN202110992953A CN113794642B CN 113794642 B CN113794642 B CN 113794642B CN 202110992953 A CN202110992953 A CN 202110992953A CN 113794642 B CN113794642 B CN 113794642B
Authority
CN
China
Prior art keywords
mac
entry
mac table
module
synchronized
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
CN202110992953.0A
Other languages
Chinese (zh)
Other versions
CN113794642A (en
Inventor
邢家茂
雷丽琴
吴国华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN202110992953.0A priority Critical patent/CN113794642B/en
Publication of CN113794642A publication Critical patent/CN113794642A/en
Application granted granted Critical
Publication of CN113794642B publication Critical patent/CN113794642B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Abstract

The application provides a method and a device for synchronizing MAC table items, wherein the method is applied to an MAC table item synchronization module and comprises the following steps: when at least one MAC table item sent by a software management module in PE equipment is received at the current time, an ordered table comprising at least one MAC table item is created; comparing the MAC table entry in the current created ordered table with the table entry content in the MAC table entry in the last created ordered table; and when the comparison result shows that the MAC table items needing to be synchronized exist, the MAC table items needing to be synchronized are sent to a Border Gateway Protocol (BGP) module, and the BGP module synchronizes the MAC table items needing to be synchronized to the far-end PE equipment communicating with the PE equipment. The method and the device can improve the synchronization efficiency of the MAC table entry.

Description

MAC table item synchronization method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for synchronizing MAC table entries.
Background
Virtual Private local area Network (VPLS) Service is configured under an Ethernet Virtual Private Network (EVPN) to form an EVPN VPLS Network.
Currently, in an EVPN VPLS networking, when a local Provider Edge (PE) device needs to synchronize Media Access Control (MAC) entries to a remote PE, in one implementation, a software management module in the local PE device generally traverses each MAC entry synchronized by a forwarding module (e.g., a Field-Programmable Gate Array (FPGA) chip or the like) in the local PE device recorded by itself, and searches one by one whether an MAC entry having a MAC address identical to a MAC address in the MAC entry exists in MAC entries recorded by a Border Gateway Protocol (BGP) module in the local PE device; when the search result is that the MAC table entry is not required to be newly added, the software management module determines that the MAC table entry is the MAC table entry required to be newly added; and when the search result is that the MAC table entry is needed to be modified, the software management module further judges whether the table entry content in the MAC table entry is consistent with the table entry content in the searched MAC table entry, and when the judgment result is that the MAC table entry is not needed to be modified, the software management module determines that the MAC table entry is the MAC table entry needing to be modified.
Then, the software management module traverses each MAC table entry recorded by the BGP module, and searches whether an MAC table entry comprising the same MAC address as the MAC address in the MAC table entry exists in the MAC table entries recorded by the software management module; when the search result is that the MAC table entry needs to be deleted, the software management module determines that the MAC table entry does not exist; and when the search result is that the MAC table entry is needed to be modified, the software management module further judges whether the table entry content in the MAC table entry is consistent with the table entry content in the searched MAC table entry, and when the judgment result is that the MAC table entry is not needed to be modified, the software management module determines that the MAC table entry is the MAC table entry needing to be modified.
And finally, the software management module synchronizes the determined MAC table items needing to be synchronized to the BGP module, and the BGP module synchronizes the MAC table items to the far-end PE equipment so as to carry out related synchronization operation by the far-end PE equipment. Here, the determined MAC table entry that needs to be synchronized may include one or more of a MAC table entry that needs to be added, a MAC table entry that needs to be modified, and a MAC table entry that needs to be deleted.
As can be seen, in the above synchronization process of the MAC entry, the software management module in the local PE device needs to perform two traversal operations and two search operations, and also needs to frequently communicate with the BGP module, which takes a long time to synchronize the MAC entry, and further results in a low synchronization efficiency of the MAC entry.
Disclosure of Invention
In order to overcome the problems in the related art, the application provides a method and a device for synchronizing an MAC table entry.
According to a first aspect of the embodiments of the present application, a method for synchronizing MAC table entries is provided, where the method is applied to a MAC table entry synchronization module, and the method includes:
when at least one MAC table item sent by a software management module in PE equipment is received at the present time, an ordered table comprising the at least one MAC table item is created, wherein the at least one MAC table item is an MAC table item which is sent by the software management module according to a set period and is synchronized by a forwarding module in the PE equipment, and the MAC table items in the ordered table are arranged according to the VSI identification and the MAC address included in the MAC table from large to small or from small to large;
comparing the MAC table item in the current created ordered table with the table item content in the MAC table item in the last created ordered table;
and when the comparison result shows that the MAC table entry needing to be synchronized exists, sending the compared MAC table entry needing to be synchronized to a BGP module, so that the BGP module synchronizes the compared MAC table entry needing to be synchronized with the remote PE equipment which is communicated with the PE equipment, wherein the compared MAC table entry needing to be synchronized comprises one or more of an MAC table entry needing to be added newly, an MAC table entry needing to be modified and an MAC table entry needing to be deleted.
According to a second aspect of the embodiments of the present application, there is provided an apparatus for MAC table entry synchronization, where the apparatus is applied to a MAC table entry synchronization module, and the apparatus includes:
a creating unit, configured to create an ordered table including at least one MAC entry when at least one MAC entry sent by a software management module in a PE device is currently received, where the at least one MAC entry is an MAC entry sent by the software management module according to a set period and synchronized by a forwarding module in the PE device, and the MAC entries in the ordered table are arranged according to a sequence that includes a VSI identifier and a MAC address from large to small or from small to large;
the comparison unit is used for comparing the MAC table item in the current created ordered table with the table item content in the MAC table item in the last created ordered table;
and the synchronizing unit is configured to send the compared MAC table entry needing to be synchronized to the BGP module when the comparison result indicates that the MAC table entry needing to be synchronized exists, so that the BGP module synchronizes the compared MAC table entry needing to be synchronized to the remote PE device that performs communication with the PE device, where the compared MAC table entry needing to be synchronized includes one or more of an MAC table entry needing to be added, an MAC table entry needing to be modified, and an MAC table entry needing to be deleted.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
in this embodiment of the present application, a MAC entry synchronization module is specially configured, so that a software management module in a PE device sends at least one MAC entry synchronized by a forwarding module in the PE device to the MAC entry synchronization module according to a set period.
When the MAC table item synchronization module receives the MAC table items, firstly creating an ordered table comprising at least one MAC table item; then, comparing the MAC table entry in the ordered table created at the current time with the MAC table entry in the ordered table created at the last time, and sending the MAC table entry needing to be synchronized to the BGP module when the comparison result shows that the MAC table entry needing to be synchronized exists, so that the BGP module synchronizes the MAC table entry needing to be synchronized to the remote PE equipment communicating with the PE equipment, wherein the MAC table entry needing to be synchronized comprises one or more of the MAC table entry needing to be added, the MAC table entry needing to be modified and the MAC table entry needing to be deleted.
Therefore, in the synchronization process of the MAC table items, the MAC table items needing to be synchronized can be determined only by comparing the two ordered tables through the specially-arranged MAC table item synchronization module, and the MAC table items are synchronized to the related remote PE equipment through the BGP module.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a flowchart illustrating a method for synchronizing MAC table entries according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a network to which a MAC entry synchronization method according to an embodiment of the present application is applied;
fig. 3 is a schematic structural diagram of a MAC table entry synchronization apparatus according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at" \8230; "or" when 8230; \8230; "or" in response to a determination ", depending on the context.
Next, examples of the present application will be described in detail.
An embodiment of the present application provides a method for synchronizing MAC table entries, where the method is applied to a MAC table entry synchronization module, and as shown in fig. 1, the method may include the following steps:
s11, when at least one MAC table item sent by a software management module in the PE equipment is received, an ordered table comprising at least one MAC table item is created.
In this step, the at least one MAC entry is an MAC entry sent by the software management module according to a set period and synchronized by a forwarding module in the PE device. These MAC entries are MAC entries at the Customer Edge (CE) device side learned by the PE device.
Here, the setting period may be set according to an actual network condition of the network to which the PE device belongs, and for example, the setting period is 30 ms.
The forwarding module may be an FPGA chip, a Network Processor (NP) chip, or the like.
In addition, in this step, the MAC entries in the ordered table are arranged according to the Virtual Switch Instance (VSI) identifier and the MAC address included in the ordered table in the descending order or the ascending order.
Here, the ordered table may be a hash table or the like, and each MAC entry in the ordered table may further include information such as a Port (Port) identifier.
S12, comparing the MAC table entry in the current created ordered table with the table entry content in the MAC table entry in the last created ordered table.
In this step, when the current time is the first time, the ordered list created last time is empty by default.
And S13, when the comparison result shows that the MAC table entry needing to be synchronized exists, sending the compared MAC table entry needing to be synchronized to the BGP module, and synchronizing the compared MAC table entry needing to be synchronized to the far-end PE equipment which is communicated with the PE equipment by the BGP module.
In this step, the MAC entries to be synchronized that are compared include one or more of MAC entries that need to be added, MAC entries that need to be modified, and MAC entries that need to be deleted.
That is, there may be the following conditions for the compared MAC entries that need to be synchronized:
in the first case, only the MAC table entry needing to be newly added is included;
in the second case, only the MAC table entry needing to be modified is included;
in the third case, only the MAC table entry needing to be deleted is included;
the fourth situation comprises an MAC table entry needing to be newly added and an MAC address table entry needing to be modified;
the fifth case includes the MAC table entry needing to be added newly and the MAC address table entry needing to be deleted
The sixth situation comprises the MAC table entry needing to be modified and the MAC address table entry needing to be deleted;
the seventh situation includes the MAC table entry that needs to be added newly, the MAC address table entry that needs to be modified and the MAC address table entry that needs to be deleted.
No matter which of the above situations the MAC table entries to be synchronized are compared, the MAC table entry synchronization module may send the MAC table entries to be synchronized to the BGP module in the form of a list when sending the MAC table entries to be synchronized to the BGP module.
And when the compared MAC entry to be synchronized is any one of the fourth to seventh cases, the MAC entry synchronization module may send the MAC entry to the BGP module through one interface at a time, or may send the MAC entry to the BGP module through multiple interfaces, for example, the MAC entry synchronization module sends the MAC entry to be newly added through interface 1, and sends the MAC entry to be modified through interface 2.
It should be noted that, in this embodiment of the present application, in a first network scenario, the MAC entry synchronization module and the BGP module may both be disposed inside a PE device.
In addition, in the first network scenario, for a far-end PE device communicating with the PE device, when a BGP module in the far-end PE device receives a compared MAC entry that needs to be synchronized and is sent by the BGP module, an existing synchronization operation procedure may be executed. That is, the BGP module in the remote PE device executes a corresponding synchronization operation according to the compared MAC entry that needs to be synchronized, and after the synchronization operation is executed, notifies the compared MAC entry that needs to be synchronized to the software management module in the remote PE device, so that the software management module executes the corresponding synchronization operation, and after the synchronization operation is executed, continuously notifies the compared MAC entry that needs to be synchronized to the forwarding module in the remote PE device, so that the forwarding module continuously executes the corresponding synchronization operation.
Here, the synchronization operation corresponding to the MAC entry to be newly added is the operation of the newly added MAC entry; the synchronous operation corresponding to the MAC table entry needing to be modified is the operation of modifying the MAC table entry; and the synchronous operation corresponding to the MAC table entry needing to be deleted is the operation of deleting the MAC table entry.
In addition, when the BGP module in the remote PE device receives the compared MAC entry that needs to be synchronized and is sent by the BGP module, the BGP module may also perform the corresponding synchronization operation first, and then transmit the compared MAC entry that needs to be synchronized to the software management module in the remote PE device through the MAC entry synchronization module, and then perform the corresponding synchronization operation by the software management module, and after performing the synchronization operation, continue notifying the compared MAC entry that needs to be synchronized to the forwarding module in the remote PE device, and continue performing the corresponding synchronization operation by the forwarding module.
In a second Network scenario, the MAC entry synchronization module and the BGP module may both be disposed inside a Software Defined Network (SDN) controller in a Network to which the PE device belongs. In such a network scenario, the SDN controller is responsible for managing all PE devices in the network, and once a BGP module in the SDN controller acquires MAC entries that originate from any PE device and need to be synchronized, the BGP module synchronizes the MAC entries with other PE devices in communication with the PE device.
In a third network scenario, the MAC entry synchronization module and the BGP module may both be disposed inside a network management platform in a network to which the PE device belongs. In this network scenario, the network management platform is responsible for managing all PE devices in the network, and once a BGP module in the network management platform acquires a MAC entry that is originated from any PE device and needs to be synchronized, the BGP module also synchronizes the MAC entry with other PE devices that communicate with the PE device.
It should be further noted that, in any one of the second network scenario and the third network scenario, for the remote PE device communicating with the PE device, when receiving the MAC entry that needs to be synchronized and is compared and sent by the BGP module, both the software management module and the forwarding module in the remote PE device execute corresponding synchronization operations according to the MAC entry.
Further, in this embodiment of the present application, in order to save the entry resource of the MAC entry synchronization module, the MAC entry synchronization module may further perform the following operations:
after the comparison of the MAC table entry in the ordered table created at the present time and the table entry content in the MAC table entry in the ordered table created at the last time is completed, the ordered table created at the last time is deleted, and the ordered table created at the present time is retained.
That is to say, after the MAC table entry synchronization module compares the MAC table entry in the ordered table created at the current time with the table entry content in the MAC table entry in the ordered table created at the last time, regardless of whether the comparison result indicates that there is a MAC table entry that needs to be synchronized or there is no MAC table entry that needs to be synchronized, the MAC table entry synchronization module deletes the ordered table created at the last time and retains the ordered table created at the current time.
The following describes the MAC table entry synchronization method in detail with reference to specific embodiments.
As shown in fig. 2, taking the PE device 1 in fig. 2 as an example, it is assumed that the PE device 1 includes a forwarding module 11, a software management module 12, a MAC processing module 13, and a BGP module 14 (not shown in fig. 2).
Assuming that a certain set period has arrived, the software management module 12 in the PE device 1 sends the MAC entry synchronized by the forwarding module 11 in the PE device 1 to the MAC entry synchronization module 13 in the PE device 1.
After receiving the MAC table entries, the MAC table entry synchronization module 13 creates an ordered table including the MAC table entries, as shown in table one below.
VSI identification MAC address Port identification
VSI 1 MAC11 Port11
VSI 1 MAC12 Port12
VSI 1 MAC13 Port13
VSI 1 MAC14 Port14
VSI 2 MAC21 Port21
VSI 2 MAC23 Port23
VSI 3 MAC31 Port31
VSI 3 MAC32 Port33
Watch 1
Then, the MAC entry synchronization module 13 compares the MAC entry in the currently created ordered table with the entry content in the MAC entry in the previously created ordered table.
Assume that the ordered table last created by the MAC table entry synchronization module 13 is shown in table two below.
VSI identification MAC address Port identification
VSI 1 MAC11 Port11
VSI 1 MAC12 Port12
VSI 1 MAC13 Port13
VSI 2 MAC21 Port21
VSI 2 MAC22 Port22
VSI 2 MAC23 Port23
VSI 3 MAC31 Port31
VSI 3 MAC32 Port32
Watch two
By comparing the table one and the table two, it can be known that the comparison result is that there is an MAC entry that needs to be synchronized, and at this time, the MAC entry synchronization module 13 sends the compared MAC entry that needs to be synchronized to the BGP module 14 in the PE device 1.
Here, the compared MAC table entries that need to be synchronized include:
the newly added MAC table entry is needed: the MAC table entry comprises VSI 1 and MAC 14;
MAC table entry to be modified: the MAC table entry comprises VSI 3 and MAC 32;
the MAC table entry needing to be deleted: MAC table entries including VSI 2 and MAC 22.
After sending the compared MAC entries to be synchronized to the BGP module 14, the MAC entry synchronization module 13 deletes the second table and retains the first table.
The BGP module 14 synchronizes the compared MAC table entries that need to be synchronized to the PE device 2.
After receiving the MAC entries, the BGP module 21 (not shown in fig. 2) in the PE device 2 records the MAC entries including VSI 1 and MAC14 to the local, deletes the MAC entries including VSI 2 and MAC22 in the locally recorded MAC entries, and modifies the Port identifier in the MAC entries including VSI 3 and MAC32 in the locally recorded MAC entries to Port33.
Then, the BGP module 21 passes through the MAC entry synchronization module 22 (not shown in fig. 2) in the PE device 2 to the software management module 23 (not shown in fig. 2) in the PE device 2, and after the software management module 23 executes the synchronization operation similar to that of the BGP module 21, the BGP module 21 continuously notifies the forwarding module 24 (not shown in fig. 2) of the MAC entries, and the forwarding module 24 continuously executes the corresponding synchronization operation.
It can be seen from the foregoing technical solutions that, in the embodiment of the present application, an MAC entry synchronization module is specially configured, so that a software management module in a PE device sends at least one MAC entry synchronized by a forwarding module in the PE device to the MAC entry synchronization module according to a set period.
When the MAC table item synchronization module receives the MAC table items, firstly creating an ordered table comprising at least one MAC table item; then, comparing the MAC table entry in the current created ordered table with the MAC table entry in the last created ordered table, and sending the MAC table entry to be synchronized to the BGP module when the comparison result shows that the MAC table entry to be synchronized exists, so that the BGP module synchronizes the MAC table entry to be synchronized to the far-end PE device which is in communication with the PE device, wherein the MAC table entry to be synchronized comprises one or more of the MAC table entry to be newly added, the MAC table entry to be modified and the MAC table entry to be deleted.
Therefore, in the synchronization process of the MAC table entries, the MAC table entries needing to be synchronized can be determined only by comparing the two ordered tables through the specially-arranged MAC table entry synchronization module, and the MAC table entries are synchronized to the related remote PE equipment through the BGP module.
Based on the same inventive concept, the present application further provides a MAC entry synchronization apparatus, which is applied to a MAC entry synchronization module, and a schematic structural diagram of the apparatus is shown in fig. 3, and specifically includes:
a creating unit 31, configured to create an ordered table including at least one MAC entry when at least one MAC entry sent by a software management module in a PE device is currently received, where the at least one MAC entry is an MAC entry sent by the software management module according to a set period and synchronized by a forwarding module in the PE device, and the MAC entries in the ordered table are arranged according to a sequence that includes a VSI identifier and a MAC address from large to small or from small to large;
a comparing unit 32, configured to compare the MAC entry in the current created ordered table with the entry content in the MAC entry in the last created ordered table;
and a synchronizing unit 33, configured to send the compared MAC table entry needing to be synchronized to a BGP module when the comparison result indicates that there is an MAC table entry needing to be synchronized, so that the BGP module synchronizes the compared MAC table entry needing to be synchronized to a remote PE device in communication with the PE device, where the compared MAC table entry needing to be synchronized includes one or more of an MAC table entry needing to be added, an MAC table entry needing to be modified, and an MAC table entry needing to be deleted.
Preferably, the apparatus further comprises:
a processing unit (not shown in fig. 3), configured to delete the ordered table created last time and retain the ordered table created at the current time after the MAC entry needing to be synchronized obtained through comparison is sent to the BGP module or when no MAC entry needing to be synchronized exists as a result of comparison.
Preferably, the MAC table entry synchronization module and the BGP module are both disposed inside the PE device.
Preferably, the MAC entry synchronization module and the BGP module are both disposed inside a software defined network SDN controller in a network to which the PE device belongs.
Preferably, the MAC table entry synchronization module and the BGP module are both disposed inside a network management platform in a network to which the PE device belongs
It can be seen from the foregoing technical solutions that, in the embodiment of the present application, a MAC entry synchronization module is specially configured, so that a software management module in a PE device sends at least one MAC entry synchronized by a forwarding module in the PE device to the MAC entry synchronization module according to a set period.
When the MAC table item synchronization module receives the MAC table items, firstly creating an ordered table comprising at least one MAC table item; then, comparing the MAC table entry in the current created ordered table with the MAC table entry in the last created ordered table, and sending the MAC table entry to be synchronized to the BGP module when the comparison result shows that the MAC table entry to be synchronized exists, so that the BGP module synchronizes the MAC table entry to be synchronized to the far-end PE device which is in communication with the PE device, wherein the MAC table entry to be synchronized comprises one or more of the MAC table entry to be newly added, the MAC table entry to be modified and the MAC table entry to be deleted.
Therefore, in the synchronization process of the MAC table entries, the MAC table entries needing to be synchronized can be determined only by comparing the two ordered tables through the specially-arranged MAC table entry synchronization module, and the MAC table entries are synchronized to the related remote PE equipment through the BGP module.
The above description is only a preferred embodiment of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A MAC table item synchronization method is applied to a MAC table item synchronization module and comprises the following steps:
when at least one MAC table item sent by a software management module in Provider Edge (PE) equipment is received at the present time, an ordered table comprising the at least one MAC table item is created, wherein the at least one MAC table item is an MAC table item which is sent by the software management module according to a set period and is synchronized by a forwarding module in the PE equipment, and the MAC table items in the ordered table are arranged according to the order of Virtual Switching Instance (VSI) identification and MAC addresses included in the MAC table from large to small or from small to large;
comparing the MAC table item in the current created ordered table with the table item content in the MAC table item in the last created ordered table;
and when the comparison result shows that the MAC table entry needing to be synchronized exists, sending the compared MAC table entry needing to be synchronized to a Border Gateway Protocol (BGP) module, so that the BGP module synchronizes the compared MAC table entry needing to be synchronized with the far-end PE equipment for communication with the PE equipment, wherein the compared MAC table entry needing to be synchronized comprises one or more of the MAC table entry needing to be added, the MAC table entry needing to be modified and the MAC table entry needing to be deleted.
2. The method of claim 1, further comprising:
and after the MAC table entry in the current created ordered table and the table entry content in the MAC table entry in the last created ordered table are compared, deleting the last created ordered table and keeping the current created ordered table.
3. The method of claim 1, wherein the MAC entry synchronization module and the BGP module are both disposed inside the PE device.
4. The method of claim 1, wherein the MAC table entry synchronization module and the BGP module are both disposed within a Software Defined Network (SDN) controller in a network to which the PE device belongs.
5. The method according to claim 1, wherein the MAC entry synchronization module and the BGP module are both disposed inside a network management platform in a network to which the PE device belongs.
6. An apparatus for synchronizing MAC table entries, the apparatus being applied to a MAC table entry synchronization module, the apparatus comprising:
a creating unit, configured to create an ordered table including at least one MAC entry when at least one MAC entry sent by a software management module in provider edge PE equipment is currently received, where the at least one MAC entry is an MAC entry sent by the software management module according to a set period and synchronized by a forwarding module in the PE equipment, and the MAC entries in the ordered table are arranged according to a sequence from a virtual switching instance VSI identifier and an MAC address included in the MAC entry to a small one or from a small one;
the comparison unit is used for comparing the MAC table item in the current created ordered table with the table item content in the MAC table item in the last created ordered table;
and the synchronizing unit is used for sending the compared MAC table items needing to be synchronized to a Border Gateway Protocol (BGP) module when the comparison result shows that the MAC table items needing to be synchronized exist, so that the BGP module synchronizes the compared MAC table items needing to be synchronized with the remote PE equipment for communication with the PE equipment, wherein the compared MAC table items needing to be synchronized comprise one or more of MAC table items needing to be added, MAC table items needing to be modified and MAC table items needing to be deleted.
7. The apparatus of claim 6, further comprising:
and the processing unit is used for deleting the ordered list created last time and keeping the ordered list created at the current time after the comparison of the MAC table item in the ordered list created at the current time and the table item content in the MAC table item in the ordered list created last time is finished.
8. The apparatus of claim 6, wherein the MAC table entry synchronization module and the BGP module are both disposed inside the PE device.
9. The apparatus of claim 6, wherein the MAC table entry synchronization module and the BGP module are both disposed within a Software Defined Network (SDN) controller in a network to which the PE device belongs.
10. The apparatus of claim 6, wherein the MAC table entry synchronization module and the BGP module are both disposed inside a network management platform in a network to which the PE device belongs.
CN202110992953.0A 2021-08-27 2021-08-27 MAC table item synchronization method and device Active CN113794642B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110992953.0A CN113794642B (en) 2021-08-27 2021-08-27 MAC table item synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110992953.0A CN113794642B (en) 2021-08-27 2021-08-27 MAC table item synchronization method and device

Publications (2)

Publication Number Publication Date
CN113794642A CN113794642A (en) 2021-12-14
CN113794642B true CN113794642B (en) 2022-11-18

Family

ID=78876553

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110992953.0A Active CN113794642B (en) 2021-08-27 2021-08-27 MAC table item synchronization method and device

Country Status (1)

Country Link
CN (1) CN113794642B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102164091A (en) * 2011-05-13 2011-08-24 北京星网锐捷网络技术有限公司 Method for building MAC (Media Access Control) address table and provider edge device
CN102932499A (en) * 2012-11-01 2013-02-13 杭州华三通信技术有限公司 Method and device for learning media access control (MAC) addresses in virtual private lan service (VPLS) networks
CN103259726A (en) * 2012-02-21 2013-08-21 华为技术有限公司 Method, device and system for storing and sending MAC address table entries
US9100213B1 (en) * 2011-06-08 2015-08-04 Juniper Networks, Inc. Synchronizing VPLS gateway MAC addresses
CN105939402A (en) * 2016-03-03 2016-09-14 杭州迪普科技有限公司 MAC table entry obtaining method and device
CN106878253A (en) * 2015-09-30 2017-06-20 丛林网络公司 MAC(L2)Layer certification, security and policy control
CN108616614A (en) * 2018-04-28 2018-10-02 深圳市风云实业有限公司 MAC Address management method, device and electronic equipment
CN110113260A (en) * 2019-04-28 2019-08-09 新华三技术有限公司 A kind of forwarding table updating method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102164091A (en) * 2011-05-13 2011-08-24 北京星网锐捷网络技术有限公司 Method for building MAC (Media Access Control) address table and provider edge device
US9100213B1 (en) * 2011-06-08 2015-08-04 Juniper Networks, Inc. Synchronizing VPLS gateway MAC addresses
CN103259726A (en) * 2012-02-21 2013-08-21 华为技术有限公司 Method, device and system for storing and sending MAC address table entries
CN102932499A (en) * 2012-11-01 2013-02-13 杭州华三通信技术有限公司 Method and device for learning media access control (MAC) addresses in virtual private lan service (VPLS) networks
CN106878253A (en) * 2015-09-30 2017-06-20 丛林网络公司 MAC(L2)Layer certification, security and policy control
CN105939402A (en) * 2016-03-03 2016-09-14 杭州迪普科技有限公司 MAC table entry obtaining method and device
CN108616614A (en) * 2018-04-28 2018-10-02 深圳市风云实业有限公司 MAC Address management method, device and electronic equipment
CN110113260A (en) * 2019-04-28 2019-08-09 新华三技术有限公司 A kind of forwarding table updating method and device

Also Published As

Publication number Publication date
CN113794642A (en) 2021-12-14

Similar Documents

Publication Publication Date Title
CN106878166B (en) Route notification method and device
CN107733793B (en) Forwarding table item maintenance method and device
CN103338161B (en) A kind of method and apparatus realizing cross-equipment aggregation
CN108173691B (en) Cross-device aggregation method and device
AU2014399458A1 (en) Flow Entry Configuration Method, Apparatus, and System
CN108011958B (en) Network device and MAC address table synchronization method
CN101820435A (en) Synchronization method and device for MAC (Media Access Control) address table information of distributed network processing system
CN102148677A (en) Method for updating address resolution protocol table entries and core switch
CN105162704A (en) Multicast replication method and device in Overlay network
CN103631652A (en) Method and system for achieving virtual machine migration
CN103973673A (en) Virtual firewall partitioning method and equipment
CN106899507B (en) message sending method and device
WO2017008641A1 (en) Method of switching redundancy port and device utilizing same
CN104580472A (en) Flow table item processing method and device
CN100444586C (en) Message repeat method and device
CN109246762A (en) A kind of local service shunt method and device
CN101834781A (en) Media access control address keep-alive device and method for convergence port
CN102215112B (en) Method applied to FCoE (Fiber Channel over Ethernet) networking and used for optimizing FSPE (Fiber Shortest Path First) protocol and switchboards
CN113794642B (en) MAC table item synchronization method and device
CN104780067A (en) Method and device for rebooting PE (port extender)
CN103746943B (en) Method for establishing VLAN subinterface and exchange chip using the same
CN105338127A (en) Media access control MAC address table updating method, switch and system
CN105790985A (en) Data switching method, first device, second device and device
CN102932190A (en) Method and device for solving single point of failure of equipment section
CN103501260A (en) Network configuration method and access device of enterprise network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant