CN107995033B - ONU configuration file upgrading method and device - Google Patents

ONU configuration file upgrading method and device Download PDF

Info

Publication number
CN107995033B
CN107995033B CN201711235949.XA CN201711235949A CN107995033B CN 107995033 B CN107995033 B CN 107995033B CN 201711235949 A CN201711235949 A CN 201711235949A CN 107995033 B CN107995033 B CN 107995033B
Authority
CN
China
Prior art keywords
configuration file
default configuration
fixed area
onu
write operation
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.)
Active
Application number
CN201711235949.XA
Other languages
Chinese (zh)
Other versions
CN107995033A (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.)
Shenzhen Fh Net Optoelectronics Co ltd
Original Assignee
Shenzhen Fh Net Optoelectronics 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 Shenzhen Fh Net Optoelectronics Co ltd filed Critical Shenzhen Fh Net Optoelectronics Co ltd
Priority to CN201711235949.XA priority Critical patent/CN107995033B/en
Publication of CN107995033A publication Critical patent/CN107995033A/en
Application granted granted Critical
Publication of CN107995033B publication Critical patent/CN107995033B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for upgrading an ONU configuration file. The method comprises the following steps: setting a fixed area in a flash, wherein the fixed area is used for storing default configuration files; judging whether the fixed area can execute read-write operation or not; if the fixed area can execute read-write operation, acquiring a modified default configuration file, and storing the modified default configuration file in the fixed area; and executing the operation of factory restoration and restarting so as to enable the modified default configuration file to take effect. The implementation mode simplifies the upgrading mode of the ONU configuration file, and facilitates the upgrading management of the ONU configuration file.

Description

ONU configuration file upgrading method and device
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for upgrading an ONU configuration file.
[ background of the invention ]
The optical access technology is an implementation mode in the current broadband access technology, and an access network implemented by the optical access technology is called an optical access network. A Passive Optical Network (PON) is an implementation technology of an Optical access Network, the PON technology is an Optical access technology for point-to-multipoint transmission, and an existing PON system mainly includes an Optical Line Terminal (OLT), a Passive Optical Splitter (POS), and an Optical Network Unit (ONU). The OLT is placed in a central machine room and is connected with one or more POS (point of sale); the POS is used for transmitting the data downstream of the OLT to each ONU through an optical shunt and converging the upstream data of the ONU to the OLT; the ONU is placed near or integrated with the user equipment, and provides a user-side interface for the access network, for example, a service interface for residential users. The ONU can be accessed to various user terminals and has a photoelectric conversion function and corresponding maintenance and monitoring functions.
In practical applications, one multi-slot OLT device may have access to thousands of ONU devices. From a business perspective, each operator often customizes the functions of the ONU devices, and even if the ONU devices of the same model face different operators, the ONU devices may have different default configurations. In the face of a large number of ONUs, if one operator has one ONU software version, the problem that the software version is difficult to manage and is easy to be confused appears over time. Therefore, it is urgently needed to solve the problem of cumbersome ONU configuration.
[ summary of the invention ]
The technical problem to be solved by the invention is to provide an ONU configuration file upgrading method and device, and solve the problem of complicated ONU configuration.
In one aspect of the embodiments of the present invention, a method for upgrading an ONU configuration file is provided, including:
setting a fixed area in a flash, wherein the fixed area is used for storing default configuration files;
judging whether the fixed area can execute read-write operation or not;
if the fixed area can execute read-write operation, acquiring a modified default configuration file, and storing the modified default configuration file in the fixed area;
and executing the operation of factory restoration and restarting so as to enable the modified default configuration file to take effect.
In some embodiments, the determining whether the fixed area can perform a read-write operation includes:
judging whether other threads perform write operation or read operation on the fixed area;
and if no other thread executes write operation or read operation on the fixed area, checking whether the default configuration file in the fixed area is safe through a preset algorithm, and if so, judging that the fixed area can execute the read-write operation.
In some embodiments, the obtaining the modified default configuration file includes:
receiving access of a client to an upgrade page through a web management page, wherein the client is connected with the ONU;
and receiving the modified default configuration file uploaded by the client through the upgrade page, thereby acquiring the modified default configuration file.
In some embodiments, the obtaining the modified default configuration file includes:
and receiving the modified default configuration file sent by the multicast tool in a multicast mode, wherein the multicast tool acquires the modified default configuration file from the client.
In some embodiments, the obtaining the modified default configuration file includes:
and receiving a modified default configuration file sent by an OLT, wherein the OLT is in communication connection with the ONU based on an OAM protocol.
In another aspect of the embodiments of the present invention, an ONU configuration file upgrading apparatus is provided, including:
the device comprises a setting module, a storage module and a processing module, wherein the setting module is used for setting a fixed area in the flash, and the fixed area is used for storing a default configuration file;
the judging module is used for judging whether the fixed area can execute read-write operation;
an obtaining module, configured to obtain a modified default configuration file if the fixed area is capable of performing a read-write operation, where the modified default configuration file is stored in the fixed area;
and the execution module is used for executing the operation of factory restoration and restarting so as to enable the modified default configuration file to take effect.
In some embodiments, the determining module is specifically configured to:
judging whether other threads perform write operation or read operation on the fixed area;
and if no other thread executes write operation or read operation on the fixed area, checking whether the default configuration file in the fixed area is safe through a preset algorithm, and if so, judging that the fixed area can execute the read-write operation.
In some embodiments, the obtaining module comprises:
the first receiving unit is used for receiving the access of a client to an upgrade page through a web management page, wherein the client is connected with the ONU;
and the second receiving unit is used for receiving the default configuration file which is uploaded by the client through the upgrading page so as to obtain the modified default configuration file.
In some embodiments, the obtaining module is specifically configured to:
and receiving the modified default configuration file sent by the multicast tool in a multicast mode, wherein the multicast tool acquires the modified default configuration file from the client.
In some embodiments, the obtaining module is specifically configured to:
and receiving a modified default configuration file sent by an OLT, wherein the OLT is in communication connection with the ONU based on an OAM protocol.
In the embodiment of the invention, a fixed area for storing the default configuration file is set in the flash of the ONU equipment, whether the fixed area can execute the read-write operation is judged, when the fixed area can execute the read-write operation, the obtained modified default configuration file is stored in the fixed area, and the ONU executes the operation of factory restoration and restart, so that the configuration file in the fixed area is effective, and the upgrading of the configuration file is completed. The implementation mode does not need to provide a software version for an operator, reduces the workload of software developers, and facilitates the management and maintenance of the version. In addition, when the default configuration file is upgraded, the software version does not need to be compiled again, only the default configuration file needs to be modified, the upgrading mode of the default configuration file is simple, the upgrading time is shortened, and the labor cost is reduced.
[ description of the drawings ]
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a schematic flowchart of an ONU configuration file upgrading method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for acquiring a modified default configuration file in an ONU configuration file upgrading method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an ONU configuration file upgrading apparatus according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an electronic device that executes an ONU configuration file upgrading method according to an embodiment of the present invention.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be noted that, if not conflicted, the various features of the embodiments of the invention may be combined with each other within the scope of protection of the invention. Additionally, while functional block divisions are performed in the device diagrams, with logical sequences shown in the flowcharts, in some cases, the steps shown or described may be performed in a different order than the block divisions in the device diagrams, or the flowcharts.
Referring to fig. 1, fig. 1 is a schematic flowchart of an ONU configuration file upgrading method according to an embodiment of the present invention. As shown in fig. 1, the method includes:
step 11, setting a fixed area in the flash, wherein the fixed area is used for storing default configuration files; the method comprises the steps of applying a fixed area specially in a flash of ONU equipment to store a default configuration file, wherein the size of the fixed area can be reasonably designed according to the size of the configuration file.
Step 12, judging whether the fixed area can execute read-write operation;
and judging whether the fixed area can execute read-write operation, namely judging whether other threads perform write operation or read operation on the fixed area currently. If other threads only perform write operation on the fixed area, the fixed area cannot perform read-write operation currently; if other threads only carry out read operation on the fixed area, the fixed area cannot execute the read-write operation currently. Therefore, the fixed area can perform read-write operation only when no other thread performs write operation or read operation on the fixed area currently.
Further, after it is detected that no other thread executes write operation or read operation on the fixed area at present, it may be further checked whether the default configuration file in the fixed area is safe through a preset algorithm, and when it is checked that the default configuration file is safe, the read-write operation may be executed on the fixed area. For example, whether the default configuration file in the fixed area is secure can be checked through an MD5 encryption and decryption algorithm and a CRC check algorithm, specifically, an MD5 encryption key is set at the head of the default configuration file, a CRC generation code is set at the tail of the default configuration file, a corresponding MD5 decryption key and a corresponding CRC check code are built in the ONU device, and when both of them pass the verification, the fixed area can perform the read-write operation. The purpose of checking the default configuration file through a preset algorithm is to detect whether the default configuration file is tampered or damaged so as to ensure that the default configuration file is safe, and therefore the subsequent updating process is reliable and effective.
After the fixed area is judged to be capable of executing the read-write operation currently, further, whether the fixed area executes the read operation currently or the write operation currently can be judged through a preset method, for example, when the fixed area is judged to be an upgraded interface currently, the write operation is executed; and when the fixed area is judged to be restored to factory, the read operation is executed.
In other embodiments, when there is no other thread currently executing write operation or read operation on the fixed area, it may further be determined whether the device executing read/write operation on the fixed area has the permission of read operation and/or write operation. The specific determination of the authority can refer to the description in the related art.
Step 13, if the fixed area can execute read-write operation, acquiring a modified default configuration file, and storing the modified default configuration file in the fixed area;
and after the fixed area is judged to be capable of executing the read-write operation, acquiring a modified default configuration file, and writing the modified default configuration file into the fixed area. The modified default configuration file is used for upgrading an originally stored default configuration file, and the modified default configuration file can replace the originally stored default configuration file in the fixed area after being written into the fixed area.
In this embodiment, the modified default configuration file may be obtained in the following manner.
The first method is as follows:
and acquiring the modified default configuration file based on a web management page of the ONU. Specifically, as shown in fig. 2, the acquiring of the modified default configuration file includes:
step 131, receiving access of a client to an upgrade page through a web management page, wherein the client is connected with the ONU;
step 132, accepting that the client uploads the modified default configuration file through the upgrade page, so as to obtain the modified default configuration file.
In this embodiment, a client, which may be a desktop computer, a laptop computer, a tablet computer, a smart phone, or the like, establishes a communication connection with the ONU device. After the client is connected with the ONU equipment, the web management page of the ONU is accessed, namely the ONU management system is accessed, then the upgrade page is accessed, the upgrade page is a certain web page in the ONU management system, an option for selecting and uploading the modified default configuration file is opened on the upgrade page, and the local file of the client is selected in a pop-up box, wherein the file is the modified default configuration file. The client can upload the modified default configuration file to the ONU equipment through the tftp protocol, and the ONU performs factory restoration and restart operations in the subsequent process, so that upgrading of the default configuration file of the ONU is completed. It should be noted that the modified default configuration file is pre-stored in the client. The upgrading of the ONU default configuration file is realized by accessing the web management page of the ONU through the client, the variety of the client is not limited, and the operation of a user is facilitated.
The second method comprises the following steps:
and acquiring the modified default configuration file based on a multicast mode. Specifically, the acquiring the modified default configuration file includes: and receiving the modified default configuration file sent by the multicast tool in a multicast mode, wherein the multicast tool acquires the modified default configuration file from the client.
The multicast tool is installed in the client, and the multicast tool acquires the modified default configuration file stored in the client, and then sends the modified default configuration file to the ONU equipment in a multicast mode, wherein when the ONU equipment executes restart operation, the multicast mode is entered, at this time, the ONU equipment starts to receive the modified default configuration file, and after the reception is completed, the ONU equipment executes upgrade operation by itself, for example, automatically restores to leave the factory and restarts, thereby completing the upgrade.
It should be noted that, in the above process, the default configuration files of multiple ONU devices may be updated simultaneously in a multicast manner.
The third method comprises the following steps:
and acquiring the modified default configuration file based on the OLT. Specifically, the acquiring the modified default configuration file includes: and receiving a modified default configuration file sent by an OLT, wherein the OLT is in communication connection with the ONU based on an OAM protocol.
In this embodiment, the modified default configuration file sent by the OLT device connected to the ONU device is directly acquired, and after the ONU device automatically leaves the factory and restarts, the modified default configuration file is enabled to take effect, thereby completing the upgrade of the default configuration file.
It should be noted that the modified default configuration file may also be obtained in other manners. For example, the authority of the OLT device for calling the IP address of the ONU device is set, and according to the authority, the OLT device calls the IP address of the ONU device, so as to remotely open a web management page of the ONU device, and modify the default configuration file of the ONU device through the web management page, where the modification may be to upload the modified default configuration file to the ONU device, or to directly modify the default configuration file on the web management page of the ONU device.
And 14, performing factory restoration and restarting operation to enable the modified default configuration file to take effect.
The embodiment of the invention provides an ONU configuration file upgrading method, which comprises the steps of setting a fixed area for storing a default configuration file in a flash of ONU equipment, judging whether the fixed area can execute read-write operation, storing the obtained modified default configuration file in the fixed area when the fixed area can execute the read-write operation, and executing the operation of factory restoration and restarting by the ONU, so that the configuration file in the fixed area is effective, and the upgrading of the configuration file is completed. The implementation mode does not need to provide a software version for an operator, reduces the workload of software developers, and facilitates the management and maintenance of the version. In addition, when the default configuration file is upgraded, the software version does not need to be compiled again, only the default configuration file needs to be modified, the upgrading mode of the default configuration file is simple, the upgrading time is shortened, and the labor cost is reduced.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an ONU configuration file upgrading apparatus according to an embodiment of the present invention. As shown in fig. 3, the apparatus 20 includes: a setting module 21, a judging module 22, an obtaining module 23 and an executing module 24.
In this embodiment, the setting module 21 is configured to set a fixed area in a flash, where the fixed area is used to store a default configuration file; a judging module 22, configured to judge whether the fixed area can perform a read-write operation; an obtaining module 23, configured to obtain a modified default configuration file if the fixed area is capable of performing a read-write operation, where the modified default configuration file is stored in the fixed area; and the execution module 24 is configured to execute an operation of factory restoration and restart, so that the modified default configuration file is validated.
In this embodiment, the determining module 22 is connected to the obtaining module 23, and the determining module 22 sends a determination result that the fixed area can execute the read-write operation to the obtaining module 23, so that the obtaining module 23 obtains the modified default configuration file according to the determination result, and after the obtaining module 23 obtains the modified default configuration file, the executing module 24 executes an operation of factory restoration and restart according to the modified default configuration file, so that the modified default configuration file takes effect, thereby completing the upgrade operation of the default configuration file.
The determining module 22 is specifically configured to: judging whether other threads perform write operation or read operation on the fixed area; and if no other thread executes write operation or read operation on the fixed area, checking whether the default configuration file in the fixed area is safe through a preset algorithm, and if so, judging that the fixed area can execute the read-write operation.
Referring to fig. 3 as well, the obtaining module 23 includes a first receiving unit 231 and a second receiving unit 232. The first receiving unit 231 is configured to receive an access of a client to an upgrade page through a web management page, where the client is connected to the ONU; the second accepting unit 232 is configured to accept that the client uploads the modified default configuration file through the upgrade page, so as to obtain the modified default configuration file.
In some other embodiments, the obtaining module 23 is specifically configured to: and receiving the modified default configuration file sent by the multicast tool in a multicast mode, wherein the multicast tool acquires the modified default configuration file from the client.
In some other embodiments, the obtaining module 23 is specifically configured to: and receiving a modified default configuration file sent by an OLT, wherein the OLT is in communication connection with the ONU based on an OAM protocol.
It should be noted that, because the contents of information interaction, execution process, and the like between each module and each unit in the ONU configuration file upgrading apparatus in the embodiment of the present invention are based on the same concept as that of the method embodiment of the present invention, the specific contents are also applicable to the ONU configuration file upgrading apparatus. The respective modules in the embodiments of the present invention can be implemented as separate hardware or software, and the combination of the functions of the respective units can be implemented using separate hardware or software as necessary.
The embodiment of the invention provides an ONU configuration file upgrading device, which is characterized in that a fixed area for storing a default configuration file is arranged in a flash of ONU equipment, whether the fixed area can execute read-write operation or not is judged, when the fixed area can execute the read-write operation, the obtained modified default configuration file is stored in the fixed area, and the ONU executes the operation of factory restoration and restart, so that the configuration file in the fixed area is effective, and the upgrading of the configuration file is completed. The implementation mode does not need to provide a software version for an operator, reduces the workload of software developers, and facilitates the management and maintenance of the version. In addition, when the default configuration file is upgraded, the software version does not need to be compiled again, only the default configuration file needs to be modified, the upgrading mode of the default configuration file is simple, the upgrading time is shortened, and the labor cost is reduced.
Referring to fig. 4, fig. 4 is a schematic diagram of a hardware structure of an electronic device for executing an ONU configuration file upgrading method according to an embodiment of the present invention, and as shown in fig. 4, the electronic device 30 includes:
one or more processors 31 and a memory 32, one processor 31 being exemplified in fig. 4.
The processor 31 and the memory 32 may be connected by a bus or other means, as exemplified by the bus connection in fig. 4.
The memory 32 is a non-volatile computer-readable storage medium, and can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules (for example, the setting module 21, the judging module 22, the obtaining module 23, and the executing module 24 shown in fig. 3) corresponding to the ONU configuration file upgrading method in the embodiment of the present invention. The processor 31 executes various functional applications and data processing of the server by running the nonvolatile software program, instructions and modules stored in the memory 32, that is, the ONU configuration file upgrading method in the above-described method embodiment is implemented.
The memory 32 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the ONU configuration file upgrading apparatus, and the like. Further, the memory 32 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 32 optionally comprises a memory remotely located from the processor 31, and these remote memories may be connected to the ONU profile upgrading device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 32, and when executed by the one or more processors 31, perform the ONU configuration file upgrading method in any of the above-described method embodiments, for example, perform the above-described method steps 11 to 14 in fig. 1, and method steps 131 to 132 in fig. 2, to implement the functions of the modules 21 to 24 and the unit 231 and 232 in fig. 3.
The product can execute the method provided by the embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiment of the present invention.
The electronic device of the embodiment of the present invention may specifically be an Optical Network Unit (ONU) device.
An embodiment of the present invention provides a non-volatile computer-readable storage medium, where the non-volatile computer-readable storage medium stores computer-executable instructions, where the computer-executable instructions are executed by an electronic device to perform the ONU configuration file upgrading method in any of the above-described method embodiments, for example, to execute the method steps 11 to 14 in fig. 1 and the method steps 131 to 132 in fig. 2 described above, and implement the functions of the modules 21 to 24 and the unit 231 and 232 in fig. 3.
Embodiments of the present invention provide a computer program product comprising a computer program stored on a non-volatile computer-readable storage medium, where the computer program comprises program instructions that, when executed by a computer, cause the computer to perform the ONU configuration file upgrading method in any of the above-described method embodiments, for example, to perform the above-described method steps 11 to 14 in fig. 1 and method steps 131 to 132 in fig. 2, and to implement the functions of the modules 21 to 24 and the unit 231 and 232 in fig. 3.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. 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 hardware related to instructions of a computer program, which can be stored in a computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. An ONU configuration file upgrading method is characterized by comprising the following steps:
setting a fixed area in a flash, wherein the fixed area is used for storing default configuration files;
judging whether the fixed area can execute read-write operation or not;
if the fixed area can execute read-write operation, acquiring a modified default configuration file, storing the modified default configuration file in the fixed area, upgrading the modified default configuration file, and replacing the default configuration file stored in the fixed area after the modified default configuration file is written into the fixed area;
executing the operation of factory restoration and restarting so as to enable the modified default configuration file to take effect;
the determining whether the fixed area can perform a read-write operation includes:
judging whether other threads perform write operation or read operation on the fixed area;
if no other thread executes write operation or read operation on the fixed area, checking whether the default configuration file in the fixed area is safe through a preset algorithm, and if so, judging that the fixed area can execute read-write operation;
the checking whether the default configuration file in the fixed area is safe through a preset algorithm includes:
acquiring an MD5 encryption key set at the head part of the default configuration file and a CRC generation code set at the tail part;
and respectively checking the MD5 encryption key and the CRC generation code with an MD5 decryption key and a CRC check code which are built in the ONU equipment, wherein when both of the MD5 encryption key and the CRC generation code pass verification, the fixed area can execute read-write operation.
2. The method of claim 1, wherein obtaining the modified default configuration file comprises:
receiving access of a client to an upgrade page through a web management page, wherein the client is connected with the ONU;
and receiving the modified default configuration file uploaded by the client through the upgrade page, thereby acquiring the modified default configuration file.
3. The method of claim 1, wherein obtaining the modified default configuration file comprises:
and receiving the modified default configuration file sent by the multicast tool in a multicast mode, wherein the multicast tool acquires the modified default configuration file from the client.
4. The method of claim 1, wherein obtaining the modified default configuration file comprises:
and receiving a modified default configuration file sent by an OLT, wherein the OLT is in communication connection with the ONU based on an OAM protocol.
5. An ONU configuration file upgrading device, comprising:
the device comprises a setting module, a storage module and a processing module, wherein the setting module is used for setting a fixed area in the flash, and the fixed area is used for storing a default configuration file;
the judging module is used for judging whether the fixed area can execute read-write operation;
an obtaining module, configured to obtain a modified default configuration file if the fixed area is capable of performing a read-write operation, where the modified default configuration file is stored in the fixed area, the modified default configuration file is used to upgrade the default configuration file, and the modified default configuration file replaces the default configuration file stored in the fixed area after being written in the fixed area;
the execution module is used for executing the operation of factory restoration and restarting so as to enable the modified default configuration file to take effect;
the judgment module is specifically configured to:
judging whether other threads perform write operation or read operation on the fixed area;
if no other thread executes write operation or read operation on the fixed area, checking whether the default configuration file in the fixed area is safe through a preset algorithm, and if so, judging that the fixed area can execute read-write operation;
the judgment module is specifically configured to obtain an MD5 encryption key set at the head of the default configuration file and a CRC generation code set at the tail; and respectively checking the MD5 encryption key and the CRC generation code with an MD5 decryption key and a CRC check code which are built in the ONU equipment, wherein when both of the MD5 encryption key and the CRC generation code pass verification, the fixed area can execute read-write operation.
6. The apparatus of claim 5, wherein the obtaining module comprises:
the first receiving unit is used for receiving the access of a client to an upgrade page through a web management page, wherein the client is connected with the ONU;
and the second receiving unit is used for receiving the default configuration file which is uploaded by the client through the upgrading page so as to obtain the modified default configuration file.
7. The apparatus of claim 5, wherein the obtaining module is specifically configured to:
and receiving the modified default configuration file sent by the multicast tool in a multicast mode, wherein the multicast tool acquires the modified default configuration file from the client.
8. The apparatus of claim 5, wherein the obtaining module is specifically configured to:
and receiving a modified default configuration file sent by an OLT, wherein the OLT is in communication connection with the ONU based on an OAM protocol.
CN201711235949.XA 2017-11-30 2017-11-30 ONU configuration file upgrading method and device Active CN107995033B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711235949.XA CN107995033B (en) 2017-11-30 2017-11-30 ONU configuration file upgrading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711235949.XA CN107995033B (en) 2017-11-30 2017-11-30 ONU configuration file upgrading method and device

Publications (2)

Publication Number Publication Date
CN107995033A CN107995033A (en) 2018-05-04
CN107995033B true CN107995033B (en) 2021-11-19

Family

ID=62034647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711235949.XA Active CN107995033B (en) 2017-11-30 2017-11-30 ONU configuration file upgrading method and device

Country Status (1)

Country Link
CN (1) CN107995033B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597639B (en) * 2018-12-04 2022-07-05 深圳市创维软件有限公司 Software upgrading method, device, equipment and medium
CN109919914B (en) * 2019-02-15 2021-04-13 广州视源电子科技股份有限公司 Configuration file checking method and device, computer equipment and storage medium
CN114302269B (en) * 2021-12-17 2024-04-09 博为科技有限公司 ONU access method and device, storage medium and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7672249B2 (en) * 2001-12-13 2010-03-02 Cisco Technology, Inc. Configurable network appliance
CN101516047B (en) * 2009-04-03 2011-06-08 烽火通信科技股份有限公司 ONU automatic upgrading method in EPON access system
CN103108262B (en) * 2013-03-07 2016-03-23 烽火通信科技股份有限公司 The method of optical network unit configuration file upgrading in GPON system
CN103384208B (en) * 2013-05-23 2016-06-01 上海斐讯数据通信技术有限公司 The upgrade-system of the ONU equipment in EPON system and upgrade method
CN103475517B (en) * 2013-09-04 2016-06-29 青岛海信宽带多媒体技术有限公司 Optical network terminal and hardware configuration parameter storing method thereof

Also Published As

Publication number Publication date
CN107995033A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
CN108600029B (en) Configuration file updating method and device, terminal equipment and storage medium
US9921819B2 (en) Persistent mobile device enrollment
CN107995033B (en) ONU configuration file upgrading method and device
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
CN110389766B (en) HBase container cluster deployment method, system, equipment and computer readable storage medium
CN103108262A (en) Method for upgrading configuration file of optical network unit in GPON system
US20140047115A1 (en) Immediately launching applications
CN105468393B (en) Module release upgrade method and terminal installation
CN111698283B (en) Management and control method, device, equipment and storage medium of distributed cluster host
WO2019051948A1 (en) Method, apparatus, server, and storage medium for processing monitoring data
CN113595788B (en) API gateway management method and device based on plug-in
CN108874825B (en) Abnormal data verification method and device
CN107566518B (en) Method and device for managing equipment information in file installation process
CN101453373A (en) Near-end maintenance method, system and equipment for device
CN111585805B (en) Smooth release upgrading method and device, computer system and readable storage medium
CN102137154A (en) Method and device for upgrading customer premise equipment (CPE)
CN104809046A (en) Application program networking control method and application program networking control device
CN109858257B (en) Access control method and device
CN103116545A (en) Intelligent terminal upgrade detection method and system
CN111176703A (en) In-band firmware upgrading method and device, computer system and storage medium
CN103336698A (en) Wifi equipment software upgrading method, wifi equipment and system
CN103259850A (en) Method and device for configuring intelligent terminal
CN109597639B (en) Software upgrading method, device, equipment and medium
CN111381850A (en) BIOS firmware upgrading method, device, equipment and medium
CN109766235A (en) Configuration file detection method, system, equipment and medium based on software supervision

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
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Method and Device for Upgrading ONU Configuration Files

Effective date of registration: 20231031

Granted publication date: 20211119

Pledgee: Shenzhen small and medium sized small loan Co.,Ltd.

Pledgor: SHENZHEN FH-NET OPTOELECTRONICS CO.,LTD.

Registration number: Y2023980063582

PE01 Entry into force of the registration of the contract for pledge of patent right