Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of method and system of transmission light network element managing control information, for solving the problem that over-burden of optical network unit in prior art.
For achieving the above object and other relevant objects, the invention provides a kind of method of transmission light network element managing control information, for optical network unit, comprising: received each packet being used for forming managing control information is preserved; Based on each obtained packet, feedback packet containing confirming the feedback information receiving packet, and does not receive new packet in default second duration, then determine that described managing control information finishes receiving.
Preferably, described based on each obtained packet, feedback packet is containing confirming the feedback information receiving packet, and new packet is not received in default second duration, then determine that the mode that described managing control information finishes receiving comprises: the quantity starting to record described packet when receiving first packet, and the timing starting corresponding described second duration detects; Whether start with the during end cycle quantity of recorded data bag consistent, if unanimously, then determine that described managing control information finishes receiving if detecting described timing sense cycle, and the timing that resets detects; If inconsistent, then continue to continue sense cycle in new timing sense cycle and start whether consistent with the quantity of recorded data bag during end cycle, till determining unanimously.
Based on above-mentioned purpose, the present invention also provides a kind of method of transmission light network element managing control information, for the fiber optic network be made up of optical line terminal and optical network unit, comprise: described optical line terminal, according to the equipment identification information of the optical network unit preset, sends the managing control information be made up of at least one packet to described optical network unit; Described optical network unit, when receiving the packet for forming managing control information, preserves described packet; Described optical network unit is based on each obtained packet, and feedback packet containing confirming the feedback information receiving packet, and does not receive new packet in default second duration, then determine that described managing control information finishes receiving; Described optical line terminal receives the feedback information comprising confirmation reception packet from described optical network unit, and records described feedback information; Described optical line terminal, when not receiving described feedback information in default first duration, determines that described managing control information is sent completely.
Preferably, described optical line terminal when not receiving described feedback information in default first duration, determine that the mode that described managing control information is sent completely comprises: the quantity starting to record described feedback information when receiving first feedback information, and the timing starting corresponding described first duration detects; Whether start with the quantity of the feedback information that during end cycle record consistent, if unanimously, then determine that described managing control information is sent completely if detecting described timing sense cycle, and the timing that resets detects; If inconsistent, then continue to continue sense cycle in new timing sense cycle and start whether consistent with the quantity of the feedback information recorded during end cycle, till determining unanimously.
Preferably, described optical network unit is based on each obtained packet, feedback packet is containing confirming the feedback information receiving packet, and new packet is not received in default second duration, then determine that the mode that described managing control information finishes receiving comprises: the quantity starting to record described packet when receiving first packet, and the timing starting corresponding described second duration detects; Whether start with the during end cycle quantity of recorded data bag consistent, if unanimously, then determine that described managing control information finishes receiving if detecting described timing sense cycle, and the timing that resets detects; If inconsistent, then continue to continue sense cycle in new timing sense cycle and start whether consistent with the quantity of recorded data bag during end cycle, till determining unanimously.
Based on above-mentioned purpose, the present invention also provides a kind of system of transmission light network element managing control information, for the fiber optic network be made up of optical line terminal and optical network unit, comprising: described optical line terminal comprises: first communication module and the first determination module; Described optical network unit comprises: second communication module and the second determination module.Described first communication module is used for the equipment identification information according to the optical network unit preset, send the managing control information be made up of at least one packet to described optical network unit, and receive the feedback information comprising confirmation reception packet from described optical network unit; Described first determination module is used for, when not receiving described feedback information in default first duration, determining that described managing control information is sent completely; Described second communication module, for obtaining the packet for forming managing control information, preserves described packet; Described second determination module is used for based on each obtained packet, and feedback packet, containing confirming the feedback information receiving packet, until do not receive new packet in default second duration, then determines that described managing control information finishes receiving.
Preferably, described first determination module comprises: the first record sub module, and for starting the quantity recording described feedback information when receiving first feedback information, and the timing starting corresponding described first duration detects; Whether first determines submodule, starting consistent with the quantity of the feedback information recorded during end cycle, if unanimously, then determining that described managing control information is sent completely for detecting described timing sense cycle, and the timing that resets detects; If inconsistent, then continue to continue sense cycle in new timing sense cycle and start whether consistent with the quantity of the feedback information recorded during end cycle, till determining unanimously.
Preferably, described second determination module comprises: the second record sub module, and for starting the quantity recording described packet when receiving first packet, and the timing starting corresponding described second duration detects; Whether second determines submodule, starting consistent with the quantity of recorded data bag during end cycle, if unanimously, then determining that described managing control information finishes receiving for detecting described timing sense cycle, and the timing that resets detects; If inconsistent, then continue to continue sense cycle in new timing sense cycle and start whether consistent with the quantity of recorded data bag during end cycle, till determining unanimously.
Based on above-mentioned purpose, the present invention also provides a kind of optical network unit for transmission light network element managing control information, comprising: second communication module, for obtaining the packet for forming managing control information, preserves described packet; Second determination module, for based on each obtained packet, feedback packet, containing confirming the feedback information receiving packet, until do not receive new packet presetting in the second duration, then determines that described managing control information finishes receiving.
Preferably, described second determination module comprises: the second record sub module, and for starting the quantity recording described packet when receiving first packet, and the timing starting corresponding described second duration detects; Whether second determines submodule, starting consistent with the quantity of recorded data bag during end cycle, if unanimously, then determining that described managing control information finishes receiving for detecting described timing sense cycle, and the timing that resets detects; If inconsistent, then continue to continue sense cycle in new timing sense cycle and start whether consistent with the quantity of recorded data bag during end cycle, till determining unanimously.
As mentioned above, the method and system of transmission light network element managing control information of the present invention, there is following beneficial effect: optical network unit is when receiving the packet of managing control information, and non-immediate carries out dissection process to data bag, but first preserved, and send feedback information in time, so significantly reduce the operating pressure of CPU in optical network unit, shorten the time that managing control information transmits; In addition, utilize the detection packet of timing cycle whether to continue to transmit, be convenient to determine whether managing control information has been sent in time, save the acknowledging time of managing control information.
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this specification can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this specification also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.
Refer to Fig. 1.The invention provides a kind of method of transmission light network element managing control information.At least one optical network unit (ONU) that described transmission method can be connected by optical line terminal (OLT) and its performs.Managing control information after upgrading, when receiving the managing control information upgrading each optical network unit, is sent to each optical network unit that can manage by described optical line terminal.Each optical network unit upgrades self configuration according to the managing control information after received renewal.Wherein, described managing control information includes but not limited to following at least one: with arrange, increase, the optical network unit management control interface of deletion etc. operates related management control information.
Described optical line terminal is in accordance with the following steps to the control information of each optical network unit transfer management.
In step s 11, described optical line terminal, according to the equipment identification information of the optical network unit preset, sends the managing control information be made up of at least one packet to described optical network unit.
Particularly, the equipment identification information list of each optical network unit that can manage is preset in described optical line terminal.Wherein, described equipment identification information includes but not limited to: IP address, MAC Address etc. are for the information of unique identification optical network unit in fiber optic network.Described optical line terminal according to described list one by one/simultaneously send described managing control information to all optical network units.Wherein, the data volume of quantity entrained by described managing control information forming described managing control information is correlated with.
In the step s 21, described optical network unit, when receiving the packet for forming managing control information, preserves described packet.
Particularly, described optical network unit is when receiving packet, and non-immediate resolution data bag and the part performing packet in described managing control information, but described packet is existed in mib storehouse.
In step S22, described optical network unit is based on each obtained packet, and feedback packet is containing confirming the feedback information receiving packet.
Particularly, in order to transmit the confirmation of synchronization of each packet, between described optical network unit and optical line terminal when transmitting each packet, all need to carry out receives data packets confirmation.Therefore described optical network unit is when receiving a packet, feedback packet receives the feedback information of packet to described optical line terminal containing confirming.Wherein, the successful information of reception can only be comprised in described feedback information.In order to ensure the synchronous reception of packet, in described feedback information, also comprise the identification information etc. of corresponding packet.Such as, described identification information includes but not limited to: the numbering etc. of packet.
Meanwhile, described optical network unit performs step S23, does not receive new packet, then determine that described managing control information finishes receiving in default second duration.
Particularly, the moment of first packet that described optical network unit record receives, and determine whether to receive new packet in the second duration preset.Wherein, described new packet not necessarily is second packet can be newly-increased multiple packets.Receive new packet if determine, then confirm to continue to perform step S22, to receive the packet being formed described managing control information.Do not receive new packet if determine, then determine that described managing control information finishes receiving.
At this, described optical network unit determines that the mode whether receiving new packet in default second duration includes but not limited to: 1) check whether in the second duration and receive at least one new packet.2) with described second duration for whether the cyclic check cycle starts to change with the quantity of packet received separately during end cycle.Wherein, the cycle duration being the cycle with described second duration is exemplified as 3s.
Preferably, described step S23 comprises: step S231, S232.(all not giving diagram)
In step S231, described optical network unit records the quantity of described packet from when receiving first packet, and the timing starting corresponding described second duration detects.
In step S232, whether described optical network unit detects described timing sense cycle and starts consistent with the quantity of the feedback information recorded during end cycle, if unanimously, then determines that described managing control information is sent completely, and the timing that resets detects; If inconsistent, then continue to continue sense cycle in new timing sense cycle and start whether consistent with the quantity of the feedback information recorded during end cycle, till determining unanimously.
Such as, described optical network unit, while execution step S22, also records the quantity of received each packet, and the timing starting corresponding described second duration from when receiving first packet detects.Described optical network unit continues receive packet and feed back corresponding feedback information, at the end of described second duration, when described optical network unit again extracts the quantity of current received packet and starts with described second duration, the quantity of recorded bag compares, if consistent, then determine that preserved all packets constitute managing control information to be dealt with, otherwise, then continue to start the new timing being the cycle with described second duration to detect, until determine the cycle start equal with the quantity of recorded data bag during end cycle till.
When described optical network unit is after receiving all packets, from mib storehouse, extract all packets, and all packet combinings are become corresponding managing control information, and perform this managing control information, control configuration with the management upgrading self.
Corresponding step S22, described optical line terminal performs step S12, namely receives the feedback information comprising confirmation reception packet from described optical network unit, and records described feedback information.
Particularly, described optical line terminal, according to device identification entrained in described feedback information, is determined the source optical network unit of received feedback information, and is recorded the quantity of feedback information, the even feedback information of corresponding light network element.Described optical line terminal, according to each feedback information received, is determined being received by optical network unit of sent packet synchronisation, and is issued follow-up packet based on received feedback information.Meanwhile, described optical line terminal performs step S13.
In step s 13, described optical line terminal, when not receiving described feedback information in default first duration, determines that described managing control information is sent completely.
Particularly, the moment of first feedback information that described optical line terminal record receives, and determine whether to receive new feedback information in the first duration preset.Wherein, described new feedback information not necessarily is second feedback information can be newly-increased multiple feedback informations.Receive new feedback information if determine, then confirm to continue to perform step S12, to continue to send the packet being formed described managing control information.Do not receive new feedback information if determine, then determine that described managing control information is sent completely.
At this, described optical line terminal determines that the mode whether receiving new feedback information in default first duration includes but not limited to: 1) check whether in the first duration and receive at least one new feedback information.2) with described first duration for whether the cyclic check cycle starts to change with the quantity of feedback information received separately during end cycle.Wherein, the cycle duration being the cycle with described first duration is exemplified as 3s.
Preferably, described step S13 comprises: step S131, S132.(all not giving diagram)
In step S131, described optical line terminal records the quantity of described feedback information from when receiving first feedback information, and the timing starting corresponding described first duration detects.
In step S132, whether described optical line terminal detects described timing sense cycle and starts consistent with the quantity of the feedback information recorded during end cycle, if unanimously, then determines that described managing control information is sent completely, and the timing that resets detects; If inconsistent, then continue to continue sense cycle in new timing sense cycle and start whether consistent with the quantity of the feedback information recorded during end cycle, till determining unanimously.
Such as, described optical line terminal, while execution step S12, also records the quantity of received each feedback information, and the timing starting corresponding described first duration from when receiving first feedback information detects.Described optical line terminal continues receiving feedback information.At the end of described first duration, when described optical line terminal again extracts the quantity of current received feedback information and starts with described first duration record feedback information quantity compare, if consistent, then determine that the managing control information upgraded is sent completely, otherwise, then continue to start the new timing being the cycle with described first duration to detect, until determine the cycle start equal with the quantity of the feedback information recorded during end cycle till.
After being sent completely managing control information, described optical line terminal release timing detects thread or timer.
Refer to Fig. 2.The invention provides a kind of system of transmission light network element managing control information.Described transmission system comprises: at least one optical network unit (ONU) that optical line terminal (OLT) can be connected with it.Managing control information after upgrading, when receiving the managing control information upgrading each optical network unit, is sent to each optical network unit that can manage by described optical line terminal.Each optical network unit upgrades self configuration according to the managing control information after received renewal.Wherein, described managing control information includes but not limited to following at least one: with arrange, increase, the optical network unit management control interface of deletion etc. operates related management control information.
Described optical line terminal 1 comprises: first communication module 11, first determination module 12.Described optical network unit 2 comprises: second communication module 21, second determination module 22.
Described first communication module 11, for the equipment identification information according to the optical network unit 2 preset, sends to the second communication module 21 in described optical network unit 2 managing control information be made up of at least one packet.
Particularly, the equipment identification information list of each optical network unit 2 that can manage is preset in described first communication module 11.Wherein, described equipment identification information includes but not limited to: IP address, MAC Address etc. are for the information of unique identification optical network unit 2 in fiber optic network.Described optical line terminal 1 according to described list one by one/simultaneously send described managing control information to all optical network units 2.Wherein, the data volume of quantity entrained by described managing control information forming described managing control information is correlated with.
Described second communication module 21, for when receiving the packet for forming managing control information, preserves described packet.
Particularly, described second communication module 21 is when receiving packet, and non-immediate resolution data bag and the part performing packet in described managing control information, but described packet is existed in mib storehouse.
Described second communication module 21 is also for based on each obtained packet, and feedback packet is containing confirming the feedback information receiving packet.
Particularly, in order to transmit the confirmation of synchronization of each packet, between described first communication module 11 and second communication module 21 when transmitting each packet, all need to carry out receives data packets confirmation.Therefore described second communication module 21 is when receiving a packet, feedback packet receives the feedback information of packet to described first communication module 11 containing confirming.Wherein, the successful information of reception can only be comprised in described feedback information.In order to ensure the synchronous reception of packet, in described feedback information, also comprise the identification information etc. of corresponding packet.Such as, described identification information includes but not limited to: the numbering etc. of packet.
Meanwhile, described second determination module 22 for not receiving new packet in default second duration, then determines that described managing control information finishes receiving.
Particularly, described second determination module 22 records the moment of first packet received, and determines whether to receive new packet in the second duration preset.Wherein, described new packet not necessarily is second packet can be newly-increased multiple packets.Receive new packet if determine, then confirm to continue to receive by described second communication module 21 packet forming described managing control information.Do not receive new packet if determine, then determine that described managing control information finishes receiving.
At this, described second determination module 22 determines that the mode whether receiving new packet in default second duration includes but not limited to: 1) check whether in the second duration and receive at least one new packet.2) with described second duration for whether the cyclic check cycle starts to change with the quantity of packet received separately during end cycle.Wherein, the cycle duration being the cycle with described second duration is exemplified as 3s.
Preferably, described second determination module 22 comprises: the second record sub module, second determines submodule.(all not giving diagram)
Described second record sub module is used for the quantity recording described packet from when receiving first packet, and the timing starting corresponding described second duration detects.
Described second determines that submodule starts whether consistent with the quantity of the feedback information recorded during end cycle for detecting described timing sense cycle, if unanimously, then determines that described managing control information is sent completely, and the timing that resets detects; If inconsistent, then continue to continue sense cycle in new timing sense cycle and start whether consistent with the quantity of the feedback information recorded during end cycle, till determining unanimously.
Such as, described second communication module 21 is while execution, and described second record sub module also records the quantity of received each packet, and the timing starting corresponding described second duration from when receiving first packet detects.Described second communication module 21 continues receive packet and feed back corresponding feedback information, at the end of described second duration, described second quantity of recorded bag when determining that submodule again extracts the quantity of current received packet and starts with described second duration compares, if consistent, then determine that preserved all packets constitute managing control information to be dealt with, otherwise, then continue to start the new timing being the cycle with described second duration to detect, until determine the cycle start equal with the quantity of recorded data bag during end cycle till.
When described optical network unit 2 is after receiving all packets, from mib storehouse, extracts all packets, and all packet combinings are become corresponding managing control information, and perform this managing control information, control configuration with the management upgrading self.
Corresponding described second communication module 21, described first communication module 11 also for receiving the feedback information comprising confirmation reception packet from described optical network unit 2, and records described feedback information.
Particularly, described first communication module 11, according to device identification entrained in described feedback information, is determined the source optical network unit 2 of received feedback information, and is recorded the quantity of feedback information, the even feedback information of corresponding light network element 2.Described first communication module 11, according to each feedback information received, is determined being received by optical network unit 2 of sent packet synchronisation, and is issued follow-up packet based on received feedback information.
Meanwhile, the first determination module 12 in described optical line terminal 1 also performs in the lump.
Described first determination module 12, for when not receiving described feedback information in default first duration, determines that described managing control information is sent completely.
Particularly, described first determination module 12 records the moment of first feedback information received, and determines whether to receive new feedback information in the first duration preset.Wherein, described new feedback information not necessarily is second feedback information can be newly-increased multiple feedback informations.Receive new feedback information if determine, then confirm that described first communication module 11 continues to send the packet forming described managing control information.Do not receive new feedback information if determine, then determine that described managing control information is sent completely.
At this, described first determination module 12 determines that the mode whether receiving new feedback information in default first duration includes but not limited to: 1) check whether in the first duration and receive at least one new feedback information.2) with described first duration for whether the cyclic check cycle starts to change with the quantity of feedback information received separately during end cycle.Wherein, the cycle duration being the cycle with described first duration is exemplified as 3s.
Preferably, described first determination module 12 comprises: the first record sub module, first determines submodule.(all not giving diagram)
Described first record sub module is used for the quantity recording described feedback information from when receiving first feedback information, and the timing starting corresponding described first duration detects.
Described first determines that submodule starts whether consistent with the quantity of the feedback information recorded during end cycle for detecting described timing sense cycle, if unanimously, then determines that described managing control information is sent completely, and the timing that resets detects; If inconsistent, then continue to continue sense cycle in new timing sense cycle and start whether consistent with the quantity of the feedback information recorded during end cycle, till determining unanimously.
Such as, the quantity of each feedback information received by described first record sub module record, and the timing starting corresponding described first duration from when receiving first feedback information detects.Described first communication module 11 continues receiving feedback information.At the end of described first duration, described first when determining that submodule again extracts the quantity of current received feedback information and starts with described first duration record feedback information quantity compare, if consistent, then determine that the managing control information upgraded is sent completely, otherwise, then continue to start the new timing being the cycle with described first duration to detect, until determine the cycle start equal with the quantity of the feedback information recorded during end cycle till.
After being sent completely managing control information, described optical line terminal 1 discharges timing and detects thread or timer.
In sum, the present invention, optical network unit is when receiving the packet of managing control information, and non-immediate carries out dissection process to data bag, but first preserved, and send feedback information in time, so significantly reduce the operating pressure of CPU in optical network unit, shorten the time that managing control information transmits; In addition, utilize the detection packet of timing cycle whether to continue to transmit, be convenient to determine whether managing control information has been sent in time, save the acknowledging time of managing control information.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.