Embodiment
For explanation the specific embodiment of the present invention, relevant passive optical network and operational mode thereof are done following agreement.But following agreement does not constitute constraint to content of the present invention.
The passive optical network PON system comprises optical line terminal OLT and at least one optical network unit ONU.What the PON system uplink transmitted is elongated degree Ether frame, and its length is 50 bytes-1518 bytes.The PON system finishes uplink scheduling and the dynamic bandwidth allocation algorithm of OLT to ONU by authorization messages and report message mechanism.And uplink scheduling algorithm that adopts in the central control unit of OLT and message generation mechanism and dynamic bandwidth allocation algorithm are separated from each other, and are realized by the disparate modules of OLT.
In the polymorphic type service environment, communication service is divided into multiple different type of service by business-level agreement SLA.The professional classification by demand can be divided into non-assurance business and guarantee professional.Non-guarantee professional without any operation quality requirement, related data is only just transmitted as possible in system when remaining bandwidth is arranged, it has minimum allocated bandwidth rank in business-level agreement SLA.Guarantee the professional specific operation quality requirement that has.Wherein, guarantee that business can be subdivided into multiple different type of service according to business-level agreement SLA.For different types of service, SLA provides the information that comprises this type of service Mean Speed and peak rate.Peak rate can adopt various ways to represent.For example, peak rate can be expressed as the percentage of the difference of peak rate and Mean Speed with respect to Mean Speed.The different representations of Mean Speed and peak rate are not construed as limiting the invention.When certain type of service is carried out uplink with the transmission rate that surpasses peak rate, think that it has taken the network bandwidth resources that other type of service should be enjoyed, and has influenced network fairness.
For guaranteeing the quality of speech business, require each ONU among the PON to send an Ether frame (being generally minimum ether frame length 50 bytes) that includes voice messaging in the cycle among the present invention in 125 microseconds.Therefore, the maximum polling cycle of the ONU of PON system is 125 microseconds in this example, and promptly each of PON system has the ONU of business demand all will send one time upstream data at least within 125 microseconds.
Describe the specific embodiment of the present invention in detail below in conjunction with accompanying drawing.
Fig. 1 is the schematic configuration diagram of optical line terminal of the present invention and dynamic bandwidth allocation apparatus.
In Fig. 1, the central control unit 100 of optical line terminal can be to be used for finishing the device that PON system uplink scheduling/message produces operation and Dynamic Bandwidth Allocation in the optical line terminal OLT of PON system.Scheduler/message generation module 101 can be to be used for finishing PON system uplink dispatching algorithm and the device that produces each ONU authorization messages.Wherein the ONU authorization messages comprises such as up access informations such as type of service sign, beginning transmission time, end transmission times.
Dynamic bandwidth allocation apparatus 102 can be the device that is used for realizing comprising PON system dynamics allocated bandwidth of the present invention, comprising bandwidth evaluation module 1022, corresponding to ONU transmission regulator and the bandwidth broker 1021 of each ONU.Two ONU transmission regulators 1023,1024 only are shown as an example among Fig. 1.
Being example below with ONU-A describes the course of work of the central control unit 100 of optical line terminal.The processing procedure of other ONU (as ONU-B) and the processing procedure executed in parallel of ONU-A.
When the report message of ONU-A arrives described central control unit 100, the entrained information such as type of service sign, request amount of this report message is sent to bandwidth evaluation module 1022 immediately.Bandwidth evaluation module 1022 is taked different allocated bandwidth mechanism according to different types of service.When comprising the multi-service type request in this report message and comprise 1 request of the professional type of service of non-voice assurance, bandwidth evaluation module 1022 is extracted the accumulation credit rating of type of service 1 from the transmission regulator 1023 of ONU-A correspondence, calculate the upstream bandwidth of distributing to type of service 1 among the ONU-A according to bandwidth allocation algorithm of the present invention, it is the uplink time slot, and act on type of service 1 credit rating generator 10231, make the accumulation credit rating of 10231 pairs of types of service 1 of type of service 1 credit rating generator make corresponding modification.
The accumulation credit rating of type of service 1 can be to be kept in the credit variable of type of service 1 credit rating generator 10231, by type of service 1 business-level agreement SLA 10232 controls, the summation of the credit rating that produces in type of service 1 credit rating generator 10231.
With above-mentioned processing parallel be, bandwidth evaluation module 1022 calculates the uplink time slot that other non-voice that comprises in the ONU-A report message guarantees professional type of service, and act on the credit rating generator (for example credit rating generator 10233 of type of service 2) of corresponding service type, make the credit rating generator of corresponding service type make corresponding modification to the accumulation credit rating of corresponding service type.
The business-level agreement SLA and each type of service business-level agreement SLA (shown in 10232,10234) in bandwidth evaluation module 1022 and each ONU transmission regulator of bandwidth broker 1021 all types of service of management provide the corresponding service class information.And bandwidth broker 1021 can receive ONU instruction in some way and upgrade the content of the business-level agreement SLA of one or more types of service.Simultaneously, the SLA content of type of service 1 business-level agreement SLA10232, the corresponding change type of service 1 of type of service 2 business-level agreement SLA, 10234 meetings.
Fig. 2 is the schematic flow diagram of distribution method of dynamic bandwidth of the present invention, also is the flow chart of the bandwidth allocation algorithm of the bandwidth evaluation module 1022 among Fig. 1.The report message that only receives ONU-A with bandwidth evaluation module 1022 is that example describes below.
In step 201, receive the report message of ONU-A.In step 202, judge and whether contain the multiple business type requests in this report message.If step 202 judged result is a "No", promptly do not comprise multiple transmission request in the report message, then flow process forwards step 225 to.
In step 225, single type of service bandwidth allocation algorithm of planting application standard or existing calculates corresponding allocation result.Then, in step 226, with utilizing final bandwidth allocation result standard or that existing single kind type of service bandwidth allocation algorithm draws to be notified to scheduler/message generation module 101, for its use.
So far, bandwidth evaluation module 1022 has been finished an allocated bandwidth when only containing the request of list kind type of service in the ONU-A report message.When receiving report message once more, the handling process of bandwidth evaluation module 1022 forwards step 201 to, the new calculating once of beginning.
If the judged result of step 202 is a "Yes", promptly the ONU-A report message comprises the request of multiple business type, and then flow process forwards step 203 to.
In step 203, each information field of audit report message wherein comprises the sign of each type of service at least in each information field.
Then, judge in step 204 whether request is to guarantee business.If the judged result of step 204 is a "No", promptly ask to be non-assurance business, then in step 223, judge to guarantee whether the service bandwidth distribution is finished.
If the judged result of step 223 is a "No", guarantee promptly that service bandwidth distributes not finish as yet, then continue execution in step 223.If the judged result of step 223 is a "Yes", guarantee promptly that service bandwidth distributes to finish, then forward step 224 to.
If the judged result in the step 204 is a "Yes", i.e. request is professional for guaranteeing, then execution in step 205.
In step 205, judge whether the assurance business is non-voice service.If the judged result of step 205 is a "No", i.e. request is speech business, then in step 222 with 125 microseconds (being that frequency is 8KHz) allocated bandwidth of carrying out speech business at interval, flow process forwards step 221 to then.
If the judged result of step 205 is a "Yes", i.e. request is non-voice service, then carries out the step of the following stated.These steps are carried out allocated bandwidth for the non-voice of all requests guarantees professional type of service.
Below be that example describes with type of service 1, other non-voice guarantees that the operation of professional type of service all carries out with parallel mode.
At first, in step 206, bandwidth evaluation module 1022 reads the state information of type of service 1 from the report message of ONU-A.Wherein state information can comprise type of service sign and corresponding to the request amount of type of service 1.
Then, bandwidth evaluation module 1022 is obtained the accumulation credit rating of type of service 1 from ONU-A transmission regulator 1023 in step 207.
Because the credit rating generator 10231 of type of service 1 carries out work according to algorithm shown in Figure 3, so the numerical value of the accumulation credit rating of type of service 1 has represented type of service 1 bandwidth can be for what of sendout.
In step 208, whether the accumulation credit rating of judging type of service 1 is for just.If the judged result in the step 208 is a "No", promptly the accumulation credit rating of type of service 1 is " bearing ", and then flow process forwards step 218 to.In step 218, the new sendout of type of service 1 is changed to zero byte.Here, sendout can be to distribute to the uplink byte number of the type of service 1 of ONU-A.
If the judged result of step 208 is a "Yes", promptly the accumulation credit rating of type of service 1 is " just ", and then flow process proceeds to step 209.In step 209, will accumulate credit conversion is byte number, its objective is the sendout of utilizing the accumulation credit rating directly to weigh type of service 1.Accumulation credit rating after conversion this moment is then represented type of service 1 distributable byte number.
Because the PON system is used to transmit Ether frame, when the accumulation credit rating that is converted to byte number during less than the shortest ether frame length 50 bytes, bandwidth evaluation module 1022 can not be carried out allocated bandwidth.Therefore, in step 210, whether the accumulation credit that is converted to byte number of determining step 209 outputs is more than or equal to 50 bytes.
If the judged result of step 210 is a "No", promptly accumulate the minimum Ether frame that credit rating is not enough to send 50 bytes, then flow process forwards step 218 to, is changed to zero byte in this new sendout with type of service 1.
If the judged result of step 210 is a "Yes", promptly accumulate credit greater than 50 bytes, then flow process forwards step 211 to.
In step 211, accumulation credit rating and the request amount that is converted to byte number compared.As previously mentioned, the accumulation credit rating that is converted to byte number has been represented type of service 1 distributable byte number.
In step 212, judge that whether the accumulation credit rating is less than request amount.
If the judged result of step 212 is a "No", promptly accumulate credit rating greater than request amount, then flow process forwards step 216 to.In step 216, new sendout is set to request amount.
If the judged result of step 212 is a "Yes", promptly accumulate credit rating less than request amount, this means that request amount has surpassed distributable byte number, then flow process forwards step 213 to.In step 213, the peak value of computing service Class1 accumulation credit rating.Peak value accumulation credit rating may be calculated:
Peak value accumulation credit rating=(accumulation credit rating * peak value increment)+accumulation credit rating.
Then, in step 214, peak value accumulation credit rating and request amount are compared.
In step 215, judge that whether peak value accumulation credit rating is more than or equal to request amount.If the judged result of step 215 is a "Yes", i.e. peak value accumulation credit rating is more than or equal to request amount, and then flow process forwards step 216 to.In step 216, new sendout is set to request amount.
If the judged result of step 215 is a "No", i.e. peak value accumulation credit rating is less than request amount, and then flow process forwards step 217 to.In step 217, new sendout is set to existing accumulation credit rating.The effect of step 217 is, the new sendout of type of service 1 is less than the request amount of reality, and this takes turns the upstream bandwidth deficiency of transmission to cause type of service 1.But a kind of punishment of the upstream request that this deficiency multi-service type dynamic bandwidth of the present invention just algorithm requires the peak value that exceeds type of service 1 SLA.
As can be seen from Figure 2, after step 218 or 216 or 217 was determined new sendout, flow process forwarded step 219 to.In step 219, new sendout is converted to the transmission time slot of the new sendout of transmission.
Afterwards, in step 220, bandwidth evaluation module 1022 will be accumulated the value that credit rating reduces new sendout, and make type of service 1 credit rating generator 10231 preserve new accumulation credit rating in the credit variable.
Here need to specify that if request amount during greater than the accumulation credit rating and less than the peak value cumulative amount, then press Fig. 2 flow process, new sendout equals request amount and greater than accumulating credit rating.After the execution in step 220, the accumulation credit rating value in the credit variable will become negative.This will judge the positive and negative reason of accumulation credit rating in step 208 just before.If the upstream request of this type of service is arranged just this moment, then as previously mentioned, making new sendout is zero byte, surpasses the punishment that should distribute bandwidth as such last upstream request amount.Described punishment is till the accumulation credit rating increases to positive number again.
Other non-voice that walks abreast with type of service 1 guarantees the also parallel operation of having finished above each step of professional type of service.
So far, multi-service type dynamic bandwidth allocation algorithm of the present invention has been finished the allocated bandwidth that non-voice is guaranteed professional type of service.
Afterwards, flow process proceeds to step 221.
In step 221,, further calculate the remaining bandwidth in 125 microsecond cycles, i.e. remaining time slots based on the result of calculation of step 222 and step 220.
This moment the allocated bandwidth of guaranteed business all finish.
If the judged result of step 223 is a "Yes", guarantee that promptly service bandwidth has assigned, then flow process forwards step 224 to.In step 224,, utilize such as methods such as fair pro rates, for non-assurance business is carried out allocated bandwidth according to the remaining bandwidth in 125 microseconds of step 221 calculating.
At this moment, the bandwidth of the type of service of all requests all assigns in the ONU-A report message.Then, flow process forwards step 226 to.In step 226, comprise the final bandwidth allocation result of the type of service of all requests to scheduler/message generation module 101 notices.
So far, bandwidth evaluation module 1022 has been finished the allocated bandwidth that once contains the multiple business type requests.When receiving report message once more, the flow process of bandwidth evaluation module 1022 forwards step 201 to, the calculating of a beginning new round.
Fig. 3 is the schematic flow diagram of the credit rating production method that cooperates with the method for Fig. 2, also is the flow chart of the algorithm of the credit rating generator (10231 or 10233) among Fig. 1.Below be that example describes with the credit rating generator 10231 of the type of service 1 of ONU-A, the principle of the credit rating generator of other type of service is identical with the credit rating generator of type of service 1.
Following 2 points at first are described.
The first, bandwidth broker 1021 can receive ONU instruction in some way and upgrade the content of the business-level agreement SLA of one or more types of service, simultaneously the SLA content that type of service 1 business-level agreement SLA 10232 can corresponding change type of service 1.As shown in Figure 1, between bandwidth broker 1021 and the type of service 1 credit rating generator 10231 interactively is arranged.Flow process shown in Figure 3 has comprised the step relevant with the SLA content changing.
The second, for preventing the over-allocation to type of service 1 upstream bandwidth, type of service 1 credit rating generator 10231 is provided with the cumulative maximum credit rating.If imagination does not have the cumulative maximum credit rating, then when not having type of service 1 upstream request for a long time, according to algorithm shown in Figure 3, the accumulation credit rating will constantly increase.At this moment, if type of service 1 produces continuous bursty data, and send request, according to algorithm shown in Figure 2, bandwidth evaluation module 1022 will be distributed to the bandwidth that type of service 1 surpasses its business-level level.Thus, type of service 1 will tie up the due bandwidth of other type of service, the destruction that causes network fairness.Therefore flow process shown in Figure 3 has comprised the step relevant with the cumulative maximum credit rating.
As shown in Figure 3, in step 301, type of service 1 credit rating generator 10231 is with the credit rating summation of type of service 1, and the accumulation credit rating as type of service 1 is stored in the credit variable.
In step 302, whether the type of service 1 business-level agreement SLA10232 that judges ONU-A has the Mean Speed information of renewal.If the judged result of step 302 is a "No", promptly the Mean Speed information of type of service 1 is not updated, and then skips the update algorithm process of cumulative maximum credit rating, forwards step 305 to.
If the judged result of step 302 is a "Yes", promptly the Mean Speed information of type of service 1 is updated, and then proceeds to step 303.
In step 303, according to the new cumulative maximum credit rating of the credit rating sum that produces during 125 microseconds estimation type of service 1.Afterwards, proceed to step 304.
In step 304, judge that whether the new Mean Speed of type of service 1 is greater than old Mean Speed.If step 304 judged result is "Yes", promptly the Mean Speed that type of service 1 is new is greater than old Mean Speed, and then execution in step 305.
If the judged result of step 304 is a "No", promptly the Mean Speed that type of service 1 is new is smaller or equal to old Mean Speed, and then execution in step 308.
In step 308, judge that whether the cumulative maximum credit rating is more than or equal to the accumulation credit rating in the credit variable.If the judged result of step 308 is a "No", promptly new cumulative maximum credit rating then forwards step 309 to less than the accumulative total credit rating.In step 309, make the accumulation credit rating in the credit variable equal new cumulative maximum credit rating.Then, flow process turns back to step 302, the judgement of a beginning new round.
If the judged result of step 308 is a "Yes", promptly the accumulation credit rating in the credit variable does not surpass new cumulative maximum credit rating, then forwards step 310 to.In step 310, produce credit rating according to the Mean Speed after type of service 1 renewal.Then, forward step 301 to, beginning new round algorithmic procedure.
In the judged result of step 302 is that the judged result of "No" or step 304 is that flow process forwards step 305 under the situation of "Yes".In step 305, judged whether new sendout.If the judged result of step 305 is a "Yes", new sendout is promptly arranged, then forward step 306 to.In step 306, the accumulation credit rating in the credit variable is reduced new sendout, and the result is kept in the credit variable as the accumulation credit rating.Afterwards, execution in step 307.
If the judged result of step 305 is a "No", promptly there is not new sendout, then direct execution in step 307.
In step 307, whether the credit max degree of judging type of service 1 is greater than the current accumulation credit rating that is kept at the type of service 1 in the credit variable.If the judged result of step 307 is a "No", promptly the credit max degree is smaller or equal to current accumulation credit rating, and then flow process forwards step 301 to, beginning new round algorithmic procedure.
If the judged result of step 307 is a "Yes", promptly the credit max degree is greater than current accumulation credit rating, and then flow process proceeds to step 310.In step 310, according to the Mean Speed generation credit rating of type of service 1.Then, forward step 301 to, beginning new round algorithmic procedure.
Though described embodiments of the present invention in conjunction with the accompanying drawings, those skilled in the art can make various distortion or modification within the scope of the appended claims in this area.