A method and device for sensing ONU equipment management rights migration
By establishing a mapping relationship between the ONU device and the network connection in the OLT device and updating the mapping relationship in response to management permission migration, the problem that the OLT device cannot perceive the ONU device management permission migration leads to the error of uplink message forwarding, and the correct forwarding of uplink messages of the ONU device is achieved.
Patent Information
- Application Number
- CN202211265284.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-17
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2042-10-17
AI Technical Summary
In the prior art, OLT devices cannot perceive the migration of cloud controllers to ONU devices management permissions, resulting in an uplink message forwarding error.
The mapping relationship between the ONU device and the network connection is established through the OLT device, and when the management rights of the ONU device are migrated, the mapping relationship is updated so that the OLT device can correctly forward the uplink messages of the ONU device.
Ensure that uplink messages from ONU devices can be correctly forwarded to cloud controllers with administrative rights without making changes to ONU devices.
Smart Images

Figure CN115665598B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method and device for sensing the migration of management rights of an ONU device. Background Art
[0002] Traditional OLT (Optical Line Terminal) equipment consists of a main control board and multiple line cards, where the line card has multiple PON (Passive Optical Network) ports. Optical fibers are connected to the PON ports, and a certain number of ONUs (Optical Network Units) are connected through splitters. The ONUs are managed by the management module on the line card. The control plane and user plane are both on the OLT device, and the ONU service settings are performed directly on the OLT device. In the virtual OLT, the OLT control plane and user plane are separated, and the functional module of the OLT managing the ONU is moved to the cloud controller. The cloud controller establishes a connection with the OLT through a reliable network protocol and sends a series of management instructions to the ONU, and the OLT device is responsible for forwarding them to the ONU, thereby managing the ONU and configuring services.
[0003] In the virtual OLT scenario, there will be multiple cloud controllers that manage different numbers of ONUs under the OLT device. The cloud controller and the ONU are connected by an independent channel, which consists of two parts. The cloud controller and the OLT device establish a connection channel based on a reliable network protocol to transmit data. The OLT internally transmits data on the main control and line card through a message transparent tunnel, and finally connects to the ONU through optical fiber.
[0004] The ONU devices managed by the cloud controller are not completely fixed. The management rights of the ONU devices may be migrated from one cloud controller to another. The old cloud controller and the newly taken over cloud controller may be connected to the OLT device at the same time, and even other controllers are also connected. In the prior art, the OLT device and the ONU device are usually unable to perceive the migration of the management rights of the ONU device, resulting in the inability to correctly forward the uplink message actively sent by the ONU device.
[0005] In view of this, overcoming the defects of the prior art is an urgent problem to be solved in the field of this technology. Summary of the invention
[0006] The technical problem to be solved by the present invention is that in the prior art, the OLT device cannot perceive the migration of the management authority of the cloud controller to the ONU device, resulting in an error in forwarding an uplink message.
[0007] In a first aspect, the present invention provides a method for sensing ONU device management rights migration, comprising:
[0008] The OLT device establishes a mapping relationship between the ONU device and the corresponding network connection; wherein the corresponding network connection is a network connection between the corresponding cloud controller and the OLT device, and the corresponding cloud controller is a cloud controller having management rights of the ONU device;
[0009] The OLT device guides the forwarding of the uplink message of the ONU device according to the mapping relationship, so as to forward the uplink message to the corresponding cloud controller;
[0010] When the OLT device senses that the management authority of the ONU device has been migrated, the OLT device updates the mapping relationship to guide the forwarding of the uplink message of the ONU device according to the updated mapping relationship.
[0011] Preferably, the OLT device establishes a mapping relationship between the ONU device and the corresponding network connection, specifically including:
[0012] The OLT device receives a downlink message from the cloud controller; wherein the downlink message carries location information of a target ONU device;
[0013] The OLT device establishes a mapping relationship between the target ONU device and the network connection according to the location information and the network connection used when receiving the downlink message.
[0014] Preferably, the OLT device guides the forwarding of the uplink message of the ONU device according to the mapping relationship, specifically including:
[0015] The OLT device receives an uplink message from the ONU device;
[0016] The OLT device finds the network connection corresponding to the ONU device according to the mapping relationship, and forwards the uplink message to the corresponding cloud controller through the network connection.
[0017] Preferably, when the OLT device senses that the management authority of the ONU device has been migrated, updating the mapping relationship specifically includes:
[0018] When the new mapping relationship established by the OLT device according to the latest received downstream message is different from the old mapping relationship, the OLT device considers that the management authority of the target ONU device has been migrated; wherein the target ONU device is the ONU device corresponding to the downstream message;
[0019] The old mapping relationship is updated to a new mapping relationship, so as to guide the forwarding of the uplink message of the ONU device according to the new mapping relationship.
[0020] In a second aspect, the present invention further provides a method for perceiving the migration of management rights of an ONU device, which is implemented based on the method for perceiving the migration of management rights of an ONU device described in the first aspect, wherein the OLT device includes a main control disk and at least one line card, and the mapping relationship is established on the line card of the OLT device, specifically including:
[0021] The main control disk receives the downlink message from the cloud controller through the network connection, and parses the downlink message to obtain the location information of the target ONU device;
[0022] The main control disk reassembles the downlink message into a first message, carries the identification number of the network connection in the first message, and sends the first message to the corresponding target line card;
[0023] The target line card establishes a mapping relationship between the target ONU device and the network connection on the target line card according to the first message.
[0024] Preferably, the target line card establishes a mapping relationship between the target ONU device and the network connection on the target line card according to the first message, specifically including:
[0025] The target line card parses the first message, and obtains the identification number of the network connection and the location information of the target ONU device from the first message;
[0026] According to the location information of the target ONU device, find the device number of the target ONU device;
[0027] A mapping relationship between the device number of the target ONU device and the identification number of the network connection is established on the target line card.
[0028] Preferably, the method further comprises:
[0029] The target line card further parses the first message to obtain a downlink message sent by the cloud controller;
[0030] And according to the location information of the target ONU device, the corresponding target PON port is found, and the downlink message is forwarded to the target ONU device through the target PON port.
[0031] Preferably, the OLT device guides the forwarding of the uplink message of the ONU device according to the mapping relationship, specifically including:
[0032] The line card receives the uplink message, and searches for a corresponding network connection number from the mapping relationship according to the ONU device;
[0033] The line card generates a second message according to the uplink message and the flag, and forwards the second message to the main control board;
[0034] The main control disk parses the second message, obtains the flag number from the second message, and generates an uplink message according to the uplink message in the second message;
[0035] The main control disk forwards the uplink message to the corresponding cloud controller through the network connection corresponding to the identification number.
[0036] Preferably, when the OLT device senses that the management authority of the ONU device has been migrated, updating the mapping relationship specifically includes:
[0037] When the new mapping relationship established by the line card according to the latest received first message is different from the old mapping relationship, the line card considers that the management authority of the target ONU device has been migrated; wherein the target ONU device is the ONU device corresponding to the downlink message;
[0038] The line card updates the old mapping relationship to a new mapping relationship, so that the OLT device guides the forwarding of the uplink message of the ONU device according to the new mapping relationship.
[0039] In a third aspect, the present invention provides a system for sensing the migration of management rights of an ONU device, wherein the system is used to implement the method for sensing the migration of management rights of an ONU device described in the first aspect or the second aspect.
[0040] In a fourth aspect, the present invention further provides a device for sensing the migration of management rights of an ONU device, which is used to implement the method for sensing the migration of management rights of an ONU device described in the first aspect, and the device includes:
[0041] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the processor to execute the method for perceiving the migration of management rights of an ONU device as described in the first aspect.
[0042] In a fourth aspect, the present invention further provides a non-volatile computer storage medium, wherein the computer storage medium stores computer executable instructions, which are executed by one or more processors to complete the method for perceiving the migration of management rights of an ONU device as described in the first aspect.
[0043] The present invention establishes a mapping relationship between an ONU device and a network connection through an OLT device, and updates the mapping relationship when sensing that the management right of the ONU device has been migrated, so that the OLT device can correspond the ONU device to a cloud controller having the management right of the ONU device, thereby ensuring the correct forwarding of the ONU device's uplink message without making any changes to the ONU device. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0045] Figure 1 It is a flow chart of a first method for perceiving migration of management rights of an ONU device provided by an embodiment of the present invention;
[0046] Figure 2 It is a flow chart of establishing a mapping relationship between an ONU device and a corresponding network connection in a first method for perceiving migration of ONU device management rights provided by an embodiment of the present invention;
[0047] Figure 3 It is a schematic diagram of a process of guiding the forwarding of an uplink message of an ONU device in a first method of perceiving the migration of management rights of an ONU device provided by an embodiment of the present invention;
[0048] Figure 4 It is a flow chart of establishing a mapping relationship between an ONU device and a corresponding network connection according to a downlink message in a second method for perceiving migration of management rights of an ONU device provided by an embodiment of the present invention;
[0049] Figure 5 It is a flow chart of a line card establishing a mapping relationship between a target ONU device and the network connection in a second method for perceiving migration of management rights of an ONU device provided by an embodiment of the present invention;
[0050] Figure 6 It is a flow chart of sending a downlink message to an ONU device in a second method for perceiving migration of management rights of an ONU device provided by an embodiment of the present invention;
[0051] Figure 7 It is a flow chart of guiding the forwarding of an uplink message of an ONU device in a second method for perceiving migration of management rights of an ONU device provided by an embodiment of the present invention;
[0052] Figure 8It is a schematic diagram of a scenario in which a method for perceiving migration of management rights of an ONU device provided by an embodiment of the present invention is applied;
[0053] Fig. 9 It is a schematic diagram of a processing flow of a main control disk in an application scenario of a method for perceiving migration of management rights of an ONU device provided by an embodiment of the present invention;
[0054] Fig.10 It is a schematic diagram of the interaction of various modules in a main control disk in an application scenario of a method for perceiving migration of management rights of an ONU device provided by an embodiment of the present invention;
[0055] Fig.11 It is a schematic diagram of a processing flow of a line card in an application scenario of a method for perceiving migration of ONU device management rights provided by an embodiment of the present invention;
[0056] Fig.12 It is a schematic diagram of the interaction of various modules in a line card in an application scenario of a method for perceiving migration of management rights of an ONU device provided by an embodiment of the present invention;
[0057] Fig.13 It is a flow chart of sensing the migration of ONU management rights in an application scenario of a method for sensing the migration of ONU device management rights provided by an embodiment of the present invention;
[0058] Fig.14 It is a schematic diagram of the interaction of various modules when perceiving the migration of ONU management rights in an application scenario of a method for perceiving the migration of ONU device management rights provided by an embodiment of the present invention;
[0059] Fig.15 This is a schematic diagram of the architecture of a first system for perceiving ONU device management rights migration provided by an embodiment of the present invention;
[0060] Fig.16 It is a schematic diagram of the architecture of a second method for perceiving migration of ONU device management rights provided by an embodiment of the present invention;
[0061] Fig.17 The present invention is a schematic diagram of the architecture of an apparatus for sensing ONU device management rights migration provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0062] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0063] In the description of the present invention, the terms "inside", "outside", "longitudinal", "lateral", "upper", "lower", "top", "bottom" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings. They are only for the convenience of describing the present invention and do not require that the present invention must be constructed and operated in a specific orientation. Therefore, they should not be understood as limitations on the present invention.
[0064] In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0065] Embodiment 1:
[0066] Embodiment 1 of the present invention provides a method for sensing the migration of ONU device management rights, such as Figure 1 As shown, including:
[0067] In step 201, the OLT device establishes a mapping relationship between the ONU device and the corresponding network connection; wherein the corresponding network connection is a network connection between a corresponding cloud controller and the OLT device, and the corresponding cloud controller is a cloud controller having management rights for the ONU device.
[0068] Among them, a network connection based on a reliable transmission protocol is established between the cloud controller and the OLT device, so that the two can perceive the on and off status of the network connection through the reliable transmission protocol. An optional implementation method of the network connection based on the reliable transmission protocol is a gRPC (Google Remote Procedure Call) connection based on the TCP protocol.
[0069] A cloud controller can manage one or more ONU devices, that is, a network connection can establish a mapping relationship with multiple ONU devices.
[0070] In step 202, the OLT device instructs the forwarding of the uplink message of the ONU device according to the mapping relationship, so as to forward the uplink message to the corresponding cloud controller;
[0071] In step 203, when the OLT device senses that the management authority of the ONU device has been migrated, the OLT device updates the mapping relationship to guide the forwarding of the uplink message of the ONU device according to the updated mapping relationship.
[0072] This embodiment establishes a mapping relationship between the ONU device and the network connection through the OLT device, and updates the mapping relationship when it senses that the management rights of the ONU device have been transferred, so that the OLT device can correspond the ONU device to the cloud controller with the management rights of the ONU device, thereby ensuring the correct forwarding of the ONU device's uplink messages without making changes to the ONU device.
[0073] This embodiment also provides a specific implementation of establishing a mapping relationship, that is, the OLT device establishes a mapping relationship between the ONU device and the corresponding network connection, such as Figure 2 As shown, specifically including:
[0074] In step 301, the OLT device receives a downlink message from the cloud controller; wherein the downlink message carries location information of a target ONU device.
[0075] In step 302, the OLT device establishes a mapping relationship between the target ONU device and the network connection according to the location information and the network connection used when receiving the downlink message.
[0076] As an optional implementation, when a network connection based on a reliable transmission protocol is successfully established between the cloud server and the OLT device, the OLT device senses that the connection is successfully established from the connection protocol server and assigns a globally unique identification number to the network connection. The identification number can be unique in the OLT device, or it can be unique in a global environment that includes all OLT devices. The identification number can be custom assigned according to a preset allocation rule. In this case, it can be managed by establishing a mapping table between the network connection and the identification number in the OLT device, or it can be obtained based on some inherent properties of the network connection. The mapping relationship can be expressed as a mapping relationship between the location information of the target ONU device and the identification number of the network connection.
[0077] The downlink message is a message used by the cloud controller to send a message to the ONU device, which also carries a downlink message. The location information may be an ID number of the ONU device, and the corresponding ONU device can be located through the location information.
[0078] After the mapping relationship is generated, this embodiment further provides a specific implementation of guiding the forwarding of the uplink message of the ONU device, that is, the OLT device guides the forwarding of the uplink message of the ONU device according to the mapping relationship, such as Figure 3 As shown, specifically including:
[0079] In step 401, the OLT device receives an uplink message from the ONU device.
[0080] In step 402, the OLT device finds the network connection corresponding to the ONU device according to the mapping relationship, and forwards the uplink message to the corresponding cloud controller through the network connection.
[0081] In actual use, there are usually two situations in which management permissions are transferred:
[0082] The first case: When the cloud controller has equipment failure or network failure, resulting in long-term disconnection, such as when the cloud management platform detects that the connection between cloud controller-1 and the OLT device is abnormal and cannot be restored, and there is another cloud controller-2 that can connect to the OLT device normally and meets the takeover conditions, the cloud management platform will re-plan the ONU in cloud controller-1 to controller-2 for management. After obtaining management authority, controller-2 will re-establish communication with the ONU.
[0083] The second situation: due to management needs, the old cloud controller needs to be shut down, and the cloud management platform will also migrate all ONUs to the new controller. The cloud management platform is located on the upper layer of the cloud controller in terms of architecture. The platform is a visualization platform for managing device modules such as OLT devices and cloud controllers, and planning the ONU devices managed by the cloud controller.
[0084] In both cases, the cloud controller that newly takes over the ONU device will send a downlink message to the ONU device. In combination with the above embodiments, there is the following preferred implementation, that is, when the OLT device senses that the management authority of the ONU device has been migrated, it updates the mapping relationship, specifically including:
[0085] When the new mapping relationship established by the OLT device according to the latest received downstream message is different from the old mapping relationship, the OLT device considers that the management authority of the target ONU device has been migrated; wherein the target ONU device is the ONU device corresponding to the downstream message.
[0086] The old mapping relationship is updated to a new mapping relationship, so as to guide the forwarding of the uplink message of the ONU device according to the new mapping relationship.
[0087] Among them, as an optional implementation method, a mapping table for storing mapping relationships is established in the OLT device. Whenever a new mapping relationship is obtained according to a downlink message, the mapping table is searched to see whether there is an old mapping relationship that matches the new mapping relationship. The match specifically refers to: the ONU device in the new mapping relationship is consistent with the ONU device in the old mapping relationship. If a matching old mapping relationship is found and the new mapping relationship is different from the old mapping relationship, the mapping table is updated and the old mapping relationship is updated to the new mapping relationship. If a matching old mapping relationship cannot be found, the new mapping relationship is added to the mapping table (this situation usually occurs when the system is initialized, that is, the mapping relationship is directly established).
[0088] Embodiment 2:
[0089] In actual application scenarios, there are two types of OLT devices. In the first type of OLT device, the main control disk and the line card are unified, and the two share resources without distinguishing them. Embodiment 1 is applicable to this type of OLT device. In the second type of OLT device, the OLT device includes a main control disk and at least one line card, and the resources of the main control disk and the resources of the line card are independent of each other. For this type of OLT device, the present invention also provides a method for perceiving the migration of ONU device management rights, which is implemented based on the method for perceiving the migration of ONU device management rights described in Embodiment 1, and in the method, the mapping relationship is established on the line card of the OLT device, such as Figure 4 As shown, the method includes:
[0090] In step 501, the main control disk receives a downlink message from the cloud controller through the network connection, and parses the downlink message to obtain the location information of the target ONU device.
[0091] In step 502, the main control disk reassembles the downlink message into a first message, carries the identification number of the network connection in the first message, and sends the first message to the corresponding target line card.
[0092] In step 503, the target line card establishes a mapping relationship between the target ONU device and the network connection on the target line card according to the first message.
[0093] Each line card also includes one or more PON ports, and the location information at least includes the ID number of the target ONU device, the line card slot number of the target line card corresponding to the target ONU device, and the port number of the PON port corresponding to the target ONU device. The line card slot number is used to indicate which line card the ONU device is hanging on, so as to distinguish different line cards; the PON port number is used to indicate which PON port the ONU device is hanging on, so as to distinguish PON ports belonging to the same line card; the ID number of the ONU device is used to distinguish specific ONU devices, so as to distinguish ONU devices belonging to the same OLT device or the same PON port. The corresponding target line card can be obtained according to the line card slot number.
[0094] The purpose of the reassembly is to carry the identification number of the network connection in the first message for establishing a mapping relationship. Therefore, any assembly method that can assemble the identification number into the message should be included in the protection scope of the present invention, such as taking out the downlink message and the location information of the ONU device in the first message, and assembling the first message by the identification number corresponding to the network connection, the location information of the ONU device and the downlink message.
[0095] Since the protocol of the network connection has been separated from the process of sending the first message to the target line card, the first message contains the identification number of the network connection and the location information of the ONU device, but does not need to include the protocol header of the network connection. Corresponding to the scenario where the downlink message is also used for message sending, the first message also includes the downlink message to be sent.
[0096] The mapping relationship can be expressed as a correspondence between the identification number of the network connection and the location information of the target ONU device, or as a correspondence between the identification number and part of the information in the location information, such as the correspondence between the identification number and the ID number of the ONU device.
[0097] The ID number of the ONU device should be unique. The ID number of the ONU device hanging under each OLT device is globally unique. The ID number of the ONU device hanging under each line card is globally unique. Or the ID number of the ONU device hanging under each PON port is globally unique. The mapping relationship has different forms of expression for different situations.
[0098] For example, in an optional embodiment, a mapping table is established on each line card to store the mapping relationship. Alternatively, multiple mapping tables are stored in the line card, and each PON port corresponds to a mapping table. For example, in the line card, one PON port corresponds to one processing instance, and each processing instance stores a mapping table.
[0099] When a mapping table is established on each line card, for each line card, if the ID number of the ONU device hanging under each line card is globally unique or the ID number of the ONU device hanging under each OLT device is globally unique, then the mapping relationship can be a mapping relationship between the ID number of the ONU device and the identification number of the network connection. For each line card, if the ID number of the ONU device hanging under each line card is not globally unique, but the ID number of the ONU device hanging under each PON port is globally unique, then the mapping relationship is a mapping relationship between the PON port number corresponding to the ONU device, the ID number of the ONU device and the identification number of the network connection.
[0100] When each PON port corresponds to a mapping table, the mapping relationship is a mapping relationship between the ID number of the ONU device and the identification number of the network connection.
[0101] In other embodiments, the mapping relationship is stored in a main control disk.
[0102] For each OLT device, if the ID number of the ONU device attached to each OLT device is globally unique (globally refers to all ONUs attached to the OLT device), the mapping relationship is the mapping relationship between the ID number of the ONU device and the identification number of the network connection.
[0103] For each OLT device, if the ID number of the ONU device hanging under each OLT device is not globally unique, but the ID number of the ONU device hanging under each line card is globally unique, then the mapping relationship is the mapping relationship between the line card slot number corresponding to the ONU device, the ID number of the ONU device and the identification number of the network connection.
[0104] For each OLT device, if the ID number of the ONU device hanging under each OLT device is not globally unique, the ID number of the ONU device hanging under each line card is not globally unique, and the ID number of the ONU device hanging under each PON port is globally unique, then the mapping relationship is the mapping relationship between the line card slot number corresponding to the ONU device, the PON port number corresponding to the ONU device, the ID number of the ONU device and the identification number of the network connection.
[0105] As an optional implementation manner, the target line card establishes a mapping relationship between the target ONU device and the network connection on the target line card according to the first message, such as Figure 5 As shown, specifically including:
[0106] In step 601, the target line card parses the first message, and obtains the identification number of the network connection and the location information of the target ONU device from the first message.
[0107] In step 602, the device number of the target ONU device is found according to the location information of the target ONU device.
[0108] In step 603, a mapping relationship between the device number of the target ONU device and the identification number of the network connection is established on the target line card.
[0109] In actual use, the downlink message also carries a downlink message for sending to the ONU device, and the downlink message is reassembled and carried into the first message. In combination with the embodiment of the present invention, Figure 6 As shown, the associated steps in this embodiment are further integrated to present a relatively complete logic display:
[0110] In step 604, the target line card further parses the first message to obtain a downlink message sent by the cloud controller.
[0111] In step 605, the corresponding target PON port is found according to the location information of the target ONU device, and the downlink message is forwarded to the target ONU device through the target PON port.
[0112] In combination with the above implementation manner, this embodiment further limits the forwarding of the uplink message and provides the following preferred implementation manner, that is, the OLT device guides the forwarding of the uplink message of the ONU device according to the mapping relationship, such as Figure 7 As shown, specifically including:
[0113] In step 701, the line card receives the uplink message and searches for a corresponding network connection identifier from the mapping relationship according to the ONU device.
[0114] In step 702, the line card generates a second message according to the uplink message and the flag, and forwards the second message to the main control disk.
[0115] In step 703, the main control disk parses the second message, obtains the identification number from the second message, and generates an uplink message according to the uplink message in the second message.
[0116] In step 704, the main control disk forwards the uplink message to the corresponding cloud controller through the network connection corresponding to the identification number.
[0117] When a mapping table is established on each line card, the identification number can be directly queried through the mapping table.
[0118] When a plurality of mapping tables are stored in the line card, and each PON port corresponds to a mapping table, the line card receives the uplink message, and searches for a corresponding network connection number from the mapping relationship according to the ONU device, specifically including:
[0119] The line card obtains the location information of the ONU device and the PON port used when receiving the uplink message.
[0120] In the mapping relationship corresponding to the corresponding PON port, find the identification number of the network connection corresponding to the ONU device.
[0121] Since the OLT device and the cloud controller are connected via a network for message transmission, in an optional embodiment, the main control disk includes a connection protocol server and a processing module, wherein the connection protocol server is used to perform protocol parsing on messages from the cloud controller, or to perform protocol encapsulation on messages to be uploaded to the cloud controller, specifically:
[0122] After the cloud controller establishes a connection with the OLT device, a downlink message is sent to the OLT device in the network connection channel. The connection protocol server parses the downlink message according to the network protocol to strip off the outer network protocol, and sends the downlink message after stripping off the outer network protocol to the processing module for processing. After receiving the downlink message, the processing module parses the location information of the ONU device (including the line card slot number, PON port number and ID of the ONU device) and the downlink message from the message, and encapsulates the network connection flag number into the message header of the downlink message, reassembles it into the first message, distributes the first message to the corresponding line card according to the line card slot number and the PON port number, and sends it to the corresponding line card for processing.
[0123] This embodiment also provides a specific implementation for updating the mapping relationship in the above embodiment, that is, when the OLT device senses that the management authority of the ONU device has been migrated, it updates the mapping relationship, specifically including:
[0124] When the new mapping relationship established by the line card according to the latest received first message is different from the old mapping relationship, the line card considers that the management authority of the target ONU device has been migrated; wherein the target ONU device is the ONU device corresponding to the downlink message.
[0125] The line card updates the old mapping relationship to a new mapping relationship, so that the OLT device guides the forwarding of the uplink message of the ONU device according to the new mapping relationship.
[0126] In actual working conditions, the network connection between the cloud controller and the OLT device may be interrupted. In view of this situation, the present invention further proposes a method for processing when the network connection is interrupted, which specifically includes:
[0127] When the first network connection between the first cloud controller and the OLT device is interrupted, the method further includes:
[0128] Among multiple cloud controllers, a second cloud controller that manages the least number of ONU devices is selected, and the second cloud controller establishes a second network connection with the OLT device.
[0129] The first mapping relationship between the first ONU device and the first network connection is updated to a second mapping relationship between the first ONU device and the second network connection; wherein the first ONU device is an ONU device managed by the first cloud controller before the first network connection is interrupted.
[0130] The OLT device forwards the response message from the first ONU device to the second cloud controller through the second network connection according to the second mapping relationship.
[0131] When the first network connection between the first cloud controller and the OLT device is interrupted, the method further includes:
[0132] When the first network connection is interrupted and before the second network connection is established, when the OLT device receives a message from the first ONU device, the message is discarded.
[0133] When a network failure occurs directly between the cloud controller and the OLT device or the cloud controller actively disconnects, since the direct connection between the two is based on a reliable communication transmission protocol, the connection server of the OLT device can perceive the change in the connection status, which mainly includes two scenarios: abnormal connection interruption caused by network problems and end-session request actively initiated by the cloud controller.
[0134] The final result of both scenarios is that the connection is unavailable and messages cannot be sent or received. After the OLT device senses that the connection is disconnected, it will notify the main control processing module, which will delete the network connection and the fd number assigned to the network connection (which can be understood as the identification number of the above network connection), and notify the fd number to the processing instances in each line card. The processing instance cleans up the fd and ONU mapping table entries it is responsible for. If an uplink message arrives at the processing instance, the processing instance automatically discards the message. Subsequently, the new controller will re-establish a connection with the ONU. After the new request message is sent, the new fd will be refreshed to the table entry, and the uplink message can be sent normally, restoring the interaction of business messages.
[0135] In order to improve the rate of business message interaction recovery when the network connection is interrupted, as a preferred implementation, multiple ONU devices under the same OLT device are managed by at least two different cloud controllers. For example, there are two ONU devices under the same OLT device, wherein the first ONU device is managed by the first cloud controller and the second ONU device is managed by the second cloud controller, so that when the network connection between the first cloud controller and the OLT device is disconnected, it can be quickly switched to the second cloud controller to manage the ONU devices under the OLT device.
[0136] This embodiment also provides a preferred implementation method, which specifically includes:
[0137] The number of times the network connection between each cloud controller and the OLT device is disconnected within a preset period is counted, and the number of ONU devices managed by each cloud controller is determined according to the number of times each network connection is disconnected. When the number of times the network connection of the cloud controller is disconnected is too many, the number of ONU devices it manages is reduced, and an OLT device is connected to at least one stable cloud controller, and the stable cloud controller refers to a cloud controller whose number of network disconnections within the preset period is less than the preset number. Furthermore, the number of unstable cloud controllers connected to each OLT device is less than the preset number, so that when the network connection of the unstable cloud controller is disconnected, the ONU device under the corresponding OLT device can be quickly managed by the stable cloud controller.
[0138] The preset period, preset number and preset number are obtained by technical personnel in this field based on experience or comprehensive analysis of the frequency of network connection disconnection in the network, the number of ONU devices, the number of OLT devices and the number of cloud controllers.
[0139] In the embodiments of the present invention, restrictive descriptions such as first and second do not refer to a specific order. They are only added to allow the corresponding restricted objects to be separated from the same category and for the convenience of describing two or more different objects in the same category. They should not be interpreted as having further restrictive meanings.
[0140] Embodiment 3:
[0141] The present invention is based on the methods described in Example 1 and Example 2, combined with specific application scenarios, and uses technical descriptions in related scenarios to illustrate the implementation process of the present invention in characteristic scenarios.
[0142] like Figure 8 The figure shows a PON application scenario, in which the OLT device includes a main control board and at least one line card, and each line card includes at least one PON port.
[0143] The OLT device is composed of multiple line cards for carrying services. Each line card has multiple PON ports. The PON port is connected to an optical fiber, and the other side of the optical fiber is connected to an optical splitter. The optical splitter splits multiple optical fibers, which are then connected to the ONU device.
[0144] The method described in Example 1 will be specifically described below using this scenario. During the description, the functions implemented by each module will be explained from the perspective of each module.
[0145] The main control panel of the OLT device includes a connection protocol server and a processing module. The functions implemented by the main control panel are as follows: Fig. 9 As shown, specifically including:
[0146] In step 801, after the cloud controller establishes communication with the OLT device through a reliable network protocol (such as a gRPC connection based on TCP), the processing module will sense from the connection protocol server that the connection is successfully established and assign a globally unique fd number of the OLT device to the network connection (which can be understood as the unique identification number of the network connection in Implementation 2).
[0147] In step 802, after the cloud controller establishes a connection with the OLT device, it starts the protocol session process with the ONU and sends a downlink message to the OLT device through the network connection. After the connection protocol server receives the downlink message, it strips the outer network protocol according to the network protocol, and sends the stripped message to the processing module for processing. The processing module parses the location information of the ONU device (including the line card slot number, PON port number and ID of the ONU device) and the downlink message from the message, encapsulates the fd number to the front of the message, reassembles it into a first message, and sends the first message to the corresponding line card according to the line card slot number in the location information.
[0148] In step 803, when the processing module receives the second message sent by the line card, it parses the fd number, ONU location information and downlink message in the message, obtains the corresponding cloud network connection according to the fd number, calls the sending interface of the network connection to pass the data to the connection protocol server, and the connection protocol server sends the message to the cloud controller through the connection channel.
[0149] In order to more intuitively show the interaction process between the connection protocol server and the processing module in the OLT device, this embodiment also provides Fig.10 Schematic diagram shown.
[0150] The functions implemented by the line card of the OLT equipment are as follows: Fig.11 As shown, specifically including:
[0151] In step 901, a multi-instance processing method is adopted on the line card, and each instance is responsible for one PON port. When the message distributed by the main control disk arrives at the processing instance of the corresponding line card, the processing instance parses the message (which can be understood as the first message in Example 1) and reads the downlink message, fd number, PON port number and onu-id (i.e., the ID of the ONU device).
[0152] In step 902, a mapping table entry storing onu-id and fd number on the PON port is stored in each processing instance (which can be understood as the storage structure of the mapping relationship in Example 2). When the first message arrives at the processing instance, the processing instance records the onu-id to fd number in the mapping table entry, and then sends the downlink message to the corresponding ONU device through the driver interface.
[0153] In step 903, when the ONU device sends an uplink message through the driver, the processing instance reads the onu-id of the ONU and the corresponding PON port number, and obtains the fd number in the mapping table entry according to the onu-id, and re-encapsulates the data according to the internally defined message rules, that is, encapsulates the uplink message into a second message, and can also carry the location information and fd number of the ONU device in the second message, and sends the second message to the processing module of the main control disk.
[0154] In order to more intuitively show the interaction process in the line card of the OLT device, this embodiment also provides Fig.12 Schematic diagram shown.
[0155] When the cloud controller's management authority over the ONU device is transferred, for example, a stable connection is established between ONU-1 and cloud controller-1, cloud controller-1 manages the service configuration of the ONU device, and messages are sent and received normally. Due to business needs, the ONU manager is changed from cloud controller-1 to cloud controller-2, that is, cloud controller-1 needs to cancel the management authority over the ONU-1 device, and cloud controller-2 increases the management authority over the ONU-2 device. The specific implementation method is as follows: Fig.13 As shown, including:
[0156] In step 1001, the cloud controller-1 no longer manages ONU-1 and will no longer process the messages sent by ONU-1.
[0157] In step 1002, the cloud controller-2 and ONU-1 establish a session connection. If the cloud controller-2 already has a reliable network protocol connection with the OLT device, there is no need to reconnect. Otherwise, a new connection needs to be established so that the device side can sense and assign fd-2 to the connection.
[0158] In step 1003, after the network protocol connection is established, the cloud controller-2 initiates a session with ONU-1 through the network connection. As an optional implementation method, under the GPON service protocol, the omci protocol session can be selected, and under the EPON service protocol, the session of other protocols, such as the oam protocol session, can be selected. The downlink message of the cloud controller will be sent to the OLT device through the network connection. After receiving the downlink message, the processing module of the OLT device will mark the fd-2 mark to form a first message, and according to the location information carried in the downlink message, the first message will continue to be distributed to the corresponding slot line card, and the processing instance of the corresponding line card will be processed. After receiving the message, the processing instance will refresh the new fd number (i.e., fd-2) to the onu-id and fd mapping table entry, thereby completing the update of the onu-owned ONU cloud controller, and continue to send the downlink message in the downlink message to the ONU-1 device.
[0159] In step 1004, when ONU-1 actively sends an uplink message, the uplink message reaches the line card through the corresponding PON port and is processed by the processing instance corresponding to the PON port on the line card. The processing instance reads the new fd number according to the onu-id, and encapsulates the fd number and the uplink message into a second message. The second message can also carry the location information of ONU-1. The second message is sent to the main control. After reaching the main control, the processing module can find the network protocol connection of the cloud controller-2 according to the fd number, and the connection protocol server sends the message to the cloud controller-2.
[0160] By repeating the above steps 1001-1004, multiple ONU protocol message interactions can be completed, so that the cloud controller-2 and ONU-1 can re-establish a protocol session to manage the services of ONU-1.
[0161] In order to more intuitively show the permission migration process of the cloud controller, this embodiment also provides the following Fig.14 Schematic diagram shown.
[0162] Embodiment 4:
[0163] After providing a method for perceiving ONU device management rights migration described in Example 1 and Example 2, the present invention further provides a system for perceiving ONU device management rights migration, wherein the system is used to implement the method for perceiving ONU device management rights migration described in any one of Example 1 and Example 2, such as Fig.15 As shown, it includes a cloud controller, OLT equipment and ONU equipment.
[0164] The OLT device is used to establish a mapping relationship between the ONU device and the corresponding network connection; wherein the corresponding network connection is a network connection between the corresponding cloud controller and the OLT device, and the corresponding cloud controller is a cloud controller having management rights for the ONU device.
[0165] The OLT device guides the forwarding of the uplink message of the ONU device according to the mapping relationship, so as to forward the uplink message to the corresponding cloud controller.
[0166] The OLT device is also used to update the mapping relationship when sensing that the management authority of the ONU device has been migrated, so as to guide the forwarding of the uplink message of the ONU device according to the updated mapping relationship.
[0167] The above system is applicable to OLT devices with unified main control disk and line card resources, and is applicable to OLT devices with independent main control disk and line card resources. Fig.16 As shown, when the OLT device further includes a main control disk and a line card, there are the following preferred implementations, specifically:
[0168] The main control disk is used to receive the downlink message from the cloud controller through the network connection, and parse the downlink message to obtain the location information of the target ONU device.
[0169] The main control disk is used to reassemble the downlink message into a first message, so as to carry the identification number of the network connection in the first message, and send the first message to the corresponding target line card.
[0170] The target line card is used to establish a mapping relationship between the target ONU device and the network connection on the target line card according to the first message.
[0171] There is also the following preferred implementation, that is, the main control disk includes a connection protocol server and a processing module, and the line card includes multiple PON ports, multiple driver modules (which can be understood as the drivers in Example 2) and a PON port processing module (which can be understood as the processing instance in Example 2).
[0172] The connection protocol server is used to perform protocol analysis on the message from the cloud controller, or to perform protocol encapsulation on the message to be uploaded to the cloud controller. Specifically:
[0173] After the cloud controller establishes a connection with the OLT device, the cloud controller sends a downlink message to the OLT device through the network connection.
[0174] The connection protocol service end is used to strip the outer network protocol from the downlink message, and deliver the message stripped of the outer network protocol to the processing module.
[0175] The processing module is used to parse the location information of the ONU device (including the line card slot number, the PON port number and the ID of the ONU device) and the downlink message from the message of the network protocol stripped from the outer layer, and encapsulate the network connection mark number into the front part of the message, reassemble it into a first message, and distribute the first message to the corresponding PON port processing module in the corresponding line card according to the line card slot number and the PON port number.
[0176] The PON port processing module is used to parse the first message, read the location information of the ONU device therein, find the device number of the ONU device according to the location information of the ONU device, and establish a mapping relationship between the device number of the target ONU device and the identification number of the network connection.
[0177] The PON port processing module is further used to find the corresponding target PON port according to the location information of the ONU device, and forward the downlink message to the target ONU device through the target PON port.
[0178] Embodiment 5:
[0179] like Fig.17 , which is a schematic diagram of the architecture of the apparatus for sensing the migration of ONU device management rights according to an embodiment of the present invention. The apparatus for sensing the migration of ONU device management rights according to this embodiment includes one or more processors 21 and a memory 22. Fig.17 A processor 21 is taken as an example.
[0180] The processor 21 and the memory 22 may be connected via a bus or other means. Fig.17 The example of connecting through bus is taken in the following.
[0181] The memory 22, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs and non-volatile computer executable programs, such as the method for perceiving the migration of management rights of an ONU device in Example 1. The processor 21 executes the method for perceiving the migration of management rights of an ONU device by running the non-volatile software programs and instructions stored in the memory 22.
[0182] The memory 22 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 22 may optionally include a memory remotely arranged relative to the processor 21, and these remote memories may be connected to the processor 21 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0183] The program instructions / modules are stored in the memory 22, and when executed by the one or more processors 21, the method for sensing the migration of the management rights of the ONU device in the above-mentioned embodiments 1 and 2 is executed, for example, the method described above is executed. Figure 1-Figure 7 , Fig. 9 , Fig.11 and Fig.13 The steps shown.
[0184] It is worth noting that the information interaction, execution process, etc. between the modules and units within the above-mentioned devices and systems are based on the same concept as the processing method embodiment of the present invention. The specific contents can be found in the description of the method embodiment of the present invention and will not be repeated here.
[0185] A person skilled in the art may understand that all or part of the steps in the various methods of the embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0186] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for sensing ONU device management rights migration, characterized in that: include: The OLT device establishes a mapping relationship between the ONU device and the corresponding network connection; wherein the corresponding network connection is a network connection between the corresponding cloud controller and the OLT device, and the corresponding cloud controller is a cloud controller having management rights of the ONU device; The OLT device guides the forwarding of the uplink message of the ONU device according to the mapping relationship, so as to forward the uplink message to the corresponding cloud controller; When the OLT device senses that the management authority of the ONU device has been migrated, the OLT device updates the mapping relationship to guide the forwarding of the uplink message of the ONU device according to the updated mapping relationship.
2. The method for sensing ONU device management rights migration according to claim 1, characterized in that: The OLT device establishes a mapping relationship between the ONU device and the corresponding network connection, specifically including: The OLT device receives a downlink message from the cloud controller; wherein the downlink message carries location information of a target ONU device; The OLT device establishes a mapping relationship between the target ONU device and the network connection according to the location information and the network connection used when receiving the downlink message.
3. The method for sensing ONU device management rights migration according to claim 2, characterized in that: The OLT device guides the forwarding of the uplink message of the ONU device according to the mapping relationship, specifically including: The OLT device receives an uplink message from the ONU device; The OLT device finds the network connection corresponding to the ONU device according to the mapping relationship, and forwards the uplink message to the corresponding cloud controller through the network connection.
4. The method for sensing ONU device management rights migration according to any one of claims 1 to 3, characterized in that: When the OLT device senses that the management authority of the ONU device has been migrated, updating the mapping relationship specifically includes: When the new mapping relationship established by the OLT device according to the latest received downstream message is different from the old mapping relationship, the OLT device considers that the management authority of the target ONU device has been migrated; wherein the target ONU device is the ONU device corresponding to the downstream message; The old mapping relationship is updated to a new mapping relationship, so as to guide the forwarding of the uplink message of the ONU device according to the new mapping relationship.
5. The method for sensing ONU device management rights migration according to claim 1, characterized in that: The OLT device includes a main control disk and at least one line card, and the mapping relationship is established on the line card of the OLT device, specifically including: The main control disk receives the downlink message from the cloud controller through the network connection, and parses the downlink message to obtain the location information of the target ONU device; The main control disk reassembles the downlink message into a first message, carries the identification number of the network connection in the first message, and sends the first message to the corresponding target line card; The target line card establishes a mapping relationship between the target ONU device and the network connection on the target line card according to the first message.
6. The method for sensing ONU device management rights migration according to claim 5, characterized in that: The target line card establishes, on the target line card according to the first message, a mapping relationship between the target ONU device and the network connection, specifically comprising: The target line card parses the first message, and obtains the identification number of the network connection and the location information of the target ONU device from the first message; According to the location information of the target ONU device, find the device number of the target ONU device; A mapping relationship between the device number of the target ONU device and the identification number of the network connection is established on the target line card.
7. The method for sensing ONU device management rights migration according to claim 5, characterized in that: The method further comprises: The target line card further parses the first message to obtain a downlink message sent by the cloud controller; And according to the location information of the target ONU device, the corresponding target PON port is found, and the downlink message is forwarded to the target ONU device through the target PON port.
8. The method for sensing ONU device management rights migration according to claim 5, characterized in that: The OLT device guides the forwarding of the uplink message of the ONU device according to the mapping relationship, specifically including: The line card receives the uplink message, and searches for a corresponding network connection number from the mapping relationship according to the ONU device; The line card generates a second message according to the uplink message and the flag, and forwards the second message to the main control board; The main control disk parses the second message, obtains the flag number from the second message, and generates an uplink message according to the uplink message in the second message; The main control disk forwards the uplink message to the corresponding cloud controller through the network connection corresponding to the identification number.
9. The method for sensing ONU device management rights migration according to claim 5, characterized in that: When the OLT device senses that the management authority of the ONU device has been migrated, updating the mapping relationship specifically includes: When the new mapping relationship established by the line card according to the latest received first message is different from the old mapping relationship, the line card considers that the management authority of the target ONU device has been migrated; wherein the target ONU device is the ONU device corresponding to the downlink message; The line card updates the old mapping relationship to a new mapping relationship, so that the OLT device guides the forwarding of the uplink message of the ONU device according to the new mapping relationship.
10. A device for sensing the migration of ONU equipment management rights, characterized in that: The device comprises: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the processor to execute the method for perceiving the migration of management rights of an ONU device as described in any one of claims 1-9.
Citation Information
Patent Citations
Passive optical network asymmetric system business mapping method
CN108882063A
A method and system for OLT slicing of access network based on ONU granularity
CN108989915A