CN115334379A - Online optical network unit replacement method and device, electronic equipment and storage medium - Google Patents

Online optical network unit replacement method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115334379A
CN115334379A CN202211247935.0A CN202211247935A CN115334379A CN 115334379 A CN115334379 A CN 115334379A CN 202211247935 A CN202211247935 A CN 202211247935A CN 115334379 A CN115334379 A CN 115334379A
Authority
CN
China
Prior art keywords
optical network
network unit
replacement
replaced
string
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211247935.0A
Other languages
Chinese (zh)
Other versions
CN115334379B (en
Inventor
梅景平
胡兆祥
王瑾
彭珊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Yangtze Optical Technology Co ltd
Original Assignee
Wuhan Yangtze Optical Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Yangtze Optical Technology Co ltd filed Critical Wuhan Yangtze Optical Technology Co ltd
Priority to CN202211247935.0A priority Critical patent/CN115334379B/en
Publication of CN115334379A publication Critical patent/CN115334379A/en
Application granted granted Critical
Publication of CN115334379B publication Critical patent/CN115334379B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3226Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using a predetermined code, e.g. password, passphrase or PIN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0064Arbitration, scheduling or medium access control aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses an online optical network unit replacement method, an online optical network unit replacement device, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a replaced request message, which comprises the MAC address of the replaced optical network unit and the replacement current time; generating a first serial code according to the MAC address and the replacement current moment; sending a string request message containing a first string to the replaced optical network unit; when the string code confirmation message is received, the first string code is displayed to a web page of the replaced optical network unit and is used for being provided for the replacement optical network unit to generate and send a replacement request; after receiving the replacement request, checking whether a replaced optical network unit matched with the first serial code exists; if the optical network unit exists, sending a replacement confirmation message to the replacement optical network unit, sending the configuration information of the replaced optical network unit to the replacement optical network unit, and triggering the replacement optical network unit to carry out configuration according to the configuration information so as to replace the replaced optical network unit.

Description

Online optical network unit replacement method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer network technologies, and in particular, to an online optical network unit replacement method, an online optical network unit replacement device, an electronic device, and a storage medium.
Background
Fiber To The Room (FTTR), which is The basic technical way for Fiber access, is to lay Fiber to a remote node. An Optical Network Unit (ONU) is a terminal device for Optical fiber access.
In the existing FTTR field, ONU networking usually authorizes each ONU by using an SN or MAC address as a unique identifier, and manages each ONU after authorization. The authorization and management of each ONU require the intervention of operation and maintenance personnel at the OLT end, including the replacement operation of the ONU, because the ONU appears through the virtual ID, the replacement process of the ONU is complicated, and a trouble is brought to the maintenance of the ONU.
Disclosure of Invention
The invention mainly aims to provide a method and a device for replacing an online optical network unit, electronic equipment and a storage medium, which can automatically and conveniently realize the replacement of the online optical network unit and ensure the safety of system replacement.
In order to achieve the above object, a first aspect of the present application provides an online optical network unit replacement method, including:
receiving a replaced request message, wherein the replaced request message comprises the MAC address of the replaced optical network unit and the replacement current moment;
generating a first serial code according to the MAC address of the replaced optical network unit and the replacement current moment;
sending a string request message containing the first string to the replaced optical network unit, wherein the string request message is used for the replaced optical network unit to verify the first string;
when a string code confirmation message from the replaced optical network unit is received, the first string code is displayed to a web page of the replaced optical network unit, and the first string code is used for being provided for a replacing optical network unit to generate and send a replacing request;
after receiving the replacement request, checking whether a replaced optical network unit matched with the first serial code exists;
if the configuration information exists, a replacement confirmation message is sent to the replacement optical network unit, and the configuration information of the replaced optical network unit is sent to the replacement optical network unit, wherein the replacement confirmation message is used for triggering the replacement optical network unit to carry out configuration according to the configuration information so as to replace the replaced optical network unit.
Optionally, the verifying the first string by the replaced optical network unit includes:
the replaced optical network unit generates a second serial code according to the local MAC address and the replacement current moment;
checking whether the first string of codes is consistent with the second string of codes;
if the two are consistent, the verification is successful, and the serial code confirmation message is triggered; if not, the verification fails, and a serial code confirmation failure message is triggered.
Optionally, after receiving the replacement request, the method further comprises:
checking whether the time of the replacement request is overtime;
if yes, sending a replacement rejection message to the replacement optical network unit; if not, triggering the step of checking whether the replaced optical network unit matched with the first serial code exists.
Optionally, the method further comprises:
and after receiving the replacement success message from the replacement optical network unit, deleting the information of the replaced optical network unit.
In a second aspect, an online optical network unit replacement method is provided, which is applied to a replaced optical network unit, and the method includes:
sending a replaced request message to a virtual domain, wherein the replaced request message comprises a MAC address of the replaced optical network unit and a replacing current moment, and the MAC address and the replacing current moment are used for the virtual domain to generate a serial code;
receiving a string request message containing a first string from the virtual domain;
generating a second serial code according to the local MAC address and the replacement current moment;
checking whether the first string and the second string are consistent;
if the two codes are consistent, the verification is successful, a serial code confirmation message is sent to the virtual domain, the first serial code is displayed to a web page, and the first serial code is used for being provided for a replacement optical network unit to generate and send a replacement request; if not, the verification fails, and a serial code confirmation failure message is sent to the virtual domain;
the replacement request is used for triggering the virtual domain to send a replacement confirmation message and the configuration information of the replaced optical network unit to the replacement optical network unit, and the replacement confirmation message is used for triggering the replacement optical network unit to perform configuration according to the configuration information so as to replace the replaced optical network unit.
In a third aspect, a method for replacing an online optical network unit is provided, where the method is applied to replace an optical network unit, and the method includes:
sending a replacement request containing a first serial code to a virtual domain, wherein the first serial code is a serial code provided by a replaced optical network unit and is generated based on an MAC address of the replaced optical network unit and the current replacement time; the replacement request is used for the virtual domain to check whether a replaced optical network unit matched with the first serial code exists, and if the replaced optical network unit exists, a replacement confirmation message and configuration information of the replaced optical network unit are sent to the replacement optical network unit;
and under the condition of receiving the replacement confirmation message, configuring according to the configuration information to replace the replaced optical network unit.
Optionally, after the configuring according to the configuration information, the method further includes:
and sending a replacement success message to the virtual domain, wherein the replacement success message is used for deleting the information of the replaced optical network unit by the virtual domain so as to enable the replaced optical network unit to carry out rapid and automatic networking.
In order to achieve the above object, a fourth aspect of the present application provides an online optical network unit replacement device, including:
a receiving module, configured to receive a replaced request message, where the replaced request message includes a MAC address of a replaced optical network unit and a replacement current time;
a generating module, configured to generate a first serial code according to the MAC address of the replaced optical network unit and the replacement current time;
a sending module, configured to send a string request message including the first string to the replaced optical network unit, where the string request message is used for the replaced optical network unit to verify the first string;
the processing module is used for displaying the first serial code to a web page of the replaced optical network unit when a serial code confirmation message from the replaced optical network unit is received, and the first serial code is used for being provided for a replacing optical network unit to generate and send a replacing request;
the detection module is used for checking whether a replaced optical network unit matched with the first serial code exists or not after the replacement request is received;
the sending module is further configured to send a replacement confirmation message to the replacement optical network unit if the replacement confirmation message exists, and send configuration information of the replaced optical network unit to the replacement optical network unit, where the replacement confirmation message is used to trigger the replacement optical network unit to perform configuration according to the configuration information to replace the replaced optical network unit.
A fifth aspect of the present application provides an electronic device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps as the first, second or third aspect and any possible implementation thereof.
To achieve the above object, a sixth aspect of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of the method according to the first, second or third aspect.
The application provides a replacement method of an online optical network unit, which is applied to a computing node in a distributed database management system and used for receiving a replaced request message, wherein the replaced request message comprises an MAC address of a replaced optical network unit and the current time of replacement; generating a first serial code according to the MAC address of the replaced optical network unit and the replacement current moment; sending a string request message containing the first string to the replaced optical network unit, wherein the string request message is used for the replaced optical network unit to verify the first string; when a string code confirmation message from the replaced optical network unit is received, the first string code is displayed to a web page of the replaced optical network unit, and the first string code is used for being provided for a replacing optical network unit to generate and send a replacing request; after receiving the replacement request, checking whether a replaced optical network unit matched with the first serial code exists; if yes, sending a replacement confirmation message to the replacement optical network unit, and sending configuration information of the replaced optical network unit to the replacement optical network unit, wherein the replacement confirmation message is used for triggering the replacement optical network unit to perform configuration according to the configuration information so as to replace the replaced optical network unit; the replacement of the online optical network unit can be automatically and conveniently realized, a serial code generation algorithm and corresponding verification are used, the safety of system replacement is ensured, and a user can manually realize ONU replacement and service activation at home.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
fig. 1 is a schematic flowchart of an online optical network unit replacement method according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another online optical network unit replacement method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another online optical network unit replacement method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an online optical network unit replacement apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The embodiments of the present application will be described below with reference to the drawings.
Please refer to fig. 1, which is a flowchart illustrating an online onu replacement method according to an embodiment of the present disclosure, where the method is applicable to a computing node in a distributed database management system. As shown in fig. 1, the method includes:
101. receiving a replaced request message, wherein the replaced request message comprises the MAC address of the replaced optical network unit and the replacement current moment;
102. generating a first serial code according to the MAC address of the replaced optical network unit and the replacement current moment;
103. sending a string request message including the first string to the replaced optical network unit, where the string request message is used for the replaced optical network unit to verify the first string;
104. when a string code confirmation message from the replaced optical network unit is received, the first string code is displayed to a web page of the replaced optical network unit, and the first string code is used for being provided for the replacement optical network unit to generate and send a replacement request;
105. after receiving the replacement request, checking whether a replaced optical network unit matched with the first serial code exists;
106. and if so, sending a replacement confirmation message to the replacement optical network unit, and sending the configuration information of the replaced optical network unit to the replacement optical network unit, wherein the replacement confirmation message is used for triggering the replacement optical network unit to perform configuration according to the configuration information so as to replace the replaced optical network unit.
The execution subject in this embodiment of the present application may be an online optical network unit replacement device, and may be an electronic device, and in a specific implementation, the foregoing steps may be executed in an FTTR virtual domain.
For convenience of description, in the embodiment of the present application, the replaced optical network unit is referred to as an ONUA, and the corresponding replaced optical network unit is referred to as an ONU B. The alternative flow in the embodiments of the present application may be performed after the FTTR virtual domain is created.
Specifically, after the ONU a goes online, the replaced request message may be sent to the virtual domain by entering a web page of the ONU a and clicking a replaced request button key. After receiving the replaced request message, the Virtual domain may start a Virtual Synchronous Redundant Service (VSRS) process.
The content of the replaced request message may include a MAC address of the onu and a replacement current time (a time at which the replaced request is triggered), where the MAC address and the replacement current time are used for generating the serial code.
After receiving the replaced request message, the VSRS in the virtual domain records the configuration information of the ONU a, and can obtain the MAC address and the replacement current time from the configuration information, and generate a string code according to a string code generation algorithm, which is referred to herein as the first string code.
In an optional implementation manner, the generating the first string of codes according to a preset string code generating algorithm may specifically include:
step 1: generating a string of 10-system character strings based on the MAC address and the replacement current moment;
step 2: multiplying the value of the even number bit of the character string by 4, and multiplying the value of the odd number bit by 3;
and step 3: and (4) subtracting the digit numbers obtained in the step (2) by using 10 to respectively obtain the numerical values of the corresponding digits.
Other string code generation algorithms can be selected or set as required, which is not limited in the embodiment of the present application.
And after the serial code is generated, sending a serial code request message containing the first serial code to the ONU A.
After the ONU a receives the string code request message, it may verify the first string code.
In an optional implementation manner, the verifying the first serial code by the replaced optical network unit includes:
the replaced optical network unit generates a second serial code according to the local MAC address and the replacement current moment;
checking whether the first string code is consistent with the second string code;
if the two codes are consistent, the verification is successful, and the serial code confirmation message is triggered; if not, the verification fails, and a string code confirmation failure message is triggered.
Specifically, the ONU a may generate a segment of serial code, referred to as a second serial code, from the local MAC address and the reported replacement current time, check whether the received first serial code is consistent with the generated second serial code, and if so, send a serial code acknowledgement message to inform the synchronous redundancy service VSRS that the ONU may be replaced; if not, sending a string code confirmation failure message, and failing to replace.
After the ONU a sends the string code confirmation message, the first string code may be displayed to the web page of the ONU a, so that the ONU B can initiate a replacement request using the string code.
In an alternative embodiment, the user may enter the web page of ONU B and enter the first string of codes displayed on ONU a on the web page of ONU B. After successful input, ONU B may send a replacement request.
In an optional implementation manner, after receiving the replacement request, the method further includes:
checking whether the time of the replacement request is overtime;
if yes, sending a replacement refusing message to the replacement optical network unit; if not, triggering the step of checking whether there is a replaced optical network unit matched with the first serial code.
After receiving the replacement request, the VSRS may first check whether the time for receiving the replacement request is overtime, and if so, send a replacement rejection message; if not, it can check if there is a replaced optical network unit (i.e. ONU a) matching the first serial code; if so, sending a replacement confirmation message to ONU B, sending all configuration information of ONU A to ONU B, and performing replacement; if not, a replacement reject message is sent to ONU B and replacement is not performed.
After receiving the replacement confirmation message, the ONU B may acquire the configuration information, configure the configuration information to the ONU B, and may send a replacement success message.
After receiving the replacement success message, the synchronous redundancy service VSRS may delete the information of the ONU a, and the ONU B performs fast and automatic networking.
The method for replacing the online optical network unit in the embodiment of the application can automatically and conveniently replace the online optical network unit, uses the serial code generation algorithm and corresponding verification, simultaneously ensures the safety of system replacement, and can be used by a user at home to manually replace the ONU and open the service.
Please refer to fig. 2, which is a flowchart illustrating another method for replacing an online onu according to an embodiment of the present application. As shown in fig. 2, the method may be performed by a replaced optical network unit, which may be any on-line optical network unit in an FTTR environment, the method including:
201. sending a replaced request message to a virtual domain, wherein the replaced request message comprises an MAC address of a replaced optical network unit and a replacing current time, and the MAC address and the replacing current time are used for the virtual domain to generate a serial code;
202. receiving a string code request message containing a first string code from the virtual domain;
203. generating a second serial code according to the local MAC address and the replacement current moment;
204. checking whether the first string code is consistent with the second string code;
205. if the two codes are consistent, successfully verifying, sending a string code confirmation message to the virtual domain, and displaying the first string code to a web page, wherein the first string code is used for being provided for a replacement optical network unit to generate and send a replacement request; if not, the verification fails, and a serial code confirmation failure message is sent to the virtual domain; the replacement request is used to trigger a virtual domain to send a replacement confirmation message and the configuration information of the replaced optical network unit to the replacement optical network unit, and the replacement confirmation message is used to trigger the replacement optical network unit to perform configuration according to the configuration information to replace the replaced optical network unit.
The steps executed by the replaced optical network unit are already described in the embodiment shown in fig. 1, and are not described herein again.
Please refer to fig. 3, which is a flowchart illustrating another method for replacing an online onu according to an embodiment of the present application. As shown in fig. 3, the method may be performed by an alternative optical network unit; the method comprises the following steps:
301. sending a replaced request message to a virtual domain, wherein the replaced request message comprises an MAC address of a replaced optical network unit and a replacing current time, and the MAC address and the replacing current time are used for generating a serial code in the virtual domain;
302. receiving a string code request message containing a first string code from the virtual domain;
303. generating a second serial code according to the local MAC address and the replacement current moment;
304. checking whether the first string code is consistent with the second string code;
305. if the two codes are consistent, the verification is successful, a string code confirmation message is sent to the virtual domain, the first string code is displayed to a web page, and the first string code is used for being provided for a replacement optical network unit to generate and send a replacement request; if not, the verification fails, and a serial code confirmation failure message is sent to the virtual domain; the replacement request is used to trigger a virtual domain to send a replacement confirmation message and the configuration information of the replaced optical network unit to the replacement optical network unit, and the replacement confirmation message is used to trigger the replacement optical network unit to perform configuration according to the configuration information to replace the replaced optical network unit.
In an optional implementation manner, after the configuring according to the configuration information, the method further includes:
and sending a replacement success message to the virtual domain, wherein the replacement success message is used for deleting the information of the replaced optical network unit by the virtual domain so as to enable the replaced optical network unit to carry out quick and automatic networking.
The steps executed by the replacement optical network unit are already described in the embodiment shown in fig. 1, and are not described herein again.
In order to more clearly describe the online optical network unit replacement method of the present application, a specific embodiment is further illustrated below.
In practical application, after the FTTR virtual domain is created, a replacement process may be performed:
(1) After the ONU a is online, the ONU a enters its ONU web, and selects and sends a replaced request message, where the message content includes a Virtual Local Area Network (vlan) of the ONU, quality of Service (QoS), a Virtual domain, a Virtual ID, an MAC address, and a replacement current time, where the MAC address and the replacement current time are used for generating a serial code.
(2) And after receiving the replaced request message, the VSRS on the virtual domain records the ONU vlan, the QoS, the virtual domain, the virtual ID and the MAC address, acquires the MAC address and the replacement current time from the configuration information, generates a section of serial code according to a serial code generation algorithm, and sends a serial code request message.
(3) The VSRS generates a string code according to a string code generation algorithm, and the algorithm generation step is as follows: the first step is as follows: generating a string of 10-system character strings based on the MAC address and the replacement current moment; the second step is that: multiplying the value of the even number bit of the character string by 4 and multiplying the value of the odd number bit by 3; the third step: and subtracting the digit number obtained in the second step from 10 to respectively obtain the numerical value of the corresponding digit.
(4) And after the serial code is generated, sending a serial code request message to the replaced ONU A.
(5) The replaced ONU A generates a serial code by a local mac and the reported time through a serial code generation algorithm according to the received serial code request information, checks whether the received serial code is consistent with the generated serial code, sends a serial code confirmation message if the received serial code is consistent with the generated serial code, informs the synchronous redundancy service VSRS that the ONU can be replaced, generates a serial code confirmation failure message if the received serial code is inconsistent with the generated serial code, and terminates the replacement process after the synchronous redundancy service VSRS receives the failure message. The method for generating the string code adopted by the replaced ONU and the VSRS is the same, and is not described herein again.
(6) And after the serial code confirmation message is sent, displaying the serial code on a web page of the ONU A.
(7) Entering a web page for replacing the ONU B, inputting the serial code displayed on the ONU A through the web page of the ONU B, successfully inputting the serial code, clicking a confirmation key, and sending a replacement request.
(8) After receiving the replacement request, the VSRS compares the time of receiving the replacement request with the time of generating the serial code and checks whether the time is overtime; if the ONU is overtime, sending a replacement reject message, if the ONU is not overtime, checking whether a replaced ONU with the same serial code exists, if the ONU exists, sending a replacement confirmation message, sending all configuration information of the ONU to an ONU B, and if the ONU does not exist, sending the replacement reject message.
(9) And after receiving the replacement confirmation message, the ONU B acquires the configuration information, configures the configuration information to the ONU B and sends a replacement success message.
(10) And after receiving the replacement success message, the VSRS deletes the ONU A configuration information and marks the ONU replacement success.
In the FTTR environment, the ONU appears through the virtual ID, and at this time, the replacement process of the ONU is complicated, and the OLT and the gateway need to modify information synchronously, which brings trouble to the maintenance of the ONU. According to the embodiment of the application, the replacement of the ONU is automatically completed by generating and inputting the serial code, the work of operation and maintenance personnel is reduced under the condition of ensuring the safety of the system, and the ONU can be replaced more simply at a user side.
Based on the description of the above-mentioned online optical network unit replacing method embodiment, an online optical network unit replacing device is further disclosed in the embodiment of the present application, please refer to fig. 4, where the online optical network unit replacing device 400 includes:
a receiving module 410, configured to receive a replaced request message, where the replaced request message includes a MAC address of a replaced optical network unit and a replacement current time;
a generating module 420, configured to generate a first serial code according to the MAC address of the replaced optical network unit and the replacement current time;
a sending module 430, configured to send a string request message including the first string to the replaced optical network unit, where the string request message is used for the replaced optical network unit to verify the first string;
a processing module 440, configured to, when receiving a string confirmation message from the replaced optical network unit, display the first string to a web page of the replaced optical network unit, where the first string is used to be provided to a replacement optical network unit to generate and send a replacement request;
a detecting module 450, configured to check whether there is a replaced optical network unit that matches the first string code after receiving the replacement request;
the sending module 430 is further configured to send a replacement confirmation message to the replacement optical network unit if the configuration information of the replaced optical network unit exists, and send the configuration information of the replaced optical network unit to the replacement optical network unit, where the replacement confirmation message is used to trigger the replacement optical network unit to perform configuration according to the configuration information to replace the replaced optical network unit.
It can be understood that, the related contents related to each module in fig. 4 have been described in detail in the foregoing method embodiment, and specifically refer to the contents in the method embodiment shown in fig. 1, which are not described herein again.
In the online optical network unit replacement device 400 in the embodiment of the present application, the online optical network unit replacement device 400 may automatically and conveniently implement replacement of an online optical network unit, use a string code generation algorithm and corresponding verification, and simultaneously ensure the safety of system replacement, so that a user may manually implement replacement of an ONU at home and open a service.
Based on the description of the above online optical network unit replacement method embodiment, the embodiment of the present application further discloses an online optical network unit replacement device, which includes:
a sending module, configured to send a replaced request message to a virtual domain, where the replaced request message includes a MAC address of the replaced optical network unit and a replacement current time, and the MAC address and the replacement current time are used for the virtual domain to generate a string code;
a receiving module, configured to receive a string request message containing a first string from the virtual domain;
the generating module is used for generating a second serial code according to the local MAC address and the replacement current moment;
the detection module is used for checking whether the first string codes are consistent with the second string codes;
the sending module is further configured to, if the two are consistent, successfully verify, send a string code confirmation message to the virtual domain, and display the first string code to a web page, where the first string code is used to provide a replacement optical network unit to generate and send a replacement request; if not, the verification fails, and a serial code confirmation failure message is sent to the virtual domain;
the replacement request is used for triggering a virtual domain to send a replacement confirmation message and the configuration information of the replaced optical network unit to the replacement optical network unit, and the replacement confirmation message is used for triggering the replacement optical network unit to perform configuration according to the configuration information so as to replace the replaced optical network unit.
It can be understood that, the related contents related to the above modules have been described in detail in the foregoing method embodiment, and specifically refer to the contents in the method embodiment shown in fig. 2, or the steps executed by the replaced optical network unit in the method embodiment shown in fig. 1, which are not described herein again.
Based on the description of the above online optical network unit replacement method embodiment, the embodiment of the present application further discloses an online optical network unit replacement device, which includes:
a sending module, configured to send a replacement request including a first string code to a virtual domain, where the first string code is a string code provided by a replaced optical network unit, and the first string code is generated based on an MAC address of the replaced optical network unit and a replacement current time; the replacement request is used for the virtual domain to check whether a replaced optical network unit matched with the first serial code exists, and if the replaced optical network unit exists, a replacement confirmation message and configuration information of the replaced optical network unit are sent to the replacement optical network unit;
and the configuration module is used for configuring to replace the replaced optical network unit according to the configuration information under the condition of receiving the replacement confirmation message.
It can be understood that, the relevant content related to the above modules has been described in detail in the foregoing method embodiment, and specifically, refer to the content in the method embodiment shown in fig. 3, or the step performed by the replacement optical network unit in the method embodiment shown in fig. 1, which is not described herein again.
In one embodiment of the application, an electronic device is also provided. Please refer to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 5, the electronic device 500 comprises a processor 501 and a memory 502, wherein the memory 502 stores a computer program, and the computer program, when executed by the processor 501, performs any of the steps in the method embodiment shown in fig. 1, or any of the steps in the method embodiment shown in fig. 2, or any of the steps in the method embodiment shown in fig. 3, etc.
In an embodiment, a computer-readable storage medium is also proposed, which stores a computer program, which, when executed by the processor 501, causes the processor 501 to perform any of the steps in the embodiments as shown in fig. 1, fig. 2 or fig. 3.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An online optical network unit replacement method, the method comprising:
receiving a replaced request message, wherein the replaced request message comprises the MAC address of the replaced optical network unit and the replacement current moment;
generating a first serial code according to the MAC address of the replaced optical network unit and the replacement current moment;
sending a string request message containing the first string to the replaced optical network unit, wherein the string request message is used for the replaced optical network unit to verify the first string;
when a string code confirmation message from the replaced optical network unit is received, the first string code is displayed to a web page of the replaced optical network unit, and the first string code is used for being provided for a replacing optical network unit to generate and send a replacing request;
after receiving the replacement request, checking whether a replaced optical network unit matched with the first serial code exists;
if the configuration information exists, a replacement confirmation message is sent to the replacement optical network unit, and the configuration information of the replaced optical network unit is sent to the replacement optical network unit, wherein the replacement confirmation message is used for triggering the replacement optical network unit to carry out configuration according to the configuration information so as to replace the replaced optical network unit.
2. The method of claim 1, wherein the verifying the first string by the replaced onu comprises:
the replaced optical network unit generates a second serial code according to the local MAC address and the replacement current moment;
checking whether the first string and the second string are consistent;
if the two codes are consistent, the verification is successful, and the serial code confirmation message is triggered; if not, the verification fails, and a string code confirmation failure message is triggered.
3. The method of claim 1, wherein after receiving the replacement request, the method further comprises:
checking whether the time of the replacement request is overtime;
if yes, sending a replacement rejection message to the replacement optical network unit; if not, triggering the step of checking whether the replaced optical network unit matched with the first serial code exists.
4. The method of claim 1, further comprising:
and after receiving the replacement success message from the replacement optical network unit, deleting the information of the replaced optical network unit.
5. An online optical network unit replacement method is applied to a replaced optical network unit, and comprises the following steps:
sending a replaced request message to a virtual domain, wherein the replaced request message comprises a MAC address of the replaced optical network unit and a replacing current moment, and the MAC address and the replacing current moment are used for the virtual domain to generate a serial code;
receiving a string request message containing a first string from the virtual domain;
generating a second serial code according to the local MAC address and the replacement current moment;
checking whether the first string and the second string are consistent;
if the two codes are consistent, the verification is successful, a serial code confirmation message is sent to the virtual domain, the first serial code is displayed to a web page, and the first serial code is used for being provided for a replacement optical network unit to generate and send a replacement request; if not, the verification fails, and a serial code confirmation failure message is sent to the virtual domain;
the replacement request is used for triggering the virtual domain to send a replacement confirmation message and the configuration information of the replaced optical network unit to the replacement optical network unit, and the replacement confirmation message is used for triggering the replacement optical network unit to perform configuration according to the configuration information so as to replace the replaced optical network unit.
6. An online optical network unit replacement method is applied to replacing an optical network unit, and comprises the following steps:
sending a replacement request containing a first serial code to a virtual domain, wherein the first serial code is a serial code provided by a replaced optical network unit and is generated based on an MAC address of the replaced optical network unit and the current replacement time; the replacement request is used for the virtual domain to check whether a replaced optical network unit matched with the first serial code exists, and if the replaced optical network unit exists, a replacement confirmation message and configuration information of the replaced optical network unit are sent to the replacement optical network unit;
and under the condition of receiving the replacement confirmation message, configuring according to the configuration information to replace the replaced optical network unit.
7. The method of claim 6, wherein after the configuring according to the configuration information, the method further comprises:
and sending a replacement success message to the virtual domain, wherein the replacement success message is used for deleting the information of the replaced optical network unit by the virtual domain so as to enable the replaced optical network unit to carry out rapid automatic networking.
8. An online optical network unit replacement apparatus, comprising:
a receiving module, configured to receive a replaced request message, where the replaced request message includes a MAC address of a replaced optical network unit and a replacement current time;
a generating module, configured to generate a first serial code according to the MAC address of the replaced optical network unit and the replacement current time;
a sending module, configured to send a string request message including the first string to the replaced optical network unit, where the string request message is used by the replaced optical network unit to verify the first string;
the processing module is used for displaying the first serial code to a web page of the replaced optical network unit when a serial code confirmation message from the replaced optical network unit is received, and the first serial code is used for being provided for a replacing optical network unit to generate and send a replacing request;
the detection module is used for checking whether a replaced optical network unit matched with the first serial code exists or not after the replacement request is received;
the sending module is further configured to send a replacement confirmation message to the replacement optical network unit if the replacement confirmation message exists, and send configuration information of the replaced optical network unit to the replacement optical network unit, where the replacement confirmation message is used to trigger the replacement optical network unit to perform configuration according to the configuration information to replace the replaced optical network unit.
9. An electronic device, comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1-7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1-7.
CN202211247935.0A 2022-10-12 2022-10-12 Online optical network unit replacement method and device, electronic equipment and storage medium Active CN115334379B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211247935.0A CN115334379B (en) 2022-10-12 2022-10-12 Online optical network unit replacement method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211247935.0A CN115334379B (en) 2022-10-12 2022-10-12 Online optical network unit replacement method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115334379A true CN115334379A (en) 2022-11-11
CN115334379B CN115334379B (en) 2023-03-24

Family

ID=83914953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211247935.0A Active CN115334379B (en) 2022-10-12 2022-10-12 Online optical network unit replacement method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115334379B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020196801A1 (en) * 2001-03-02 2002-12-26 Onn Haran Communication protocol for passive optical network topologies
JP2010057110A (en) * 2008-08-29 2010-03-11 Hitachi Ltd Optical access system, optical communication path switching device, and optical line terminal
CN101827289A (en) * 2010-05-24 2010-09-08 烽火通信科技股份有限公司 Method for acquiring wavelength values by remote equipment in wavelength division multiplex-Ethernet passive optical network (WDM-EPON) passive optical network system
CN101990134A (en) * 2009-07-30 2011-03-23 中兴通讯股份有限公司 Method and system of dynamically managing serial number, optical line terminal and optical network unit
CN102368692A (en) * 2011-09-23 2012-03-07 烽火通信科技股份有限公司 Passive optical network unit replacing method based on logic serial number
CN103166756A (en) * 2011-12-14 2013-06-19 中兴通讯股份有限公司 Method for carrying out authentication announcing on optical network unit and corresponding equipment
CN104486023A (en) * 2014-12-17 2015-04-01 上海斐讯数据通信技术有限公司 Method for retaining synchronous ONU (Optical Network Unit) states in master control panel and line card
CN108900306A (en) * 2018-07-02 2018-11-27 四川斐讯信息技术有限公司 A kind of production method and system of wireless router digital certificate
CN110943783A (en) * 2018-09-25 2020-03-31 中兴通讯股份有限公司 Distance measurement method of optical network, OLT, ONU and optical network system
CN113207050A (en) * 2021-07-06 2021-08-03 武汉长光科技有限公司 Optical network unit replacement method and device, electronic equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020196801A1 (en) * 2001-03-02 2002-12-26 Onn Haran Communication protocol for passive optical network topologies
JP2010057110A (en) * 2008-08-29 2010-03-11 Hitachi Ltd Optical access system, optical communication path switching device, and optical line terminal
CN101990134A (en) * 2009-07-30 2011-03-23 中兴通讯股份有限公司 Method and system of dynamically managing serial number, optical line terminal and optical network unit
CN101827289A (en) * 2010-05-24 2010-09-08 烽火通信科技股份有限公司 Method for acquiring wavelength values by remote equipment in wavelength division multiplex-Ethernet passive optical network (WDM-EPON) passive optical network system
CN102368692A (en) * 2011-09-23 2012-03-07 烽火通信科技股份有限公司 Passive optical network unit replacing method based on logic serial number
CN103166756A (en) * 2011-12-14 2013-06-19 中兴通讯股份有限公司 Method for carrying out authentication announcing on optical network unit and corresponding equipment
CN104486023A (en) * 2014-12-17 2015-04-01 上海斐讯数据通信技术有限公司 Method for retaining synchronous ONU (Optical Network Unit) states in master control panel and line card
CN108900306A (en) * 2018-07-02 2018-11-27 四川斐讯信息技术有限公司 A kind of production method and system of wireless router digital certificate
CN110943783A (en) * 2018-09-25 2020-03-31 中兴通讯股份有限公司 Distance measurement method of optical network, OLT, ONU and optical network system
CN113207050A (en) * 2021-07-06 2021-08-03 武汉长光科技有限公司 Optical network unit replacement method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115334379B (en) 2023-03-24

Similar Documents

Publication Publication Date Title
EP3376389B1 (en) Data processing method and device
CN107426711B (en) Method, device and system for binding or unbinding mobile phone number
CN109272381A (en) Business recommended method, apparatus, electronic equipment and readable storage medium storing program for executing
CN111382164B (en) Service processing method based on block chain network
CN108173911A (en) A kind of micro services fault detect processing method and processing device
CN101350797A (en) Website logging method capable of simplifying user operation, system, client and server
CN105516195A (en) Security authentication system and security authentication method based on application platform login
CN103888255A (en) Identity authentication method, device and system
CN109391618A (en) A kind of method for building up and system of communication link
CN110855652A (en) Safety baseline configuration compliance detection method and device, computer equipment and medium
CN110597541A (en) Interface updating processing method, device, equipment and storage medium based on block chain
CN111245656A (en) Method and system for remote monitoring through mobile equipment
CN110597817A (en) Communication record evidence storing method and device based on block chain and computer equipment
CN115334379B (en) Online optical network unit replacement method and device, electronic equipment and storage medium
CN113645257B (en) Identity authentication method and device, electronic equipment and storage medium
CN114546837A (en) Interface test method, device, equipment and storage medium
CN110881186A (en) Illegal device identification method and device, electronic device and readable storage medium
CN114579473B (en) Application testing method, device, equipment and storage medium
CN108306875B (en) Method and device for controlling access of wired terminal
CN108366122B (en) Code scanning login system, server and method
CN115952515A (en) Data security processing method and device based on big data
CN112564940A (en) Distribution network failure processing method and device, equipment and storage medium
CN111030859B (en) Configuration method and device for port convergence
JP2019029921A (en) Transmitter, receiver, and communication method
CN107786525A (en) The account verification method and device of Webpage

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant