Optical line terminal interaction method, electronic equipment and storage medium
By configuring terminal controllers and functional devices on the switch, direct interaction of OLT devices is achieved, and the problems of high cost, large space, high power consumption, complex operation and maintenance, and limited expansion are solved, and wiring simplified and convenient operation and maintenance are achieved.
Patent Information
- Application Number
- CN202510639053.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-19
- Publication Date
- 2025-08-08
AI Technical Summary
Traditional OLT equipment has high cost, large space, high power consumption, complex operation and maintenance, and limited scalability.
Configure the terminal controller and the terminal function on the switch, realize the communication connection through the Ethernet interface and the optical module, and manage the communication process of the terminal function, directly implement the interaction between the terminal controller and the terminal function on the switch, without the need for independent rack equipment.
Reduce wiring length and quantity, simplify network wiring structure, reduce equipment costs, and improve scalability and operation and maintenance simplicity.
Smart Images

Figure CN120455876A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of optical line terminals, and in particular to an optical line terminal interaction method, electronic equipment and storage medium. Background Art
[0002] An optical line terminal (OLT) is a device used in fiber-optic communication systems. It typically consists of multiple components, including a main control board, service boards, optical modules, power supplies, and fans. Traditional OLTs have disadvantages such as high equipment cost, large footprint, high power consumption, complex operations and maintenance, and limited scalability, leading to the need for improvement. Summary of the Invention
[0003] In view of this, the present invention provides an optical line terminal interaction method, an electronic device, and a storage medium.
[0004] Specifically, the present invention is achieved through the following technical solutions:
[0005] According to a first aspect of the present invention, there is provided an optical line terminal interaction method, the method comprising the steps of:
[0006] Configure terminal controllers and terminal function devices on the switch;
[0007] Communicating the terminal controller and the terminal function device;
[0008] assigning a logical sequence number to the terminal function device;
[0009] Managing the communication process of the terminal function device;
[0010] Reporting alarm information of the terminal function device.
[0011] Optionally, configuring the terminal controller and the terminal function device on the switch includes the steps of:
[0012] Configure switches, terminal controllers, and terminal function devices;
[0013] Configuring an Ethernet interface on the interface of the terminal controller;
[0014] Configuring an optical module on the interface of the terminal function device;
[0015] Connecting the Ethernet interface to the first network port of the switch;
[0016] Connect the optical module to the second network port of the switch.
[0017] Optionally, the communication connection between the terminal controller and the terminal function device includes the steps of:
[0018] Determining whether the terminal controller has received a discovery request message sent by the terminal function device;
[0019] If so, the terminal controller sends a response request message to the terminal function device;
[0020] If not, the terminal function device sends a discovery request message to the outside world.
[0021] Optionally, the communication connection between the terminal controller and the terminal function device further includes the steps of:
[0022] Parsing the response request message;
[0023] Obtaining media access control address information in the response request message;
[0024] The terminal controller stores the media access control address information.
[0025] Optionally, the communication connection between the terminal controller and the terminal function device further includes the steps of:
[0026] Parsing the response request message;
[0027] Obtaining the serial number information in the response request message;
[0028] The terminal controller stores the serial number information.
[0029] Optionally, allocating a logical serial number to the terminal function device comprises the steps of:
[0030] Obtaining media access control address information corresponding to the terminal function device;
[0031] Determining whether the terminal function device is online;
[0032] If so, determining whether the media access control address information includes a logical sequence number;
[0033] If not, return to the step of obtaining the media access control address information corresponding to the terminal function device;
[0034] If so, assigning the logical serial number to the terminal function device;
[0035] If not, a new logical sequence number is inserted and configured at the end of the media access control address information.
[0036] Optionally, the communication process of managing the terminal function device includes the steps of:
[0037] Managing the session state of the terminal function device;
[0038] exchanging data between the terminal function device and the terminal controller;
[0039] Querying the communication status of the terminal function device;
[0040] Reporting performance data of the terminal function device.
[0041] Optionally, the reporting of the alarm information of the terminal function device includes the steps of:
[0042] Get alarm events and their corresponding occurrence frequencies;
[0043] Determining whether the occurrence frequency exceeds a preset threshold;
[0044] If yes, report the alarm events in batches and regularly;
[0045] If not, report the alarm event.
[0046] According to a second aspect of the present invention, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the aforementioned methods when executing the program.
[0047] According to a third aspect of the present invention, there is provided a storage medium having a computer program stored thereon, wherein the program implements the steps of any one of the aforementioned methods when executed by a processor.
[0048] The technical solution provided by the present invention brings at least the following beneficial effects:
[0049] The present application provides an optical line terminal interaction method, electronic device, and storage medium that implement communication interaction between a terminal controller and a terminal function device directly on a switch, eliminating the need for independent rack equipment, reducing the length and quantity of wiring, and simplifying the network wiring structure. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0052] Figure 1 A schematic diagram of a flow chart of an optical line terminal interaction method provided by an embodiment of the present invention;
[0053] Figure 2A schematic structural diagram of an electronic device provided by an embodiment of the present invention;
[0054] Figure 3 A schematic structural diagram of a storage medium provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0055] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0056] Figure 1 The flowchart of an optical line terminal interaction method applicable to an embodiment of the present invention is schematically shown.
[0057] See also Figure 1 , an embodiment of the present invention provides an optical line terminal interaction method, the method comprising the steps of:
[0058] S1: Configure the terminal controller and terminal function device on the switch;
[0059] Exemplarily, configuring the terminal controller and the terminal function device on the switch includes the following steps:
[0060] Configure switches, terminal controllers, and terminal function devices;
[0061] Configuring an Ethernet interface on the interface of the terminal controller;
[0062] Configuring an optical module on the interface of the terminal function device;
[0063] Connecting the Ethernet interface to the first network port of the switch;
[0064] Connect the optical module to the second network port of the switch.
[0065] In the embodiments of the present application, the optical line terminal includes two types of hardware: a terminal controller (OLT Controller) and a terminal function device (OLT Stick). There can be only one terminal controller, but multiple terminal function devices can exist. The terminal controller is primarily responsible for the management and control functions of the optical line terminal, such as data service delivery, performance statistics, alarm statistics, configuration management, terminal function device upgrades, and terminal controller upgrades. The terminal function device is primarily responsible for the basic functions of the Ethernet passive optical network, such as registration, ranging, DBA, encryption, statistics, alarms, and line identification. The terminal controller is connected to any network port of the switch via an Ethernet interface, and the terminal function device is plugged into the switch via an optical module. The terminal controller and the terminal function device communicate via Layer 2 private Ethernet messages.
[0066] S2: Communicating and connecting the terminal controller and the terminal function device;
[0067] Exemplarily, the communication connection between the terminal controller and the terminal function device includes the steps of:
[0068] Determining whether the terminal controller has received a discovery request message sent by the terminal function device;
[0069] If so, the terminal controller sends a response request message to the terminal function device;
[0070] If not, the terminal function device sends a discovery request message to the outside world.
[0071] In this embodiment of the present application, after a terminal function device is plugged into a switch and powered on, it sends a discovery request message to the surrounding area via a broadcast mechanism. The terminal controller listens to a specific Ethernet broadcast address and receives the discovery request message. After receiving the discovery request message, the terminal controller sends a response request message, establishing a communication connection between the terminal function device and the terminal controller.
[0072] Exemplarily, the communication connection between the terminal controller and the terminal function device further includes the steps of:
[0073] Parsing the discovery request message;
[0074] Obtaining media access control address information in the discovery request message;
[0075] The terminal controller stores the media access control address information.
[0076] In the embodiment of the present application, the discovery request message includes the media access control address information of the terminal function device, and the terminal controller stores the media access control address information and is used to maintain the media access control address information of the terminal function device.
[0077] Exemplarily, the communication connection between the terminal controller and the terminal function device further includes the steps of:
[0078] Parsing the discovery request message;
[0079] Obtaining the sequence number information in the discovery request message;
[0080] The terminal controller stores the serial number information.
[0081] In the embodiment of the present application, the discovery request message includes the serial number information of the terminal function device, and the terminal controller stores the serial number information and uses it to maintain the serial number information of the terminal function device.
[0082] S3: assigning a logical serial number to the terminal function device;
[0083] Exemplarily, allocating a logical serial number to the terminal function device includes the steps of:
[0084] Obtaining media access control address information corresponding to the terminal function device;
[0085] Determining whether the terminal function device is online;
[0086] If so, determining whether the media access control address information includes a logical sequence number;
[0087] If not, return to the step of obtaining the media access control address information corresponding to the terminal function device;
[0088] If so, assigning the logical serial number to the terminal function device;
[0089] If not, a new logical sequence number is inserted and configured at the end of the media access control address information.
[0090] In the embodiments of the present application, a switch is equipped with multiple terminal function devices and a terminal controller to achieve flexible service configuration and expansion. Therefore, for multiple terminal function devices, there is a problem of how to configure a specific terminal function device so that the logical sequence of different terminal function devices plugged into the same network port remains unchanged regardless of the plugging and unplugging of the terminal function devices on the switch. At the same time, to facilitate maintenance personnel in locating the terminal function devices, a mapping relationship between the terminal function device and the switch port number must be established (this relationship is stored in a database) so that operation and maintenance personnel can clearly know which terminal function device on which switch needs to be operated.
[0091] Specifically, the terminal controller needs to record the association between the terminal function device and its media access control address information. When a terminal function device comes online, the terminal controller retrieves the mapping between the terminal function device and the switch port number from the database. If a logical sequence number is configured for a particular media access control address in the database, the terminal function device directly uses the pre-assigned logical sequence number. If a particular media access control address does not have a logical sequence number, a new media access control address is inserted at the end of the media access control address information in the database and assigned a corresponding logical sequence number.
[0092] S4: managing the communication process of the terminal function device;
[0093] Exemplarily, the process of managing the communication of the terminal function device includes the steps of:
[0094] Managing the session state of the terminal function device;
[0095] exchanging data between the terminal function device and the terminal controller;
[0096] Querying the communication status of the terminal function device;
[0097] Reporting performance data of the terminal function device.
[0098] In an embodiment of the present application, the terminal function device manages session status by using a heartbeat mechanism to periodically send heartbeat packets to maintain session activity. The terminal controller monitors these packets and promptly detects the terminal function device's session status. Data exchange between the terminal function device and the terminal controller is achieved by designing a standardized message communication interface for exchanging commands and data between the terminal controller and the terminal function device. The terminal function device's communication status is queried by the terminal controller, which queries the terminal function device's operating status, including port status and bandwidth utilization. Performance data reporting for the terminal function device is achieved by the terminal function device periodically reporting performance data, such as traffic statistics and latency, to the terminal controller.
[0099] S5: Reporting the alarm information of the terminal function device.
[0100] Exemplarily, the reporting of the alarm information of the terminal function device includes the steps of:
[0101] Get alarm events and their corresponding occurrence frequencies;
[0102] Determining whether the occurrence frequency exceeds a preset threshold;
[0103] If yes, report the alarm events in batches and regularly;
[0104] If not, report the alarm event.
[0105] In an embodiment of the present application, when a terminal function device detects an alarm event, it immediately sends an alarm message to the terminal controller. The message contains information such as the alarm address, level, type, timestamp, and detailed description. For alarm events that occur frequently (the frequency of occurrence exceeds a preset threshold), a batch periodic reporting mechanism can be adopted to regularly package and send alarm information to reduce network load. After receiving the alarm message, the terminal controller sends a confirmation message to the terminal function device to ensure that the alarm information is successfully received. If the alarm message is not confirmed, the terminal function device can resend it.
[0106] It should be understood that the above-described specific embodiments of the present invention are merely illustrative or illustrative of the principles of the present invention and do not constitute limitations of the present invention. Therefore, any modifications, equivalent substitutions, improvements, etc. made without departing from the spirit and scope of the present invention should be included within the scope of protection of the present invention. In addition, the appended claims are intended to cover all variations and modifications that fall within the scope and metes and bounds of the appended claims, or equivalents thereof.
[0107] Reference below Figure 2 , which shows a schematic structural diagram of an electronic device 100 suitable for implementing an embodiment of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 2 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0108] like Figure 2 As shown, the electronic device 100 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 102 or a program loaded from a storage device 108 into a random access memory (RAM) 103. Various programs and data required for the operation of the electronic device 100 are also stored in the RAM 103. The processing device 101, the ROM 102, and the RAM 103 are connected to each other via a bus 104. An input / output (I / O) interface 105 is also connected to the bus 104.
[0109] Typically, the following devices may be connected to the I / O interface 105: an input device 106 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 107 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 108 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 109. The communication device 109 may allow the electronic device 100 to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows the electronic device 100 with various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
[0110] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 109, or installed from the storage device 108, or installed from the ROM 102. When the computer program is executed by the processing device 101, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0111] Reference below Figure 3 , which shows a structural schematic diagram of a computer-readable storage medium suitable for implementing an embodiment of the present disclosure, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it can implement the optical line terminal interaction method as described in any of the above.
[0112] The present application also provides a computer program product, which includes a computer program / computer executable instructions, and when the computer program / computer executable instructions are executed by a processor of an electronic device, the steps of any of the aforementioned optical line terminal interaction methods are implemented.
[0113] The present application provides an optical line terminal interaction method, electronic device, and storage medium that implement communication interaction between a terminal controller and a terminal function device directly on a switch, eliminating the need for independent rack equipment, reducing the length and quantity of wiring, and simplifying the network wiring structure.
[0114] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.
[0115] The foregoing description is intended only to provide specific embodiments of the present invention, which will enable those skilled in the art to understand and implement the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention is not intended to be limited to the embodiments shown herein, but is intended to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. An optical line terminal interaction method, characterized in that: The method comprises the steps of: Configure terminal controllers and terminal function devices on the switch; Communicating the terminal controller and the terminal function device; assigning a logical sequence number to the terminal function device; Managing the communication process of the terminal function device; Reporting alarm information of the terminal function device.
2. The optical line terminal interaction method according to claim 1, characterized in that: The configuration of the terminal controller and the terminal function device on the switch comprises the following steps: Configure switches, terminal controllers, and terminal function devices; Configuring an Ethernet interface on the interface of the terminal controller; Configuring an optical module on the interface of the terminal function device; Connecting the Ethernet interface to the first network port of the switch; Connect the optical module to the second network port of the switch.
3. The optical line terminal interaction method according to claim 1, wherein: The communication connection between the terminal controller and the terminal function device comprises the steps of: Determining whether the terminal controller has received a discovery request message sent by the terminal function device; If so, the terminal controller sends a response request message to the terminal function device; If not, the terminal function device sends a discovery request message to the outside world.
4. The optical line terminal interaction method according to claim 3, characterized in that: The communication connection between the terminal controller and the terminal function device further comprises the steps of: Parsing the response request message; Obtaining media access control address information in the response request message; The terminal controller stores the media access control address information.
5. The optical line terminal interaction method according to claim 3, characterized in that: The communication connection between the terminal controller and the terminal function device further comprises the steps of: Parsing the response request message; Obtaining the serial number information in the response request message; The terminal controller stores the serial number information.
6. The optical line terminal interaction method according to claim 1, characterized in that: Allocating a logical serial number to the terminal function device comprises the steps of: Obtaining media access control address information corresponding to the terminal function device; Determining whether the terminal function device is online; If so, determining whether the media access control address information includes a logical sequence number; If not, return to the step of obtaining the media access control address information corresponding to the terminal function device; If so, assigning the logical serial number to the terminal function device; If not, a new logical sequence number is inserted and configured at the end of the media access control address information.
7. The optical line terminal interaction method according to claim 1, characterized in that: The communication process of managing the terminal function device includes the steps of: Managing the session state of the terminal function device; exchanging data between the terminal function device and the terminal controller; Querying the communication status of the terminal function device; Reporting performance data of the terminal function device.
8. The optical line terminal interaction method according to claim 1, wherein: The reporting of the alarm information of the terminal function device includes the steps of: Get alarm events and their corresponding occurrence frequencies; Determining whether the occurrence frequency exceeds a preset threshold; If yes, report the alarm events in batches and regularly; If not, report the alarm event.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the method according to any one of claims 1 to 8 are implemented.
10. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.