CN110266599A - One kind being based on distributed apparatus MAC address learning method and system - Google Patents

One kind being based on distributed apparatus MAC address learning method and system Download PDF

Info

Publication number
CN110266599A
CN110266599A CN201910578373.XA CN201910578373A CN110266599A CN 110266599 A CN110266599 A CN 110266599A CN 201910578373 A CN201910578373 A CN 201910578373A CN 110266599 A CN110266599 A CN 110266599A
Authority
CN
China
Prior art keywords
mac address
disk
exit port
message
port information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910578373.XA
Other languages
Chinese (zh)
Other versions
CN110266599B (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 CN201910578373.XA priority Critical patent/CN110266599B/en
Publication of CN110266599A publication Critical patent/CN110266599A/en
Application granted granted Critical
Publication of CN110266599B publication Critical patent/CN110266599B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • H04L45/745Address table lookup; Address filtering
    • 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

Landscapes

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

Abstract

The invention discloses one kind to be based on distributed apparatus MAC address learning method and system, it is related to field of communication technology, the present invention carries out confirmation detection to service traffics message trend according to the DMAC of service traffics message, judge whether that needing to carry out MAC Address relearns, and relearns MAC Address when needing according to testing result.To guarantee that system in the case where MAC address learning loss of learning or mistake, can be restored automatically, lifting system robustness.

Description

One kind being based on distributed apparatus MAC address learning method and system
Technical field
The present invention relates to fields of communication technology, and in particular to one kind is based on distributed apparatus MAC address learning method and is System.
Background technique
MAC Address is the important evidence that message forwarding is carried out in communication equipment, and message passes through in inquiry mac address table The corresponding relationship of MAC Address and port obtains sending port information required for message repeating process.
With the continuous promotion of network data transmission speed, the communication equipment of monolithic service board has been difficult to handle present net The data traffic of network.Therefore, distributed datacom device is devised the linear speed for being difficult to complete for handling monolithic service board Forwarding.Distributed datacom device is made of muti-piece service board, all can bearing part business in each piece of service board.As shown in Figure 1, For the schematic diagram of a distributed datacom device, wherein message flow enters from a block entrance service board, and MAC is inquired in service board Export business disk and port are learnt in address, are subsequently forwarded to export business disk and carry out subsequent processing, finally transfer from exit port It goes.MAC Address is notified that other service boards are realized by way of sending MAC Address sync message to other service boards 's.
MAC Address needs on distributed datacom device synchronize in muti-piece service board.Such as service traffics from The port 1 of service board A enters, and from the process that the port of service board B 2 forwards, which can be according to report on disk A The target MAC (Media Access Control) address of text inquires mac address table, and query result shows the port 2 for being forwarded to service board B, later the service traffics It can be just forwarded to the port 2 of service board B, complete entire forwarding process.In the forwarding process, only learned when from the port service board B 2 The MAC Address practised is synchronized to service board A, could be with service traffics target MAC (Media Access Control) address in forwarding process on service board A Keyword, inquiry mac address table obtain outlet information.If MAC Address is not arrived in service board B study, or from service board B It is synchronized to service board A failure, service traffics is will lead to and floods in a network, influences message forwarding.
In the prior art, not can guarantee MAC Address sync message can centainly reach other service boards, transmitted MAC Address synchronization message may be dropped in originating end, transmission process and receiving terminal.Occur when MAC Address sync message abandons When, it will lead to corresponding mac address information loss or mistake, and then service traffics broadcast flooding is caused even to move towards wrong Accidentally.
Summary of the invention
In view of the deficiencies in the prior art, the purpose of the present invention is to provide one kind based on distributed apparatus MAC Location learning method and system guarantee that system in the case where MAC address learning loss of learning or mistake, can be restored automatically, Lifting system robustness.
To achieve the above objectives, the technical solution adopted by the present invention is that: one kind be based on distributed apparatus MAC address learning side Method, comprising the following steps:
The MAC Address learnt is synchronized to access service disk by export business disk, and access service disk updates its MAC Address Table;
Access service packing inquires the MAC Address of access service disk according to DMAC the and VPLS instance number of service traffics message Table obtains exit port information, the outlet that the DMAC and VPLS instance number of service traffics message and inquiry MAC Address are obtained Message breath is forwarded to export business disk;
Export business packing inquires the MAC of export business disk according to DMAC the and VPLS instance number of the service traffics message received Address table obtains exit port information;Judge that the exit port information that access service disk is sent interrogates and examines inquiry MAC Address with export business Whether the exit port information that table obtains is identical;If it is different, export business then to be interrogated and examined to the obtained outlet message for asking mac address table Breath, composition MAC sync message are sent to access service disk.
On the basis of above scheme, the MAC Address learnt is synchronized to access service disk, entrance industry by export business disk Business disk updates its mac address table, specifically includes the following steps:
After the study to MAC Address of export business disk, Xiang Suoyou access service disk sends MAC sync message, and the MAC is synchronous It include MAC Address, VPLS instance number and business exit port information in message;
Access service disk receives MAC Address sync message, parses MAC Address, VPLS instance number and exit port information, protects It is stored in the mac address table of access service disk.
On the basis of above scheme, access service packing according to DMAC the and VPLS instance number of service traffics message inquire into The mac address table of port service disk obtains exit port information, by DMAC the and VPLS instance number of service traffics message and inquiry The exit port information that MAC Address obtains is forwarded to export business disk, specifically includes the following steps:
According to DMAC the and VPLS instance number of service traffics message, access service disk mac address table is inquired;
If inquiry mac address table has matching list item, exit port information is obtained from mac address table;If inquiring MAC Address table does not match list item, then exit port information flag is invalid;
Increase privately owned field information for service traffics message, the privately owned field information includes message DMAC, VPLS example Number and exit port information;Service traffics message is forwarded to export business disk.
On the basis of above scheme, the exit port packet includes port service reel number, corresponding on export business disk Port numbers.
On the basis of above scheme, DMAC the and VPLS instance number for the service traffics message that export business packing evidence receives The mac address table for inquiring export business disk, obtains exit port information;Judge the exit port information and go out that access service disk is sent Whether port service interrogates and examines the exit port information that inquiry mac address table obtains identical;If it is different, then export business is interrogated and examined with asking MAC The obtained exit port information of location table, composition MAC sync message are sent to access service disk, specifically includes the following steps:
The privately owned field information for parsing service traffics message obtains access service and interrogates and examines the exit port that inquiry MAC Address obtains Information, DMAC the and VPLS instance number of service traffics message;
The mac address table that export business disk is inquired according to DMAC the and VPLS instance number of service traffics message, is exported The exit port information of the service traffics learnt in service board mac address table;
Compare the exit port information in the privately owned field information of service traffics message and inquires the exit port that MAC Address obtains Whether information is identical;
Then process terminates if they are the same;If not identical and export business interrogates and examines inquiry, mac address table has occurrence, export business Occurrence MAC Address is reformulated MAC sync message by disk, is sent to access service disk.
The present invention also provides one kind to be based on distributed apparatus MAC address learning system, including export business disk and entrance industry Business disk:
Access service disk is used for: the MAC of access service disk is inquired according to DMAC the and VPLS instance number of service traffics message Address table obtains exit port information, DMAC the and VPLS instance number of service traffics message and inquiry MAC Address are obtained Exit port information is forwarded to export business disk;
Export business disk is used for: inquiring export business disk according to DMAC the and VPLS instance number of the service traffics message received Mac address table, obtain exit port information;Judge that the exit port information that access service disk is sent interrogates and examines inquiry with export business Whether the exit port information that mac address table obtains is identical;Obtaining for mac address table is ask if it is different, then interrogating and examining export business Exit port information, composition MAC sync message are sent to access service disk.
On the basis of above scheme,
The export business disk is also used to: after study to MAC Address, Xiang Suoyou access service disk sends MAC sync message, It include MAC Address, VPLS instance number and business exit port information in the MAC sync message;
The access service disk is also used to: being received MAC Address sync message, is parsed MAC Address, VPLS instance number and go out Port information is saved in the mac address table of access service disk.
On the basis of above scheme, the access service disk is specifically used for:
According to DMAC the and VPLS instance number of service traffics message, access service disk mac address table is inquired;
If inquiry mac address table has matching list item, exit port information is obtained from mac address table;If inquiring MAC Address table does not match list item, then exit port information flag is invalid;
Increase privately owned field information for service traffics message, the privately owned field information includes message DMAC, VPLS example Number and exit port information;Service traffics message is forwarded to export business disk.
On the basis of above scheme, the exit port packet includes port service reel number, corresponding on export business disk Port numbers.
On the basis of above scheme, the export business disk is specifically used for:
The privately owned field information for parsing service traffics message obtains access service and interrogates and examines the exit port that inquiry MAC Address obtains Information, DMAC the and VPLS instance number of service traffics message;
The mac address table that export business disk is inquired according to DMAC the and VPLS instance number of service traffics message, is exported The exit port information of the service traffics learnt in service board mac address table;
Compare the exit port information in the privately owned field information of service traffics message and inquires the exit port that MAC Address obtains Whether information is identical;
Then process terminates if they are the same;If not identical and export business interrogates and examines inquiry, mac address table has occurrence, export business Occurrence MAC Address is reformulated MAC sync message by disk, is sent to access service disk.
Compared with the prior art, the advantages of the present invention are as follows:
The present invention carries out confirmation detection to service traffics message trend according to the DMAC of service traffics message, is tied according to detection Fruit judges whether that needing to carry out MAC Address relearns, and relearns MAC Address when needing.To guarantee system in MAC Address In the case where learning information missing or mistake, it can restore automatically, lifting system robustness.
Detailed description of the invention
Fig. 1 is the flow diagram that MAC Address is synchronous between the service board of background technique;
Fig. 2 is the flow diagram based on distributed apparatus MAC address learning method of the embodiment of the present invention;
Fig. 3 is the access service disk based on distributed apparatus MAC address learning method of the embodiment of the present invention by Business Stream Amount message is forwarded to the flow diagram of export business disk;
The export business disk based on distributed apparatus MAC address learning method of Fig. 4 embodiment of the present invention to MAC Address into The flow diagram of row confirmation detection.
Specific embodiment
The embodiment of the present invention is described in further detail below in conjunction with attached drawing.
Shown in Figure 2, the embodiment of the present invention provides one kind based on distributed apparatus MAC address learning method, including with Lower step:
The MAC Address learnt is synchronized to access service disk by export business disk, and access service disk updates its MAC Address Table;
Access service packing inquires the MAC Address of access service disk according to DMAC the and VPLS instance number of service traffics message Table obtains exit port information, the outlet that the DMAC and VPLS instance number of service traffics message and inquiry MAC Address are obtained Message breath is forwarded to export business disk;
Export business packing inquires the MAC of export business disk according to DMAC the and VPLS instance number of the service traffics message received Address table obtains exit port information;Judge that the exit port information that access service disk is sent interrogates and examines inquiry MAC Address with export business Whether the exit port information that table obtains is identical;If it is different, export business then to be interrogated and examined to the obtained outlet message for asking mac address table Breath, composition MAC sync message are sent to access service disk.
The embodiment of the present invention carries out confirmation detection to service traffics message trend according to the DMAC of service traffics message, according to Testing result judges whether that needing to carry out MAC Address relearns, and relearns MAC Address when needing.To guarantee that system exists In the case where MAC address learning loss of learning or mistake, it can restore automatically, lifting system robustness.
Preferably, the MAC Address learnt is synchronized to access service disk by export business disk, and access service disk updates it Mac address table, specifically includes the following steps:
After the study to MAC Address of export business disk, Xiang Suoyou access service disk sends MAC sync message, and the MAC is synchronous It include MAC Address, VPLS instance number and business exit port information in message;
Access service disk receives MAC Address sync message, parses MAC Address, VPLS instance number and exit port information, protects It is stored in the mac address table of access service disk.
Preferably, access service packing inquires access service disk according to DMAC the and VPLS instance number of service traffics message Mac address table obtains exit port information, DMAC the and VPLS instance number of service traffics message and inquiry MAC Address are obtained Exit port information be forwarded to export business disk, specifically includes the following steps:
According to DMAC the and VPLS instance number of service traffics message, access service disk mac address table is inquired;
If inquiry mac address table has matching list item, exit port information is obtained from mac address table;If inquiring MAC Address table does not match list item, then exit port information flag is invalid;
Increase privately owned field information for service traffics message, the privately owned field information includes message DMAC, VPLS example Number and exit port information;Service traffics message is forwarded to export business disk.Specifically, if exit port information be it is effective, Service traffics message is sent to corresponding export business disk;If exit port information flag be it is invalid, message broadcasting is flooded All outlet ports service board in VPLS.
Preferably, the exit port packet includes port service reel number, corresponding port numbers on export business disk.
Preferably, export business packing inquires export business according to DMAC the and VPLS instance number of the service traffics message received The mac address table of disk obtains exit port information;Judge that the exit port information that access service disk is sent interrogates and examines inquiry with export business Whether the exit port information that mac address table obtains is identical;Obtaining for mac address table is ask if it is different, then interrogating and examining export business Exit port information, composition MAC sync message are sent to access service disk, specifically includes the following steps:
The privately owned field information for parsing service traffics message obtains access service and interrogates and examines the exit port that inquiry MAC Address obtains Information, DMAC the and VPLS instance number of service traffics message;
The mac address table that export business disk is inquired according to DMAC the and VPLS instance number of service traffics message, is exported The exit port information of the service traffics learnt in service board mac address table;
Compare the exit port information in the privately owned field information of service traffics message and inquires the exit port that MAC Address obtains Whether information is identical;
Then process terminates if they are the same;If not identical and export business interrogates and examines inquiry, mac address table has occurrence, export business Occurrence MAC Address is reformulated MAC sync message by disk, is sent to access service disk.
Refering to what is shown in Fig. 3, service traffics message enter access service disk the following steps are included:
Step 101, according to the inbound port of service traffics message, the information such as VLAN obtain the affiliated VPLS instance number of business;Into Enter step 102;
Step 102, according to the DMAC of service traffics message, VPLS instance number belonging to business inquires access service disk MAC Address table.The key word of the inquiry of the mac address table is the combination of MAC Address and VPLS instance number;Enter step 102;
Step 103, judge to inquire whether mac address table has matching list item, if so, entering step 104;If it is not, entering step Rapid 105;
Step 104, if inquiry mac address table has matching list item, service traffics exit port is obtained from mac address table Information.The service traffics exit port packet includes port service reel number, corresponding port numbers on export business disk;It enters step 106;
Step 105, if inquiry mac address table does not match list item, flow should carry out broadcast flooding, outlet message Breath mark is invalid;Enter step 106;
Step 106, increase private information for service traffics message.The private information includes message DMAC, VPLS example Number, corresponding port numbers on export business disk;
Step 106, service traffics message is forwarded to export business disk.
Refering to what is shown in Fig. 4, export business disk receives service traffics message, it includes following for carrying out confirmation detection to MAC Address Step:
Step 201, service traffics message private information is parsed, message DMAC, VPLS instance number, export business disk end are obtained Slogan;Enter step 202;
Step 202, according to message DMAC, VPLS instance number inquires export business disk mac address table.Obtain export business Port numbers in disk query result;Enter step 203;
Step 203, judge that the go out port numbers in message private information go out with what inquiry export business disk mac address table obtained Whether port numbers are identical, if so, entering step 204;If it is not, entering step 205;
Step 204, if the same process terminates;
Step 205, if it is different, and inquiry export business disk mac address table have occurrence, then by matched MAC Address Table information reformulates mac learning synchronizing information message, is sent to access service disk.The MAC address learning synchronizing information Message includes VPLS instance number, MAC Address, MAC Address corresponding ports, this service board slot number.
The embodiment of the invention also provides one kind to be based on distributed apparatus MAC address learning system, including export business disk With access service disk:
Access service disk is used for: the MAC of access service disk is inquired according to DMAC the and VPLS instance number of service traffics message Address table obtains exit port information, DMAC the and VPLS instance number of service traffics message and inquiry MAC Address are obtained Exit port information is forwarded to export business disk;
Export business disk is used for: inquiring export business disk according to DMAC the and VPLS instance number of the service traffics message received Mac address table, obtain exit port information;Judge that the exit port information that access service disk is sent interrogates and examines inquiry with export business Whether the exit port information that mac address table obtains is identical;Obtaining for mac address table is ask if it is different, then interrogating and examining export business Exit port information, composition MAC sync message are sent to access service disk.
Preferably, export business disk is also used to: after study to MAC Address, Xiang Suoyou access service disk sends the synchronous report of MAC Text includes MAC Address, VPLS instance number and business exit port information in the MAC sync message;
Access service disk is also used to: being received MAC Address sync message, is parsed MAC Address, VPLS instance number and exit port Information is saved in the mac address table of access service disk.
Preferably, the access service disk is specifically used for:
According to DMAC the and VPLS instance number of service traffics message, access service disk mac address table is inquired;
If inquiry mac address table has matching list item, exit port information is obtained from mac address table;If inquiring MAC Address table does not match list item, then exit port information flag is invalid;
Increase privately owned field information for service traffics message, the privately owned field information includes message DMAC, VPLS example Number and exit port information;Service traffics message is forwarded to export business disk.
Preferably, the exit port packet includes port service reel number, corresponding port numbers on export business disk.
Preferably, the export business disk is specifically used for:
The privately owned field information for parsing service traffics message obtains access service and interrogates and examines the exit port that inquiry MAC Address obtains Information, DMAC the and VPLS instance number of service traffics message;
The mac address table that export business disk is inquired according to DMAC the and VPLS instance number of service traffics message, is exported The exit port information of the service traffics learnt in service board mac address table;
Compare the exit port information in the privately owned field information of service traffics message and inquires the exit port that MAC Address obtains Whether information is identical;
Then process terminates if they are the same;If not identical and export business interrogates and examines inquiry, mac address table has occurrence, export business Occurrence MAC Address is reformulated MAC sync message by disk, is sent to access service disk.
Based on the same inventive concept, the embodiment of the present application provides a kind of computer readable storage medium, is stored thereon with Computer program realizes all sides based on distributed apparatus MAC address learning method when computer program is executed by processor Method step or Part Methods step.
The present invention realizes the above-mentioned all or part of the process based in distributed apparatus MAC address learning method, can also be with Relevant hardware is instructed to complete by computer program, computer program can be stored in a computer readable storage medium In, the computer program is when being executed by processor, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, computer journey Sequence includes computer program code, computer program code can for source code form, object identification code form, executable file or Certain intermediate forms etc..Computer-readable medium may include: can carry computer program code any entity or device, Recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software Distribution medium etc..It should be noted that computer-readable medium include content can according in jurisdiction legislation and specially The requirement of benefit practice carries out increase and decrease appropriate, such as in certain jurisdictions, computer-readable according to legislation and patent practice Medium does not include electric carrier signal and telecommunication signal.
Based on the same inventive concept, the embodiment of the present application also provides a kind of electronic equipment, including memory and processor, deposits The computer program run on a processor is stored on reservoir, is realized when processor executes computer program and is set based on distribution All method and steps or Part Methods step in standby MAC address learning method.
Alleged processor can be central processing unit (Central Processing Unit, CP U), can also be it His general processor, digital signal processor (Digital Signal Proc essor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng processor is the control centre of computer installation, utilizes each portion of various interfaces and the entire computer installation of connection Point.
Memory can be used for storing computer program and/or module, and processor is stored in memory by operation or execution Interior computer program and/or module, and the data being stored in memory are called, realize the various function of computer installation Energy.Memory can mainly include storing program area and storage data area, wherein storing program area can storage program area, at least Application program needed for one function (such as sound-playing function, image player function etc.) etc.;Storage data area can store root Created data (such as audio data, video data etc.) etc. are used according to mobile phone.In addition, memory may include high speed with Machine accesses memory, can also include nonvolatile memory, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card), at least One disk memory, flush memory device or other volatile solid-state parts.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system, server or calculating Machine program product.Therefore, the present invention can be used complete hardware embodiment, complete software embodiment or combine software and hardware side The form of the embodiment in face.Moreover, it wherein includes computer usable program code that the present invention, which can be used in one or more, The computer program implemented in computer-usable storage medium (including but not limited to magnetic disk storage and optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, equipment (system), server and computer program product Flowchart and/or the block diagram describe.It should be understood that can be realized by computer program instructions in flowchart and/or the block diagram The combination of process and/or box in each flow and/or block and flowchart and/or the block diagram.It can provide these calculating Processing of the machine program instruction to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices Device is to generate a machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute For realizing the function of being specified in one or more flows of the flowchart and/or one or more blocks of the block diagram Device.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. one kind is based on distributed apparatus MAC address learning method, which comprises the following steps:
The MAC Address learnt is synchronized to access service disk by export business disk, and access service disk updates its mac address table;
Access service packing is obtained according to the mac address table of the DMAC and VPLS instance number inquiry access service disk of service traffics message To exit port information, the exit port information that the DMAC and VPLS instance number of service traffics message and inquiry MAC Address are obtained It is forwarded to export business disk;
Export business packing inquires the MAC Address of export business disk according to DMAC the and VPLS instance number of the service traffics message received Table obtains exit port information;Judge that exit port information that access service disk is sent is interrogated and examined with export business to ask mac address table and obtain Whether the exit port information arrived is identical;If it is different, export business is then interrogated and examined to the obtained exit port information for asking mac address table, Composition MAC sync message is sent to access service disk.
2. the method as described in claim 1, which is characterized in that the MAC Address learnt is synchronized to entrance by export business disk Service board, access service disk update its mac address table, specifically includes the following steps:
After the study to MAC Address of export business disk, Xiang Suoyou access service disk sends MAC sync message, the MAC sync message In include MAC Address, VPLS instance number and business exit port information;
Access service disk receives MAC Address sync message, parses MAC Address, VPLS instance number and exit port information, is saved in In the mac address table of access service disk.
3. method according to claim 2, which is characterized in that access service packing according to service traffics message DMAC and VPLS Instance number inquires the mac address table of access service disk, exit port information is obtained, by DMAC the and VPLS example of service traffics message Number and the obtained exit port information of inquiry MAC Address be forwarded to export business disk, specifically includes the following steps:
According to DMAC the and VPLS instance number of service traffics message, access service disk mac address table is inquired;
If inquiry mac address table has matching list item, exit port information is obtained from mac address table;If inquiring MAC Address Table does not match list item, then exit port information flag is invalid;
Increase privately owned field information for service traffics message, the privately owned field information include message DMAC, VPLS instance number and Exit port information;Service traffics message is forwarded to export business disk.
4. method as claimed in claim 3, which is characterized in that the exit port packet includes port service reel number, exports industry Corresponding port numbers on business disk.
5. method as claimed in claim 3, which is characterized in that the DMAC for the service traffics message that export business packing evidence receives With the mac address table of VPLS instance number inquiry export business disk, exit port information is obtained;Judge that access service disk sent goes out Port information and export business interrogate and examine whether ask the exit port information that mac address table obtains identical;If it is different, then by export business Interrogate and examine ask mac address table obtained exit port information, composition MAC sync message be sent to access service disk, specifically include with Lower step:
Parse service traffics message privately owned field information, obtain access service interrogate and examine ask MAC Address obtain exit port information, DMAC the and VPLS instance number of service traffics message;
The mac address table that export business disk is inquired according to DMAC the and VPLS instance number of service traffics message, obtains export business The exit port information of the service traffics learnt in disk mac address table;
Compare the exit port information in the privately owned field information of service traffics message and inquires the exit port information that MAC Address obtains It is whether identical;
Then process terminates if they are the same;If not identical and export business, which interrogates and examines inquiry mac address table, occurrence, export business disk will Occurrence MAC Address reformulates MAC sync message, is sent to access service disk.
6. one kind is based on distributed apparatus MAC address learning system, it is characterised in that: including export business disk and access service Disk:
Access service disk is used for: the MAC Address of access service disk is inquired according to DMAC the and VPLS instance number of service traffics message Table obtains exit port information, the outlet that the DMAC and VPLS instance number of service traffics message and inquiry MAC Address are obtained Message breath is forwarded to export business disk;
Export business disk is used for: inquiring export business disk according to DMAC the and VPLS instance number of the service traffics message received Mac address table obtains exit port information;Judge that the exit port information that access service disk is sent interrogates and examines inquiry MAC with export business Whether the exit port information that address table obtains is identical;If it is different, export business then to be interrogated and examined to the obtained outlet for asking mac address table Message breath, composition MAC sync message are sent to access service disk.
7. system as claimed in claim 6, it is characterised in that:
The export business disk is also used to: after study to MAC Address, Xiang Suoyou access service disk sends MAC sync message, described It include MAC Address, VPLS instance number and business exit port information in MAC sync message;
The access service disk is also used to: being received MAC Address sync message, is parsed MAC Address, VPLS instance number and exit port Information is saved in the mac address table of access service disk.
8. system as claimed in claim 7, which is characterized in that the access service disk is specifically used for:
According to DMAC the and VPLS instance number of service traffics message, access service disk mac address table is inquired;
If inquiry mac address table has matching list item, exit port information is obtained from mac address table;If inquiring MAC Address Table does not match list item, then exit port information flag is invalid;
Increase privately owned field information for service traffics message, the privately owned field information include message DMAC, VPLS instance number and Exit port information;Service traffics message is forwarded to export business disk.
9. system as claimed in claim 8, which is characterized in that the exit port packet includes port service reel number, exports industry Corresponding port numbers on business disk.
10. system as claimed in claim 8, which is characterized in that the export business disk is specifically used for:
Parse service traffics message privately owned field information, obtain access service interrogate and examine ask MAC Address obtain exit port information, DMAC the and VPLS instance number of service traffics message;
The mac address table that export business disk is inquired according to DMAC the and VPLS instance number of service traffics message, obtains export business The exit port information of the service traffics learnt in disk mac address table;
Compare the exit port information in the privately owned field information of service traffics message and inquires the exit port information that MAC Address obtains It is whether identical;
Then process terminates if they are the same;If not identical and export business, which interrogates and examines inquiry mac address table, occurrence, export business disk will Occurrence MAC Address reformulates MAC sync message, is sent to access service disk.
CN201910578373.XA 2019-06-28 2019-06-28 MAC address learning method and system based on distributed equipment Active CN110266599B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910578373.XA CN110266599B (en) 2019-06-28 2019-06-28 MAC address learning method and system based on distributed equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910578373.XA CN110266599B (en) 2019-06-28 2019-06-28 MAC address learning method and system based on distributed equipment

Publications (2)

Publication Number Publication Date
CN110266599A true CN110266599A (en) 2019-09-20
CN110266599B CN110266599B (en) 2021-08-03

Family

ID=67923082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910578373.XA Active CN110266599B (en) 2019-06-28 2019-06-28 MAC address learning method and system based on distributed equipment

Country Status (1)

Country Link
CN (1) CN110266599B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882761A (en) * 2012-10-31 2013-01-16 烽火通信科技股份有限公司 VPLS realization method
CN105119831A (en) * 2015-09-15 2015-12-02 烽火通信科技股份有限公司 MAC (Media Access Control) address learning method and system
US20160043950A1 (en) * 2014-08-11 2016-02-11 Brocade Communications Systems, Inc. Progressive mac address learning
US20160380880A1 (en) * 2015-06-25 2016-12-29 Ciena Corporation Fast interlayer forwarding
CN109347746A (en) * 2018-10-16 2019-02-15 新华三技术有限公司 A kind of MAC address learning method and device
CN109803031A (en) * 2019-01-14 2019-05-24 烽火通信科技股份有限公司 A kind of method and system that MAC Address quickly cancels

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882761A (en) * 2012-10-31 2013-01-16 烽火通信科技股份有限公司 VPLS realization method
US20160043950A1 (en) * 2014-08-11 2016-02-11 Brocade Communications Systems, Inc. Progressive mac address learning
US20160380880A1 (en) * 2015-06-25 2016-12-29 Ciena Corporation Fast interlayer forwarding
CN105119831A (en) * 2015-09-15 2015-12-02 烽火通信科技股份有限公司 MAC (Media Access Control) address learning method and system
CN109347746A (en) * 2018-10-16 2019-02-15 新华三技术有限公司 A kind of MAC address learning method and device
CN109803031A (en) * 2019-01-14 2019-05-24 烽火通信科技股份有限公司 A kind of method and system that MAC Address quickly cancels

Also Published As

Publication number Publication date
CN110266599B (en) 2021-08-03

Similar Documents

Publication Publication Date Title
US20150312296A1 (en) Method and device for pushing multimedia resource and display terminal
CN109450936A (en) A kind of adaptation method and device of the hetero-com-munication agreement based on Kafka
CN110166788B (en) Information synchronous playing method, device and storage medium
CN103618733B (en) A kind of data filtering system and method for being applied to mobile Internet
CN103139253B (en) Realize the method for network interface card offloading functions, network interface card, host computer system and the network equipment
CN109788247B (en) Method and device for identifying monitoring instruction
CN110300190A (en) A kind of ticket selling and checking system based on MQTT message-oriented middleware
CN108696601A (en) Detect the hardware address conflict in computer network
CN105391612B (en) A kind of method and device of VXLAN VTEP adjoinings study
CN111404768A (en) DPI recognition realization method and equipment
CN102542307B (en) Method, equipment and system for checking and examining product information
CN101729413B (en) Multi-service processing system and method based on ATCA
CN110401658A (en) A kind of data interactive method and interaction platform
CN109587082A (en) A kind of asynchronous repeater system of message based on (SuSE) Linux OS and method
CN110266599A (en) One kind being based on distributed apparatus MAC address learning method and system
CN103220260B (en) The more method of new data, server, client and system
CN114554251B (en) Multimedia data requesting method and device, storage medium and electronic device
CN107979580B (en) A kind of access control method, device and server
CN110198294A (en) Security attack detection method and device
CN113824724A (en) Method and device for judging tampering of sensor data of intelligent substation and storage medium
CN107463834A (en) A kind of information interacting method and interactive system based on mark
CN111147473A (en) Network message forwarding method, device and system
CN106685600A (en) Method for messaging among work stations within local area network
CN111787416A (en) Data packet processing method and device and readable storage medium
CN117041272B (en) Data processing method, device, equipment and storage medium

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