A dual-homing PON protection system and method based on MQTT protocol
The introduction of publish and subscription modes in dual-home PON protection technology through the MQTT protocol has solved the problems of cumbersome configuration and device model limitation in the existing technology, achieved more efficient system scalability and fault location, and improved maintenance efficiency.
Patent Information
- Application Number
- CN202410624516.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-05-20
AI Technical Summary
The existing dual-attribute PON protection technology is cumbersome in the establishment stage, and the equipment model is limited, so it cannot flexibly adapt to different models of equipment, which is difficult to diagnose faults, affecting system reliability and maintenance efficiency.
The MQTT protocol is used to realize the change of point-to-point communication structure, and the publish and subscribe mode is performed through the MQTT protocol on the cloud server, simplifying the use of dual-home PON protection functions, supporting multiple devices to cross-build multiple protection groups, and unifying the communication methods of different device models. .
It simplifies user configuration steps, improves the scalability and versatility of the system, supports the construction of dual-home PON protection groups for multiple devices, simplifies fault location and improves maintenance efficiency.
Smart Images

Figure CN118474580B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical communication technology, and more specifically, to a dual-homing PON protection system and method based on the MQTT protocol. Background Art
[0002] PON protection technology is a protection mechanism for passive optical network (PON) systems, which aims to improve the reliability and stability of the network. In traditional PON networks, fiber optic links may fail due to reasons such as failures, resulting in communication interruption or quality degradation. In order to cope with this situation, PON protection technology came into being.
[0003] PON protection technology is divided into two types according to the usage scenario: single-homing and dual-homing. In the single-homing scenario, two PON access ports on an OLT (Optical Line Termina) are added to a protection group; in the dual-homing scenario, two PON access ports on two OLTs are added to a protection group.
[0004] The existing dual-homing PON protection technology has the following disadvantages:
[0005] During the dual-home PON protection establishment phase, it is necessary to manually specify the peer IP and port information in the primary and backup OLTs respectively. If the IP of one of the devices is changed, the protection group information of the other end needs to be reconfigured to reconnect the primary and backup devices. The configuration is cumbersome and not conducive to rapid deployment and maintenance. The existing solution has restrictions on device models and cannot flexibly adapt to different models of devices, which limits the scalability and versatility of the system. It can only form a dual-home PON protection group with the same device, and it is impossible to build a scenario in which one primary OLT and multiple backup OLTs protect different PON ports respectively. Under the existing technology, fault diagnosis and positioning are difficult. Once a fault occurs and the device cannot communicate, it is difficult to accurately determine which device has failed, affecting the reliability and maintenance efficiency of the system.
[0006] To this end, in combination with the above requirements and the defects of the prior art, the present application proposes a dual-homing PON protection system and method based on the MQTT protocol. Summary of the invention
[0007] The present invention provides a dual-homing PON protection system and method based on the MQTT protocol. By introducing the MQTT protocol, the point-to-point communication structure of the existing implementation scheme can be changed, the use of the dual-homing PON protection function can be simplified, the use scenarios can be enriched, and the use experience and the reliability and maintenance efficiency of the functional system can be improved.
[0008] The primary purpose of the present invention is to solve the above technical problems. The technical solution of the present invention is as follows:
[0009] A first aspect of the present invention provides a dual-home PON protection system based on the MQTT protocol, comprising: a main optical line terminal (Optical Line Terminal, OLT), a backup optical line terminal and a cloud server; the main optical line terminal and the backup optical line terminal are both configured with a dual-home PON (Passive Optical Network) protection function, and the cloud server is equipped with an MQTT (Message Queueing Telemetry Transport) protocol; the main optical line terminal and the backup optical line terminal both include a plurality of PON ports, and the PON ports of the main optical line terminal and the backup optical line terminal are interconnected to form a dual-home PON protection group; the main optical line terminal and the backup optical line terminal are both connected to the cloud server.
[0010] Furthermore, the main optical fiber line terminal and the backup optical fiber line terminal are connected to the optical network unit (ONU) through a splitter, and the dual-home PON protection function includes: connection establishment, configuration synchronization, main-backup switching and connection release.
[0011] A second aspect of the present invention provides a dual-homing PON protection method based on the MQTT protocol, the method comprising:
[0012] S1. After the dual-homing PON protection function is enabled for the mutually connected main optical fiber line terminal and the backup optical fiber line terminal, the main optical fiber line terminal and the backup optical fiber line terminal are set to the same protection group description, and the membership of the PON port is set to complete the establishment of the dual-homing PON protection group.
[0013] S2. Synchronize the configuration of the dual-homed PON protection group by publishing and subscribing to the second type of topic.
[0014] S3, the main optical fiber line terminal and the backup optical fiber line terminal all subscribe to the third type of topic, and change the role and PON port status of the dual-home PON protection according to the message reception situation when the main and backup switching is triggered.
[0015] S4. The main optical fiber line terminal and the backup optical fiber line terminal subscribe to the fourth type of topic. After the fourth type of topic is published at either end and received by the other end, the dual-homing PON protection group is released.
[0016] Furthermore, the member identity is a working party or a protecting party, wherein the main optical fiber line terminal is a working party, and its PON port is a working PON, which is a passive optical network port in a working state; the backup optical fiber line terminal is a protecting party, and its PON port is a protecting PON, which is a passive optical network port not in a working state; and the dual-belonging PON protection environment is Type B or Type C or Type D.
[0017] Furthermore, the MQTT protocol carried on the cloud server adopts a mode of publishing and subscribing messages, and distinguishes different messages by topics. The topic setting adopted by the dual-homed PON protection function is: PP_(topic description) / (subscription or publication topic type) / (topic pointing), where:
[0018] The topic description indicates the description of the passive optical network protection group. The types of topics to be subscribed or published include the first type connect, the second type sync-config, the third type switchover, and the fourth type disconnect. The topic pointing includes to_work and to_protect, which respectively indicate pointing to the working party and pointing to the protecting party. PP is the abbreviation of PON protection.
[0019] Furthermore, the specific process of step S1 is: after the standby optical fiber line terminal enables the dual-belonging passive optical network protection group, subscribe to the first type of topic, determine whether a message from the first type of topic is received, if so, execute the next step, otherwise, continue to wait for receiving a message from the main optical fiber line terminal; determine whether the dual-belonging passive optical network protection group is matched successfully, if so, update the dual-belonging passive optical network protection group information, and publish the message of the first type of topic, otherwise, publish the message of the fourth type of topic.
[0020] After the main optical fiber line terminal enables the dual-home passive optical network protection group, it publishes the first type of topic, subscribes to the first type of topic and the fourth type of topic, waits to receive messages of the first type of topic or the fourth type of topic, and determines whether the received message is a message of the first type of topic. If so, update the dual-home passive optical network protection group information, otherwise, end.
[0021] Furthermore, step S2 is to synchronize the configuration of the dual-belonging PON protection group, and the specific process is: the standby optical fiber line terminal subscribes to the second type of topic, determines whether a message from the second type of topic is received, and if so, updates the configuration of the passive optical network port in working state to the local passive optical network port that is not in working state, otherwise, waits to receive the message from the main optical fiber line terminal; the main optical fiber line terminal publishes the second type of topic, and the message content is the configuration of the protected passive optical network port.
[0022] Furthermore, the specific process of step S3 is as follows: both the main optical fiber line terminal and the backup optical fiber line terminal subscribe to the third type of topic. When one of the optical fiber line terminals actively or passively triggers the master-slave switching, it publishes and subscribes to the message of the third type of topic, and waits to receive the master-slave switching message from the other optical fiber line terminal; if the reception is successful, the role of the dual-belonging passive optical network protection and the passive optical network port status will be changed; if the waiting for reception times out, if the current optical fiber line terminal is the backup optical fiber line terminal, the role of the dual-belonging passive optical network protection will be changed, and the passive optical network port status will be enabled, and if the optical fiber line terminal is the main optical fiber line terminal, no processing will be performed; when the other optical fiber line terminal receives the message of the third type of topic as the receiving end, the passive optical network protection role will be changed and the passive optical network port status will be enabled or disabled, and then a message reply of the third type of topic will be published.
[0023] Furthermore, the specific process of step S4 is as follows: the main optical fiber line terminal and the backup optical fiber line terminal both subscribe to the fourth type of topic, wherein when any terminal enables the dual-home passive optical network protection group as a trigger, the connection status in the dual-home passive optical network protection group information is updated to be disconnected, and a message of the fourth type of topic is published; when the other terminal receives the message of the fourth type of topic as a receiver, the connection status in the dual-home passive optical network protection group information is updated to be disconnected, and the dual-home passive optical network protection group is disabled to complete the release of the dual-home passive optical network protection group connection.
[0024] The third aspect of the present invention provides a structure in which multiple optical fiber line terminals are used to build multiple dual-home passive optical network protection groups, including: multiple optical fiber line terminals and a cloud server; each of the optical fiber line terminals is connected to the cloud server, and the optical fiber line terminals are connected via PON ports; wherein the two interconnected PON ports are respectively set as work PON or protect PON and are connected to the same dual-home PON protection group.
[0025] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:
[0026] The present invention provides a dual-home PON protection system and method based on the MQTT protocol. The MQTT protocol is used to optimize and improve the dual-home PON protection scheme, which can simplify the steps and processes of user configuration, and no longer needs to configure the IP address and port information of the opposite optical fiber line terminal; the communication mode between different equipment models of optical fiber line terminals is unified, and the structure of multiple dual-home PON protection groups is supported by multiple optical fiber line terminals cross-building, thereby improving the scalability and versatility. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 The present invention is a schematic diagram of a dual-homing PON protection system based on the MQTT protocol.
[0028] Figure 2 The present invention is a flow chart of a dual-homing PON protection method based on the MQTT protocol.
[0029] Figure 3 The present invention is a flowchart of establishing a dual-homed PON protection group connection for a standby optical fiber line terminal in an embodiment of the present invention.
[0030] Figure 4 The present invention is a flowchart of establishing a dual-homed PON protection group connection at a main optical fiber line terminal in an embodiment of the present invention.
[0031] Figure 5 The present invention is a flowchart of performing dual-homed PON protection group configuration synchronization on a standby optical fiber line terminal in an embodiment of the present invention.
[0032] Figure 6 The present invention is a flowchart of performing dual-homed PON protection group configuration synchronization at a main optical fiber line terminal in an embodiment of the present invention.
[0033] Figure 7 The present invention is a flowchart of a triggering party performing active / standby switching of a dual-homed PON protection group in an embodiment of the present invention.
[0034] Figure 8 The present invention is a flowchart of a receiver performing active / standby switching of a dual-homed PON protection group in an embodiment of the present invention.
[0035] Fig. 9 The present invention is a flowchart of a triggering party releasing the active / standby connection of a dual-homed PON protection group in an embodiment of the present invention.
[0036] Fig.10 The present invention is a flowchart of a receiving party releasing a primary-backup connection of a dual-homed PON protection group in an embodiment of the present invention.
[0037] Fig.11 A schematic diagram of an embodiment of a structure in which a multi-fiber line terminal of the present invention builds multiple dual-home passive optical network protection groups. DETAILED DESCRIPTION
[0038] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0039] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0040] Before describing the specific embodiments, the technical terms involved in the present invention are explained first, specifically:
[0041] OLT (Optical Line Terminal) is a convergence device placed at the central office to terminate the PON protocol.
[0042] MQTT originally stands for Message Queueing Telemetry Transport, and MQTT is the most commonly used messaging protocol for IoT. The protocol is a set of rules that define how IoT devices publish and subscribe to data over the Internet. MQTT is used for messaging and data exchange between IoT and Industrial IoT devices such as embedded devices, sensors, etc. The protocol is event-driven and uses a publish / subscribe model to connect devices. The sender (publisher) and the receiver (subscriber) communicate through topics and are decoupled from each other. The connection between them is handled by the MQTT broker. The MQTT broker filters all incoming messages and distributes them correctly to the subscribers.
[0043] MQTT server, that is, MQTT server.
[0044] MQTT broker, that is, MQTT agent.
[0045] PON (Passive Optical Network), passive optical network, here refers to the PON port of the OLT device, which is used to access the optical fiber registered ONU (Optical Network Unit).
[0046] Work PON refers to the main PON port that is in operation.
[0047] Protect PON refers to the backup PON port that is not currently in working state.
[0048] Type B / C / D, namely Type B, Type C, and Type D, are classified according to the topology of the network architecture. The PON protection functions of OLT equipment are of the above three types.
[0049] ONU (Optical Network Unit): Fiber optic network unit, commonly known as optical modem.
[0050] Splitter: A beam splitter. The one in the picture is a two-way beam splitter.
[0051] Work port: Work port, the port responsible for work in the PON protection group. This port registers and manages the ONU.
[0052] Protect port: A protection port that acts as a standby port in a PON protection group. This port does not emit light or work, waiting to receive a switching signal.
[0053] PON port: PON port, in the figure, refers to the PON port on the ONU used to receive and send optical signals.
[0054] Work-side link: Work-side link. This link is in working state in the PON protection group.
[0055] Protect-side link: protection-side link. This link is in the protected state in the PON protection group.
[0056] Protection range: The ellipse formed by dotted lines in the figure encloses the scope of the PON protection object. That is, the working port of OLT1 and the protection port of OLT2 form a PON protection group. The PON protection performs configuration synchronization and active / standby switching within this protection range.
[0057] Example 1
[0058] like Figure 1 As shown, the present invention provides a dual-home PON protection system based on the MQTT protocol, including: a main optical line terminal (Optical Line Terminal, OLT), a backup optical line terminal and a cloud server; the main optical line terminal and the backup optical line terminal are both configured with a dual-home PON (Passive Optical Network) protection function, and the cloud server is equipped with an MQTT (Message Queueing Telemetry Transport) protocol; the main optical line terminal and the backup optical line terminal both include a plurality of PON ports, and the PON ports of the main optical line terminal and the backup optical line terminal are interconnected to form a dual-home PON protection group; the main optical line terminal and the backup optical line terminal are both connected to the cloud server.
[0059] Furthermore, the main optical fiber line terminal and the backup optical fiber line terminal are connected to the optical network unit (ONU) in the dual-home PON protection group through a splitter, and the dual-home PON protection functions include: connection establishment, configuration synchronization, main-backup switching and connection release.
[0060] Example 2
[0061] Based on the above embodiment 1, combined with Figure 2-Figure 10 This embodiment describes in detail the second aspect of the present invention, a dual-homing PON protection method based on the MQTT protocol.
[0062] like Figure 2 As shown, the method includes:
[0063] S1. After the dual-homing PON protection function is enabled for the mutually connected main optical fiber line terminal and the backup optical fiber line terminal, the main optical fiber line terminal and the backup optical fiber line terminal are set to the same protection group description, and the membership of the PON port is set to complete the establishment of the dual-homing PON protection group.
[0064] S2. Synchronize the configuration of the dual-homed PON protection group by publishing and subscribing to sync-config type topics.
[0065] S3, the primary optical fiber line terminal and the backup optical fiber line terminal all subscribe to the switchover type topic, and change the dual-homed PON protection role and PON port status according to the message reception situation when the primary and backup switching is triggered.
[0066] S4. The main optical fiber line terminal and the backup optical fiber line terminal subscribe to a disconnect type topic. After a disconnect type topic is published at either end and received by the other end, the dual-homing PON protection group is released.
[0067] Furthermore, the member identity is a work party or a protect party, wherein the main optical fiber line terminal is a work party, and its PON port is a work PON; the backup optical fiber line terminal is a protect party, and its PON port is a protect PON; and the dual-homed PON protection environment is Type B, Type C, or Type D.
[0068] Furthermore, the MQTT protocol carried on the cloud server adopts a mode of publishing and subscribing messages, and distinguishes different messages by topics. The topic setting adopted by the dual-homed PON protection function is: PP_(topic description) / (subscription or publication topic type) / (topic pointing), where:
[0069] The topic description indicates the description of the passive optical network protection group. The types of topics to be subscribed or published include the first type connect, the second type sync-config, the third type switchover, and the fourth type disconnect. The topic pointing includes to_work and to_protect, which respectively indicate pointing to the working party and pointing to the protecting party. PP is the abbreviation of PON protection.
[0070] In a specific embodiment, the subject setting used by the dual-homed PON protection function is: PP_(description) / (msg_type) / (direction), where:
[0071] description indicates the description of the PON protection group. msg_type includes the first type connect, the second type sync-config, the third type switchover, and the fourth type disconnect. direction includes to_work and to_protect. The direction is specified to avoid subscribing to the topic published by itself, and to avoid message processing errors when both the main optical fiber line terminal and the backup optical fiber line terminal subscribe to and publish the same topic.
[0072] In a specific embodiment, the topic subscribed by work pon is PP_(description) / (msg_type) / to_work, and the topic published is PP_(description) / (msg_type) / to_protect. The topic subscribed by protect pon is PP_(description) / (msg_type) / to_protect, and the topic published is PP_(description) / (msg_type) / to_work. According to the above technical features, even if the active and standby OLTs subscribe to and publish the same topic, there will be no message processing errors.
[0073] Furthermore, if Figure 3-Figure 4 As shown, the specific process of step S1 is: after the standby optical fiber line terminal enables the dual-home passive optical network protection group, subscribe to the first type of topic, determine whether a message from the first type of topic is received, if so, execute the next step, otherwise, continue to wait for receiving a message from the main optical fiber line terminal; determine whether the dual-home passive optical network protection group is matched successfully, if so, update the dual-home passive optical network protection group information, and publish the message of the first type of topic, otherwise, publish the message of the fourth type of topic.
[0074] After the main optical fiber line terminal enables the dual-home passive optical network protection group, it publishes the first type of topic, subscribes to the first type of topic and the fourth type of topic, waits to receive messages of the first type of topic or the fourth type of topic, and determines whether the received message is a message of the first type of topic. If so, update the dual-home passive optical network protection group information, otherwise, end.
[0075] In a specific embodiment, after the backup optical fiber line terminal enables the dual-homing PON protection group, it subscribes to a connect-type topic and waits to receive a connection request MQTT message from the main optical fiber line terminal; after the main optical fiber line terminal enables the dual-homing PON protection group, it publishes a connect-type topic, and a cloud server equipped with the MQTT protocol pushes the topic message to the backup optical fiber line terminal, the message content of which is the PON protection group information of the main optical fiber line terminal, and then the main optical fiber line terminal subscribes to connect-type and disconnect-type topics respectively, and waits to receive a connection reply from the backup optical fiber line terminal.
[0076] The backup optical fiber line terminal receives a message with the connect type topic from the main optical fiber line terminal, compares the dual-home PON protection group information at both ends of the main and backup, and if a match is successful, updates the peer information in the locally maintained dual-home PON protection group information, modifies the dual-home PON protection group connection status to connected, and publishes a message with the connect type topic; otherwise, publishes a disconnect type topic, and the message content is the reason for the match failure. The main optical fiber line terminal receives a message with the connect type topic from the backup optical fiber line terminal. Since the backup optical fiber line terminal has completed the information legitimacy match, it directly updates the peer information in the locally maintained dual-home PON protection group information, modifies the dual-home PON protection group connection status to connected, and the dual-home PON protection group successfully establishes a connection; if a message with the disconnect type topic is received from the backup optical fiber line terminal, the dual-home PON protection group fails to establish a connection.
[0077] Furthermore, if Figure 5-Figure 6 As shown, step S2 is to synchronize the configuration of the dual-belonging PON protection group, and the specific process is: the standby optical fiber line terminal subscribes to the second type of topic, determines whether a message from the second type of topic is received, and if so, updates the configuration of the passive optical network port in working state to the local passive optical network port that is not in working state, otherwise, waits to receive the message from the main optical fiber line terminal; the main optical fiber line terminal publishes the second type of topic, and the message content is the configuration of the protected passive optical network port.
[0078] In a specific embodiment, the backup optical fiber line terminal subscribes to a sync-config type topic and waits to receive a message from the main optical fiber line terminal; the main optical fiber line terminal publishes a sync-config type topic, and the message content is the protected PON port configuration; the backup optical fiber line terminal receives the configuration synchronization topic message from the main optical fiber line terminal and configures the work PON port to the local protect PON port.
[0079] Furthermore, if Figure 7-Figure 8 As shown, the specific process of step S3 is: both the main optical fiber line terminal and the backup optical fiber line terminal subscribe to the third type of topic, when one of the optical fiber line terminals actively or passively triggers the main and backup switching, publishes and subscribes to the message of the third type of topic, and waits to receive the main and backup switching message from the other optical fiber line terminal; if the reception is successful, the role of the dual-home passive optical network protection and the passive optical network port state will be changed; if the waiting for reception times out, if the current optical fiber line terminal is the backup optical fiber line terminal, the role of the dual-home passive optical network protection is changed, and the passive optical network port state is enabled, if the optical fiber line terminal is the main optical fiber line terminal, no processing is performed; when the other optical fiber line terminal receives the message of the third type of topic as the receiving end, the passive optical network protection role is changed and the passive optical network port state is enabled or disabled, and then a message reply of the third type of topic is published.
[0080] In a specific embodiment, both the main optical fiber line terminal and the backup optical fiber line terminal subscribe to a switchover type topic. When one of the optical fiber line terminals actively or passively triggers a master-slave switch, it publishes a message of the switchover type topic and waits to receive a master-slave switch message from the other optical fiber line terminal; if the reception is successful, the dual-home PON protection role and the PON port status are changed; if the waiting for reception times out, if the current optical fiber line terminal is a backup optical fiber line terminal, the dual-home PON protection role is changed, and the PON port status is enabled, and if the optical fiber line terminal is the main optical fiber line terminal, no processing is performed; after the other optical fiber line terminal receives the master-slave switch message, changes the PON protection role and enables or disables the PON port status, it publishes a master-slave switch message reply.
[0081] Furthermore, if Figure 9-10As shown, the specific process of step S4 is: the main optical fiber line terminal and the backup optical fiber line terminal both subscribe to the fourth type of topic, wherein when any terminal enables the dual-home passive optical network protection group as a trigger, the connection status in the dual-home passive optical network protection group information is updated to be unconnected, and a message of the fourth type of topic is published; when the other terminal receives the message of the fourth type of topic as a receiver, the connection status in the dual-home passive optical network protection group information is updated to be unconnected, and the dual-home passive optical network protection group is disabled, thereby completing the release of the dual-home passive optical network protection group connection.
[0082] In a specific embodiment, the main optical fiber line terminal and the backup optical fiber line terminal subscribe to a disconnect type topic, and when any of the terminals enables the dual-homing PON protection group, the connection status in the dual-homing PON protection group information is updated to be disconnected, and a message of the disconnect type topic is published; the optical fiber line terminal that receives the message of the disconnect type topic updates the connection status in the dual-homing PON protection group information to be disconnected, and disables the dual-homing PON protection group, thereby completing the release of the dual-homing PON protection group connection.
[0083] In a specific embodiment, this embodiment takes the configuration of Type B dual-homing PON protection function scenario as an example, and the topology is shown as follows: Figure 1 shown.
[0084] Configure the GPON Type B dual-homing protection group on the active and standby OLTs (olt_A and olt_B).
[0085] olt_A is the active OLT, and olt_B is the standby OLT.
[0086] The GPON service ports of both OLTs are pon 0 / 1.
[0087] The index of the dual-homing protection group is 1, and the protection group description is test_desc.
[0088] Here are the configuration steps:
[0089] Active OLT configuration:
[0090] / / Enter the PON protection group command line node with id 1
[0091] olt_1(config)#pon-protection group 1
[0092] / / Configure PON protection group description
[0093] olt_1(pon-protect-group:1)#description test_desc
[0094] / / Specify PON port (0 / 1) as the working port, i.e., the primary port. "olt_1" is the current host identifier; "(config)" indicates that the current command line is in the global configuration node; "pon-protection group 1" is the specific configuration command.
[0095] olt_1(pon-protect-group:1)#member pon 0 / 1role work
[0096] / / Configure the PON protection group mode to dual-homing mode
[0097] olt_1(pon-protect-group:1)#mode remote
[0098] / / Enable PON protection group
[0099] olt_1(pon-protect-group:1)#enable
[0100] Backup OLT configuration:
[0101] olt_2(config)#pon-protection group 1
[0102] olt_2(pon-protect-group:1)#description test_desc
[0103] olt_2(pon-protect-group:1)#member pon 0 / 1role protect
[0104] olt_2(pon-protect-group:1)#mode remote
[0105] olt_2(pon-protect-group:1)#enable
[0106] It should be noted that the dual-homing PON protection function implemented by introducing the communication method of the MQTT protocol has the following beneficial effects compared with the existing solutions:
[0107] Simplifies the steps and processes of user configuration. Users no longer need to configure the IP address and port information of the peer OLT, and avoid the situation where the dual-homed PON protection group cannot communicate after the OLT IP address is modified during use;
[0108] The active and standby OLTs are not restricted by device models. The MQTT protocol unifies the communication methods of different device models, configures the same dual-homing PON protection group description, and uses the same message parsing and processing methods to achieve dual-homing PON protection grouping that is not restricted by device models, improving scalability and versatility.
[0109] Supports diagnosis and location of dual-homed PON protection group member failures. When communication fails at either the primary or standby OLT due to an optical link or device failure, the existing solution cannot locate which OLT has failed due to point-to-point communication. The method proposed in this paper can use the MQTT heartbeat mechanism to accurately locate the faulty party, which is more conducive to the decision-making and execution of the primary and standby switching.
[0110] Example 3
[0111] like Fig.11 As shown, the present invention also provides a structure in which multiple optical fiber line terminals build multiple dual-home passive optical network protection groups, including: multiple optical fiber line terminals and a cloud server; each of the optical fiber line terminals is connected to the cloud server, and the optical fiber line terminals are connected through PON ports; wherein the two interconnected PON ports are respectively set as work PON or protect PON and connected to the same dual-home PON protection group.
[0112] In a specific embodiment, Fig.11 As shown, three OLTs are used, each of which has two PON ports, namely PON1 and PON2; the PON1 port of OLT1 is connected as the working PON with the PON1 port of OLT2 as the protect PON, forming a dual-home PON protection group 1. The PON2 port of OLT1 is connected as the working PON with the PON1 port of OLT3 as the protect PON, forming a dual-home PON protection group 2. The PON2 port of OLT2 is connected as the working PON with the PON2 port of OLT3 as the protect PON, forming a dual-home PON protection group 3. So far, the topological structure of multiple dual-home PON protection groups built by cross-connecting multiple OLTs is completed.
[0113] It can be seen that the present invention supports the structure of multiple dual-home PON protection groups cross-built by multiple OLTs. From the perspective of OLT, the existing solution can only specify the opposite device of one dual-home PON protection group because it needs to configure the opposite IP, so it supports at most two OLTs to protect multiple PON ports; and the MQTT protocol is used for dual-home PON protection communication, and the maximum number of dual-home PON protection groups built depends on the number of PON ports of the OLT.
[0114] In the embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium, and when the program is executed, the steps of the above method embodiments are executed; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media capable of storing program codes.
[0115] Alternatively, if the above-mentioned embodiments of the present invention are implemented in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media capable of storing program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
[0116] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. The icons describing the structural positional relationships in the accompanying drawings are only used for exemplary purposes and are not to be construed as limiting the present invention. For those of ordinary skill in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and is not possible to list all the embodiments here. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention shall be included in the scope of protection of the claims of the present invention.
Claims
1. A dual-homing PON protection system based on the MQTT protocol, characterized in that: The invention comprises: a main optical fiber line terminal, a backup optical fiber line terminal and a cloud server; the main optical fiber line terminal and the backup optical fiber line terminal are both configured with a dual-home passive optical network protection function, and the cloud server is equipped with a message queue telemetry transmission protocol; the main optical fiber line terminal and the backup optical fiber line terminal both include a plurality of passive optical network ports, and the passive optical network ports of the main optical fiber line terminal and the backup optical fiber line terminal are interconnected to form a dual-home passive optical network protection group; The main optical fiber line terminal and the backup optical fiber line terminal are both connected to the cloud server; the specific process of using the dual-homing PON protection system to perform the dual-homing PON protection method is as follows: S1. After the dual-home passive optical network protection function is enabled, the main optical fiber line terminal and the backup optical fiber line terminal are set to the same protection group description, and the membership of the passive optical network port is set to complete the establishment of the dual-home passive optical network protection group; specifically: after the backup optical fiber line terminal enables the dual-home passive optical network protection group, it subscribes to the first type of topic, determines whether a message from the first type of topic is received, if so, executes the next step, otherwise, continues to wait for receiving a message from the main optical fiber line terminal; determines whether the dual-home passive optical network protection group is matched successfully, if so, updates the dual-home passive optical network protection group information, and publishes a message of the first type of topic, otherwise, publishes a message of the fourth type of topic; After the main optical fiber line terminal enables the dual-homing passive optical network protection group, it publishes the first type of topic, subscribes to the first type of topic and the fourth type of topic, waits to receive a message of the first type of topic or the fourth type of topic, and determines whether the received message is a message of the first type of topic. If so, update the dual-homing passive optical network protection group information, otherwise, end; S2. Synchronize the configuration of the dual-homed passive optical network protection group by publishing and subscribing to the second type of topic; S3, the main optical fiber line terminal and the backup optical fiber line terminal both subscribe to the third type of topic, and change the role of the dual-homing passive optical network protection and the passive optical network port status according to the message reception situation when the main and backup switching is triggered; S4. The main optical fiber line terminal and the backup optical fiber line terminal subscribe to the fourth type of topic. After the fourth type of topic is published at either end and received by the other end, the dual-homing passive optical network protection group is released.
2. A dual-homing PON protection system based on the MQTT protocol according to claim 1, characterized in that: The main optical fiber line terminal and the backup optical fiber line terminal are connected to the optical fiber network unit through an optical splitter.
3. A dual-homing PON protection system based on the MQTT protocol according to claim 2, characterized in that: The member identity is a working party or a protecting party, wherein the main optical fiber line terminal is a working party, and its passive optical network port is a passive optical network port in a working state; the standby optical fiber line terminal is a protecting party, and its passive optical network port is a passive optical network port that is not in a working state; The dual-home passive optical network protection environment is Type B or Type C or Type D; the message queue telemetry transmission protocol carried by the cloud server adopts a publishing and subscription message mode, and distinguishes different messages by topic.
4. A dual-homing PON protection system based on the MQTT protocol according to claim 3, characterized in that: The topic setting adopted by the dual-homing passive optical network protection function is: PP_(topic description) / (subscription or publication topic type) / (topic pointing), where: The topic description indicates the description of the passive optical network protection group. The types of topics to be subscribed or published include the first type connect, the second type sync-config, the third type switchover, and the fourth type disconnect. The topic pointing includes to_work and to_protect, which respectively indicate pointing to the working party and pointing to the protecting party. PP is the abbreviation of PON protection.
5. A dual-homing PON protection system based on the MQTT protocol according to claim 4, characterized in that: The step S2 is to synchronize the configuration of the dual-homing passive optical network protection group, and the specific process is as follows: The standby optical fiber line terminal subscribes to the second type of topic, determines whether a message from the second type of topic is received, and if so, updates the configuration of the passive optical network port in working state to the local passive optical network port not in working state, otherwise, waits to receive a message from the main optical fiber line terminal; The main optical fiber line terminal publishes the second type of topic, and the message content is the protected passive optical network port configuration.
6. A dual-homing PON protection system based on the MQTT protocol according to claim 5, characterized in that: The specific process of step S3 is: Both the main optical fiber line terminal and the backup optical fiber line terminal subscribe to the third type of topic. When one of the optical fiber line terminals actively or passively triggers the main and backup switching, it publishes and subscribes to the message of the third type of topic, and waits to receive the main and backup switching message from the other optical fiber line terminal; if the reception is successful, the role of the dual-home passive optical network protection and the passive optical network port status will be changed; if the waiting for reception times out, if the current optical fiber line terminal is the backup optical fiber line terminal, the role of the dual-home passive optical network protection will be changed, and the passive optical network port status will be enabled. If the optical fiber line terminal is the main optical fiber line terminal, no processing will be performed; When another optical fiber line terminal receives the message of the third type of topic as a receiving end, it changes the passive optical network protection role and enables or disables the passive optical network port status, and then publishes a message reply of the third type of topic.
7. A dual-homing PON protection system based on the MQTT protocol according to claim 6, characterized in that: The specific process of step S4 is as follows: The main optical fiber line terminal and the backup optical fiber line terminal both subscribe to the fourth type of topic. When any of the terminals acts as a trigger to enable the dual-homing passive optical network protection group, the connection state in the dual-homing passive optical network protection group information is updated to be unconnected, and a message of the fourth type of topic is published; When another terminal as a receiver receives a message of the fourth type of topic, it updates the connection state in the dual-homing passive optical network protection group information to unconnected, and disables the dual-homing passive optical network protection group to complete the release of the dual-homing passive optical network protection group connection.
8. A structure of multiple dual-homing passive optical network protection groups built by a multi-fiber line terminal, characterized in that: The invention comprises: a plurality of optical fiber line terminals and a cloud server; each of the optical fiber line terminals is connected to the cloud server, and the optical fiber line terminals are connected through a passive optical network port; wherein the two mutually connected passive optical network ports are respectively set as a passive optical network port in a working state or a passive optical network port not in a working state and connected to the same dual-home passive optical network protection group; wherein the optical fiber line terminal comprises an optical fiber line terminal and a standby optical fiber line terminal, and the specific process of executing the dual-home PON protection method is as follows: S1. After the dual-home passive optical network protection function is enabled, the main optical fiber line terminal and the backup optical fiber line terminal are set to the same protection group description, and the membership of the passive optical network port is set to complete the establishment of the dual-home passive optical network protection group; specifically: after the backup optical fiber line terminal enables the dual-home passive optical network protection group, it subscribes to the first type of topic, determines whether a message from the first type of topic is received, if so, executes the next step, otherwise, continues to wait for receiving a message from the main optical fiber line terminal; determines whether the dual-home passive optical network protection group is matched successfully, if so, updates the dual-home passive optical network protection group information, and publishes a message of the first type of topic, otherwise, publishes a message of the fourth type of topic; After the main optical fiber line terminal enables the dual-homing passive optical network protection group, it publishes the first type of topic, subscribes to the first type of topic and the fourth type of topic, waits to receive a message of the first type of topic or the fourth type of topic, and determines whether the received message is a message of the first type of topic. If so, update the dual-homing passive optical network protection group information, otherwise, end; S2. Synchronize the configuration of the dual-homed passive optical network protection group by publishing and subscribing to the second type of topic; S3, the main optical fiber line terminal and the backup optical fiber line terminal both subscribe to the third type of topic, and change the role of the dual-homing passive optical network protection and the passive optical network port status according to the message reception situation when the main and backup switching is triggered; S4. The main optical fiber line terminal and the backup optical fiber line terminal subscribe to the fourth type of topic. After the fourth type of topic is published at either end and received by the other end, the dual-homing passive optical network protection group is released.
