[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108345466B - ONU upgrading method and system - Google Patents

ONU upgrading method and system Download PDF

Info

Publication number
CN108345466B
CN108345466B CN201810438203.7A CN201810438203A CN108345466B CN 108345466 B CN108345466 B CN 108345466B CN 201810438203 A CN201810438203 A CN 201810438203A CN 108345466 B CN108345466 B CN 108345466B
Authority
CN
China
Prior art keywords
size
olt
image
onu
fragment
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
CN201810438203.7A
Other languages
Chinese (zh)
Other versions
CN108345466A (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201810438203.7A priority Critical patent/CN108345466B/en
Publication of CN108345466A publication Critical patent/CN108345466A/en
Application granted granted Critical
Publication of CN108345466B publication Critical patent/CN108345466B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an ONU upgrading method and system, and relates to the technical field of communication. The method comprises the following steps: when the size of the upgrade image file exceeds the maximum allocable memory size of the OLT, the network management server negotiates with the OLT to determine the size of an image fragment downloaded by the OLT each time, the image fragment is obtained by the network management server after the upgrade image file is divided, and the size of each image fragment does not exceed the maximum allocable memory size; the network management server issues a mirror image fragment to the OLT each time, the OLT stores the received mirror image fragment in a pre-allocated download space and then issues the mirror image fragment to the ONU, and then the download space is emptied until all the mirror image fragments are issued. The network management server can automatically and accurately determine the upgrading mode according to the size of the OLT downloading space, can realize ONU upgrading no matter the size of the upgrading image file, does not need manual intervention, and ensures the realization of various services.

Description

ONU upgrading method and system
Technical Field
The invention relates to the technical field of communication, in particular to an ONU upgrading method and system.
Background
A Passive Optical Network (PON) system generally includes an Optical Line Terminal (OLT), an Optical Distribution Network (ODN), a plurality of Optical Network Units (ONUs) or an Optical Network Terminal (ONTs), and the ONUs and the ONTs are collectively referred to as an ONU hereinafter if not particularly described. The OLT is respectively connected with the ONU through the ODN, the OLT is positioned at a network side, and the ONU is positioned at a user side. As value-added services of operators increase, The ONU gradually has more abundant functions, such as providing various services like an intelligent terminal and an intelligent set-top box, in addition To a conventional Fiber-To-The-X (FTTX) function. Because the ONU has more and more functions and larger programs, the upgrading image file of the ONU is also larger and larger. The upgrade image file for common FTTX devices is around 15MB, while the upgrade image file for smart devices has reached 30MB or even more.
The upgrade protocol flows of Gigabit Passive Optical Network (GPON) and Ethernet Passive Optical Network (EPON) are similar, and are all fragmented downloads. Taking the GPON as an example, in the GPON, an upgrading protocol for upgrading the ONU by the OLT conforms to a g.988 software upgrading standard flow, and the method comprises the following steps:
1) and the OLT equipment downloads the ONU mirror image packet from the network management server.
2) And the OLT equipment checks the ONU mirror image packet to ensure the matching of the upgrade packet and the equipment.
3) And the OLT equipment informs the OLT OMCI module to start the ONU upgrading process.
4) And the OMCI module executes the ONU upgrading process according to the specification of the G.988 protocol.
Referring to fig. 1, in the g.988 protocol, the ONU software upgrade includes the following steps:
s101: start download (Start software image download): the OLT informs the upgrade window size ((Window size OltSuportWindowSize supported by the OLT: number of tiles within each upgrade window), the image size, and the upgrade image partition instance.
S102: and window negotiation: the ONU sets the mirror image partition instance notified by the OLT as invalid as a partition to be upgraded; and meanwhile, according to the memory and the message processing capacity, calculating the size of a window (OnuSupportWindowSize) which can be supported by the ONU, wherein the window after negotiation needs to be smaller than the window size notified by the OLT, and the ONU returns the window size after negotiation (WindowSize) to the OLT through a response message.
S103: the OLT prepares for an upgrade fragment download. The window size is set to the window size returned by the ONU in the step S102 message.
S104: download section (Download section): and executing mirror image packet issuing. An OMCI message contains one Section (Section), each Section having a size of: slice size SectionSize. Each upgrade window contains a fixed number of fragments.
S105: window fragment message response: in order to improve the downloading efficiency and the correctness of the downloading fragments, aiming at the last fragment message in each window or the abnormal fragment message processed by the ONU, the ONU needs to respond to the OLT; no response is required for other fragmented messages within the window.
S106: and after finding that the response of the ONU slicing message is failed, the OLT prepares to retransmit all messages of the current window.
S107: the OLT starts the retransmission of the fragmentation message to the ONU. Starting with the first message of this window.
S108: and after the current window is distributed, the response of the ONU is successful. The OLT prepares to issue the next window.
S109: after the OLT distributes the last window, the actual size of the last window is smaller than the negotiated size of S102 because the size of the entire mirror may not be an integer multiple of the size of the window.
S110: and the OLT starts the fragment message transmission of the last window of the upgrading mirror image of the ONU.
S111: and the ONU responds to the last fragment message of the mirror image. The OLT aborts the image distribution operation.
S112: end download (End download): and the OLT sends a message to inform the ONU of the end of downloading. The message contains the actual size of the image and a CRC check value. And the ONU merges all the downloading fragments and performs CRC.
S113: and after the CRC passes, the ONU sets the mirror image to be valid.
The key parameters included in the upgrade process include:
image size (ImageSize), window size (WindowSize), slice size (sectionalsize), window number (WindowNum), slice number (sectionalnum), OLT-supported window size (OltSupportWindowSize), ONU-supported window size (OnuSupportWindowSize). Wherein, the calculation formula of the related parameters is as follows: WindowSize ═ Min (OltSupportWindowSize, OnuSupportWindowSize); WindowNum ═ Ceiling (ImageSize/(WindowSize:sectionsize)); section _ num ═ Ceiling (ImageSize/Section size), where Window size WindowSize refers to the Number of slices in a Window, WindowNum is how many windows a mirror contains, and the Ceiling function is to round parameter Number up (in the direction toward infinity).
In the whole upgrading process, the OLT completes one-time image file downloading, and the ONU completes one-time image writing, so that the OLT and the ONU need to distribute a memory to cache the upgrading image file. The current processing mode is that the OLT and the ONU allocate memory according to the size of the image. However, if the remaining memory of the system is insufficient, the system cannot be upgraded.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide an ONU upgrading method and system, wherein a network management server can automatically and accurately determine an upgrading mode according to the size of an OLT downloading space, can realize ONU upgrading regardless of the size of an upgrading image file, does not need manual intervention, and ensures the realization of various services.
The invention provides an ONU upgrading method, which comprises the following steps:
when the size of the upgrade image file exceeds the size of the maximum allocable memory used by the OLT for the upgrade, the network management server negotiates with the OLT to determine the size of an image fragment downloaded by the OLT each time, the image fragment is obtained by the network management server after segmenting the upgrade image file, and the size of each image fragment does not exceed the size of the maximum allocable memory;
the network management server issues a mirror image fragment to the OLT each time, the OLT stores the received mirror image fragment in a pre-allocated download space and then issues the mirror image fragment to the ONU, and then the download space is emptied until all the mirror image fragments are issued.
On the basis of the technical scheme, after receiving a negotiation request message sent by the network management server, the OLT calculates the size of the maximum allocable memory according to the residual memory and informs the network management server.
On the basis of the technical scheme, the network management server determines the size of the mirror image fragment DownloadSize according to the obtained window size WindowSize and fragment size sectorsize determined by the negotiation between the OLT and the ONU, and the following mapping relationship exists: (ii) DownloadWindowNum ═ DownloadWindowNum [ (WindowSize [) ] section size ], (wherein DownloadWindowNum is the total number of windows in the mirror tile, DownloadWindowNum is a positive integer, and DownloadWindowNum [ ((WindowSize [) ] section size ] is not greater than the size of the maximum allocable memory, (DownloadWindowNum +1) [ WindowSize ] section size is greater than the size of the maximum allocable memory.
On the basis of the technical scheme, the network management server divides the upgrade image file in the following way:
rounding a discarded decimal part of M ═ ImageSize/DownloadSize, wherein ImageSize is the size of the upgrade image file;
if ImageSize/DownloadSize is an integer, dividing the upgrade image file into M image fragments, wherein the sizes of the M image fragments are the same;
if ImageSize/DownloadSize is not an integer, the upgrade image file is divided into M +1 image fragments, the first M image fragments have the same size, and the last image fragment has a size smaller than the size DownloadSize of the first M image fragments.
On the basis of the above technical solution, the issuing, by the OLT, of one of the image fragments to one of the ONUs specifically includes:
the OLT stores the image fragment in the download space and then issues the image fragment to the ONU, and starts an image fragment upgrade mark to monitor the download progress of the ONU;
the ONU writes the mirror image fragments into a local backup partition and then sends a successful response to the OLT;
and when the image fragment upgrading mark is set as an end mark, the OLT clears the downloading space and resets the image fragment upgrading mark.
On the basis of the technical scheme, issuing one image fragment to a plurality of ONUs specifically includes:
when the OLT receives one mirror image fragment, the OLT simultaneously issues the mirror image fragment to a plurality of ONUs, and starts one mirror image fragment upgrading mark for each ONU to monitor the progress;
and when all the ONUs successfully download the image fragments, the OLT empties the download space and resets all the image fragment upgrading marks.
On the basis of the technical scheme, the method further comprises the following steps: when any ONU has an unrecoverable error, the OLT stops the upgrading of the ONU and deletes the image fragment upgrading mark of the ONU; and continuously upgrading other ONUs.
The invention also provides an ONU upgrading system which comprises a first negotiation module and a partition module which are arranged on the network management server, and a second negotiation module and a sending module which are arranged on the OLT.
The first negotiation module is used for negotiating with the second negotiation module to determine the size of the image fragment downloaded by the OLT each time;
the segmentation module is used for segmenting the upgrade image file into a plurality of image fragments when judging that the size of the upgrade image file exceeds the size of the maximum allocable memory used by the OLT for the upgrade, and sequentially issuing the image fragments to the OLT, wherein the size of each image fragment does not exceed the size of the maximum allocable memory;
and the issuing module is used for storing the image fragments into a pre-allocated downloading space and issuing the image fragments to the ONU when receiving one image fragment, and then emptying the downloading space.
On the basis of the technical scheme, the system further comprises a calculation module arranged on the OLT, wherein the calculation module is used for calculating the size of the maximum allocable memory according to the residual memory.
On the basis of the above technical solution, the partitioning module is further configured to determine the size of the mirror image partition according to a WindowSize and a partition size sectorsize determined by negotiation between the OLT and the ONU, where the following mapping relationship exists: (ii) DownloadWindowNum ═ DownloadWindowNum [ (WindowSize [) ] section size ], (wherein DownloadWindowNum is the total number of windows in the mirror tile, DownloadWindowNum is a positive integer, and DownloadWindowNum [ ((WindowSize [) ] section size ] is not greater than the size of the maximum allocable memory, (DownloadWindowNum +1) [ WindowSize ] section size is greater than the size of the maximum allocable memory.
Compared with the prior art, the invention has the following advantages:
(1) when the size of the upgrade image file exceeds the maximum allocable memory size of the OLT, the network management server and the OLT negotiate to determine the size of the image fragment of the OLT for the upgrade, and the network management server sequentially issues the image fragment; when the size of the upgrade image file does not exceed the maximum allocable memory size, the upgrade image file is downloaded for upgrade at one time according to a conventional mode, so that the network management server can automatically and accurately determine the upgrade mode according to the maximum allocable memory size of the OLT, the ONU upgrade can be realized no matter how the size of the upgrade image file is, the manual intervention is not needed, and the realization of various services is ensured.
(2) The ONU upgrades the image file and is disassembled into the downloading and writing-in process of a plurality of image fragments, OLT and ONU adopt the flow-type upgrade mode of 'downloading while upgrading', and the size of the image fragment is determined according to the window size and the fragment size between OLT and ONU, only the existing network management server and OLT are modified, the ONU does not need to be pre-embedded with software function, so that the OLT and ONU still execute according to the existing G.988 protocol standard, the window verification function of the Download fragment (Download fragment) stage can still be realized in the flow-type upgrade process, and the universality is higher.
Drawings
Fig. 1 is a flow chart of ONU software upgrade in g.988 protocol;
fig. 2 is a flowchart illustrating negotiation of download space between a network management server and an OLT in the ONU updating method according to the first embodiment of the present invention;
fig. 3 is a flowchart of an ONU updating method according to a second embodiment of the present invention;
fig. 4 is a flowchart of an ONU updating method according to a fourth embodiment of the present invention;
fig. 5 is a flowchart of an ONU updating method according to a fifth embodiment of the present invention;
fig. 6 is a schematic diagram of an ONU upgrade system according to a sixth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the figures and the embodiments.
The invention provides an ONU upgrading method, which comprises the following steps:
when the size of the upgrade image file exceeds the size of the maximum allocable memory used by the OLT for the upgrade, the network management server negotiates with the OLT to determine the size of an image fragment downloaded by the OLT each time, the image fragment is obtained by the network management server after segmenting the upgrade image file, and the size of each image fragment does not exceed the size of the maximum allocable memory.
The network management server issues a mirror image fragment to the OLT each time, the OLT stores the received mirror image fragment in a pre-allocated download space and then issues the mirror image fragment to the ONU, and then the download space is emptied until all the mirror image fragments are issued.
Referring to fig. 2, a first embodiment of the present invention provides an ONU upgrading method, which is applied to GPON, EPON, and Next Generation Passive Optical Network (NG-PON), and the method includes the following steps:
s1, a network management server obtains the size of the maximum allocable memory used by the OLT for the current upgrade, and the subsequent description refers to the size of the maximum allocable memory used by the OLT for the current upgrade as the size of the maximum allocable memory.
S2, the network management server judges whether the size of the upgrade image file exceeds the size of the maximum distributable memory, if so, the step S3 is carried out; if not, the process proceeds to step S6.
And S3, the network management server sends a message to inform an OLT of the upgrade type, which indicates that the mirror image fragments need to be sequentially sent to the OLT.
And S4, the network management server divides the upgrade image file into a plurality of image fragments and sequentially issues the image fragments to the OLT, the size of the image fragments does not exceed the size of the maximum allocable memory, when the OLT receives one image fragment, the image fragments are stored in a pre-allocated download space and issued to the ONU, and then the download space is emptied.
S5, the OLT judges whether all the mirror image fragments are issued, if not, the step S140 is carried out; if yes, the process is finished.
S6, the network management server sends a message to inform the OLT of the upgrade type, which indicates that the upgrade image file can be downloaded to the OLT at one time, and the OLT directly downloads the whole upgrade image file from the network management server and upgrades the ONU, and the process is finished.
Step S6 specifically includes:
S6.1OLT the upgrade image file is fetched from the network management server by FTP.
S6.2, the network management server prepares to upgrade the mirror image data.
S6.3, the network management server transmits the upgrade image File to the OLT through a File Transfer Protocol (FTP).
S6.4OLT, upgrading the ONU and distributing the upgrading image file. Reference may be made in particular to the flow of fig. 1.
When the size of the upgrade image file exceeds the maximum allocable memory size of the OLT, the network management server and the OLT negotiate to determine the size of the image fragment of the OLT for the upgrade, and the network management server sequentially issues the image fragment; when the size of the upgrade image file does not exceed the maximum allocable memory size, the upgrade image file is downloaded for upgrade at one time according to a conventional mode, so that the network management server can automatically and accurately determine the upgrade mode according to the maximum allocable memory size of the OLT, the ONU upgrade can be realized no matter how the size of the upgrade image file is, the manual intervention is not needed, and the realization of various services is ensured.
Referring to fig. 3, a second embodiment of the present invention provides an ONU updating method, where when the size of an updated image file exceeds the maximum allocable memory size of an OLT, a network management server negotiates with the OLT and issues an image fragment, including the following steps:
s210, the network management server sends an upgrade negotiation request to the OLT, and the upgrade negotiation request message carries the size of the upgrade image file.
And S220, after receiving the negotiation request message sent by the network management server, the OLT calculates the size of the residual memory, and calculates the size of the maximum distributable memory of the current upgrade according to the residual memory.
And S230, the OLT sends a negotiation response message to the network management server, wherein the negotiation response message comprises the size of the maximum allocable memory of the ONU in the upgrading process.
And S240, the network management server compares the size of the upgrade image file with the maximum allocable memory size of the OLT to determine that the OLT has insufficient memory.
And S250, the network management server sends a message to inform an OLT of the upgrade type, which indicates that the mirror image fragments need to be sequentially sent to the OLT.
And S260. the OLT requests the network management server for upgrading the image file through the FTP.
S270, the network management server prepares upgrade image fragment data, the upgrade image fragment data comprises a first image fragment (image fragment 1), and the image fragment 1 is stored in an image fragment downloading buffer area, wherein the size of the image fragment 1 does not exceed the size of the maximum allocable memory.
And S280, the network management server transmits the mirror image fragment 1 to the OLT through the FTP.
And S290, the OLT stores the image fragment into a download space which is pre-allocated according to the size of the image fragment 1, and issues the image fragment 1 to the ONU.
And S291, after the image fragment 1 is issued to the ONU, the OLT clears the downloading space, and the OLT takes the image fragment 2 from the network management server.
S292, the network management server prepares to upgrade the image fragment data, including the image fragment 2, wherein the size of the image fragment 2 does not exceed the size of the download space.
And S293, the network management server transmits the second mirror image fragment (mirror image fragment 2) to the OLT through the FTP.
And S294, the OLT issues the mirror image fragment 2 to the ONU.
And repeating the steps S291 to S294, wherein the size of all the image fragments does not exceed the size of the download space until all the image fragments are distributed.
The ONU upgrading image file is disassembled into a plurality of image fragment downloading and writing processes, the OLT and the ONU adopt a streaming upgrading mode of 'downloading while upgrading', and on the OLT, the memory space required by each image downloading is determined according to the system space. And when the downloaded mirror image fragment is transmitted to the ONU, the use of the downloading space is finished, and the memory space occupied by the downloading space is cleared. And repeating the process to finish the downloading of the whole upgrade image file. On the ONU, memory is allocated only for the content that is downloaded at the time. And after the downloading is finished, executing the operation of writing into the FLASH of the memory partition.
The network management server prepares the upgrade image fragment data according to the request of the OLT, the upgrade image fragment data comprises the image fragment to be issued, and the image fragment is stored in the image fragment downloading buffer area, so that the local memory space of the network management server can be effectively utilized.
A third embodiment of the present invention provides an ONU upgrading method, where, based on the second embodiment of the present invention, when a fragment is downloaded between an OLT and an ONU, a standard protocol requires the ONU to reply an acknowledgement when a window is received, and there is an integer multiple relationship between the size of the mirror fragment and the size of the window in order to ensure that all windows in the mirror fragment can receive the complete acknowledgement of the ONU. Specifically, the network management server obtains a window size WindowSize and a fragment size sectorsize determined by the negotiation between the OLT and the ONU, and determines the size DownloadSize of the image fragment when the network management server prepares to upgrade image fragment data each time: the downlink size is equal to downlink windows num (windows size), the downlink windows num is a positive integer, and the downlink windows num (windows size) is not larger than the size of the maximum allocable memory used by the OLT for the upgrade (downlink windows size +1) (windows size) is larger than the size of the maximum allocable memory used by the OLT for the upgrade.
In an embodiment, the network management server partitions the upgrade image file as follows:
rounding a discarded decimal part when M is (ImageSize/DownloadSize), wherein the ImageSize is the size of the upgrade image file;
if the ImageSize/DownloadSize is an integer, the upgrade image file is divided into M image fragments, and the sizes of the M image fragments are the same;
if the ImageSize/DownloadSize is not an integer, the upgrade image file is divided into M +1 image fragments, the sizes of the first M image fragments are the same, the actual size of the last image fragment is smaller than the size DownloadSize of the first M image fragments, and the OLT can request the ONU to reply and confirm the last fragment according to the protocol requirement.
The ONU upgrades the image file and is disassembled into the downloading and writing-in process of a plurality of image fragments, OLT and ONU adopt the flow-type upgrade mode of 'downloading while upgrading', and the size of the image fragment is determined according to the window size and the fragment size between OLT and ONU, only the existing network management server and OLT are modified, the ONU does not need to be pre-embedded with software function, so that the OLT and ONU still execute according to the existing G.988 protocol standard, the window verification function of the Download fragment (Download fragment) stage can still be realized in the flow-type upgrade process, and the universality is higher.
A fourth embodiment of the present invention provides an ONU updating method, where, based on the third embodiment of the present invention, issuing a mirror fragment to an ONU by an OLT specifically includes:
and the OLT stores the image fragment in a pre-allocated download space and then issues the image fragment to the ONU, and starts an image fragment upgrading mark to monitor the download progress of the ONU.
And the ONU writes the image fragment into the local backup partition and then sends a successful response to the OLT.
And when the image fragment upgrading mark is set as the end mark, the OLT clears the downloading space and resets the image fragment upgrading mark.
Specifically, the upgrade flow of a single ONU is shown in fig. 4, and specifically includes the following steps:
and S301, the OLT allocates a downloading space required by the upgrade, and the size of the downloading space is obtained through negotiation between the OLT and the network management server.
And S302, distributing the internal memory required by upgrading by the ONU. The allocation mechanism is associated with the ONU itself.
And S303, the OLT requests the network management server for the image fragment 1(sec is 1).
S304, the network management server sends the mirror fragment 1 to the OLT. The size of the downloaded image fragment 1 is consistent with the size of the download space allocated by the OLT.
And S305. the OLT starts monitoring the fragment upgrading progress of the ONU. And the OLT locally records a start mark, a issued window number and an end mark of the ONU issued by the current mirror image fragment 1. And after the monitoring is started, the ONU starts to be subjected to fragment upgrading. Referring to fig. 1, the ONU fragmentation upgrading process specifically includes:
(1) the fragment Download is a G.988 standard process and comprises a plurality of Download section message interactions.
(2) And after the last downlink section message in the window is processed, returning to the OLT for responding.
(3) And writing the backup partition FLASH after the window processing is finished.
And S306, writing the mirror image fragment 1 issued by the OLT by the ONU into a local backup partition (namely a partition to be upgraded) by taking a window as a unit.
And S307, after the mirror image fragment 1 is completely distributed, the OLT judges that the mirror image fragment 1 is successfully distributed, and records the update mark of the mirror image fragment as an end mark. And resetting the progress monitoring and starting the issuing process of the next mirror image fragment after the upgrade progress monitoring finds that the mirror image fragment upgrade mark is set with the end mark.
And (4) repeating the steps S303-S307 aiming at the subsequent mirror image fragmentation until all the mirror image fragmentation is finished to be issued.
A fifth embodiment of the present invention provides an ONU updating method, where, based on the fourth embodiment of the present invention, issuing a mirror fragment to multiple ONUs by an OLT specifically includes:
and when the OLT receives one image fragment, the image fragment is simultaneously issued to a plurality of ONUs, and an image fragment upgrading mark is started for each ONU so as to monitor the progress.
And when all the ONUs successfully download the image fragments, the OLT clears the downloading space and resets all the image fragment upgrading marks.
When any ONU has unrecoverable errors, the OLT stops the upgrading of the ONU and deletes the mirror image fragment upgrading mark of the ONU; and continuously upgrading other ONUs.
Specifically, the upgrading process of multiple ONUs is shown in fig. 5, and the specific steps include:
s401, the olt requests the network management server for the image fragment 1(sec ═ 1).
S402, the network management server sends the mirror fragment 1 to the OLT.
And S403, the OLT starts monitoring the fragment upgrading progress of the ONU. And the OLT locally records a start mark, a issued window number and an end mark of the ONU issued by the current mirror image fragment 1. And after the monitoring is started, the fragmented upgrading is started to be executed on all the ONUs.
And S404, the OLT issues the image fragment 1 to the ONU1, the ONU2 and the ONU 3. When the image fragmentation 1 is issued, multiple ONUs are parallel.
And S405, the OLT waits for the upgrading results of the image fragment 1 of the ONU1, the ONU2 and the ONU 3. If the upgrade is successful, the progress monitoring module records that the current fragmentation upgrade results of the ONU1, the ONU2 and the ONU3 are successful.
And S406, when the upgrading results of all the ONUs are successful, resetting the monitoring progress and starting the upgrading of the next image fragment.
And S407, the OLT requests the network management server for the image fragment 2 (sec-2).
And S408, the network management server sends the mirror fragment 2 to the OLT.
And S409, the OLT issues the mirror image fragment 2 to the ONU1, the ONU2 and the ONU3 and monitors the upgrading result of the ONU.
And S410, finally recording that the upgrading of the ONU1 and the ONU2 mirror image fragment 2 is successful.
And S411, the OLT monitors that an unrecoverable error (such as no response due to timeout, unsuccessful retransmission of an upgrade window and the like) occurs in the upgrading of the ONU3 fragment, records that the upgrading of the ONU3 fragment fails, and stops upgrading.
And S412, the OLT upgrading progress monitoring module deletes the ONU3 upgrading progress.
And S413, continuously upgrading other ONUs.
Referring to fig. 6, a sixth embodiment of the present invention provides an ONU upgrade system, where the ONU upgrade system includes a first negotiation module and a partition module that are disposed in a network management server, and a second negotiation module and a distribution module that are disposed in an OLT.
The first negotiation module is used for negotiating with the second negotiation module to determine the size of the image fragment downloaded by the OLT each time.
The segmentation module is used for segmenting the upgrade image file into a plurality of image fragments when judging that the size of the upgrade image file exceeds the size of the maximum allocable memory used by the OLT for the upgrade, and sequentially issuing the image fragments to the OLT, wherein the size of each image fragment does not exceed the size of the maximum allocable memory.
And the issuing module is used for storing the image fragments into the pre-allocated download space and issuing the image fragments to the ONU when receiving one image fragment, and then emptying the download space.
A seventh embodiment of the present invention provides an ONU updating system, where the ONU updating system further includes a computing module disposed in the OLT, and the computing module is configured to compute a size of the maximum allocable memory according to the remaining memory.
An eighth embodiment of the present invention provides an ONU updating system, where the partitioning module is further configured to determine, according to a window size WindowSize and a fragment size sectorsize obtained through negotiation between an OLT and an ONU, a size DownloadSize of the mirror fragment, where the following mapping relationship exists: the allocation size is equal to a maximum allocable memory size (maximum allocable size), wherein the maximum allocable memory size is equal to a maximum allocable memory size (maximum allocable size), and the maximum allocable memory size is equal to a maximum allocable memory size (maximum allocable size).
Specifically, the network management server divides the upgrade image file as follows:
and M ═ discarding decimal fraction rounding (ImageSize/DownloadSize), wherein ImageSize is the size of the upgrade image file.
If the ImageSize/DownloadSize is an integer, the upgrade image file is divided into M image fragments, and the sizes of the M image fragments are the same.
If the ImageSize/DownloadSize is not an integer, the upgrade image file is divided into M +1 image fragments, the sizes of the first M image fragments are the same, and the size of the last image fragment is smaller than the size DownloadSize of the first M image fragments.
The present invention is not limited to the above-described embodiments, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements are also considered to be within the scope of the present invention. Those not described in detail in this specification are within the skill of the art.

Claims (6)

1. An ONU upgrading method is characterized by comprising the following steps:
when the size of the upgrade image file exceeds the size of the maximum allocable memory used by the OLT for the upgrade, the network management server negotiates with the OLT to determine the size of an image fragment downloaded by the OLT each time, the image fragment is obtained by the network management server after segmenting the upgrade image file, and the size of each image fragment does not exceed the size of the maximum allocable memory;
the network management server issues a mirror image fragment to the OLT each time, the OLT stores the received mirror image fragment in a pre-allocated download space and then issues the mirror image fragment to the ONU, and then the download space is emptied until all the mirror image fragments are issued;
after receiving a negotiation request message sent by a network management server, the OLT calculates the size of the maximum allocable memory according to the residual memory and informs the network management server;
the network management server determines the size of the mirror image fragment DownloadSize according to the obtained window size WindowSize and fragment size sectorsize determined by the negotiation between the OLT and the ONU, and the following mapping relationship exists: (ii) DownloadWindowNum = DownloadWindowNum (WindowSize section size), wherein DownloadWindowNum is the total number of windows in the mirror tile, DownloadWindowNum is a positive integer, and DownloadWindowNum (WindowSize section size) is not larger than the size of the maximum allocable memory, (DownloadWindowNum +1) (WindowSize section size) is larger than the size of the maximum allocable memory.
2. The ONU updating method according to claim 1, wherein the network management server partitions the updating image file as follows:
m = (ImageSize/DownloadSize) rounding a discarded decimal part, wherein ImageSize is the size of the upgrade image file;
if ImageSize/DownloadSize is an integer, dividing the upgrade image file into M image fragments, wherein the sizes of the M image fragments are the same;
if ImageSize/DownloadSize is not an integer, the upgrade image file is divided into M +1 image fragments, the first M image fragments have the same size, and the last image fragment has a size smaller than the first M image fragments.
3. The ONU updating method according to claim 1 or 2, wherein the OLT sending the image fragment to an ONU specifically comprises:
the OLT stores the image fragment in the download space and then issues the image fragment to the ONU, and starts an image fragment upgrade mark to monitor the download progress of the ONU;
the ONU writes the mirror image fragments into a local backup partition and then sends a successful response to the OLT;
and when the image fragment upgrading mark is set as an end mark, the OLT clears the downloading space and resets the image fragment upgrading mark.
4. The ONU updating method according to claim 3, wherein issuing one of the image fragments to a plurality of ONUs specifically comprises:
when the OLT receives one mirror image fragment, the OLT simultaneously issues the mirror image fragment to a plurality of ONUs, and starts one mirror image fragment upgrading mark for each ONU to monitor the progress;
and when all the ONUs successfully download the image fragments, the OLT empties the download space and resets all the image fragment upgrading marks.
5. The ONU upgrade method of claim 4, wherein the method further comprises: when any ONU has an unrecoverable error, the OLT stops the upgrading of the ONU and deletes the image fragment upgrading mark of the ONU; and continuously upgrading other ONUs.
6. An ONU upgrade system, characterized in that: the system comprises a first negotiation module and a partition module which are arranged on a network management server, and a second negotiation module and a sending module which are arranged on an OLT;
the first negotiation module is used for negotiating with the second negotiation module to determine the size of the image fragment downloaded by the OLT each time;
the segmentation module is used for segmenting the upgrade image file into a plurality of image fragments when judging that the size of the upgrade image file exceeds the size of the maximum allocable memory used by the OLT for the upgrade, and sequentially issuing the image fragments to the OLT, wherein the size of each image fragment does not exceed the size of the maximum allocable memory;
the issuing module is used for storing the image fragments into a pre-allocated downloading space and issuing the image fragments to the ONU when receiving one image fragment, and then emptying the downloading space;
the system also comprises a calculation module arranged on the OLT, wherein the calculation module is used for calculating the size of the maximum allocable memory according to the residual memory;
the segmentation module is further configured to determine the size of the mirror image fragment DownloadSize according to the obtained window size WindowSize and fragment size sectorsize determined by the negotiation between the OLT and the ONU, where the following mapping relationship exists:
(ii) DownloadWindowNum = DownloadWindowNum (WindowSize section size), wherein DownloadWindowNum is the total number of windows in the mirror tile, DownloadWindowNum is a positive integer, and DownloadWindowNum (WindowSize section size) is not larger than the size of the maximum allocable memory, (DownloadWindowNum +1) (WindowSize section size) is larger than the size of the maximum allocable memory.
CN201810438203.7A 2018-05-09 2018-05-09 ONU upgrading method and system Active CN108345466B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810438203.7A CN108345466B (en) 2018-05-09 2018-05-09 ONU upgrading method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810438203.7A CN108345466B (en) 2018-05-09 2018-05-09 ONU upgrading method and system

Publications (2)

Publication Number Publication Date
CN108345466A CN108345466A (en) 2018-07-31
CN108345466B true CN108345466B (en) 2021-06-04

Family

ID=62955474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810438203.7A Active CN108345466B (en) 2018-05-09 2018-05-09 ONU upgrading method and system

Country Status (1)

Country Link
CN (1) CN108345466B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874432B (en) * 2018-08-17 2022-07-12 深圳市优驰科技有限公司 Wireless firmware upgrade system
CN109002312A (en) * 2018-09-10 2018-12-14 京信通信系统(中国)有限公司 Method for upgrading software, device and upgrade server and equipment
CN109597639B (en) * 2018-12-04 2022-07-05 深圳市创维软件有限公司 Software upgrading method, device, equipment and medium
CN109714653B (en) * 2018-12-28 2022-05-13 武汉长光科技有限公司 Method for accelerating CTC OAM upgrading efficiency
CN111459524A (en) * 2020-04-02 2020-07-28 安谋科技(中国)有限公司 Software upgrading method, device and system
CN111585801A (en) * 2020-04-29 2020-08-25 杭州涂鸦信息技术有限公司 ZigBee device upgrading method and related device
CN113377405A (en) * 2021-07-04 2021-09-10 芯河半导体科技(无锡)有限公司 EPON mirror image upgrading method and system based on dynamic resource adjustment
CN114339492B (en) * 2021-12-31 2024-02-13 博为科技有限公司 ONU equipment upgrading method and related equipment
WO2024167980A1 (en) * 2023-02-07 2024-08-15 Nanotronix Computing Inc. Systems and methods for enhancing fiber-to-the-building/distribution point (fttb/dp)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5142618A (en) * 1986-11-21 1992-08-25 Hitachi, Ltd. Window management apparatus for a document creating apparatus
CN101141197A (en) * 2007-10-18 2008-03-12 中兴通讯股份有限公司 Software download method
CN104113403A (en) * 2014-07-23 2014-10-22 深圳市邦彦信息技术有限公司 Sliding window-based half-duplex communication method and system
CN104144179A (en) * 2013-05-07 2014-11-12 上海斐讯数据通信技术有限公司 System and method for upgrading ONU equipment
CN107809481A (en) * 2017-10-27 2018-03-16 深圳市银河风云网络系统股份有限公司 Radio upgrade method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102145190B1 (en) * 2013-11-06 2020-08-19 엘지전자 주식회사 Mobile terminal and control method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5142618A (en) * 1986-11-21 1992-08-25 Hitachi, Ltd. Window management apparatus for a document creating apparatus
CN101141197A (en) * 2007-10-18 2008-03-12 中兴通讯股份有限公司 Software download method
CN104144179A (en) * 2013-05-07 2014-11-12 上海斐讯数据通信技术有限公司 System and method for upgrading ONU equipment
CN104113403A (en) * 2014-07-23 2014-10-22 深圳市邦彦信息技术有限公司 Sliding window-based half-duplex communication method and system
CN107809481A (en) * 2017-10-27 2018-03-16 深圳市银河风云网络系统股份有限公司 Radio upgrade method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
G.Kramer等.IPACT a dynamic protocol for an Ethernet PON (EPON).《 IEEE Communications Magazine》.2002,第40卷(第2期), *
GPON系统中ONU快速升级技术研究与设计;方倩等;《电视技术》;20120331;第36卷(第3期);第78-80页 *

Also Published As

Publication number Publication date
CN108345466A (en) 2018-07-31

Similar Documents

Publication Publication Date Title
CN108345466B (en) ONU upgrading method and system
US11082262B2 (en) Flow entry generating method and apparatus
DK172084B1 (en) Digital radio telephone system base station
CN113342371B (en) Internet of things equipment upgrading system
EP2222005A2 (en) Dynamic bandwidth allocation circuit, dynamic bandwidth allocation method, dynamic bandwidth allocation program and recording medium
CN112566155B (en) Networking method, device and system
KR20110045591A (en) Method and apparatus for simultaneous update of terminal software in communication system
US20160142247A1 (en) Local network and method of updating a device in a local network
CN103731373B (en) The method of adjustment of bandwidth resources, apparatus and system
US20180026715A1 (en) Message transmission method, apparatus, and system
CN113721966B (en) Node upgrading method and device, storage medium and electronic device
CN114868363B (en) Optical communication device and resource management method
US20080120684A1 (en) Method and System for Upgrading Distributed Set Top Box and Device thereof
CN112994938B (en) Optical network unit upgrading system and method
WO2023151428A1 (en) Home all-optical network gateway version upgrading method, electronic device, and storage medium
CN117579611A (en) Data transmission method and device, storage medium and electronic device
EP3820157A1 (en) Method for managing onu, olt, onu, system and storage medium
CN109120334B (en) Optical fiber position determining method and device, network element, storage medium and processor
CN112804276B (en) Virtual broadband remote access server, control method thereof and communication system
CN113282587A (en) State data transmission method and device, storage medium and electronic device
CN101316191B (en) Software edition upgrading method of user side equipment in Gigabit passive optical network system
CN102946559B (en) The upgrade method of a kind of digital TV terminal, terminal, server and system thereof
KR20090080414A (en) Apparatus and method for managing connection identifier in communication system
CN115766748A (en) OTA mode for WiFi Mesh online upgrade
CN113840277A (en) Download control method, system, terminal and medium for user subscription data

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