Summary of the invention
For the problems referred to above that existing optical network unit upgrading mode exists, now provide a kind of and be intended to realize when not making OLT system transship, shorten adaptive optical network unit parallel upgrade method and the system of update time to greatest extent.
Concrete technical scheme is as follows:
A kind of adaptive optical network unit parallel upgrade method, is applied to optical line terminal and upgrades to optical network unit, provide:
The number N of optical network unit described in one permission parallel upgrade;
The number P of optical network unit described in one parallel upgrade;
The one quantity reference value Q being activated the described optical network unit of escalation process;
N, P, Q are natural number;
Comprise the steps:
S1. the number M of described optical network unit to be upgraded is obtained;
S2. the quantity Q=P of the described optical network unit being activated escalation process is made;
S3. number P=the min (M, N) of optical network unit described in parallel upgrade is obtained;
S4. the escalation process of the individual described optical network unit to be upgraded of P-Q is started;
S5. judge whether P equals M, if then terminate;
S6. the current occupancy of the central processing unit of described optical line terminal is obtained;
S7. the value of the number N allowing optical network unit described in parallel upgrade is regulated according to the current occupancy of described central processing unit, if allow the value of the number N of optical network unit described in parallel upgrade to increase progressively when the current occupancy of described central processing unit is in low spot, and return the described step S2 of execution.
Preferably, the detailed process of described step S7 is:
S71. judge whether the current occupancy of described central processing unit is greater than setting threshold, if so, then terminates; If not, step S72 is performed;
S72. order allows the number N=N+1 of optical network unit described in parallel upgrade, returns and performs described step S2.
Preferably, in described step S1, when obtaining the number M=0 of described optical network unit to be upgraded, order allows number N=1 of optical network unit described in parallel upgrade.
Preferably, the number M of described optical network unit to be upgraded is less than or equal to 128.
Preferably, the detailed process of described step S4 is:
Described optical line terminal sends the software upgrading version of described optical network unit to P-Q described optical network unit to be upgraded by optical network unit management control interface agreement, each described optical network unit is upgraded voluntarily by after the described software upgrading non-volatile received.
A kind of adaptive optical network unit parallel upgrade system, is applied to optical line terminal and upgrades to optical network unit, comprising:
One first acquiring unit, in order to obtain the number M of described optical network unit to be upgraded;
One comparing unit, connects described first acquiring unit, and described comparing unit allows the minimum value P between the number N of optical network unit described in parallel upgrade in order to the number M and compared and obtain described optical network unit to be upgraded;
One upgrade unit, connects described comparing unit, in order to start the escalation process of the described optical network unit described to be upgraded of predetermined number;
One judging unit, connects described comparing unit, in order to judge whether P equals M;
One second acquisition unit, connects described judging unit, in order to obtain the current occupancy of the central processing unit of described optical line terminal;
One processing unit, connect described second acquisition unit, in order to regulate the value of the number N allowing optical network unit described in parallel upgrade according to the current occupancy of described central processing unit, if allow the value of the number N of optical network unit described in parallel upgrade to increase progressively when the current occupancy of described central processing unit is in low spot;
Described predetermined number is the quantity that P-has been activated the described optical network unit of described escalation process.
Preferably, described processing unit comprises:
One judge module, in order to judge whether the current occupancy of described central processing unit is greater than setting threshold;
One assignment module, connects described judge module, for be less than when the current occupancy of described central processing unit one preset threshold value time, order allows the number N=N+1 of optical network unit described in parallel upgrade.
Preferably, as the number M=0 of the described optical network unit to be upgraded that described first acquiring unit obtains, order allows number N=1 of optical network unit described in parallel upgrade.
Preferably, the number M of described optical network unit to be upgraded is less than or equal to 128.
Preferably, described upgrade unit sends the software upgrading version of described optical network unit to the described optical network unit described to be upgraded of predetermined number by optical network unit management control interface agreement, each described optical network unit is upgraded voluntarily by after the described software upgrading non-volatile received.
The beneficial effect of technique scheme:
In the technical program, adaptive optical network unit parallel upgrade method achieves when not making OLT system transship, and shortens the object of update time to greatest extent.Adaptive optical network unit parallel upgrade system can regulate the value of the number N allowing optical network unit described in parallel upgrade by processing unit according to the current occupancy of the central processing unit of optical line terminal, to realize utilizing OLT system to greatest extent when not making OLT system transship, to shorten update time.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the prerequisite of not making creative work, all belongs to the scope of protection of the invention.
It should be noted that, when not conflicting, the embodiment in the present invention and the feature in embodiment can combine mutually.
Below in conjunction with the drawings and specific embodiments, the invention will be further described, but not as limiting to the invention.
As shown in Figure 3, a kind of adaptive optical network unit parallel upgrade method, is applied to optical line terminal and upgrades to optical network unit, provide:
The number N of optical network unit described in one permission parallel upgrade;
The number P of one parallel upgrade optical network unit;
The one quantity Q being activated the optical network unit of escalation process;
N, P, Q are natural number;
Comprise the steps:
S1. the number M of optical network unit to be upgraded is obtained;
S2. the quantity Q=P of the optical network unit being activated escalation process is made;
S3. number P=the min (M, N) of parallel upgrade optical network unit is obtained;
S4. the escalation process of the individual optical network unit to be upgraded of P-Q is started;
S5. judge whether P equals M, if then terminate;
S6. the current occupancy of the central processing unit of optical line terminal is obtained;
S7. regulate the value of the number N allowing parallel upgrade optical network unit according to the current occupancy of central processing unit, if allow the value of the number N of parallel upgrade optical network unit to increase progressively when the current occupancy of central processing unit is in low spot, and return execution step S2.
In the present embodiment, adaptive optical network unit parallel upgrade method achieves when not making OLT system transship, and shortens the object of update time to greatest extent.
In a preferred embodiment, the detailed process of step S7 is:
S71. judge whether the current occupancy of central processing unit is greater than setting threshold, if so, then terminates; If not, step S72 is performed;
S72. order allows the number N=N+1 of parallel upgrade optical network unit, returns and performs step S2.
Further, setting threshold can be 50%.
To obtain the number M=3 of optical network unit to be upgraded, the initial value of the number N of parallel upgrade optical network unit is allowed to be 1 illustrate adaptive optical network unit parallel upgrade method for example:
Obtain the number M=3 of optical network unit to be upgraded; Be activated the quantity Q=P=0 of the optical network unit of escalation process; Obtain number P=min (M, N)=1 of parallel upgrade optical network unit, and start the escalation process of the individual optical network unit to be upgraded of 1-0; When the current occupancy of the central processing unit of optical line terminal is less than or equal to 50%, order allows the number N=N+1=2 of parallel upgrade optical network unit; Then be activated the quantity Q=P=1 of the optical network unit of escalation process; Obtain number P=min (M, N)=2 of parallel upgrade optical network unit, and start the escalation process of the individual optical network unit to be upgraded of 2-1; When the current occupancy of the central processing unit of optical line terminal is less than or equal to 50%, order allows the number N=N+1=3 of parallel upgrade optical network unit; Then be activated the quantity Q=P=2 of the optical network unit of escalation process; Obtain the number P=M=3 of parallel upgrade optical network unit, and start the escalation process of the individual optical network unit to be upgraded of 3-2, terminate.
In the present embodiment, by judging whether the current occupancy of central processing unit is greater than 50%, when being greater than 50%, can represent that optical line terminal closes on overload, terminating; When the current occupancy of central processing unit is less than or equal to 50%, represents that optical line terminal is not in and close on overload, the escalation process of multiple optical network unit to be upgraded can be started.
In a preferred embodiment, in step sl, when obtaining the number M=0 of optical network unit to be upgraded, order allows number N=1 of parallel upgrade optical network unit.
In the present embodiment, represent there is not optical network unit to be upgraded as M=0, make N=1 namely carry out initialization to N.
In a preferred embodiment, the number M of optical network unit to be upgraded is less than or equal to 128.
In the present embodiment, due in an OLT system, each line card can support 16 PON mouths, and the good to eat support of each PON 128 ONU, therefore 128 is the maximum of M.As P=M=1 for carry out serial upgrading to optical network unit; As P=M=128 for carry out parallel upgrade to optical network unit.
In a preferred embodiment, the detailed process of step S4 is:
Optical line terminal is by optical network unit management control interface agreement (ONUManagementandControlInterface, OMCI) send the software upgrading version of optical network unit to the individual optical network unit to be upgraded of P-Q, each optical network unit is upgraded voluntarily by after the software upgrading non-volatile received.
In the present embodiment, OMCI can support the remote upgrade of ONU, and its mechanism is the software version by OMCI protocol massages transmission ONU, can upgrade voluntarily after optical network unit is by the software upgrading non-volatile received.
As shown in Figure 4, a kind of adaptive optical network unit parallel upgrade system, is applied to optical line terminal and upgrades to optical network unit, comprising:
One first acquiring unit 1, in order to obtain the number M of optical network unit to be upgraded;
One comparing unit 2, connects the first acquiring unit 1, and comparing unit 2 allows the minimum value P between the number N of optical network unit described in parallel upgrade in order to the number M and compared and obtain optical network unit to be upgraded;
One upgrade unit 5, connects comparing unit 2, in order to start the escalation process of the optical network unit to be upgraded of predetermined number;
One judging unit 3, connects comparing unit 2, in order to judge whether P equals M;
One second acquisition unit 4, connection judgment unit 3, in order to obtain the current occupancy of the central processing unit of optical line terminal;
One processing unit 6, connect second acquisition unit 4, in order to regulate the value of the number N allowing parallel upgrade optical network unit according to the current occupancy of central processing unit, if allow the value of the number N of parallel upgrade optical network unit to increase progressively when the current occupancy of central processing unit is in low spot;
Predetermined number is the quantity that P-has been activated the optical network unit of escalation process.
In the present embodiment, adaptive optical network unit parallel upgrade system can regulate the value of the number N allowing parallel upgrade optical network unit by processing unit 6 according to the current occupancy of the central processing unit of optical line terminal, to realize utilizing OLT system to greatest extent when not making OLT system transship, to shorten update time.
In a preferred embodiment, processing unit 6 comprises:
One judge module 61, in order to judge whether the current occupancy of central processing unit is greater than setting threshold;
One assignment module 62, connection judgment module 61, for be less than when the current occupancy of central processing unit one preset threshold value time, order allows the number N=N+1 of parallel upgrade optical network unit.
Further, setting threshold can be 50%.
In the present embodiment, judging whether the current occupancy of central processing unit is greater than 50% by judge module 61, when being greater than 50%, can represent that optical line terminal closes on overload, terminate; When the current occupancy of central processing unit is less than or equal to 50%, represents that optical line terminal is not in and close on overload, the escalation process of multiple optical network unit to be upgraded can be started.
In a preferred embodiment, as the number M=0 of the optical network unit to be upgraded that the first acquiring unit 1 obtains, order allows number N=1 of optical network unit described in parallel upgrade.
In the present embodiment, represent there is not optical network unit to be upgraded as M=0, make N=1 namely carry out initialization to N.
In a preferred embodiment, the number M of optical network unit to be upgraded is less than or equal to 128.
In the present embodiment, due to an OLT system, each line card can support 16 PON mouths, and the good to eat support of each PON 128 ONU, therefore 128 is the maximum of M.As P=M=1, upgrade unit 5 pairs of optical network units carry out serial upgrading; As P=M=128, upgrade unit 5 pairs of optical network units carry out parallel upgrade.
In a preferred embodiment, upgrade unit 5 is by the software upgrading version of optical network unit management control interface agreement to the optical network unit transmission optical network unit to be upgraded of predetermined number, and each optical network unit is upgraded voluntarily by after the software upgrading non-volatile received.
In the present embodiment, OMCI can support the remote upgrade of ONU, and its mechanism is the software version by OMCI protocol massages transmission ONU, can upgrade voluntarily after optical network unit is by the software upgrading non-volatile received.
This introducing of the present invention negative feedback regulates the ONU quantity of parallel upgrade, and when making multiple ONU parallel upgrade, central processing unit current occupancy is in tolerance interval.When not making OLT system transship, update time can be shortened to greatest extent.
The foregoing is only preferred embodiment of the present invention; not thereby embodiments of the present invention and protection range is limited; to those skilled in the art; should recognize and all should be included in the scheme that equivalent replacement done by all utilizations specification of the present invention and diagramatic content and apparent change obtain in protection scope of the present invention.