Configuration message synchronization method, core switching disk, equipment and readable storage medium
By receiving and parsing the synchronization data packets of the PON service board, and utilizing the three-layer logical communication interface and hardware forwarding mechanism, configuration messages are directly sent to the target PON service board, solving the problems of low synchronization efficiency and insufficient reliability between PON service boards, and achieving efficient and reliable configuration synchronization.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- FIBERHOME TELECOMMUNICATION TECHNOLOGIES CO LTD
- Filing Date
- 2026-01-16
- Publication Date
- 2026-05-05
AI Technical Summary
In existing technologies, the configuration synchronization between PON service boards is inefficient and unreliable, leading to timeout retransmission and loss of synchronization messages, which affects the recovery of ONU services.
By receiving synchronization data packets sent by the PON service board, resolving the IP address and MAC address, and using the three-layer logical communication interface and hardware forwarding mechanism, configuration messages are directly sent to the target PON service board, establishing a three-layer logical communication link, and realizing hardware forwarding of configuration messages.
It improves the efficiency and reliability of configuration synchronization between PON service boards, ensures the timely transmission and integrity of configuration messages, and avoids timeouts and loss during the synchronization process.
Smart Images

Figure CN121985241A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of PON protection technology, specifically to a configuration message synchronization method, a core switching disk, a device, and a computer-readable storage medium. Background Technology
[0002] With the widespread adoption of fiber optic communication, Passive Optical Network (PON) has become the core of the access network, and the PON service board of the Optical Line Terminal (OLT) needs to achieve real-time synchronization of the Optical Network Unit (ONU) configuration.
[0003] In related technologies, when synchronizing messages between PON service boards, the CPU message sending rate limit imposed by the core switching board causes a large number of synchronization messages to time out and be retransmitted, resulting in low synchronization efficiency, high pressure on the core switching board and PON service boards, and loss of some retransmission messages due to timeout, ultimately making it impossible to recover ONU services. Moreover, existing technologies use Layer 2 multicast messages to carry synchronization data, and there is Layer 2 isolation between PON service boards. During batch centralized synchronization, packet loss is easy, further reducing the reliability of configuration synchronization. Summary of the Invention
[0004] This application provides a configuration message synchronization method, a core exchange disk, a device, and a computer-readable storage medium, which can solve the technical problems of low configuration synchronization efficiency and insufficient reliability in the prior art.
[0005] In a first aspect, embodiments of this application provide a configuration message synchronization method, which is applied to a core switching board. The core switching board exists in an optical line terminal (OLT), and the OLT includes the core switching board and at least two PON service boards. The configuration message synchronization method includes: Receive a synchronization data packet sent from any PON service board. The synchronization data packet includes the configuration message of the ONU connected to the PON service board and the first IP address of the target PON service board. The target PON service board is at least one PON service board other than the PON service board. The synchronization data packet is parsed to obtain the first IP address and the configuration message, and the first sending port and the first MAC address corresponding to the first IP address are determined based on the first mapping relationship. The configuration message is sent to the target PON service board corresponding to the first MAC address through the first sending port.
[0006] In conjunction with the first aspect, in one embodiment, the method further includes, before receiving the synchronization data packet sent from any PON service board: If an online signal is detected for any of the PON service boards, a handshake message is sent to the PON service boards so that the PON service boards can receive the handshake message, wherein the handshake message includes the MAC address of the core switching board. Receive handshake response information from any PON service board based on the handshake message, and parse the handshake response information to obtain the second IP address of any PON service board; Send PON protection configuration to any of the PON service boards based on the second IP address.
[0007] In conjunction with the first aspect, in one implementation, the PON protection configuration includes the slot number of the target PON service board, so that any PON service board can determine the first IP address corresponding to the slot number of the target PON service board included in the received PON protection configuration according to the second mapping relationship.
[0008] In conjunction with the first aspect, in one implementation, the IP addresses of the core switching board and each PON service board are determined according to their respective slot numbers, and each IP address is bound to a corresponding Layer 3 logical communication interface, so that the core switching board can establish a Layer 3 logical communication link with the PON service board based on the IP address for sending PON protection configuration.
[0009] In conjunction with the first aspect, in one implementation, after sending the configuration message to the target PON service board corresponding to the first MAC address through the first sending port, the method further includes: Receive an acknowledgment data packet sent from the target PON service board, the acknowledgment data packet including the second IP address and a configuration synchronization acknowledgment message; The confirmation data packet is parsed to obtain the second IP address and the configuration synchronization confirmation message, and the second sending port and the second MAC address corresponding to the second IP address are determined based on the first mapping relationship; The configuration synchronization confirmation message is sent through the second sending port to any of the PON service boards corresponding to the second MAC address.
[0010] In conjunction with the first aspect, in one implementation, if an online signal is detected from any of the PON service boards, sending a handshake message to any of the PON service boards includes: If an online signal is detected for any of the PON service boards, the second MAC address of the PON service board is determined based on the online signal, and a handshake message is sent to the PON service board based on the second MAC address.
[0011] In conjunction with the first aspect, in one implementation, the configuration message synchronization method further includes: If the online signal of the target PON service board is detected, a handshake message is sent to the target PON service board so that the target PON service board can receive the handshake message, wherein the handshake message includes the MAC address of the core switching board; Receive the handshake response information fed back by the target PON service board based on the handshake message, and parse the handshake response information to obtain the first IP address of the target PON service board; Based on the first IP address, send the PON protection configuration to the target PON service board.
[0012] Secondly, embodiments of this application provide a core switching board, which resides in an optical line terminal (OLT). The OLT includes the core switching board and at least two PON service boards. The core switching board includes: The receiving module is used to receive a synchronization data packet sent from any PON service board. The synchronization data packet includes the configuration message of the ONU connected to the PON service board and the first IP address of the target PON service board. The target PON service board is at least one PON service board other than the PON service board. The parsing module is used to parse the synchronization data packet to obtain the first IP address and the configuration message, and determine the first sending port and the first MAC address corresponding to the first IP address based on the first mapping relationship; The sending module is used to send the configuration message to the target PON service board corresponding to the first MAC address through the first sending port.
[0013] Thirdly, embodiments of this application provide a configuration message synchronization device, which includes a processor, a memory, and a configuration message synchronization program stored in the memory and executable by the processor, wherein when the configuration message synchronization program is executed by the processor, it implements the steps of the configuration message synchronization method as described in the first aspect.
[0014] Fourthly, embodiments of this application provide a computer-readable storage medium storing a configuration message synchronization program, wherein when the configuration message synchronization program is executed by a processor, it implements the steps of the configuration message synchronization method as described in the first aspect.
[0015] The beneficial effects of the technical solutions provided in this application include: By receiving a synchronization data packet from any PON service board, the synchronization data packet includes a configuration message of the ONU connected to the PON service board and a first IP address of the target PON service board, which is at least one PON service board other than the PON service board mentioned above; parsing the synchronization data packet to obtain the first IP address and the configuration message, and determining the first sending port and first MAC address corresponding to the first IP address based on a first mapping relationship; sending the configuration message to the target PON service board corresponding to the first MAC address through the first sending port, the message synchronization communication channel is established through three-layer forwarding, realizing hardware forwarding of configuration messages and improving the efficiency and reliability of configuration synchronization between PON service boards. Attached Figure Description
[0016] Figure 1 A schematic diagram of the communication link for the first configuration synchronization process; Figure 2 A flowchart illustrating an embodiment of the message synchronization method configured in this application; Figure 3 This is a schematic diagram of the first configuration synchronization process; Figure 4 The static ARP representation intent for PON service board 1; Figure 5 A schematic diagram of the communication link for the second configuration synchronization process; Figure 6 This is a schematic diagram of the second configuration synchronization process; Figure 7 The static ARP representation intent for PON service board 3; Figure 8 This is a schematic diagram of the functional modules of an embodiment of the core exchange disk of this application; Figure 9 This is a schematic diagram of the hardware structure of the configuration message synchronization device involved in the embodiment of this application. Detailed Implementation
[0017] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0018] First, some of the technical terms used in this application will be explained to help those skilled in the art understand this application.
[0019] Optical Line Terminal (OLT): The core equipment of Passive Optical Network (PON), responsible for aggregating ONU service data, distributing configurations, and implementing protection switching.
[0020] Core Switch: The main control and forwarding unit of the OLT, responsible for handshake interaction, configuration distribution and cross-disk data routing, and is the hub of Layer 3 communication.
[0021] PON service board: The service access unit of the OLT, which connects to ONU devices and is responsible for collecting ONU configurations, receiving instructions from the core switching board, and synchronizing configuration data.
[0022] Optical Network Unit (ONU): User-side terminal equipment that connects to the PON service board via a PON port.
[0023] PON protection switching: Under normal circumstances, the primary service board carries ONU services. When the primary service board fails, the core switching board quickly switches the services to the backup service board. The backup service board has obtained the complete ONU configuration through the configuration synchronization process, so as to achieve uninterrupted and low-latency recovery of user services.
[0024] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0025] Firstly, embodiments of this application provide a method for configuring message synchronization.
[0026] In one embodiment, the configuration message synchronization method is applied to a core switching board, which exists in an optical line terminal (OLT). The OLT includes the core switching board and at least two PON service boards.
[0027] Specifically, refer to Figure 1 , Figure 1 A schematic diagram of the communication link for the first configuration synchronization process is shown below. Figure 1 As shown, assuming the OLT device using the method of this application includes one core switching board (containing a Layer 3 switching chip SWITCH(L3)) and two PON service boards (PON service board 1 and PON service board 2), the core switching board includes a switching chip, and the two PON service boards are divided into the same PON protection group (Group1), with a primary and backup relationship. The Group1 peer IP of PON service board 1 is configured as the IP address of PON service board 2, and the Group1 peer IP of PON service board 2 is configured as the IP address of PON service board 1 (10.25.100.1). Figure 1The PON protection synchronization channel UDP socket (green channel) is implemented based on the three-layer logical communication interface VLANIF4089 and is used to transmit configuration synchronization message data packets. The master-slave communication channel TCP socket (blue channel) is used to distribute protection configuration.
[0028] In addition, PON protection switching messages have a higher priority than configuration messages for the UDP synchronization channel (PON protection synchronization channel) because switching is an emergency operation for faults and needs to be handled more urgently than configuration synchronization to avoid service interruption. The PON protection switching message is sent directly with a Layer 3 IP header superimposed on the Layer 2 Auto Discovery Protocol (ADP) handshake message header. After receiving the message, the peer end (target PON service board) will process it first. The service board will suspend the normal configuration synchronization process and complete the switching preparation first to ensure that the user's service is switched without being noticed.
[0029] In one embodiment, reference is made to Figure 2 , Figure 2 This is a flowchart illustrating an embodiment of the message synchronization method configured in this application. Figure 2 As shown, the configuration message synchronization method includes: Step S10: Receive a synchronization data packet sent from any PON service board. The synchronization data packet includes the configuration message of the ONU connected to the PON service board and the first IP address of the target PON service board. The target PON service board is at least one PON service board other than the PON service board. In one embodiment, such as Figure 1 As shown, assuming the user-side ONU device is connected to PON service board 1 through the PON port, after PON service board 1 completes the service configuration of gemport and tcont resources for the connected ONU, PON service board 1 encapsulates the ONU's configuration message and first IP address into a data packet and sends it to the core switching board. The destination MAC address is the MAC address of the core switching board. Subsequently, the switching chip of the core switching board receives the data packet sent by PON service board 1.
[0030] Before step S10, as Figure 3 As shown, Figure 3The diagram illustrates the initial configuration synchronization process. After the core switch starts up, it first completes initialization and creates a Layer 3 logical communication interface, VLANIF4089. PON service board 1, after handshaking with the core switch, pre-stores a static Address Resolution Protocol (ARP) table, including the IP addresses of other service boards besides PON service board 1. Assuming there are 17 service boards, the static ARP table stores the IP addresses of PON service boards 2 to 17, as well as the MAC address of the core switch: the port MAC address of the core switch (denoted as MACC). At the same time, the network interface of PON service board 1 is bound to the Layer 3 logical communication interface, VLANIF4089. This interface is a dedicated logical channel for configuring synchronization traffic, used to isolate other user service traffic.
[0031] Furthermore, in one embodiment, the method further includes the following step before receiving the synchronization data packet sent from any PON service board: Step S101: If an online signal of any PON service board is detected, a handshake message is sent to any PON service board so that any PON service board can receive the handshake message, wherein the handshake message includes the MAC address of the core switching board. In one embodiment, such as Figure 3 As shown, if the core switching board detects the online signal triggered after PON service board 1 is inserted into slot 3 via the backplane hardware detection circuit, the core switching board generates an ADP handshake message and sends it to PON service board 1. The ADP handshake message contains the MAC address of the core switching board, which is programmed into the board at the factory and represented by MACC. Figure 4 As shown, Figure 4 The static ARP table for PON service board 1 is as follows: After receiving the handshake message from the core switching board, PON service board 1 automatically configures the static ARP table and replies to the core switching board with its own IP address. The IP address in the static ARP table is the IP address of other PON service boards besides the current PON service board (PON service board 1), and the MAC address is the MAC address of the core switching board.
[0032] Furthermore, in one embodiment, if an online signal is detected from any of the PON service boards, sending a handshake message to any of the PON service boards includes: If an online signal is detected for any of the PON service boards, the second MAC address of the PON service board is determined based on the online signal, and a handshake message is sent to the PON service board based on the second MAC address.
[0033] In one embodiment, if the core switching board detects the online signal triggered after the PON service board 1 is inserted into slot 1 through the backplane hardware detection circuit, it determines that the slot that triggered the signal is slot 1, and then locks the target device as the PON service board 1 inserted into slot 1. Based on the pre-stored slot-MAC address preset mapping relationship, the core switching board generates an ADP handshake message based on the pre-determined second MAC address, ensuring that the handshake message is only delivered to the PON service board 1 and avoiding cross-device interference.
[0034] Step S102: Receive handshake response information from any PON service board based on the handshake message, and establish a master-slave communication channel connection with any PON service board to send PON protection configuration to any PON service board. The handshake response information includes the IP address of any PON service board.
[0035] In one embodiment, after the core switching board receives the handshake response information from PON service board 1 based on the aforementioned handshake message, it performs a validity check on the IP address of PON service board 1 contained in the handshake response information. If the check passes, it initiates a TCP master-slave communication channel connection request to PON service board 1 based on the IP address of PON service board 1. This request is used to send PON protection configuration to PON service board 1. The PON protection configuration includes information such as PON protection group ID and peer (target PON service board) IP address, so that PON service board 1 can generate subsequent ONU configuration messages to be synchronized based on the protection configuration.
[0036] Additionally, after receiving the handshake response information based on ADP handshake feedback from the PON service boards (including PON service board 1 and PON service board 2), the core switching board extracts the correspondence between the IP address and MAC address of each PON service board. Simultaneously, combining the physical slots of each PON service board, it matches the slot-physical transmission port mapping rules pre-stored in the core switching board to determine the physical transmission port for sending data to each PON service board. Based on the above information, the core switching board generates a mapping table and a next-hop table on the switching chip. The mapping table records the one-to-one mapping relationship between the IP address and the corresponding MAC address of all online PON service boards, while the next-hop table records the mapping relationship between the IP address of each next-hop target PON service board, the MAC address of that service board, and the physical transmission port from the core switching board to send data to that target service board.
[0037] Step S103: Send PON protection configuration to any of the PON service boards based on the second IP address.
[0038] In one embodiment, the core switching board generates a data packet containing PON protection configuration based on the IP address of PON service board 1, initiates a TCP connection request, establishes a TCP master-slave communication channel with PON service board 1, and sends the data packet to PON service board 1 through the TCP master-slave communication channel so that PON service board 1 can store the protection configuration and prepare for subsequent configuration synchronization.
[0039] Step S20: Parse the synchronization data packet to obtain the first IP address and the configuration message, and determine the first sending port and the first MAC address corresponding to the first IP address based on the first mapping relationship; In one embodiment, after receiving the data packet in step S10, the switching chip initiates hardware parsing to obtain the first IP address (target PON service board IP address) in the header of the data packet. By querying the mapping table of the switching chip and the first mapping relationship stored in the nexthop table, the first sending port and the first MAC address corresponding to the first IP address are determined.
[0040] Step S30: Send the configuration message to the target PON service board corresponding to the first MAC address through the first sending port.
[0041] In one embodiment, the switching chip uses the first MAC address (the MAC address of PON service board 1) as the destination MAC address in the configuration message data packet and sends it to PON service board 2 through the first sending port of the switching chip, so that PON service board 2 can receive and extract the ONU configuration message, update the local configuration library, and complete the configuration synchronization.
[0042] In this embodiment, a synchronization data packet is received from any PON service board. The synchronization data packet includes a configuration message of an ONU connected to the PON service board and a first IP address of a target PON service board, which is at least one PON service board other than the PON service board mentioned above. The synchronization data packet is parsed to obtain the first IP address and the configuration message. Based on a first mapping relationship, a first sending port and a first MAC address corresponding to the first IP address are determined. The configuration message is sent to the target PON service board corresponding to the first MAC address through the first sending port. By using Layer 3 forwarding, a message synchronization communication channel is established, realizing hardware forwarding of configuration messages and improving the efficiency and reliability of configuration synchronization between PON service boards.
[0043] Furthermore, in one embodiment, the PON protection configuration includes the slot number of the target PON service board, so that any PON service board can determine the first IP address corresponding to the slot number of the target PON service board included in the received PON protection configuration according to the second mapping relationship.
[0044] In one embodiment, the PON protection configuration sent by the core switching board to the PON service board 1 includes the slot number of the PON service board 2 (target PON service board) which is in the same PON protection group as the PON service board 1, so that the PON service board 1 can obtain the IP address of the PON service board 2 based on the slot number of the PON service board 2, and establish a mapping relationship between the PON protection group ID and the PON service board 2.
[0045] Furthermore, in one embodiment, the IP addresses of the core switching board and each PON service board are determined according to their respective slot numbers, and each IP address is bound to a corresponding Layer 3 logical communication interface, so that the core switching board can establish a Layer 3 logical communication link with the PON service board based on the IP address for sending PON protection configuration.
[0046] In one embodiment, before step S10, a Layer 3 logical communication interface VLANIF4089 is created for the core switching board and each PON service board. A reserved VLANID4089 is used, and fixed private communication IP addresses are assigned to the core switching board and all PON service boards according to their slots and bound to the VLANID4089 interface. According to the preset allocation principle, the IP address assigned to the core switching board is 10.25.100.37, and the IP address of the PON service board is 10.25.100.X, where X is the slot number of the PON service board. For example, the IP address of PON service board 1 located in slot 1 is 10.25.100.1, and the IP address of PON service board 2 located in slot 2 is 10.25.100.2. The mapping relationship between the slot number and the IP address is recorded as the second mapping relationship.
[0047] Furthermore, in one embodiment, after sending the configuration message to the target PON service board corresponding to the first MAC address through the first sending port, the method further includes: Receive an acknowledgment data packet sent from the target PON service board, the acknowledgment data packet including the second IP address and a configuration synchronization acknowledgment message; The confirmation data packet is parsed to obtain the second IP address and the configuration synchronization confirmation message, and the second sending port and the second MAC address corresponding to the second IP address are determined based on the first mapping relationship; The configuration synchronization confirmation message is sent through the second sending port to any of the PON service boards corresponding to the second MAC address.
[0048] In one embodiment, after receiving the configuration message, the target PON service board (PON service board 2) verifies that there is no data loss through TCP segment sequence number verification and confirms that the data has not been tampered with through CRC32 verification, successfully extracts the ONU configuration message and updates the local configuration database. Subsequently, the target PON service board generates a configuration synchronization confirmation message, which includes a synchronization success identifier, the target IP address (IP of PON service board 1), and a synchronization completion timestamp. The target PON service board encapsulates the confirmation message into a data packet and sends it to the core switching board through the VLANIF4089 interface. The switching chip of the core switching board receives the data packet of the configuration synchronization confirmation message through physical port 02, starts the hardware parsing process, and extracts the IP address (second IP address) of PON service board 1. The switching chip uses the second IP address as an index to query the mapping table and the nexthop table to determine the corresponding second sending port as the physical port 01 of the core switching board and the second MAC address of PON service board 1.
[0049] The switching chip re-encapsulates the confirmation message into an Ethernet frame and sends it to PON service board 1 through physical port 01. After receiving the frame, PON service board 1 confirms that the configuration synchronization is successful and records the synchronization status and timestamp.
[0050] Furthermore, in one embodiment, the configuration message synchronization method further includes: If the online signal of the target PON service board is detected, a handshake message is sent to the target PON service board so that the target PON service board can receive the handshake message, wherein the handshake message includes the MAC address of the core switching board; Receive the handshake response information fed back by the target PON service board based on the handshake message, and parse the handshake response information to obtain the first IP address of the target PON service board; Based on the first IP address, send the PON protection configuration to the target PON service board.
[0051] In one embodiment, before the configuration synchronization process of PON service board 1 and PON service board 2, the execution flow of PON service board 2 is the same as that of PON service board 1, specifically as follows: like Figure 3As shown, when the core switching board detects a valid online signal triggered by the insertion of PON service board 2 into slot 2 via the backplane hardware detection circuit, the core switching board generates an ADP handshake message containing its factory-fixed MAC address (denoted as MACA). Subsequently, the core switching board sends this message to the physical port corresponding to slot 2 via the switching chip. After receiving and verifying the ADP handshake message, PON service board 2 automatically configures its local static ARP table (using the same configuration method as the static ARP table of PON service board 1) and sends a handshake reply message to the core switching board. This reply message carries its own IP address assigned to it by slot (IP = 10.25.100.2 for slot 2). The core switching board verifies the IP address of service board 2. After verifying the legitimacy of IP (10.25.100.2), a TCP connection request is initiated based on this IP to establish a master-slave communication channel with PON service board 2. The core switching board sends the protection configuration to service board 2 through the master-slave channel, which includes: protection group ID is Group1; second IP address = 10.25.100.1. The core switching board, in conjunction with the IP (10.25.100.2) of PON service board 2, generates a mapping table and a nexthop table in the switching chip. The mapping table contains the mapping relationship between the IP address and MAC address of PON service board 2, and the nexthop table contains the mapping relationship between the IP address, MAC address and sending port of the next-hop service board (PON service board 1).
[0052] In this embodiment, the online handshake process of PON service board 1 and PON service board 2 shares the same ADP protocol and forwarding table logic. Only the destination IP of the static ARP table and the peer IP of the protection configuration correspond to their primary and backup roles, ensuring the integrity of the configuration synchronization link between the primary and backup boards.
[0053] In another embodiment of this application, if the OLT using the method of this application includes one core switching board (containing a Layer 3 switching chip SWITCH(L3)) and 17 dual-chip PON service boards (each containing a master chip and a slave chip), each PON service board is configured with 16 PON ports, and a preset PON port-chip binding rule is used: PON ports 1-8 are bound to the master chip, and PON ports 9-16 are bound to the slave chip. Similar to the configuration process of a single-chip PON service board, before the dual-chip PON service boards are configured and synchronized, the core switching board and the PON service boards create a Layer 3 configuration. The communication interface VLANIF4089 uses a reserved VLANID4089 and assigns fixed private communication IP addresses according to slots, binding them to the VLANIF4089 interface. The IP address allocation principle is as follows: the core switch board is 10.25.100.37, and the dual-chip PON service board is virtually divided into two service sub-slots. The main chip (managing PON ports 1-8) is assigned an IP address of 10.25.100.X (where X is the internal slot number of a single board), and the slave chip (managing PON ports 9-16) is assigned an IP address of 10.25.100.100+X. The overall process is as follows. Figure 5 and Figure 6 As shown, Figure 5 A schematic diagram of the communication link for the second configuration synchronization process. Figure 6 The second configuration synchronization process is illustrated in the following diagram: After the core switching board starts up, it automatically initializes the Layer 3 logical communication interface vlanif4089, providing a dedicated isolated channel for configuring synchronous traffic. After service board 3 starts up, it automatically loads the PON port-chip binding rules: binding its own PON ports 1~8 to the master chip (IP=10.25.100.3), and PON ports 9~16 to the slave chip (IP=10.25.100.103). The core switching board detects the online signal of service board 3 through hardware detection circuitry, sends it an ADP handshake message containing MACA, and generates a static ARP representation intent; such as Figure 7 As shown, Figure 7 For the static ARP representation of PON service board 3, the master chip and slave chip of service board 3 respectively receive messages, record the MACA and write it into the static ARP table (where the IP address is the communication interface IP of another chip and the VLANIF4089 communication interface IP address of the master and slave chips of other PON service boards); service board 3 replies to the core switching board with an ADP handshake message, and the core switching board establishes a TCP master-slave communication channel based on the master chip IP. Figure 5(Blue Channel) The protection configuration is distributed; the core switching board distributes the mapping table (recording the IP-MAC mapping of the master / slave chip) and the nexthop table (recording the IP-MAC-sending port mapping of the next-hop target service board 4) in SWITCH (L3) based on the ARP information of the master / slave chip of service board 3. After service board 4 starts up, it also loads the rules for binding PON ports 1~8 to the master chip (IP=10.25.100.4) and PON ports 9~16 to the slave chip (IP=10.25.100.104); after the core switching board detects that it is online, it repeats the ADP handshake, TCP channel establishment, protection configuration distribution, and mapping table / nexthop table distribution process.
[0054] When a user-side ONU connects, service board 3 automatically assigns the corresponding master / slave chip to handle services based on the PON port connected to the ONU: for example, if ONU1 is connected to PON port 5 of service board 3 (belonging to the range 1~8), then the master chip (IP=10.25.100.3) of service board 3 will assign service configurations to it; if ONU2 is connected to PON port 12 of service board 3 (belonging to the range 9~16), then the slave chip (IP=10.25.100.103) of service board 3 will assign service configurations to it; the master chip of service board 3 will uniformly transmit the configuration of ONU1 and the configuration of ONU2 through the PON protection synchronization channel (UDP socket). Figure 5 The green channel is encapsulated into a data packet and sent to the core switching board. The switching chip SWITCH (L3) of the core switching board forwards the data packet directly to the service board 4 based on the mapping table and the nexthop table. The main chip of the service board 4 receives the configuration of ONU1 (corresponding to its own PON port 5) and receives the configuration of ONU2 (corresponding to its own PON port 12) from the chip.
[0055] Secondly, embodiments of this application also provide a core switching board, which exists in an optical line terminal (OLT), and the OLT includes the core switching board and at least two PON service boards; In one embodiment, reference is made to Figure 8 , Figure 8 This is a functional module diagram of an embodiment of the core exchange disk of this application. Figure 8 As shown, the core switching disk includes: The receiving module 10 is used to receive data packets sent from any PON service board. The data packets include configuration messages of the ONUs connected to the PON service board and the first IP address of the target PON service board. The target PON service board is at least one PON service board other than the PON service board. The parsing module 20 is used to parse the data packet to obtain the first IP address, and determine the first sending port and the first MAC address corresponding to the first IP address based on the first mapping relationship; The sending module 30 is used to send the configuration message to the target PON service board corresponding to the first MAC address through the first sending port.
[0056] Furthermore, in one embodiment, the core switchboard further includes a handshake module for: If an online signal is detected for any of the PON service boards, a handshake message is sent to the PON service boards so that the PON service boards can receive the handshake message, wherein the handshake message includes the MAC address of the core switching board. Receive handshake response information from any PON service board based on the handshake message, and determine the IP address of any PON service board based on the handshake response information; Send PON protection configuration to any PON service board based on the IP address of any PON service board.
[0057] Furthermore, in one embodiment, the core switching board includes the slot number of the target PON service board, so that any PON service board can determine the first IP address corresponding to the slot number of the target PON service board included in the received PON protection configuration according to the second mapping relationship.
[0058] Furthermore, in one embodiment, the core switchboard further includes a confirmation module, used for: If a configuration synchronization confirmation message is received from the target PON service board, the configuration synchronization confirmation message is parsed to obtain the IP address of any PON service board, and the sending port corresponding to the IP address of any PON service board and the MAC address of any PON service board are determined based on a preset mapping relationship. The configuration synchronization confirmation message is sent through the sending port corresponding to the IP address of any PON service board, based on the MAC address of any PON service board.
[0059] Furthermore, in one embodiment, the core switchboard further includes a monitoring module for: If an online signal is detected for any of the PON service boards, a handshake message is sent to that PON service board, including: If an online signal is detected for any of the PON service boards, the second MAC address of the PON service board is determined based on the online signal, and a handshake message is sent to the PON service board based on the second MAC address.
[0060] Furthermore, in one embodiment, the handshake module is also used for: If the online signal of the target PON service board is detected, a handshake message is sent to the target PON service board so that the target PON service board can receive the handshake message, wherein the handshake message includes the MAC address of the core switching board; Receive the handshake response information fed back by the target PON service board based on the handshake message, and parse the handshake response information to obtain the first IP address of the target PON service board; Based on the first IP address, send the PON protection configuration to the target PON service board.
[0061] The functions of each module in the core exchange disk correspond to the steps in the above configuration message synchronization method embodiment, and their functions and implementation processes will not be described in detail here.
[0062] Thirdly, embodiments of this application provide a configuration message synchronization device, which can be a personal computer (PC), laptop computer, server, or other device with data processing capabilities.
[0063] Reference Figure 9 , Figure 9 This is a schematic diagram of the hardware structure of the configuration message synchronization device involved in the embodiments of this application. In the embodiments of this application, the configuration message synchronization device may include a processor, a memory, a communication interface, and a communication bus.
[0064] The communication bus can be of any type and is used to interconnect the processor, memory, and communication interface.
[0065] The communication interface includes input / output (I / O) interfaces, physical interfaces, and logical interfaces used for interconnecting devices within the configuration message synchronization device, as well as interfaces used for interconnecting the configuration message synchronization device with other devices (such as other computing devices or user equipment). Physical interfaces can be Ethernet interfaces, fiber optic interfaces, ATM interfaces, etc.; user equipment can be displays, keyboards, etc.
[0066] Memory can be various types of storage media, such as Random Access Memory (RAM), Read-Only Memory (ROM), Non-Volatile RAM (NVRAM), Flash Memory, Optical Memory, Hard Disk, Programmable ROM (PROM), Erasable ROM (EPROM), Electrically Erasable ROM (EEPROM), etc.
[0067] The processor can be a general-purpose processor, which can call a configuration message synchronization program stored in memory and execute the configuration message synchronization method provided in the embodiments of this application. For example, the general-purpose processor can be a central processing unit (CPU). The method executed when the configuration message synchronization program is called can be referred to in the various embodiments of the configuration message synchronization method of this application, and will not be repeated here.
[0068] Those skilled in the art will understand that Figure 9 The hardware structure shown does not constitute a limitation of this application and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0069] Fourthly, embodiments of this application also provide a computer-readable storage medium.
[0070] The present application has a computer-readable storage medium storing a configuration message synchronization program, wherein when the configuration message synchronization program is executed by a processor, it implements the steps of the configuration message synchronization method as described above.
[0071] The method implemented when the configuration message synchronization program is executed can be referred to in various embodiments of the configuration message synchronization method of this application, and will not be repeated here.
[0072] It should be noted that the sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0073] The terms "comprising" and "having," and any variations thereof, in the specification, claims, and accompanying drawings of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus. The terms "first," "second," and "third," etc., are used to distinguish different objects, etc., and do not indicate a sequence, nor do they limit "first," "second," and "third" to different types.
[0074] In the description of the embodiments of this application, terms such as "exemplary," "for example," or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplary," "for example," or "for instance" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary," "for example," or "for instance" is intended to present the relevant concepts in a concrete manner.
[0075] In the description of the embodiments of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The "and / or" in the text is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of this application, "multiple" means two or more.
[0076] In some processes described in the embodiments of this application, multiple operations or steps are included in a specific order. However, it should be understood that these operations or steps may not be executed in the order they appear in the embodiments of this application, or they may be executed in parallel. The sequence number of the operation is only used to distinguish different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed sequentially or in parallel, and these operations or steps may be combined.
[0077] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device to execute the methods described in the various embodiments of this application.
[0078] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A method for configuring message synchronization, characterized in that, The configuration message synchronization method is applied to the core switching board, which resides in the optical line terminal (OLT). The OLT includes the core switching board and at least two PON service boards. The configuration message synchronization method includes: Receive a synchronization data packet sent from any PON service board. The synchronization data packet includes the configuration message of the ONU connected to the PON service board and the first IP address of the target PON service board. The target PON service board is at least one PON service board other than the PON service board. The synchronization data packet is parsed to obtain the first IP address and the configuration message, and the first sending port and the first MAC address corresponding to the first IP address are determined based on the first mapping relationship. The configuration message is sent to the target PON service board corresponding to the first MAC address through the first sending port.
2. The configuration message synchronization method as described in claim 1, characterized in that, The process includes the following steps before receiving the synchronization data packet sent from any PON service board: If an online signal is detected for any of the PON service boards, a handshake message is sent to the PON service boards so that the PON service boards can receive the handshake message, wherein the handshake message includes the MAC address of the core switching board. Receive handshake response information from any PON service board based on the handshake message, and parse the handshake response information to obtain the second IP address of any PON service board; Send PON protection configuration to any of the PON service boards based on the second IP address.
3. The configuration message synchronization method as described in claim 2, characterized in that, The PON protection configuration includes the slot number of the target PON service board, so that any PON service board can determine the first IP address corresponding to the slot number of the target PON service board included in the received PON protection configuration according to the second mapping relationship.
4. The configuration message synchronization method as described in claim 3, characterized in that, The IP addresses of the core switching board and each PON service board are determined according to their respective slot numbers, and each IP address is bound to a corresponding Layer 3 logical communication interface so that the core switching board can establish a Layer 3 logical communication link with the PON service board based on the IP address for sending PON protection configuration.
5. The configuration message synchronization method as described in claim 4, characterized in that, After sending the configuration message to the target PON service board corresponding to the first MAC address through the first sending port, the method further includes: Receive an acknowledgment data packet sent from the target PON service board, the acknowledgment data packet including the second IP address and a configuration synchronization acknowledgment message; The confirmation data packet is parsed to obtain the second IP address and the configuration synchronization confirmation message, and the second sending port and the second MAC address corresponding to the second IP address are determined based on the first mapping relationship; The configuration synchronization confirmation message is sent through the second sending port to any of the PON service boards corresponding to the second MAC address.
6. The configuration message synchronization method as described in claim 2, characterized in that, If an online signal is detected for any of the PON service boards, a handshake message is sent to that PON service board, including: If an online signal is detected for any of the PON service boards, the second MAC address of the PON service board is determined based on the online signal, and a handshake message is sent to the PON service board based on the second MAC address.
7. The configuration message synchronization method as described in claim 1, characterized in that, The configuration message synchronization method further includes: If the online signal of the target PON service board is detected, a handshake message is sent to the target PON service board so that the target PON service board can receive the handshake message, wherein the handshake message includes the MAC address of the core switching board; Receive the handshake response information fed back by the target PON service board based on the handshake message, and parse the handshake response information to obtain the first IP address of the target PON service board; Based on the first IP address, send the PON protection configuration to the target PON service board.
8. A core switching disk, characterized in that, The core switching board resides in the optical line terminal (OLT), and the OLT includes the core switching board and at least two PON service boards. The core switching board includes: The receiving module is used to receive a synchronization data packet sent from any PON service board. The synchronization data packet includes the configuration message of the ONU connected to the PON service board and the first IP address of the target PON service board. The target PON service board is at least one PON service board other than the PON service board. The parsing module is used to parse the synchronization data packet to obtain the first IP address and the configuration message, and determine the first sending port and the first MAC address corresponding to the first IP address based on the first mapping relationship; The sending module is used to send the configuration message to the target PON service board corresponding to the first MAC address through the first sending port.
9. A configuration message synchronization device, characterized in that, The configuration message synchronization device includes a processor, a memory, and a configuration message synchronization program stored in the memory and executable by the processor, wherein when the configuration message synchronization program is executed by the processor, it implements the steps of the configuration message synchronization method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a configuration message synchronization program, wherein when the configuration message synchronization program is executed by a processor, it implements the steps of the configuration message synchronization method as described in any one of claims 1 to 7.