CN101141197B - Software download method - Google Patents
Software download method Download PDFInfo
- Publication number
- CN101141197B CN101141197B CN2007101760755A CN200710176075A CN101141197B CN 101141197 B CN101141197 B CN 101141197B CN 2007101760755 A CN2007101760755 A CN 2007101760755A CN 200710176075 A CN200710176075 A CN 200710176075A CN 101141197 B CN101141197 B CN 101141197B
- Authority
- CN
- China
- Prior art keywords
- data
- software
- download
- section
- positional information
- 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
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The present invention discloses a software download method comprising steps below: A. Software data section sequence is downloaded, during which a software provider terminal marks position information of data currently downloaded in the whole software. A software demand terminal locates and saves the downloaded data according to the position information; B. In case of abnormal currently downloaded data, the software provider terminal secondly downloads current data to the software demand terminal according to the position information corresponding to the currently downloaded data. The presentinvention can improve success rate of software download, reduce download time and save network bandwidth resources.
Description
Technical field
The present invention relates to the network communications technology, relate in particular to a kind of method for downloading software that carries out at the network service medium-long range.
Background technology
Gbit passive optical network system (GPON) technology is a kind of broadband passive optical network technology.Fig. 1 is the topological diagram of GPON system.Referring to Fig. 1, in the GPON network, access network equipment is a local side apparatus, i.e. optical line terminal (OLT, Optical Line Terminal), and OLT generally is placed in the local side machine room; And terminal equipment to be Optical Network Terminal (ONT, Optical Network Terminal) then be placed on position away from machine room according to different application demands, comparatively disperse.Connect by optical splitter between OLT and the ONT.
To the maintenance of ONT equipment, proposed in the embodiment of GPON system to be embodied as far-end ONT software downloading method for convenience by ONT management control interface (OMCI, ONT Management Control Interface).This method for downloading software promptly is divided into several data segments to software version based on (segmented stopand wait) agreements such as segmentation stop, when the message that OLT has only a last data segment to transmit is received error-free replying, just can send next section software data.Each data segment comprises one or more data slice again, and data slice sends ONT to by OMCI message.
Above-mentioned method for downloading software mainly comprises following three steps:
The first step: OLT notice ONT wants the downloaded software size, and consults to download window size with ONT.Specifically comprise:
OLT sends the beginning downloading request message to ONT, carries the big or small S of software and download window size M in this message.After ONT receives the beginning downloading request message, the logging software size, and the own download window size N that can support is filled in the response message that begins to download, this response message is returned to OLT, wherein N is smaller or equal to M.Final OLT selects N to download the size of window as this.
Second step: according to the window size that negotiates, OLT downloads software segments to ONT.When downloading each segment data, according to the window size N that is consulted, data segment is divided into N data slice, utilize OMCI message to download respectively.
The 3rd step: ONT receives processing to data downloaded, needs the downloaded software data are carried out validity check in this process, wherein needs at least software data is carried out the CRC-32 verification, will download the result by OMCI message and return to OLT.Comprise the reception processing result information of reflection ONT among the described download result to data download.
Existing this method for downloading software can be finished software download under the normal situation of OMCI information receiving and transmitting.
But, because described prior art is in the message relevant with download, do not have to reflect current just in the information of the position of downloaded software data in the whole software version, in the process of downloading software data, if download the OMCI information drop-out of certain software data sheet, then can't determine the position of current data, so can stop the download of current software, cause current software download to end in failure, and can't recover automatically to download.Therefore, the software download success rate of prior art is lower; If continue to download this software, then need the download whole software of starting from scratch, and the front downloaded contents will be disposed by ONT, so also can cause the waste of download time and network bandwidth resources.
Summary of the invention
In view of this, technical problem to be solved by this invention is to provide a kind of method for downloading software, to improve success rate of software download, reduces download time, the conserve network bandwidth resource.
In order to realize the foregoing invention purpose, main technical schemes of the present invention is:
A kind of method for downloading software, this method comprises:
A, with software data segmentation progressive download, software provides end when downloading each segment data, provide end and the download window burst data download that consults of software requirement end both sides according to software, and identify the positional information of each data slice in each data segment and the data segment; The software requirement end is preserved described data download according to the positional information location of data segment and data slice after receiving data download;
B, occur when unusual in current data downloaded section, software provides end to download the current data section to the software requirement end again according to the positional information of current data downloaded section,
Wherein, the positional information of data segment is the sequence number of notebook data section in the whole software data segment,
Step B specifically comprises: the software requirement end provides end to send the response that reflection current data section is downloaded the result to software after receiving last data slice of current data section; Software provides end after receiving the unusual response of download, downloads the current data section again; Software provides end after receiving the successful response of described download, begins to download next data segment, downloads up to all data of described software to finish.
Preferably, when software provides end to download a data segment, for each data slice wherein, utilize data download sheet request message to send data slice, comprise in the described data download sheet request message: positional information, current data sheet positional information in current data section and the concrete data of current data sheet of current data section in described software to the software requirement end.
Preferably, specifically comprise in the reflection current data section download result's of described software requirement end transmission the response: whether the positional information of current data section, the positional information of described last data slice and expression software requirement end successfully receive the download object information of all data slice in the storage current data section.
Preferably, the positional information of described data slice is notebook data sheet sequence number in the data segment under it.
Preferably, described software provides end to be the local network element equipment of Gbit passive optical network system GPON, and described software requirement end is the terminal equipment of GPON.
With respect to prior art, the present invention mainly is by provide the end current data download of sign residing positional information in the whole software version by software in downloading process, data segment sequence number for example, thereby do not download when successful in certain software data section, can pick up described data segment according to the positional information of this data segment, it is newly downloaded to the software requirement end to lay equal stress on, and the software requirement end also can be located the memory location of current data download apace according to positional information.Therefore the present invention does not download when successful in the software data section, can recover automatically to download, and has improved the software download probability of successful, has reduced download time, and has saved network bandwidth resources.
Description of drawings
Fig. 1 is the topological diagram of GPON system;
Fig. 2 is the main flow chart of the method for the invention;
Fig. 3 is in the flowchart of OLT side when utilizing method of the present invention to download a certain software;
Fig. 4 is in the flowchart of ONT side when utilizing method of the present invention to download a certain software.
Embodiment
Below by specific embodiments and the drawings the present invention is described in further details.
Core concept of the present invention is, with software data segmentation progressive download, in the software download process, software provides the end current data downloaded of sign residing positional information in the whole software version, and the software requirement end is preserved data download according to the positional information location; Occur when unusual in current data downloaded, software provides end to download current data again according to current data downloaded corresponding position information, and the software requirement end can be located the position of current data download again apace, and stores.
Software of the present invention is meant any program, data file or the data folder etc. that can be carried out or be handled by smart machines such as computers.Method for downloading software of the present invention goes for all softwares end and software requirement end is provided, and for example in GPON, OLT provides end for software usually, and ONT is the software requirement end.Providing end and software requirement end as software respectively with OLT among the GPON and ONT in following examples is that example describes.
Fig. 2 is the main flow chart of the method for the invention.Referring to Fig. 2, this flow process comprises:
Next, OLT comprises software data segmentation progressive download and the corresponding a plurality of data slice of download window, and downloads these data slice singly to ONT in every segment data.For each data segment of software, then carry out following steps 202 respectively to step 205.
Among the present invention, OLT downloads confirmation unit with downloading window size N as one.That is: OLT downloads the request of N bar data download sheet continuously and gives ONT, but only to the N bar request confirm.Whenever, successfully download N data slice, then thought the download of having finished a data segment, and can begin the download of next data segment.Wherein comprise at least in the data download sheet request message: current data section sequence number, current data sheet sequence number and concrete data slice.
If the download execution result that returns in the described response is successfully to receive all data slice of having stored the notebook data section, then execution in step 205.
If the download execution result that returns in the described response message is failure, promptly the arbitrary data sheet of notebook data section receives the storage failure, then retransmits this segment data segment data, and promptly the data segment sequence number in the data download sheet request message is constant, returns step 202.
If do not receive the data download sheet response of returning, then retransmit this segment data segment data, promptly the data segment sequence number in the data download sheet request message is constant, returns step 202.
Repeating step 202,203,204,205 wants whole download of data of downloaded software to finish up to described.
The present invention stresses method for downloading software, and to the number of retransmissions in the downloading process, problem such as overtime is not done detailed description.
Fig. 3 is in the flowchart of OLT side when utilizing method of the present invention to download a certain software.Referring to Fig. 3, OLT adopts segmentation to download to software data, in downloading each segment data, according to the described download window burst data download sheet that consults.This flow process specifically comprises:
Step 301, OLT determine to be about to downloaded software size S, flow process and ONT consult to determine the pure software size of data D that carries in pointer P that this downloads window size N, the initial memory location of sensing software and the request of every data download sheet through consultation.The concrete grammar of this step can repeat no more with reference to prior art herein.
Step 302, represent the sequence number of current institute data download section, represent the sequence number of current institute data download sheet, initialization i=0, j=0 with j with i.
Whether step 303 judges j smaller or equal to N-1, if then execution in step 304; Otherwise execution in step 306.
Step 304, begin to read size from pointer P and be the data slice of D, as the j data slice in the i data segment, the j data download sheet request of this data slice by the i data segment is handed down to ONT, this data download sheet request comprises: current data downloaded section sequence number i, data slice sequence number j and described data slice.
Step 305, j is added 1, promptly j++ adds D with P, returns step 303.
Step 306, wait ONT are to N data download sheet request responding.
Step 307, judge whether to receive ONT to N data download sheet request responding, if then execution in step 309; Otherwise, execution in step 308.
Step 308, the current data segment of repeating transmission are about to j and are set to 0, and i is constant, with pointer rollback N * D byte (promptly the prime direction to pointer moves N * D byte), be specially P is deducted the long-pending of N and D, i.e. P-(N * D), return step 303.
Step 309, judgement ONT are to the download execution result in the N data download sheet request responding, this download execution result has identified all data slice whether ONT successfully received and preserved the i data segment, if download the execution result success, then execution in step 310; Otherwise return step 308.
Step 310, judge the current total data of whether having downloaded described software, if, process ends then; Otherwise, execution in step 311.
Step 311, issue next data segment.That is, j is set to 0, and i is added 1, i.e. j++, and return step 303.
By above-mentioned flow process, OLT issues the N bar data download sheet request of No. 0 data segment at first continuously and gives ONT, and the request of a data download sheet of every download then moves the D byte behind the pointer P, waits for N bar data download sheet request responding.If receive ONT to N bar data download sheet request responding, and to download execution result be successfully, then begins to download data segment No. 1; If receive ONT, and download execution result,, download current No. 0 data segment again then with pointer rollback N * D byte (promptly the prime direction to pointer moves the N*D byte) for failure to N bar data download sheet request responding; If do not receive ONT,, download current No. 0 data segment again then also with pointer rollback N * D byte to N bar data download sheet request responding.According to the above-mentioned treatment principle that the N bar data download sheet of data segment is responded, successively the whole software data are downloaded, download successfully up to all data, finish OLT side data download sheet flow process.
Fig. 4 is in the flowchart of ONT side when utilizing method of the present invention to download a certain software.Referring to Fig. 4, this flow process comprises:
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with the people of this technology in the disclosed technical scope of the present invention; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.
Claims (5)
1. a method for downloading software is characterized in that, this method comprises:
A, with software data segmentation progressive download, software provides end when downloading each segment data, provide end and the download window burst data download that consults of software requirement end both sides according to software, and identify the positional information of each data slice in each data segment and the data segment; The software requirement end is preserved described data download according to the positional information location of data segment and data slice after receiving data download;
B, occur when unusual in current data downloaded section, software provides end to download the current data section to the software requirement end again according to the positional information of current data downloaded section,
Wherein, the positional information of data segment is the sequence number of notebook data section in the whole software data segment,
Step B specifically comprises: the software requirement end provides end to send the response that reflection current data section is downloaded the result to software after receiving last data slice of current data section; Software provides end after receiving the unusual response of download, downloads the current data section again; Software provides end after receiving the successful response of described download, begins to download next data segment, downloads up to all data of described software to finish.
2. method according to claim 1, it is characterized in that, when software provides end to download a data segment, for each data slice wherein, utilize data download sheet request message to send data slice, comprise in the described data download sheet request message: positional information, current data sheet positional information in current data section and the concrete data of current data sheet of current data section in described software to the software requirement end.
3. method according to claim 1, it is characterized in that, specifically comprise in the reflection current data section download result's that described software requirement end sends the response: whether the positional information of current data section, the positional information of described last data slice and expression software requirement end successfully receive the download object information of all data slice in the storage current data section.
4. according to each described method of claim 1 to 3, it is characterized in that the positional information of described data slice is notebook data sheet sequence number in the data segment under it.
5. method according to claim 1 is characterized in that, described software provides end to be the local network element equipment of Gbit passive optical network system GPON, and described software requirement end is the terminal equipment of GPON.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101760755A CN101141197B (en) | 2007-10-18 | 2007-10-18 | Software download method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101760755A CN101141197B (en) | 2007-10-18 | 2007-10-18 | Software download method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101141197A CN101141197A (en) | 2008-03-12 |
CN101141197B true CN101141197B (en) | 2011-12-28 |
Family
ID=39192972
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2007101760755A Active CN101141197B (en) | 2007-10-18 | 2007-10-18 | Software download method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101141197B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101309176B (en) * | 2008-06-30 | 2011-01-05 | 中兴通讯股份有限公司 | Data collecting method, system and apparatus |
CN101459619B (en) * | 2009-01-05 | 2011-01-05 | 杭州华三通信技术有限公司 | Method and apparatus for packet transmission processing in network |
CN102195798B (en) * | 2010-03-16 | 2015-08-12 | 中兴通讯股份有限公司 | A kind of method and system of optical network unit of upgrading |
CN102571889A (en) * | 2010-12-22 | 2012-07-11 | 江苏联优信息科技有限公司 | Method for loading firmware versions of sensor nodes in centralized control type wireless sensor network |
CN102547799A (en) * | 2010-12-22 | 2012-07-04 | 江苏联优信息科技有限公司 | Firmware management method of wireless sensing access multiplexing device |
CN102638827B (en) * | 2011-02-12 | 2015-05-06 | 苏州达联信息科技有限公司 | Remote firmware loading method for railway track monitoring sensor node |
CN103581710B (en) * | 2013-10-28 | 2017-04-12 | 青岛海信宽带多媒体技术有限公司 | Upgrade server, set top box and software upgrading method for upgrade server and set top box |
CN105323627B (en) * | 2015-11-24 | 2018-09-04 | 深圳市九洲电器有限公司 | Set-top box JSON data parse storage method and system |
CN108108203B (en) * | 2016-11-25 | 2021-02-26 | 斑马智行网络(香港)有限公司 | Method, device and system for downloading and installing process of installation package |
CN108345466B (en) * | 2018-05-09 | 2021-06-04 | 烽火通信科技股份有限公司 | ONU upgrading method and system |
CN110278267B (en) * | 2019-06-21 | 2021-10-29 | 浙江蓝卓工业互联网信息技术有限公司 | Method and system for limiting use of industrial internet APP |
CN116166332B (en) * | 2023-04-25 | 2023-09-29 | 深圳艾为电气技术有限公司 | Method, device, equipment and medium for parallel loading of compressor driver |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1499868A (en) * | 2002-11-08 | 2004-05-26 | 深圳市中兴通讯股份有限公司 | Method for downloading data based on control instructions along with roate |
CN1764117A (en) * | 2005-10-12 | 2006-04-26 | 杭州华为三康技术有限公司 | Method for transmitting upgrade software to optical network unit in Ethernet passive optical network |
CN1859182A (en) * | 2005-12-25 | 2006-11-08 | 华为技术有限公司 | Method for edition upgrading of optical network unit ONU |
-
2007
- 2007-10-18 CN CN2007101760755A patent/CN101141197B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1499868A (en) * | 2002-11-08 | 2004-05-26 | 深圳市中兴通讯股份有限公司 | Method for downloading data based on control instructions along with roate |
CN1764117A (en) * | 2005-10-12 | 2006-04-26 | 杭州华为三康技术有限公司 | Method for transmitting upgrade software to optical network unit in Ethernet passive optical network |
CN1859182A (en) * | 2005-12-25 | 2006-11-08 | 华为技术有限公司 | Method for edition upgrading of optical network unit ONU |
Also Published As
Publication number | Publication date |
---|---|
CN101141197A (en) | 2008-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101141197B (en) | Software download method | |
CN100385862C (en) | Method for edition upgrading of optical network unit ONU | |
CN109040869B (en) | ONU (optical network unit) rapid upgrading method based on OAM (operation administration and maintenance) protocol in EPON (Ethernet Passive optical network) system | |
CN101782891B (en) | Method and system for communication of distributed system | |
CN101689964B (en) | Method and apparatus for packet transmission using CRC and equal length packets | |
CN101977358A (en) | Method, device and equipment for transmitting data short messages | |
CN104657841A (en) | Express item delivery method, delivery processing method, express cabinet terminal and service system | |
CN101262485A (en) | Authentication method and system, server and client | |
CN113746892B (en) | Remote upgrading method and wireless terminal equipment | |
CN102684899A (en) | Method, ACS (auto-configuration server) and system for obtaining equipment status based on TR069 protocol | |
CN103209195A (en) | Data acquisition method, terminal and far-end device | |
CN101610181B (en) | Method, device and system for realizing failure detection | |
CN111752579A (en) | Bluetooth terminal upgrading method and device, storage medium and electronic equipment | |
CN114221954A (en) | File transmission method and device, electronic equipment and storage medium | |
CN101145843B (en) | A download method for Gbit passive optical network terminal software | |
CN101237664A (en) | Transmission method, device and system for maintenance information | |
CN106375064A (en) | Password keyboard USB communication anomaly recovery method and system | |
CN102868557B (en) | Method for realizing configuration synchronization between network manager and xPON (x-passive optical network) device | |
CN101018106A (en) | A method for transferring securely a large number of data between the maintenance terminal and background device | |
CN101345775B (en) | Synchronization method and system for man-computer command script document between network manager and network element | |
CN101674568B (en) | Integrated service management platform and service subscription method thereof | |
CN100461928C (en) | Device and method for realizing reorienting of veneer equipment serial port | |
CN100548002C (en) | The permanent virtual circuit state inquiry system | |
CN102413454B (en) | Method for data transmission and always online gateway (AOG) system | |
CN101883419A (en) | Synchronization method of client-side information and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |