Summary of the invention
The objective of the invention is to have overcome above-mentioned shortcoming of the prior art, provide that a kind of network service performance is higher, the Dynamic Bandwidth Allocation better performances, difficulty in computation is less, accuracy is higher, can better mate, support TDM business and Ethernet service, the scope of application Ethernet passive optical network multi service dynamic bandwidth method of distributing comparatively widely with the bandwidth request information of ONU uplink service.
In order to realize above-mentioned purpose, the method that Ethernet passive optical network multi service dynamic bandwidth of the present invention distributes is as follows:
The method that this Ethernet passive optical network multi service dynamic bandwidth distributes, its main feature is, comprise optical line terminal equipment OLT and several device of optical network unit ONU, the uplink interface of described optical line terminal equipment OLT is connected with downlink interface with the uplink interface of described each device of optical network unit ONU respectively with optical splitter by the light distributed network road with downlink interface, have allocated bandwidth and bandwidth authorizing dispensing device and SNI among the described optical line terminal equipment OLT, and this allocated bandwidth all is connected with downlink interface with the uplink interface of described optical line terminal equipment OLT with the bandwidth authorizing dispensing device, described allocated bandwidth and bandwidth authorizing dispensing device comprise that the dynamic bandwidth solicited message receives and resolution unit, statistics and pretreatment unit and static and Dynamic Bandwidth Allocation unit, the signal of the uplink interface of described optical line terminal equipment OLT receives and resolution unit by described dynamic bandwidth solicited message successively, dynamic bandwidth solicited message statistic unit and static and Dynamic Bandwidth Allocation unit, the method for described Dynamic Bandwidth Allocation may further comprise the steps:
(1) the bandwidth allocation cycle timer in reception of dynamic bandwidth solicited message and the resolution unit picks up counting;
(2) judge whether the bandwidth allocation cycle timer is overtime;
(3) if not overtime, then repeat above-mentioned steps (1);
(4) if overtime, then statistics is carried out pretreatment operation with pretreatment unit to the bandwidth request information that each ONU reports, and obtains dynamic bandwidth solicited message variable;
(5) statistics is carried out the summation calculating operation with pretreatment unit to this dynamic bandwidth solicited message variable, and obtains dynamic bandwidth solicited message summation variable;
(6) static and Dynamic Bandwidth Allocation unit carries out dynamic bandwidth radix initial value calculating operation, and obtains dynamic bandwidth radix variable;
(7) static and Dynamic Bandwidth Allocation unit carries out the batch operation of MPCP bandwidth, TDM bandwidth and Ethernet static bandwidth to each ONU, obtains MPCP bandwidth value, TDM band width configuration value and the Ethernet static bandwidth Configuration Values of each ONU respectively;
(8) static and Dynamic Bandwidth Allocation unit carries out dynamic bandwidth radix calculating operation, and obtains dynamic bandwidth radix variable;
(9) static and Dynamic Bandwidth Allocation unit carries out the calculating and the batch operation of Ethernet dynamic bandwidth to each ONU, and obtains Ethernet dynamic bandwidth variable;
(10) after bandwidth authorizing calculating, arrangement and distribution operation are finished, the bandwidth allocation cycle timer in reception of dynamic bandwidth solicited message and the resolution unit is made zero, and pick up counting again;
(11) repeat above-mentioned steps (1).
The bandwidth allocation cycle time-out time of the method that this Ethernet passive optical network multi service dynamic bandwidth distributes is 250 microseconds~1 millisecond.
The bandwidth allocation cycle time-out time of the method that this Ethernet passive optical network multi service dynamic bandwidth distributes is 500 microseconds.
The bandwidth request information that ONU is reported of the method that this Ethernet passive optical network multi service dynamic bandwidth distributes is carried out pretreatment operation and is:
Calculate dynamic bandwidth solicited message variable according to bandwidth request information, bandwidth allocation cycle, the rounding factor, digestion period, aging factor, Ethernet static bandwidth Configuration Values and dynamic bandwidth weight and according to following computation rule:
If: COEFFICIENT K * bandwidth request information>Ethernet static bandwidth Configuration Values
Then: dynamic bandwidth solicited message variable=(COEFFICIENT K * bandwidth request information-Ethernet static bandwidth Configuration Values) * dynamic bandwidth weight;
Otherwise: dynamic bandwidth solicited message variable=0;
Wherein: COEFFICIENT K=((the rounding factor * bandwidth allocation cycle)/(aging factor * digestion period)).
The value of the rounding factor of the method that this Ethernet passive optical network multi service dynamic bandwidth distributes is 2 integral number power, and the value of described digestion period is 250 microseconds~1 millisecond, and the value of described aging factor is 2~16.
The value of the rounding factor of the method that this Ethernet passive optical network multi service dynamic bandwidth distributes is 16, and the value of described digestion period is 500 microseconds, and the value of described aging factor is 4.
This dynamic bandwidth solicited message variable is carried out summation the calculating and be operating as of the method that this Ethernet passive optical network multi service dynamic bandwidth distributes:
Calculate dynamic bandwidth solicited message summation variable according to the dynamic bandwidth solicited message variable of each ONU and according to following formula:
Dynamic bandwidth solicited message summation variable=∑ ONU (dynamic bandwidth solicited message variable).
The dynamic bandwidth radix initial value calculating operation of the method that this Ethernet passive optical network multi service dynamic bandwidth distributes is:
Calculate dynamic bandwidth radix variable according to the overhead bandwidth mandate summation of uplink total bandwidth and each ONU and according to following formula:
The overhead bandwidth mandate summation of dynamic bandwidth radix variable=uplink total bandwidth-each ONU.
The dynamic bandwidth radix calculating operation of the method that this Ethernet passive optical network multi service dynamic bandwidth distributes is:
Calculate dynamic bandwidth radix variable according to MPCP bandwidth value, TDM band width configuration value and Ethernet static bandwidth Configuration Values and according to following company:
Dynamic bandwidth radix variable=dynamic bandwidth radix variable-∑ ONU (MPCP bandwidth value+TDM band width configuration value+Ethernet static bandwidth Configuration Values).
The calculating and the batch operation that ONU is carried out the Ethernet dynamic bandwidth of the method that this Ethernet passive optical network multi service dynamic bandwidth distributes are:
Calculate Ethernet dynamic bandwidth variable according to dynamic bandwidth solicited message variable, dynamic bandwidth radix variable and dynamic bandwidth solicited message summation variable and according to following formula:
Ethernet dynamic bandwidth variable=dynamic bandwidth solicited message variable * dynamic bandwidth radix variable/dynamic bandwidth solicited message summation variable.
Adopted the method for the Ethernet passive optical network multi service dynamic bandwidth distribution of this invention, owing to obtain required Ethernet dynamic bandwidth information of distributing according to the bandwidth request information of ONU and according to specific algorithm computation according to specific bandwidth allocation cycle, thereby make that the network service performance is higher, the Dynamic Bandwidth Allocation better performances, the difficulty in computation of algorithm is less, accuracy is higher, and can better mate with the bandwidth request information of ONU uplink service; Moreover, adopt said method, can support the TDM business comprehensively,, comprise POTS, E1, T1 etc., support Ethernet service preferably simultaneously,, comprise VoIP, IPTV, video request program etc. as Ethernet Service as TDM Service; And the scope of application is comparatively extensive, and the development of Networks of Fiber Communications and broadband connections technology is laid a good foundation.
Embodiment
In order more to be expressly understood technology contents of the present invention, at first introduce some technical terms, as shown in the table:
PON | Passive Optical Network | EPON |
EPON | Ethernet Passive Optical Network | Ethernet passive optical network |
MPCP | Multi-Point Control Protocol | Multi-point Control Protocol |
FTTH | Fiber To The Home | Fiber to the home |
FTTB | Fiber To The Building | Fiber-To-The-Building |
OLT | Optical Line Terminal | Optical line terminal |
ONU | Optical Network Units | Optical network unit |
POS | Passive Optical Splitter | Passive optical splitters |
ODN | Optical Distribution Network | Optical distributed network |
SBA | Static Bandwidth Allocation | Static bandwidth allocation |
DBA | Dynamic Bandwidth Allocation | Dynamic Bandwidth Allocation |
DA | Destination Address | Destination address |
SA | Source Address | Source address |
MAC | Media Access Control | The medium access control |
SNI | Service Node Interface | SNI |
UNI | User Network Interface | User Network Interface |
| Ethernet | Ethernet |
| Frame | Frame, or message, this paper are not done differentiation |
| MPCP Frame | The Multi-point Control Protocol frame |
| Ethernet Service、Ethernet Frame、Ethernet Data | Ethernet service, ethernet frame, Ethernet data implication duplicate, and this paper does not do differentiation |
| Transmission Window | Transmission window, or send window, this paper are not done differentiation |
| Grant | Bandwidth authorizing, or bandwidth permission, this paper does not do differentiation |
| Request | Request (the dynamic bandwidth solicited message of ONU just) |
| Report | Report (the up dynamic bandwidth solicited message of ONU reports) |
At first introduce the EPON system below:
1.EPON system's basic comprising
The typical EPON of one cover system mainly is made of 3 parts: optical line terminal (Optical Line Terminal, OLT), optical distributed network (Optical Distribution Network, ODN) and network unit/optical network terminal (Optical NetworkUnits/Terminal, ONU/ONT).Wherein: OLT is positioned at local side, is responsible for being connected of distribution and control channel, and whole EPON network is monitored in real time, managed and safeguards; ONU/ONT is positioned at user side (user resident side in other words), realizes the access of user terminal; ODN is by passive optical splitters (Passive Optical Splitter, POS, be passive fiber splitter, passive optical splitter again) and the fibre circuit formation, realize that the network between OLT and each ONU connects, the EFM of 802.3ah working group (Ethernet in the First Mile Study) determines that the splitting ratio of passive optical splitters is between 1: 16 to 1: 128.The difference of ONU and ONT is that ONT is located immediately at user side, and also has other network between ONU and user, but does not do differentiation in this patent family, represents with ONU without exception.
EPON adopts tree topology, OLT is positioned at root node, link to each other with each ONU by ODN, fibre circuit is single and shared, and the cheap passive optical splitters of use cost, signal is dispersed to independent user from single optical fiber, why being called for " EPON " is because be different from the traditional telecommunications room local side and the connection of client, this does not wherein have an active electronic apparatus between this access network, such advantage has been simplified the operation of network system greatly, safeguard and cost, another advantage is in a point-to-point fiber optic network, and its employed optical fiber does not need a lot.
2.EPON system's basic principle
The EPON system uses wavelength-division multiplex technique (WDM:Wavelength Division Multiplexer), and uplink and downlink signals uses different wavelength respectively but transmits in same optical fiber, speed symmetry (being 1Gbit/s), and transmission range can reach 20km.Direction from OLT to ONU is called down direction (or down link, Downstream Link), otherwise is called up direction (or up link, Upstream Link).
Down link, OLT sends ether protocol packet (ethernet frame just) in the mode of single transmit copy broadcast (SCB:Single Copy Broadcast) to all ONU.By finding and registration process (Discovery and Registeredprocess), OLT distributes LLID (Logical Link ID for the ONU that completes successfully registration, LLID), an ONU supports a LLID at least, and OLT is placed on the LLID of the purpose ONU of the ethernet frame of descending transmission in the frame preamble symbol (Preamble) then.After treating that frame data arrive ONU, all ONU can judge whether receive this frame with decision, so just guarantee to have only purpose ONU can correctly receive this frame according to LLID contained in the leading character and the LLID of oneself.
Up link can adopt multiple access technology: frequency division multiple access multiplexing (FDMA), time division multiple access multiplexing (TDMA), wavelength division multiple access multiplexing (WDMA), CDMA multiplexing (CDMA) etc.Wherein time division multiple access is multiplexing has several remarkable advantages with respect to other multiplex technique: all ONU only needs an OLT transponder; Whole EPON system up-link only needs a wavelength; Technology is simple, and is with low cost.Existing EPON system and product nearly all are to use the time division multiplexing access technology.Time-multiplexed operation principle is: OLT arranges the time slot that each ONU sends upward signal properly, and concurrent output time slot distributes frame (just MPCP Gate frame includes the bandwidth authorizing or the bandwidth permission that distribute to ONU); ONU receives and also to resolve this bandwidth authorizing, distributes to own time slot according to OLT, and by up send window, to OLT transmission upward signal, service data transmission, numerous like this ONU just can share up channel and limited bandwidth.
At down direction, OLT provides the optical fiber interface towards passive optical-fiber network; At up direction, OLT provide gigabit Ethernet (Gigabit Ethernet, GE) SNI (Service Node Interface, SNI).After the ethernet technology standard of the 10Gbit/s typing in the future, OLT also can support similar high-speed interface.For the agreement of supporting that other are popular, OLT also can support the interface standard of the SDH/SONET of speed such as ATM, FR and OC3/12/48/192.OLT also can realize the access of traditional TDM speech by supporting the E1 interface.Aspect the united net management of EPON, OLT is main control centre, realizes the major function of network management.EPON also need link to each other with telecommunication management network by defined interface in addition, be managed for configuration, performance management, fault management, safety management and accounting management, complete operation maintenance management (Operations Administrationand Maintenance, OAM) function.
3.EPON system core technology
Because the up channel of EPON adopts time division multiple access (TDMA) access way, the upstream data of each ONU is transferred to OLT with burst mode by common EPON, distance difference between multiple spot access and each ONU and the OLT, cause the transmission data time-delay different (20km Optical Fiber Transmission time delay can reach 0.1ms) of each ONU, the OLT received signal power also has nothing in common with each other, therefore require OLT to receive laser and can realize that burst receives, OLT (several bit) in a short period of time realizes the synchronous of phase place, and then receives data; In order to prevent the collision of data time domain, also must introduce range finding and delay compensation technology realization the whole network slot synchronization, data are arrived by the assigned timeslot of allocated bandwidth.Down direction is because be continuous bit stream, so the reception laser of ONU does not need to readjust fast.
Accurately measure the distance of each ONU, and accurately adjust the transmission delay of ONU, can reduce the interval between the ONU send window, thereby improve the utilance of up channel and reduce time delay to OLT.In addition, ranging technology must be supported the plug and play of ONU, and ranging process should take into full account the configuring condition of whole EPON, and for example, if system adds new ONU when work, the range finding of this moment just should not have too much influence to other ONU.
Influencing traditional business (speech and image) transmission performances index in EPON mainly is time-delay and frame loss rate.The up channel of EPON still is that down channel frame losing should not take place, so the emphasis that EPON will consider is the low delay that guarantees connection-oriented service." low granularity " (Tin Ganularity) that low delay is divided by DBA algorithm and the time slot of EPON ensures, to traditional business end to end QoS support then to realize that by existing agreement such as Virtual Local Area Network, IP-VPN, multiprotocol label switching (mpls) wherein VLAN and MPLS are the QoS agreements that is applied to EPON that is expected.
Realize that the key of Bandwidth Dynamic Allocation is how to obtain the virtual condition of ONU, various DBA algorithms obtain the means difference of ONU state, and MAC layer bone of contention is exactly whether to determine unified DBA algorithm in DBA algorithm and the 802.3.ah standard at present.Present scheme is based on the allocated bandwidth mode of poll, be that the mode that OLT adopts wheel to change is carried out poll to each ONU, ONU is according to Ethernet service message to be sent such as in its buffering area, report bandwidth request information by Report message to OLT, OLT authorizes respectively according to bandwidth allocation algorithm according to its bandwidth request information each ONU.
4.EPON system is to the support of TDM business
Although the bandwidth demand of data service increases just fast, existing Circuit Service also has very big market, will bring into play its enormous function in a short time, is still the major source of revenues of service provider in a few years from now on.So bearer circuit switching network business in the EPON system is combined with the market application that is beneficial to EPON with packet switching service and circuit-switched service, and satisfies the needs of different business.Therefore the present EPON reality that everybody talks about all is to consider the multiservice system of network integration demand.How EFM carries on EPON TDM, does not make concrete regulation technically, but must compatible ethernet frame format.The quality that how to guarantee the TDM business in fact also just becomes one of key technology of multi-service EPON.
5. Multi-point Control Protocol (MPCP)
The EPON system couples together a plurality of DTE (Data Terminal Equipment, data terminal equipment) by a shared optical fiber, and its topological structure is asymmetric tree-like branched structure based on passive optical splitter.Multi-point Control Protocol (Multi-Point Control Protocol, MPCP) be exactly to make this topological structure be applicable to a kind of controlling mechanism of Ethernet, this agreement is positioned at MAC control sublayer, and EPON is based upon on the MPCP basis as the part that EFM discusses standard.
MPCP uses message, state machine and timer to control the topological structure of accessing points to multiple spot.The content that MPCP relates to comprises the distribution of ONU sending time slots (bandwidth authorizing or bandwidth permission just), and the automatic discovery (Discovery) of ONU and registration (Registered) report that to high level congestion situation is so that dynamic bandwidth allocation.P2P (Point to Point, point-to-point) emulation sub-layer is the key component in the EPON/MPCP agreement, by increasing a LLID (Logical LinkID for each Frame, LLID) and replace 2 bytes in the frame preamble symbol (Preamble), it can make P2MP (Point to Multi-Point, point-to-multipoint) network topology show as the set of a plurality of point-to-point links for high level.Each ONU in putting multidrop topology comprises the entity of a MPCP, in order to OLT in the MPCP entity intercom mutually.
EPON thinks main equipment with the root node in the topological structure, i.e. OLT, and a plurality of nodes that will be positioned at the marginal portion are thought slave unit, i.e. ONU.MPCP has stipulated a kind of controlling mechanism between the master-slave equipment of point-to-multipoint, send effectively and receive with coordination data.Up direction only allows an ONU to send a moment in system's running, and the high level that is positioned at OLT is responsible for handling the timing of transmission and the congested report of different ONU, thereby optimizes the allocated bandwidth of PON internal system.
The EPON system realizes functions such as bandwidth request, bandwidth authorizing and range finding compensation between OLT and the ONU by the MPCP frame.802.3ah defined 5 kinds of MPCP frame formats in the standard, as shown in the table.
MPCP type (MPCPType) | Command code (op-code) | On/descending (Up/Down) | Functional description |
MPCPGate | 0x00_02 | Descending | The descending transmission bandwidth authorizing of OLT (Grant) is given each ONU |
MPCPRPT | 0x00_03 | Up | The up transmission bandwidth request information of ONU (Report) is given OLT |
MPCPREQ | 0x00_04 | Up | In registration process, ONU sends register requirement (or de-registration request) and gives OLT |
MPCPREG | 0x00_05 | Descending | In registration process, OLT sends registration permission (or nullifying permission) and gives ONU |
MPCPACK | 0x00_06 | Up | In registration process, ONU sends registration reply (or nullify and reply) and gives OLT |
What wherein the most often use is exactly the MPCP Gate frame of down direction and the MPCPRPT frame of up direction.
See also shown in Figure 1ly, the EPON system is based on the bandwidth allocation algorithm of TDM business support, is periodically to carry out to calculate and arrange distribution bandwidth mandate, just up TDM cycle of bandwidth calculation and assignment period.In each cycle, OLT will calculate the bandwidth and the bandwidth authorizing of next cycle, and sends to each ONU by MPCP Gate frame (MPCP Gate Frame) at down direction, and these bandwidth authorizing will come into force and be performed at next cycle, goes round and begins again.
See also Fig. 2 and shown in Figure 3 again, the method that this Ethernet passive optical network multi service dynamic bandwidth distributes, comprise optical line terminal equipment OLT and several device of optical network unit ONU, the uplink interface of described optical line terminal equipment OLT is connected with downlink interface with the uplink interface of described each device of optical network unit ONU respectively with optical splitter by the light distributed network road with downlink interface, have allocated bandwidth and bandwidth authorizing dispensing device and SNI among the described optical line terminal equipment OLT, and this allocated bandwidth all is connected with downlink interface with the uplink interface of described optical line terminal equipment 0LT with the bandwidth authorizing dispensing device, described allocated bandwidth and bandwidth authorizing dispensing device comprise that the dynamic bandwidth solicited message receives and resolution unit, statistics and pretreatment unit and static and Dynamic Bandwidth Allocation unit, the signal of the uplink interface of described optical line terminal equipment OLT receives and resolution unit by described dynamic bandwidth solicited message successively, dynamic bandwidth solicited message statistic unit and static and Dynamic Bandwidth Allocation unit, the method for described Dynamic Bandwidth Allocation may further comprise the steps:
(1) the bandwidth allocation cycle timer in reception of dynamic bandwidth solicited message and the resolution unit picks up counting;
(2) judge whether the bandwidth allocation cycle timer is overtime;
(3) if not overtime, then repeat above-mentioned steps (1);
(4) if overtime, then statistics is carried out pretreatment operation with pretreatment unit to the bandwidth request information that each ONU reports, and obtains dynamic bandwidth solicited message variable, and this pretreatment operation is:
Calculate dynamic bandwidth solicited message variable according to bandwidth request information, bandwidth allocation cycle, the rounding factor, digestion period, aging factor, Ethernet static bandwidth Configuration Values and dynamic bandwidth weight and according to following computation rule:
If: COEFFICIENT K * bandwidth request information>Ethernet static bandwidth Configuration Values
Then: dynamic bandwidth solicited message variable=(COEFFICIENT K * bandwidth request information-Ethernet static bandwidth Configuration Values) * dynamic bandwidth weight;
Otherwise: dynamic bandwidth solicited message variable=0;
Wherein: COEFFICIENT K=((the rounding factor * bandwidth allocation cycle)/(aging factor * digestion period));
(5) statistics is carried out the summation calculating operation with pretreatment unit to this dynamic bandwidth solicited message variable, and obtains dynamic bandwidth solicited message summation variable, and this summation is calculated and is operating as:
Calculate dynamic bandwidth solicited message summation variable according to the dynamic bandwidth solicited message variable of each ONU and according to following formula:
Dynamic bandwidth solicited message summation variable=∑ ONU (dynamic bandwidth solicited message variable);
(6) static and Dynamic Bandwidth Allocation unit carries out dynamic bandwidth radix initial value calculating operation, and obtains dynamic bandwidth radix variable, and this calculating operation is:
Calculate dynamic bandwidth radix variable according to the overhead bandwidth mandate summation of uplink total bandwidth and each ONU and according to following formula:
The overhead bandwidth mandate summation of dynamic bandwidth radix variable=uplink total bandwidth-each ONU;
(7) static and Dynamic Bandwidth Allocation unit carries out the batch operation of MPCP bandwidth, TDM bandwidth and Ethernet static bandwidth to each ONU, obtains MPCP bandwidth value, TDM band width configuration value and the Ethernet static bandwidth Configuration Values of each ONU respectively;
(8) static and Dynamic Bandwidth Allocation unit carries out dynamic bandwidth radix calculating operation, and obtains dynamic bandwidth radix variable, and this calculating operation is:
Calculate dynamic bandwidth radix variable according to MPCP bandwidth value, TDM band width configuration value and Ethernet static bandwidth Configuration Values and according to following company:
Dynamic bandwidth radix variable=dynamic bandwidth radix variable-∑ ONU (MPCP bandwidth value+TDM band width configuration value+Ethernet static bandwidth Configuration Values);
(9) static and Dynamic Bandwidth Allocation unit carries out the calculating and the batch operation of Ethernet dynamic bandwidth to each ONU, and obtains Ethernet dynamic bandwidth variable, and this calculating and batch operation are:
Calculate Ethernet dynamic bandwidth variable according to dynamic bandwidth solicited message variable, dynamic bandwidth radix variable and dynamic bandwidth solicited message summation variable and according to following formula:
Ethernet dynamic bandwidth variable=dynamic bandwidth solicited message variable * dynamic bandwidth radix variable/dynamic bandwidth solicited message summation variable;
(10) after bandwidth authorizing calculating, arrangement and distribution operation are finished, the bandwidth allocation cycle timer in reception of dynamic bandwidth solicited message and the resolution unit is made zero, and pick up counting again;
(11) repeat above-mentioned steps (1).
Used following Several Parameters in the said method:
Parameter | Title | Default value | Span | Implication |
age_interval | Digestion period | 500us | 100us~1ms | Uplink service speed statistics and the cycle of calculating (aging and low pass), unit: second (s) |
round_factor | The rounding factor | 16 | 1~256, must be 2 integral number power | The rounding coefficient of bandwidth_request, be used for low pass speed lp_add_rate the highest 16 as bandwidth request information |
age_factor | Aging factor | 4 | 2~16 | The degradation calculation factor of transmission rate add_rate, the aging speed of sign add_rate |
lp_factor | The low pass factor | 64 | 4~256 | The low pass calculated factor of low pass speed lp_add_rate, the low pass smothing filtering degree of sign lp_add_rate |
Simultaneously, for bandwidth allocation cycle ba_interval (unit: second, s) also must satisfy the following requirement in TDM cycle:
This TDM cycle (is used Δ T
TDMExpression) directly has influence on TDM frame length (Frame length), the professional time-delay of TDM (Delay), tdm data efficiency of transmission and tdm data buffer memory capacity, Δ T simultaneously
TDMIt also is the cycle of whole EPON system uplink bandwidth calculation and distribution, so Δ T
TDMSelection and value must take all factors into consideration TDM business and Ethernet service, according to practical business demand and performance index, between efficient, time-delay, performance, trade off.Consider 1 frame=125us (time interval of 8KHz speech sample, quantification just) of 2ME1, so Δ T
TDMPreferably equal the integral multiple of this time:
Δ T
TDM=N
TDM* 125us (N
TDMBe positive integer)
In system of the present invention, get N usually
TDM=4, just:
ΔT
TDM=4×125us=500us
But this does not show Δ T
TDMThis value can only be arranged, and also is fully feasible such as following several values, the just compromise emphasis difference of considering:
Δ T
TDM=2 * 125us=250us (gets N
TDM=2)
Δ T
TDM=3 * 125us=375us (gets N
TDM=3)
Δ T
TDM=6 * 125us=750us (gets N
TDM=6)
Δ T
TDM=8 * 125us=1ms (gets N
TDM=8)
In actual applications, method of the present invention comprises following step:
(1) bandwidth request information that each ONU is reported is carried out preliminary treatment
The bandwidth request information that ONU reports is the reference frame that OLT carries out Dynamic Bandwidth Allocation, so in the periodically beginning of the dynamic bandwidth allocation algorithm of execution, need carry out preliminary treatment to the bandwidth request information of each ONU.The ONU that does not have registration in the EPON system can not carry out the professional and Ethernet service allocated bandwidth of TDM, so if not otherwise specified, " each ONU ", " all ONU ", " all ONU " all refer to the ONU that registered not comprise the ONU that not have to register (just being in exit state).
In ONU dynamic bandwidth request process, used following two variablees:
Variable | Title | Implication |
add_rate | Transmission rate | Uplink service speed (writing the byte number of upward cache queue in each digestion period just) is added up, and when finish each digestion period, carry out degradation calculation |
lp_add_rate | Low pass speed | When finish each digestion period, transmission rate add_rate is carried out low pass (LowPass) and calculate (before add_rate carries out degradation calculation) |
Among the ONU, when finish each digestion period, will carry out the low pass smothing filtering to transmission rate add_rate and calculate, obtain low pass speed lp_add_rate:
lp_add_rate+=(add_rate-lp_add_rate)/lp_factor
Implication, bit wide and the unit of low pass speed lp_add_rate is all identical with transmission rate add_rate, and be just more level and smooth, and combine the current and historical numerical value of transmission rate add_rate, has certain statistical property.
And when sending Report message, low pass speed lp_add_rate is compressed to 16 bit wides as bandwidth request information bandwidth_request, that is:
bandwidth_request=lp_add_rate/round_factor
Wherein round_factor is the rounding factor, is used for giving bandwidth_request with the highest 16 assignment of low pass speed lp_add_rate, periodically reports OLT by Report message.
And transmission rate add_rate and ONU uplink service speed R
Up(unit: pass bps) is:
add_rate=age_factor×R
up×age_interval/8
That is to say:
lp_add_rate~add_rate~R
up
The OLT bandwidth request information that just can report by ONU like this, analytical calculation draws the bandwidth that the ONU uplink service need take:
R
up=(8×round_factor×bandwidth_request)/(age_factor×age_interval)
Digestion period, age_interval, aging factor age_factor and rounding factor round_factor were the Several Parameters in the ONU dynamic bandwidth request algorithm.
OLT distributes to the Ethernet service bandwidth of each ONU, can be divided into static bandwidth and dynamic bandwidth two parts, static bandwidth is to be disposed according to user and professional actual demand by software, dynamic bandwidth then be according to the bandwidth request information of ONU from reserve available bandwidth additional allocation, if the static bandwidth of this ONU configuration, the bandwidth that need take more than or equal to its uplink service, illustrate that static bandwidth can satisfy its uplink service demand, OLT just need not to have distributed dynamic bandwidth for this ONU again so; Otherwise if the static bandwidth of this ONU configuration illustrates that less than the bandwidth that its uplink service need take static bandwidth can not satisfy its uplink service fully, OLT also needs to distribute dynamic bandwidth to this ONU so, to satisfy the bandwidth demand that exceeds partial service.
The bandwidth allocation cycle of supposing OLT be ba_interval (unit: second, s), the static bandwidth Configuration Values of this ONU be cfg_sba (unit: byte/bandwidth allocation cycle, byte/ba_interval), the static bandwidth of then distributing to this ONU is:
BW
s=8×cfg_sba/ba_interval
Judge Rup>BWs so, also just be equivalent to judgement:
(8×round_factor×bandwidth_request)/(age_factor×age_interval)>
(8×cfg_sba)/ba_interval
Be equivalent in other words:
K×bandwidth_request>cfg_sba
Wherein COEFFICIENT K is:
K=((round_factor×ba_interval)/(age_factor×age_interval))
K can dispose respectively based on each ONU by software, also can be solidificated in the hardware algorithm circuit.
In dynamic bandwidth allocation algorithm of the present invention, software can also be set dynamic bandwidth weight dba_weight respectively to each ONU, is used to adjust the proportionate relationship of carrying out Dynamic Bandwidth Allocation between each ONU.The pretreated dynamic bandwidth solicited message dba_request of each ONU is like this:
if(K×bandwidth_request>cfg_sba)
dba_request=(K×bandwidth_request-cfg_sba)×dba_weight
else
dba_request=0
Also to calculate the summation total_dba_request of the dba_request of whole ONU then:
total_dba_request=∑ONU(dba_request)
The dba_request and the total_dba_request that go out according to aforementioned calculation again of OLT carries out the Ethernet service Dynamic Bandwidth Allocation to each ONU afterwards.
(2) distribute MPCP bandwidth, TDM bandwidth and static bandwidth for each ONU
The MPCP bandwidth is taken as required by MPCP hardware (logical circuit), and TDM service bandwidth and Ethernet service static bandwidth dispose for each ONU by software respectively according to user and professional actual demand, so the bandwidth of distributing for each ONU in this step is as follows:
Variable | Title | Implication |
mpcp_bw | The MPCP bandwidth | The bandwidth that MPCP hardware (logical circuit) need take |
cfg_tdm | The TDM bandwidth | Software is given the TDM service bandwidth of each ONU configuration |
cfg_sba | Static bandwidth | Software is given name ONU the Ethernet service static bandwidth of configuration |
The unit of above-mentioned several bandwidth is: byte/bandwidth allocation cycle (byte/ba_interval), wherein bandwidth allocation cycle ba_interval (unit: second, s) must satisfy the requirement in foregoing TDM cycle.
(3) calculate the dynamic bandwidth radix
Dynamic bandwidth radix dba_base, just OLT when carrying out the Dynamic Bandwidth Allocation function, the sum of distributable dynamic bandwidth, the total value of (or remaining) available bandwidth of Yu Liuing in other words, its computational process is as follows:
At first, the initial value of dba_base is:
dba_base=line_rate-total_overhead_grant
Line_rate represents EPON uplink total bandwidth, and to gigabit EPON system, its default value just equals 1Gbps;
Total_overhead_grant represents the summation of the overhead bandwidth mandate of the whole ONU in each bandwidth allocation cycle, obviously here it just represents the summation of the overhead bandwidth mandate of previous bandwidth allocation cycle, use when similarly, the total_overhead_grant that calculates in this bandwidth allocation cycle calculates dba_base for next bandwidth allocation cycle again.
Then, deduct MPCP bandwidth, TDM service bandwidth and the Ethernet static bandwidth that previous step distributes for each ONU again:
dba_base-=∑ONU(mpcp_bw+cfg_tdm+cfg_sba)
So just obtained the available total value of Dynamic Bandwidth Allocation.OLT according to the pretreated dynamic bandwidth solicited message of each ONU, from this total value of dba_base, gives each ONU pro-rata Ethernet service dynamic bandwidth more then.
(4) distribute dynamic bandwidth for each ONU
The pretreated dynamic bandwidth solicited message dba_request of each ONU that has calculated according to the front and whole summation total_dba_request of the dba_request of ONU, OLT distributes Ethernet service dynamic bandwidth cal_dba for each ONU again:
cal_dba=dba_request×dba_base/total_dba_request
Above-mentioned dynamic bandwidth allocation algorithm is exactly the bandwidth allocation algorithm of OLT in fact, and this method is not in fact only to distribute dynamic bandwidth, but the function of whole allocated bandwidth of OLT, also can be described as to each ONU to calculate respectively by type of service and distribute bandwidth.In this allocated bandwidth mechanism, the MPCP bandwidth is taken as required by hardware (logical circuit), TDM bandwidth and static bandwidth are by software arrangements, software arrangements how much, just corresponding how many bandwidth of distributing, having only dynamic bandwidth is that hardware (logical circuit) calculates, distributes according to the bandwidth request information that each ONU reports, and its key is to dispose, calculate, distribute bandwidth by type of service, and is converted to bandwidth authorizing accordingly.
The method that has adopted above-mentioned Ethernet passive optical network multi service dynamic bandwidth to distribute, owing to obtain required Ethernet dynamic bandwidth information of distributing according to the bandwidth request information of ONU and according to specific algorithm computation according to specific bandwidth allocation cycle, thereby make that the network service performance is higher, the Dynamic Bandwidth Allocation better performances, the difficulty in computation of algorithm is less, accuracy is higher, and can better mate with the bandwidth request information of ONU uplink service; Moreover, adopt said method, can support the TDM business comprehensively,, comprise POTS, E1, T1 etc., support Ethernet service preferably simultaneously,, comprise VoIP, IPTV, video request program etc. as Ethernet Service as TDM Service; And the scope of application is comparatively extensive, and the development of Networks of Fiber Communications and broadband connections technology is laid a good foundation.
In this specification, the present invention is described with reference to its certain embodiments.But, still can make various modifications and conversion obviously and not deviate from the spirit and scope of the present invention.Therefore, specification and accompanying drawing are regarded in an illustrative, rather than a restrictive.