Search

CN-121985241-A - Configuration message synchronization method, core switching disk, device and readable storage medium

CN121985241ACN 121985241 ACN121985241 ACN 121985241ACN-121985241-A

Abstract

A method, core switch disk, device and computer readable storage medium for synchronizing configuration messages. In the method, a synchronous data packet sent by any PON service disk is received, the synchronous data packet comprises a configuration message of an ONU hung under the any PON service disk and a first IP address of a target PON service disk, the target PON service disk is at least one PON service disk except the any PON service disk, the synchronous data packet is analyzed to obtain the first IP address and the configuration message, a first sending port and a first MAC address corresponding to the first IP address are determined based on a first mapping relation, the configuration message is sent to the target PON service disk corresponding to the first MAC address through the first sending port, a message synchronous communication channel is opened through three-layer forwarding, hardware forwarding of the configuration message is realized, and efficiency and reliability of configuration synchronization among PON service disks are improved.

Inventors

  • CHEN ZHIXIN
  • HU LIMING
  • ZHANG BO

Assignees

  • 烽火通信科技股份有限公司

Dates

Publication Date
20260505
Application Date
20260116

Claims (10)

  1. 1. The configuration message synchronization method is characterized in that the configuration message synchronization method is applied to a core switching board, the core switching board is located in an optical line terminal OLT, the OLT comprises the core switching board and at least two PON service boards, and the configuration message synchronization method comprises: Receiving a synchronous data packet sent by any PON service disk, wherein the synchronous data packet comprises a configuration message of an ONU hung under the any PON service disk and a first IP address of a target PON service disk, and the target PON service disk is at least one PON service disk except the any PON service disk; Analyzing the synchronous data packet to obtain the first IP address and the configuration message, and determining a first sending port and a first MAC address corresponding to the first IP address based on a first mapping relation; And sending the configuration message to a target PON service disk corresponding to the first MAC address through the first sending port.
  2. 2. The configuration message synchronization method of claim 1, further comprising, before said receiving the synchronization packet sent from any PON service disc: if the online signal of any PON service disk is monitored, sending a handshake message to any PON service disk for the any PON service disk to receive the handshake message, wherein the handshake message comprises the MAC address of a core switching disk; Receiving handshake reply information fed back by any PON service disk based on the handshake message, and analyzing the handshake reply information to obtain a second IP address of any PON service disk; and sending PON protection configuration to any PON service disk based on the second IP address.
  3. 3. The method for synchronizing configuration messages according to claim 2, wherein the PON protection configuration comprises a slot number of a target PON service disc, so that the first IP address corresponding to the slot number of the target PON service disc included in the received PON protection configuration is determined by the any PON service disc according to the second mapping relationship.
  4. 4. The configuration message synchronization method of claim 3, wherein the core switching disk and the IP address of each PON service disk are determined according to the slot number to which they belong, and each IP address is bound with a corresponding three-layer logical communication interface, so that the core switching disk establishes a three-layer logical communication link between the IP address and the PON service disk for transmitting PON protection configuration.
  5. 5. The method for synchronizing configuration messages according to claim 4, further comprising, after said sending said configuration message to a target PON service disc corresponding to said first MAC address via said first sending port: receiving a confirmation data packet sent by a target PON service disk, wherein the confirmation data packet comprises the second IP address and a configuration synchronization confirmation message; analyzing the confirmation data packet to obtain the second IP address and configuration synchronization confirmation information, and determining a second sending port and a second MAC address corresponding to the second IP address based on a first mapping relation; and sending the configuration synchronization confirmation message to any PON service disk corresponding to the second MAC address through the second sending port.
  6. 6. The method for synchronizing configuration messages according to claim 2, wherein if an on-line signal of any PON service disc is monitored, sending a handshake message to the any PON service disc comprises: If the online signal of any PON service disk is monitored, determining a second MAC address of any PON service disk according to the online signal, and sending a handshake message to any PON service disk based on the second MAC address.
  7. 7. The configuration message synchronization method according to claim 1, wherein the configuration message synchronization method further comprises: if the online signal of the target PON service disk is monitored, sending a handshake message to the target PON service disk, so that the target PON service disk can receive the handshake message, wherein the handshake message comprises the MAC address of a core switching disk; receiving handshake reply information fed back by the target PON service disk based on the handshake message, and analyzing the handshake reply information to obtain a first IP address of the target PON service disk; and sending PON protection configuration to the target PON service disk based on the first IP address.
  8. 8. A core switching fabric, wherein the core switching fabric is located in an OLT, the OLT comprising the core switching fabric and at least two PON service fabrics, the core switching fabric comprising: The system comprises a receiving module, a receiving module and a sending module, wherein the receiving module is used for receiving a synchronous data packet sent by any PON service disk, the synchronous data packet comprises a configuration message of an ONU hung under the any PON service disk and a first IP address of a target PON service disk, and the target PON service disk is at least one PON service disk except the any PON service disk; The analyzing module is used for analyzing the synchronous data packet to obtain the first IP address and the configuration message, and determining a first sending port and a first MAC address corresponding to the first IP address based on a first mapping relation; And the sending module is used for sending the configuration message to a target PON service disk corresponding to the first MAC address through the first sending port.
  9. 9. A configuration message synchronization device, characterized in that it comprises a processor, a memory, and a configuration message synchronization program stored on the memory and executable by the processor, wherein the configuration message synchronization program, when executed by the processor, implements the steps of the configuration message synchronization method according to any of claims 1 to 7.
  10. 10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a configuration message synchronization program, wherein the configuration message synchronization program, when executed by a processor, implements the steps of the configuration message synchronization method according to any of claims 1 to 7.

Description

Configuration message synchronization method, core switching disk, device and readable storage medium Technical Field The present application relates to the field of PON protection technologies, and in particular, to a method for synchronizing configuration messages, a core switching disc, a device, and a computer readable storage medium. Background Along with the popularization of optical fiber communication, a passive optical network PON becomes an access network core, and a PON service disc of an optical line terminal OLT needs to implement real-time synchronization of configuration of an optical network unit ONU. In the related art, when the synchronous messages between PON service disks are limited by the speed limit of CPU messages sent by a core switching disk, a large amount of synchronous messages are retransmitted overtime, the synchronous efficiency is low, the pressure of the core switching disk and the PON service disks is high, partial message retransmission is lost overtime, and finally ONU service cannot be recovered. Disclosure of Invention The application provides a configuration message synchronization method, a core switching 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. In a first aspect, an embodiment of the present application provides a configuration message synchronization method, where the configuration message synchronization method is applied to a core switching disc, where the core switching disc is located in an OLT, and the OLT includes the core switching disc and at least two PON service discs, and the configuration message synchronization method includes: Receiving a synchronous data packet sent by any PON service disk, wherein the synchronous data packet comprises a configuration message of an ONU hung under the any PON service disk and a first IP address of a target PON service disk, and the target PON service disk is at least one PON service disk except the any PON service disk; Analyzing the synchronous data packet to obtain the first IP address and the configuration message, and determining a first sending port and a first MAC address corresponding to the first IP address based on a first mapping relation; And sending the configuration message to a target PON service disk corresponding to the first MAC address through the first sending port. With reference to the first aspect, in one implementation manner, before the receiving the synchronization data packet sent from any PON service disc, the method further includes: if the online signal of any PON service disk is monitored, sending a handshake message to any PON service disk for the any PON service disk to receive the handshake message, wherein the handshake message comprises the MAC address of a core switching disk; Receiving handshake reply information fed back by any PON service disk based on the handshake message, and analyzing the handshake reply information to obtain a second IP address of any PON service disk; and sending PON protection configuration to any PON service disk based on the second IP address. With reference to the first aspect, in one implementation manner, the PON protection configuration includes a slot number of a target PON service disc, so that the any PON service disc determines, according to the second mapping relationship, a first IP address corresponding to the slot number of the target PON service disc included in the received PON protection configuration. With reference to the first aspect, in one implementation manner, the core switching disc and the IP address of each PON service disc are determined according to the slot number to which the core switching disc belongs, and each IP address is bound with a corresponding three-layer logical communication interface, so that the core switching disc establishes a three-layer logical communication link between the IP address and the PON service disc, and is used for sending PON protection configuration. With reference to the first aspect, in one implementation manner, after the sending, by the first sending port, the configuration message to the target PON service disc corresponding to the first MAC address further includes: receiving a confirmation data packet sent by a target PON service disk, wherein the confirmation data packet comprises the second IP address and a configuration synchronization confirmation message; analyzing the confirmation data packet to obtain the second IP address and configuration synchronization confirmation information, and determining a second sending port and a second MAC address corresponding to the second IP address based on a first mapping relation; and sending the configuration synchronization confirmation message to any PON service disk corresponding to the second MAC address through the second sending port. With reference to the first aspect, in an implementation ma