CN104322018A - Media access control information synchronization method and device - Google Patents
Media access control information synchronization method and device Download PDFInfo
- Publication number
- CN104322018A CN104322018A CN201280002843.4A CN201280002843A CN104322018A CN 104322018 A CN104322018 A CN 104322018A CN 201280002843 A CN201280002843 A CN 201280002843A CN 104322018 A CN104322018 A CN 104322018A
- Authority
- CN
- China
- Prior art keywords
- mac
- veneer
- synchronization
- information
- sync 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/64—Hybrid switching systems
- H04L12/6418—Hybrid transport
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
Abstract
The embodiments of the present invention relate to a MAC information synchronization method and device. The method comprises: receiving a data message by a first single board; performing MAC study according to the data message, and generating a first MAC table; extracting first synchronization MAC information according to the first MAC table; packaging the first synchronization MAC information into a first synchronization message; and sending the first synchronization message to a second single board to enable the second single board to acquire the first synchronization MAC information from the first synchronization message. In the information synchronization method and device in the embodiments of the present invention, a first single board performs MAC study according to a received data message, extracts synchronization MAC information from a MAC table, and packages the synchronization MAC information into a first synchronization message to be sent to a second single board, thereby enabling the second single board to acquire the synchronization MAC information, realizing the synchronization of MAC information across boards, efficiently solving the problem that a single board causes burden on a CPU for studying the MAC information, and promoting the network reliability.
Description
The synchronous method and engineering device technique field of media access control information
The present invention relates to the synchronous method and device of the communications field, more particularly to a kind of media access control information.Background technology
With the development of network technology, the network equipment also becomes increasingly complex, and needs the medium access control for learning to and guide message to forward in double layer network in equipment(Media Access Control, MAC) information is also more and more.For dilatation, band extension ternary content addressable register(Ternary Content Addressable Memory, TCAM) equipment it is also more and more.
The complexity of network causes network burden also increasingly to weigh.The Performance And Reliability of equipment is directly influenced to the processing that straddle mac learning is forwarded particularly in distributed apparatus.
In distributed apparatus, the mac learning method of prior art is hardware study, and such as data flow is flowed into from up veneer, the source MAC for the message that up veneer port study is received, after the mac learning for completing this plate, message continues through interconnection port and is forwarded to downlink board.Downlink board study is come in the source MAC of message from interconnection port.
In the study of above-mentioned straddle, if downlink board is the veneer for supporting TCAM to extend out mac learning, extending out TCAM mac learning needs processor to carry out CAL, the interface board of downlink board(Line Processing Unit, LPU) by the MAC information learnings learnt into interim list item, LPU notifier processes device moves to the MAC address entries acquired and extended out in TCAM, it is therefore desirable to take the expense of processor.
The downlink board of prior art is received from interconnection port will not first inquire about outside TCAM after message in whether acquired the source MAC of the message, but mac learning can be carried out by processor to each message, cause processor occupancy too high, the mac learning function of extending out TCAM is poor.
When system, which exists, there is port interconnected on different veneers on straddle ETH-TRUNK, i.e. ether TRENK, sending and receiving for message as shown in Figure 1 may not be in same link.
For example, when user 1 and user 2 are communicated by the straddle ETH-TRUNK of inter-exchange, the message that user 1 sends passes through the interface board of switch b in the ETH-TRUNK(L ine Proces s ing Un i t, LPU) link between 4 and the LPU2 of switch A is sent in switch A, and during this article is forwarded, LPU4 and LPU2 can carry out the mac learning of user 1;
When user 2 is to the transmission message of user 1, due to having used load balancing on ETH-TRUNK, the message is sent to the LPU 3 in switch b, but LPU3 did not carry out the mac learning of user 1, therefore the MAC Address of user 1 is not known, the message directly can not be sent to user 1, can only be by broadcast transmission, therefore forwarding bandwidth is wasted significantly.The content of the invention
The invention provides a kind of synchronous method and device of MAC information, it is possible to use the source MAC information in the data message got is synchronized processing by the first sync message.
First aspect present invention provides a kind of synchronous method of medium access control MAC information, and methods described includes:
First veneer receives data message;
First veneer carries out mac learning according to the data message, generates the first MAC table;
First veneer extracts the first synchronization MAC information according to first MAC table;
First veneer is by the described first synchronization MAC Information encapsulations into the first sync message;First veneer sends first sync message to the second veneer, so that second veneer obtains the first synchronization MAC information from first sync message.
In first aspect present invention the first implementation, first veneer includes the described first synchronization MAC Information encapsulations to the first sync message:First veneer generates MAC table synchronizing information according to the described first synchronization MAC information, and the MAC table synchronizing information is encapsulated into first sync message.
With reference to the first implementation of first aspect present invention, second in first aspect present invention is real
In existing mode, first veneer generates MAC table synchronizing information according to the described first synchronization MAC information to be included:First veneer generates MAC table synchronizing information every time using the MAC address entries of the first quantity as the first synchronization MAC information according to the described first synchronization MAC information.
With reference to more than first aspect present invention each implementation, first veneer sends first sync message to the second veneer to be included:First veneer sends first sync message to multiple second veneer multicasts.
With reference to more than first aspect present invention each implementation, methods described also includes:The second synchronization MAC information is extracted in the first veneer timing from local first MAC table, and the described second synchronization MAC is encapsulated into the second sync message;First veneer sends the second sync message to second veneer, so that second veneer obtains the second synchronization MAC information from second sync message, the second MAC table that the second veneer according to the described second synchronization MAC information updatings is locally preserved.
Second aspect of the present invention provides a kind of synchronous method of medium access control MAC information, and methods described includes:
Second veneer receives the first sync message that the first veneer is sent, and first sync message carries the first synchronization MAC information that first veneer is extracted from the first MAC table;
Second veneer obtains the first synchronization MAC information carried in first sync message;The second MAC table that second veneer, second veneer according to the described first synchronization MAC information updatings is preserved.
In second aspect of the present invention the first implementation, second veneer, which obtains the first synchronization MAC information carried in first sync message, to be included:Second veneer extracts the MAC table synchronizing information carried in first sync message, and the first synchronization MAC information is obtained according to the first MAC table synchronizing information.
With reference to more than second aspect of the present invention each implementation, methods described also includes:Second veneer receives the second sync message that the first veneer timing is sent, and second sync message carries the second synchronization MAC information, and the second synchronization MAC information is extracted by first veneer timing from first MAC table;
Second veneer obtains the second synchronization MAC information from second sync message, second MAC table locally preserved according to the described second synchronization MAC information updatings.
Third aspect present invention provides a kind of sychronisation of medium access control MAC information, and described device includes:
Receiving unit, the data message of the first veneer is sent to for receiving;
Generation unit, for carrying out mac learning according to the data message, generates the first MAC table;Extraction unit, for extracting the first synchronization MAC information according to first MAC table;
Encapsulation unit, for by the described first synchronization MAC Information encapsulations into the first sync message;Transmitting element, for sending first sync message to the second veneer, so that second veneer obtains the first synchronization MAC information from first sync message.
In third aspect present invention the first implementation, the MAC table synchronizing information is encapsulated into first sync message by the encapsulation unit specifically for generating MAC table synchronizing information according to the described first synchronization MAC information.
With reference to the first implementation of third aspect present invention, in second of implementation of third aspect present invention, the generation unit is specifically for every time using the MAC address entries of the first quantity as the first synchronization MAC information, MAC table synchronizing information is generated according to the described first synchronization MAC information.
With reference to more than third aspect present invention each implementation, the transmitting element to multiple second veneer multicasts specifically for sending first sync message.
With reference to more than third aspect present invention each implementation, the extraction unit is additionally operable to timing and the second synchronization MAC information is extracted from first MAC table, and the described second synchronization MAC is encapsulated into the second sync message;The transmitting element is additionally operable to send second sync message to second veneer, so that second veneer obtains the second synchronization MAC information from second sync message, the second MAC table that the second veneer according to the described second synchronization MAC information updatings is locally preserved.
Fourth aspect present invention provides a kind of sychronisation of medium access control MAC information, it is characterised in that described device includes:
Transmitting element, for receiving the first sync message that the first veneer is sent, first sync message
It is middle to carry the first synchronization MAC information that first veneer is extracted from the first MAC table;Acquiring unit, the first synchronization MAC letters encapsulated for obtaining in first sync message;Updating block, for the second MAC table locally preserved according to the described first synchronization MAC information updatings.In fourth aspect present invention the first implementation, the acquiring unit obtains the first synchronization MAC information specifically for extracting the MAC table synchronizing information encapsulated in first sync message according to the MAC table synchronizing information.
In second of implementation of fourth aspect present invention, the receiving unit is additionally operable to receive the second sync message that the first veneer timing is sent, the second synchronization MAC information is carried in second sync message, the second synchronization MAC information is extracted by first veneer timing according to first MAC table;The acquiring unit is additionally operable to obtain the second synchronization MAC information from second sync message;The updating block is additionally operable to the 2nd MAC tables locally preserved according to the described second synchronization MAC information updatings.
Fifth aspect present invention provides a kind of sychronisation of medium access control MAC information, and described device includes:Network interface;Processor;Memory;Application program of the physical store in the memory, the application program includes being used to make the instruction of the method for the above-mentioned first aspect of the computing device.
Sixth aspect present invention provides a kind of sychronisation of medium access control MAC information, and described device includes:Network interface;Processor;Memory;Application program of the physical store in the memory, the application program includes being used to make the instruction of the method for the above-mentioned second aspect of the computing device.
In the embodiment of the present invention, first veneer carries out mac learning according to the data message received, synchronization MAC information is extracted from MAC tables, and the synchronous MAC Information encapsulations are sent to the second veneer into the first sync message, so that the second veneer gets synchronous MAC information, the straddle for realizing MAC information is synchronous, the burden for the CPU for efficiently solving veneer and being caused to learn MAC information, improves the reliability of network.Brief description of the drawings
Fig. 1 is the schematic diagram that prior art message sends and receives;
Fig. 2 is the flow chart of the synchronous method of MAC information of the embodiment of the present invention;
Fig. 3 is the flow chart of the synchronous method of another MAC information of the embodiment of the present invention;
Fig. 4 is the structural representation of the sychronisation of MAC information of the embodiment of the present invention;
Fig. 5 is the structural representation of the sychronisation of another MAC information of the embodiment of the present invention;
Fig. 6 is the structural representation of the sychronisation of MAC information of the embodiment of the present invention;
Fig. 7 is the structural representation of the sychronisation of another MAC information of the embodiment of the present invention.Embodiment
Below by drawings and examples, technical scheme is described in further detail.Fig. 2 is the flow chart of the synchronous method of MAC information of the embodiment of the present invention, and the present embodiment is the processing procedure of the transmitting terminal of sync message, as illustrated, the present embodiment is specifically included:
Step 101, the first veneer receives data message.
Data message can other veneers send over.
Step 102, the first veneer carries out mac learning according to the data message, generates the first MAC table.First veneer is received after data message, it is necessary to carry out mac learning.That is the port information of the information such as the source MAC carried in data message and VL AN and the reception data message is saved in the first local MAC table of the first veneer by the first veneer.
Step 103, first veneer extract the first synchronization MAC information according to first MAC table.First veneer extracts one or more list items as the first synchronization MAC information from first MAC table locally preserved, and each list item includes MAC Address, port information and VLAN.
Step 104, the first veneer by the described first synchronization MAC Information encapsulations into the first sync message.It is preferred that, the first veneer generates MAC table synchronizing information according to the first synchronization MAC information, and the first MAC table synchronizing information is encapsulated into the data field of the first sync message.Type of message is also carried in first sync message, the type of message represents that first sync message is the message for carrying out MAC synchronizing informations.
MAC table synchronizing information includes MCAST_ ID, MAC Number and MAC Entry.MCAST-ID tables
Show multicast group index(Take two bytes), MAC N bacterium ber represents the number of the MAC address entries encapsulated in message(Take two bytes), MAC Entry represent the MAC address entries information encapsulated in message.
Specifically, in order to ensure that the first sync message correctly can be transmitted and be correctly validated between veneer, as shown in table 1, being defined as follows to the first sync message.
DA is purpose MAC Address, i.e. the MAC Address of the synchronous literary receiving terminal, for example, can uniformly fill out 0-0-0.
SA is source MAC, i.e. the MAC Address of the first veneer.
ETYPE is type of message, for example, be customized for 0x8100.For representing that the message is sync message.TAG is VLAN TAG, and VLAN TAG are fixed as 1, i.e., the VLAN belonging to synchronous just blunt text is 1.LEN/TYPE is the length of the first sync message, if the physical length for the MAC table synchronizing information being encapsulated into the first sync message is less than the minimum length of the first sync message(For example 68), then filling character can be added automatically below.
DATA is data field, for carrying MAC table synchronizing information.
Table 1
Step 105, the first veneer sends first sync message to the second veneer, so that second veneer obtains the first synchronization MAC information from the first sync message.
Specifically, MAC address entries in the first MAC table that first veneer learns may be a lot, if all MAC address entries learnt are all encapsulated into same first sync message, the first sync message that may result in encapsulation exceedes the length allowed, therefore can use batch mode to encapsulate the first sync message.
For example, every time by the first quantity(As 400) individual MAC address entries, as the first synchronization MAC information, according to the described first synchronization MAC information generation MAC table synchronizing information, are encapsulated into first sync message and then transmission.
In addition, in order to lift the efficiency that the first sync message is sent to the second veneer, the first veneer can apply for multicast group index, indexed using the multicast applied and the first sync message is sent to other the second veneers in the way of multicast group.Other second veneers can be replicated the first sync message received, and be forwarded to each interface single plate.
In addition, again as shown in Fig. 2 alternatively, the present embodiment also comprises the following steps:
Step 106, the second synchronization MAC information is extracted in the first veneer timing from first MAC table, and the described second synchronization MAC Information encapsulations are entered in the second sync message.
Because each veneer is the MAC table of independent maintenance oneself, when the list item aging in the first MAC table of the first veneer or deletion, in order to ensure the uniformity of the first MAC table and the MAC table of other each veneers, the MAC table of each veneer is safeguarded by Timing Synchronization.
First veneer can be according to how much setting update cycles of MAC address entries in the first MAC table, when every renewal time, first veneer extracts MAC address entries as the second synchronization MAC information from first MAC table, and the described second synchronization MAC Information encapsulations is entered in the second sync message.
Type of message is also carried in second sync message, the type of message represents that second sync message is the message for carrying out MAC synchronizing informations.
Step 107, first veneer sends second sync message to second veneer, so that second veneer obtains the second synchronization MAC information from second sync message, the second MAC table that the second veneer according to the described second synchronization MAC information updatings is locally preserved.
When there is multiple second veneers, second sync message is sent to the multiple second veneer by the first veneer especially by the mode of multicast, can so avoid sending multiple second sync messages.
Fig. 3 is the flow chart of the synchronous method of another MAC information of the embodiment of the present invention, and the present embodiment is the processing procedure of the receiving terminal of sync message, as illustrated, the present embodiment is specifically included:
Step 201, the second veneer receives the first sync message that the first veneer is sent, and first sync message carries the first synchronization MAC information that first veneer is extracted from the first MAC table.
First sync message is the first sync message that first veneer is sent described in above-mentioned steps 105.The first synchronization MAC information includes one or more MAC address entries, and each MAC address entries are with including MAC
Location, port information and VLAN.
In another embodiment, first sync message carries the first MAC table synchronizing information generated by the described first synchronization MAC information.
Type of message is also carried in first sync message, the type of message represents that first sync message is the message for carrying out MAC synchronizing informations.
Step 202, the second veneer obtains the first synchronization MAC information carried in first sync message.Second veneer obtains the first MAC table synchronizing information from the DATA field of the first sync message, and the first synchronization MAC information is obtained according to the first MAC table synchronizing information.
Step 203, the second MAC table that the second veneer is preserved according to second veneer of the first synchronization MAC information updatings.
Again as shown in figure 3, alternatively, the present embodiment also comprises the following steps:
Step 204, the second veneer receives the second sync message that the timing of the first veneer is sent, and second sync message carries the second synchronization MAC information, and the second synchronization MAC information is extracted by first veneer timing from first MAC table.
The generating process of second sync message may be referred to step 106.
Type of message is also carried in second sync message, the type of message represents that second sync message is the message for carrying out MAC synchronizing informations.
Step 205, second veneer obtains the second synchronization MAC information from second sync message, the second MAC table locally preserved according to the described second synchronization MAC information updatings.
Second veneer gets the second MAC table synchronizing information from the second sync message, so as to obtain second
The second synchronization MAC information in MAC table synchronizing information, the second MAC table locally preserved using the described second synchronization MAC information updatings, so that the first MAC tables of the second veneer local the second MAC table and the first veneer are consistent.
In the information synchronization method of the embodiment of the present invention, first veneer carries out mac learning according to the data message received, the first synchronization MAC information is extracted from the first MAC table, and the described first synchronization MAC Information encapsulations are sent to the second veneer into the first sync message, so as to get first same for the second veneer
MAC information is walked, the straddle for realizing MAC information is synchronous, the burden for the CPU for efficiently solving veneer and being caused to learn MAC information improves the reliability of network.Fig. 4 is the structural representation of the sychronisation of MAC information of the embodiment of the present invention, and the sychronisation of the present embodiment MAC information is the dispensing device of sync message, and described device is used for performing the method shown in Fig. 2, specifically included:Receiving unit 11, generation unit 12, extraction unit 13, encapsulation unit 14 and transmitting element 15.
Receiving unit 11 is used to receive the data message for being sent to the first veneer;Generation unit 12, for carrying out mac learning according to the data message, generates the first MAC table;Extraction unit 13, for extracting the first synchronization MAC information according to first MAC table;Encapsulation unit 14, for by the described first synchronization MAC Information encapsulations into the first sync message;Transmitting element 15, for sending first sync message to the second veneer, so that second veneer obtains the first synchronization MAC information from first sync message.
Alternatively, the MAC table synchronizing information is encapsulated into first sync message by the encapsulation unit 14 specifically for generating MAC table synchronizing informations according to the described first synchronization MAC information.
Alternatively, the generation unit 12 is specifically for every time using the MAC address entries of the first quantity as the first synchronization MAC information, ^ generates MAC table synchronizing information according to the described first synchronization MAC information.
Alternatively, the transmitting element 15 to multiple second veneer multicasts specifically for sending first sync message.
Specifically, the extraction unit 13 is additionally operable to timing extracts second synchronously from first MAC table
MAC information, the described second synchronization MAC is encapsulated into the second synchronous just blunt text;The transmitting element 15 is additionally operable to send second sync message to second veneer, so that second veneer obtains the second synchronization MAC information from second sync message, the second MAC table that the second veneer according to the described second synchronization MAC information updatings is locally preserved.
Fig. 5 is the structural representation of the sychronisation of MAC information of the embodiment of the present invention, and the sychronisation of the present embodiment MAC information is the reception device of sync message, and described device is used to perform the method shown in Fig. 3,
Specifically include:Receiving unit 21, acquiring unit 22 and updating block 23.
Receiving unit 21, for receiving the first sync message that the first veneer is sent, first sync message carries the first synchronization MAC information that first veneer is extracted from the first MAC table, and the first synchronization MAC information includes one or more MAC address entries;Acquiring unit 22, the first synchronization MAC information carried for obtaining in first sync message;Updating block 23, for the second MAC table locally preserved according to the described first synchronization MAC information updatings.
Alternatively, the acquiring unit 22 obtains the first synchronization MAC information specifically for obtaining the MAC table synchronizing informations carried in first sync message according to the MAC table synchronizing information.
Alternatively, the receiving unit 21 is additionally operable to receive the second sync message that the first veneer timing is sent, second sync message carries the second synchronization MAC information, and the second synchronization MAC information is extracted by first veneer timing according to first MAC table;The acquiring unit 22 is additionally operable to obtain the second synchronization MAC information from second sync message;The updating block is additionally operable to second MAC table locally preserved according to the described second synchronization MAC information updatings.
The synchronizing information device of the embodiment of the present invention, the first sync message and the second sync message that first veneer is sent are received by the second veneer, update the second MAC table that the second veneer is locally preserved, the straddle for realizing MAC information is synchronous, the burden for the CPU for efficiently solving veneer and being caused to learn MAC information, improves the reliability of network.
Fig. 6 is the structural representation of the sychronisation of MAC information of the embodiment of the present invention, as illustrated, the present embodiment includes network interface 61, processor 62 and memory 63.System bus 64 is used to connect network interface 61, processor 62 and memory 63.
Network interface 61 is used for and external device communication.
Memory 63 can have software module and device driver in permanent memory, such as hard disk drive and flash memory, memory 63.Software module is able to carry out the various functions module of the above method of the present invention;Device driver can be network and interface drive program.
On startup, these component softwares are loaded into memory 63, are then accessed by processor 62 and are performed the instruction of following function:
First veneer receives data message;
First veneer carries out mac learning according to the data message, generates the first MAC table;First veneer extracts the first synchronization MAC information according to first MAC table;
First veneer is by the described first synchronization MAC Information encapsulations to the first sync message;
First veneer sends first sync message to the second veneer, so that second veneer obtains the first synchronization MAC information from first sync message.
Above-mentioned functions and instruction can be extended according to Fig. 2 and its corresponding explanation.
Alternatively, first veneer includes the described first synchronization MAC Information encapsulations to the first sync message:First veneer generates MAC table synchronizing information according to the described first synchronization MAC information, and the MAC table synchronizing information is encapsulated into first sync message.
Alternatively, first veneer generates MAC table synchronizing information according to the described first synchronization MAC information and included:First veneer generates MAC table synchronizing information every time using the MAC address entries of the first quantity as the first synchronization MAC information according to the described first synchronization MAC information.
Alternatively, first veneer sends first sync message to the second veneer and included:First veneer sends first sync message to multiple second veneer multicasts.Order:
The second synchronization MAC information is extracted in the first veneer timing from local first MAC table, and the described second synchronization MAC is encapsulated into the second sync message;
First veneer sends the second sync message to second veneer, so that second veneer obtains the second synchronization MAC information from second sync message, the second MAC table that the second veneer according to the described second synchronization MAC information updatings is locally preserved.
Fig. 7 is the structural representation of the sychronisation of MAC information of the embodiment of the present invention, as illustrated, the present embodiment includes network interface 71, processor 72 and memory 73.System bus 74 is used to connect network interface 71, processor 72 and memory 73.
Network interface 71 is used for and external device communication.
Memory 73 can have software module and device driver in permanent memory, such as hard disk drive and flash memory, memory 73.Software module is able to carry out the various functions module of the above method of the present invention;Device driver can be network and interface drive program.
On startup, these component softwares are loaded into memory 73, are then accessed by processor 72 and are performed the instruction of procedure below:
Second veneer receives in the first sync message that the first veneer is sent, first sync message and carries the first synchronization MAC information that first veneer is extracted from the first MAC table;
Second veneer obtains the first synchronization MAC information encapsulated in first sync message;The second MAC table that second veneer, second veneer according to the described first synchronization MAC information updatings is preserved.
Above-mentioned functions and instruction can be extended according to Fig. 3 and its corresponding explanation.Alternatively, second veneer obtains the first synchronization MAC information encapsulated in first sync message and included:Second veneer extracts the MAC table synchronizing information carried in first sync message, and the first synchronization MAC information is obtained according to the first MAC tables synchronizing information.Second veneer, which is received, carries the second synchronization MAC information in the second sync message that the first veneer timing is sent, second sync message, the second synchronization MAC information is extracted by first veneer timing from first MAC table;
Second veneer obtains the second synchronization MAC information from second sync message, second MAC table locally preserved according to the described second synchronization MAC information updatings.
In the above embodiment of the present invention, first veneer carries out mac learning according to the data message received, the first synchronization MAC information is extracted from the first MAC table, and the described first synchronization MAC Information encapsulations are sent to the second veneer into the first sync message, so that the second veneer gets the first synchronization MAC information, the straddle for realizing MAC information is synchronous, the burden for the CPU for efficiently solving veneer and being caused to learn MAC information, improves the reliability of network.
Those skilled in the art should further appreciate that, with reference to the embodiments described herein
The unit and algorithm steps of each example of description, it can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate the interchangeability of hardware and software, the composition and step of each example are generally described according to function in the above description.These functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel can realize described function to each specific application using distinct methods, but this realization is it is not considered that beyond the scope of this invention.
The step of method or algorithm for being described with reference to the embodiments described herein, can be implemented with hardware, the software module of computing device, or the combination of the two.Software module can be placed in random access memory (RAM), internal memory, read-only storage(ROM), in any other form of storage medium known in electrically programmable R0M, electrically erasable R0M, register, hard disk, moveable magnetic disc, CD-R0M or technical field.
Above-described embodiment; the purpose of the present invention, technical scheme and beneficial effect are further described; it should be understood that; it the foregoing is only the embodiment of the present invention; the protection domain being not intended to limit the present invention; within the spirit and principles of the invention, any modification, equivalent substitution and improvements done etc., should be included in the scope of the protection.
Claims (1)
- Claims1st, a kind of synchronous method of medium access control MAC information, it is characterised in that methods described includes:First veneer receives data message;First veneer carries out mac learning according to the data message, generates the first MAC table;First veneer extracts the first synchronization MAC information according to first MAC table;First veneer is by the described first synchronization MAC Information encapsulations into the first sync message;First veneer sends first sync message to the second veneer, so that second veneer obtains the first synchronization MAC information from first sync message.2nd, the synchronous method of MAC information according to claim 1, it is characterised in that first veneer includes the described first synchronization MAC Information encapsulations to the first sync message:First veneer generates MAC table synchronizing information according to the described first synchronization MAC information, and the MAC table synchronizing information is encapsulated into first sync message.3rd, the synchronous method of MAC information according to claim 2, it is characterised in that first veneer generates MAC table synchronizing information according to the described first synchronization MAC information to be included:First veneer generates MAC table synchronizing information every time using the MAC address entries of the first quantity as the first synchronization MAC information according to the described first synchronization MAC information.4th, the synchronous method of the MAC information according to any one in claim 1-3, it is characterised in that first veneer sends first sync message to the second veneer to be included:First veneer sends first sync message to multiple second veneer multicasts.5th, the synchronous method of the MAC information according to claim 1-4 any one, it is characterised in that methods described also includes:The second synchronization MAC information is extracted in the first veneer timing from local first MAC table, and the described second synchronization MAC is encapsulated into the second sync message;First veneer sends the second sync message to second veneer, so that second veneer obtains the second synchronization MAC information from second sync message, the second MAC table that the second veneer according to the described second synchronization MAC information updatings is locally preserved. 6th, a kind of synchronous method of medium access control MAC information, it is characterised in that methods described includes:Second veneer receives the first sync message that the first veneer is sent, and first sync message carries the first synchronization MAC information that first veneer is extracted from the first MAC table;Second veneer obtains the first synchronization MAC information carried in first sync message;Second veneer according to the described first synchronization MAC information updatings the second veneer preserve secondMAC table.7th, the synchronous method of MAC information according to claim 6, it is characterised in that second veneer, which obtains the first synchronization MAC information carried in first sync message, to be included:Second veneer extracts the MAC table synchronizing information carried in first sync message, and the first synchronization MAC information is obtained according to the first MAC table synchronizing information.8th, the synchronous method of the MAC information according to claim 6 or 7, it is characterised in that methods described also includes:Second veneer receives the second sync message that the first veneer timing is sent, and second sync message carries the second synchronization MAC information, and the second synchronization MAC information is extracted by first veneer timing from first MAC table;Second veneer obtains the second synchronization MAC information from second sync message, second MAC table locally preserved according to the described second synchronization MAC information updatings.9th, a kind of sychronisation of medium access control MAC information, it is characterised in that described device includes:Receiving unit, the data message of the first veneer is sent to for receiving;Generation unit, for carrying out mac learning according to the data message, generates the first MAC table;Extraction unit, for extracting the first synchronization MAC information according to first MAC table;Encapsulation unit, for by the described first synchronization MAC Information encapsulations into the first sync message;Transmitting element, for sending first sync message to the second veneer, so that second veneer obtains the first synchronization MAC information from first sync message.10th, the sychronisation of MAC information according to claim 9, it is characterised in that the encapsulation unit according to the described first synchronization MAC information specifically for generating MAC table synchronizing information, by the MAC Table synchronizing information is encapsulated into first sync message.11st, the sychronisation of MAC information according to claim 10, it is characterized in that, the generation unit is specifically for every time using the MAC address entries of the first quantity as the first synchronization MAC information, MAC table synchronizing information is generated according to the described first synchronization MAC information.12nd, the sychronisation of the MAC information according to claim 9-11 any one, it is characterised in that the transmitting element to multiple second veneer multicasts specifically for sending first sync message.13rd, the sychronisation of the MAC information according to claim 9-12 any one, it is characterised in that:The extraction unit is additionally operable to timing and the second synchronization MAC information is extracted from first MAC table, and the described second synchronization MAC is encapsulated into the second sync message;The transmitting element is additionally operable to send second sync message to second veneer, so that second veneer obtains the second synchronization MAC information from second sync message, the second MAC table that the second veneer according to the described second synchronization MAC information updatings is locally preserved.14th, a kind of sychronisation of medium access control MAC information, it is characterised in that described device includes:Transmitting element, the first synchronization MAC information that first veneer is extracted from the first MAC table is carried for receiving in the first sync message that the first veneer is sent, first sync message;Acquiring unit, the first synchronization MAC information encapsulated for obtaining in first sync message;Updating block, for the second MAC table locally preserved according to the described first synchronization MAC information updatings.15th, the sychronisation of MAC information according to claim 14, it is characterized in that, the acquiring unit obtains the first synchronization MAC information specifically for extracting the MAC table synchronizing information encapsulated in first sync message according to the MAC table synchronizing information.16th, the sychronisation of the MAC information according to claims 14 or 15, it is characterised in that:The receiving unit is additionally operable to receive the second sync message that the first veneer timing is sent, the second synchronization MAC information is carried in second sync message, the second synchronization MAC information is extracted by first veneer timing according to first MAC table; The acquiring unit is additionally operable to obtain the second synchronization MAC information from second sync message;The updating block is additionally operable to second MAC table locally preserved according to the described second synchronization MAC information updatings.17th, a kind of sychronisation of medium access control MAC information, it is characterised in that described device includes:Network interface;Processor;Memory;Application program of the physical store in the memory, the application program includes being used to make the instruction of the computing device procedure below:First veneer receives data message;First veneer carries out mac learning according to the data message, generates the first MAC table;First veneer extracts the first synchronization MAC information according to first MAC table;First veneer is by the described first synchronization MAC Information encapsulations to the first sync message;First veneer sends first sync message to the second veneer, so that second veneer obtains the first synchronization MAC information from first sync message.18th, the sychronisation of MAC information according to claim 17, it is characterised in that first veneer includes the described first synchronization MAC Information encapsulations to the first sync message:First veneer generates MAC table synchronizing information according to the described first synchronization MAC information, and the MAC table synchronizing information is encapsulated into first sync message.19th, the sychronisation of MAC information according to claim 18, it is characterised in that first veneer generates MAC table synchronizing information according to the described first synchronization MAC information to be included:First veneer generates MAC table synchronizing information every time using the MAC address entries of the first quantity as the first synchronization MAC information according to the described first synchronization MAC information.20th, the sychronisation of the MAC information according to any one in claim 17-19, it is characterised in that first veneer sends first sync message to the second veneer to be included:Described first is single Plate sends first sync message to multiple second veneer multicasts.21st, the second synchronization MAC information is extracted in the sychronisation of the MAC information according to any one in claim 17-21, its special described first veneer timing from local first MAC table, and the described second synchronization MAC is encapsulated into the second sync message;First veneer sends the second sync message to second veneer, so that second veneer obtains the second synchronization MAC information from second sync message, the second MAC table that the second veneer according to the described second synchronization MAC information updatings is locally preserved.22nd, a kind of sychronisation of medium access control MAC information, it is characterised in that described device includes:Network interface;Processor;Memory;Application program of the physical store in the memory, the application program includes being used to make the instruction of the computing device procedure below:Second veneer receives in the first sync message that the first veneer is sent, first sync message and carries the first synchronization MAC information that first veneer is extracted from the first MAC table;Second veneer obtains the first synchronization MAC information encapsulated in first sync message;The second MAC table that second veneer, second veneer according to the described first synchronization MAC information updatings is preserved.23rd, the sychronisation of MAC information according to claim 24, it is characterised in that second veneer, which obtains the first synchronization MAC information encapsulated in first sync message, to be included:Second veneer extracts the MAC table synchronizing information carried in first sync message, and the first synchronization MAC information is obtained according to the first MAC tables synchronizing information.24th, the sychronisation of the MAC information according to claim 22 or 23, it is characterised in that Second veneer, which is received, carries the second synchronization MAC information in the second sync message that the first veneer timing is sent, second sync message, the second synchronization MAC information is extracted by first veneer timing from first MAC table;Second veneer obtains the second synchronization MAC information from second sync message, second MAC table locally preserved according to the described second synchronization MAC information updatings.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2012/087738 WO2014101066A1 (en) | 2012-12-27 | 2012-12-27 | Media access control information synchronization method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104322018A true CN104322018A (en) | 2015-01-28 |
Family
ID=51019712
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201280002843.4A Pending CN104322018A (en) | 2012-12-27 | 2012-12-27 | Media access control information synchronization method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104322018A (en) |
WO (1) | WO2014101066A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109274592A (en) * | 2018-11-22 | 2019-01-25 | 新华三技术有限公司 | MAC Address table entry processing method, device and computer-readable medium |
CN113079095A (en) * | 2020-01-06 | 2021-07-06 | 烽火通信科技股份有限公司 | Method and system for improving MAC learning rate through hardware compression and packaging |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101179514B (en) * | 2007-12-18 | 2010-08-18 | 杭州华三通信技术有限公司 | Method and device of maintaining MAC item of distributed network processing system |
CN101877667B (en) * | 2009-04-30 | 2013-01-09 | 华为技术有限公司 | Message forwarding method, device and system |
CN101656676B (en) * | 2009-09-18 | 2013-03-20 | 杭州华三通信技术有限公司 | Method and equipment for updating media access control (MAC) address list items |
-
2012
- 2012-12-27 WO PCT/CN2012/087738 patent/WO2014101066A1/en active Application Filing
- 2012-12-27 CN CN201280002843.4A patent/CN104322018A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109274592A (en) * | 2018-11-22 | 2019-01-25 | 新华三技术有限公司 | MAC Address table entry processing method, device and computer-readable medium |
CN109274592B (en) * | 2018-11-22 | 2021-03-09 | 新华三技术有限公司 | MAC address table item processing method and device and computer readable medium |
CN113079095A (en) * | 2020-01-06 | 2021-07-06 | 烽火通信科技股份有限公司 | Method and system for improving MAC learning rate through hardware compression and packaging |
Also Published As
Publication number | Publication date |
---|---|
WO2014101066A1 (en) | 2014-07-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017067391A1 (en) | Data sharing method and device for virtual machines | |
US9306761B2 (en) | Video streaming system and method | |
CN106464564B (en) | Method, system and the computer-readable medium for encapsulating and routing for network packet | |
CN105162674A (en) | Method and network card for physical machine to access to virtual network | |
CN104954218A (en) | Distributed virtual switching device and forwarding method | |
CN102932472B (en) | Data processing method and communication system | |
CN103118149B (en) | Communication control method between same tenant's server and the network equipment | |
CN103095546A (en) | Method, device and data center network for processing messages | |
CN105591923A (en) | Method and device for storage of forwarding table items | |
CN103338152B (en) | A kind of method for forwarding multicast message and master control borad | |
CN106656869A (en) | Information synchronization method and system in frame type device | |
CN105634901B (en) | Mac address information synchronous method and device based on CAS VXLAN | |
CN101924699B (en) | Message forwarding method, system and provider edge equipment | |
JP2019521619A (en) | Packet forwarding | |
US8472420B2 (en) | Gateway device | |
CN106375362A (en) | Cache synchronization method and system for distributed server | |
CN202907302U (en) | A cascade structure of a LED lamp string | |
CN103167014B (en) | A kind of method and apparatus applied browser and share resource | |
CN104378299A (en) | Flow table entry processing method and device | |
CN103973833A (en) | Method and device for updating ARP cache | |
CN107135189A (en) | A kind of file transmitting method and physical machine | |
CN104322018A (en) | Media access control information synchronization method and device | |
CN106507148B (en) | Display control method and device | |
CN114640557A (en) | Gateway and cloud network system | |
CN104202432B (en) | Remote web management system and management method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150128 |
|
WD01 | Invention patent application deemed withdrawn after publication |