CN107332940B - Method and system for realizing MAC address synchronization of distributed IP RAN equipment - Google Patents

Method and system for realizing MAC address synchronization of distributed IP RAN equipment Download PDF

Info

Publication number
CN107332940B
CN107332940B CN201710418369.8A CN201710418369A CN107332940B CN 107332940 B CN107332940 B CN 107332940B CN 201710418369 A CN201710418369 A CN 201710418369A CN 107332940 B CN107332940 B CN 107332940B
Authority
CN
China
Prior art keywords
mac address
outlet
sending
disk
message
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
CN201710418369.8A
Other languages
Chinese (zh)
Other versions
CN107332940A (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201710418369.8A priority Critical patent/CN107332940B/en
Publication of CN107332940A publication Critical patent/CN107332940A/en
Application granted granted Critical
Publication of CN107332940B publication Critical patent/CN107332940B/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
    • 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
    • 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]

Landscapes

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

Abstract

The invention relates to the field of communication equipment, and discloses a method for realizing MAC address synchronization of distributed IP RAN equipment, which comprises the following steps: s1: searching an MAC address table of an inlet disk in the VPLS to obtain a sending outlet of an MAC address synchronous message to be sent in the inlet disk, and sending the MAC address synchronous message to be sent to an outlet disk corresponding to the sending outlet; s2: searching the MAC address table of the outlet disk which receives the MAC address synchronous message to obtain a sending outlet of the MAC address synchronous message, comparing the sending outlet with the sending outlet obtained in S1, judging whether the two sending outlets are the same, if so, ending, and if not, turning to S3; s3: the ingress disk generates the same MAC address sync message to be sent as the MAC address sync message received by the egress disk in S2, and then goes to S1. The invention also discloses a system for realizing the MAC address synchronization of the distributed IP RAN equipment. The invention can effectively ensure the reliability of MAC address synchronization of the IP RAN equipment.

Description

Method and system for realizing MAC address synchronization of distributed IP RAN equipment
Technical Field
The invention relates to the field of communication equipment, in particular to a method and a system for realizing MAC address synchronization of distributed IP RAN equipment.
Background
An IP RAN (Radio Access Network) device, that is, an IP-based Radio Access Network device, generally adopts a VPLS (virtual private lan service) model when performing Network deployment, thereby implementing a function of a virtual lan and conveniently aggregating services of each child node to a root node for processing. The forwarding of services in the VPLS model depends on the learning of MAC addresses (physical addresses) of all ports, for IP RAN equipment, the MAC addresses can be learned at all service slot ports of the equipment, meanwhile, when a certain service slot port learns a new MAC address, other service slot ports need to be informed, namely, the newly learned MAC address needs to be synchronized among all slot ports, and therefore the services are guaranteed to be forwarded according to a correct path.
In the distributed IP RAN device, the MAC address synchronization between different slot positions is realized by sending an MAC address synchronization packet, but in the actual application process, as the number of MAC addresses continuously increases, problems such as MAC address offset caused by network loops during packet transmission sometimes occur, so that the MAC address packet is easily lost, and further, the MAC addresses on the slot positions are not synchronized, which affects the normal transmission of services.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a method for realizing the MAC address synchronization of distributed IP RAN equipment and a system for realizing the MAC address synchronization of the distributed IP RAN equipment, so that the reliability of the MAC address synchronization of the IP RAN equipment is effectively ensured.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows:
s1: searching an MAC address table of an inlet disk in the VPLS to obtain a sending outlet of an MAC address synchronous message to be sent in the inlet disk, and sending the MAC address synchronous message to be sent to an outlet disk corresponding to the sending outlet;
s2: searching the MAC address table of the outlet disk which receives the MAC address synchronous message to obtain a sending outlet of the MAC address synchronous message, comparing the sending outlet with the sending outlet obtained in S1, judging whether the two sending outlets are the same, if so, ending, and if not, turning to S3;
s3: the ingress disk generates the same MAC address sync message to be sent as the MAC address sync message received by the egress disk in S2, and then goes to S1.
On the basis of the technical scheme, the MAC address tables in the inlet disk and the outlet disk both contain the sending outlet information of the MAC address synchronous message.
On the basis of the technical scheme, according to the message header field rule and the vsi rule searched by the MAC address table, the sending outlet of the MAC address synchronous message is searched in the MAC address tables of the outlet disk and the inlet disk.
On the basis of the technical scheme, the MAC address synchronous message is sent to the front of an output disk:
and expanding the message field of the MAC address synchronous message to enable the MAC address synchronous message to carry the sending outlet information obtained by searching in the MAC address table of the inlet disk.
On the basis of the above technical solution, in step S2, according to the sending exit information carried by the MAC address synchronization message, the sending exit found by the MAC address synchronization message in the entry disk is compared with the sending exit found in the MAC address table of the exit disk.
The invention also provides a system for realizing the MAC address synchronization of the distributed IP RAN equipment, which comprises the following steps:
the searching module is used for searching a sending outlet of the MAC address synchronous message to be sent in the MAC address table of the inlet disk and searching a sending outlet of the MAC address synchronous message received by the outlet disk in the MAC address table of the outlet disk;
the sending module is used for searching the obtained sending outlet of the MAC address synchronous message to be sent according to the MAC address table of the inlet disk and sending the MAC address synchronous message to be sent to the outlet disk corresponding to the sending outlet;
and the comparison module is used for comparing the sending outlet searched by the MAC address synchronous message in the inlet disc with the sending outlet searched in the MAC address table of the outlet disc, judging whether the two sending outlets are the same or not, if so, ending, and if not, sending the MAC address synchronous message which is the same as the MAC address synchronous message received by the outlet disc to the outlet disc again by the inlet disc.
On the basis of the technical scheme, the MAC address tables in the inlet disk and the outlet disk both contain the sending outlet information of the MAC address synchronous message.
On the basis of the technical scheme, the searching module searches the sending outlet of the MAC address synchronous message in the MAC address tables of the outlet disk and the inlet disk according to the message header field rule and vsi rule searched by the MAC address table.
On the basis of the above technical solution, the sending module is further configured to expand a message field of the MAC address synchronization message before sending the MAC address synchronization message to the exit disk, so that the MAC address synchronization message carries the sending exit information obtained by searching in the MAC address table of the entry disk.
On the basis of the technical scheme, the comparison module compares the sending outlet obtained by searching the MAC address synchronous message in the inlet disc with the sending outlet obtained by searching the MAC address table in the outlet disc according to the sending outlet information carried by the MAC address synchronous message.
Compared with the prior art, the invention has the advantages that: searching and obtaining the sending outlet of the MAC address synchronous message and the outlet disc corresponding to the sending outlet in the MAC address table of the outlet disc, when the MAC address synchronous message is received by the outlet disk, the outlet disk receiving the MAC address synchronous message searches the MAC address table of the outlet disk again to obtain the sending outlet of the MAC address synchronous message, compares the two sending outlets, thereby judging whether the MAC address synchronous message is received by the correct outlet disc, if the two sending outlets are different, then it indicates that the MAC address sync message sent by the surface ingress disk is not received by the correct egress disk, at this time, the ingress disk repeatedly sends the MAC address sync message again until it is received by the correct egress disk, by comparing the sending outlet of the MAC address synchronization message and retransmitting the sending outlet of the MAC address synchronization message, the reliability of MAC address synchronization among the single disks of the IP RAN equipment is effectively ensured.
Drawings
Fig. 1 is a flowchart of a method for implementing MAC address synchronization of distributed IP RAN devices according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
Referring to fig. 1, the present invention provides a method for implementing MAC address synchronization of distributed IP RAN devices, which is mainly used for MAC address synchronization between service disks of the distributed IP RAN devices, and the IP RAN devices are deployed based on a VPLS model. The method for realizing the MAC address synchronization of the distributed IP RAN equipment comprises the following steps:
s1: and searching an MAC address table of an inlet disk in the VPLS to obtain a sending outlet of an MAC address synchronous message to be sent in the inlet disk, and sending the MAC address synchronous message to be sent to an outlet disk corresponding to the sending outlet. For the lookup of the MAC address table, according to the message header field rule and vsi (Virtual Switch Interface) rule looked up by the MAC address table, the sending outlet of the MAC address synchronization message is found in the MAC address tables of the egress disk and the ingress disk. vsi is a protocol for controlling the wan, and the message header field rule and vsi rule are commonly used MAC address table lookup rules, that is, based on the MAC address synchronization message, and then the sending outlet of the MAC address synchronization message can be found in the MAC address table by using the message header field rule and vsi rule.
S2: and searching the MAC address table of the outlet disk which receives the MAC address synchronous message to obtain a sending outlet of the MAC address synchronous message, comparing the sending outlet with the sending outlet obtained in the step S1, judging whether the two sending outlets are the same, if so, ending, and if not, turning to the step S3. The VPLS includes a plurality of egress disks, one sending egress corresponds to an egress disk, and although it is known in step S1 that the MAC address synchronization packet should be specifically sent to an egress disk, in the sending process of the MAC address synchronization packet, the MAC address synchronization packet may be sent to other egress disks due to some error problems, so that the MAC address table of the egress disk is searched again for the egress disk that receives the MAC address synchronization packet, the actual sending egress of the MAC address synchronization packet received by the egress disk is obtained, and the actual sending egress is compared with the sending egress obtained in step S1, thereby determining that the MAC address synchronization packet should be received by the current egress disk.
The MAC address tables in the ingress and egress disks both contain the sending egress information of the MAC address sync message, that is, for an egress disk corresponding to a certain MAC address sync message, the information of the MAC address tables in the ingress and egress disks both contain, and the egress disk receiving the current MAC address sync message can be known by looking up in the MAC address table.
Before the MAC address synchronous message is sent to the outlet disk, the message field of the MAC address synchronous message is expanded, so that the MAC address synchronous message carries the sending outlet information which is obtained by searching in the MAC address table of the inlet disk. That is, the sending outlet information of the MAC address synchronization message searched in the MAC address table of the ingress disk is added to the MAC address synchronization message, so that the MAC address synchronization message is compared with the sending outlet information of the MAC address synchronization message searched in the MAC address table of the egress disk after being sent to the egress disk.
S3: the entrance disc generates the MAC address synchronization message to be sent which is the same as the MAC address synchronization message received by the exit disc in S2, and then goes to S1, i.e., the retransmission mechanism of the message is started until the MAC address synchronization message is successfully received by the exit disc found in the MAC address table of the entrance disc.
The invention relates to a method for realizing MAC address synchronization of distributed IP RAN equipment, which comprises the steps of searching an MAC address table of an outlet disc to obtain a sending outlet of an MAC address synchronous message and the outlet disc corresponding to the sending outlet, searching the MAC address table of the outlet disc by the outlet disc again to obtain the sending outlet of the MAC address synchronous message after the MAC address synchronous message is received by the outlet disc, comparing the two sending outlets to judge whether the MAC address synchronous message is received by the correct outlet disc, and if the two sending outlets are different, repeatedly sending the MAC address synchronous message by the inlet disc again until the MAC address synchronous message is received by the correct outlet disc.
The invention also provides a system for synchronizing the MAC address of the distributed IPRAN equipment based on the method for synchronizing the MAC address of the distributed IP RAN equipment, which comprises a searching module, a sending module and a comparing module.
The searching module is used for searching a sending outlet of the MAC address synchronous message to be sent in an MAC address table of the inlet disc and searching a sending outlet of the MAC address synchronous message received by the outlet disc in an MAC address table of the outlet disc; the sending module is used for searching the obtained sending outlet of the MAC address synchronous message to be sent according to the MAC address table of the inlet disc and sending the MAC address synchronous message to be sent to the outlet disc corresponding to the sending outlet; the comparison module is used for comparing the sending outlet searched by the MAC address synchronous message in the inlet disc with the sending outlet searched in the MAC address table of the outlet disc, judging whether the two sending outlets are the same, if so, ending, and if not, the inlet disc sends the MAC address synchronous message which is the same as the MAC address synchronous message received by the outlet disc to the outlet disc again.
The MAC address tables in the inlet disk and the outlet disk both contain the sending outlet information of the MAC address synchronous message.
The searching module searches the sending outlet of the MAC address synchronous message in the MAC address tables of the outlet disk and the inlet disk according to the message header field rule and vsi rule searched by the MAC address table. The sending module is further configured to expand a message field of the MAC address synchronization message before sending the MAC address synchronization message to the exit disk, so that the MAC address synchronization message carries the sending exit information obtained by searching in the MAC address table of the entry disk. And the comparison module compares the sending outlet obtained by searching the MAC address synchronous message in the inlet disc with the sending outlet obtained by searching in the MAC address table of the outlet disc according to the sending outlet information carried by the MAC address synchronous message.
The system for synchronizing the MAC addresses of the distributed IP RAN equipment has the advantages that through the searching module, searching and obtaining the sending outlet of the MAC address synchronous message and the outlet disc corresponding to the sending outlet in the MAC address table of the outlet disc, when the MAC address synchronous message is received by the outlet disk, the outlet disk receiving the MAC address synchronous message searches the MAC address table of the outlet disk again to obtain the sending outlet of the MAC address synchronous message, then the comparison module compares the two sending outlets to judge whether the MAC address synchronous message is received by the correct outlet disc, if the two sending outlets are different, the MAC address sync message sent by the surface ingress disk is not received by the correct egress disk, the ingress disk repeatedly sends the MAC address synchronization packet again until the packet is received by the correct egress disk, thereby ensuring the reliability of MAC address synchronization between the individual disks of the IP RAN device.
The present invention is not limited to the above-described embodiments, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements are also considered to be within the scope of the present invention. Those not described in detail in this specification are within the skill of the art.

Claims (9)

1. A method for realizing MAC address synchronization of distributed IP RAN equipment, wherein the IP RAN equipment is deployed based on a VPLS model, and the method is characterized by comprising the following steps:
s1: searching an MAC address table of an inlet disk in the VPLS to obtain a sending outlet of an MAC address synchronous message to be sent in the inlet disk, and sending the MAC address synchronous message to be sent to an outlet disk corresponding to the sending outlet; before the MAC address synchronous message is sent to an output disk: expanding the message field of the MAC address synchronous message to enable the MAC address synchronous message to carry the sending outlet information searched and obtained in the MAC address table of the inlet disc;
s2: searching the MAC address table of the outlet disk which receives the MAC address synchronous message to obtain a sending outlet of the MAC address synchronous message, comparing the sending outlet with the sending outlet obtained in S1, judging whether the two sending outlets are the same, if so, ending, and if not, turning to S3;
s3: the ingress disk generates the same MAC address sync message to be sent as the MAC address sync message received by the egress disk in S2, and then goes to S1.
2. The method of claim 1, wherein the MAC address synchronization of the distributed IP RAN equipment is performed by: the MAC address tables in the inlet disk and the outlet disk both contain the sending outlet information of the MAC address synchronous message.
3. The method of claim 1, wherein the MAC address synchronization of the distributed IP RAN equipment is performed by: and finding the sending outlet of the MAC address synchronous message in the MAC address tables of the outlet disk and the inlet disk according to the message header field rule and vsi rule searched by the MAC address table.
4. The method of claim 1, wherein the MAC address synchronization of the distributed IP RAN equipment is performed by: in step S2, according to the sending exit information carried by the MAC address synchronization message, the sending exit found by the MAC address synchronization message in the entry disc is compared with the sending exit found in the MAC address table of the exit disc.
5. A system for implementing MAC address synchronization of distributed IP RAN devices based on the method of claim 1, comprising:
the searching module is used for searching a sending outlet of the MAC address synchronous message to be sent in the MAC address table of the inlet disk and searching a sending outlet of the MAC address synchronous message received by the outlet disk in the MAC address table of the outlet disk;
the sending module is used for searching the obtained sending outlet of the MAC address synchronous message to be sent according to the MAC address table of the inlet disk and sending the MAC address synchronous message to be sent to the outlet disk corresponding to the sending outlet;
and the comparison module is used for comparing the sending outlet searched by the MAC address synchronous message in the inlet disc with the sending outlet searched in the MAC address table of the outlet disc, judging whether the two sending outlets are the same or not, if so, ending, and if not, sending the MAC address synchronous message which is the same as the MAC address synchronous message received by the outlet disc to the outlet disc again by the inlet disc.
6. The system of claim 5, wherein the system is configured to synchronize MAC addresses of distributed IP RAN devices, and wherein: the MAC address tables in the inlet disk and the outlet disk both contain the sending outlet information of the MAC address synchronous message.
7. The system of claim 5, wherein the system is configured to synchronize MAC addresses of distributed IP RAN devices, and wherein: the searching module searches the sending outlet of the MAC address synchronous message in the MAC address tables of the outlet disk and the inlet disk according to the message header field rule and vsi rule searched by the MAC address table.
8. The system of claim 5, wherein the system is configured to synchronize MAC addresses of distributed IP RAN devices, and wherein: the sending module is further configured to expand a message field of the MAC address synchronization message before sending the MAC address synchronization message to the exit disk, so that the MAC address synchronization message carries the sending exit information obtained by searching in the MAC address table of the entry disk.
9. The system of claim 8, wherein the system is configured to synchronize MAC addresses of distributed IP RAN devices, and wherein: and the comparison module compares the sending outlet obtained by searching the MAC address synchronous message in the inlet disc with the sending outlet obtained by searching in the MAC address table of the outlet disc according to the sending outlet information carried by the MAC address synchronous message.
CN201710418369.8A 2017-06-06 2017-06-06 Method and system for realizing MAC address synchronization of distributed IP RAN equipment Active CN107332940B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710418369.8A CN107332940B (en) 2017-06-06 2017-06-06 Method and system for realizing MAC address synchronization of distributed IP RAN equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710418369.8A CN107332940B (en) 2017-06-06 2017-06-06 Method and system for realizing MAC address synchronization of distributed IP RAN equipment

Publications (2)

Publication Number Publication Date
CN107332940A CN107332940A (en) 2017-11-07
CN107332940B true CN107332940B (en) 2020-04-28

Family

ID=60194289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710418369.8A Active CN107332940B (en) 2017-06-06 2017-06-06 Method and system for realizing MAC address synchronization of distributed IP RAN equipment

Country Status (1)

Country Link
CN (1) CN107332940B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820435A (en) * 2009-02-27 2010-09-01 华为技术有限公司 Synchronization method and device for MAC (Media Access Control) address table information of distributed network processing system
CN101969398A (en) * 2010-09-17 2011-02-09 中兴通讯股份有限公司 Aging method and system of MAC (Media Access Control) address
CN105119831A (en) * 2015-09-15 2015-12-02 烽火通信科技股份有限公司 MAC (Media Access Control) address learning method and system
CN106790703A (en) * 2017-02-24 2017-05-31 烽火通信科技股份有限公司 A kind of MAC Address synchronous method of distributed datacom device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103401787B (en) * 2013-08-12 2017-02-22 北京华为数字技术有限公司 Static route issuing method and UPE (Ultimate Provider Edge)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820435A (en) * 2009-02-27 2010-09-01 华为技术有限公司 Synchronization method and device for MAC (Media Access Control) address table information of distributed network processing system
CN101969398A (en) * 2010-09-17 2011-02-09 中兴通讯股份有限公司 Aging method and system of MAC (Media Access Control) address
CN105119831A (en) * 2015-09-15 2015-12-02 烽火通信科技股份有限公司 MAC (Media Access Control) address learning method and system
CN106790703A (en) * 2017-02-24 2017-05-31 烽火通信科技股份有限公司 A kind of MAC Address synchronous method of distributed datacom device

Also Published As

Publication number Publication date
CN107332940A (en) 2017-11-07

Similar Documents

Publication Publication Date Title
US20210119718A1 (en) Symmetric path/link over lag interface using lldp for time synchronization between two nodes using ptp
US11349687B2 (en) Packet processing method, device, and system
EP2632088B1 (en) Method and device for storing and sending mac address entry
CN107925629B (en) Method and device for sending data message in IPv6 network
EP3854064B1 (en) Unique identities of endpoints across layer 3 networks
WO2015135425A1 (en) Message processing method, access controller and network node
CN108964940B (en) Message sending method and device and storage medium
CN102026364B (en) Precise time protocol message processing method and clock equipment
CN107204907B (en) Cloud data center interconnection method and device
US11088871B1 (en) Fast convergence for MAC mobility
WO2014173309A1 (en) Forwarding packets
US11398875B2 (en) Simplified synchronized ethernet implementation
CN109274588A (en) The processing method and processing device of IP packet
WO2016150307A1 (en) Firewall dual-machine hot spare method, device and system
CN105119831A (en) MAC (Media Access Control) address learning method and system
US20240048502A1 (en) Packet forwarding method, electronic device, and storage medium
CN105227458B (en) The route computing method and device of TRILL ISIS
CN105591892B (en) A kind of starting method and apparatus of smooth restarting process
US11558286B2 (en) Wireless control and fabric links for high-availability cluster nodes
US9893979B2 (en) Network topology discovery by resolving loops
WO2020152692A1 (en) Method and system to prevent micro-loops during a network topology change
CN103457794B (en) Method and system for confirming faults of IP bearer network
CN106161670B (en) Address translation processing method and address translation processing device
US10469343B2 (en) Path continuity determination in an aggregate flow environment
CN107332940B (en) Method and system for realizing MAC address synchronization of distributed IP RAN equipment

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