Method, device and storage medium for service configuration of a passive optical network device

By detecting the registration and configuration distribution status of optical network terminals at the optical line terminal (OLT), generating and encrypting the target configuration file for transmission, the problem of resource waste during each registration of optical network terminals is solved, and the resource utilization and configuration accuracy of passive optical network devices are improved.

CN116528087BActive Publication Date: 2025-12-23SHENZHEN HUAXUN OPTICAL COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310479535.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-27
Publication Date
2025-12-23
Estimated Expiration
2043-04-27

AI Technical Summary

Technical Problem

The parameter configuration during each registration of an optical network terminal leads to a waste of resources in passive optical network devices.

Method used

By detecting the registration status of optical network terminals at the optical line terminal, the configuration distribution status is determined. If the configuration has been distributed, it is determined whether an upgrade is needed. Based on the configuration information table and management method, a target configuration file is generated and transmitted in encrypted form to avoid repeated configuration of terminals that do not need to be upgraded.

Benefits of technology

This effectively avoids resource waste during optical network terminal registration, improves the resource utilization of passive optical network devices, and ensures the security and accuracy of configuration files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116528087B_ABST
    Figure CN116528087B_ABST
Patent Text Reader

Abstract

The application discloses a service configuration method and device of a passive optical network equipment and a storage medium, wherein the method comprises the following steps: when it is detected that a first optical network terminal completes registration, if a first configuration issuing state is an issued state and configuration parameters of the first optical network terminal need to be upgraded, an optical line terminal determines a management mode corresponding to the first optical network terminal based on the first configuration issuing state; the optical line terminal determines a first target configuration file corresponding to the first optical network terminal based on the management mode, the configuration parameters and a configuration information table; and the optical line terminal issues the first target configuration file to the first optical network terminal, wherein the first optical network terminal performs corresponding parameter configuration operation based on the configuration file. The application can perform parameter configuration on the configuration file issued to the optical network terminal in the issued state and needing to be upgraded, improves the resource utilization rate of the passive optical network equipment, and simultaneously can also update the default configuration in the optical network terminal.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of communication technology, in particular to a service configuration method and device of a passive optical network equipment and a storage medium. BACKGROUND

[0002] At present, fiber to the home is gradually popularized, and fiber to the home has become the mainstream mode of access network construction of each operator. In this way, the number of optical network terminal devices in the optical access network, such as optical network terminals, is growing rapidly. In practical application, system software upgrade is one of the common functions of optical network terminal devices. Through system software upgrade of the optical network terminal, the needs of different operators or different needs of the same operator can be met, and the functions of the system software of the optical network terminal device can also be continuously improved to adapt to the continuous development of the business and application of the operator.

[0003] In the related art, after the optical network terminal is registered in the optical line terminal, the optical network terminal needs to be configured with corresponding parameters, such as the configuration of WAN connection VLAN, dial-up account and WIFI parameters, so as to reconfigure the configuration parameters of the optical network terminal each time the optical network terminal is registered, which causes waste of resources of the passive optical network equipment.

[0004] The above content is only used to assist in understanding the technical solutions of the present application and does not represent the acknowledgement of the above content as prior art. SUMMARY

[0005] The main purpose of the present application is to provide a service configuration method and device of a passive optical network equipment and a storage medium, which aims to solve the technical problem of waste of resources of the passive optical network equipment caused by parameter configuration of the optical network terminal each time the optical network terminal is registered.

[0006] To achieve the above purpose, the present application provides a service configuration method of a passive optical network equipment, which comprises the following steps:

[0007] When it is detected that the first optical network terminal completes registration, the optical line terminal determines whether the first configuration delivery state of the first optical network terminal exists in the storage information corresponding to the configuration delivery state;

[0008] If the first configuration delivery state of the first optical network terminal exists in the storage information, the optical line terminal determines whether the first configuration delivery state is a delivered state;

[0009] If the first configuration delivery state is a delivered state, the optical line terminal determines whether the configuration parameters of the first optical network terminal need to be upgraded based on the configuration information table;

[0010] If the configuration parameter of the first optical network terminal needs to be upgraded, the optical line terminal determines a management mode corresponding to the first optical network terminal based on the first configuration issuing state;

[0011] The optical line terminal determines a first target configuration file corresponding to the first optical network terminal based on the management mode, the configuration parameter, and the configuration information table;

[0012] The optical line terminal issues the first target configuration file to the first optical network terminal, and the first optical network terminal performs a corresponding parameter configuration operation based on the configuration file.

[0013] Further, the step of determining, by the optical line terminal, the first target configuration file corresponding to the first optical network terminal based on the management mode, the configuration parameter, and the configuration information table comprises:

[0014] The optical line terminal determines, in the configuration information table, a to-be-screened configuration file corresponding to the management mode;

[0015] The optical line terminal determines, based on the configuration parameter, the first target configuration file needed by the first optical network terminal for upgrading in the to-be-screened configuration file.

[0016] Further, the step of issuing, by the optical line terminal, the first target configuration file to the first optical network terminal, and the step of performing, by the first optical network terminal, a corresponding parameter configuration operation based on the configuration file comprises:

[0017] The optical line terminal obtains identification information of the first optical network terminal;

[0018] The optical line terminal encrypts the first target configuration file based on the identification information and the management mode to obtain an encrypted first target configuration file;

[0019] The optical line terminal issues the encrypted first target configuration file to the first optical network terminal, and the first optical network terminal decrypts the received encrypted first target configuration file based on the identification information and the management mode to obtain the first target configuration file and performs a corresponding parameter configuration operation based on the first target configuration file.

[0020] Further, the step of encrypting, by the optical line terminal, the first target configuration file based on the identification information and the management mode to obtain an encrypted first target configuration file comprises:

[0021] The optical line terminal determines a first hash value based on the identification information by a hash algorithm, and determines a second hash value based on the management mode by a hash algorithm;

[0022] The optical line terminal determines an encryption key based on the first hash value and the second hash value;

[0023] The optical line terminal encrypts the first target configuration file based on the encryption key to obtain an encrypted first target configuration file.

[0024] Further, the service configuration method of the passive optical network device further comprises the following steps after the step of determining whether the first configuration delivery state is the delivered state:

[0025] If the first configuration delivery state is the undelivered state, the optical line terminal determines a second target configuration file corresponding to the first optical network terminal based on a management mode and the configuration information table;

[0026] The optical line terminal delivers the second target configuration file to the first optical network terminal, wherein the second optical network terminal performs a corresponding parameter configuration operation based on the configuration file.

[0027] Further, the step of the optical line terminal delivering the second target configuration file to the first optical network terminal, wherein the second optical network terminal performs a corresponding parameter configuration operation based on the configuration file comprises:

[0028] The optical line terminal obtains identification information of the first optical network terminal;

[0029] The optical line terminal encrypts the second target configuration file based on the identification information and the management mode to obtain an encrypted second target configuration file;

[0030] The optical line terminal delivers the encrypted second target configuration file to the first optical network terminal, wherein the first optical network terminal performs a decryption operation on the received encrypted second target configuration file based on the identification information and the management mode to obtain the second target configuration file, and performs a corresponding parameter configuration operation based on the second target configuration file.

[0031] Further, the service configuration method of the passive optical network device further comprises:

[0032] When detecting a logout instruction of the first optical network terminal, the optical line terminal obtains a current second configuration delivery state of the first optical network terminal;

[0033] The optical line terminal updates the storage information based on the second configuration delivery state and first device information of the first optical network terminal;

[0034] The optical line terminal performs a logout operation of the first optical network terminal based on the logout instruction.

[0035] Further, the service configuration method of the passive optical network device further comprises:

[0036] setting the configuration delivery state of the first optical network terminal to an undelivered state when detecting the factory resetting operation of the first optical network terminal;

[0037] deleting the associated storage information corresponding to the first optical network terminal in the storage information.

[0038] In addition, to achieve the above object, the application further provides a service configuration device of a passive optical network device, which comprises a memory, a processor and a service configuration program of the passive optical network device stored in the memory and executable on the processor, and the service configuration program of the passive optical network device realizes the steps of the above service configuration method of the passive optical network device when executed by the processor.

[0039] In addition, to achieve the above object, the application further provides a computer readable storage medium, which stores a service configuration program of a passive optical network device, and the service configuration program of the passive optical network device realizes the steps of the above service configuration method of the passive optical network device when executed by a processor.

[0040] The application determines whether the first configuration delivery state of the first optical network terminal exists in the storage information corresponding to the configuration delivery state of the optical line terminal when detecting that the first optical network terminal completes registration, and then determines whether the first configuration delivery state is a delivered state if the first configuration delivery state of the first optical network terminal exists in the storage information, and then determines whether the configuration parameters of the first optical network terminal need to be upgraded based on the configuration information table if the first configuration delivery state is the delivered state, and then determines the management mode corresponding to the first optical network terminal based on the first configuration delivery state if the configuration parameters of the first optical network terminal need to be upgraded, and then determines the first target configuration file corresponding to the first optical network terminal based on the management mode, the configuration parameters and the configuration information table, and finally delivers the first target configuration file to the first optical network terminal, wherein the first optical network terminal performs corresponding parameter configuration operation based on the configuration file, and the configuration file is delivered to the optical network terminal in the delivered state and needing to be upgraded to avoid re-delivering the configuration file to the optical network terminal not needing to be upgraded, which can effectively avoid the problem of resource waste of the passive optical network device caused by the re-configuration parameters of the optical network terminal during registration, improve the resource utilization rate of the passive optical network device, and update the default configuration in the optical network terminal. Attached Figure Description

[0041] Figure 1 This is a schematic diagram of the service configuration device of a passive optical network device in the hardware operating environment involved in the embodiments of the present invention;

[0042] Figure 2 This is a flowchart illustrating the first embodiment of the service configuration method for the passive optical network device of the present invention.

[0043] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0044] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0045] like Figure 1 As shown, Figure 1 This is a schematic diagram of the service configuration device of a passive optical network device in the hardware operating environment involved in the embodiments of the present invention.

[0046] The service configuration device of the passive optical network device in this embodiment of the invention can be a smartphone, tablet computer, e-book reader, MP3 (Moving Picture Experts Group Audio Layer III) player, MP4 (Moving Picture Experts Group Audio Layer IV) player, portable computer, or other portable terminal device with display function.

[0047] like Figure 1 As shown, the service configuration equipment of this passive optical network device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to realize communication between these components. The user interface 1003 may include a display screen or an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed RAM or a stable, non-volatile memory, such as a disk storage device. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0048] Optionally, the service configuration device of the PON device can further include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, etc. The sensor can be, for example, a light sensor, a motion sensor, and other sensors. Specifically, the light sensor can include an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display screen according to the brightness of ambient light, and the proximity sensor can turn off the display screen and / or the backlight when the service configuration device of the PON device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (usually three axes), and can detect the magnitude and direction of gravity when at rest, and can be used for applications such as switching between landscape and portrait screens, related games, magnetometer posture calibration, vibration recognition related functions (such as pedometers, tapping), etc. Of course, the service configuration device of the PON device can also be configured with a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and other sensors, which will not be described here.

[0049] Those skilled in the art can understand that, Figure 1 The terminal structure shown in the figure does not constitute a limitation on the service configuration device of the PON device, and can include more or fewer components than the figure, or combine certain components, or different component arrangements.

[0050] As Figure 1 shown, the memory 1005 as a computer storage medium can include an operating system, a network communication module, a user interface module, and a service configuration program of the PON device.

[0051] In Figure 1 the service configuration device of the PON device shown, the network interface 1004 is mainly used to connect to a background server and communicate data with the background server; the user interface 1003 is mainly used to connect to a client (user end) and communicate data with the client; and the processor 1001 can be used to call the service configuration program of the PON device stored in the memory 1005.

[0052] In this embodiment, the service configuration device of the PON device includes a memory 1005, a processor 1001, and a service configuration program of the PON device stored in the memory 1005 and executable on the processor 1001. When the processor 1001 calls the service configuration program of the PON device stored in the memory 1005, it performs the steps of the service configuration method of the PON device in each of the following embodiments.

[0053] The application also provides a service configuration method of a PON device, which refers to Figure 2 , Figure 2A flowchart of a service configuration method of a passive optical network device according to a first embodiment of the present application.

[0054] In the embodiment, the service configuration method of the passive optical network device comprises:

[0055] In step S101, upon detecting that a first optical network terminal completes registration, the optical line terminal determines whether a first configuration and distribution state of the first optical network terminal exists in the storage information corresponding to the configuration and distribution state.

[0056] In the embodiment, the passive optical network comprises a gigabit passive optical network, an Ethernet-based passive optical network, a 10G-PON or a wavelength division multiplexing passive optical network. The passive optical network device comprises an optical line terminal and a plurality of optical network terminals, and the optical line terminal is in communication connection with each optical network terminal. Upon registration of each optical network terminal at the optical line terminal, the optical line terminal stores current configuration and distribution state and device information of the registered optical network terminal in the storage information, which can be stored in a storage module of the optical line terminal or a database in communication connection with the optical line terminal. Meanwhile, upon registration of the optical network terminal, the optical network terminal saves a current configuration file or configuration parameters corresponding to the configuration file.

[0057] In the embodiment, upon detecting that a first optical network terminal completes registration, the optical line terminal determines whether a first configuration and distribution state of the first optical network terminal exists in the storage information corresponding to the configuration and distribution state. Specifically, the optical line terminal can first acquire second device information (for example, a unique identifier of the first optical network terminal) of the first optical network terminal, and then perform a search in the storage information based on the second device information to determine whether a configuration and distribution state corresponding to the second device information exists in the storage information, the configuration and distribution state corresponding to the second device information being the first configuration and distribution state of the first optical network terminal. Alternatively, upon detecting that the first optical network terminal completes registration, the optical line terminal can count a registration number of the first optical network terminal. If the registration number is greater than 1, it is determined that the first optical network terminal has registered and deregistered at the optical line terminal before the current time, and thus the first configuration and distribution state of the first optical network terminal must exist in the storage information. Therefore, it can be directly determined whether the registration number of the first optical network terminal is greater than 1.

[0058] In step S102, if the first configuration and distribution state of the first optical network terminal exists in the storage information, the optical line terminal determines whether the first configuration and distribution state is an already distributed state.

[0059] In the embodiment, if the first configuration delivery state exists in the storage information, the optical line terminal acquires the first configuration delivery state and determines whether the first configuration delivery state is a delivered state, wherein the first configuration delivery state comprises a delivered state and an undelivered state, and the delivered state means that the first optical network terminal has been registered and deregistered in the optical line terminal, and when the first optical network terminal is lastly deregistered, the optical line terminal has delivered configuration files or configuration parameters to the first optical network terminal.

[0060] It should be noted that when the first optical network terminal is registered after performing the factory reset operation, the optical line terminal updates the first configuration delivery state in the storage information to the undelivered state when the first optical network terminal performs the factory reset operation, or when the administrator updates the configuration files of the first optical network terminal, the optical line terminal receives the to-be-updated configuration files corresponding to the first optical network terminal, updates the configuration files of the first optical network terminal based on the to-be-updated configuration files, and updates the first configuration delivery state in the storage information to the undelivered state, wherein if the configuration files exist in the configuration file server, the configuration file server sends a state modification instruction to the optical line terminal when detecting the update operation of the configuration files of the first optical network terminal, and the optical line terminal modifies the first configuration delivery state in the storage information to the undelivered state based on the state modification instruction.

[0061] In step S103, if the first configuration delivery state is the delivered state, the optical line terminal determines whether the configuration parameters of the first optical network terminal need to be upgraded based on the configuration information table.

[0062] In the embodiment, when the first configuration delivery state is the delivered state, that is, the first optical network terminal has been registered and deregistered in the optical line terminal, and when the first optical network terminal is lastly deregistered, the optical line terminal has delivered configuration files or configuration parameters to the first optical network terminal, the optical line terminal determines whether the configuration parameters of the first optical network terminal need to be upgraded based on the configuration information table. Specifically, the optical line terminal can first acquire parameter information of the configuration parameters of the first optical network terminal, and then query the configuration files corresponding to the first optical network terminal in the configuration information table to determine whether the configuration files corresponding to the first optical network terminal exist the upgrade configuration files corresponding to the configuration parameters of the first optical network terminal, and if yes, it is determined that the configuration parameters of the first optical network terminal need to be upgraded.

[0063] In step S104, if the configuration parameters of the first optical network terminal need to be upgraded, the optical line terminal determines the management mode corresponding to the first optical network terminal based on the first configuration delivery state.

[0064] In the embodiment, if the configuration parameter of the first optical network terminal needs to be upgraded, the optical line terminal determines the management mode corresponding to the first optical network terminal based on the first configuration issuing state, specifically, the optical line terminal determines the service type supported by the first optical network terminal based on the first configuration issuing state, and determines the management mode configurable for various service types according to the supported service type, wherein the management mode includes an optical network unit management control interface (OMCI) mode and an OMCI+TR069 mode.

[0065] In step S105, the optical line terminal determines the first target configuration file corresponding to the first optical network terminal based on the management mode, the configuration parameter and the configuration information table.

[0066] In the embodiment, after the management mode is acquired, the optical line terminal determines the first target configuration file corresponding to the first optical network terminal based on the management mode, the configuration parameter and the configuration information table, specifically, the optical line terminal queries the to-be-screened configuration file corresponding to the management mode in the configuration information table, and then determines the first target configuration file required by the first optical network terminal for upgrading based on the configuration parameter in the to-be-screened configuration file.

[0067] The first target configuration file further includes an upgrade file corresponding to the default configuration of the first optical network terminal.

[0068] In step S106, the optical line terminal issues the first target configuration file to the first optical network terminal, wherein the first optical network terminal performs corresponding parameter configuration operation based on the configuration file.

[0069] In the embodiment, after the first target configuration file is acquired, the optical line terminal issues the first target configuration file to the first optical network terminal, and after receiving the first target configuration file, the first optical network terminal performs corresponding parameter configuration operation based on the first target configuration file.

[0070] The service configuration method of the passive optical network device provided in the embodiment comprises the following steps: when it is detected that a first optical network terminal completes registration, an optical line terminal determines whether a first configuration delivery state of the first optical network terminal exists in storage information corresponding to a configuration delivery state; then, if the first configuration delivery state of the first optical network terminal exists in the storage information, the optical line terminal determines whether the first configuration delivery state is a delivered state; then, if the first configuration delivery state is the delivered state, the optical line terminal determines whether the configuration parameters of the first optical network terminal need to be upgraded based on a configuration information table; then, if the configuration parameters of the first optical network terminal need to be upgraded, the optical line terminal determines the management mode corresponding to the first optical network terminal based on the first configuration delivery state; then, the optical line terminal determines the first target configuration file corresponding to the first optical network terminal based on the management mode, the configuration parameters and the configuration information table; finally, the optical line terminal delivers the first target configuration file to the first optical network terminal. The first optical network terminal performs corresponding parameter configuration operation based on the configuration file, which can perform parameter configuration on the configuration file delivered to the optical network terminal in the delivered state and needing to be upgraded, avoids re-delivering the configuration file to the optical network terminal not needing to be upgraded, can effectively avoid the problem of resource waste of the passive optical network device caused by the reconfigured parameters of the optical network terminal during registration, improves the resource utilization rate of the passive optical network device, and can also update the default configuration in the optical network terminal.

[0071] Based on the first embodiment, a second embodiment of the service configuration method of the passive optical network device is provided. In the second embodiment, step S105 comprises:

[0072] In step S201, the optical line terminal determines the to-be-screened configuration file corresponding to the management mode in the configuration information table.

[0073] In step S202, the optical line terminal determines the first target configuration file needed by the first optical network terminal for upgrading based on the configuration parameters in the to-be-screened configuration file.

[0074] In the embodiment, after the management mode is acquired, the optical line terminal determines the to-be-screened configuration file corresponding to the management mode in the configuration information table. Specifically, the configuration file matching the management mode is screened in the configuration file corresponding to the configuration information table as the to-be-screened configuration file.

[0075] Then, the optical line terminal determines the first target configuration file needed by the first optical network terminal for upgrading based on the configuration parameters in the to-be-screened configuration file. Specifically, the optical line terminal queries the configuration file matching the configuration parameters of the first optical network terminal in the to-be-screened configuration file as the first target configuration file.

[0076] The service configuration method of the passive optical network device provided in the embodiment can make the optical line terminal accurately obtain the first target configuration file required for upgrading the first optical network terminal, and further improve the resource utilization of the passive optical network device.

[0077] Based on the first embodiment, a third embodiment of the service configuration method of the passive optical network device is provided, and in the third embodiment, step S106 includes:

[0078] In step S301, the optical line terminal obtains identification information of the first optical network terminal.

[0079] In step S302, the optical line terminal encrypts the first target configuration file based on the identification information and the management mode, to obtain an encrypted first target configuration file.

[0080] In step S303, the optical line terminal sends the encrypted first target configuration file to the first optical network terminal, where the first optical network terminal decrypts the received encrypted first target configuration file based on the identification information and the management mode, to obtain the first target configuration file, and performs a corresponding parameter configuration operation based on the first target configuration file.

[0081] In the embodiment, when the first target configuration file is obtained, the optical line terminal obtains identification information of the first optical network terminal, which is a unique identifier of the first optical network terminal, and can be device information of the first optical network terminal.

[0082] Then, the optical line terminal encrypts the first target configuration file based on the identification information and the management mode, to obtain an encrypted first target configuration file. Specifically, in a possible implementation, step S302 includes:

[0083] In step S3021, the optical line terminal determines a first hash value based on the identification information by using a hash algorithm, and determines a second hash value based on the management mode by using the hash algorithm.

[0084] In step S3022, the optical line terminal determines an encryption key based on the first hash value and the second hash value.

[0085] In step S3023, the optical line terminal encrypts the first target configuration file based on the encryption key, to obtain an encrypted first target configuration file.

[0086] In this embodiment, the optical line terminal determines a first hash value based on the identification information through a hash algorithm, and determines a second hash value based on the management mode through a hash algorithm. Specifically, the optical line terminal inputs the identification information into the hash algorithm (for example, the identification information is converted into corresponding numerical data and then input into the hash algorithm) to obtain the first hash value, and simultaneously inputs the management mode into the hash algorithm (for example, the management mode is converted into corresponding numerical data and then input into the hash algorithm) to obtain the second hash value.

[0087] Then, the optical line terminal determines an encryption key based on the first hash value and the second hash value; for example, the sum or average of the first hash value and the second hash value is taken as the encryption key, or the average between the first hash value and the second hash value is obtained, and the average is queried in a preset key to obtain the key corresponding to the average, that is, the encryption key.

[0088] Then, the optical line terminal encrypts the first target configuration file based on the encryption key to obtain an encrypted first target configuration file, so as to realize encryption of the first target configuration file and improve the security of the first target configuration file.

[0089] After obtaining the encrypted first target configuration file, the optical line terminal distributes the encrypted first target configuration file to the first optical network terminal, wherein the first optical network terminal decrypts the received encrypted first target configuration file based on the identification information and the management mode to obtain the first target configuration file, and specifically, the first optical network terminal reversely decrypts the encrypted first target configuration file according to the encryption mode of the optical line terminal.

[0090] The service configuration method of the passive optical network device provided in this embodiment includes the following steps: the optical line terminal obtains the identification information of the first optical network terminal; then the optical line terminal encrypts the first target configuration file based on the identification information and the management mode to obtain an encrypted first target configuration file; and then the optical line terminal distributes the encrypted first target configuration file to the first optical network terminal, wherein the first optical network terminal decrypts the received encrypted first target configuration file based on the identification information and the management mode to obtain the first target configuration file, and performs corresponding parameter configuration operation based on the first target configuration file, so as to improve the security of the first target configuration file by encrypting the configuration file.

[0091] Based on the first embodiment, a fourth embodiment of the service configuration method of the passive optical network device is provided, and in this embodiment, after step S102, the service configuration method of the passive optical network device further includes:

[0092] Step S401, the optical line terminal determines a second target configuration file corresponding to the first optical network terminal based on the management mode and the configuration information table;

[0093] Step S402, the optical line terminal issues the second target configuration file to the first optical network terminal, wherein the second optical network terminal performs corresponding parameter configuration operation based on the configuration file.

[0094] In the embodiment, if the first configuration issuing state is the unissued state, the optical line terminal determines the second target configuration file corresponding to the first optical network terminal based on the management mode and the configuration information table. Specifically, the configuration information table includes configuration files of each optical network terminal, and the optical line terminal can query the second target configuration file corresponding to the first optical network terminal according to the configuration information table. Alternatively, the configuration information table includes storage address information of configuration files of each optical network terminal, and the optical line terminal can query the storage address information corresponding to the first optical network terminal according to the configuration information table, and obtain the second target configuration file through the storage address information.

[0095] In the embodiment, when the configuration file is obtained, the optical line terminal issues the second target configuration file to the first optical network terminal. After receiving the second target configuration file, the first optical network terminal performs corresponding parameter configuration operation based on the second target configuration file.

[0096] Further, in a possible implementation, step S402 includes:

[0097] Step S4021, the optical line terminal obtains identification information of the first optical network terminal;

[0098] Step S4022, the optical line terminal encrypts the second target configuration file based on the identification information and the management mode, to obtain an encrypted second target configuration file;

[0099] Step S4023, the optical line terminal issues the encrypted second target configuration file to the first optical network terminal, wherein the first optical network terminal decrypts the received encrypted second target configuration file based on the identification information and the management mode, to obtain the second target configuration file, and performs corresponding parameter configuration operation based on the second target configuration file.

[0100] In the embodiment, when the second target configuration file is obtained, the optical line terminal obtains identification information of the second optical network terminal, which is a unique identification of the first optical network terminal, and specifically can be device information of the first optical network terminal.

[0101] Then, the optical line terminal encrypts the second target configuration file based on the identification information and the management mode to obtain an encrypted second target configuration file. Specifically, the optical line terminal determines a first hash value based on the identification information by using a hash algorithm, and determines a second hash value based on the management mode by using the hash algorithm. The optical line terminal determines an encryption key based on the first hash value and the second hash value. The optical line terminal encrypts the second target configuration file based on the encryption key to obtain the encrypted second target configuration file. In this embodiment, the optical line terminal determines the first hash value based on the identification information by using the hash algorithm, and determines the second hash value based on the management mode by using the hash algorithm. Specifically, the optical line terminal inputs the identification information into the hash algorithm (for example, the identification information is converted into corresponding numerical data and then input into the hash algorithm) to obtain the first hash value, and inputs the management mode into the hash algorithm (for example, the management mode is converted into corresponding numerical data and then input into the hash algorithm) to obtain the second hash value. The optical line terminal determines the encryption key based on the first hash value and the second hash value. For example, the sum or average of the first hash value and the second hash value is used as the encryption key, or the average between the first hash value and the second hash value is obtained, the average is used to query a preset key to obtain the key corresponding to the average, that is, the encryption key. Then, the optical line terminal encrypts the second target configuration file based on the encryption key to obtain the encrypted second target configuration file, so as to encrypt the second target configuration file and improve the security of the second target configuration file.

[0102] After obtaining the encrypted second target configuration file, the optical line terminal sends the encrypted second target configuration file to the first optical network terminal. The first optical network terminal decrypts the received encrypted second target configuration file based on the identification information and the management mode to obtain the second target configuration file. Specifically, the first optical network terminal reversely decrypts the encrypted second target configuration file according to the encryption mode of the optical line terminal.

[0103] Further, in a possible implementation, the service configuration method of the passive optical network device further includes:

[0104] In step S403, when the optical line terminal detects the logout instruction of the first optical network terminal, the optical line terminal obtains the current second configuration distribution state of the first optical network terminal.

[0105] In step S404, the optical line terminal updates the storage information based on the second configuration distribution state and the first device information of the first optical network terminal.

[0106] In step S405, the optical line terminal performs a logout operation of the first optical network terminal based on the logout instruction.

[0107] In this embodiment, when the logout instruction of the first optical network terminal is detected, for example, when a logout request of the first optical network terminal is received, the optical line terminal acquires a current second configuration distribution state of the first optical network terminal, and the second configuration distribution state is a current configuration distribution state of the first optical network terminal.

[0108] Then, the optical line terminal updates the storage information based on the second configuration distribution state and the first device information of the first optical network terminal. For example, if the configuration distribution state of the first optical network terminal is stored in the storage information, the configuration distribution state of the first optical network terminal in the storage information is replaced by the second configuration distribution state. If the configuration distribution state of the first optical network terminal is not stored in the storage information, the first device information and the second configuration distribution state of the first optical network terminal are added to the storage information to realize the associated storage of the first device information and the second configuration distribution state. Finally, the optical line terminal performs a logout operation of the first optical network terminal based on the logout instruction to logout the first optical network terminal in the optical line terminal.

[0109] By updating the storage information according to the second configuration distribution state, the configuration distribution state of the first optical network terminal is stored in time when the first optical network terminal is logged out, and then it is convenient to determine whether to reconfigure the first optical network terminal according to the stored configuration distribution state when the first optical network terminal is re-registered subsequently. This can effectively avoid the problem of waste of passive optical network device resources caused by reconfiguration parameters when the optical network terminal is registered, and further improve the resource utilization rate of the passive optical network device.

[0110] Further, after step S402, the service configuration method of the passive optical network device further comprises:

[0111] In step S406, when the second target configuration file is distributed, the optical line terminal sets the configuration distribution state of the first optical network terminal to a distributed state, and updates the storage information based on the distributed state and the device information of the first optical network terminal.

[0112] In this embodiment, when the second target configuration file is completed, the optical line terminal sets the configuration distribution state of the first optical network terminal to the distributed state, and updates the storage information based on the distributed state and the device information of the first optical network terminal. Specifically, when the configuration completion information of the first optical network terminal is received, it is determined that the second target configuration file is completed. By timely modifying and storing the configuration distribution state of the current first optical network terminal, the timely updating of the storage information is ensured, and when the first optical network terminal is registered again, it is accurately determined whether the first optical network terminal needs to be configured. The accuracy of the parameter configuration of the first optical network terminal is improved.

[0113] It should be noted that if the configuration file is stored in the configuration file server, the optical line terminal determines the configuration file acquisition parameter corresponding to the first optical network terminal based on the configuration information table, and the optical line terminal distributes the configuration file acquisition parameter to the first optical network terminal. The first optical network terminal sends a configuration file acquisition request to the configuration file server based on the received configuration file acquisition parameter, and the configuration file server feeds back the configuration file corresponding to the configuration file acquisition request to the first optical network terminal, and then the first optical network terminal performs corresponding parameter configuration operation based on the configuration file.

[0114] However, the design is not limited to this, in other embodiments, if the first configuration distribution state is the distributed state, the optical line terminal no longer distributes the configuration file to the first optical network terminal. At this time, the first optical network terminal can perform corresponding parameter configuration based on the saved configuration file, and the first optical network terminal performs service processing operation, or the current parameter configuration of the first optical network terminal is the configuration before logout, at this time, the first optical network terminal can directly perform service processing operation. For example, when the duration after the registration of the first optical network terminal reaches the preset duration, if the configuration file sent by the optical line terminal is not received, the first optical network terminal performs corresponding parameter configuration based on the saved configuration file before the last logout.

[0115] Further, in another implementation, step S101 comprises:

[0116] Step S201, when it is detected that the first optical network terminal completes registration, the optical line terminal acquires the second device information of the first optical network terminal;

[0117] Step S202, based on the second device information, it is determined whether the first configuration distribution state of the first optical network terminal exists in the storage information.

[0118] In the embodiment, when it is detected that the first optical network terminal completes registration, the optical line terminal can first acquire second device information (for example, a unique identifier of the first optical network terminal) of the first optical network terminal, and the optical line terminal performs lookup in the storage information based on the second device information to determine whether there is a configuration delivery state corresponding to the second device information in the storage information, that is, the first configuration delivery state of the first optical network terminal. The configuration delivery state of the first optical network terminal can be accurately determined according to the second device information, and then it is determined whether the first optical network terminal needs to be reconfigured, which can effectively avoid the problem of resource waste of the passive optical network device caused by the reconfiguration parameters when the optical network terminal registers, and further improves the resource utilization rate of the passive optical network device.

[0119] Further, in another implementation manner, after step S101, the service configuration method of the passive optical network device further includes:

[0120] In step S301, if the first configuration delivery state of the first optical network terminal does not exist in the storage information, the optical line terminal determines a second target configuration file corresponding to the first optical network terminal based on the configuration information table.

[0121] In step S302, the optical line terminal delivers the second target configuration file to the first optical network terminal.

[0122] In the embodiment, if the first configuration delivery state of the first optical network terminal does not exist in the storage information, it is determined that the first optical network terminal is currently registered to the optical line terminal for the first time, and the first optical network terminal needs to be configured with parameters. At this time, the optical line terminal determines a second target configuration file corresponding to the first optical network terminal based on the configuration information table. Specifically, the configuration information table includes configuration files of various optical network terminals. The optical line terminal can query the configuration file corresponding to the first optical network terminal according to the configuration information table, or the configuration information table includes storage address information of the configuration files of various optical network terminals. The optical line terminal can query the storage address information corresponding to the first optical network terminal according to the configuration information table, and acquire the configuration file through the storage address information.

[0123] In the embodiment, when the second target configuration file is acquired, the optical line terminal delivers the second target configuration file to the first optical network terminal. After receiving the second target configuration file, the first optical network terminal performs corresponding parameter configuration operation based on the second target configuration file. The second target configuration file corresponding to the first optical network terminal can be delivered when the first configuration delivery state does not exist, the parameter configuration of the first optical network terminal is realized, and the accuracy of the parameter configuration of the first optical network terminal is further improved.

[0124] The service configuration method of the passive optical network device provided in the embodiment sets the configuration issuing state of the first optical network terminal as the non-issuing state when the first configuration issuing state is the non-issuing state, and then the optical line terminal issues the second target configuration file corresponding to the first optical network terminal to the first optical network terminal based on the management mode and the configuration information table. The second optical network terminal performs corresponding parameter configuration operation based on the configuration file, which can perform parameter configuration on the configuration file issued to the optical network terminal in the non-issuing state, avoids reissuing the configuration file to the optical network terminal that has been registered, effectively avoids the problem of resource waste of the passive optical network device caused by the reconfigured parameters of the optical network terminal during registration, and improves the resource utilization rate of the passive optical network device.

[0125] Based on the above various embodiments, the fifth embodiment of the service configuration method of the passive optical network device is provided, and in the embodiment, the service configuration method of the passive optical network device further comprises:

[0126] In step S501, when the recovery factory setting operation of the first optical network terminal is detected, the configuration issuing state of the first optical network terminal is set as the non-issuing state.

[0127] In step S502, the associated storage information corresponding to the first optical network terminal is deleted from the storage information.

[0128] In the embodiment, when the recovery factory setting operation of the first optical network terminal is detected, the recovery factory setting operation of the first optical network terminal invalidates the parameter configuration of the current first optical network terminal, so the optical line terminal sets the configuration issuing state of the first optical network terminal as the non-issuing state, and deletes the associated storage information corresponding to the first optical network terminal from the storage information, i.e., deletes the device information and the configuration issuing state of the first optical network terminal in the storage information, so that the first optical network terminal is registered in the optical line terminal again, and the optical line terminal reissues the configuration file to the first optical network terminal.

[0129] It should be noted that if the optical line terminal has updated the registration number of the first optical network terminal before, the optical line terminal sets the registration number as the initial value at this time.

[0130] The service configuration method of the passive optical network device provided in the embodiment sets the configuration issuing state of the first optical network terminal to the non-issued state when the recovery factory setting operation of the first optical network terminal is detected, and then deletes the associated storage information corresponding to the first optical network terminal in the storage information, so that the optical line terminal reissues the configuration file for the first optical network terminal when the first optical network terminal is registered in the optical line terminal again, and the accuracy and efficiency of the parameter configuration of the first optical network terminal are improved.

[0131] In addition, the embodiment of the present application further provides a computer readable storage medium, and the computer readable storage medium stores the service configuration program of the passive optical network device.

[0132] It should be noted that in this document, the terms "comprising", "containing", or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article or system. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of another identical element in the process, method, article or system including the element.

[0133] The above-mentioned serial numbers of the embodiments of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments.

[0134] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment method can be realized by means of software and necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a plurality of instructions for making a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) execute the method described in each embodiment of the present application.

[0135] The above is only the preferred embodiment of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent flow transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied to other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A service configuration method of a passive optical network device, characterized by, The service configuration method of the passive optical network device comprises the following steps: Upon detecting that the first optical network terminal completes registration, the optical line terminal determines whether the first configuration delivery state of the first optical network terminal exists in the storage information corresponding to the configuration delivery state; If the first configuration delivery state of the first optical network terminal exists in the storage information, the optical line terminal determines whether the first configuration delivery state is a delivered state; If the first configuration delivery state is a delivered state, the optical line terminal determines whether the configuration parameters of the first optical network terminal need to be upgraded based on the configuration information table; If the configuration parameters of the first optical network terminal need to be upgraded, the optical line terminal determines the service type supported by the first optical network terminal based on the first configuration delivery state, and determines the corresponding management mode according to the service type, wherein the management mode comprises an optical network unit management control interface (OMCI) mode and an OMCI+TR069 mode; The optical line terminal determines the to-be-screened configuration file corresponding to the management mode in the configuration information table; The optical line terminal determines the first target configuration file required by the first optical network terminal for upgrading based on the configuration parameters in the to-be-screened configuration file; The optical line terminal obtains the identification information of the first optical network terminal; The optical line terminal determines a first hash value based on the identification information by using a hash algorithm, and determines a second hash value based on the management mode by using a hash algorithm; The sum or average of the first hash value and the second hash value is used as an encryption key, or the average between the first hash value and the second hash value is obtained, the average is used to query a preset key, and the key corresponding to the average is used as the encryption key; The optical line terminal encrypts the first target configuration file based on the encryption key to obtain an encrypted first target configuration file; The optical line terminal delivers the encrypted first target configuration file to the first optical network terminal, wherein the first optical network terminal decrypts the received encrypted first target configuration file based on the identification information and the management mode to obtain the first target configuration file, and performs corresponding parameter configuration operations based on the first target configuration file.

2. The service configuration method of a passive optical network apparatus according to claim 1, wherein, After the step of determining whether the first configuration delivery state is a delivered state, the service configuration method of the passive optical network device further comprises: If the first configuration delivery state is an undelivered state, the optical line terminal determines the second target configuration file corresponding to the first optical network terminal based on the management mode and the configuration information table; The optical line terminal delivers the second target configuration file to the first optical network terminal, wherein the second optical network terminal performs corresponding parameter configuration operations based on the configuration file.

3. The service configuration method of a passive optical network apparatus according to claim 2, wherein, The step of delivering the second target configuration file to the first optical network terminal by the optical line terminal, wherein the second optical network terminal performs corresponding parameter configuration operations based on the configuration file, comprises: The optical line terminal obtains the identification information of the first optical network terminal; The optical line terminal encrypts the second target configuration file based on the identification information and the management mode, and obtains an encrypted second target configuration file; The optical line terminal sends the encrypted second target configuration file to the first optical network terminal, wherein the first optical network terminal decrypts the received encrypted second target configuration file based on the identification information and the management mode, obtains the second target configuration file, and performs corresponding parameter configuration operation based on the second target configuration file.

4. The service configuration method of a passive optical network apparatus according to claim 1, wherein, The service configuration method of the passive optical network device further includes: When detecting the logout instruction of the first optical network terminal, the optical line terminal obtains the current second configuration sending state of the first optical network terminal; The optical line terminal updates the storage information based on the second configuration sending state and the first device information of the first optical network terminal; The optical line terminal performs the logout operation of the first optical network terminal based on the logout instruction.

5. The service configuration method of a passive optical network apparatus according to any one of claims 1 to 4, wherein, The service configuration method of the passive optical network device further includes: When detecting the factory reset operation of the first optical network terminal, the configuration sending state of the first optical network terminal is set to the unsent state; The associated storage information corresponding to the first optical network terminal is deleted in the storage information.

6. A service configuration device of a passive optical network device, characterized by comprising: The service configuration device of the passive optical network device includes a memory, a processor, and a service configuration program of a passive optical network device stored in the memory and executable on the processor, and when the service configuration program of the passive optical network device is executed by the processor, the steps of the service configuration method of the passive optical network device in any one of claims 1 to 5 are implemented.

7. A computer readable storage medium characterized in that, The computer readable storage medium stores the service configuration program of the passive optical network device, and when the service configuration program of the passive optical network device is executed by the processor, the steps of the service configuration method of the passive optical network device in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Method and device for automatically issuing ONU device configuration

    CN104080020A

  • Service configuration method and device of passive optical network equipment, equipment and storage medium

    CN114760200A