The upgrade method of ONU among a kind of EPONTechnical field
The present invention relates to the upgrade method of a kind of EPON, relate in particular to the upgrade-system of ONU among a kind of EPON.
Background technology
At present, at the EPON(ethernet passive optical network, Ethernet Passive Optical Network) in the connecting system, ONU(optical node, Optical Network Unit) software upgrading mainly comprise downloading process and Activate and the Commit Software Mirroring process of ONU upgrade software; Wherein, the OLT(optical line terminal, optical line terminal) and the communication between the ONU then adopt two layers Ethernet protocol, with the MPCP(Multi-point Control Protocol, Multi-Point Control Protocol) OAM(Operations, Administration and Maintenance in, Operation Administration and Maintenance) passage is carrier, and order will be encapsulated in the OAM Frame with upgrade image and transmits (referring to " requirement of the EPON of China Telecom equipment and technology ") so that OLT will upgrade.
Because what use is the double layer network transmission, when the network appearance is congested, busy, easily cause losing of message, for fear of in the downloading process of ONU software for avoiding occurring the situation of packet loss, disclose in " requirement of the EPON of China Telecom equipment and technology " and adopted overtime retransmission mechanism to carry out the downloading process of ONU software, but then do not had explanation for Activate and Commit Software Mirroring process; As the essential condition of the reliability of the software upgrade process of ONU, how to guarantee carrying out smoothly of Activate and Commit Software Mirroring process, become present volume technical barrier to be solved.
Summary of the invention
For the problems referred to above that exist in the existing EPON upgrade method, now provide the upgrade method of ONU among the EPON that carries out smoothly of a kind of Activate of guaranteeing and Commit Software Mirroring process.
Concrete technical scheme is as follows:
The upgrade method of ONU among a kind of EPON wherein, may further comprise the steps:
Step S1:OLT sends a command to ONU, and starts timer;
Step S2: after being sent completely, OLT judges whether to receive in the given time response;
Step S3: if receive response, then carry out next action;
Step S4: if do not receive response, continue then to judge whether whether the number of times that sends a command to continuously at the appointed time ONU exceeds set point number;
Step S5: if do not exceed described set point number, OLT resends order to ONU, and repeating step S2-S4 successively;
Step S6: if exceed described set point number, break link then, and error message reported webmaster.
The upgrade method of ONU among the above-mentioned EPON wherein, starts described timer according to the upgrade status of ONU.
The upgrade method of ONU among the above-mentioned EPON, wherein, described order comprises Activate order or Commit order.
The upgrade method of ONU among the above-mentioned EPON, wherein, the upgrade status of ONU is programming when finishing, OLT just sends Activate and orders to ONU, and starts the Activate timer.
The upgrade method of ONU among the above-mentioned EPON, wherein, when the ONU state was finished for restarting, OLT just sent Commit and orders to ONU, and started the Commit timer.
The upgrade method of ONU among the above-mentioned EPON wherein, is set the described scheduled time and described stipulated time according to different upgrade images.
The upgrade method of ONU among the above-mentioned EPON, wherein, the described scheduled time and described stipulated time all are directly proportional with the size of upgrade image.
The upgrade method of ONU among the above-mentioned EPON, wherein, the described scheduled time is less than or equal to the described stipulated time.
The upgrade method of ONU among the above-mentioned EPON wherein, is set described set point number according to the upgrade requirement of ONU.
The upgrade method of ONU among the above-mentioned EPON wherein, is applied on the OLT equipment of EPON.
The upgrade method of ONU among a kind of EPON of the present invention, upgrade status according to ONU, when ONU needs Activate or Commit, then start corresponding timer, and wait for that within the time of setting the Activate of ONU or Commit respond, if then represent to be successfully completed this action if within the time of this setting, receive response, if do not receive response at this in setting time, then resend Activate or Commit order, and the response of receiving ONU in ought be the at the appointed time continuous number of retransmissions, also expression is successfully completed this action, if the response of not receiving ONU in the continuous number of retransmissions at the appointed time, then disconnect, and error message is reported webmaster; And then guaranteed carrying out smoothly of Activate and Commit Software Mirroring process, and effectively raise the reliability of the software upgrade process of ONU.
Description of drawings
Fig. 1 is the embodiment one flow process schematic diagram of the upgrade method of ONU among a kind of EPON of the present invention;
Fig. 2 is the embodiment two flow process schematic diagrames of the upgrade method of ONU among a kind of EPON of the present invention.
Embodiment
The invention will be further described below in conjunction with the drawings and specific embodiments, but not as limiting to the invention.
The upgrade method of ONU among a kind of EPON of the present invention, be applied on the OLT equipment of EPON, at first, when ONU upgrades when needing Activate or Commit, mirror image programming that ONU will upgrade sends in the flash owing to Activate order is based on, and the Commit order be sent in ONU finish restart after, so the time confidential upgrade status according to ONU of startup timer is specifically determined, namely according to the upgrade status of ONU, OLT sends a command to ONU; Be programming when finishing such as the upgrade status of ONU, OLT just sends Activate and orders to ONU, and starts the Activate timer, and if the ONU state is restarted when finishing, OLT then sends Commit and orders to ONU, and starts the Commit timer; Wherein, by a task of timer, being used for inquiring about the upgrade status of ONU, and then send Activate or Commit order, and only when send order the first time of this subcommand action, start corresponding timer.
Secondly, after order was sent completely, OLT judged whether to receive ONU about receiving the response of order in the time slot of predetermined overtime re-transmission, if OLT receives response, illustrated that then command action finishes, and continued to carry out next action; If OLT does not receive response in the time slot of predetermined overtime re-transmission, OLT judges whether further that then the number of times of at the appointed time continuous retransmission order is being less than or equal to the number of retransmissions of regulation, if the number of times that retransmits is less than or equal to the number of retransmissions of this regulation, OLT resends and identical the order to ONU before, and repeats above-mentioned judgement and receive the step of responding; If the number of times that retransmits, then illustrates command action greater than the number of retransmissions of this regulation and does not finish, disconnects, and report webmaster to carry out analyzing and processing error message.
Because, the Activate order is to allow the ONU that the upgrade image programming has been finished restart, and the Commit order is to allow the active and standby memory block of ONU exchange, and the real-time of these two processes is not high, even can be because different ONU, different upgrade images so that reboot time and active and standby memory block reciprocal time also be not quite similar.If the time slot of predetermined overtime re-transmission and the stipulated time of continuous retransmission order are too short, cause easily in the time slot of setting, to order to transmit successfully and can't receive the situation of response, if the time slot of predetermined overtime re-transmission and the stipulated time of continuous retransmission order are long, meeting is so that the efficient of escalation process is excessively low.So the time slot of predetermined overtime re-transmission and the stipulated time of continuous retransmission order will arrange according to different upgrade images different time slots and stipulated time, and this time slot and stipulated time all be directly proportional with the size of upgrade image.
Further, the stipulated number of continuous retransmission order is to set according to the upgrade requirement of ONU.
Embodiment one
As shown in Figure 1, setting ONU needs the Activate order, and the stipulated number of continuous retransmission order is set as 3; At first, by task of timer, the upgrade status of inquiry ONU, when the upgrade status of ONU is programming when finishing, OLT just sends Activate and orders to ONU, and only starts the Activate timer when send the first time of this time Activate action; Secondly, after the Activate order was sent completely, OLT judged whether to receive that ONU is about successfully receiving the response of Activate order, if OLT receives response in the time slot of predetermined overtime re-transmission, illustrate that then the Activate command action finishes, and continue to carry out next action; If OLT does not receive that ONU is about successfully receiving the response of Activate in the time slot of predetermined overtime re-transmission, then further judge whether the number of retransmissions 3 that the number of times of at the appointed time continuous retransmission order is being less than or equal to regulation, if the number of times that retransmits is less than or equal to 3, then OLT resends with identical before Activate and orders to ONU, and repeats the step that above-mentioned judgement successfully receives the Activate response; If the number of times that retransmits, then illustrates command action greater than 3 and does not finish, disconnects, and report webmaster to carry out analyzing and processing error message.
Embodiment two
On the basis of embodiment one, as shown in Figure 2, setting ONU needs the Commit order, and the stipulated number of continuous retransmission order also is set as 3; At first, by task of timer, the upgrade status of inquiry ONU, when the upgrade status of ONU was finished for restarting, OLT just sent Commit and orders to ONU, and only started the Commit timer when send the first time of this time Commit action; Secondly, after the Commit order was sent completely, OLT judged whether to receive that ONU is about successfully receiving the response of Commit order, if OLT receives response in the time slot of predetermined overtime re-transmission, illustrate that then the Commit command action finishes, and continue to carry out next action; If OLT does not receive that ONU is about successfully receiving the response of Commit in the time slot of predetermined overtime re-transmission, then further judge whether the number of retransmissions 3 that the number of times of at the appointed time continuous retransmission order is being less than or equal to regulation, if the number of times that retransmits is less than or equal to 3, then OLT resends with identical before Commit and orders to ONU, and repeats the step that above-mentioned judgement successfully receives the Commit response; If the number of times that retransmits, then illustrates command action greater than 3 and does not finish, disconnects, and report webmaster to carry out analyzing and processing error message.
The upgrade method of ONU among a kind of EPON of the present invention, upgrade status according to ONU, when ONU needs Activate or Commit, then start corresponding timer, and wait for that within the time of setting the Activate of ONU or Commit respond, if then represent to be successfully completed this action if within the time of this setting, receive response, if do not receive response at this in setting time, then resend Activate or Commit order, and the response of receiving ONU in ought be the at the appointed time continuous number of retransmissions, also expression is successfully completed this action, if the response of not receiving ONU in the continuous number of retransmissions at the appointed time, then disconnect, and error message is reported webmaster; And then guaranteed carrying out smoothly of Activate and Commit Software Mirroring process, and effectively raise the reliability of the software upgrade process of ONU.
The above only is preferred embodiment of the present invention; be not so restriction embodiments of the present invention and protection range; to those skilled in the art; should recognize that being equal to that all utilizations specification of the present invention and diagramatic content done replace and the resulting scheme of apparent variation, all should be included in protection scope of the present invention.