Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of method and optical line terminal that carries out optical network unit allocated bandwidth, saves the expense of upstream bandwidth.
In order to address the above problem, the invention provides a kind of optical line terminal that carries out optical network unit allocated bandwidth, comprising: Bandwidth estimation module, bandwidth calculation module and bandwidth determination module; Described Bandwidth estimation module, for estimating up expense and the demand payload flow of described optical network unit according to the upstream data flow of optical network unit and notifying to described bandwidth calculation module, Bandwidth estimation module is estimated the up expense overhead (n+1) of n+1 Dynamic Bandwidth Allocation cycle time network element according to following formula:
overhead(n+1)=Grant(n-1)–pm(n+1)–idle(n+1);
Grant(n-1) refer to described in n-1 Dynamic Bandwidth Allocation is during the cycle that optical line terminal is the bandwidth of each business container allocation in described optical network unit; Pm (n+1) refers to the upstream quantitative statistics value that n+1 Dynamic Bandwidth Allocation cycle time network element sends to optical line terminal; Idle (n+1) refers to the statistical value of the idle data that n+1 Dynamic Bandwidth Allocation cycle time network element sends to optical line terminal, and n is greater than 1 integer.; Described bandwidth calculation module, for being the bandwidth of each business container allocation of described optical network unit according to up expense and the demand payload flow rate calculation of the described optical network unit of described Bandwidth estimation module output; Described bandwidth determination module is each business container allocation bandwidth in described optical network unit for the bandwidth in downlink frame.
Further, above-mentioned optical line terminal also has following characteristics:
Also comprise the main control module being connected with described bandwidth calculation module; Described main control module, the position for the data of determining each business container of described optical network unit in uplink frame; Described bandwidth calculation module, also for according to the position of each definite business container of described main control module being described optical network unit distribution bandwidth.
Further, above-mentioned optical line terminal also has following characteristics:
Described main control module, also for being just arranged in order the position of each business container in the same burst of uplink frame according to the priority of described optical network unit business container; Or, the business container of limit priority is set in separately in a burst, the business container of other non-limit priority is set in other one or more bursts.
Further, above-mentioned optical line terminal also has following characteristics:
Described bandwidth calculation module, is also used to the distribution bandwidth of each business container to be the multiple of 255 bytes; The expense that comprises physical layer overhead byte for being arranged in the bandwidth of business container allocation of the burst primary importance of uplink frame.
Further, above-mentioned optical line terminal also has following characteristics:
Described bandwidth calculation module, be also used to the distribution bandwidth of each business container be the multiple of 255 bytes and deviant delta byte and, delta is greater than 16 integers that are less than 239; For the value of delta in the bandwidth of each business container allocation does not fall into value under the condition within the scope of check byte meeting bursty data.
In order to address the above problem, the present invention also provides a kind of method of carrying out optical network unit allocated bandwidth, comprise: up expense and the demand payload flow of according to the upstream data flow of optical network unit, estimating optical network unit, according to the up expense of described optical network unit and demand payload flow rate calculation, be the bandwidth of each business container allocation in described optical network unit, be each business container allocation bandwidth in described optical network unit in the bandwidth of downlink frame;
According to following formula, estimate the up expense overhead (n+1) of n+1 Dynamic Bandwidth Allocation cycle time network element:
overhead(n+1)=Grant(n-1)–pm(n+1)–idle(n+1);
Grant(n-1) refer to n-1 Dynamic Bandwidth Allocation during the cycle optical line terminal be the bandwidth of each business container allocation in described optical network unit; Pm (n+1) refers to the upstream quantitative statistics value that n+1 Dynamic Bandwidth Allocation cycle time network element sends to optical line terminal; Idle (n+1) refers to the statistical value of the idle data that n+1 Dynamic Bandwidth Allocation cycle time network element sends to optical line terminal, and n is greater than 1 integer.
Further, said method also has following characteristics:
The position of the data that described optical line terminal is determined each business container in described optical network unit in uplink frame; And be that described optical network unit distributes bandwidth according to the position of each business container of determining.
Further, said method also has following characteristics:
Optical line terminal is just arranged in order the position of each business container in the same burst of uplink frame according to the priority of business container in described optical network unit; Or, the business container of limit priority is set in separately in a burst, the business container of other non-limit priority is set in other one or more bursts.
Further, said method also has following characteristics:
The distribution bandwidth that described optical line terminal is each business container is the multiple of 255 bytes; The expense that comprises physical layer overhead byte for being arranged in the bandwidth of business container allocation of the burst primary importance of uplink frame.
Further, said method also has following characteristics:
The multiple that described optical line terminal is 255 bytes for the distribution bandwidth of each business container and deviant delta byte with, delta is greater than 16 integers that are less than 239; For the value of delta in the bandwidth of each business container allocation does not fall into value under the condition within the scope of check byte meeting bursty data.
The invention provides a technical scheme of supporting uplink burst and FEC function in GPON, the realization that this technical scheme can the desired correlation function of supported protocol; Healthy and strong performance when this scheme has guaranteed again transmitting uplink data when reducing uplink burst data stream expense.In the present invention, while determining optical network unit bandwidth, the bandwidth with reference to distributing before this sub-distribution, makes the distribution of this bandwidth more excellent.
Embodiment
In order to describe the present invention in detail, the Principle of Communication of OLT and ONU in the present invention is described with Fig. 3 and Fig. 4.
As shown in Figure 3, ONU receives input data and comprises stable data flow (Constant Bit Rate, be called for short CBR) and data flow (the Variable Bit Rate that happens suddenly, be called for short VBR), be buffered in memory and by the data volume of buffer memory and pass through DBRU report reporting to OLT, after OLT receives, according to DBA algorithm, obtain the bandwidth of distributing into each ONU, ONU determines to send to OLT the upstream data of some according to the data volume of preserving in the bandwidth being assigned to and memory, the data volume of this upstream data is one minimum in the OLT corresponding data volume of upstream bandwidth of distributing and all buffer data sizes.
Fig. 4 has described the sequential relationship of OLT and ONU communication.In (n-1) individual DBA cycle, ONU reports the concurrent uplink traffic of sending of DBRU report; N DBA cycle, OLT is according to the statistical value of DBA algorithm and DBRU report and uplink traffic, carry out DBA computing and obtain the bandwidth into each TCONT distributes in ONU, so that ONU sends upstream data in (n+1) individual DBA cycle, obviously, the DBRU demand that ONU reports will just can be responded at two DBA week after dates.
As shown in Figure 5, the optical line terminal that carries out optical network unit allocated bandwidth in the present embodiment comprises main control module, Bandwidth estimation module, bandwidth calculation module, bandwidth determination module.
Main control module, the position for the data of determining each business container of optical network unit in uplink frame.Concrete, according to the priority of business container in described optical network unit, be just arranged in order the position of each business container in the same burst of uplink frame; Or, the business container of limit priority is set in separately in a burst, the business container of other non-limit priority is set in other one or more bursts.
Main control module, the also maximum of bandwidth and the information such as priority level of optical network unit for notify current optical network unit to be assigned with to bandwidth calculation module; The sequential also operating for controlling bandwidth calculation module and bandwidth determination module.
Bandwidth estimation module, for estimating up expense and the demand payload flow of described optical network unit and notifying to bandwidth calculation module according to the upstream data flow of optical network unit.
Bandwidth calculation module, being used for according to up expense and the demand payload flow rate calculation of the optical network unit of Bandwidth estimation module output is the bandwidth of each business container allocation of described optical network unit, and the position of each business container of determining according to described main control module is that described optical network unit distributes bandwidth.
Concrete, Bandwidth estimation module is estimated the up expense overhead (n+1) of n+1 Dynamic Bandwidth Allocation cycle time network element according to following formula:
overhead(n+1)=Grant(n-1)–pm(n+1)–idle(n+1);
Grant(n-1) refer to described in n-1 Dynamic Bandwidth Allocation is during the cycle that optical line terminal is the bandwidth of each business container allocation in described optical network unit; Pm (n+1) refers to the upstream quantitative statistics value that n+1 Dynamic Bandwidth Allocation cycle time network element sends to optical line terminal; Idle (n+1) refers to the statistical value of the idle data that n+1 Dynamic Bandwidth Allocation cycle time network element sends to optical line terminal, and n is greater than 1 integer.
The estimation of optical network unit demand payload flow is prior art, repeats no more.
Bandwidth calculation module makes bursty data not fall into the condition within the scope of check byte, also be used to the distribution bandwidth of each business container to be the multiple of 255 bytes, the bandwidth of business container allocation that is arranged in the burst primary importance of uplink frame comprises the expense of PLOU byte; Or, for the distribution bandwidth of each business container be the multiple of 255 bytes and deviant D byte and, D is greater than 16 integers that are less than 239; For the value of D in the bandwidth of each business container allocation does not fall into value under the condition within the scope of check byte meeting bursty data.
Bandwidth determination module, for the bandwidth in downlink frame, it is each business container allocation bandwidth in described optical network unit, generate the table of articles of each business container, in table of articles, indicate this business container in uplink frame, to be allowed to send initial time and the end time of upstream data, and by sending module, this information exchange is crossed to downlink frame and notify to optical network unit, notify it to send time and the position of upstream data.
In the present invention, the method of carrying out optical network unit allocated bandwidth comprises: according to the upstream data flow of optical network unit, estimating the up expense of optical network unit, is the bandwidth of each business container allocation in optical network unit according to the up expense of optical network unit and demand payload flow rate calculation; It in the bandwidth of downlink frame, is each business container allocation bandwidth in optical network unit.
Concrete, according to following formula, estimate the up expense overhead (n+1) of n+1 Dynamic Bandwidth Allocation cycle time network element:
overhead(n+1)=Grant(n-1)–pm(n+1)–idle(n+1);
Grant(n-1) refer to described in n-1 Dynamic Bandwidth Allocation is during the cycle that optical line terminal is the bandwidth of each business container allocation in described optical network unit; Pm (n+1) refers to the upstream quantitative statistics value that n+1 Dynamic Bandwidth Allocation cycle time network element sends to optical line terminal; Idle (n+1) refers to the statistical value of the idle data that n+1 Dynamic Bandwidth Allocation cycle time network element sends to optical line terminal, and n is greater than 1 integer.
The position of the data of also determining each business container in optical network unit in optical line terminal in uplink frame.For example, the information of each business container of indication comprises two bits, and one is SOB (start of burst), and one is EOB(end of burst); Wherein SOB is that the corresponding TCONT of 1 expression is the beginning of a burst; EOB is that the corresponding TCONT of 1 expression is the ending of a burst.If current TCONT is in the foremost of the TCONT of ONU chained list, SOB should be configured to 1 so; If at the TCONT of ONU chained list backmost, LOB should be configured to 1 to current TCONT so; If current TCONT is in the centre of the TCONT of ONU chained list, SOB and LOB should all be configured to 0 so, as shown in Figure 6A.The included TCONT of SOB and EOB has just formed burst data of uploading in chained list; And if only if, and SOB is set at 1 o'clock, the bandwidth that OLT just can distribute PLOU to use for this TCONT, and other TCONT will share this PLOU byte.
Optical line terminal is that optical network unit distributes bandwidth according to the position of each business container of determining.Mode one, can just be arranged in order the position of each business container in the same burst of uplink frame according to the priority of business container in optical network unit; Mode two, can also be set in the business container of limit priority separately in the burst of, and the business container of other non-limit priority is set in other one or more bursts.
Three TCONT of ONU1 are respectively Class1, type 2 and type 3, and three TCONT of ONU2 are respectively Class1, type 4 and type 5, and wherein the TCONT of Class1 is very high to the requirement of the shake of the data of transmission in actual applications; In the method for salary distribution of the mode one as shown in Fig. 6 B, thereby ONU1/ONU2 has formed respectively the minimum that a burst has reached the PLOU bandwidth cost of system.As shown in Figure 6 C in the method for salary distribution of mode two, two ONU have formed four burst, two have all formed independently two burst and have been arranged in the foremost of chained list for the TCONT of type1, such configuration mode, although brought certain overhead, effectively guaranteed that TCONT's that two is type1 is dithered as zero.Below only just illustrate TCONT uplink frame burst can distribution locations diversity, specific implementation including but not limited to above for example.
The formula of describing in said method is known, no matter whether FEC function enables, in Bandwidth estimation module, directly with formula (1), can accurately estimate the expense of the data uploaded, because in a frame, other bandwidth except payload and data are all taken as expense, comprising: PLOU, PLOAM, DBRU, GEM header, FEC CRC etc.
For when FEC function is enabled, the beginning of upstream data and the sign of ending can not drop on the verification region of FEC, the present invention proposes following two kinds of implementations;
Mode one: for the distribution bandwidth of each business container is the multiple of 255 bytes; The expense that comprises PLOU byte for being arranged in the bandwidth of business container allocation of the burst primary importance of uplink frame.
When FEC function is enabled, bandwidth calculation module rounds up the distribution bandwidth of each TCONT and normalizes to the multiple of 255 bytes, at bandwidth determination module, can finely tune because of section bandwidth, thereby the beginning of data and the sign of ending do not drop on the verification region of FEC when guaranteeing that the final multiple that distributes the bandwidth of going down to be 255bytes allows FEC open simultaneously; Specific implementation step is as follows:
Bandwidth calculation module produces two kinds of TCONT allocation result:
The TCONT of 1.SOB=1, comprises the expense plo_bytes of PLOU in the bandwidth of distribution
Bandwidth calculation module is distributed bandwidth=255n+plo_byte-3
The TCONT of 2.SOB=0, does not comprise plo_bytes in the bandwidth of distribution
Bandwidth calculation module is distributed bandwidth=255n
In bandwidth determination module, at the afterbody of each frame, because the byte of afterbody is limited, the bandwidth that belongs to some TCONT may be cut into two; When bandwidth determination module is processed, there are two kinds of situations:
If the TCONT for SOB=1 does not cut into slices, distribute so the stop-start=255n-3 of the bandwidth of going down; If section, first is at the stop-start=255m-3 of the bandwidth of the entry of present frame, second entry stop-start=255 (n-m)-3 that belongs to next frame, and second access entry got from total bandwidth, and (plo_byte-3) byte distributes for PLOU expense.
If the TCONT for SOB=0 does not cut into slices, so stop-start=255n; If section, first entry stop-start=255m, second entry stop-start=255 (n-m)-3, and second access entry got (plo_byte-3) byte for PLOU expense from total bandwidth.
That is to say, as long as be exactly 255n-3 with the access entry length of plo_bytes, otherwise be exactly 255n byte.
Mode two: for the distribution bandwidth of each business container be the multiple of 255 bytes and deviant delta byte and, delta is greater than 16 integers that are less than 239; For the value of delta in the bandwidth of each business container allocation does not fall into value under the condition within the scope of check byte meeting bursty data.
In specific implementation, the distribution bandwidth of each TCONT can be also 255n+delta(16<delta<239) form, wherein delta is a parameter that can configure; Bandwidth calculation module will guarantee that start and stop do not drop within the scope of check byte when distributing bandwidth, and last delta of whole burst is greater than 16 and be less than 239 bytes.Once concrete implementation method is to find that stop just drops within the scope of check byte stop is carried out to the requirement that fine setting backward makes it to meet agreement; Be exemplified below: such as an ONU has three TCONT, is respectively t1, t2 and t3; The bandwidth that bandwidth calculation module calculates is 250bytes, 30bytes and 220bytes, the stop pointer of t1 should be fine-tuning to 255bytes place so, the stop pointer of t2 should be at (255+30) bytes place, and the stop pointer of t3 should be at (255+30+225) bytes place.Bandwidth determination module will take start and stop and not drop on check byte scope and continue similarly to finely tune for the second time in section place as principle passed the bandwidth come by bandwidth calculation module across frame place; Concrete step can when burst does not finish, be calculated the pointer position of each TCONT referring to Fig. 7, if the stop pointer of a certain TCONT drops in verification region, overabsorption tconti mono-point bandwidth, is adjusted to its stop pointer beyond verification region.After burst finishes, be judged as the bandwidth of TCONT distribution when the intersection of front and back frame, in inspection burst, whether the stop pointer of the TCONT of a frame is moved to verification region in the back, if, to its stop pointer fine setting.At Fig. 7, can see, once the bandwidth of certain TCONT is cut into slices, the stop pointer of whole TCONT of a frame is because start pointer has again made zero and may need to readjust so in the back.
In superincumbent two kinds of methods, first method distributes the granularity of bandwidth larger, and bandwidth waste is many; The two-wheeled trim process process more complicated of the bandwidth of second method.
Certainly; the present invention also can have other various embodiments; in the situation that not deviating from spirit of the present invention and essence thereof; those of ordinary skill in the art are when making according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.