WO2023273864A1 - Mac address synchronization method and apparatus for olt device - Google Patents

Mac address synchronization method and apparatus for olt device Download PDF

Info

Publication number
WO2023273864A1
WO2023273864A1 PCT/CN2022/098566 CN2022098566W WO2023273864A1 WO 2023273864 A1 WO2023273864 A1 WO 2023273864A1 CN 2022098566 W CN2022098566 W CN 2022098566W WO 2023273864 A1 WO2023273864 A1 WO 2023273864A1
Authority
WO
WIPO (PCT)
Prior art keywords
mac address
control board
address entry
event
main control
Prior art date
Application number
PCT/CN2022/098566
Other languages
French (fr)
Chinese (zh)
Inventor
柯明明
史云森
冯晋田
Original Assignee
烽火通信科技股份有限公司
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 烽火通信科技股份有限公司 filed Critical 烽火通信科技股份有限公司
Publication of WO2023273864A1 publication Critical patent/WO2023273864A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0005Switch and router aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0005Switch and router aspects
    • H04Q2011/0037Operation
    • H04Q2011/0045Synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0073Provisions for forwarding or routing, e.g. lookup tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0086Network resource allocation, dimensioning or optimisation

Definitions

  • the invention relates to the field of communication technology, in particular to a method and device for synchronizing MAC addresses of OLT equipment, which are suitable for rack-type three-layer switches, routers or OLT equipment.
  • the current broadband access technology is mainly divided into copper wire access technology (such as various DSL technologies) and optical access technology.
  • Passive Optical Network (PON, Passive Optical Network) technology is a point-to-multipoint optical access technology. Technologies mainly include Ethernet Passive Optical Network (EPON, Ethernet Passive Optical Network) and Gigabit Passive Optical Network (GPON, Gigabit Passive Optical Network).
  • the PON system usually consists of OLT (Optical Line Terminal, Optical Line Terminal), ODN (Optical Distribution Network, Optical Distribution Network) and ONU (Optical Network Unit, Optical Network Unit)/ONT (Optical network terminal, Optical Network Equipment) Composition, as shown in Figure 1.
  • the OLT is the core equipment of the PON system, which is equivalent to a switch or router in a traditional communication network.
  • fiber optic interface Its main functions are:
  • the user-end equipment ONU is downlinked to realize functions such as control, management and distance measurement of the user-end equipment ONU.
  • OLT equipment usually consists of the following parts:
  • Control board also called main control board or super control unit
  • OLT has two main and backup control boards.
  • the DC power supply board (the power supply from the negative 48 volts of the switching power supply) is generally two main and standby boards.
  • Fan unit (mainly manages heat dissipation and environmental monitoring of equipment, etc.).
  • the uplink board is connected to BRAS (Broadband Remote Access Server, broadband remote access server) and other aggregation switches through transmission, or directly connected to BRAS and other equipment and SR (Service Router, full service router) equipment, if there is IPTV service, it needs to Access to the corresponding BNG (Broadband Network Gateway, broadband network gateway control equipment) equipment, both BRAS and SR belong to BNG.
  • BRAS Broadband Remote Access Server, broadband remote access server
  • SR Service Router, full service router
  • Downlink board (also called service board or PON board), generally OLT equipment has a multi-port PON board (for example, a board has 16 PON ports), and each port goes down through an optical splitter (not exceeding 1:128) to connect to the ONU terminal.
  • PON board also called service board or PON board
  • the OLT equipment also includes a machine frame (or called a service frame), and according to business needs, the OLT can also be inserted into boards such as TDM business board, Ethernet business board, and multi-channel E1 business board. Can be mixed.
  • the control board provided by the current OLT equipment provides multiple uplink ports.
  • the forwarding plane of the main and standby control boards works in 1+1 mode, that is: the uplink ports of the main and standby control boards Both are in forwarding mode; for this forwarding scenario, the forwarding planes of the active and standby control boards need to synchronize the MAC addresses of Layer 2 forwarding services.
  • the existing software implementation technology is that the forwarding plane of the active and standby control boards sends MAC address events to the local control plane, and the local control plane writes the local MAC address events into the forwarding plane in a dynamic manner, and Send the MAC address event to the peer control plane; after receiving the synchronized MAC address event, the peer control plane needs to write it into the forwarding plane in a static manner.
  • the MAC addresses on the forwarding planes of the active and standby control boards cannot be aged out.
  • the present invention provides a MAC address synchronization method and device for OLT equipment, which adopts the single control plane characteristic of the stacking system, and performs MAC processing uniformly through the sequence of MAC events received by the main control board, Ensure the timing of MAC address table synchronization and solve the timing anomaly problem existing in the prior art; flexibly adopt multicast and unicast methods in the process of MAC address synchronization, reduce the required network bandwidth, avoid broadcast storms, and improve MAC
  • the address table synchronization efficiency makes the user experience good; without destroying the MAC address table synchronization interaction process of the existing equipment, the uplink port of the system can be flexibly expanded to improve the system bandwidth and make the system have a longer life cycle. , reduce operator input costs.
  • the present invention provides a MAC address synchronization method of an OLT device, comprising:
  • the stacking system completes the master/standby election of the control boards, and notifies the master control board information to all stacking devices in the stacking system in multicast mode;
  • the stack device registers and subscribes to MAC address entry events with the main control board
  • the forwarding plane of the stacking device reports pending MAC address entry events in batches to the control plane of the main control board;
  • the control plane of the main control board performs local MAC address entry processing on the MAC address entry events to be processed in sequence, and multicasts the MAC address entry events to all stack devices that have subscribed to the corresponding events;
  • the stack device After the stack device receives the MAC address entry event, it processes the local MAC address entry.
  • the information of the MAC address entry event includes: event type, MAC address, VLAN ID, location information, and MAC address type, wherein the event type includes a new event and an aging event.
  • Table item events to all stack devices that have subscribed to the corresponding events include:
  • the control plane of the main control board searches for the corresponding local MAC address entry according to the MAC address and the VLAN ID combination key value in the MAC address entry event to be processed;
  • the control plane of the main control board performs local MAC address entry processing on the MAC address entry event to be processed in sequence, and multicasts the MAC address table entry Item event to all stack devices that have subscribed to the corresponding event, including:
  • the control plane of the main control board searches for the corresponding local MAC address entry according to the MAC address and the VLAN ID combination key value in the MAC address entry event to be processed;
  • the stacking device specifically includes a control board and at least one upstream board, wherein the control board includes a main control board and a standby control board.
  • the stacking device that registers and subscribes to the MAC address entry event with the main control board is a stacking device other than the main control board and the MAC address entry event to be processed is a new event, it specifically includes:
  • the main control board and other stacking devices each receive the MAC address entry event to be added from their own hardware;
  • the main control board chooses to process the MAC address entry event received earlier according to the sequence of received events and sends hardware synchronization processing, and then multicasts to notify other stacking devices to synchronously process the MAC address entry event processed earlier;
  • the main control board processes the later received MAC address entry events and sends hardware synchronization processing, and then multicasts to notify other stack devices to synchronously process the later processed MAC address entry events.
  • the stack device that registers and subscribes to the MAC address entry event with the main control board is a stack device other than the main control board and the MAC address entry event to be processed is an aging event, it specifically includes:
  • the main control board and other stacking devices each receive the MAC address entry event to be aged out from the hardware;
  • the main control board judges whether the location information of the MAC address entry event to be aged is consistent with the location information of the corresponding MAC address entry event stored in its own control plane, and performs separate processing according to whether they are consistent.
  • the main control board judges that the location information of the MAC address entry event to be aged is inconsistent with the location information of the corresponding MAC address entry event stored on its own control plane, the main control board notifies and reports the MAC address entry to be aged
  • the stacking device of the event re-adds the event of the MAC address entry to be aged according to the control plane data of the main control board to reset the aging information;
  • the main control board judges that the location information of the MAC address entry event to be aged is consistent with the location information of the corresponding MAC address entry event stored on its own control plane, the main control board deletes the MAC address entry to be aged on its own control plane
  • the data of the event is sent to the hardware for synchronous deletion processing, and then the multicast notifies other stack devices to synchronously delete and process the data of the pending MAC address entry event.
  • expanding and adding new stacking devices specifically includes:
  • the device information includes location information, uplink port information, and communication address;
  • the main control board of the stacking system After receiving the information, the main control board of the stacking system assigns a stacking system ID to the newly added stacking device, and sends the newly assigned stacking system ID and main control board information to the newly added stacking device in unicast mode.
  • Information including mailing addresses;
  • a new stacking device records the communication address of the main control board, records the stacking system ID of the device, and registers and subscribes to MAC address entry events with the main control board;
  • the main control board After the main control board receives the registration and subscription MAC address entry event message, it synchronizes the MAC address entry of the newly added stack device for the first time;
  • the newly added stacking device sends pending MAC address entry events to the main control board, and receives the new event or aging event from the main control board, and enters the normal adding or aging process.
  • the present invention provides a MAC address synchronization device for OLT equipment, specifically: including at least one processor and a memory, at least one processor and the memory are connected through a data bus, and the memory storage can be controlled by at least one processor
  • the executed instruction is used to complete the method for synchronizing the MAC address of the OLT device in the first aspect after being executed by the processor.
  • the present invention has the beneficial effects of adopting the single control plane characteristic of the stacking system, performing MAC processing in a unified order through the MAC events received by the main control board, ensuring the timing of the synchronization of the MAC address table, and solving the problem of existing problems.
  • the timing anomaly problem existing in the existing technology ensures the reliability of MAC address table synchronization and improves the stability of equipment services.
  • the aging setting of the present invention ensures that the MAC aging is strictly controlled by the control plane of the main control board, and the main control board judges and takes correct actions by regularly reporting the aging events through the MAC, ensuring the normal progress of the MAC aging, and solving the problems in the prior art
  • the MAC address may not age out of the problem.
  • the present invention flexibly adopts multicast and unicast modes during the MAC address synchronization process, reduces required network bandwidth, can avoid broadcast storms, improves MAC address table synchronization efficiency, and makes user experience good.
  • the invention can flexibly expand the uplink port of the system without destroying the synchronous interaction process of the MAC address table of the existing equipment, realize the purpose of adding stacking equipment, achieve the beneficial effect of improving the system bandwidth, and make the system have a longer life cycle, reducing operator input costs.
  • Fig. 1 is a schematic diagram of the composition of the PON system provided by the background technology of the present invention
  • Fig. 2 is the composition schematic diagram of the OLT equipment that background technology of the present invention provides
  • FIG. 3 is a flow chart of a MAC address synchronization method for an OLT device provided in Embodiment 1 of the present invention
  • FIG. 4 is a detailed flow chart of a MAC address synchronization method for an OLT device provided in Embodiment 1 of the present invention.
  • FIG. 5 is a flow chart of MAC address synchronization between the main control board and the standby control board when an event is added according to Embodiment 2 of the present invention
  • FIG. 6 is a flow chart of MAC address synchronization between the main control board and the standby control board during an aging event provided by Embodiment 2 of the present invention
  • FIG. 7 is a flow chart of expanding and adding stacking devices provided by Embodiment 3 of the present invention.
  • FIG. 8 is a schematic structural diagram of an apparatus for synchronizing a MAC address of an OLT device according to Embodiment 4 of the present invention.
  • the present invention is an architecture of a system with specific functions. Therefore, in the specific embodiments, the functional logic relationship of each structural module is mainly described, and the specific software and hardware implementation methods are not limited.
  • the embodiment of the present invention provides a MAC address synchronization method of an OLT device, the specific steps are as follows:
  • Step 1 The stacking system completes the election of the active and standby control boards, and multicasts the information of the active control board to all stacking devices in the stacking system.
  • the stacking device in the stacking system refers to the device responsible for service forwarding in the OLT stacking system, which specifically includes a control board and at least one uplink board, where the control board completes the active/standby election and divides The main control board and the standby control board, and multiple uplink boards can be inserted, and the inserted uplink boards can be divided into uplink board 1, uplink board 2 and uplink board N.
  • Step 2 The stack device registers and subscribes to MAC address entry events with the main control board. It should be noted that all stacking devices (including the main control board itself) can register and subscribe to MAC address entry events with the main control board, and the main control board can also notify the main control board itself during multicast, so as to realize the Unification of control plane and hardware level.
  • Step 3 The forwarding plane of the stack device reports pending MAC address entry events in batches to the control plane of the main control board.
  • the information of the MAC address entry event includes but not limited to: event type, MAC address, VLAN ID, location information, and MAC address type.
  • the event type includes a new event and an aging event, respectively corresponding to the add and delete operations;
  • the location information includes one or more of a slot number, a logical port number, and a physical port number; the MAC address type Including dynamic or static two.
  • Step 4 The control plane of the main control board performs local MAC address entry processing on the MAC address entry events to be processed in sequence, and multicasts the MAC address entry events to all stack devices that have subscribed to the corresponding events.
  • Step 5 After the stack device receives the MAC address entry event, it processes the local MAC address entry.
  • FIG. 4 it is a detailed flow chart of the above synchronization method. Specifically, taking stacking devices 1, 2, and n as an example, the detailed process is as follows:
  • Step 100 The stacking system completes the master/standby election of the control boards, and notifies the information of the master control boards of all stacking devices in the stacking system.
  • Step 200 Stack device 1 registers with the main control board to subscribe to MAC address entry events; stack device 2 registers with the main control board to subscribe to MAC address entry events; stack device n registers with the main control board to subscribe to MAC address entry events.
  • Step 300 The forwarding plane of the stacking device 1 reports the MAC address entry events to be processed in batches to the control plane of the main control board; the forwarding plane of the stacking device 2 reports the MAC address entry events to be processed in batches to the control plane of the main control board; The forwarding plane of device n reports the pending MAC address entry events to the control plane of the main control board in batches.
  • Step 400 The control plane of the main control board of the stacking system receives pending MAC address entry events, processes the pending MAC address entry events according to the time sequence of the received events, and first determines the pending MAC address entry events type, if the event type is a new event, go to step 401, and if the event type is an aging event, go to step 402.
  • Step 401 the control plane of the main control board searches for the corresponding local MAC address entry according to the MAC address and VLAN ID combination key value in the MAC address entry event to be processed; if found, then updates the local MAC address entry, And multicast the event of the MAC address entry to the stack device that has subscribed to the event; if it cannot be found, add the event of the MAC address entry to the local MAC address entry and send the event of the MAC address entry through multicast To stack devices subscribed to this event.
  • Step 402 The control plane of the main control board searches for the corresponding local MAC address entry according to the combined key value of the MAC address and the VLAN ID in the MAC address entry event to be processed; if found, and the location information of the two is consistent, then Delete the corresponding local MAC address entry, and multicast the MAC address entry event to the stack device that has subscribed to the event; if found, but the location information of the two is inconsistent, update the MAC address entry event to the local MAC address entry, and unicast the event of the MAC address entry to the stack device with the corresponding location information; if it cannot be found, the instruction will not be executed, and nothing will be done.
  • the key value is the combination of MAC address and VLAN ID, which is equivalent to a key value containing two values, one of which is the MAC address and the other is the VLAN ID.
  • Step 500 Stack device 1 performs local MAC address entry processing after receiving the corresponding MAC address entry event, and adds or deletes the MAC address hardware entry on the forwarding plane of the device; stack device 2 receives the corresponding MAC address entry event Then process the local MAC address entry, add or delete the MAC address hardware entry on the forwarding plane of the device; after receiving the corresponding MAC address entry event, the stack device n performs local MAC address entry processing, adding or deleting the forwarding plane of the device MAC address hardware entries on the face.
  • the present invention adopts the single control plane characteristic of the stacking system, performs MAC processing in a unified order through the MAC events received by the main control board, ensures the timing of the synchronization of the MAC address table, and solves the problems existing in the prior art
  • the problem of abnormal timing ensures the reliability of MAC address table synchronization and improves the stability of device services.
  • the aging setting of the present invention ensures that MAC aging is strictly controlled by the control plane of the main control board, and the main control board judges and takes correct actions by regularly reporting aging events through the MAC to ensure the normal progress of MAC aging, which solves the problem of prior art
  • the MAC address may not be aged.
  • the present invention flexibly adopts multicast and unicast modes during the MAC address synchronization process, reduces required network bandwidth, can avoid broadcast storms, improves MAC address table synchronization efficiency, and makes user experience good.
  • Embodiment 2 provides a method for synchronizing the MAC address of an OLT device.
  • the stacking device that registers and subscribes to the MAC address entry event with the main control board is other stacking devices except the main control board ( In this embodiment, the standby control board is used as an example for illustration.
  • the processing logic of all stack devices receiving pending MAC address entry events is the same. standby control board), and through the interaction between the main control board and the standby control board, the MAC address synchronization method of the present invention will be further described.
  • the preconditions of Embodiment 2 are: the primary and secondary elections have been completed, the primary control board notifies the secondary control panel of information, and the secondary control panel registers and subscribes to MAC address entry events with the primary control panel.
  • the specific MAC address synchronization process between the main control board and the standby control board includes:
  • Step 101 the main control board and the standby control board respectively receive the event of the MAC address entry to be added from their own hardware.
  • one event can contain multiple pieces of MAC data.
  • two pieces of MAC data are used as an example: the main control board receives the new events of MAC1 and MAC2, and the standby control board receives the new events of MAC3 and MAC4.
  • Step 102 The standby control board sends a unicast report of the MAC address entry event data received by itself to the main control board, so that the main control board controls and processes it uniformly.
  • the MAC address entry event data includes but not limited to the following information: event type (add), MAC address, VLAN ID, location information (slot number, logical port number, physical port number), MAC address type (static) .
  • Step 103 The main control board chooses to process the MAC address entry events received earlier according to the sequence of received events and sends hardware synchronization processing, and then multicasts the standby control board to process the MAC address table entries processed earlier item event; the main control board processes the later received MAC address entry event and sends hardware synchronization processing, and then multicasts the standby control board to synchronously process the later processed MAC address entry event.
  • the MAC1 and MAC2 events are processed first.
  • the main control board establishes the main control plane and manages the MAC address table through the data structure, adds MAC1 and MAC2 data in it, and sends it to the hardware for synchronous processing, and then notifies the standby control board to add MAC1 and MAC2 through multicast.
  • the standby control board After receiving the data, the standby control board establishes a standby control plane, adds MAC1 and MAC2 data on the standby control plane, and sends them to the hardware.
  • the main control board After processing the data of MAC1 and MAC2, the main control board processes MAC3 and MAC4 again, adds its data to the active control plane and sends it to the hardware, and then notifies the standby control board to add MAC3 and MAC4 through multicast. After receiving the data, the standby control board adds MAC3 and MAC4 data to the standby control plane, and sends the hardware. In this step, because only the standby control board has subscribed to the MAC address entry event to the main control board, the main control board only multicasts the standby control board after processing the event. If other stack devices also subscribe to the MAC address entry event, the main control board will multicast and notify all stack devices that have subscribed to the event to perform synchronous processing after processing the event.
  • the unified control of the single control plane guarantees the reliability of MAC synchronization.
  • the sequence of MAC events received by the main control board (including local reporting and reporting by the standby control board) uniformly performs MAC processing on the main and standby control boards to ensure that the MAC address table
  • the timing of synchronization solves the problem of abnormal timing in the prior art.
  • the specific MAC address synchronization process between the main control board and the standby control board includes:
  • Step 201 the main control board and the standby control board each receive an event of a MAC address entry to be aged out from the hardware. It should be noted that the prerequisite for this step is that the synchronization (dynamic addition) of MAC1 and MAC2 generated by the main control board and MAC3 and MAC4 generated by the standby control board has been completed. In this way, after adding for a period of time, the MAC with no traffic on this board will report an aging event.
  • Step 202 The standby control board sends a unicast report of the received MAC address entry event (MAC1) data to the main control board, so that the main control board performs unified control and processing according to the sequence of received events.
  • the MAC address entry event data includes but not limited to the following information: event type (aging), MAC address, VLAN ID, location information (slot number).
  • Step 203 The main control board judges whether the location information of the MAC address entry event to be aged is consistent with the location information of the corresponding MAC address entry event stored in its own control plane, and performs separate processing according to whether it is consistent.
  • Step 204 If the main control board judges that the location information of the MAC address entry event to be aged is inconsistent with the location information of the corresponding MAC address entry event stored in its own control plane, the main control board notifies and reports the MAC address entry event to be aged The control board of the event re-adds the event of the MAC address entry to be aged according to the control plane data of the main control board to reset the aging information.
  • the main control board first receives and processes the aging report of the internal MAC3, and then processes the received aging report of the MAC1 from the standby control board. Then the main control board finds MAC3 on the control plane and compares the location information of the aging data of MAC3 with the own board, but the location information of MAC3 stored in the control plane is the standby control board. Aging deletion is required, so the control plane data does not need to be modified, and the main control board needs to internally notify the board that reported the aging event to re-add MAC3 according to the control plane data to reset the aging information. The main control board then processes the aging event of MAC1 reported by the standby control board.
  • the main control board finds MAC1 on the control plane and compares the location information of the aging event of MAC1 (standby control board) with the location information stored locally (master boards) are inconsistent, so there is no need to aging delete, and the control plane data does not need to be modified.
  • the main control board unicasts the standby control board that reported the aging event to add MAC1 again, and the standby control board receives the command from the main control board, and re-adds MAC1 to reset aging information.
  • Step 205 If the main control board determines that the location information of the MAC address entry event to be aged is consistent with the location information of the corresponding MAC address entry event stored on its own control plane, the main control board deletes the MAC address entry event to be aged on its own control plane.
  • the data of the address entry event is sent to the hardware for synchronous deletion processing, and then the standby control board is notified by multicast to synchronously delete and process the data of the MAC address entry event to be aged.
  • the main control board receives the aging event of MAC2, and the standby control board receives the aging event of MAC4 from the hardware.
  • the standby control board sends the MAC4 aging event data unicast report to the main control board, and the main control board performs logic judgment control processing.
  • the MAC address entry event data includes but not limited to the following information: event type (aging), MAC address, VLAN ID, location information (slot number).
  • MAC2 is processed first.
  • the main control board finds MAC2 on the control plane and compares the location information of the MAC2 aging event with the location information stored on the control plane. They are both the main control board. It is judged that the traffic of MAC2 is disconnected and needs to be deleted, so the main control board is deleted on the active control plane.
  • MAC2 data and send hardware to delete MAC2, and then notify the standby control board to delete MAC2 through multicast. After receiving the data, the standby control board deletes MAC2 data on the standby control plane, and sends hardware to delete MAC2.
  • the main control board performs MAC4 processing again.
  • the main control board finds MAC4 on the control plane and compares the location information of the MAC4 aging event with the location information stored on the control plane. They are all standby control boards. It is judged that the traffic of MAC4 is disconnected and needs to be deleted. , so the main control board deletes the data of MAC4 on the active control plane, and sends the hardware to delete MAC4, and then notifies the standby control board to delete MAC4 through multicast. After receiving the data, the standby control board deletes the MAC4 data on the standby control plane. And issue hardware to delete MAC4.
  • the main control board only multicasts the standby control board after processing the event. If other stack devices also subscribe to the MAC address entry event, the main control board will multicast and notify all stack devices that have subscribed to the event to perform synchronous processing after processing the event.
  • This aging setting ensures that the MAC aging is strictly controlled by the main control plane, and the MAC with no traffic on this board regularly reports the aging event to the main control board to judge and take the correct action to ensure the normal progress of MAC aging, which solves the problems existing in the existing technology A problem where MAC addresses may not age out.
  • the process of MAC aging deletion is controlled by the single control plane of the main control board. According to the sequence of MAC aging events received by the main control board (including local reporting and reporting by the standby control board), MAC processing is performed on the main and standby control boards to ensure that the MAC address tables are synchronized. timing.
  • Embodiment 3 provides a method for synchronizing MAC addresses of OLT devices, which, on the basis of Embodiment 1 or Embodiment 2, further includes a process of extending and adding a stacking device.
  • the process of expanding and adding a new stacking device specifically includes:
  • Step 301 A newly added stacking device is inserted into the frame.
  • the newly added stacking device is a newly added uplink board.
  • Step 302 After the newly added stacking device goes online, the device information is broadcast to all stacking devices in the stacking system.
  • the device information includes but not limited to the following information: location information (such as slot port), uplink port information (such as logical port number, physical port number), communication address (such as IP address, MAC address).
  • Step 303 After receiving the information, the main control board of the stacking system assigns a stacking system ID to the newly added stacking device, and sends the newly assigned stacking system ID and main control board information to the newly added stacking device in unicast mode.
  • the main control board information includes but not limited to the following information: communication address (such as IP address, MAC address).
  • Step 304 The newly added stacking device records the communication address of the main control board, records the stacking system ID of the device, and registers and subscribes to MAC address entry events with the main control board.
  • Step 305 After the main control board receives the event message of registering and subscribing to the MAC address entry, it synchronizes the MAC address entry of the newly added stack device for the first time. This is to enable the newly added stack device to synchronize the MAC address learned by the main control board.
  • Step 306 The newly added stacking device sends the pending MAC address entry event to the main control board, receives the new event or aging event from the main control board, and enters a normal new adding or aging process. Specifically, the forwarding plane of the newly added stacking device reports MAC address entry events in batches to the control plane of the main control board; after processing and multicasting on the control plane of the main control board, the forwarding plane of the newly added stacking device receives the subscribed MAC address entries events, and then add or delete MAC address entries on the forwarding plane.
  • the present invention can flexibly expand the uplink port of the system without destroying the MAC address table synchronization interaction process of the existing device, realize the purpose of adding stacking devices, and achieve the beneficial effect of improving the system bandwidth , so that the system has a longer life cycle and reduces the operator's investment cost.
  • the present invention also provides a MAC address synchronization device of the OLT device that can be used to implement the above method, as shown in FIG. 8 , is a schematic diagram of the device architecture of the embodiment of the present invention.
  • the MAC address synchronization device of the OLT device in this embodiment includes one or more processors 21 and a memory 22 . Wherein, one processor 21 is taken as an example in FIG. 8 .
  • the processor 21 and the memory 22 may be connected via a bus or in other ways.
  • connection via a bus is taken as an example.
  • Memory 22 as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs and modules, such as the MAC of the OLT device in Embodiment 1 to Embodiment 3 Address synchronization method.
  • the processor 21 executes various functional applications and data processing of the MAC address synchronization device of the OLT device by running non-volatile software programs, instructions and modules stored in the memory 22, that is, to realize the implementation of Embodiment 1 to Embodiment 3.
  • the MAC address synchronization method of the OLT device can be used to store non-volatile software programs, non-volatile computer-executable programs and modules, such as the MAC of the OLT device in Embodiment 1 to Embodiment 3 Address synchronization method.
  • the memory 22 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices.
  • the memory 22 may optionally include a memory that is remotely located relative to the processor 21, and these remote memories may be connected to the processor 21 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the program instruction/module is stored in the memory 22, and when executed by one or more processors 21, the MAC address synchronization method of the OLT device in the above-mentioned embodiment 1 to embodiment 3 is executed, for example, executing the above-described Fig. 1 to The various steps shown in Figure 7.
  • the program can be stored in a computer-readable storage medium, and the storage medium can include: only Read Only Memory (Read Only Memory, abbreviated as: ROM), Random Access Memory (Random Access Memory, abbreviated as: RAM), magnetic disk or optical disc, etc.
  • Read Only Memory abbreviated as: ROM
  • Random Access Memory Random Access Memory
  • magnetic disk or optical disc etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Small-Scale Networks (AREA)

Abstract

The present invention relates to a MAC address synchronization method and apparatus for an OLT device. The method mainly comprises: a stacking system completes selecting master and standby control boards, and advertises information of the master control board to all stacking devices in the stacking system in a multicast manner; the stacking devices register and subscribe to MAC address entry events to the master control board; forwarding planes of the stacking devices report, to a control pane of the master control board, MAC address entry events to be processed in batches; the control plane of the master control board performs local MAC address entry processing on said MAC address entry events according to the time sequence, and sends said MAC address entry events in a multicast manner to all the stacking devices that subscribe to the corresponding events; upon receipt of said MAC address entry events, the stacking devices perform local MAC address entry processing. The present invention can ensure the synchronization timing of a MAC address table, solves the problem in the prior art of the abnormal time sequence, can ensure the normal operation of MAC aging, and can also flexibly extend an uplink port of the system to achieve the purpose of newly adding the stacking device.

Description

OLT设备的MAC地址同步方法和装置MAC address synchronization method and device for OLT equipment 【技术领域】【Technical field】
本发明涉及通信技术领域,特别是涉及一种OLT设备的MAC地址同步方法和装置,适用于机架式三层交换机、路由器或者OLT设备。The invention relates to the field of communication technology, in particular to a method and device for synchronizing MAC addresses of OLT equipment, which are suitable for rack-type three-layer switches, routers or OLT equipment.
【背景技术】【Background technique】
目前的宽带接入技术主要分为铜线接入技术(例如各种DSL技术)和光接入技术,无源光网络(PON,Passive Optical Network)技术是一种点对多点传送的光接入技术,主要包括以太网无源光网络(EPON,Ethernet Passive Optical Network)和吉比特无源光网络(GPON,Gigabit Passive Optical Network)等。其中,PON系统通常由OLT(Optical Line Terminal,光线路终端)、ODN(Optical Distribution Network,光配线网络)和ONU(Optical Network Unit,光网络单元)/ONT(Optical network terminal,光网络设备)组成,如图1所示。The current broadband access technology is mainly divided into copper wire access technology (such as various DSL technologies) and optical access technology. Passive Optical Network (PON, Passive Optical Network) technology is a point-to-multipoint optical access technology. Technologies mainly include Ethernet Passive Optical Network (EPON, Ethernet Passive Optical Network) and Gigabit Passive Optical Network (GPON, Gigabit Passive Optical Network). Among them, the PON system usually consists of OLT (Optical Line Terminal, Optical Line Terminal), ODN (Optical Distribution Network, Optical Distribution Network) and ONU (Optical Network Unit, Optical Network Unit)/ONT (Optical network terminal, Optical Network Equipment) Composition, as shown in Figure 1.
在上述PON系统的组成中,OLT是PON系统的核心设备,相当于传统通信网中的交换机或路由器,同时也是一个多业务提供平台,其一般放置在局端,提供面向用户的无源光纤网络的光纤接口。它主要实现的功能是:In the composition of the above PON system, the OLT is the core equipment of the PON system, which is equivalent to a switch or router in a traditional communication network. fiber optic interface. Its main functions are:
上联上层网络,完成PON系统的上行接入。Uplink the upper layer network to complete the uplink access of the PON system.
通过ODN网络(由光纤和无源分光器组成)下联用户端设备ONU,实现对用户端设备ONU的控制、管理和测距等功能。Through the ODN network (composed of optical fibers and passive optical splitters), the user-end equipment ONU is downlinked to realize functions such as control, management and distance measurement of the user-end equipment ONU.
如图2所示,OLT设备通常由以下几部分组成:As shown in Figure 2, OLT equipment usually consists of the following parts:
控制板(也叫主控板或者叫超级控制单元),一般一台OLT有主备2张控制板。Control board (also called main control board or super control unit), generally an OLT has two main and backup control boards.
直流电源板(从开关电源的负48伏来的电源),一般也是主备2张板。The DC power supply board (the power supply from the negative 48 volts of the switching power supply) is generally two main and standby boards.
风扇单元(主要管理设备的散热和环境监控等)。Fan unit (mainly manages heat dissipation and environmental monitoring of equipment, etc.).
上行板,上行板通过传输连接到BRAS(Broadband Remote Access Server,宽带远程接入服务器)等汇聚交换机或者直连BRAS等设备和SR(Service Router,全业务路由器)设备,如果有IPTV业务的还需接入相应BNG(Broadband Network Gateway,宽带网络网关控制设备)设备,BRAS和SR都属于BNG。Uplink board, the uplink board is connected to BRAS (Broadband Remote Access Server, broadband remote access server) and other aggregation switches through transmission, or directly connected to BRAS and other equipment and SR (Service Router, full service router) equipment, if there is IPTV service, it needs to Access to the corresponding BNG (Broadband Network Gateway, broadband network gateway control equipment) equipment, both BRAS and SR belong to BNG.
下行板(也叫业务板或者叫PON板),一般OLT设备具备多端口的PON板(比如一张板子有16个PON端口),每个端口下去通过分光器(不超过1:128)连接ONU终端。Downlink board (also called service board or PON board), generally OLT equipment has a multi-port PON board (for example, a board has 16 PON ports), and each port goes down through an optical splitter (not exceeding 1:128) to connect to the ONU terminal.
除上述主要部件外,OLT设备还包括机框(或者叫业务框),且根据业务需要,OLT还可以插入TDM业务版、以太网业务版、多路E1业务版等板件,这些板件都可以混插。In addition to the above-mentioned main components, the OLT equipment also includes a machine frame (or called a service frame), and according to business needs, the OLT can also be inserted into boards such as TDM business board, Ethernet business board, and multi-channel E1 business board. Can be mixed.
目前的OLT设备提供的控制板提供了多个上行端口,为了充分利用主备控制板的上行端口,主备控制板的转发面工作在1+1模式下,即:主备控制板的上行端口都处于转发模式;针对此转发场景,主备控制板的转发面需要实现二层转发业务的MAC地址同步。The control board provided by the current OLT equipment provides multiple uplink ports. In order to make full use of the uplink ports of the main and standby control boards, the forwarding plane of the main and standby control boards works in 1+1 mode, that is: the uplink ports of the main and standby control boards Both are in forwarding mode; for this forwarding scenario, the forwarding planes of the active and standby control boards need to synchronize the MAC addresses of Layer 2 forwarding services.
在硬件无法实现同步的情况下,现有的软件实现技术,是主备控制板转发面上送MAC地址事件到本地控制面,本地控制面将本地MAC地址事件按照动态方式写入转发面,并且将MAC地址事件发给对端控制面;对端控制面收到同步过来的MAC地址事件后,需要按照静态方式写入转发面。In the case that the hardware cannot be synchronized, the existing software implementation technology is that the forwarding plane of the active and standby control boards sends MAC address events to the local control plane, and the local control plane writes the local MAC address events into the forwarding plane in a dynamic manner, and Send the MAC address event to the peer control plane; after receiving the synchronized MAC address event, the peer control plane needs to write it into the forwarding plane in a static manner.
基于前述场景,现有技术实现的方案存在以下问题:Based on the aforementioned scenarios, the solutions implemented in the prior art have the following problems:
主备控制板进行MAC地址表项同步写入和删除时,时序存在问题。When the active and standby control boards write and delete MAC address entries synchronously, there is a timing problem.
主备控制板转发面的MAC地址存在无法老化的问题。The MAC addresses on the forwarding planes of the active and standby control boards cannot be aged out.
不支持扩展新的堆叠设备,即不支持上联口动态扩展。It does not support the expansion of new stacking devices, that is, it does not support the dynamic expansion of the uplink port.
鉴于此,如何克服现有技术所存在的缺陷,解决目前技术中存在的上述问题,是本技术领域待解决的难题。In view of this, how to overcome the defects in the prior art and solve the above-mentioned problems in the prior art is a difficult problem to be solved in the technical field.
【发明内容】【Content of invention】
针对现有技术的以上缺陷或改进需求,本发明提供一种OLT设备的MAC地址同步方法和装置,采用堆叠系统的单一控制面特性,通过主控制板接收到的MAC事件顺序统一进行MAC处理,确保MAC地址表同步的时序性,解决了现有技术存在的时序异常问题;在MAC地址同步过程中灵活采用多播和单播方式,降低所需的网络带宽,能够避免广播风暴发生,提升MAC地址表同步效率,使用户体验良好;在不破坏现有设备的MAC地址表同步交互流程情况下,可以灵活扩充系统的上联口,达到提升系统带宽的目的,使系统具备更长的生命周期,降低运营商投入成本。Aiming at the above defects or improvement needs of the prior art, the present invention provides a MAC address synchronization method and device for OLT equipment, which adopts the single control plane characteristic of the stacking system, and performs MAC processing uniformly through the sequence of MAC events received by the main control board, Ensure the timing of MAC address table synchronization and solve the timing anomaly problem existing in the prior art; flexibly adopt multicast and unicast methods in the process of MAC address synchronization, reduce the required network bandwidth, avoid broadcast storms, and improve MAC The address table synchronization efficiency makes the user experience good; without destroying the MAC address table synchronization interaction process of the existing equipment, the uplink port of the system can be flexibly expanded to improve the system bandwidth and make the system have a longer life cycle. , reduce operator input costs.
本发明实施例采用如下技术方案:The embodiment of the present invention adopts following technical scheme:
第一方面,本发明提供了一种OLT设备的MAC地址同步方法,包括:In a first aspect, the present invention provides a MAC address synchronization method of an OLT device, comprising:
堆叠系统完成控制板的主备选举,并将主控制板信息以组播方式通告到堆叠系统中的所有堆叠设备;The stacking system completes the master/standby election of the control boards, and notifies the master control board information to all stacking devices in the stacking system in multicast mode;
堆叠设备向主控制板注册订阅MAC地址表项事件;The stack device registers and subscribes to MAC address entry events with the main control board;
堆叠设备转发面批量上报待处理的MAC地址表项事件到主控制板的控制面;The forwarding plane of the stacking device reports pending MAC address entry events in batches to the control plane of the main control board;
主控制板的控制面按时序对待处理的MAC地址表项事件进行本地MAC地址表项处理,并组播发送MAC地址表项事件到所有订阅了相应事件的堆叠设备;The control plane of the main control board performs local MAC address entry processing on the MAC address entry events to be processed in sequence, and multicasts the MAC address entry events to all stack devices that have subscribed to the corresponding events;
堆叠设备接收到MAC地址表项事件后进行本地MAC地址表项处理。After the stack device receives the MAC address entry event, it processes the local MAC address entry.
进一步的,所述MAC地址表项事件的信息包括:事件类型、MAC地址、VLAN ID、位置信息以及MAC地址类型,其中,所述事件类型包括新增事件以及老化事件。Further, the information of the MAC address entry event includes: event type, MAC address, VLAN ID, location information, and MAC address type, wherein the event type includes a new event and an aging event.
进一步的,当待处理的MAC地址表项事件为新增事件时,所述主控制板的控制面按时序对待处理的MAC地址表项事件进行本地MAC地址表项处 理,并组播发送MAC地址表项事件到所有订阅了相应事件的堆叠设备具体包括:Further, when the MAC address entry event to be processed is a new event, the control plane of the main control board performs local MAC address entry processing on the MAC address entry event to be processed in sequence, and multicasts the MAC address entry event. Table item events to all stack devices that have subscribed to the corresponding events include:
所述主控制板的控制面依据待处理的MAC地址表项事件中的MAC地址和VLAN ID组合key值查找相对应的本地MAC地址表项;The control plane of the main control board searches for the corresponding local MAC address entry according to the MAC address and the VLAN ID combination key value in the MAC address entry event to be processed;
若查找到,则更新本地MAC地址表项,并组播发送该MAC地址表项事件至订阅了的堆叠设备;若查找不到,则添加该MAC地址表项事件到本地MAC地址表项中,并组播发送该MAC地址表项事件至订阅了的堆叠设备。If found, update the local MAC address entry, and multicast the MAC address entry event to subscribed stack devices; if not found, add the MAC address entry event to the local MAC address entry, And multicast the MAC address entry event to subscribed stack devices.
进一步的,当待处理的MAC地址表项事件为老化事件时,所述主控制板的控制面按时序对待处理的MAC地址表项事件进行本地MAC地址表项处理,并组播发送MAC地址表项事件到所有订阅了相应事件的堆叠设备具体包括:Further, when the MAC address entry event to be processed is an aging event, the control plane of the main control board performs local MAC address entry processing on the MAC address entry event to be processed in sequence, and multicasts the MAC address table entry Item event to all stack devices that have subscribed to the corresponding event, including:
所述主控制板的控制面依据待处理的MAC地址表项事件中的MAC地址和VLAN ID组合key值查找相对应的本地MAC地址表项;The control plane of the main control board searches for the corresponding local MAC address entry according to the MAC address and the VLAN ID combination key value in the MAC address entry event to be processed;
若查找到,并且两者位置信息一致,则删除相对应的本地MAC地址表项,并组播发送该MAC地址表项事件至订阅了的堆叠设备;若查找到,但两者位置信息不一致,则更新该MAC地址表项事件至本地MAC地址表项,并单播发送该MAC地址表项事件至具有相应位置信息的堆叠设备;若查找不到,则不执行指令。If it is found, and the location information of the two is consistent, delete the corresponding local MAC address entry, and multicast the event of the MAC address entry to the subscribed stack device; if it is found, but the location information of the two is inconsistent, Then update the MAC address entry event to the local MAC address entry, and unicast send the MAC address entry event to the stacking device with corresponding location information; if not found, the instruction will not be executed.
进一步的,所述堆叠设备具体包括控制板和至少一个上行板,其中,控制板包括主控制板以及备控制板。Further, the stacking device specifically includes a control board and at least one upstream board, wherein the control board includes a main control board and a standby control board.
进一步的,向主控制板注册订阅MAC地址表项事件的堆叠设备为除主控制板外的其它堆叠设备且待处理的MAC地址表项事件为新增事件时,具体包括:Further, when the stacking device that registers and subscribes to the MAC address entry event with the main control board is a stacking device other than the main control board and the MAC address entry event to be processed is a new event, it specifically includes:
主控制板与其它堆叠设备各自从自身硬件收到待新增的MAC地址表项事件;The main control board and other stacking devices each receive the MAC address entry event to be added from their own hardware;
其它堆叠设备将自身收到的MAC地址表项事件数据单播上报发送给主 控制板,以使主控制板统一控制处理;Other stacking devices unicast report the MAC address entry event data received by themselves to the main control board, so that the main control board can control and process them in a unified manner;
主控制板根据收到事件的先后时序选择先处理在先收到的MAC地址表项事件并下发硬件同步处理,然后组播通知其它堆叠设备同步处理该在先处理的MAC地址表项事件;主控制板后处理在后收到的MAC地址表项事件并下发硬件同步处理,然后组播通知其它堆叠设备同步处理该在后处理的MAC地址表项事件。The main control board chooses to process the MAC address entry event received earlier according to the sequence of received events and sends hardware synchronization processing, and then multicasts to notify other stacking devices to synchronously process the MAC address entry event processed earlier; The main control board processes the later received MAC address entry events and sends hardware synchronization processing, and then multicasts to notify other stack devices to synchronously process the later processed MAC address entry events.
进一步的,向主控制板注册订阅MAC地址表项事件的堆叠设备为除主控制板外的其它堆叠设备且待处理的MAC地址表项事件为老化事件时,具体包括:Further, when the stack device that registers and subscribes to the MAC address entry event with the main control board is a stack device other than the main control board and the MAC address entry event to be processed is an aging event, it specifically includes:
主控制板与其它堆叠设备各自从硬件收到待老化的MAC地址表项事件;The main control board and other stacking devices each receive the MAC address entry event to be aged out from the hardware;
其它堆叠设备将自身收到的MAC地址表项事件数据单播上报发送给主控制板,以使主控制板根据收到事件的先后时序进行统一控制处理;Other stacking devices unicast report the received MAC address entry event data to the main control board, so that the main control board performs unified control and processing according to the sequence of received events;
主控制板判断待老化的MAC地址表项事件的位置信息与储存在自身控制面的对应MAC地址表项事件的位置信息是否一致,并根据是否一致进行分别处理。The main control board judges whether the location information of the MAC address entry event to be aged is consistent with the location information of the corresponding MAC address entry event stored in its own control plane, and performs separate processing according to whether they are consistent.
进一步的,若主控制板判断待老化的MAC地址表项事件的位置信息与储存在自身控制面的对应MAC地址表项事件的位置信息不一致,则主控制板通知上报该待老化MAC地址表项事件的堆叠设备按照主控制板的控制面数据对该待老化MAC地址表项事件进行重新添加以重置老化信息;Further, if the main control board judges that the location information of the MAC address entry event to be aged is inconsistent with the location information of the corresponding MAC address entry event stored on its own control plane, the main control board notifies and reports the MAC address entry to be aged The stacking device of the event re-adds the event of the MAC address entry to be aged according to the control plane data of the main control board to reset the aging information;
若主控制板判断待老化的MAC地址表项事件的位置信息与储存在自身控制面的对应MAC地址表项事件的位置信息一致,则主控制板在自身控制面删除该待老化MAC地址表项事件的数据并下发硬件进行同步删除处理,然后组播通知其它堆叠设备同步删除处理该待老化MAC地址表项事件的数据。If the main control board judges that the location information of the MAC address entry event to be aged is consistent with the location information of the corresponding MAC address entry event stored on its own control plane, the main control board deletes the MAC address entry to be aged on its own control plane The data of the event is sent to the hardware for synchronous deletion processing, and then the multicast notifies other stack devices to synchronously delete and process the data of the pending MAC address entry event.
进一步的,还包括扩展新增堆叠设备,所述扩展新增堆叠设备具体包括:Further, it also includes expanding and adding new stacking devices, and the expanding and adding new stacking devices specifically includes:
新增堆叠设备上线后,将本设备信息以广播方式通告到堆叠系统中的所有堆叠设备,其中,本设备信息包括位置信息、上联口信息、通信地址;After the new stacking device goes online, broadcast the device information to all stacking devices in the stacking system. The device information includes location information, uplink port information, and communication address;
堆叠系统的主控制板收到信息后,为新增堆叠设备分配堆叠系统ID,并将新分配的堆叠系统ID以及主控制板信息以单播方式发送给新增堆叠设备,其中,主控制板信息包括通信地址;After receiving the information, the main control board of the stacking system assigns a stacking system ID to the newly added stacking device, and sends the newly assigned stacking system ID and main control board information to the newly added stacking device in unicast mode. Information including mailing addresses;
新增堆叠设备记录主控制板通信地址、记录本设备的堆叠系统ID,并向主控制板注册订阅MAC地址表项事件;A new stacking device records the communication address of the main control board, records the stacking system ID of the device, and registers and subscribes to MAC address entry events with the main control board;
主控制板收到注册订阅MAC地址表项事件消息后,对新增堆叠设备进行首次MAC地址表项的同步;After the main control board receives the registration and subscription MAC address entry event message, it synchronizes the MAC address entry of the newly added stack device for the first time;
新增堆叠设备向主控制板发送待处理的MAC地址表项事件,并接收主控制板的新增事件或老化事件,进入正常的新增或老化流程。The newly added stacking device sends pending MAC address entry events to the main control board, and receives the new event or aging event from the main control board, and enters the normal adding or aging process.
另一方面,本发明提供了一种OLT设备的MAC地址同步装置,具体为:包括至少一个处理器和存储器,至少一个处理器和存储器之间通过数据总线连接,存储器存储能被至少一个处理器执行的指令,指令在被处理器执行后,用于完成第一方面中的OLT设备的MAC地址同步方法。On the other hand, the present invention provides a MAC address synchronization device for OLT equipment, specifically: including at least one processor and a memory, at least one processor and the memory are connected through a data bus, and the memory storage can be controlled by at least one processor The executed instruction is used to complete the method for synchronizing the MAC address of the OLT device in the first aspect after being executed by the processor.
与现有技术相比,本发明的有益效果在于:采用堆叠系统的单一控制面特性,通过主控制板接收到的MAC事件顺序统一进行MAC处理,确保MAC地址表同步的时序性,解决了现有技术存在的时序异常问题,保证了MAC地址表同步的可靠性,提升设备业务稳定性。Compared with the prior art, the present invention has the beneficial effects of adopting the single control plane characteristic of the stacking system, performing MAC processing in a unified order through the MAC events received by the main control board, ensuring the timing of the synchronization of the MAC address table, and solving the problem of existing problems. The timing anomaly problem existing in the existing technology ensures the reliability of MAC address table synchronization and improves the stability of equipment services.
本发明的老化设置确保了MAC老化由主控制板的控制面严格控制进行,通过MAC定时上报老化事件交由主控制板判断作出正确的动作,确保MAC老化的正常进行,解决了现有技术存在的MAC地址可能无法老化的问题。The aging setting of the present invention ensures that the MAC aging is strictly controlled by the control plane of the main control board, and the main control board judges and takes correct actions by regularly reporting the aging events through the MAC, ensuring the normal progress of the MAC aging, and solving the problems in the prior art The MAC address may not age out of the problem.
本发明在MAC地址同步过程中灵活采用多播和单播方式,降低所需的网络带宽,能够避免广播风暴发生,提升MAC地址表同步效率,使用户体验良好。The present invention flexibly adopts multicast and unicast modes during the MAC address synchronization process, reduces required network bandwidth, can avoid broadcast storms, improves MAC address table synchronization efficiency, and makes user experience good.
本发明在不破坏现有设备的MAC地址表同步交互流程情况下,可以灵 活扩充系统的上联口,实现新增堆叠设备的目的,达到提升系统带宽的有益效果,使系统具备更长的生命周期,降低运营商投入成本。The invention can flexibly expand the uplink port of the system without destroying the synchronous interaction process of the MAC address table of the existing equipment, realize the purpose of adding stacking equipment, achieve the beneficial effect of improving the system bandwidth, and make the system have a longer life cycle, reducing operator input costs.
【附图说明】【Description of drawings】
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍。显而易见地,下面所描述的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following will briefly introduce the drawings that are used in the embodiments of the present invention. Apparently, the drawings described below are only some embodiments of the present invention, and those skilled in the art can obtain other drawings according to these drawings without creative efforts.
图1为本发明背景技术提供的PON系统组成示意图;Fig. 1 is a schematic diagram of the composition of the PON system provided by the background technology of the present invention;
图2为本发明背景技术提供的OLT设备组成示意图;Fig. 2 is the composition schematic diagram of the OLT equipment that background technology of the present invention provides;
图3为本发明实施例1提供的一种OLT设备的MAC地址同步方法流程图;FIG. 3 is a flow chart of a MAC address synchronization method for an OLT device provided in Embodiment 1 of the present invention;
图4为本发明实施例1提供的一种OLT设备的MAC地址同步方法详细流程图;FIG. 4 is a detailed flow chart of a MAC address synchronization method for an OLT device provided in Embodiment 1 of the present invention;
图5为本发明实施例2提供的主控制板与备控制板在新增事件时的MAC地址同步流程图;FIG. 5 is a flow chart of MAC address synchronization between the main control board and the standby control board when an event is added according to Embodiment 2 of the present invention;
图6为本发明实施例2提供的主控制板与备控制板在老化事件时的MAC地址同步流程图;FIG. 6 is a flow chart of MAC address synchronization between the main control board and the standby control board during an aging event provided by Embodiment 2 of the present invention;
图7为本发明实施例3提供的扩展新增堆叠设备的流程图;FIG. 7 is a flow chart of expanding and adding stacking devices provided by Embodiment 3 of the present invention;
图8为本发明实施例4提供的一种OLT设备的MAC地址同步装置结构示意图。FIG. 8 is a schematic structural diagram of an apparatus for synchronizing a MAC address of an OLT device according to Embodiment 4 of the present invention.
【具体实施方式】【detailed description】
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
本发明是一种特定功能系统的体系结构,因此在具体实施例中主要说明各结构模组的功能逻辑关系,并不对具体软件和硬件实施方式做限定。The present invention is an architecture of a system with specific functions. Therefore, in the specific embodiments, the functional logic relationship of each structural module is mainly described, and the specific software and hardware implementation methods are not limited.
此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。下面就参考附图和实施例结合来详细说明本发明。In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other. The present invention will be described in detail below with reference to the drawings and embodiments.
实施例1:Example 1:
如图3所示,本发明实施例提供一种OLT设备的MAC地址同步方法,具体步骤如下:As shown in Figure 3, the embodiment of the present invention provides a MAC address synchronization method of an OLT device, the specific steps are as follows:
步骤1:堆叠系统完成控制板的主备选举,并将主控制板信息以组播方式通告到堆叠系统中的所有堆叠设备。参考图2,在本优选实施例中,堆叠系统中的堆叠设备是指OLT堆叠系统中负责业务转发的设备,其具体包括控制板和至少一个上行板,其中,控制板完成主备选举后分为主控制板以及备控制板,上行板则可以插入多块,插入后的上行板可分为上行板1、上行板2一直到上行板N。Step 1: The stacking system completes the election of the active and standby control boards, and multicasts the information of the active control board to all stacking devices in the stacking system. Referring to Fig. 2, in this preferred embodiment, the stacking device in the stacking system refers to the device responsible for service forwarding in the OLT stacking system, which specifically includes a control board and at least one uplink board, where the control board completes the active/standby election and divides The main control board and the standby control board, and multiple uplink boards can be inserted, and the inserted uplink boards can be divided into uplink board 1, uplink board 2 and uplink board N.
步骤2:堆叠设备向主控制板注册订阅MAC地址表项事件。需说明的是,所有堆叠设备(包括主控制板自身)都可以向主控制板注册订阅MAC地址表项事件,主控制板组播时也可以通告到主控制板自身,以实现主控制板自身控制面和硬件层面的统一。Step 2: The stack device registers and subscribes to MAC address entry events with the main control board. It should be noted that all stacking devices (including the main control board itself) can register and subscribe to MAC address entry events with the main control board, and the main control board can also notify the main control board itself during multicast, so as to realize the Unification of control plane and hardware level.
步骤3:堆叠设备转发面批量上报待处理的MAC地址表项事件到主控制板的控制面。在本优选实施例中,所述MAC地址表项事件的信息包括但不限于:事件类型、MAC地址、VLAN ID、位置信息、以及MAC地址类型。其中,所述事件类型包括新增事件以及老化事件,分别对应添加以及删除操作;所述位置信息包括槽位号、逻辑端口号、物理端口号中的一种或多种;所述MAC地址类型包括动态或静态两种。Step 3: The forwarding plane of the stack device reports pending MAC address entry events in batches to the control plane of the main control board. In this preferred embodiment, the information of the MAC address entry event includes but not limited to: event type, MAC address, VLAN ID, location information, and MAC address type. Wherein, the event type includes a new event and an aging event, respectively corresponding to the add and delete operations; the location information includes one or more of a slot number, a logical port number, and a physical port number; the MAC address type Including dynamic or static two.
步骤4:主控制板的控制面按时序对待处理的MAC地址表项事件进行本地MAC地址表项处理,并组播发送MAC地址表项事件到所有订阅了相应事 件的堆叠设备。Step 4: The control plane of the main control board performs local MAC address entry processing on the MAC address entry events to be processed in sequence, and multicasts the MAC address entry events to all stack devices that have subscribed to the corresponding events.
步骤5:堆叠设备接收到MAC地址表项事件后进行本地MAC地址表项处理。Step 5: After the stack device receives the MAC address entry event, it processes the local MAC address entry.
如图4所示,为对上述同步方法的详细流程图,具体的,以堆叠设备1、2、n为例,该详细流程如下:As shown in FIG. 4, it is a detailed flow chart of the above synchronization method. Specifically, taking stacking devices 1, 2, and n as an example, the detailed process is as follows:
步骤100:堆叠系统完成控制板的主备选举,并通告堆叠系统中所有堆叠设备主控制板的信息。Step 100: The stacking system completes the master/standby election of the control boards, and notifies the information of the master control boards of all stacking devices in the stacking system.
步骤200:堆叠设备1向主控制板注册订阅MAC地址表项事件;堆叠设备2向主控制板注册订阅MAC地址表项事件;堆叠设备n向主控制板注册订阅MAC地址表项事件。Step 200: Stack device 1 registers with the main control board to subscribe to MAC address entry events; stack device 2 registers with the main control board to subscribe to MAC address entry events; stack device n registers with the main control board to subscribe to MAC address entry events.
步骤300:堆叠设备1转发面批量上报待处理的MAC地址表项事件到主控制板的控制面;堆叠设备2转发面批量上报待处理的MAC地址表项事件到主控制板的控制面;堆叠设备n转发面批量上报待处理的MAC地址表项事件到主控制板的控制面。Step 300: The forwarding plane of the stacking device 1 reports the MAC address entry events to be processed in batches to the control plane of the main control board; the forwarding plane of the stacking device 2 reports the MAC address entry events to be processed in batches to the control plane of the main control board; The forwarding plane of device n reports the pending MAC address entry events to the control plane of the main control board in batches.
步骤400:堆叠系统主控制板的控制面收到待处理的MAC地址表项事件,按收到事件的时序对待处理的MAC地址表项事件进行处理,首先判断待处理MAC地址表项事件的事件类型,若事件类型为新增事件则进入步骤401,若事件类型为老化事件则进入步骤402。Step 400: The control plane of the main control board of the stacking system receives pending MAC address entry events, processes the pending MAC address entry events according to the time sequence of the received events, and first determines the pending MAC address entry events type, if the event type is a new event, go to step 401, and if the event type is an aging event, go to step 402.
步骤401:主控制板的控制面依据待处理的MAC地址表项事件中的MAC地址和VLAN ID组合key值查找相对应的本地MAC地址表项;若查找到,则更新本地MAC地址表项,并组播发送该MAC地址表项事件至订阅了该事件的堆叠设备;若查找不到,则添加该MAC地址表项事件到本地MAC地址表项中,并组播发送该MAC地址表项事件至订阅了该事件的堆叠设备。Step 401: the control plane of the main control board searches for the corresponding local MAC address entry according to the MAC address and VLAN ID combination key value in the MAC address entry event to be processed; if found, then updates the local MAC address entry, And multicast the event of the MAC address entry to the stack device that has subscribed to the event; if it cannot be found, add the event of the MAC address entry to the local MAC address entry and send the event of the MAC address entry through multicast To stack devices subscribed to this event.
步骤402:主控制板的控制面依据待处理的MAC地址表项事件中的MAC地址和VLAN ID组合key值查找相对应的本地MAC地址表项;若查找到,并且两者位置信息一致,则删除相对应的本地MAC地址表项,并组播发送 该MAC地址表项事件至订阅了该事件的堆叠设备;若查找到,但两者位置信息不一致,则更新该MAC地址表项事件至本地MAC地址表项,并单播发送该MAC地址表项事件至具有相应位置信息的堆叠设备;若查找不到,则不执行指令,什么都不做。其中,key值就是MAC地址和VLAN ID的组合,相当于一个key值包含两个数值,其中一个数值为MAC地址,另一个数值为VLAN ID。Step 402: The control plane of the main control board searches for the corresponding local MAC address entry according to the combined key value of the MAC address and the VLAN ID in the MAC address entry event to be processed; if found, and the location information of the two is consistent, then Delete the corresponding local MAC address entry, and multicast the MAC address entry event to the stack device that has subscribed to the event; if found, but the location information of the two is inconsistent, update the MAC address entry event to the local MAC address entry, and unicast the event of the MAC address entry to the stack device with the corresponding location information; if it cannot be found, the instruction will not be executed, and nothing will be done. Among them, the key value is the combination of MAC address and VLAN ID, which is equivalent to a key value containing two values, one of which is the MAC address and the other is the VLAN ID.
步骤500:堆叠设备1接收到对应的MAC地址表项事件后进行本地MAC地址表项处理,添加或删除本设备转发面的MAC地址硬件表项;堆叠设备2接收到对应的MAC地址表项事件后进行本地MAC地址表项处理,添加或删除本设备转发面的MAC地址硬件表项;堆叠设备n接收到对应的MAC地址表项事件后进行本地MAC地址表项处理,添加或删除本设备转发面的MAC地址硬件表项。Step 500: Stack device 1 performs local MAC address entry processing after receiving the corresponding MAC address entry event, and adds or deletes the MAC address hardware entry on the forwarding plane of the device; stack device 2 receives the corresponding MAC address entry event Then process the local MAC address entry, add or delete the MAC address hardware entry on the forwarding plane of the device; after receiving the corresponding MAC address entry event, the stack device n performs local MAC address entry processing, adding or deleting the forwarding plane of the device MAC address hardware entries on the face.
通过本实施例的上述流程,本发明采用堆叠系统的单一控制面特性,通过主控制板接收到的MAC事件顺序统一进行MAC处理,确保MAC地址表同步的时序性,解决了现有技术存在的时序异常问题,保证了MAC地址表同步的可靠性,提升了设备业务稳定性。且本发明的老化设置确保了MAC老化由主控制板的控制面严格控制进行,通过MAC定时上报老化事件交由主控制板判断作出正确的动作,确保MAC老化的正常进行,解决了现有技术存在的MAC地址可能无法老化的问题。另外,本发明在MAC地址同步过程中灵活采用多播和单播方式,降低所需的网络带宽,能够避免广播风暴发生,提升MAC地址表同步效率,使用户体验良好。Through the above process of this embodiment, the present invention adopts the single control plane characteristic of the stacking system, performs MAC processing in a unified order through the MAC events received by the main control board, ensures the timing of the synchronization of the MAC address table, and solves the problems existing in the prior art The problem of abnormal timing ensures the reliability of MAC address table synchronization and improves the stability of device services. Moreover, the aging setting of the present invention ensures that MAC aging is strictly controlled by the control plane of the main control board, and the main control board judges and takes correct actions by regularly reporting aging events through the MAC to ensure the normal progress of MAC aging, which solves the problem of prior art There is a problem that the MAC address may not be aged. In addition, the present invention flexibly adopts multicast and unicast modes during the MAC address synchronization process, reduces required network bandwidth, can avoid broadcast storms, improves MAC address table synchronization efficiency, and makes user experience good.
实施例2:Example 2:
本实施例2提供一种OLT设备的MAC地址同步方法,其在实施例1的基础上,确定向主控制板注册订阅MAC地址表项事件的堆叠设备为除主控制板外的其他堆叠设备(本实施例中以备控制板为例进行说明,需说明的是,所有堆叠设备收到待处理的MAC地址表项事件的处理逻辑都相同,这 里只是以备控制板为例,而不是限定于备控制板),并通过主控制板和备控制板之间的交互对本发明的MAC地址同步方法进行进一步说明。本实施例2的前置条件为:已完成主备选举,主控制板信息告知备控制板,备控制板向主控制板注册订阅MAC地址表项事件。 Embodiment 2 provides a method for synchronizing the MAC address of an OLT device. On the basis of Embodiment 1, it is determined that the stacking device that registers and subscribes to the MAC address entry event with the main control board is other stacking devices except the main control board ( In this embodiment, the standby control board is used as an example for illustration. It should be noted that the processing logic of all stack devices receiving pending MAC address entry events is the same. standby control board), and through the interaction between the main control board and the standby control board, the MAC address synchronization method of the present invention will be further described. The preconditions of Embodiment 2 are: the primary and secondary elections have been completed, the primary control board notifies the secondary control panel of information, and the secondary control panel registers and subscribes to MAC address entry events with the primary control panel.
如图5所示,当待处理的MAC地址表项事件为新增事件时,具体的主控制板与备控制板的MAC地址同步流程包括:As shown in Figure 5, when the MAC address entry event to be processed is a new event, the specific MAC address synchronization process between the main control board and the standby control board includes:
步骤101:主控制板与备控制板各自从自身硬件收到待新增的MAC地址表项事件。其中,一个事件可包含多条MAC数据,这里以2条MAC数据举例说明:主控制板收到MAC1和MAC2的新增事件,备控制板收到MAC3和MAC4的新增事件。Step 101: the main control board and the standby control board respectively receive the event of the MAC address entry to be added from their own hardware. Among them, one event can contain multiple pieces of MAC data. Here, two pieces of MAC data are used as an example: the main control board receives the new events of MAC1 and MAC2, and the standby control board receives the new events of MAC3 and MAC4.
步骤102:备控制板将自身收到的MAC地址表项事件数据单播上报发送给主控制板,以使主控制板统一控制处理。其中,MAC地址表项事件数据包括但不限于下述信息:事件类型(添加)、MAC地址、VLAN ID、位置信息(槽位号,逻辑端口号,物理端口号)、MAC地址类型(静态)。Step 102: The standby control board sends a unicast report of the MAC address entry event data received by itself to the main control board, so that the main control board controls and processes it uniformly. Among them, the MAC address entry event data includes but not limited to the following information: event type (add), MAC address, VLAN ID, location information (slot number, logical port number, physical port number), MAC address type (static) .
步骤103:主控制板根据收到事件的先后时序选择先处理在先收到的MAC地址表项事件并下发硬件同步处理,然后组播通知备控制板同步处理该在先处理的MAC地址表项事件;主控制板后处理在后收到的MAC地址表项事件并下发硬件同步处理,然后组播通知备控制板同步处理该在后处理的MAC地址表项事件。Step 103: The main control board chooses to process the MAC address entry events received earlier according to the sequence of received events and sends hardware synchronization processing, and then multicasts the standby control board to process the MAC address table entries processed earlier item event; the main control board processes the later received MAC address entry event and sends hardware synchronization processing, and then multicasts the standby control board to synchronously process the later processed MAC address entry event.
具体而言,假设主控制板的MAC1和MAC2事件内部上报先于收到备控制板的MAC3和MAC4事件,则对MAC1和MAC2事件进行先行处理。主控制板建立主用控制面通过数据结构管理MAC地址表,在其中添加MAC1和MAC2数据,并将其下发硬件进行同步处理,然后通过组播方式通知备控制板添加MAC1和MAC2。备控制板收到数据后,建立备用控制面,在备用控制面添加MAC1和MAC2数据,并将其下发硬件。在对MAC1和MAC2数据处理完后,主控制板再进行对MAC3和MAC4的处理,将其数据添加到主用控制面并下 发硬件,然后通过组播方式通知备控制板添加MAC3和MAC4。备控制板收到数据后将MAC3和MAC4数据添加到备用控制面,并下发硬件。在该步骤中,因为只有备控制板向主控制板订阅了MAC地址表项事件,所以主控制板在处理事件后只组播通知了备控制板,如果其他堆叠设备也订阅了MAC地址表项事件,那么主控制板在处理事件后会组播通知所有订阅了该事件的堆叠设备进行同步处理。Specifically, assuming that the internal reporting of the MAC1 and MAC2 events of the main control board is prior to the receipt of the MAC3 and MAC4 events of the standby control board, the MAC1 and MAC2 events are processed first. The main control board establishes the main control plane and manages the MAC address table through the data structure, adds MAC1 and MAC2 data in it, and sends it to the hardware for synchronous processing, and then notifies the standby control board to add MAC1 and MAC2 through multicast. After receiving the data, the standby control board establishes a standby control plane, adds MAC1 and MAC2 data on the standby control plane, and sends them to the hardware. After processing the data of MAC1 and MAC2, the main control board processes MAC3 and MAC4 again, adds its data to the active control plane and sends it to the hardware, and then notifies the standby control board to add MAC3 and MAC4 through multicast. After receiving the data, the standby control board adds MAC3 and MAC4 data to the standby control plane, and sends the hardware. In this step, because only the standby control board has subscribed to the MAC address entry event to the main control board, the main control board only multicasts the standby control board after processing the event. If other stack devices also subscribe to the MAC address entry event, the main control board will multicast and notify all stack devices that have subscribed to the event to perform synchronous processing after processing the event.
通过上述步骤,可以保证硬件MAC主备一致、软件MAC主备一致并且硬件软件数据一致,完成了MAC同步流程。并且单一控制面统一控制下发保障了MAC同步的可靠性,通过主控制板接收到的MAC事件顺序(包括本地上报和备控制板上报)统一对主备控制板进行MAC处理,确保MAC地址表同步的时序性,解决了现有技术存在的时序异常问题。Through the above steps, it can be ensured that the hardware MAC master and backup are consistent, the software MAC master and backup are consistent, and the hardware and software data are consistent, completing the MAC synchronization process. In addition, the unified control of the single control plane guarantees the reliability of MAC synchronization. The sequence of MAC events received by the main control board (including local reporting and reporting by the standby control board) uniformly performs MAC processing on the main and standby control boards to ensure that the MAC address table The timing of synchronization solves the problem of abnormal timing in the prior art.
如图6所示,当待处理的MAC地址表项事件为老化事件时,具体的主控制板与备控制板的MAC地址同步流程包括:As shown in Figure 6, when the MAC address entry event to be processed is an aging event, the specific MAC address synchronization process between the main control board and the standby control board includes:
步骤201:主控制板与备控制板各自从硬件收到待老化的MAC地址表项事件。需说明的是,该步骤的前提条件是已完成主控制板产生的MAC1、MAC2和备控制板产生的MAC3、MAC4的同步(动态添加)。如此,在添加一段时间后,本板无流量的MAC便会上报老化事件。我们以MAC1和MAC3为例(其余MAC在流量断开、控制删除之前也会有类似处理):保持主控制板上MAC1和备控制板上MAC3的流量,由于主控制板已经同步添加MAC3、备控制板已经同步添加MAC1,但各自硬件都没有MAC的流量,于是一段时间后主控制板从硬件收到MAC3的老化事件、备控制板从硬件收到MAC1的老化事件。Step 201: the main control board and the standby control board each receive an event of a MAC address entry to be aged out from the hardware. It should be noted that the prerequisite for this step is that the synchronization (dynamic addition) of MAC1 and MAC2 generated by the main control board and MAC3 and MAC4 generated by the standby control board has been completed. In this way, after adding for a period of time, the MAC with no traffic on this board will report an aging event. Let's take MAC1 and MAC3 as an example (other MACs will have similar processing before traffic disconnection and control deletion): keep the traffic of MAC1 on the main control board and MAC3 on the standby control board, because the main control board has synchronously added MAC3 and backup The control board has synchronously added MAC1, but each hardware has no MAC traffic, so after a period of time, the main control board receives the aging event of MAC3 from the hardware, and the standby control board receives the aging event of MAC1 from the hardware.
步骤202:备控制板将自身收到的MAC地址表项事件(MAC1)数据单播上报发送给主控制板,以使主控制板根据收到事件的先后时序进行统一控制处理。其中,MAC地址表项事件数据包括但不限于下述信息:事件类型(老化)、MAC地址、VLAN ID、位置信息(槽位号)。Step 202: The standby control board sends a unicast report of the received MAC address entry event (MAC1) data to the main control board, so that the main control board performs unified control and processing according to the sequence of received events. Wherein, the MAC address entry event data includes but not limited to the following information: event type (aging), MAC address, VLAN ID, location information (slot number).
步骤203:主控制板判断待老化的MAC地址表项事件的位置信息与储存 在自身控制面的对应MAC地址表项事件的位置信息是否一致,并根据是否一致进行分别处理。Step 203: The main control board judges whether the location information of the MAC address entry event to be aged is consistent with the location information of the corresponding MAC address entry event stored in its own control plane, and performs separate processing according to whether it is consistent.
步骤204:若主控制板判断待老化的MAC地址表项事件的位置信息与储存在自身控制面的对应MAC地址表项事件的位置信息不一致,则主控制板通知上报该待老化MAC地址表项事件的控制板按照主控制板的控制面数据对该待老化MAC地址表项事件进行重新添加以重置老化信息。Step 204: If the main control board judges that the location information of the MAC address entry event to be aged is inconsistent with the location information of the corresponding MAC address entry event stored in its own control plane, the main control board notifies and reports the MAC address entry event to be aged The control board of the event re-adds the event of the MAC address entry to be aged according to the control plane data of the main control board to reset the aging information.
具体的,假设主控制板先收到内部MAC3的老化上报并进行处理,再处理后收到的备控制板关于MAC1的老化上报。那么主控制板在控制面查找到MAC3并比较MAC3老化数据的位置信息是本板,但储存在控制面的MAC3位置信息为备控制板,两者不一致,那么判断MAC3的流量未断开,不需要老化删除,因此控制面数据无需修改,主控制板需内部通知上报该老化事件的本板按照控制面数据对MAC3进行重新添加以重置老化信息。主控制板再处理备控制板上报的MAC1的老化事件,与上面类似,主控制板在控制面查找到MAC1并比较MAC1的老化事件位置信息(备控制板)与本地储存的位置信息(主控制板)不一致,因此无需老化删除,控制面数据无需修改,主控制板单播通知上报该老化事件的备控制板重新添加MAC1,备控制板收到主控制板的命令,重新添加MAC1以重置老化信息。Specifically, it is assumed that the main control board first receives and processes the aging report of the internal MAC3, and then processes the received aging report of the MAC1 from the standby control board. Then the main control board finds MAC3 on the control plane and compares the location information of the aging data of MAC3 with the own board, but the location information of MAC3 stored in the control plane is the standby control board. Aging deletion is required, so the control plane data does not need to be modified, and the main control board needs to internally notify the board that reported the aging event to re-add MAC3 according to the control plane data to reset the aging information. The main control board then processes the aging event of MAC1 reported by the standby control board. Similar to the above, the main control board finds MAC1 on the control plane and compares the location information of the aging event of MAC1 (standby control board) with the location information stored locally (master boards) are inconsistent, so there is no need to aging delete, and the control plane data does not need to be modified. The main control board unicasts the standby control board that reported the aging event to add MAC1 again, and the standby control board receives the command from the main control board, and re-adds MAC1 to reset aging information.
步骤205:若主控制板判断待老化的MAC地址表项事件的位置信息与储存在自身控制面的对应MAC地址表项事件的位置信息一致,则主控制板在自身控制面删除该待老化MAC地址表项事件的数据并下发硬件进行同步删除处理,然后组播通知备控制板同步删除处理该待老化MAC地址表项事件的数据。Step 205: If the main control board determines that the location information of the MAC address entry event to be aged is consistent with the location information of the corresponding MAC address entry event stored on its own control plane, the main control board deletes the MAC address entry event to be aged on its own control plane. The data of the address entry event is sent to the hardware for synchronous deletion processing, and then the standby control board is notified by multicast to synchronously delete and process the data of the MAC address entry event to be aged.
具体的,当流量断开后产生的老化事件是真正需要进行MAC老化删除的时候,以MAC2和MAC4为例:断开主控制板MAC2的流量和备控制板MAC4的流量,于是主控制板从硬件收到MAC2的老化事件、备控制板从硬件收到MAC4的老化事件。备控制板将MAC4的老化事件数据单播上报发送给主控制 板,交由主控制板进行逻辑判断控制处理。其中MAC地址表项事件数据包括但不限下述信息:事件类型(老化)、MAC地址、VLAN ID、位置信息(槽位号)。再假设主控制板MAC2老化事件内部上报先于收到备控制板MAC4老化事件,则对MAC2先行进行处理。主控制板在控制面查找到MAC2并比较MAC2老化事件的位置信息与控制面存储的位置信息一致,均为主控制板,判断MAC2流量断开需要删除,于是主控制板在主用控制面删除MAC2的数据,并下发硬件删除MAC2,然后通过组播方式通知备控制板删除MAC2,备控制板收到数据后,在备用控制面删除MAC2数据,并下发硬件删除MAC2。然后,主控制板再进行MAC4的处理,主控制板在控制面查找到MAC4并比较MAC4老化事件的位置信息与控制面存储的位置信息一致,均为备控制板,判断MAC4流量断开需要删除,于是主控制板在主用控制面删除MAC4的数据,并下发硬件删除MAC4,然后通过组播方式通知备控制板删除MAC4,备控制板收到数据后,在备用控制面删除MAC4数据,并下发硬件删除MAC4。在该步骤中,因为只有备控制板向主控制板订阅了MAC地址表项事件,所以主控制板在处理事件后只组播通知了备控制板,如果其他堆叠设备也订阅了MAC地址表项事件,那么主控制板在处理事件后会组播通知所有订阅了该事件的堆叠设备进行同步处理。Specifically, when the aging event generated after the traffic disconnection really needs to be deleted by MAC aging, take MAC2 and MAC4 as an example: disconnect the traffic of the main control board MAC2 and the traffic of the standby control board MAC4, so the main control board is The hardware receives the aging event of MAC2, and the standby control board receives the aging event of MAC4 from the hardware. The standby control board sends the MAC4 aging event data unicast report to the main control board, and the main control board performs logic judgment control processing. Wherein the MAC address entry event data includes but not limited to the following information: event type (aging), MAC address, VLAN ID, location information (slot number). Furthermore, assuming that the internal reporting of the MAC2 aging event on the main control board precedes the receipt of the MAC4 aging event on the standby control board, MAC2 is processed first. The main control board finds MAC2 on the control plane and compares the location information of the MAC2 aging event with the location information stored on the control plane. They are both the main control board. It is judged that the traffic of MAC2 is disconnected and needs to be deleted, so the main control board is deleted on the active control plane. MAC2 data, and send hardware to delete MAC2, and then notify the standby control board to delete MAC2 through multicast. After receiving the data, the standby control board deletes MAC2 data on the standby control plane, and sends hardware to delete MAC2. Then, the main control board performs MAC4 processing again. The main control board finds MAC4 on the control plane and compares the location information of the MAC4 aging event with the location information stored on the control plane. They are all standby control boards. It is judged that the traffic of MAC4 is disconnected and needs to be deleted. , so the main control board deletes the data of MAC4 on the active control plane, and sends the hardware to delete MAC4, and then notifies the standby control board to delete MAC4 through multicast. After receiving the data, the standby control board deletes the MAC4 data on the standby control plane. And issue hardware to delete MAC4. In this step, because only the standby control board has subscribed to the MAC address entry event to the main control board, the main control board only multicasts the standby control board after processing the event. If other stack devices also subscribe to the MAC address entry event, the main control board will multicast and notify all stack devices that have subscribed to the event to perform synchronous processing after processing the event.
通过上述步骤,可以保证硬件MAC主备一致、软件MAC主备一致并且硬件软件数据一致,完成了MAC同步流程。该老化设置确保了MAC老化由主用控制面严格控制进行,本板无流量的MAC定时上报老化事件交由主控制板判断作出正确的动作,确保MAC老化正常进行,解决了现有技术存在的MAC地址可能无法老化的问题。另外,MAC老化删除的流程由主控制板单一控制面控制,按照主控制板接收MAC老化事件顺序(包括本地上报和备控制板上报)统一对主备控制板进行MAC处理,确保MAC地址表同步的时序性。Through the above steps, it can be ensured that the hardware MAC master and backup are consistent, the software MAC master and backup are consistent, and the hardware and software data are consistent, completing the MAC synchronization process. This aging setting ensures that the MAC aging is strictly controlled by the main control plane, and the MAC with no traffic on this board regularly reports the aging event to the main control board to judge and take the correct action to ensure the normal progress of MAC aging, which solves the problems existing in the existing technology A problem where MAC addresses may not age out. In addition, the process of MAC aging deletion is controlled by the single control plane of the main control board. According to the sequence of MAC aging events received by the main control board (including local reporting and reporting by the standby control board), MAC processing is performed on the main and standby control boards to ensure that the MAC address tables are synchronized. timing.
实施例3:Example 3:
本实施例3提供一种OLT设备的MAC地址同步方法,其在实施例1或实施例2的基础上,还包括扩展新增堆叠设备的流程。 Embodiment 3 provides a method for synchronizing MAC addresses of OLT devices, which, on the basis of Embodiment 1 or Embodiment 2, further includes a process of extending and adding a stacking device.
如图7所示,所述扩展新增堆叠设备的流程具体包括:As shown in Figure 7, the process of expanding and adding a new stacking device specifically includes:
步骤301:新增堆叠设备插入机框。在本实施例中,该新增堆叠设备为新增的上行板。Step 301: A newly added stacking device is inserted into the frame. In this embodiment, the newly added stacking device is a newly added uplink board.
步骤302:新增堆叠设备上线后,将本设备信息以广播方式通告到堆叠系统中的所有堆叠设备。其中,本设备信息包括但不限于下述信息:位置信息(如槽位口)、上联口信息(如逻辑端口号、物理端口号)、通信地址(如IP地址、MAC地址)。Step 302: After the newly added stacking device goes online, the device information is broadcast to all stacking devices in the stacking system. Among them, the device information includes but not limited to the following information: location information (such as slot port), uplink port information (such as logical port number, physical port number), communication address (such as IP address, MAC address).
步骤303:堆叠系统的主控制板收到信息后,为新增堆叠设备分配堆叠系统ID,并将新分配的堆叠系统ID以及主控制板信息以单播方式发送给新增堆叠设备。其中,主控制板信息包括但不限于下述信息:通信地址(如IP地址、MAC地址)。Step 303: After receiving the information, the main control board of the stacking system assigns a stacking system ID to the newly added stacking device, and sends the newly assigned stacking system ID and main control board information to the newly added stacking device in unicast mode. Wherein, the main control board information includes but not limited to the following information: communication address (such as IP address, MAC address).
步骤304:新增堆叠设备记录主控制板通信地址、记录本设备的堆叠系统ID,并向主控制板注册订阅MAC地址表项事件。Step 304: The newly added stacking device records the communication address of the main control board, records the stacking system ID of the device, and registers and subscribes to MAC address entry events with the main control board.
步骤305:主控制板收到注册订阅MAC地址表项事件消息后,对新增堆叠设备进行首次MAC地址表项的同步。以使新增堆叠设备同步主控制板已学习的MAC地址。Step 305: After the main control board receives the event message of registering and subscribing to the MAC address entry, it synchronizes the MAC address entry of the newly added stack device for the first time. This is to enable the newly added stack device to synchronize the MAC address learned by the main control board.
步骤306:新增堆叠设备向主控制板发送待处理的MAC地址表项事件,并接收主控制板的新增事件或老化事件,进入正常的新增或老化流程。具体的,新增堆叠设备转发面批量上报MAC地址表项事件到主控制板控制面;在主控制板控制面进行处理并组播后,新增堆叠设备转发面接收到订阅的MAC地址表项事件,然后添加或删除转发面的MAC地址表项。Step 306: The newly added stacking device sends the pending MAC address entry event to the main control board, receives the new event or aging event from the main control board, and enters a normal new adding or aging process. Specifically, the forwarding plane of the newly added stacking device reports MAC address entry events in batches to the control plane of the main control board; after processing and multicasting on the control plane of the main control board, the forwarding plane of the newly added stacking device receives the subscribed MAC address entries events, and then add or delete MAC address entries on the forwarding plane.
通过本实施例的上述流程,本发明在不破坏现有设备的MAC地址表同步交互流程情况下,可以灵活扩充系统的上联口,实现新增堆叠设备的目的,达到提升系统带宽的有益效果,使系统具备更长的生命周期,降低运 营商投入成本。Through the above process of this embodiment, the present invention can flexibly expand the uplink port of the system without destroying the MAC address table synchronization interaction process of the existing device, realize the purpose of adding stacking devices, and achieve the beneficial effect of improving the system bandwidth , so that the system has a longer life cycle and reduces the operator's investment cost.
实施例4:Example 4:
在上述实施例1至实施例3所提供的OLT设备的MAC地址同步方法的基础上,本发明还提供了一种可用于实现上述方法的OLT设备的MAC地址同步装置,如图8所示,是本发明实施例的装置架构示意图。本实施例的OLT设备的MAC地址同步装置包括一个或多个处理器21以及存储器22。其中,图8中以一个处理器21为例。On the basis of the MAC address synchronization method of the OLT device provided in the above-mentioned embodiment 1 to embodiment 3, the present invention also provides a MAC address synchronization device of the OLT device that can be used to implement the above method, as shown in FIG. 8 , is a schematic diagram of the device architecture of the embodiment of the present invention. The MAC address synchronization device of the OLT device in this embodiment includes one or more processors 21 and a memory 22 . Wherein, one processor 21 is taken as an example in FIG. 8 .
处理器21和存储器22可以通过总线或者其他方式连接,图8中以通过总线连接为例。The processor 21 and the memory 22 may be connected via a bus or in other ways. In FIG. 8 , connection via a bus is taken as an example.
存储器22作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如实施例1至实施例3中的OLT设备的MAC地址同步方法。处理器21通过运行存储在存储器22中的非易失性软件程序、指令以及模块,从而执行OLT设备的MAC地址同步装置的各种功能应用以及数据处理,即实现实施例1至实施例3的OLT设备的MAC地址同步方法。 Memory 22, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs and modules, such as the MAC of the OLT device in Embodiment 1 to Embodiment 3 Address synchronization method. The processor 21 executes various functional applications and data processing of the MAC address synchronization device of the OLT device by running non-volatile software programs, instructions and modules stored in the memory 22, that is, to realize the implementation of Embodiment 1 to Embodiment 3. The MAC address synchronization method of the OLT device.
存储器22可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器22可选包括相对于处理器21远程设置的存储器,这些远程存储器可以通过网络连接至处理器21。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 22 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 22 may optionally include a memory that is remotely located relative to the processor 21, and these remote memories may be connected to the processor 21 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
程序指令/模块存储在存储器22中,当被一个或者多个处理器21执行时,执行上述实施例1至实施例3中的OLT设备的MAC地址同步方法,例如,执行以上描述的图1至图7所示的各个步骤。The program instruction/module is stored in the memory 22, and when executed by one or more processors 21, the MAC address synchronization method of the OLT device in the above-mentioned embodiment 1 to embodiment 3 is executed, for example, executing the above-described Fig. 1 to The various steps shown in Figure 7.
本领域普通技术人员可以理解实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(Read Only Memory,简 写为:ROM)、随机存取存储器(Random Access Memory,简写为:RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the embodiments can be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium, and the storage medium can include: only Read Only Memory (Read Only Memory, abbreviated as: ROM), Random Access Memory (Random Access Memory, abbreviated as: RAM), magnetic disk or optical disc, etc.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.

Claims (10)

  1. 一种OLT设备的MAC地址同步方法,其特征在于,包括:A kind of MAC address synchronous method of OLT equipment, it is characterized in that, comprising:
    堆叠系统完成控制板的主备选举,并将主控制板信息以组播方式通告到堆叠系统中的所有堆叠设备;The stacking system completes the master/standby election of the control boards, and notifies the master control board information to all stacking devices in the stacking system in multicast mode;
    堆叠设备向主控制板注册订阅MAC地址表项事件;The stack device registers and subscribes to MAC address entry events with the main control board;
    堆叠设备转发面批量上报待处理的MAC地址表项事件到主控制板的控制面;The forwarding plane of the stacking device reports pending MAC address entry events in batches to the control plane of the main control board;
    主控制板的控制面按时序对待处理的MAC地址表项事件进行本地MAC地址表项处理,并组播发送MAC地址表项事件到所有订阅了相应事件的堆叠设备;The control plane of the main control board performs local MAC address entry processing on the MAC address entry events to be processed in sequence, and multicasts the MAC address entry events to all stack devices that have subscribed to the corresponding events;
    堆叠设备接收到MAC地址表项事件后进行本地MAC地址表项处理。After the stack device receives the MAC address entry event, it processes the local MAC address entry.
  2. 根据权利要求1所述的OLT设备的MAC地址同步方法,其特征在于,所述MAC地址表项事件的信息包括:事件类型、MAC地址、VLAN ID、位置信息以及MAC地址类型,其中,所述事件类型包括新增事件以及老化事件。The MAC address synchronization method of OLT equipment according to claim 1, is characterized in that, the information of described MAC address entry event comprises: event type, MAC address, VLAN ID, location information and MAC address type, wherein, described Event types include new events and aging events.
  3. 根据权利要求2所述的OLT设备的MAC地址同步方法,其特征在于,当待处理的MAC地址表项事件为新增事件时,所述主控制板的控制面按时序对待处理的MAC地址表项事件进行本地MAC地址表项处理,并组播发送MAC地址表项事件到所有订阅了相应事件的堆叠设备具体包括:The MAC address synchronization method of OLT equipment according to claim 2, wherein, when the pending MAC address table entry event is a newly added event, the control plane of the main control board is the MAC address table to be processed in sequence The event is processed by the local MAC address entry, and the MAC address entry event is multicast to all stack devices that have subscribed to the corresponding event, including:
    所述主控制板的控制面依据待处理的MAC地址表项事件中的MAC地址和VLAN ID组合key值查找相对应的本地MAC地址表项;The control plane of the main control board searches for the corresponding local MAC address entry according to the MAC address and the VLAN ID combination key value in the MAC address entry event to be processed;
    若查找到,则更新本地MAC地址表项,并组播发送该MAC地址表项事件至订阅了的堆叠设备;若查找不到,则添加该MAC地址表项事件到本地MAC地址表项中,并组播发送该MAC地址表项事件至订阅了的堆叠设备。If found, update the local MAC address entry, and multicast the MAC address entry event to subscribed stack devices; if not found, add the MAC address entry event to the local MAC address entry, And multicast the MAC address entry event to subscribed stack devices.
  4. 根据权利要求2所述的OLT设备的MAC地址同步方法,其特征在于,当待处理的MAC地址表项事件为老化事件时,所述主控制板的控制面按时序对待处理的MAC地址表项事件进行本地MAC地址表项处理,并组播发送MAC地址表项事件到所有订阅了相应事件的堆叠设备具体包括:The MAC address synchronization method of OLT equipment according to claim 2, characterized in that, when the MAC address entry event to be processed is an aging event, the control plane of the main control board is the MAC address entry to be processed according to the sequence The event is processed by the local MAC address entry, and the multicast MAC address entry event is sent to all stack devices that have subscribed to the corresponding event, including:
    所述主控制板的控制面依据待处理的MAC地址表项事件中的MAC地址和VLAN ID组合key值查找相对应的本地MAC地址表项;The control plane of the main control board searches for the corresponding local MAC address entry according to the MAC address and the VLAN ID combination key value in the MAC address entry event to be processed;
    若查找到,并且两者位置信息一致,则删除相对应的本地MAC地址表项,并组播发送该MAC地址表项事件至订阅了的堆叠设备;若查找到,但两者位置 信息不一致,则更新该MAC地址表项事件至本地MAC地址表项,并单播发送该MAC地址表项事件至具有相应位置信息的堆叠设备;若查找不到,则不执行指令。If it is found, and the location information of the two is consistent, delete the corresponding local MAC address entry, and multicast the event of the MAC address entry to the subscribed stack device; if it is found, but the location information of the two is inconsistent, Then update the MAC address entry event to the local MAC address entry, and unicast send the MAC address entry event to the stacking device with corresponding location information; if not found, the instruction will not be executed.
  5. 根据权利要求2所述的OLT设备的MAC地址同步方法,其特征在于,所述堆叠设备具体包括控制板和至少一个上行板,其中,控制板包括主控制板以及备控制板。The MAC address synchronization method for an OLT device according to claim 2, wherein the stacking device specifically includes a control board and at least one upstream board, wherein the control board includes a main control board and a standby control board.
  6. 根据权利要求5所述的OLT设备的MAC地址同步方法,其特征在于,向主控制板注册订阅MAC地址表项事件的堆叠设备为除主控制板外的其它堆叠设备且待处理的MAC地址表项事件为新增事件时,具体包括:The MAC address synchronization method of OLT equipment according to claim 5, it is characterized in that, the stacking equipment that registers and subscribes MAC address entry event to main control board is other stacking equipment except main control board and the MAC address table to be processed When the event is a new event, it specifically includes:
    主控制板与其它堆叠设备各自从自身硬件收到待新增的MAC地址表项事件;The main control board and other stacking devices each receive the MAC address entry event to be added from their own hardware;
    其它堆叠设备将自身收到的MAC地址表项事件数据单播上报发送给主控制板,以使主控制板统一控制处理;Other stacking devices unicast report the received MAC address entry event data to the main control board, so that the main control board can control and process them uniformly;
    主控制板根据收到事件的先后时序选择先处理在先收到的MAC地址表项事件并下发硬件同步处理,然后组播通知其它堆叠设备同步处理该在先处理的MAC地址表项事件;主控制板后处理在后收到的MAC地址表项事件并下发硬件同步处理,然后组播通知其它堆叠设备同步处理该在后处理的MAC地址表项事件。The main control board chooses to process the MAC address entry event received earlier according to the sequence of received events and sends hardware synchronization processing, and then multicasts to notify other stacking devices to synchronously process the MAC address entry event processed earlier; The main control board processes the later received MAC address entry events and sends hardware synchronization processing, and then multicasts to notify other stack devices to synchronously process the later processed MAC address entry events.
  7. 根据权利要求5所述的OLT设备的MAC地址同步方法,其特征在于,向主控制板注册订阅MAC地址表项事件的堆叠设备为除主控制板外的其它堆叠设备且待处理的MAC地址表项事件为老化事件时,具体包括:The MAC address synchronization method of OLT equipment according to claim 5, it is characterized in that, the stacking equipment that registers and subscribes MAC address entry event to main control board is other stacking equipment except main control board and the MAC address table to be processed When the item event is an aging event, it specifically includes:
    主控制板与其它堆叠设备各自从硬件收到待老化的MAC地址表项事件;The main control board and other stacking devices each receive the MAC address entry event to be aged out from the hardware;
    其它堆叠设备将自身收到的MAC地址表项事件数据单播上报发送给主控制板,以使主控制板根据收到事件的先后时序进行统一控制处理;Other stacking devices unicast report the received MAC address entry event data to the main control board, so that the main control board performs unified control and processing according to the sequence of received events;
    主控制板判断待老化的MAC地址表项事件的位置信息与储存在自身控制面的对应MAC地址表项事件的位置信息是否一致,并根据是否一致进行分别处理。The main control board judges whether the location information of the MAC address entry event to be aged is consistent with the location information of the corresponding MAC address entry event stored in its own control plane, and performs separate processing according to whether they are consistent.
  8. 根据权利要求7所述的OLT设备的MAC地址同步方法,其特征在于:The MAC address synchronization method of OLT equipment according to claim 7, is characterized in that:
    若主控制板判断待老化的MAC地址表项事件的位置信息与储存在自身控制面的对应MAC地址表项事件的位置信息不一致,则主控制板通知上报该待老化 MAC地址表项事件的堆叠设备按照主控制板的控制面数据对该待老化MAC地址表项事件进行重新添加以重置老化信息;If the main control board judges that the location information of the MAC address entry event to be aged is inconsistent with the location information of the corresponding MAC address entry event stored on its own control plane, the main control board notifies the stack of the MAC address entry event to be aged out. The device re-adds the event of the MAC address entry to be aged according to the control plane data of the main control board to reset the aging information;
    若主控制板判断待老化的MAC地址表项事件的位置信息与储存在自身控制面的对应MAC地址表项事件的位置信息一致,则主控制板在自身控制面删除该待老化MAC地址表项事件的数据并下发硬件进行同步删除处理,然后组播通知其它堆叠设备同步删除处理该待老化MAC地址表项事件的数据。If the main control board judges that the location information of the MAC address entry event to be aged is consistent with the location information of the corresponding MAC address entry event stored on its own control plane, the main control board deletes the MAC address entry to be aged on its own control plane The data of the event is sent to the hardware for synchronous deletion processing, and then the multicast notifies other stack devices to synchronously delete and process the data of the pending MAC address entry event.
  9. 根据权利要求1所述的OLT设备的MAC地址同步方法,其特征在于,还包括扩展新增堆叠设备,所述扩展新增堆叠设备具体包括:The MAC address synchronization method of OLT equipment according to claim 1, is characterized in that, also comprises expanding newly-increased stacking equipment, and described expanding newly-increased stacking equipment specifically comprises:
    新增堆叠设备上线后,将本设备信息以广播方式通告到堆叠系统中的所有堆叠设备,其中,本设备信息包括位置信息、上联口信息、通信地址;After the new stacking device goes online, broadcast the device information to all stacking devices in the stacking system. The device information includes location information, uplink port information, and communication address;
    堆叠系统的主控制板收到信息后,为新增堆叠设备分配堆叠系统ID,并将新分配的堆叠系统ID以及主控制板信息以单播方式发送给新增堆叠设备,其中,主控制板信息包括通信地址;After receiving the information, the main control board of the stacking system assigns a stacking system ID to the newly added stacking device, and sends the newly assigned stacking system ID and main control board information to the newly added stacking device in unicast mode. Information including mailing addresses;
    新增堆叠设备记录主控制板通信地址、记录本设备的堆叠系统ID,并向主控制板注册订阅MAC地址表项事件;A new stacking device records the communication address of the main control board, records the stacking system ID of the device, and registers and subscribes to MAC address entry events with the main control board;
    主控制板收到注册订阅MAC地址表项事件消息后,对新增堆叠设备进行首次MAC地址表项的同步;After the main control board receives the registration and subscription MAC address entry event message, it synchronizes the MAC address entry of the newly added stack device for the first time;
    新增堆叠设备向主控制板发送待处理的MAC地址表项事件,并接收主控制板的新增事件或老化事件,进入正常的新增或老化流程。The newly added stacking device sends pending MAC address entry events to the main control board, and receives the new event or aging event from the main control board, and enters the normal adding or aging process.
  10. 一种OLT设备的MAC地址同步装置,其特征在于:A kind of MAC address synchronization device of OLT equipment, it is characterized in that:
    包括至少一个处理器和存储器,所述至少一个处理器和存储器之间通过数据总线连接,所述存储器存储能被所述至少一个处理器执行的指令,所述指令在被所述处理器执行后,用于完成权利要求1-9中任一项所述的OLT设备的MAC地址同步方法。It includes at least one processor and a memory, the at least one processor and the memory are connected through a data bus, the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the processor , for completing the MAC address synchronization method of the OLT device described in any one of claims 1-9.
PCT/CN2022/098566 2021-06-29 2022-06-14 Mac address synchronization method and apparatus for olt device WO2023273864A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110727948.7A CN113242481B (en) 2021-06-29 2021-06-29 MAC address synchronization method and device of OLT equipment
CN202110727948.7 2021-06-29

Publications (1)

Publication Number Publication Date
WO2023273864A1 true WO2023273864A1 (en) 2023-01-05

Family

ID=77141195

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/098566 WO2023273864A1 (en) 2021-06-29 2022-06-14 Mac address synchronization method and apparatus for olt device

Country Status (2)

Country Link
CN (1) CN113242481B (en)
WO (1) WO2023273864A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113242481B (en) * 2021-06-29 2022-04-19 烽火通信科技股份有限公司 MAC address synchronization method and device of OLT equipment
CN113839875B (en) * 2021-10-26 2022-12-23 浪潮思科网络科技有限公司 Method, device, equipment and medium for synchronizing MAC (media Access control) addresses in stacking system
CN114884878A (en) * 2022-07-12 2022-08-09 常州楠菲微电子有限公司 MAC address synchronization method for multi-switch chip stacking in hardware learning mode

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103929461A (en) * 2013-08-12 2014-07-16 杭州华三通信技术有限公司 MAC address information synchronization method and device in stacking system
CN108023974A (en) * 2017-11-30 2018-05-11 新华三技术有限公司 A kind of address aging method and apparatus
CN110636393A (en) * 2019-09-10 2019-12-31 烽火通信科技股份有限公司 Double-master-control 1+1 concurrent working method and system of OLT equipment
CN111107182A (en) * 2019-12-31 2020-05-05 瑞斯康达科技发展股份有限公司 MAC address synchronization method, device, system, equipment and medium
CN113242481A (en) * 2021-06-29 2021-08-10 烽火通信科技股份有限公司 MAC address synchronization method and device of OLT equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100563657B1 (en) * 2003-10-21 2006-03-23 한국전자통신연구원 Vlan aware shared lan emulation method and device with manageable llid in epon
US7873039B2 (en) * 2006-06-29 2011-01-18 Broadlight Ltd. Enhanced optical line terminal controller
CN102045200A (en) * 2010-12-24 2011-05-04 武汉烽火网络有限责任公司 Conditional synchronization method for MAC address table entry of distributed switch
CN103414773B (en) * 2013-08-12 2017-02-15 杭州华三通信技术有限公司 Stacking system MAC address information synchronizing method and device
US9319317B1 (en) * 2014-01-31 2016-04-19 Adtran, Inc. Systems and methods for disseminating addresses in distributed switching environments
CN104219122A (en) * 2014-08-26 2014-12-17 烽火通信科技股份有限公司 Detection method for quickly positioning far-end ONU (optical network unit) loop ports by OLT (optical line terminal) local sides
CN109067673B (en) * 2018-08-10 2021-03-30 盛科网络(苏州)有限公司 Method and system for learning MAC address in stacking system
CN109194777B (en) * 2018-09-10 2021-08-31 苏州盛科通信股份有限公司 Method and device for aging MAC address in stacking system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103929461A (en) * 2013-08-12 2014-07-16 杭州华三通信技术有限公司 MAC address information synchronization method and device in stacking system
CN108023974A (en) * 2017-11-30 2018-05-11 新华三技术有限公司 A kind of address aging method and apparatus
CN110636393A (en) * 2019-09-10 2019-12-31 烽火通信科技股份有限公司 Double-master-control 1+1 concurrent working method and system of OLT equipment
CN111107182A (en) * 2019-12-31 2020-05-05 瑞斯康达科技发展股份有限公司 MAC address synchronization method, device, system, equipment and medium
CN113242481A (en) * 2021-06-29 2021-08-10 烽火通信科技股份有限公司 MAC address synchronization method and device of OLT equipment

Also Published As

Publication number Publication date
CN113242481A (en) 2021-08-10
CN113242481B (en) 2022-04-19

Similar Documents

Publication Publication Date Title
WO2023273864A1 (en) Mac address synchronization method and apparatus for olt device
US10230535B2 (en) Communicating IGMP leave requests between load-balanced, multi-homed provider-edge routers in an ethernet virtual private network
US10862783B2 (en) OAM mechanisms for EVPN active-active services
US10142239B2 (en) Synchronizing multicast state between multi-homed routers in an Ethernet virtual private network
US10230684B2 (en) Method, apparatus, and edge node controller for allocating edge node
US20210014158A1 (en) Network Device Management Method and Apparatus, and System
US8345536B1 (en) Multicast high availability enhancements for non-stop forwarding
US20100278180A1 (en) Packet forwarding method, device and system
US9774932B2 (en) Method and apparatus for data packet switching, access switch and switching system
EP4016932A1 (en) Evpn and vpls coexistence method, apparatus, and system
WO2020259121A1 (en) Method, apparatus and system for implementing traffic switching
EP2518949B1 (en) Method and device for processing multicast messages
WO2022057761A1 (en) Traffic forwarding control method and apparatus, traffic forwarding method and chip, switch, and storage medium
US11509494B2 (en) Protocol independent multicast (PIM) designated router (DR) election
CN110636393B (en) Double-master-control 1+1 concurrent working method and system of OLT equipment
CN108011958B (en) Network device and MAC address table synchronization method
CN112615778A (en) Message forwarding method, device, router, storage medium and system
US11546267B2 (en) Method for determining designated forwarder (DF) of multicast flow, device, and system
EP3276895A1 (en) Communicating igmp leave requests between load-balanced, multi-homed provider-edge routers in an ethernet virtual private network
RU2555243C2 (en) Method and device for propagation of pseudo-wire route
US9548887B2 (en) Proactive creation of multicast state in an overlay transport network to achieve fast convergence on failover
CN113938446B (en) Multicast table item synchronization method and device based on MLAG environment
US11323279B1 (en) Internet group management protocol host mobility in ethernet virtual private network multicast networks
CN114884878A (en) MAC address synchronization method for multi-switch chip stacking in hardware learning mode
CN113973072B (en) Message sending method, device and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22831684

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE