CN115174392A - Upgrading method of optical network unit ONU, server and storage medium - Google Patents

Upgrading method of optical network unit ONU, server and storage medium Download PDF

Info

Publication number
CN115174392A
CN115174392A CN202211087016.1A CN202211087016A CN115174392A CN 115174392 A CN115174392 A CN 115174392A CN 202211087016 A CN202211087016 A CN 202211087016A CN 115174392 A CN115174392 A CN 115174392A
Authority
CN
China
Prior art keywords
onu
onu equipment
management server
upgrading
upgrade
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
CN202211087016.1A
Other languages
Chinese (zh)
Other versions
CN115174392B (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 CN202211087016.1A priority Critical patent/CN115174392B/en
Publication of CN115174392A publication Critical patent/CN115174392A/en
Application granted granted Critical
Publication of CN115174392B publication Critical patent/CN115174392B/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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • 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
    • 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 Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the application discloses an upgrading method of an Optical Network Unit (ONU), a server and a storage medium, wherein the ONU is directly upgraded based on a data link layer protocol, so that the upgrading efficiency of the ONU can be improved, and the upgrading maintenance cost of a system is reduced. The upgrading method comprises the following steps: the method comprises the steps that a management server is controlled to periodically send broadcast messages to all ONU equipment in an ONU (optical network unit) upgrading network system, wherein the broadcast messages are obtained based on data link layer protocol design, a network card is arranged on the management server, an application program runs on the ONU equipment, and the management server and the ONU equipment can carry out message interaction based on the data link layer protocol and through the network card and the application program; when the management server receives an information report message sent by the ONU equipment, controlling the management server to analyze the information report message to obtain the version number of the ONU equipment, wherein the information report message comprises the version number of the ONU equipment; and if the version number of the ONU equipment is different from the expected version number, controlling the management server to carry out version upgrading on the ONU equipment.

Description

Upgrading method of optical network unit ONU, server and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to an upgrading method for an optical network unit ONU, a server, and a storage medium.
Background
At present, in a technical scheme for batch upgrading of Optical Network Units (ONUs) based on a switch, before upgrading the ONUs, on one hand, each port connected to an ONU on the switch needs to be reconfigured, and a Virtual Local Area Network (VLAN) and a working mode of the port are set, for example, the working mode is set to an upgrade mode again; on the other hand, because the VLAN is used, when upgrading, it is also necessary to perform IP address translation when performing message interaction between the VLAN of the switch port and the server responsible for the upgrade service.
When the number of the ONUs to be upgraded needs to be expanded, each port on the switch needs to be reconfigured again by adopting the technical scheme, and the mapping relation between the IP address of the ONU and the VLAN of the port on the switch is updated, so that a large amount of preparation work before upgrading is needed before the ONU to be upgraded is expanded in number and is upgraded in a large scale, the ONU upgrading time is prolonged, and the ONU upgrading efficiency is reduced.
Disclosure of Invention
Based on this, it is necessary to solve the above problems, the present application provides an upgrading method, a server and a storage medium for an optical network unit ONU, where the ONU is upgraded by a custom-based data link layer protocol, so as to avoid executing a large amount of preparation work before upgrading the ONU, and directly upgrade the ONU in large quantities, so that the upgrading and capacity expansion of the ONU become more convenient, simple and fast, the upgrading efficiency of the ONU is improved, and meanwhile, a dedicated IP conversion server is not required to perform conversion between an IP address and a VLAN, thereby reducing the system upgrading and maintenance cost.
In a first aspect, the present application provides a method for upgrading an ONU, including:
firstly, a management server is controlled to periodically send broadcast messages to all ONU equipment in an ONU (optical network unit) upgrading network system, wherein the broadcast messages are obtained based on data link layer protocol design, a network card is arranged on the management server, an application program runs on the ONU equipment, and the management server and the ONU equipment can carry out message interaction based on the data link layer protocol and through the network card and the application program;
secondly, when the management server receives an information report message sent by the ONU equipment, the management server is controlled to analyze the information report message to obtain the version number of the ONU equipment, wherein the information report message comprises the version number of the ONU equipment;
and finally, if the version number of the ONU equipment is different from the expected version number, controlling the management server to carry out version upgrading on the ONU equipment. Optionally, in a possible implementation manner of the first aspect, the controlling and managing server performs version upgrade on the ONU device, including:
the control management server determines whether to issue an Internet Protocol (IP) address to the ONU equipment according to the Media Access Control (MAC) address of the ONU equipment;
and if the IP address is sent to the ONU equipment, controlling the management server to send an upgrade message to the ONU equipment, wherein the upgrade message comprises the IP address of the ONU equipment, the IP address is an address for downloading an upgrade file, and the upgrade file is used for upgrading the version of the ONU equipment to the version with the expected version number.
Optionally, in a possible implementation manner of the first aspect, the upgrading method further includes: if the IP address is not sent to the ONU equipment, controlling the management server to send an IP setting message to the ONU equipment, wherein the IP setting message comprises the IP address newly set for the ONU equipment, and the MAC address of the ONU equipment corresponds to the newly set IP address;
and when the management server receives a response message of successful IP setting sent by the ONU equipment, triggering the management server to start sending an upgrade message to the ONU equipment.
Optionally, in a possible implementation manner of the first aspect, the upgrading method further includes: and storing the association relation between the MAC address of the ONU equipment and the newly set IP address into a management server.
Optionally, in a possible implementation manner of the first aspect, after the ONU device is upgraded, the management server receives an information report message retransmitted by the ONU device, and a version number of the ONU device included in the information report message is updated to the upgraded version number.
Optionally, in a possible implementation manner of the first aspect, if the upgraded version number is different from the expected version number and the management software determines that the ONU device is upgraded overtime, the ONU device is determined to have failed to be upgraded, and the management server is controlled to upgrade the version of the ONU device again.
Optionally, in a possible implementation manner of the first aspect, if the ONU device is determined to fail to be upgraded, the management server is controlled to send an upgrade failure prompt message to the user, so as to prompt the user that the ONU device fails to be upgraded this time.
In a second aspect, the present application provides a server comprising:
the system comprises a communication module, an analysis module and an upgrading module;
the communication module periodically sends broadcast messages to all ONU equipment in the ONU upgrading network system, wherein the broadcast messages are obtained based on data link layer protocol design, a network card is arranged on the management server, an application program runs on the ONU equipment, and message interaction can be carried out between the management server and the ONU equipment through the network card and the application program based on the data link layer protocol;
when the communication module receives an information report message sent by ONU equipment, the analysis module analyzes the information report message to obtain the version number of the ONU equipment, wherein the information report message comprises the version number of the ONU equipment;
and if the version number of the ONU equipment is different from the expected version number, the upgrading module carries out version upgrading on the ONU equipment.
In a third aspect, the present application further provides a server, including: a memory and a processor; the memory has executable code stored thereon;
when executed by a processor, the executable code causes the processor to perform the upgrade method as described in the first aspect and its implementation manner, so that the management server performs batch upgrade on the ONU devices based on a data link layer protocol.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon executable code, which, when invoked by a server or management software, causes the server or management software to perform the upgrade method as described in the first aspect and its implementation.
In a fifth aspect, the present application provides an ONU upgrade network system, including:
the management system comprises switch equipment, a management server and ONU equipment, wherein the switch equipment is used for connecting and establishing communication between the management server and the ONU equipment;
the management server is configured to execute the upgrading method according to the first aspect and the implementation manner thereof, so that the ONU upgrading network system performs batch upgrading on the ONU devices based on a data link layer protocol.
The technical scheme provided by the application has the following beneficial effects:
the network card is arranged on the management server, an application program which can perform message interaction based on a data link layer protocol with the management server is run on the ONU equipment, message interaction between the management server and the ONU equipment is realized, further, a broadcast message which is designed based on the data link layer protocol is broadcasted to all the ONU equipment, an information report message including the version number of the ONU equipment is reported after broadcasting, and the management server is controlled to perform version upgrading on the ONU equipment when the version number of the ONU equipment is different from an expected version number. In the technical scheme, the ONU is directly upgraded through the self-defined data link layer protocol, a large amount of preparation work is avoided being executed before the ONU is upgraded, the upgrading and capacity expansion of the ONU are more convenient, simple and rapid, the upgrading efficiency of the ONU is improved, meanwhile, a special IP conversion server is not needed to carry out conversion between an IP address and a VLAN, and the upgrading and maintenance cost of the system is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The foregoing and other objects, features and advantages of the application will be apparent from the following more particular descriptions of exemplary embodiments of the application, as illustrated in the accompanying drawings wherein like reference numbers generally represent like parts throughout the exemplary embodiments of the application.
Fig. 1 is a schematic diagram of a network structure of an ONU upgrade network system in an embodiment of the present application;
fig. 2 is a schematic diagram of an embodiment of an upgrading method for an optical network unit ONU in the embodiment of the present application;
FIG. 3 is a schematic structural diagram of a server in an embodiment of the present application;
fig. 4 is another schematic structural diagram of a server in the embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While embodiments of the present application are illustrated in the accompanying drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms "first," "second," "third," etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
The embodiment of the application provides an upgrading method, a system, a server and a storage medium of an Optical Network Unit (ONU), the ONU is upgraded through a self-defined data link layer protocol, the number of the ONUs upgraded in batches is greatly increased, and the upgrading efficiency of the ONU can be effectively improved.
In order to facilitate understanding of the technical solution in the embodiment of the present application, the following first describes an ONU upgrading network system in the embodiment of the present application, specifically as follows:
as shown in fig. 1, the ONU upgrade network system includes a switch device, a server, and an ONU device, where the switch device includes three switches (switches 1, 2, and 3), the switch 1, the switch 2, and the switch 3 are respectively connected to corresponding ONU devices through network cables, the server includes an FTP server and a management server, and the FTP is a short for File Transfer Protocol (File Transfer Protocol) and is used to store upgrade files and the like for downloading; the management server is a server for running ONU upgrading management software and is used for upgrading ONU equipment in batches based on a data link layer protocol, the switch 2 is respectively in communication connection with the FTP server and the management server, and meanwhile the FTP server and the management server are respectively in communication connection with the switch 1 and the switch 3 through the switch 2. It should be noted that both switches 1 and 3 can also establish a communication connection directly with the FTP server and the management server.
In order to facilitate understanding of the upgrading method of the ONU in the embodiment of the present application, the method is described below with reference to the accompanying drawings, which are as follows:
fig. 2 is a schematic diagram of an embodiment of an upgrading method of an optical network unit ONU in the embodiment of the present application.
As shown in fig. 2, the method for upgrading an ONU in an embodiment of the present application includes:
201. and the control management server periodically sends broadcast messages to all ONU equipment in the ONU upgrading network system, wherein the broadcast messages are obtained based on the data link layer protocol design.
In this embodiment of the present application, after the ONU upgrade network system shown in fig. 1 is completed, the management server may be controlled by management software, specifically, the ONU upgrade management software is installed and run on the management server.
The management server for running the ONU upgrading management software is provided with a network card for performing message interaction with the ONU equipment, correspondingly, the ONU equipment runs an application program APP, and the APP has the function of performing message interaction based on a self-defined data link layer protocol with the ONU upgrading management software. Specifically, the effects of this APP include, but are not limited to: the independent process is not in conflict with other existing ONU APP and cannot influence an external network or be influenced by the external network; the current ONU version, the factory configuration version and the actual ONU version can be reported; can be assigned IP, mask; the functions of upgrading software or configuration, applying factory configuration, automatic restarting and the like can be realized.
Specifically, the periodic transmission of the broadcast message can be controlled by the ONU upgrade management software, and after the ONU upgrade management software configures the upgrade information, the ONU upgrade management software periodically transmits the data link layer-based broadcast packet message to all ONU devices in the current local area network.
In the embodiment of the application, the data link layer protocol is self-defined. Specifically, the broadcast message is designed based on a data link layer protocol, and the message structure thereof includes: the specific description of each field, i.e. the definition of the broadcast packet, is shown in table 1:
TABLE 1
Short description of fields Description of the invention Remarks for note
DA The length is 6, the destination MAC address, if it is a broadcast message, the MAC address The addresses are ff, ff and ff Data link layer transport generic field
SA Length 6, source MAC address Data link layer transport generic field
protocol Type Hort type, indicating protocol type or frame type of the message A self-defining field value, marking the message as a message related to the self-defining ONU upgrading, the processing and return on the ONU needs to be consistent
contents Details of message delivery The data link layer transmits general fields and broadcasts messages in a null mode
202. When the management server receives an information report message sent by the ONU equipment, the management server is controlled to analyze the information report message to obtain the version number of the ONU equipment, wherein the information report message comprises the version number of the ONU equipment.
In the embodiment of the application, after receiving the broadcast message, the ONU device encapsulates the device information such as the version number of the ONU device into an information report message, and returns the information report message to the management server.
When the management server receives the information report message, the ONU upgrade management software controls the management server to analyze the message to obtain the version number of the ONU equipment.
Specifically, the information reporting message may specifically include: a Status field, an SV field, and a CV field, each of which is defined as table 2:
TABLE 2
Properties Description of the invention Remarks for note
Stat us The ONU current state. When the value is 0x01, the equipment is in an idle state and when the value is 0x02, the equipment is in an upgrading state When the value is 0x03, the device is in a programming state With processing and return hold on ONU Consistent, extensible
SV ONU software version number ONU current software version
CV Configuration version number of ONU Configuration version number of ONU currently running
203. And if the version number of the ONU equipment is different from the expected version number, controlling the management server to carry out version upgrading on the ONU equipment.
In the embodiment of the application, the version number of the ONU equipment reported by the ONU equipment is different from the expected version number, which indicates that the ONU equipment needs to be subjected to version upgrading; similarly, if the version number of the ONU device is the same as the expected version number, it indicates that the version of the ONU device is the expected version, and the version upgrade is not required.
Optionally, in an implementation manner of the embodiment of the present application, controlling the management server to perform version upgrade on the ONU device includes:
the control management server determines whether to issue an Internet Protocol (IP) address to the ONU equipment according to the Media Access Control (MAC) address of the ONU equipment;
and if the IP address is sent to the ONU equipment, controlling the management server to send an upgrade message to the ONU equipment, wherein the upgrade message comprises the IP address of the ONU equipment, the IP address is an address for downloading an upgrade file, and the upgrade file is used for upgrading the version of the ONU equipment to the version with the expected version number.
Specifically, the upgrade message includes two fields, which are an ftpseverip field and a FileName field, and the definition of each field is as shown in table 3:
TABLE 3
Attribute Description of the invention Remarks to note
FtpServerIp IP address of FTP server Server storing upgrade files capable of anonymous access
FileName Filename of upgrade file Upgrading file required by ONU (optical network Unit) upgrading
Optionally, in an implementation manner of the embodiment of the present application, the upgrade method further includes: if the IP address is not sent to the ONU equipment, controlling the management server to send an IP setting message to the ONU equipment, wherein the IP setting message comprises the IP address newly set for the ONU equipment, and the MAC address of the ONU equipment corresponds to the newly set IP address;
and when the management server receives a response message of successful IP setting sent by the ONU equipment, triggering the management server to start sending an upgrade message to the ONU equipment.
Specifically, the IP setup packet includes two fields, which are an IP field and a mask field, and the definition of each field is shown in table 4:
TABLE 4
Attribute Description of the invention Remarks to note
Ip IP address of ONU The file is used for subsequent transmission of an upgrade file with an FTP server, is only used in the upgrade and is invalid after being restarted
Mask Mask address of ONU For use with Ip
Further, the response message that the IP setting is successful includes a field, which is a set result setcause field, and the definition of the field is shown in table 5:
TABLE 5
Attribute Description of the preferred embodiment Remarks to note
SetResult When the result value of the ONU response host is 0x00 and the successful value of the task execution is 0x01, the logic problem of the equipment system is caused When the task failure value of (2) is 0x02, the file transmission or in-file is performed when the task failure value caused by the device state problem is 0x03 When the value of the task failure caused by the error is 0x04, the task failure caused by the file writing error is Can be carried out according to actual conditions Field expansion
Optionally, in an implementation manner of the embodiment of the present application, the upgrade method further includes: and storing the association relationship between the MAC address of the ONU equipment and the newly set IP address into a management server.
Optionally, in an implementation manner of the embodiment of the present application, after the ONU device is upgraded, the management server receives an information report message that is retransmitted by the ONU device, and a version number of the ONU device included in the information report message is updated to the upgraded version number.
Optionally, in an implementation manner of the embodiment of the present application, if the upgraded version number is different from the expected version number and the management software determines that the ONU device is upgraded overtime, it is determined that the ONU device is upgraded unsuccessfully, and the management server is controlled to upgrade the version of the ONU device again.
Optionally, in an implementation manner of the embodiment of the present application, if it is determined that the ONU device fails to be upgraded, the control management server sends an upgrade failure prompt message to the user, so as to prompt the user that the ONU device fails to be upgraded this time.
In the embodiment of the application, the network card is arranged on the management server, and meanwhile, an application program which can perform message interaction based on a data link layer protocol with the management server is operated on the ONU equipment, so that the message interaction between the management server and the ONU equipment is realized, further, the broadcast message designed based on the data link layer protocol is used for broadcasting all the ONU equipment, and an information report message comprising the version number of the ONU equipment is reported after broadcasting, and when the version number of the ONU equipment is different from an expected version number, the management server is controlled to perform version upgrading on the ONU equipment. In the technical scheme, the ONU is directly upgraded through the self-defined data link layer protocol, a large amount of preparation work is avoided being executed before the ONU is upgraded, the upgrading and capacity expansion of the ONU are more convenient, simple and rapid, the upgrading efficiency of the ONU is improved, meanwhile, a special IP conversion server is not needed to carry out conversion between an IP address and a VLAN, and the upgrading and maintenance cost of the system is reduced.
Specifically, firstly, because special configuration is not needed for ports of the switches, the ports can be quickly and serially connected and expanded between the switches, the upgrading number of the ONUs is increased, and the upgrading rate is improved; secondly, an additional IP conversion server is not needed to be added for converting the IP address and the port VLAN, so that the maintenance cost of the system is reduced, and the complexity of realizing the ONU batch upgrading is reduced; finally, in the implementation principle, because the self-defined data link layer protocol is used, the protocol does not conflict with the existing functions of the ONU, and therefore, the influence on an external network or the influence by the outside cannot be caused.
For example, based on the ONU upgrade network system shown in fig. 1, the ONU upgrade may be implemented by ONU upgrade management software, and the ONU upgrade process in this application includes the following steps:
step 1: and the ONU upgrading management software controls the management server to send the broadcast message at regular time.
And 2, step: and the ONU upgrade management software receives an information report message returned by the ONU through the management server, wherein the information report message comprises the version number of the ONU. And step 3: and the ONU upgrading management software compares the version number of the ONU with an expected version number and determines whether the ONU needs to be subjected to version upgrading.
And 4, step 4: and if the ONU does not need to carry out version upgrading, updating the upgrading state of the ONU to be successful in upgrading.
And 5: if the ONU needs to carry out version upgrading, the ONU upgrading management software determines whether an IP address is issued to the ONU equipment or not.
Step 6: if the IP address is issued to the ONU equipment, the ONU upgrade management software further determines whether an upgrade message is issued to the ONU equipment.
And 7: if the upgrade message is sent, after the ONU equipment is upgraded, the ONU upgrade management software receives an information report message which is retransmitted by the ONU equipment through the management server, and the version number of the ONU equipment in the information report message is updated to the upgraded version number.
And 8: and if the upgrading message is not issued, the ONU upgrading management software sends an upgrading file to the ONU equipment so as to upgrade the version of the ONU equipment.
And step 9: and if the IP address is not sent to the ONU equipment, the ONU upgrading management software controls the management server to set a message to the IP of the ONU equipment.
And step 10, when the management server receives a response message which is sent by the ONU equipment and has the IP setting success, the ONU upgrading management software triggers the management server to execute the step 6.
Further, in a specific application scenario of the embodiment of the present application, based on the ONU upgrading network system shown in fig. 1, the system may be configured according to the following operations, specifically as follows:
step 11, building an environment based on the network architecture diagram planned in fig. 1, configuring the IP of a host running ONU upgrade management software to be 192.168.85.253, and configuring an FTP server address to be 192.168.85.254;
step 12, configuring a filename onuUpGradeFilename of an ONU upgrading file in ONU upgrading management software, wherein Version2 is behind the Version number of the ONU upgraded software, and the ONU starts upgrading after a network IP pool and a mask address which can be communicated with a host and FTP;
and step 13, the ONU upgrade management software can periodically send a custom broadcast packet, and the ONU receiving the broadcast packet can return the equipment information thereof to the ONU upgrade management software. The software Version number of the ONU at the moment is Version1, is inconsistent with the expected Version number configured in the management software, and indicates that the ONU needs to be updated;
step 14, the ONU upgrade management software randomly takes out the IP 192.168.85.1 and the mask 255.255.255.0 from the connectable network IP pool and encapsulates the IP and the mask into a message, the message is sent to the ONU through a data link layer custom protocol, the IP address and the mask of the ONU are set to be bound with the ONU information cached in the step 3, and the management software updates the upgrade state of the ONU into the upgrade state;
step 15, the ONU returns a message that the IP setting is successful to ONU upgrade management software, the management software packages the FTP server and the upgrade file name and then sends the FTP server and the upgrade file name to the ONU, and meanwhile, the upgrade timeout time of the ONU is set to be 3 minutes in the software;
step 16, the ONU receives an upgrade message sent by ONU upgrade management software, analyzes the upgrade message to the IP of the FTP server and the file name of an upgrade file, downloads the upgrade file from the FTP server and starts upgrading;
and step 17, restarting the operation after the ONU is upgraded successfully, wherein the Version number of the ONU is Version 2. After receiving a broadcast packet periodically sent by ONU upgrade management software, the ONU packages the equipment information into a custom message and returns the custom message;
step 18, after receiving the equipment information message of the upgraded ONU, the ONU upgrading management software compares the equipment information message with the ONU expected version configured in the management software, and at the moment, the comparison result of the version numbers is consistent, and the management software updates the upgrading state of the ONU to be successful; judging the ONU with the overtime time set in the step 5) in the ONU upgrading management software, and updating the upgrading state of the ONU into upgrading failure by the management software.
Corresponding to the embodiment of the application function implementation method, the application also provides a server, a computer readable storage medium and a corresponding embodiment.
Fig. 3 is a schematic structural diagram of a server in an embodiment of the present application.
As shown in fig. 3, the server upgrades the management server 30 in the network system for the ONU, and includes:
a communication module 301, an analysis module 302 and an upgrade module 303;
the communication module 301 is configured to: periodically sending broadcast messages to all ONU equipment in an ONU (optical network unit) upgrading network system, wherein the broadcast messages are designed and obtained based on a data link layer protocol, a network card is arranged on a management server, an application program runs on the ONU equipment, and the management server and the ONU equipment can perform message interaction based on the data link layer protocol and through the network card and the application program;
the parsing module 302 is configured to: when the management server receives an information report message sent by the ONU equipment, analyzing the information report message to obtain the version number of the ONU equipment, wherein the information report message comprises the version number of the ONU equipment;
the upgrade module 303 is configured to: and if the version number of the ONU equipment is different from the expected version number, carrying out version upgrading on the ONU equipment.
Optionally, in an implementation manner of the embodiment of the present application, if the version number of the ONU device is different from the expected version number, the upgrade module 303 may specifically perform the following operations to upgrade the version of the ONU device:
the upgrading module 303 determines whether to issue an Internet Protocol (IP) address to the ONU equipment according to the Media Access Control (MAC) address of the ONU equipment;
if the upgrade module 303 determines that the IP address has been issued to the ONU device, the communication module 301 sends an upgrade message to the ONU device, where the upgrade message includes the IP address of the ONU device, the IP address is an address for downloading an upgrade file, and the upgrade file is used to upgrade the version of the ONU device to the version of the expected version number.
Optionally, in an implementation manner of the embodiment of the present application, if the upgrade module 303 determines that no IP address has been issued to the ONU device, the communication module 301 sends an IP setting message to the ONU device, where the IP setting message includes an IP address newly set for the ONU device, and an MAC address of the ONU device corresponds to the newly set IP address;
when the communication module 301 receives a response message that the IP setting is successful and is sent by the ONU device, the communication module 301 is triggered to start sending an upgrade message to the ONU device.
Optionally, in an implementation manner of the embodiment of the present application, the upgrade module 303 stores an association relationship between the MAC address of the ONU device and the newly set IP address in the management server.
Optionally, in an implementation manner of the embodiment of the present application, after the ONU device is upgraded, the communication module 301 receives an information report message retransmitted by the ONU device, and a version number of the ONU device included in the information report message is updated to the upgraded version number.
Optionally, in an implementation manner of the embodiment of the present application, if the upgraded version number is different from the expected version number and the management software determines that the ONU device is upgraded overtime, the upgrade module 303 determines that the ONU device is upgraded unsuccessfully, and performs the version upgrade on the ONU device again.
Optionally, in an implementation manner of the embodiment of the present application, if it is determined that the ONU device fails to be upgraded, the communication module 301 sends an upgrade failure prompt message to the user, so as to prompt the user that the ONU device fails to be upgraded this time.
With regard to the apparatus in the above-described embodiment, the specific manner in which the respective modules perform the operations and the advantages thereof has been described in detail in the embodiment related to the method, and will not be elaborated upon here.
Fig. 4 is another schematic structural diagram of a server in the embodiment of the present application.
As shown in fig. 4, the server 40 in the embodiment of the present application includes a memory 401 and a processor 402. The memory has stored thereon executable code which, when executed by the processor, causes the processor to perform the method of any of the embodiments described above.
The Processor 402 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 401 may include various types of storage units, such as a system memory, a Read Only Memory (ROM), and a permanent storage device. Wherein the ROM may store static data or instructions that are required by the processor 402 or other modules of the computer. The persistent storage device may be a read-write storage device. The persistent storage may be a non-volatile storage device that does not lose stored instructions and data even after the computer is powered down. In some embodiments, the persistent storage device employs a mass storage device (e.g., magnetic or optical disk, flash memory) as the persistent storage device. In other embodiments, the permanent storage may be a removable storage device (e.g., floppy disk, optical drive). The system memory may be a read-write memory device or a volatile read-write memory device, such as a dynamic random access memory. The system memory may store instructions and data that some or all of the processors require at runtime. Further, the memory 401 may comprise any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), magnetic and/or optical disks, may also be employed. In some embodiments, memory 401 may include a removable storage device that is readable and/or writable, such as a Compact Disc (CD), a read-only digital versatile disc (e.g., DVD-ROM, dual layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (e.g., SD card, min SD card, micro-SD card, etc.), a magnetic floppy disk, or the like. Computer-readable storage media do not contain carrier waves or transitory electronic signals transmitted by wireless or wired means.
The memory 401 has stored thereon executable code which, when processed by the processor 402, may cause the processor 402 to perform some or all of the methods described above.
Furthermore, the method according to the present application may also be implemented as a computer program or computer program product comprising computer program code instructions for performing some or all of the steps of the above-described method of the present application.
Alternatively, the present application may also be embodied as a computer readable storage medium (or machine readable storage medium) having stored thereon executable code (or a computer program, or computer instruction code) which, when executed by a processor of a server, causes the processor to perform some or all of the steps of the above-described method according to the present application.
The present application further provides an ONU upgrade network system, including:
the management system comprises switch equipment, a management server and ONU equipment, wherein the switch equipment is used for connecting and establishing communication between the management server and the ONU equipment;
the management server is configured to execute the upgrading method in the foregoing method embodiment, so that the ONU upgrading network system performs batch upgrading on the ONU devices based on a data link layer protocol. Specifically, one of the structures of the ONU upgrade network system is as shown in fig. 1, where a network card is disposed on a server running ONU upgrade management software, and each ONU runs an APP with an upgrade function.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should be further noted that, in this document, relationships such as first and second, etc., are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Also, the terms include, or any other variation is intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
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 position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application, which are essential or part of the technical solutions contributing to the prior art, or all or part of the technical solutions, may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of the present application.
Having described embodiments of the present application, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. An upgrading method for an Optical Network Unit (ONU), comprising:
the management server is controlled to periodically send broadcast messages to all ONU equipment in an ONU (optical network unit) upgrading network system, wherein the broadcast messages are obtained based on the data link layer protocol design, a network card is arranged on the management server, an application program runs on the ONU equipment, and the management server and the ONU equipment can perform message interaction based on the data link layer protocol and through the network card and the application program;
when the management server receives an information report message sent by the ONU equipment, controlling the management server to analyze the information report message to obtain the version number of the ONU equipment, wherein the information report message comprises the version number of the ONU equipment;
and if the version number of the ONU equipment is different from the expected version number, controlling the management server to carry out version upgrading on the ONU equipment.
2. The upgrade method according to claim 1,
the controlling the management server to perform version upgrade on the ONU equipment comprises the following steps:
controlling the management server to determine whether to issue an Internet Protocol (IP) address to the ONU equipment according to the Media Access Control (MAC) address of the ONU equipment;
and if the IP address is issued to the ONU equipment, controlling the management server to send an upgrade message to the ONU equipment, wherein the upgrade message comprises the IP address of the ONU equipment, the IP address is an address for downloading an upgrade file, and the upgrade file is used for upgrading the version of the ONU equipment to the version of the expected version number.
3. The upgrade method according to claim 2,
the upgrading method further comprises the following steps: if the IP address is not issued to the ONU equipment, controlling the management server to send an IP setting message to the ONU equipment, wherein the IP setting message comprises an IP address newly set for the ONU equipment, and the MAC address of the ONU equipment corresponds to the newly set IP address;
and when the management server receives a response message of successful IP setting sent by the ONU equipment, triggering the management server to start sending an upgrade message to the ONU equipment.
4. The upgrade method according to claim 3,
the upgrading method further comprises the following steps: and storing the association relation between the MAC address of the ONU equipment and the newly set IP address into the management server.
5. The upgrade method according to claims 1 to 4,
and after the ONU equipment is upgraded, receiving the information report message retransmitted by the ONU equipment through the management server, wherein the version number of the ONU equipment in the information report message is updated to the upgraded version number.
6. The upgrade method according to claim 5,
if the upgraded version number is different from the expected version number and the management software determines that the ONU equipment is upgraded overtime, the ONU equipment is determined to be upgraded unsuccessfully, and the management server is controlled to upgrade the version of the ONU equipment again.
7. The upgrade method according to claim 6,
and if the ONU equipment is judged to be failed to be upgraded, controlling the management server to send upgrading failure prompt information to the user for prompting the user that the ONU equipment fails to be upgraded at this time.
8. A server, wherein the server is a management server, comprising:
the system comprises a communication module, an analysis module and an upgrading module;
the communication module periodically sends broadcast messages to all ONU equipment in an ONU (optical network unit) upgrading network system, wherein the broadcast messages are designed based on the data link layer protocol, a network card is arranged on the management server, an application program runs on the ONU equipment, and the management server and the ONU equipment can perform message interaction based on the data link layer protocol and through the network card and the application program;
when the communication module receives an information report message sent by the ONU equipment, the analysis module analyzes the information report message to obtain the version number of the ONU equipment, wherein the information report message comprises the version number of the ONU equipment;
and if the version number of the ONU equipment is different from the expected version number, the upgrading module carries out version upgrading on the ONU equipment.
9. A server, wherein the server is a management server, comprising: a memory and a processor; the memory has executable code stored thereon;
the executable code, when executed by the processor, causes the processor to perform the upgrade method as claimed in claims 1-7 above, to cause the management server to bulk upgrade ONU devices based on data link layer protocol.
10. A computer readable storage medium having stored thereon executable code which, when invoked by a server or management software, causes the server or management software to perform the upgrade method as claimed in claims 1-7 above.
CN202211087016.1A 2022-09-07 2022-09-07 Upgrading method of optical network unit ONU, server and storage medium Active CN115174392B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211087016.1A CN115174392B (en) 2022-09-07 2022-09-07 Upgrading method of optical network unit ONU, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211087016.1A CN115174392B (en) 2022-09-07 2022-09-07 Upgrading method of optical network unit ONU, server and storage medium

Publications (2)

Publication Number Publication Date
CN115174392A true CN115174392A (en) 2022-10-11
CN115174392B CN115174392B (en) 2023-01-31

Family

ID=83481047

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211087016.1A Active CN115174392B (en) 2022-09-07 2022-09-07 Upgrading method of optical network unit ONU, server and storage medium

Country Status (1)

Country Link
CN (1) CN115174392B (en)

Citations (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859182A (en) * 2005-12-25 2006-11-08 华为技术有限公司 Method for edition upgrading of optical network unit ONU
CN101192970A (en) * 2006-11-22 2008-06-04 中兴通讯股份有限公司 Method for automatic synchronization of user device version in Ethernet passive optical network system
WO2009003385A1 (en) * 2007-06-29 2009-01-08 Huawei Technologies Co., Ltd Methods, apparatus and systems for updating equipment
CN101516047A (en) * 2009-04-03 2009-08-26 烽火通信科技股份有限公司 ONU automatic upgrading method in EPON access system
WO2010148870A1 (en) * 2009-12-15 2010-12-29 中兴通讯股份有限公司 Method and system for auto-upgrading firmware version of optical network unit
CN102064955A (en) * 2009-11-17 2011-05-18 中兴通讯股份有限公司 Method and system for remotely upgrading optical network unit
WO2012000251A1 (en) * 2010-06-29 2012-01-05 中兴通讯股份有限公司 Software upgrading method and system for optical node in ethernet passive optical network
CN102546818A (en) * 2012-02-13 2012-07-04 成都欣点科技有限公司 Method and system for upgrading embedded equipment in batches
CN103108262A (en) * 2013-03-07 2013-05-15 烽火通信科技股份有限公司 Method for upgrading configuration file of optical network unit in GPON system
CN103281600A (en) * 2013-06-03 2013-09-04 上海斐讯数据通信技术有限公司 Method for identifying ONU types
CN104270688A (en) * 2014-10-31 2015-01-07 上海斐讯数据通信技术有限公司 System and method for upgrading ONUs (optical network units) on EPON (Ethernet passive optical network) in batch
CN104320281A (en) * 2014-10-31 2015-01-28 杭州华三通信技术有限公司 Optical network unit (ONU) version upgrading method and device
CN105429790A (en) * 2015-11-04 2016-03-23 上海斐讯数据通信技术有限公司 ONU (Optical Network Unit) upgrading method and system and optical network system
CN105450455A (en) * 2015-12-11 2016-03-30 上海市共进通信技术有限公司 System and method for automatically upgrading network devices in batch in factory
WO2016095533A1 (en) * 2014-12-16 2016-06-23 中兴通讯股份有限公司 Method and device for version upgrading
CN106412730A (en) * 2016-09-09 2017-02-15 武汉长光科技有限公司 Method for carrying out remote batch upgrading on ONU (Optical Network Unit) system software in Boot environment
CN106685692A (en) * 2016-11-16 2017-05-17 成都广达新网科技股份有限公司 Method for quickly upgrading ONU in EPON system
CN107911764A (en) * 2017-12-29 2018-04-13 武汉长光科技有限公司 A kind of method for accelerating intensity EPON ONU service management
CN108184174A (en) * 2017-12-29 2018-06-19 武汉长光科技有限公司 A kind of method of self-defined OAM under EPON system
CN109120419A (en) * 2017-06-22 2019-01-01 中兴通讯股份有限公司 Upgrade method, device and the storage medium of optical network unit ONU version
CN109495798A (en) * 2018-12-14 2019-03-19 深圳创维数字技术有限公司 ONU method for upgrading system, device, equipment and computer readable storage medium
WO2019227733A1 (en) * 2018-05-29 2019-12-05 烽火通信科技股份有限公司 Passive optical network system-based capacity expansion method and system
CN110582035A (en) * 2019-08-30 2019-12-17 武汉长光科技有限公司 method for upgrading ONU by using broadband universal service management platform
US20210014109A1 (en) * 2019-07-09 2021-01-14 Arris Enterprises Llc Update to optical networking unit (onu) via an instruction file
CN112994938A (en) * 2021-02-08 2021-06-18 成都康特电子科技股份有限公司 Optical network unit upgrading system and method

Patent Citations (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859182A (en) * 2005-12-25 2006-11-08 华为技术有限公司 Method for edition upgrading of optical network unit ONU
CN101192970A (en) * 2006-11-22 2008-06-04 中兴通讯股份有限公司 Method for automatic synchronization of user device version in Ethernet passive optical network system
WO2009003385A1 (en) * 2007-06-29 2009-01-08 Huawei Technologies Co., Ltd Methods, apparatus and systems for updating equipment
CN101516047A (en) * 2009-04-03 2009-08-26 烽火通信科技股份有限公司 ONU automatic upgrading method in EPON access system
CN102064955A (en) * 2009-11-17 2011-05-18 中兴通讯股份有限公司 Method and system for remotely upgrading optical network unit
WO2010148870A1 (en) * 2009-12-15 2010-12-29 中兴通讯股份有限公司 Method and system for auto-upgrading firmware version of optical network unit
WO2012000251A1 (en) * 2010-06-29 2012-01-05 中兴通讯股份有限公司 Software upgrading method and system for optical node in ethernet passive optical network
CN102546818A (en) * 2012-02-13 2012-07-04 成都欣点科技有限公司 Method and system for upgrading embedded equipment in batches
CN103108262A (en) * 2013-03-07 2013-05-15 烽火通信科技股份有限公司 Method for upgrading configuration file of optical network unit in GPON system
CN103281600A (en) * 2013-06-03 2013-09-04 上海斐讯数据通信技术有限公司 Method for identifying ONU types
CN104270688A (en) * 2014-10-31 2015-01-07 上海斐讯数据通信技术有限公司 System and method for upgrading ONUs (optical network units) on EPON (Ethernet passive optical network) in batch
CN104320281A (en) * 2014-10-31 2015-01-28 杭州华三通信技术有限公司 Optical network unit (ONU) version upgrading method and device
WO2016095533A1 (en) * 2014-12-16 2016-06-23 中兴通讯股份有限公司 Method and device for version upgrading
CN105429790A (en) * 2015-11-04 2016-03-23 上海斐讯数据通信技术有限公司 ONU (Optical Network Unit) upgrading method and system and optical network system
CN105450455A (en) * 2015-12-11 2016-03-30 上海市共进通信技术有限公司 System and method for automatically upgrading network devices in batch in factory
CN106412730A (en) * 2016-09-09 2017-02-15 武汉长光科技有限公司 Method for carrying out remote batch upgrading on ONU (Optical Network Unit) system software in Boot environment
CN106685692A (en) * 2016-11-16 2017-05-17 成都广达新网科技股份有限公司 Method for quickly upgrading ONU in EPON system
CN109120419A (en) * 2017-06-22 2019-01-01 中兴通讯股份有限公司 Upgrade method, device and the storage medium of optical network unit ONU version
CN107911764A (en) * 2017-12-29 2018-04-13 武汉长光科技有限公司 A kind of method for accelerating intensity EPON ONU service management
CN108184174A (en) * 2017-12-29 2018-06-19 武汉长光科技有限公司 A kind of method of self-defined OAM under EPON system
WO2019227733A1 (en) * 2018-05-29 2019-12-05 烽火通信科技股份有限公司 Passive optical network system-based capacity expansion method and system
CN109495798A (en) * 2018-12-14 2019-03-19 深圳创维数字技术有限公司 ONU method for upgrading system, device, equipment and computer readable storage medium
US20210014109A1 (en) * 2019-07-09 2021-01-14 Arris Enterprises Llc Update to optical networking unit (onu) via an instruction file
CN110582035A (en) * 2019-08-30 2019-12-17 武汉长光科技有限公司 method for upgrading ONU by using broadband universal service management platform
CN112994938A (en) * 2021-02-08 2021-06-18 成都康特电子科技股份有限公司 Optical network unit upgrading system and method

Also Published As

Publication number Publication date
CN115174392B (en) 2023-01-31

Similar Documents

Publication Publication Date Title
US9615346B2 (en) Method and apparatus for notifying information change in wireless communication system
EP1000392B1 (en) Embedded network management system for an echelon network
US8312115B2 (en) Network booting apparatus and method
US7085921B2 (en) Embedded OS PXE server
US7013462B2 (en) Method to map an inventory management system to a configuration management system
CN101217411B (en) A method, device and system realizing the upgrading of stacking device software
US20200409893A1 (en) Universal host and non-volatile memory express storage domain discovery for non-volatile memory express over fabrics
US6360260B1 (en) Discovery features for SNMP managed devices
US20140111308A1 (en) Methods and systems for automatic device provisioning in an rfid network using ip multicast
US8904003B2 (en) Method and system for delegated job control across a network
US20130054947A1 (en) Rebooting infiniband clusters
JP6859340B2 (en) Equipment, systems and methods for retrieving, processing and updating global information
CN104426680A (en) Data transmission method, device and system
CN111641730A (en) Scalable address resolution
WO2017032112A1 (en) Method for communicating with board having no central processing unit and communication device
CN106462457A (en) Virtualized application cluster
US20040221298A1 (en) Network device drivers using a communication transport
KR20090084670A (en) Method and system for two-phase mechanism for discovering web services based management service
CN101977160A (en) Reconfigurable method for routing protocol software components in reconfigurable route switching platform
CN115174392B (en) Upgrading method of optical network unit ONU, server and storage medium
US20020174198A1 (en) Management of networked devices
US20080021986A1 (en) Apparatus and method for managing environment information in multi-processor system
CN111698730A (en) Flow control method, operating system, end equipment and distributed system
US10819627B2 (en) Network device stacking
CN111294279B (en) Device and method for setting backup port of network aggregation group in PXE environment

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