Summary of the invention
Main purpose of the present invention, for method and the device of ONU quick active in a kind of gigabit passive optical network are provided, realizes ONU quick active, reduces the impact of activation on ONU business.
The present invention proposes the method for optical network unit ONU quick active in a kind of gigabit passive optical network, comprising:
OLT in gigabit passive optical network receives the sequence number response message that ONU sends, and described sequence number response message comprises sequence number response delay and random delay, and described ONU processes the time and the time consistency of processing distance measurement request of serial number request;
According to described sequence number response delay and random delay, determine the first balanced time delay of described ONU;
While sending described the first equilibrium, be extended down to described ONU, so that described ONU completes activation according to this equilibrium time delay.
Preferably, described transmission first also comprises after being extended down to described ONU when balanced:
By finding range and obtain system equalization time delay at least one times;
Send described system equalization time delay to described ONU, so that described ONU is according to the time delay of system equalization time delay adjustment transmission data.
Preferably, describedly obtain system equalization time delay and comprise by range finding at least one times:
By finding range and obtain at least one second balanced time delay at least one times;
The mean value that calculates described the second balanced time delay and the first balanced time delay, obtains described system equalization time delay.
Preferably, described according to sequence number response delay and random delay, determine that the first balanced time delay of ONU comprises:
According to described sequence number response delay and random delay, calculate the fixed delay of described ONU;
According to described fixed delay, calculate described the first balanced time delay.
The present invention also proposes the device of optical network unit ONU quick active in a kind of gigabit passive optical network, comprising:
Receiver module, the sequence number response message sending for receiving ONU, described sequence number response message comprises sequence number response delay and random delay, described ONU processes the time and the time consistency of processing distance measurement request of serial number request;
Determination module, for according to described sequence number response delay and random delay, determines the first balanced time delay of described ONU;
The first sending module, is extended down to described ONU for sending described first when balanced, so that described ONU completes activation according to this equilibrium time delay.
Preferably, in gigabit passive optical network, the device of ONU quick active also comprises:
Acquisition module, for obtaining system equalization time delay by range finding at least one times;
The second sending module, for sending described system equalization time delay to described ONU, so that described ONU is according to the time delay of system equalization time delay adjustment transmission data.
Preferably, described acquisition module comprises:
Range cells, for obtaining at least one second balanced time delay by range finding at least one times;
The first computing unit, calculates the mean value of described the second balanced time delay and the first balanced time delay, obtains described system equalization time delay.
Preferably, described determination module comprises:
The second computing unit, for according to described sequence number response delay and random delay, calculates the fixed delay of described ONU;
The 3rd computing unit, according to described fixed delay, calculates described the first balanced time delay.
Method and the device of ONU quick active in a kind of gigabit passive optical network that the present invention proposes, by obtain once balanced time delay in sequence number acquisition process, shorten the time of the balanced time delay of computing system, accelerated thus ONU activation, reduced the impact of activation on ONU business.
Embodiment
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
With reference to Fig. 1, method one embodiment of ONU quick active in a kind of gigabit passive optical network of the present invention is proposed, comprising:
OLT in step S10, gigabit passive optical network receives the sequence number response message that ONU sends, and described sequence number response message comprises sequence number response delay and random delay;
Obtain in the process of ONU sequence number at OLT, according to the ONU timing relationship shown in Fig. 2, the sequence number response delay receiving to OLT from the initial time of OLT downlink frame moment of the up Serial_Number_ONU message of ONU is:
Tdelay=Tpd+Ts1+Pre-EqD+Sstart+Rand-Delay(1)
Wherein Tpd is spread fiber time delay, and Ts1 is that ONU processes time of serial number request, and Tpd+Ts1 is fixed delay, different and different according to ONU and OLT distance; Pre-EqD is the preequalization time delay that OLT distributes to ONU, and Sstart is the time that OLT distributes to relative 0 moment of the response message that transmits Sequence Number of ONU, and Pre-EqD and Sstart are the parameter that OLT is known; Rand-Delay is the random delay of ONU while transmitting Sequence Number response message, and the Serial_Number_ONU message that OLT can send by ONU is known the value of Rand-Delay.
And OLT to the ranging process of ONU in, according to the ONU timing relationship shown in Fig. 3, the ranging response time delay receiving from the initial time of OLT downlink frame to OLT moment of the Serial_Number_ONU message that ONU sends is:
Tdelay=Tpd+Ts2+Pre-EqD+Sstart(2)
Wherein Tpd is spread fiber time delay, and Ts2 is that ONU processes time of distance measurement request, and Tpd+Ts2 is fixed delay, different and different according to ONU and OLT distance; Pre-EqD is the preequalization time delay that OLT distributes to ONU, and Sstart is the time that OLT distributes to relative 0 moment of the transmission ranging response message of ONU, and Pre-EqD and Sstart are the parameter that OLT is known.
In actual applications, ONU processes the time T s1 of serial number request and the time T s2 of processing distance measurement request is basically identical, and formula (2) becomes:
Tdelay=Tpd+Ts1+Pre-EqD+Sstart (3)
Relatively, both only differ from a random delay Rand-Delay to formula (1) during with serial number request, and in sequence number acquisition process, the random delay Rand-Delay of ONU carries in sequence number response message Serial_Number_ONU message.Therefore,, concerning OLT, in the time receiving the sequence number response message Serial_Number_ONU message of ONU transmission, can know the random delay Rand-Delay of ONU.
Step S11, according to described sequence number response delay and random delay, determine the first balanced time delay of described ONU;
According to sequence number response delay Tdelay and random delay Rand-Delay, and known Pre-EqD and Sstart and the formula (3) of OLT, can draw fixed delay Tpd+Ts1, extrapolate the first balanced time delay of ONU according to fixed delay.
Step S12, send described first and be extended down to described ONU when balanced, so that described ONU completes activation according to this equilibrium time delay.
OLT extrapolates the first balanced time delay, and distributes to ONU, carries out compensation of delay, and all ONU are equated to the logical reach of OLT, realizes upgoing O NU time division multiplexing and transmits data.
In the present embodiment, by obtain the first balanced time delay of calculating ONU in ONU sequence number in sequence number acquisition process, complete the once range finding of all new ONU, shorten ranging process, accelerate the speed that in GPON system, ONU activates, can realize the quick access of ONU, reduce new ONU in GPON system and activated the impact on other ONU regular traffic.
With reference to Fig. 2, in a kind of gigabit passive optical network of the present invention, in method one embodiment of ONU quick active, step S11 can comprise:
Step S111, according to described sequence number response delay and random delay, calculate the fixed delay of described ONU;
Step S112, according to described fixed delay, calculate described the first balanced time delay.
With reference to Fig. 3, the another embodiment of method of ONU quick active in a kind of gigabit passive optical network of the present invention is proposed, after execution step S12, also comprise:
Step S14, obtain system equalization time delay by range finding at least one times;
Time delay in the time that OLT obtains the first equilibrium by sequence number acquisition process, no longer find range as follow-up, this first time delay when balanced is system equalization time delay, but in order to obtain a system equalization time delay accurately, OLT generally can repeatedly find range to ONU, then averages as system equalization time delay.Delay constantly obtaining the first equilibrium by sequence number acquisition process, OLT also must find range to obtain system equalization time delay at least one times.
Step S15, send described system equalization time delay to described ONU, so that described ONU is according to the time delay of system equalization time delay adjustment transmission data.
OLT gives ONU by descending Ranging_Time message, the balanced time delay of ONU receiving system the time delay while adjusting oneself transmission data.
In the present embodiment, OLT, by the accurate system equalization time delay of repeatedly finding range, improves the accuracy of ONU transmission data.
With reference to Fig. 4, in the above-described embodiments, step S14 can comprise:
Step S141, obtain at least one second balanced time delay by range finding at least one times;
Supposing in GPON system needs ONU to carry out n(n >=1) inferior range finding, when obtain one first equilibrium by sequence number acquisition process, delay, OLT also can obtain 1 the second balanced time delay of n –.
Step S142, calculate the mean value of described the second balanced time delay and the first balanced time delay, obtain described system equalization time delay.
The second balanced time delay of the ONU that getting finds range for n-1 time obtains and the mean value of the first balanced time delay are distributed to ONU as system equalization time delay.
With reference to Fig. 5, device one embodiment of ONU quick active in gigabit passive optical network of the present invention is proposed, comprising:
Receiver module 10, the sequence number response message sending for receiving ONU, described sequence number response message comprises sequence number response delay and random delay;
Determination module 20, for according to described sequence number response delay and random delay, determines the first balanced time delay of described ONU;
The first sending module 30, is extended down to described ONU for sending described first when balanced, so that described ONU completes activation according to this equilibrium time delay.
Obtain in the process of ONU sequence number at OLT, according to the ONU timing relationship shown in Fig. 2, the sequence number response delay receiving to OLT from the initial time of OLT downlink frame moment of the up Serial_Number_ONU message of ONU is:
Tdelay=Tpd+Ts1+Pre-EqD+Sstart+Rand-Delay(1)
Wherein Tpd is spread fiber time delay, and Ts1 is that ONU processes time of serial number request, and Tpd+Ts1 is fixed delay, different and different according to ONU and OLT distance; Pre-EqD is the preequalization time delay that OLT distributes to ONU, and Sstart is the time that OLT distributes to relative 0 moment of the response message that transmits Sequence Number of ONU, and Pre-EqD and Sstart are the parameter that OLT is known; Rand-Delay is the random delay of ONU while transmitting Sequence Number response message, and the Serial_Number_ONU message that OLT can send by ONU is known the value of Rand-Delay.
And OLT to the ranging process of ONU in, according to the ONU timing relationship shown in Fig. 3, the ranging response time delay receiving from the initial time of OLT downlink frame to OLT moment of the Serial_Number_ONU message that ONU sends is:
Tdelay=Tpd+Ts2+Pre-EqD+Sstart (2)
Wherein Tpd is spread fiber time delay, and Ts2 is that ONU processes time of distance measurement request, and Tpd+Ts2 is fixed delay, different and different according to ONU and OLT distance; Pre-EqD is the preequalization time delay that OLT distributes to ONU, and Sstart is the time that OLT distributes to relative 0 moment of the transmission ranging response message of ONU, and Pre-EqD and Sstart are the parameter that OLT is known.
In actual applications, ONU processes the time T s1 of serial number request and the time T s2 of processing distance measurement request is basically identical, and formula (2) becomes:
Tdelay=Tpd+Ts1+Pre-EqD+Sstart (3)
Relatively, both only differ from a random delay Rand-Delay to formula (1) during with serial number request, and in sequence number acquisition process, the random delay Rand-Delay of ONU carries in sequence number response message Serial_Number_ONU message.Therefore,, concerning OLT, in the time that receiver module 10 receives the sequence number response message Serial_Number_ONU message of ONU transmission, can know the random delay Rand-Delay of ONU.
Determination module 20 is according to sequence number response delay Tdelay and random delay Rand-Delay, and known Pre-EqD and Sstart and the formula (3) of OLT, can draw fixed delay Tpd+Ts1, extrapolates the first balanced time delay of ONU according to fixed delay.
The first sending module 30 distributes the first balanced time delay to ONU, carries out compensation of delay, and all ONU are equated to the logical reach of OLT, realizes upgoing O NU time division multiplexing and transmits data.
In the present embodiment, by obtain the first balanced time delay of calculating ONU in ONU sequence number in sequence number acquisition process, complete the once range finding of all new ONU, shorten ranging process, accelerate the speed that in GPON system, ONU activates, can realize the quick access of ONU, reduce new ONU in GPON system and activated the impact on other ONU regular traffic.
With reference to Fig. 6, in gigabit passive optical network, in device one embodiment of ONU quick active, determination module 20 comprises:
The second computing unit 21, for according to described sequence number response delay and random delay, calculates the fixed delay of described ONU;
The 3rd computing unit 22, according to described fixed delay, calculates described the first balanced time delay.
With reference to Fig. 7, the another embodiment of device of ONU quick active in gigabit passive optical network of the present invention is proposed, in the above-described embodiments, also comprise:
Acquisition module 50, for obtaining system equalization time delay by range finding at least one times;
The second sending module 60, for sending described system equalization time delay to described ONU, so that described ONU is according to the time delay of system equalization time delay adjustment transmission data.
Time delay in the time that OLT obtains the first equilibrium by sequence number acquisition process, no longer find range as follow-up, this first time delay when balanced is system equalization time delay, but in order to obtain a system equalization time delay accurately, OLT generally can repeatedly find range to ONU, then averages as system equalization time delay.Delay constantly obtaining the first equilibrium by sequence number acquisition process, acquisition module 50 also must find range to obtain system equalization time delay at least one times.
The second sending module 60 is given ONU by descending Ranging_Time message, the balanced time delay of ONU receiving system the time delay while adjusting oneself transmission data.
In the present embodiment, OLT, by the accurate system equalization time delay of repeatedly finding range, improves the accuracy of ONU transmission data.
With reference to Fig. 8, in the above-described embodiments, acquisition module 50 comprises:
Range cells 51, for obtaining at least one second balanced time delay by range finding at least one times;
The first computing unit 52, calculates the mean value of described the second balanced time delay and the first balanced time delay, obtains described system equalization time delay.
Supposing in GPON system needs ONU to carry out n(n >=1) inferior range finding, when obtain one first equilibrium by sequence number acquisition process, to delay, range cells 51 also can obtain 1 the second balanced time delay of n –.
The first computing unit 52 is got the second balanced time delay of n-1 the ONU that obtain of range finding and the mean value of the first balanced time delay is distributed to ONU as system equalization time delay.
The foregoing is only the preferred embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes specification of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.