The upgrade method and system of a kind of EPONTechnical field
Embodiment of the present invention is related to passive optical network technique field, more particularly to a kind of upgrading side of EPONMethod and system.
Background technology
EPON (passive optical network, PON) is the intelligent acess technology of photoelectricity all-optical network,Its downstream data flow uses broadcast technology, and upstream uses TDMA technologies.With anti-interference, bandwidth characteristic and accessApart from the characteristics of.At present, in the soft exchange technology of EPON, comparative maturity is EPON and GPON, and both of whichIt is by optical line terminal (optical line terminal, OLT), ONT Optical Network Terminal (optical networkTerminal, ONU) and passive optical distribution network (optical distribution network) composition.
Existing EPON, in order to adapt to the user's request constantly updated, ONT Optical Network Terminal is also required to constantly updateSoftware repairs some defects.And the situation of ONT Optical Network Terminal upgrading may also be encountered in use.
Chinese patent application the 201310126558.Xth is disclosed and risen between more equipment between a kind of passive optical network equipmentThe method of level, solve the ended questions that multiple terminals high-volume upgrading is realized in EPON, the technical scheme of use is groupBroadcast the version of upgrade server unified management multiple terminals and realize multiple terminals batch upgrade.The advantages of present invention point, is, passes throughTwo layers of procotol communicates, and networking is simple.Multicast upgrading server and terminal are in double layer network, and upgrade file passes throughMulticast upgrading server is issued, and is transparent to by OLT in terminal, and upgrading is voluntarily handled by terminal.Ensure existing network terminal staging notOLT producers are limited to, ensure that storage terminal staging is not only restricted to terminal management IP.
Existing passive optical-fiber network upgrade method is usually centralized remote upgrade, by upgrade server or optical line terminal collectionMiddle upgrading.But existing EPON upgrade technique point upgrades in high-volume, the speed issue of upgrading is had not focused on.The upgrading software of general ONT Optical Network Terminal, it is typically of size of 5,000,000 to 10,000,000 or so, upgrades 5,000,000 an or so ONT Optical Network Terminals,Normal average time is long up to more than 10 minutes about at 7 minutes or so.Because ONT Optical Network Terminal upgrading is in optical line terminal thereIt is serially to upgrade, when the number for upgrading batch increases, the time of upgrading can extend for a long time, and some reaches a hour unit meterCalculate.Network quality is in bad order when running into, and retransmits or during the situation of packet loss, escalation process is time-consuming more long.
Therefore, the upgrading of existing EPON has yet to be improved and developed.
The content of the invention
The present invention is directed to the technical problem present on, there is provided one kind reduces update time, improves upgrading efficiency, and optimization risesThe upgrade method and system of the EPON of level mechanism.
In a first aspect, the technical scheme that embodiment of the present invention provides is:A kind of upgrade method of EPON is provided,The EPON includes optical line terminal and connects some ONT Optical Network Terminals of the optical line terminal, comprises the following steps:
Optical line terminal obtains the block of installation procedure and the code of installation procedure block check of the ONT Optical Network Terminal of connection,
The optical line terminal obtains program block to be upgraded and program block check code to be upgraded, and by each ONT Optical Network TerminalInstallation procedure block and the code of installation procedure block check are compared with the program block to be upgraded and program block check code to be upgraded, reallyDetermine difference program block and difference program block check code;
The ONT Optical Network Terminal receive the optical line terminal transmission difference program block and difference program block check code, and according toThe difference program block upgrades and difference program block check code identical installation procedure block.
Preferably, the ONT Optical Network Terminal includes promoter region and preparation area, in addition to step:
When the ONT Optical Network Terminal is reached the standard grade, by the block of installation procedure of the promoter region and the code of installation procedure block check and it is somebody's turn to doInstallation procedure block and the code of installation procedure block check are uploaded to the optical line terminal for preparation area.
Further, this is according to difference program block upgrading and difference program block check code identical installation procedure blockThe step of the preparation area carry out.
Preferably, after the completion of the block of the installation procedure upgrading of the preparation area, the active information that is issued according to the optical line terminal,Activation enables the preparation area, and the preparation area turns into new promoter region, and the promoter region is converted to new preparation area.
Also wrapped when it is implemented, the optical line terminal obtains the step of program block to be upgraded and program block check code to be upgradedInclude:
The optical line terminal asks to send difference program block to the ONT Optical Network Terminal;
The ONT Optical Network Terminal responds the transmission file request;
The optical line terminal sends difference program block and difference program block check code to the ONT Optical Network Terminal;
The optical line terminal is sent to the ONT Optical Network Terminal to be terminated to send request;And
The ONT Optical Network Terminal responds this and terminates to send request.
Second aspect, the technical scheme that embodiment of the present invention provides are:A kind of upgrade-system of EPON is provided,Including optical line terminal and some ONT Optical Network Terminals of the optical line terminal are connected, the optical line terminal includes end message mouldBlock, interface module and comparison module, the ONT Optical Network Terminal include receiving module and upgraded module,
The end message module is used for the program information for obtaining the ONT Optical Network Terminal of connection, and the program information includes having installedProgram block and the code of installation procedure block check,
The interface module is used to obtain program block to be upgraded and program block check code to be upgraded;The comparison module is used for will be everyThe block of installation procedure and the code of installation procedure block check of one ONT Optical Network Terminal and the program block to be upgraded and program block to be upgradedCheck code compares, and determines difference program block and difference program block check code;
The receiving module is used for the difference program block and difference program block check code for receiving optical line terminal transmission;The literLevel module is used for according to difference program block upgrading and difference program block check code identical installation procedure block.
Preferably, the ONT Optical Network Terminal also includes synchronization module, and the optical line terminal also includes cache module, the optical-fiber networkTerminal includes promoter region and preparation area, and the synchronization module is used for when the ONT Optical Network Terminal is reached the standard grade, by the installation journey of the promoter regionInstallation procedure block and the code of installation procedure block check are uploaded to the light for sequence block and the code of installation procedure block check and the preparation areaThe cache module of line terminal.
Preferably, the upgraded module is same with the difference program block check code-phase according to difference program block upgrading in the preparation areaInstallation procedure block.
Further, the ONT Optical Network Terminal also includes active module, and the active module is used for the installation journey in the preparation areaAfter the completion of the upgrading of sequence block, the active information that is issued according to the optical line terminal, activation enables the preparation area, and the preparation area turns into new and startedArea, the promoter region are converted to new preparation area.
Wherein, the optical line terminal also includes inquiry module and sending module, and the ONT Optical Network Terminal also includes responder module,The inquiry module is used to ask to send difference program block to the ONT Optical Network Terminal, and the responder module is additionally operable to respond the transmission fileRequest;The sending module is used to send difference program block and difference program block check code to the ONT Optical Network Terminal;The responder moduleIt is additionally operable to send to the ONT Optical Network Terminal and terminates to send request, the responder module, which is additionally operable to respond this, is terminated to send request.
The beneficial effect of embodiment of the present invention is:The upgrade method and system of the EPON of the present embodiment, according toActual conditions and experience, it is found that the part that needs update during ONT Optical Network Terminal upgrading is general all less, most of code is kept notDynamic, the code of ONT Optical Network Terminal is divided into multiple distinct program blocks by the present invention by functions of modules or fixed size, during upgradingThe code for the program block that need to be updated only is transmitted and upgraded, without downloading and transmitting all program codes, reduces the lightThe data transmitted between road terminal and ONT Optical Network Terminal and the time of upgrading data transfer, shorten the total time of escalation process,So as to provide it is a kind of reduce update time, improve upgrading efficiency, optimization and upgrading mechanism, reduce upgrading line quality is relied on andStrengthen the upgrade method and system of the EPON of adaptability.
Brief description of the drawings
Fig. 1 is the system architecture schematic diagram of the upgrade-system of EPON of the embodiment of the present invention;
Fig. 2 is the optical line terminal of the upgrade-system of EPON of the embodiment of the present invention and the module of ONT Optical Network TerminalFigure;
Fig. 3 is the broad flow diagram of the upgrade method of EPON of the embodiment of the present invention;
Fig. 4 is the overall flow figure of the upgrade method of EPON of the embodiment of the present invention;
Fig. 5 is another flow chart of the upgrade method of EPON of the embodiment of the present invention;
Fig. 6 is the program block piecemeal schematic diagram of the ONT Optical Network Terminal of the upgrade-system of EPON of the embodiment of the present invention;And
Fig. 7 is the program block upgrading schematic diagram of the ONT Optical Network Terminal of the upgrade-system of EPON of the embodiment of the present invention.
Embodiment
For the purpose, technical scheme and advantage of the embodiment of the present invention are more clearly understood, below in conjunction with the accompanying drawings to this hairBright embodiment is described in further details.Here, the schematic description and description of the present invention is used to explain the present invention, but simultaneouslyIt is not as a limitation of the invention.
The present embodiment is related to the upgrade method and system of EPON, and such as Fig. 1 is shown, and it is whole that the system includes optical linkEnd 10 and some ONT Optical Network Terminals for being connected with optical line terminal 10, for example ONT Optical Network Terminal 100-1 is to ONT Optical Network Terminal100-n.Following examples introduction is illustrated by by taking ONT Optical Network Terminal 100-1 as an example.
Rule of thumb summarize, it is found that the part that needs update during ONT Optical Network Terminal upgrading is less, therefore, the embodiment of the present inventionThe middle code by ONT Optical Network Terminal is divided into multiple different program blocks by functions of modules or fixed size.Only transmitted during upgradingThe code for the program block that need to be updated with upgrading, without downloading and transmitting all program codes, reduces the optical line terminalThe data transmitted between ONT Optical Network Terminal and the time of upgrading data transfer, shorten the total time of escalation process, improve and riseStage efficiency, the dependence of optimization and upgrading mechanism and reduction upgrading to line quality.
Analyzed according to existing upgrade mechanism, escalation process can be divided into first stage, second stage and phase III.In first stage, ONT Optical Network Terminal 100-1 program block and information of check code are downloaded to optical link end by optical line terminal 10It is cached on end 10.In second stage, the difference program block of determination is transmitted to ONT Optical Network Terminal by the optical line terminal 10100-1, ONT Optical Network Terminal 100-1 receive difference program block and complete upgrading.In the phase III, ONT Optical Network Terminal 100-1Activate the program of redaction and report updating result to the optical line terminal.Single ONT Optical Network Terminal upgrading spent time is in proportionFrom the point of view of, the first stage, which takes, accounts for 10%, and second stage is time-consuming to account for 60%, and the phase III takes and accounts for 30%.From existing machineFrom the point of view of making, it is at most second stage and phase III, therefore effectively reduction second stage and phase III are consumed that upgrading, which takes,Time can improve system effectiveness.
Fig. 6 and Fig. 7 are refer to, the software partition block on ONT Optical Network Terminal 100-1 is drawn by functions of modules or fixed sizeIt is divided into multiple different program block storages.That is, ONT Optical Network Terminal 100-1 all codes, by functions of modules or fixationSize divides multiple distinct program blocks, such as is divided into:The common n program block of B1, B2, B3 ... Bn, while ensure each program blockCan individually it update.In order to ensure individually to update, when programming version, every piece of program block is compiled as an entirety.EachUnique check code corresponding to program block generation, such as, corresponding program block B1, B2, B3 ... Bn sets check code:&1,&2,&3….&n.Such as shown in Fig. 6.
The EPON upgrade method and system of the present embodiment, the software download of entirety need not be got off during upgrading.By contrasting the program version currently run and the program version newly upgraded, upgraded by the difference of contrast, and to reduceDistinguishing program block is only downloaded and updated to volume of transmitted data and raising upgrading efficiency.
Embodiment 1
It refer to Fig. 2, the upgrade-system of the EPON of the present embodiment, including optical line terminal 10 and connect the lightSome ONT Optical Network Terminals of line terminal 10.Following examples introduction is illustrated by by taking ONT Optical Network Terminal 100-1 as an example.
The optical line terminal 10 includes receiving module 12, sending module 14, interface module 20, end message module 30, ratioCompared with module 40, interface module 20, cache module 50, active module 70 and inquiry module 60.Receiving module 12, the sending module14 are used to send data with some ONT Optical Network Terminals being connected and receive data.Such as the downstream data flow of optical line terminal 10Using broadcast technology, ONT Optical Network Terminal 100-1 upstream uses TDMA technologies.
ONT Optical Network Terminal 100-1 include sending module 110, receiving module 120, upgraded module 130, synchronization module 150,Responder module 160 and active module 170.
The end message module 30 of the optical line terminal 10 obtains the ONT Optical Network Terminal 100-1 of connection program information, shouldProgram information includes installation procedure block and the code of installation procedure block check.
The interface module 20 obtains program block to be upgraded and program block check code comparison modules 40 to be upgraded by each lightThe block of installation procedure and the code of installation procedure block check of the network terminal and the program block to be upgraded and program block check to be upgradedCode-phase compares, and determines difference program block and difference program
Block check code.
ONT Optical Network Terminal 100-1 receiving module 120 receives difference program block and the difference that the optical line terminal 10 is sentDRS sequence block check code.The upgraded module 130 upgrades with the difference program block check code identical according to the difference program blockInstallation procedure block.
As shown in fig. 6, in order to ensure that ONT Optical Network Terminal 100-1 operationally also can synchronously carry out software upgrading, the light netNetwork terminal 100-1 also includes promoter region and preparation area.Promoter region storage acquiescence operation program block and corresponding check code.This is standbyThe program block and corresponding check code of area's storage backup.When ONT Optical Network Terminal 100-1 promoter region program operation, the lightRoad terminal 10 is upgraded in preparation area, switches to the preparation area of upgrading after the completion of upgrading by being currently up area.
ONT Optical Network Terminal 100-1 synchronization module 150 is when the ONT Optical Network Terminal is reached the standard grade, by the installation of the promoter regionInstallation procedure block and the code of installation procedure block check are uploaded to this for program block and the code of installation procedure block check and the preparation areaThe cache module 50 of optical line terminal 10.
In order to ensure that ONT Optical Network Terminal 100-1 also can synchronously carry out software upgrading, the ONT Optical Network Terminal on startup100-1 upgraded module 130 upgrades according to the difference program block in the preparation area and pacified with the difference program block check code identicalFill program block.
The optical line terminal 10 is sent after the completion of the block of the installation procedure upgrading of ONT Optical Network Terminal 100-1 preparation areaActive information.
ONT Optical Network Terminal 100-1 active module 170 is after the completion of the block of the installation procedure upgrading of the preparation area, according to thisThe active information that optical line terminal 10 issues, activation enable the preparation area, and the preparation area turns into new promoter region, and the promoter region is converted to newlyPreparation area.
The inquiry module 60 of the optical line terminal 10 asks to send difference program block, the light to ONT Optical Network Terminal 100-1Network Termination #1 00-1 responder module 160 is used to respond transmission file request
After handshake foundation, the sending module 14 of the optical line terminal 10 is poor to ONT Optical Network Terminal 100-1 transmissionsDifferent program block and difference program block check code.Complete to receive the difference program block and difference program in ONT Optical Network Terminal 100-1After block check code, the responder module 60 is sent to ONT Optical Network Terminal 100-1 to be terminated to send request, and the responder module is additionally operable to backIt should terminate to send request.
The escalation process of the ONT Optical Network Terminal is:Before upgrading, after ONT Optical Network Terminal 100-1 reaches the standard grade, what is currently runProgram version and corresponding program block blocking information and information of check code are uploaded to the optical line terminal 10.The optical line terminal10 generate a list item in cache module 50, record ONT Optical Network Terminal 100-1 program informations.Such as following contents in table:
| Promoter region program information | B1(&1)/B2(&2)/B3(&3)/B4(&4)/B5(&5)…/Bn(&n) |
| Preparation area program information | B1(&1)/B2(&2)/B3(&3)/B4(&4)/B5(&5)…/Bn(&n) |
As shown in fig. 7, the program information that the preceding ONT Optical Network Terminal 100-1 of upgrading is uploaded to the optical line terminal 10 includesPromoter region program information and preparation area program information, promoter region and preparation area are required for sending.During upgrading, the optical line terminal 10ROMPaq downloads, and reads the program block and information of check code of ROMPaq, and the ONT Optical Network Terminal 100-1 that will upgradeThe program version information contrast currently run, determines difference program block, such as program block B3 (&3).Again only difference program blockAnd check code, it is sent to ONT Optical Network Terminal 100-1 by upgrade mechanism.During transmission, the optical line terminal 10 sends a request to thisONT Optical Network Terminal 100-1 request upgradings, ONT Optical Network Terminal 100-1 responder module 160 respond upgrade request, and the optical link is wholeThe program code and check code data of difference program block are sent to ONT Optical Network Terminal 100-1 by end 10 again.The optical-fiber network is wholeEnd 100-1 has received difference program block number after, and the same program block of code-phase will be verified in preparation area and is mapped, and corresponding to renewalProgram block.
After ONT Optical Network Terminal 100-1 has upgraded corresponding program, the active module 70 of the optical line terminal 10 is to the light netThe active information and deliver information that network terminal 100-1 is issued, activate and confirm the software of new upgraded version.
By it was verified that averagely needing 7~10 minutes or so before single ONT Optical Network Terminal 100-1 escalation processUpgrading can be completed, using the upgrade-system of the technical program, is only needed 2~3 minutes, upgrading efficiency is improved.
When batch upgrade, the optical line terminal 10 connects some ONT Optical Network Terminal 100-1 ... 100-n, and it is string to upgradeRow upgrading, need to be upgraded successively, and therefore, some ONT Optical Network Terminal 100-1 ... 100-n time effects are superimposed and just savedGo the time of half, upgrading efficiency is significantly improved.
The upgrade-system of the EPON of the present embodiment, only upgrade the program block that need to be updated, it is few to network consumption, forLine quality bad optical network system has very strong adaptability when upgrading.And by setting promoter region and preparation area so thatDuring line software upgrading, the few service impact of interrupt event is minimum.
Embodiment 2
Fig. 1 is refer to, the present embodiment is related to the upgrade method of EPON.This method is real based on the EPONExisting.The EPON includes optical line terminal 10 and connects some ONT Optical Network Terminal 100-1 ... of the optical line terminal100-n。
Fig. 3 is refer to, the upgrade method of the EPON mainly includes the following steps that:
Step 101:The block of installation procedure of the ONT Optical Network Terminal of optical line terminal acquisition connection and installation procedure block schoolCode is tested, in the step, is sent automatically when being reached the standard grade by ONT Optical Network Terminal;
Step 102:The optical line terminal obtains program block to be upgraded and program block check code to be upgraded;
Step 103:Optical line terminal is by the block of installation procedure of each ONT Optical Network Terminal and the code of installation procedure block checkCompared with the program block to be upgraded and program block check code to be upgraded, difference program block and difference program block check code are determined;The optical line terminal is sent difference program block and difference program block check code based on setting interaction mechanism whole to optical-fiber network afterwardsEnd;
Step 104:The ONT Optical Network Terminal receives difference program block and the difference program block check of optical line terminal transmissionCode;
Step 105:According to difference program block upgrading and difference program block check code identical installation procedure block.
Please also refer to Fig. 4 and Fig. 5, the particular flow sheet of the upgrade method is shown.
Step 201:When reaching the standard grade, ONT Optical Network Terminal by the block of installation procedure of promoter region and the code of installation procedure block check withAnd the block of installation procedure and the code of installation procedure block check of preparation area are uploaded to the optical line terminal;
Step 202:The block of installation procedure of the ONT Optical Network Terminal of optical line terminal storage connection and installation procedure block schoolTest code;
Step 203:The optical line terminal obtains program block to be upgraded and program block check code to be upgraded;
Step 204:The block of installation procedure of each ONT Optical Network Terminal and the code of installation procedure block check is to be upgraded with thisProgram block compares with program block check code to be upgraded, determines difference program block and difference program block check code;
Step 205:Optical line terminal sends the difference program block and difference program block check code to ONT Optical Network Terminal;
Step 206:ONT Optical Network Terminal receives the difference program block and difference program block check code that optical line terminal is sent;
Step 207:Journey has been installed with the difference program block check code identical in preparation area upgrading according to the difference program blockSequence block;
Step 208:After the completion of the block of the installation procedure upgrading of the preparation area, the activation issued according to the optical line terminal is believedBreath, activation enable the preparation area;
Step 209:The preparation area turns into new promoter region, and the promoter region is converted to new preparation area.
After completing activation work, the ONT Optical Network Terminal, which is sent, upgrades successfully message and version information to optical link endEnd.
The interaction mechanism illustrated below between the optical line terminal and the ONT Optical Network Terminal, including:
The optical line terminal asks to send difference program block to the ONT Optical Network Terminal;The ONT Optical Network Terminal responds transmission textPart is asked;The optical line terminal sends difference program block and difference program block check code to the ONT Optical Network Terminal;The optical link is wholeHold to send to the ONT Optical Network Terminal and terminate to send request;And the ONT Optical Network Terminal responds this and terminates to send request.
After the ONT Optical Network Terminal upgrades successfully, the optical line terminal updates the colophon of the ONT Optical Network Terminal.
The upgrade method and system of the EPON of the present embodiment, according to actual conditions and experience, it is found that optical-fiber network is wholeThe part that needs update during the upgrading of end is general all less, and most of code remains stationary as, the code of the invention by ONT Optical Network TerminalMultiple distinct program blocks are divided into by functions of modules or fixed size, only transmit and upgrade the program block that need to update during upgradingCode, without downloading and transmitting all program codes, reduce what is transmitted between the optical line terminal and ONT Optical Network TerminalData and the time for upgrading data transfer, shorten the total time of escalation process;The upgrading side of the EPON of the present embodimentMethod and system reduce update time, improve upgrading efficiency, optimization and upgrading mechanism, line quality are relied on small.Meanwhile the present embodimentEPON upgrade method and system, by setting promoter region and preparation area, ensure that ONT Optical Network Terminal operationally also canIt is synchronous to carry out software upgrading.
Embodiments of the present invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize thisThe equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlationsTechnical field, it is included within the scope of the present invention.