[go: up one dir, main page]

CN108449264B - VPLS network MAC address learning method and device - Google Patents

VPLS network MAC address learning method and device Download PDF

Info

Publication number
CN108449264B
CN108449264B CN201710057820.8A CN201710057820A CN108449264B CN 108449264 B CN108449264 B CN 108449264B CN 201710057820 A CN201710057820 A CN 201710057820A CN 108449264 B CN108449264 B CN 108449264B
Authority
CN
China
Prior art keywords
mac address
source mac
address information
information management
management table
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
CN201710057820.8A
Other languages
Chinese (zh)
Other versions
CN108449264A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201710057820.8A priority Critical patent/CN108449264B/en
Publication of CN108449264A publication Critical patent/CN108449264A/en
Application granted granted Critical
Publication of CN108449264B publication Critical patent/CN108449264B/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/36Backward learning
    • 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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/66Layer 2 routing, e.g. in Ethernet based MAN's

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a method and a device for learning a Virtual Private LAN Service (VPLS) network MAC address, which relate to the field of data communication, can realize that when a VPLS message executes source MAC address learning, only MAC address forwarding entries learned by the same incoming path need to be inquired, and all MAC address forwarding entries stored in a VPLS broadcast domain do not need to be searched, and comprise the following steps: creating a source MAC address information management table for each access path of the equipment; after receiving the VPLS message, searching a matched source MAC address information management table item in a corresponding source MAC address information management table according to a source MAC address, and if the matched source MAC address information management table item is not found, adding a new source MAC address information management table item in the corresponding source MAC address information management table and storing the source MAC address. The invention reduces the search range of the MAC address forwarding table entry, thereby improving the learning efficiency of the source MAC address and further improving the forwarding efficiency of the VPLS message.

Description

VPLS network MAC address learning method and device
Technical Field
The invention belongs to the field of data communication, and particularly relates to a method and a device for learning an MAC address in a VPLS network.
Background
VPLS (Virtual Private LAN Service) is one of metro ethernet technologies, which can effectively connect each access point and implement point-to-point, point-to-multipoint, and multipoint-to-multipoint ethernet services on the network topology. From the connection mode, the VPLS provides a simulated local area network connection for users by using a wide area backbone network of IP (Internet Protocol, Protocol for interconnection between networks)/MPLS (Multi-Protocol Label Switching). From the service provision perspective, the VPLS emulated local area network provides convenient, flexible ethernet services, and this emulated local area network connection is transparent to each customer's branch local area network that spans the wide area network, as if all branch local area networks were connected to the same switch. The VPLS has the advantages of simple configuration, flexible networking, low construction and maintenance cost and the like, and is widely used.
In IP/MPLS network, using existing route and label information, building VPLS neighbor, and announcing forwarding information to neighbor. When receiving the message, the access node firstly executes MAC address learning according to the source MAC address, and then searches the forwarding information and forwards the message according to the destination MAC address. In VPLS forwarding, after a network-side Edge device (PE device for short) receives a VPLS message, an access path receiving the VPLS message may be mapped into multiple types, including an access Circuit (access Circuit for short, AC), a virtual link (Pseudo Wire for short), and the like, and no matter which type of access path receives the VPLS message, a source MAC address learning operation is to be performed, in the prior art, a method for performing the source MAC address learning is as follows: firstly, searching in all MAC address forwarding table item information of a VPLS broadcast domain where a VPLS message is located according to a source MAC address, and if an MAC address forwarding table item matched with the source MAC address is found, considering that the source MAC address is successfully learned and does not need to be learned any more; otherwise, creating an MAC address forwarding table according to the source MAC address and the access path information, and then executing the routing processing of the destination MAC address. In the prior art, because the MAC addresses are allocated uniquely in principle, the source MAC address learning only needs to search for the MAC address forwarding table created according to the source MAC address of the message received via the same ingress path, but needs to search for all MAC address forwarding tables in the entire VPLS broadcast domain, which results in low search efficiency and affects the VPLS message forwarding efficiency.
Disclosure of Invention
The invention provides a VPLS network MAC address learning method and a device, which are used for solving the problems that in the prior art, source MAC address learning only needs to search MAC address forwarding table items created according to source MAC addresses of messages received by the same access path, but all MAC address forwarding table items in the whole VPLS broadcasting domain need to be searched, the searching efficiency is low, and the VPLS message forwarding efficiency is influenced.
Based on the above purpose, in a first aspect, an embodiment of the present invention provides a method for learning a MAC address in a VPLS network, where the method includes:
creating a source MAC address information management table for each access path of the equipment;
after receiving a VPLS message, acquiring access path information and a source MAC address of the VPLS message, finding a corresponding source MAC address information management table according to the access path information, searching a matched source MAC address information management table in the corresponding source MAC address information management table according to the source MAC address, if the source MAC address information management table is not found, adding a new source MAC address information management table and storing the source MAC address in the corresponding source MAC address information management table, searching a matched MAC address forwarding table in an MAC address forwarding table of the whole VPLS broadcast domain according to the source MAC address, if the source MAC address information management table is not found, creating a new MAC address forwarding table according to the source MAC address and the access path information, and recording the address information of the new source MAC address information management table in the new MAC address forwarding table; and then recording the address information of the new MAC address forwarding table entry into the new source MAC address information management table entry.
The method of the embodiment of the invention only needs to query the MAC address forwarding table items learned by the same incoming path when the VPLS message executes the source MAC address learning by adding the source MAC address information management table, does not need to search all the MAC address forwarding table items stored in the VPLS broadcast domain, reduces the search range of the MAC address forwarding table items, thereby improving the source MAC address learning efficiency and further improving the forwarding efficiency of the VPLS message.
In a second aspect, an embodiment of the present invention provides a VPLS network MAC address learning apparatus, where the apparatus includes:
the device comprises a creating module, a judging module and a judging module, wherein the creating module is used for creating a source MAC address information management table for each access path of the device;
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring the access path information and the source MAC address of a VPLS message after receiving the VPLS message;
a searching module, configured to search a corresponding source MAC address information management table according to the access path information, search a matched source MAC address information management table in the corresponding source MAC address information management table according to the source MAC address, if the source MAC address information management table is not found, trigger a creating module to add a new source MAC address information management table in the corresponding source MAC address information management table and store the source MAC address, and search a matched MAC address forwarding table in an MAC address forwarding table of the entire VPLS broadcast domain according to the source MAC address, if the source MAC address information management table is not found, trigger the creating module to create a new MAC address forwarding table according to the source MAC address and the access path information, and record address information of the new source MAC address information management table in the new MAC address forwarding table; recording the address information of the new MAC address forwarding table entry into the new source MAC address information management table entry;
the creating module is further configured to add a new source MAC address information management table entry to the corresponding source MAC address information management table and store the source MAC address;
the creating module is further configured to create a new MAC address forwarding entry according to the source MAC address and the access path information, and record address information of the new source MAC address information management entry in the new MAC address forwarding entry; and then recording the address information of the new MAC address forwarding table entry into the new source MAC address information management table entry.
The invention has the beneficial effects that: by adding the source MAC address information management table, the invention ensures that when the VPLS message executes the source MAC address learning, only the MAC address forwarding table items learned by the same incoming path need to be inquired, and all the MAC address forwarding table items stored in the VPLS broadcast domain do not need to be searched, thereby reducing the search range of the MAC address forwarding table items, improving the source MAC address learning efficiency and further improving the forwarding efficiency of the VPLS message.
Drawings
Fig. 1 is a flowchart of a method for learning a MAC address of a VPLS network according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a corresponding relationship among an ingress path, a source MAC address information management table, and an MAC address forwarding table provided in an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a VPLS network MAC address learning apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a VPLS network MAC address learning apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical scheme of the invention more clear, the invention is further described in detail with reference to the attached drawings:
the embodiment of the invention provides a VPLS network MAC address learning method and a device, which are used for solving the problems that in the prior art, source MAC address learning only needs to search MAC address forwarding table items created according to source MAC addresses of messages received by the same incoming path, but all MAC address forwarding table items in the whole VPLS broadcasting domain need to be searched, the searching efficiency is low, and the VPLS message forwarding efficiency is influenced.
An embodiment of the present invention provides a VPLS network MAC address learning method, as shown in fig. 1, the method includes:
step 101, creating a source MAC address information management table for each access path of equipment;
in this step, each source MAC address information management table is used to store a source MAC address information management table entry created according to a source MAC address of a message received by the same access path; the source MAC address information management table item needs to record the address information of an MAC address forwarding table item matched with the source MAC address, wherein the address information comprises pointer information and the like; the access path in this step is a generic name of AC, PW, etc. that receive the message in the VPLS network, and the embodiments of the present invention do not distinguish specific types, and each type is applicable to the method described in the embodiments of the present invention.
In the embodiment of the invention, a source MAC address information management table is created for each access path of equipment, a source MAC address information management table item of a VPLS message entering from the corresponding access path is stored in each source MAC address information management table, and the source MAC address information management table item is created according to the source MAC address information of the message received from the same access path, so that only one source MAC address information management table item is created for the same source MAC address of the message received by the access path. The source MAC address information management table items are created according to the source MAC address information of the VPLS message entering from the corresponding access path, the address information of the MAC address forwarding table item matched with the source MAC address is stored, and when the source MAC address information management table item is found in the corresponding source MAC address information management table, the source MAC address is considered to be successfully learned and is not learned any more. As shown in fig. 2, an ingress/egress path 1 and an ingress path 2 are listed in an exemplary form, a source MAC address information management table 1 is created according to the ingress path 1, two source MAC address information management entries (a source MAC address information management entry 11 and a source MAC address information management entry 12) are stored in the source MAC address information management table 1, a VPLS message with a source MAC address of aaaa.aaaa.aaaa entering the device from the ingress path 1 finds the source MAC address information management entry 11 in the corresponding source MAC address information management table 1, and the source MAC address is: the MAC address forwarding table matched with aaaa, aaaa is the MAC address forwarding table entry 1, so we can quickly find the MAC address forwarding table entry 1 according to the source MAC address information management table entry 11, and at this time, source MAC address learning is not needed; if the source MAC address is not found in the corresponding source MAC address information management table 1: the source MAC address information management table entry of aaaa, aaaa needs to continue the source MAC address learning.
Similarly, a source MAC address information management table 2 is created according to the entry path 2, N (N is a positive integer greater than 0) source MAC address information management table entries (source MAC address information management table entry 21, source MAC address information management table entries 22, … …) are stored in the source MAC address information management table 2, a VPLS message with a source MAC address of bbbb.bbbb.bbbb entering the device from the entry path 2 finds the source MAC address information management table entry 21 in the corresponding source MAC address information management table 2, and an MAC address forwarding table matched with the source MAC address of bbbb.bbbb.bbb is the MAC address forwarding table entry 2, so that the MAC address forwarding table entry 2 can be quickly found according to the source MAC address information management table entry 21, and source MAC address learning is not needed.
Here, the corresponding relationship among the source MAC address, the source MAC address information management table, and the MAC address forwarding table is only described as an example, and since the number of VPLS messages entering the device from the same access path may be more or less, the number and the position of the source MAC address information management table, and the MAC address forwarding table cannot be specifically limited here.
Step 102, after receiving a VPLS message, obtaining entry path information and a source MAC address of the VPLS message, finding a corresponding source MAC address information management table according to the entry path information, finding a matched source MAC address information management table in the corresponding source MAC address information management table according to the source MAC address, if not, adding a new source MAC address information management table in the corresponding source MAC address information management table and storing the source MAC address, finding a matched MAC address forwarding table in an MAC address forwarding table of the whole VPLS broadcast domain according to the source MAC address, if not, creating a new MAC address forwarding table according to the source MAC address and the entry path information, and recording address information of the new source MAC address information management table in the new MAC address forwarding table; and then recording the address information of the new MAC address forwarding table entry into the new source MAC address information management table entry. In this step, a new MAC address forwarding table is created according to the source MAC address and the access path information, thereby completing the source MAC address learning. In the VPLS message forwarding process, after source MAC address learning is completed, routing according to a destination MAC address is executed, and routing according to the destination MAC address is not the key point of the invention and is not repeated here.
Further, after a source MAC address information management table entry is created according to a source MAC address of the packet, an MAC address forwarding table entry matching the source MAC address needs to be searched in the entire VPLS broadcast domain according to the source MAC address of the packet, and if the MAC address forwarding table entry is found, it indicates that the source MAC address information management table entry of the source MAC address is already stored in other incoming paths and the MAC address forwarding table entry is created, and at this time, an update operation of the MAC address forwarding table entry needs to be performed. For example, when there is link switching operation in the network environment, it may cause a message to be received from the access path a, and after the switch, a message of the same source MAC address is received from the access path B, it is necessary to delete the source MAC address information management table entry from the source MAC address information management table of the access path a, create the source MAC address information management table entry in the source MAC address information management table of the access path B, and point the pointer of the MAC address forwarding table entry matching the source MAC address to the newly created source MAC address information management table entry and update the MAC address forwarding table entry.
According to the source MAC address, a matched source MAC address information management table item is not found in the corresponding source MAC address information management table, a new source MAC address information management table item is added in the corresponding source MAC address information management table, and the source MAC address is stored, and the method also comprises the following steps:
and after the matched MAC address forwarding table entry is found in the MAC address forwarding table of the whole VPLS broadcasting domain according to the source MAC address, the address information of the MAC address forwarding table entry matched with the source MAC address is recorded in the new source MAC address information management table entry, and then the MAC address forwarding table entry matched with the source MAC address is updated.
The updating of the MAC address forwarding table entry matched with the source MAC address specifically includes:
finding out a corresponding old source MAC address information management table according to the address information of a source MAC address information management table recorded in an MAC address forwarding table matched with the source MAC address, and deleting the old source MAC address information management table from the corresponding source MAC address information management table;
and recording the address information of the new source MAC address information management table in the MAC address forwarding table matched with the source MAC address. For example, in fig. 2, the source MAC address of the VPLS packet entering the device from the ingress path 1: xxxx. xxxx, since we do not find the source MAC address in the source MAC address information management table 1 created from ingress path 1: xxxx.xxxx.xxxx source MAC address information management table entry, which is the source MAC address: xxxx. xxxx creates a new source MAC address information management table entry, and then we find the source MAC address in the entire VPLS broadcast domain: the MAC address forwarding table 3 matched with xxxx.xxxx.xxxx needs to find and delete an old source MAC address information management table according to the address information of the source MAC address information management table recorded in the MAC address forwarding table 3, update path information in forwarding information in the MAC address forwarding table 3 to information of path 1, and update the address information of the source MAC address information management table recorded in the MAC address forwarding table 3 to address information of a new source MAC address information management table.
By applying the method of the embodiment of the invention, only the MAC address forwarding table items learned by the same incoming path need to be inquired when the VPLS message executes the source MAC address learning, all the MAC address forwarding table items stored in the VPLS broadcast domain do not need to be searched, and the search range of the MAC address forwarding table items is reduced, thereby improving the source MAC address learning efficiency and further improving the forwarding efficiency of the VPLS message. For example, 10 incoming paths exist in one VPLS broadcast domain, 100 source MAC addresses are learned from each incoming path, the VPLS broadcast domain will maintain 1000 MAC address forwarding entries, and whether source MAC address learning is performed needs to be searched in 1000 MAC address forwarding entries during source MAC address learning, but in the embodiment of the present invention, only the source MAC address information management entries learned from the same incoming path need to be searched, that is, 100 source MAC address information management entries, and the search range is one tenth of that of the existing manner, thereby improving the search efficiency.
Preferably, an embodiment of the present invention also provides an aging processing method for an MAC address forwarding entry, where when the MAC address forwarding entry needs to be aged, the following operations are performed: traversing each MAC address forwarding table in the VPLS broadcast domain, when the MAC address forwarding table needs to execute aging processing, after finding the source MAC address information management table according to the address information of the source MAC address information management table recorded in the MAC address forwarding table, deleting the source MAC address information management table from the corresponding source MAC address information management table, and then deleting the MAC address forwarding table.
And when the MAC address forwarding table entry does not need to perform the aging processing, skipping the MAC address forwarding table entry, and continuously judging whether the next MAC address forwarding table entry needs to perform the aging processing or not until all the MAC address forwarding table entries are traversed and the aging processing is finished, and then exiting. In the embodiment of the present invention, whether the MAC address forwarding table entry needs to be aged is generally determined by determining whether the MAC address forwarding table entry is accessed within a certain period of time.
An embodiment of the present invention provides a method for learning a VPLS network MAC address, and an embodiment of the present invention further provides an apparatus for learning a MAC address in a VPLS network, where, as shown in fig. 3, the apparatus 30 includes:
a creating module 301, configured to create a source MAC address information management table for each access path of the device;
in the embodiment of the invention, a source MAC address information management table is created for each incoming path of the equipment, wherein the incoming path is a general name of AC, PW and the like which receive messages in a VPLS network. Each source MAC address information management table stores source MAC address information management table items of VPLS messages entering from a corresponding access path, and the source MAC address information management table items are created according to source MAC address information of messages received from the same access path, so that only one source MAC address information management table item is created for the same source MAC address of the messages received by the access path. The source MAC address information management table items are created according to the source MAC address of the VPLS message entering from the corresponding access path, the address information of the MAC address forwarding table item matched with the source MAC address is stored, and when the source MAC address information management table item is found in the corresponding source MAC address information management table, the source MAC address is considered to be successfully learned and is not learned any more.
An obtaining module 302, configured to obtain, after receiving a VPLS message, access path information and a source MAC address of the VPLS message;
a searching module 303, configured to search a corresponding source MAC address information management table according to the access path information, search a matched source MAC address information management table in the corresponding source MAC address information management table according to the source MAC address, if the matched source MAC address information management table is not found, trigger the creating module 301 to add a new source MAC address information management table in the corresponding source MAC address information management table and store the source MAC address, and search a matched MAC address forwarding table in an MAC address forwarding table of the entire VPLS broadcast domain according to the source MAC address, if the matched MAC address forwarding table is not found, trigger the creating module 301 to create a new MAC address forwarding table according to the source MAC address and the access path information, and record address information of the new source MAC address information management table in the new MAC address forwarding table; recording the address information of the new MAC address forwarding table entry into the new source MAC address information management table entry; the address information includes pointer information.
The creating module 301 is further configured to add a new source MAC address information management table entry in the corresponding source MAC address information management table and store the source MAC address;
the creating module 301 is further configured to create a new MAC address forwarding entry according to the source MAC address and the access path information, and record address information of the new source MAC address information management entry in the new MAC address forwarding entry; and then recording the address information of the new MAC address forwarding table entry into the new source MAC address information management table entry.
The creating module 301 is further configured to, after finding a matching MAC address forwarding entry in an MAC address forwarding table of the entire VPLS broadcast domain according to the source MAC address, record address information of the MAC address forwarding entry matching the source MAC address in the new source MAC address information management entry, and update the MAC address forwarding entry matching the source MAC address.
The creating module 301 is specifically configured to find a corresponding old source MAC address information management table according to address information of a source MAC address information management table recorded in an MAC address forwarding table matched with the source MAC address, and delete the old source MAC address information management table from the corresponding source MAC address information management table;
and recording the address information of the new source MAC address information management table in the MAC address forwarding table matched with the source MAC address.
Preferably, as shown in fig. 4, an MAC address learning apparatus 30 of the VPLS network according to an embodiment of the present invention further includes: an aging processing module 304, configured to, when an MAC address forwarding table entry needs to perform aging processing, find a source MAC address information management table entry according to address information of the source MAC address information management table entry recorded in the MAC address forwarding table entry, trigger the creating module 301 to delete the source MAC address information management table entry from the corresponding source MAC address information management table, and then delete the MAC address forwarding table entry; and when the MAC address forwarding table entry does not need to perform the aging processing, skipping the MAC address forwarding table entry, and continuously judging whether the next MAC address forwarding table entry needs to perform the aging processing or not until all the MAC address forwarding table entries are traversed and the aging processing is finished, and then exiting. In the embodiment of the present invention, whether the MAC address forwarding table entry needs to be aged is generally determined by determining whether the MAC address forwarding table entry is accessed within a certain period of time.
The creating module 301 is further configured to delete the MAC address forwarding entry after deleting the source MAC address information management entry from the corresponding source MAC address information management table.
According to the embodiment of the invention, by adding the source MAC address information management table, when the VPLS message executes the source MAC address learning, only the MAC address forwarding table items learned by the same incoming path need to be inquired, and all the MAC address forwarding table items stored in the VPLS broadcast domain do not need to be searched, so that the search range of the MAC address forwarding table items is reduced, the source MAC address learning efficiency is improved, and the forwarding efficiency of the VPLS message is further improved.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A VPLS network MAC address learning method is characterized by comprising the following steps:
creating a source MAC address information management table for each access path of equipment, wherein a source MAC address information management table entry of a VPLS message entering from the corresponding access path is stored in the source MAC address information management table entry, and address information of an MAC address forwarding table entry matched with a source MAC address is stored in the source MAC address information management table entry;
after receiving a VPLS message, acquiring access path information and a source MAC address of the VPLS message, finding a corresponding source MAC address information management table according to the access path information, searching a matched source MAC address information management table in the corresponding source MAC address information management table according to the source MAC address, if the source MAC address information management table is not found, adding a new source MAC address information management table and storing the source MAC address in the corresponding source MAC address information management table, searching a matched MAC address forwarding table in an MAC address forwarding table of the whole VPLS broadcast domain according to the source MAC address, if the source MAC address information management table is not found, creating a new MAC address forwarding table according to the source MAC address and the access path information, and recording the address information of the new source MAC address information management table in the new MAC address forwarding table; and then recording the address information of the new MAC address forwarding table entry into the new source MAC address information management table entry.
2. The method of claim 1, wherein after adding a new source MAC address information management entry to the corresponding source MAC address information management table and saving the source MAC address according to the source MAC address not finding a matching source MAC address information management entry in the corresponding source MAC address information management table, the method further comprises:
and after the matched MAC address forwarding table entry is found in the MAC address forwarding table of the whole VPLS broadcasting domain according to the source MAC address, the address information of the MAC address forwarding table entry matched with the source MAC address is recorded in the new source MAC address information management table entry, and then the MAC address forwarding table entry matched with the source MAC address is updated.
3. The method of claim 2, further comprising: the updating of the MAC address forwarding table entry matched with the source MAC address specifically includes:
finding out a corresponding old source MAC address information management table according to the address information of a source MAC address information management table recorded in an MAC address forwarding table matched with the source MAC address, and deleting the old source MAC address information management table from the corresponding source MAC address information management table;
and recording the address information of the new source MAC address information management table in the MAC address forwarding table matched with the source MAC address.
4. The method of claim 1, further comprising:
when the MAC address forwarding table entry needs to perform aging processing, after the source MAC address information management table entry is found according to the address information of the source MAC address information management table entry recorded in the MAC address forwarding table entry, the source MAC address information management table entry is deleted from the corresponding source MAC address information management table, and then the MAC address forwarding table entry is deleted.
5. The method according to any of claims 1-4, wherein the address information comprises pointer information.
6. An apparatus for MAC address learning in a VPLS network, the apparatus comprising:
the device comprises a creating module, a forwarding module and a forwarding module, wherein the creating module is used for creating a source MAC address information management table for each access path of the equipment, the source MAC address information management table stores source MAC address information management items of VPLS messages entering from the corresponding access path, and the source MAC address information management items store address information of MAC address forwarding items matched with a source MAC address;
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring the access path information and the source MAC address of a VPLS message after receiving the VPLS message;
a searching module, configured to search a corresponding source MAC address information management table according to the access path information, search a matched source MAC address information management table in the corresponding source MAC address information management table according to the source MAC address, if the source MAC address information management table is not found, trigger a creating module to add a new source MAC address information management table in the corresponding source MAC address information management table and store the source MAC address, and search a matched MAC address forwarding table in an MAC address forwarding table of the entire VPLS broadcast domain according to the source MAC address, if the source MAC address information management table is not found, trigger the creating module to create a new MAC address forwarding table according to the source MAC address and the access path information, and record address information of the new source MAC address information management table in the new MAC address forwarding table; recording the address information of the new MAC address forwarding table entry into the new source MAC address information management table entry;
the creating module is further configured to add a new source MAC address information management table entry to the corresponding source MAC address information management table and store the source MAC address;
the creating module is further configured to create a new MAC address forwarding entry according to the source MAC address and the access path information, and record address information of the new source MAC address information management entry in the new MAC address forwarding entry; and then recording the address information of the new MAC address forwarding table entry into the new source MAC address information management table entry.
7. The apparatus of claim 6,
the creating module is further configured to, after finding a matching MAC address forwarding entry in an MAC address forwarding table of the entire VPLS broadcast domain according to the source MAC address, record address information of the MAC address forwarding entry matching the source MAC address in the new source MAC address information management entry, and update the MAC address forwarding entry matching the source MAC address.
8. The apparatus of claim 7,
the creating module is specifically configured to find a corresponding old source MAC address information management table according to address information of a source MAC address information management table recorded in an MAC address forwarding table matched with the source MAC address, and delete the old source MAC address information management table from the corresponding source MAC address information management table;
and recording the address information of the new source MAC address information management table in the MAC address forwarding table matched with the source MAC address.
9. The apparatus of claim 6, further comprising: the aging processing module is used for finding the source MAC address information management table entry according to the address information of the source MAC address information management table entry recorded in the MAC address forwarding table entry when the MAC address forwarding table entry needs to perform aging processing, triggering the creating module to delete the source MAC address information management table entry from the corresponding source MAC address information management table, and then deleting the MAC address forwarding table entry;
the creating module is further configured to delete the MAC address forwarding entry after deleting the source MAC address information management entry from the corresponding source MAC address information management table.
10. The apparatus according to any of claims 6-9, wherein the address information comprises pointer information.
CN201710057820.8A 2017-01-23 2017-01-23 VPLS network MAC address learning method and device Active CN108449264B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710057820.8A CN108449264B (en) 2017-01-23 2017-01-23 VPLS network MAC address learning method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710057820.8A CN108449264B (en) 2017-01-23 2017-01-23 VPLS network MAC address learning method and device

Publications (2)

Publication Number Publication Date
CN108449264A CN108449264A (en) 2018-08-24
CN108449264B true CN108449264B (en) 2021-12-14

Family

ID=63190495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710057820.8A Active CN108449264B (en) 2017-01-23 2017-01-23 VPLS network MAC address learning method and device

Country Status (1)

Country Link
CN (1) CN108449264B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155130A (en) * 2006-09-30 2008-04-02 华为技术有限公司 Method for learning MAC address and system and equipment for conveying VPLS client data
CN101616082A (en) * 2009-07-29 2009-12-30 杭州华三通信技术有限公司 The method and apparatus that message is handled in a kind of virtual private LAN service network
CN102694718A (en) * 2011-03-25 2012-09-26 华为技术有限公司 Virtual private LAN service (VPLS) rapid rerouting method and equipment thereof
CN102801625A (en) * 2012-08-17 2012-11-28 杭州华三通信技术有限公司 Method and device for double layered mutual communication in heterogeneous network
CN102123106B (en) * 2011-04-21 2013-08-14 杭州华三通信技术有限公司 MAC (Multi-Access Computer) addresses learning method and device in virtual private local area network service (VPLS) network
EP2640015A1 (en) * 2010-11-11 2013-09-18 ZTE Corporation Method and device for configuring vpls mac entry space
CN107332774A (en) * 2017-06-09 2017-11-07 烽火通信科技股份有限公司 A kind of method for carrying out MAC address learning in VPLS based on software-hardware synergism

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8059549B2 (en) * 2009-02-17 2011-11-15 Tellabs Operations, Inc. Method and apparatus for supporting network communications using point-to-point and point-to-multipoint protocols
US8958344B2 (en) * 2013-02-20 2015-02-17 Telefonaktiebolaget L M Ericsson (Publ) Method and system of enhancing multiple MAC registration protocol (MMRP) for protocol internetworking

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155130A (en) * 2006-09-30 2008-04-02 华为技术有限公司 Method for learning MAC address and system and equipment for conveying VPLS client data
CN101616082A (en) * 2009-07-29 2009-12-30 杭州华三通信技术有限公司 The method and apparatus that message is handled in a kind of virtual private LAN service network
EP2640015A1 (en) * 2010-11-11 2013-09-18 ZTE Corporation Method and device for configuring vpls mac entry space
CN102694718A (en) * 2011-03-25 2012-09-26 华为技术有限公司 Virtual private LAN service (VPLS) rapid rerouting method and equipment thereof
CN102123106B (en) * 2011-04-21 2013-08-14 杭州华三通信技术有限公司 MAC (Multi-Access Computer) addresses learning method and device in virtual private local area network service (VPLS) network
CN102801625A (en) * 2012-08-17 2012-11-28 杭州华三通信技术有限公司 Method and device for double layered mutual communication in heterogeneous network
CN107332774A (en) * 2017-06-09 2017-11-07 烽火通信科技股份有限公司 A kind of method for carrying out MAC address learning in VPLS based on software-hardware synergism

Also Published As

Publication number Publication date
CN108449264A (en) 2018-08-24

Similar Documents

Publication Publication Date Title
CN100505674C (en) Packet forwarding method, system and verge equipment in virtual private network
CN105099913B (en) A kind of message forwarding method and equipment
CN102368726B (en) Forwarding method and device applied to L2VPN (layer 2 virtual private network)
US9369293B2 (en) Compressing singly linked lists sharing common nodes for multi-destination group expansion
EP4073986A1 (en) Efficient arp bindings distribution in vpn networks
CN103581022B (en) MAC address finding and transmitting method and device
CN104378296A (en) Message forwarding method and device
CN102075419B (en) Method for generating and transmitting three-layer virtual special network equative routing and edge router
CN107707474B (en) Route distribution method and system
CN102123106A (en) MAC (Multi-Access Computer) addresses learning method and device in virtual private local area network service (VPLS) network
KR20130109154A (en) Prioritization of routing information updates
CN104811380A (en) Method for transmitting traffic-guiding routing information and cleaning apparatus
CN107547346B (en) Message transmission method and device
US7782797B2 (en) Methods and apparatus for self partitioning a data network to prevent address conflicts
CN106803809B (en) Message forwarding method and device
CN110430131B (en) Message forwarding method and device
CN113726653B (en) Message processing method and device
CN113904981B (en) Routing information processing method and device, electronic equipment and storage medium
CN113472699A (en) Network table item synchronization method and device
US11223499B2 (en) Interconnecting networks operating different types of control planes
CN104468348A (en) Service provider boundary routers, system and method for achieving fast VPN rerouting
CN101827023B (en) Processing method of data and device thereof
CN108449264B (en) VPLS network MAC address learning method and device
CN114244763B (en) Dynamic network topology management method and system based on rule engine
CN106789525B (en) Message forwarding method and device in a kind of VPLS 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
CP02 Change in the address of a patent holder

Address after: 610041 nine Xing Xing Road 16, hi tech Zone, Sichuan, Chengdu

Patentee after: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 610041 15-24 floor, 1 1 Tianfu street, Chengdu high tech Zone, Sichuan

Patentee before: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder