CN117201976B - Bandwidth allocation method and system for cascade passive optical network - Google Patents
Bandwidth allocation method and system for cascade passive optical network Download PDFInfo
- Publication number
- CN117201976B CN117201976B CN202311148630.9A CN202311148630A CN117201976B CN 117201976 B CN117201976 B CN 117201976B CN 202311148630 A CN202311148630 A CN 202311148630A CN 117201976 B CN117201976 B CN 117201976B
- Authority
- CN
- China
- Prior art keywords
- home
- pon
- bandwidth
- cont
- traffic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 72
- 230000003287 optical effect Effects 0.000 title claims abstract description 20
- 238000011144 upstream manufacturing Methods 0.000 claims abstract description 57
- 230000008569 process Effects 0.000 claims abstract description 36
- 238000004364 calculation method Methods 0.000 claims abstract description 31
- 230000005540 biological transmission Effects 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 19
- 239000000872 buffer Substances 0.000 claims description 6
- 238000005457 optimization Methods 0.000 claims description 5
- 238000004422 calculation algorithm Methods 0.000 description 23
- 238000010586 diagram Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 7
- 230000007246 mechanism Effects 0.000 description 7
- 238000004088 simulation Methods 0.000 description 5
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000001934 delay Effects 0.000 description 3
- 230000006872 improvement Effects 0.000 description 3
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 2
- 239000002356 single layer Substances 0.000 description 2
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Landscapes
- Small-Scale Networks (AREA)
Abstract
本发明涉及一种面向级联型无源光网络的带宽分配方法和系统,方法包括:步骤S1:在集中式级联型PON中,计算每个家庭PON可用的上行带宽,并对每个家庭PON的上行带宽计算过程进行优化;步骤S2:将计算好的每个家庭PON可用的上行带宽分配到各自家庭PON的T‑CONT中,完成上行带宽的分配,步骤S3:在集中式级联型PON中,计算每个家庭PON可用的下行带宽,对每个家庭PON的下行带宽计算过程进行优化,并完成下行带宽的分配。本发明既能为集中式级联型PON中的东西向(EW)流量和南北向(NS)流量的带宽分配,并对分配带宽的过程进行优化,实现了更高的带宽利用率且效率更高。
The present invention relates to a bandwidth allocation method and system for a cascade passive optical network, the method comprising: step S1: in a centralized cascade PON, calculating the available upstream bandwidth of each home PON, and optimizing the upstream bandwidth calculation process of each home PON; step S2: allocating the calculated available upstream bandwidth of each home PON to the T-CONT of each home PON, completing the allocation of the upstream bandwidth, step S3: in the centralized cascade PON, calculating the available downstream bandwidth of each home PON, optimizing the downstream bandwidth calculation process of each home PON, and completing the allocation of the downstream bandwidth. The present invention can allocate bandwidth for both east-west (EW) traffic and north-south (NS) traffic in the centralized cascade PON, and optimize the process of allocating bandwidth, achieving higher bandwidth utilization and higher efficiency.
Description
技术领域Technical Field
本发明涉及无源光网络的带宽分配技术领域,尤其是指一种面向级联型无源光网络的带宽分配方法和系统。The present invention relates to the technical field of bandwidth allocation of passive optical networks, and in particular to a bandwidth allocation method and system for cascaded passive optical networks.
背景技术Background Art
随着家庭网络业务规模的日趋扩大,基于光纤入户(Fiber-to-the-Home,FTTH)的单层无源光网络(passive optical network,PON)接入方案逐渐难以满足家庭用户对于带宽和服务质量的需求,随着作为FTTH的扩展方案的光纤入房间(Fiber-to-the-Room,FTTR)的场景被提出,一种集中式级联型PON架构备受关注,即将家庭网络功能上移,通过接入网中的光线路终端(OLT)直接控制每个家庭节点的数据传输。该架构通过简化家庭PON网络的功能以降低部署成本,并以此解决FTTR大规模部署的问题。As the scale of home network services continues to expand, the single-layer passive optical network (PON) access solution based on fiber-to-the-home (FTTH) is gradually unable to meet the needs of home users for bandwidth and service quality. As the fiber-to-the-room (FTTR) scenario as an extension of FTTH is proposed, a centralized cascade PON architecture has attracted much attention, that is, the home network function is moved up and the data transmission of each home node is directly controlled by the optical line terminal (OLT) in the access network. This architecture reduces the deployment cost by simplifying the functions of the home PON network, and solves the problem of large-scale deployment of FTTR.
在级联型PON中,将承载FTTH功能的PON叫做接入网PON,承载FTTR功能的PON称作家庭PON。接入网PON中的OLT和ONU分别称作接入网OLT和接入网ONU。同理,家庭PON中的OLT和ONU称作家庭OLT和家庭ONU。家庭网关由接入网ONU和对应的家庭OLT共同组成。除此之外,在级联型PON中,数据流量分为两种类型,分别是南北(North-south,NS)向流量和东西(East-west,EW)向流量。前者指接入网OLT和家庭ONU之间的流量,后者指在在一个家庭PON中各个家庭ONU之间转发的流量。考虑到家庭数据涉及隐私,因此EW流量只在家庭PON内转发,而不会上传到接入网中。In the cascade PON, the PON that carries the FTTH function is called the access network PON, and the PON that carries the FTTR function is called the home PON. The OLT and ONU in the access network PON are called the access network OLT and access network ONU, respectively. Similarly, the OLT and ONU in the home PON are called the home OLT and home ONU. The home gateway is composed of the access network ONU and the corresponding home OLT. In addition, in the cascade PON, data traffic is divided into two types, namely North-south (NS) traffic and East-west (EW) traffic. The former refers to the traffic between the access network OLT and the home ONU, and the latter refers to the traffic forwarded between each home ONU in a home PON. Considering that home data involves privacy, EW traffic is only forwarded within the home PON and will not be uploaded to the access network.
相较于传统的级联型PON,集中式级联型PON的特点主要体现在以下两点:首先,接入网OLT集中控制家庭PON中每个家庭ONU的资源调度;其次,网关中的家庭OLT负责听从接入网OLT的指令完成转发,存储以及筛选流量等操作。为了PON中实现资源调度,必不可少的是动态带宽分配(DBA)机制。而实现集中式级联型PON需要一套家庭PON和接入网PON联合的DBA机制,这在目前尚未有人研究。Compared with the traditional cascade PON, the characteristics of the centralized cascade PON are mainly reflected in the following two points: first, the access network OLT centrally controls the resource scheduling of each home ONU in the home PON; second, the home OLT in the gateway is responsible for following the instructions of the access network OLT to complete forwarding, storage, and filtering traffic. In order to realize resource scheduling in PON, the dynamic bandwidth allocation (DBA) mechanism is indispensable. The realization of centralized cascade PON requires a DBA mechanism that combines home PON and access network PON, which has not been studied yet.
在传统的时分复用PON(TDM-PON)中,传输容器(T-CONT)被用作为承载流量的实体,它分为四种类型,即T-CONT 1(T1)、T-CONT 2(T2)、T-CONT 3(T3)和T-CONT 4(T4)。每种类型的T-CONT负责承载不同优先级的流量,优先级从高到低分别对应T1到T4。上行带宽通过DBA机制分配给这些T-CONT。在集中式级联型PON中,为了分别为NS和EW流量分配带宽,家庭ONU需要将这两种流量分别存储在不同的T-CONT中。这些T-CONT被分别称为NS T-CONT和EW T-CONT,他们各自包含四个优先级。然而,目前的DBA算法只能为传统的NS流量分配带宽,并没有考虑到EW流量的带宽分配。In traditional time division multiplexing PON (TDM-PON), transport containers (T-CONTs) are used as entities to carry traffic, and they are divided into four types, namely T-CONT 1 (T1), T-CONT 2 (T2), T-CONT 3 (T3), and T-CONT 4 (T4). Each type of T-CONT is responsible for carrying traffic of different priorities, and the priorities correspond to T1 to T4 from high to low. The upstream bandwidth is allocated to these T-CONTs through the DBA mechanism. In centralized cascade PON, in order to allocate bandwidth to NS and EW traffic respectively, home ONUs need to store these two types of traffic in different T-CONTs. These T-CONTs are called NS T-CONTs and EW T-CONTs, and they each contain four priorities. However, the current DBA algorithm can only allocate bandwidth for traditional NS traffic, and does not consider the bandwidth allocation of EW traffic.
此外,到目前为止大多数现有为单级PON设计的DBA算法是基于单次轮询分配机制的,即给预先计算一个最大分配字节数(AB),在固定时间间隔(SI)内分配给每个T-CONT一次带宽。假设第k个属于第j种类型(j∈{1,2,3,4})的T-CONT具有带宽请求对应的AB是ABk。在这种情况下,分配给T-CONT的带宽通过以下方式计算:In addition, most of the existing DBA algorithms designed for single-stage PONs are based on a single polling allocation mechanism, that is, a maximum number of allocated bytes (AB) is pre-calculated and bandwidth is allocated to each T-CONT once within a fixed time interval (SI). Assume that the kth T-CONT of the jth type (j∈{1,2,3,4}) has a bandwidth request The corresponding AB is AB k . In this case, the bandwidth allocated to the T-CONT Calculated by:
每个T-CONT在一个轮询周期内只有一次获得带宽的机会。然而,在家庭ONU节点众多的集中式级联型PON系统中,这种分配策略可能导致ONU中一些T-CONT无法获得足够的带宽,同时分配给其他T-CONT的带宽被浪费,因此,目前亟需一种适用于集中式级联型PON架构的高效的DBA方法。Each T-CONT has only one chance to obtain bandwidth in a polling cycle. However, in a centralized cascade PON system with many home ONU nodes, this allocation strategy may cause some T-CONTs in the ONU to fail to obtain sufficient bandwidth, while the bandwidth allocated to other T-CONTs is wasted. Therefore, an efficient DBA method suitable for centralized cascade PON architecture is urgently needed.
现有为传统PON架构设计的DBA机制在集中式级联型PON中不适用,因为它们仅为承载NS流量的四种T-CONT类型分配带宽,而不考虑EW流量;现有的DBA算法只适用于单层PON中,无法应用于具有接入网PON和多个家庭PON的集中式级联型PON系统;此外,传统的DBA算法在FTTR场景中带宽利用率较为低下,其性能无法满足家庭业务需求。The existing DBA mechanisms designed for traditional PON architectures are not applicable to centralized cascaded PONs because they only allocate bandwidth for the four T-CONT types that carry NS traffic, without considering EW traffic. Existing DBA algorithms are only applicable to single-layer PONs and cannot be applied to centralized cascaded PON systems with access network PONs and multiple home PONs. In addition, traditional DBA algorithms have low bandwidth utilization in FTTR scenarios and their performance cannot meet home business needs.
发明内容Summary of the invention
为此,本发明所要解决的技术问题在于克服现有技术中无源光网络的DBA带宽分配机制只考虑NS流量而忽略EW流量流量、且分配效率低下的问题。Therefore, the technical problem to be solved by the present invention is to overcome the problem that the DBA bandwidth allocation mechanism of the passive optical network in the prior art only considers the NS traffic and ignores the EW traffic, and the allocation efficiency is low.
为解决上述技术问题,本发明提供了一种面向级联型无源光网络的带宽分配方法,包括:In order to solve the above technical problems, the present invention provides a bandwidth allocation method for a cascaded passive optical network, comprising:
步骤S1:在集中式级联型PON中,计算每个家庭PON可用的上行带宽,并对每个家庭PON的上行带宽计算过程进行优化,其中,所述集中式级联型PON包括接入网PON和若干家庭PON,所述接入网PON包括一个接入网OLT和若干接入网ONU,每个所述家庭PON包括和接入网ONU数量相同的若干家庭OLT,每个所述家庭OLT包括若干家庭ONU,所述接入网OLT与若干接入网ONU连接,每个所述接入网ONU与对应的家庭OLT连接,每个家庭OLT连接有若干家庭ONU;Step S1: in a centralized cascade PON, calculating the available upstream bandwidth of each home PON, and optimizing the upstream bandwidth calculation process of each home PON, wherein the centralized cascade PON includes an access network PON and several home PONs, the access network PON includes an access network OLT and several access network ONUs, each of the home PONs includes several home OLTs with the same number as the access network ONUs, each of the home OLTs includes several home ONUs, the access network OLT is connected to several access network ONUs, each of the access network ONUs is connected to a corresponding home OLT, and each home OLT is connected to several home ONUs;
步骤S2:将计算好的每个家庭PON可用的上行带宽分配到各自家庭PON的T-CONT中,完成上行带宽的分配,其中,所述T-CONT为设置在每个家庭ONU中用于承载流量的传输容器;Step S2: Allocate the calculated available upstream bandwidth of each home PON to the T-CONT of each home PON to complete the allocation of upstream bandwidth, wherein the T-CONT is a transmission container set in each home ONU for carrying traffic;
步骤S3:在集中式级联型PON中,计算每个家庭PON可用的下行带宽,对每个家庭PON的下行带宽计算过程进行优化,并完成下行带宽的分配。Step S3: in the centralized cascade PON, the available downstream bandwidth of each home PON is calculated, the downstream bandwidth calculation process of each home PON is optimized, and the downstream bandwidth allocation is completed.
在本发明的一个实施例中,所述步骤S1中计算每个家庭PON可用的上行带宽,方法包括:In one embodiment of the present invention, the method for calculating the available upstream bandwidth of each home PON in step S1 includes:
首先根据NS流量和EW流量的比例,将一个上行帧中的总带宽分为NS流量可用带宽和EW流量可用带宽所述NS流量为接入网OLT和家庭ONU之间的流量,所述EW流量为一个家庭PON中各个家庭ONU之间转发的流量,则在第i个家庭PON中,所述NS流量可用带宽所述EW流量可用带宽的公式分别为:First, according to the ratio of NS traffic to EW traffic, the total bandwidth in an uplink frame is divided into the available bandwidth for NS traffic and available bandwidth for EW traffic The NS traffic is the traffic between the access network OLT and the home ONU, and the EW traffic is the traffic forwarded between each home ONU in a home PON. In the i-th home PON, the available bandwidth for the NS traffic is The available bandwidth for EW traffic The formulas are:
其中,表示第i个家庭PON的上行容量,γi表示NS流量在总流量中所占的比例,1-γi表示EW流量在总流量中所占的比例,T1表示一个上行帧的最大长度。in, represents the upstream capacity of the ith home PON, γ i represents the proportion of NS traffic in the total traffic, 1-γ i represents the proportion of EW traffic in the total traffic, and T1 represents the maximum length of an upstream frame.
在本发明的一个实施例中,所述步骤S1中对每个家庭PON可用的上行带宽计算过程进行优化,方法包括:In one embodiment of the present invention, the process of calculating the available upstream bandwidth of each home PON in step S1 is optimized, and the method includes:
基于接入网PON和家庭PON的容量对NS流量可用带宽的公式进行限制,表示为:Available bandwidth for NS traffic based on the capacity of access network PON and home PON The formula is restricted and expressed as:
其中,UCA表示接入网PON的上行容量,βi表示决定每个家庭PON的可用带宽的带宽权重且βi公式为:Wherein, UC A represents the uplink capacity of the access network PON, β i represents the bandwidth weight that determines the available bandwidth of each home PON, and the formula of β i is:
其中,是集中式级联型PON中的家庭PON索引的集合;in, It is a collection of home PON indexes in a centralized cascade PON;
由于EW流量不需要上传到接入网PON中,因此在计算出NS流量可用带宽后,EW流量可用带宽为家庭PON中的剩余带宽,公式为:Since EW traffic does not need to be uploaded to the access network PON, the available bandwidth of NS traffic is calculated. After that, the available bandwidth for EW traffic is the remaining bandwidth in the home PON, and the formula is:
在本发明的一个实施例中,所述步骤S2中的T-CONT包括NS T-CONT和EW T-CONT,并且NS T-CONT和EW T-CONT各自均包括四个类型,四个类型对应四个不同的优先级。In one embodiment of the present invention, the T-CONT in step S2 includes NS T-CONT and EW T-CONT, and each of the NS T-CONT and the EW T-CONT includes four types, and the four types correspond to four different priorities.
在本发明的一个实施例中,所述步骤S2中将计算好的每个家庭PON可用的上行带宽分配到各自家庭PON的T-CONT中,方法包括:In one embodiment of the present invention, in step S2, the calculated available uplink bandwidth of each home PON is allocated to the T-CONT of each home PON, and the method includes:
对于上行带宽,使用TCONT字节TB作为每种类型的T-CONT的服务参数,TB表示固定时间间隔SI内某种T-CONT类型的总可用带宽,对于第j种类型的NS T-CONT或EW T-CONT,第i个家庭PON中的TCONT字节TBi,j公式为:For the upstream bandwidth, TCONT bytes TB are used as the service parameters for each type of T-CONT. TB represents the total available bandwidth of a certain type of T-CONT within a fixed time interval SI. For the jth type of NS T-CONT or EW T-CONT, the formula for TCONT bytes TB i,j in the i-th home PON is:
TBi,j=(FBi-Oi)·ωj TB i,j =(FB i −O i )·ω j
其中,Oi表示由第i个家庭PON发送的NS burst或EW burst的帧开销,ωj表示第j种类型的NS T-CONT或EW T-CONT的带宽权重,取决于NS T-CONT或EW T-CONT的优先级;Where O i represents the frame overhead of the NS burst or EW burst sent by the i-th home PON, ω j represents the bandwidth weight of the j-th type of NS T-CONT or EW T-CONT, which depends on the priority of the NS T-CONT or EW T-CONT;
基于TBi,j,再对每个家庭PON中分别为各优先级的NS T-CONT或EW T-CONT分配不同的带宽。Based on TB i,j , different bandwidths are allocated to NS T-CONTs or EW T-CONTs of different priorities in each home PON.
在本发明的一个实施例中,所述基于TBi,j,再对每个家庭PON中分别为各优先级的NS T-CONT或EW T-CONT分配不同的带宽,具体为:在一个轮询周期内为每个T-CONT多次分配带宽,方法包括:In one embodiment of the present invention, based on TB i,j , different bandwidths are allocated to NS T-CONTs or EW T-CONTs of different priorities in each home PON. Specifically, bandwidth is allocated multiple times to each T-CONT in a polling cycle. The method includes:
对于上行带宽,接入网OLT按照优先级顺序为每个家庭PON中的NS T-CONT和EW T-CONT分别分配可用的上行带宽TBi,j;属于相同优先级的T-CONT的带宽会统一进行分配,可用的上行带宽TBi,j会被均匀分配给这些T-CONT;如果存在T-CONT的带宽需求仍不满足的情况,经过分配后的上行带宽TBi,j中剩余带宽会被再次平均分配给带宽需求不满足的T-CONT,经历多次迭代直到剩余带宽用尽或所有T-CONT的带宽需求均得到满足为止。For the upstream bandwidth, the access network OLT allocates available upstream bandwidth TB i,j to the NS T-CONT and EW T-CONT in each home PON in order of priority; the bandwidth of T-CONTs with the same priority will be allocated uniformly, and the available upstream bandwidth TB i,j will be evenly allocated to these T-CONTs; if there is a T-CONT whose bandwidth demand is still not met, the remaining bandwidth in the allocated upstream bandwidth TB i,j will be evenly allocated again to the T-CONT whose bandwidth demand is not met, and multiple iterations will be performed until the remaining bandwidth is exhausted or the bandwidth demands of all T-CONTs are met.
在本发明的一个实施例中,所述步骤S3中计算每个家庭PON可用的下行带宽,对每个家庭PON的下行带宽计算过程进行优化,方法包括:In one embodiment of the present invention, the method for calculating the available downstream bandwidth of each home PON in step S3 and optimizing the downstream bandwidth calculation process of each home PON includes:
计算每个家庭PON中的下行NS帧可用带宽时,接入网OLT应该保留一个EW传输窗口,以确保上一轮轮询周期中发送到家庭OLT的EW burst及时传输,EW burst为家庭ONU此前上传的包含EW流量的上行帧,则第i个家庭PON的下行NS帧带宽公式为:Calculate the available bandwidth of downstream NS frames in each home PON When the access network OLT is set to 1, the access network OLT should reserve an EW transmission window to ensure that the EW burst sent to the home OLT in the previous polling cycle is transmitted in time. The EW burst is the upstream frame containing EW traffic previously uploaded by the home ONU. The downstream NS frame bandwidth formula of the i-th home PON is:
其中,表示第i个家庭PON的下行容量,DCA表示接入网PON的下行容量,T2表示下行帧的最大长度,是存储在家庭OLT缓冲区中的EW burst的集合,表示第i个家庭PON中第j个EW burst的大小,δi是根据第i个家庭PON的下行容量计算得到的带宽权重,公式为:in, represents the downstream capacity of the ith home PON, DC A represents the downstream capacity of the access network PON, T2 represents the maximum length of the downstream frame, is the set of EW bursts stored in the home OLT buffer, represents the size of the jth EW burst in the i-th home PON, δi is the bandwidth weight calculated based on the downstream capacity of the i-th home PON, and the formula is:
接入网OLT计算出接入网PON的关于NS流量的下行可用带宽DFA,公式为:The access network OLT calculates the available downstream bandwidth DF A for NS traffic of the access network PON, and the formula is:
接入网OLT计算出每个家庭PON的关于EW流量的下行可用带宽公式为:The access network OLT calculates the available downstream bandwidth for EW traffic of each home PON. The formula is:
其中,表示第i个家庭PON的下行容量。in, represents the downstream capacity of the ith home PON.
为解决上述技术问题,本发明提供了一种面向级联型无源光网络的带宽分配系统,包括:In order to solve the above technical problems, the present invention provides a bandwidth allocation system for a cascaded passive optical network, comprising:
上行计算与优化模块:用于在集中式级联型PON中,计算每个家庭PON可用的上行带宽,并对每个家庭PON的上行带宽计算过程进行优化,其中,所述集中式级联型PON包括接入网PON和若干家庭PON,所述接入网PON包括一个接入网OLT和若干接入网ONU,每个所述家庭PON包括和接入网ONU数量相同的若干家庭OLT,每个所述家庭OLT包括若干家庭ONU,所述接入网OLT与若干接入网ONU连接,每个所述接入网ONU与对应的家庭OLT连接,每个家庭OLT连接有若干家庭ONU;Uplink calculation and optimization module: used to calculate the available uplink bandwidth of each home PON in a centralized cascade PON, and optimize the uplink bandwidth calculation process of each home PON, wherein the centralized cascade PON includes an access network PON and several home PONs, the access network PON includes an access network OLT and several access network ONUs, each of the home PONs includes several home OLTs with the same number as the access network ONUs, each of the home OLTs includes several home ONUs, the access network OLT is connected to several access network ONUs, each of the access network ONUs is connected to the corresponding home OLT, and each home OLT is connected to several home ONUs;
上行分配模块:用于将计算好的每个家庭PON可用的上行带宽分配到各自家庭PON的T-CONT中,完成上行带宽的分配,其中,所述T-CONT为设置在每个家庭ONU中用于承载流量的传输容器;Uplink allocation module: used to allocate the calculated available uplink bandwidth of each home PON to the T-CONT of each home PON, so as to complete the allocation of uplink bandwidth, wherein the T-CONT is a transmission container set in each home ONU for carrying traffic;
下行计算与分配模块:用于在集中式级联型PON中,计算每个家庭PON可用的下行带宽,对每个家庭PON的下行带宽计算过程进行优化,并完成下行带宽的分配。Downstream calculation and allocation module: used to calculate the available downstream bandwidth of each home PON in a centralized cascade PON, optimize the downstream bandwidth calculation process of each home PON, and complete the allocation of downstream bandwidth.
为解决上述技术问题,本发明提供了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述面向级联型无源光网络的带宽分配方法的步骤。To solve the above technical problems, the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the bandwidth allocation method for a cascaded passive optical network are implemented.
为解决上述技术问题,本发明提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,实现如上述面向级联型无源光网络的带宽分配方法的步骤。To solve the above technical problem, the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the bandwidth allocation method for a cascaded passive optical network are implemented.
本发明的上述技术方案相比现有技术具有以下优点:The above technical solution of the present invention has the following advantages compared with the prior art:
本发明提出的基于集中式级联型PON的联合DBA算法,使得接入网OLT能够统一为接入网PON和家庭PON同时分配上行带宽和下行带宽;本发明的联合DBA算法还支持对EW和NS两种流量进行带宽分配;The joint DBA algorithm based on the centralized cascade PON proposed in the present invention enables the access network OLT to uniformly allocate upstream bandwidth and downstream bandwidth for the access network PON and the home PON at the same time; the joint DBA algorithm of the present invention also supports bandwidth allocation for both EW and NS traffic;
本发明在FTTR场景中能显著提高带宽利用率,并且有效降低丢包和时延。The present invention can significantly improve bandwidth utilization in FTTR scenarios and effectively reduce packet loss and delay.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了使本发明的内容更容易被清楚的理解,下面根据本发明的具体实施例并结合附图,对本发明作进一步详细的说明。In order to make the contents of the present invention more clearly understood, the present invention is further described in detail below based on specific embodiments of the present invention in conjunction with the accompanying drawings.
图1是本发明的方法流程图;Fig. 1 is a flow chart of the method of the present invention;
图2(a)是本发明实施例中联合DBA算法上行带宽分配示意图;FIG. 2( a ) is a schematic diagram of uplink bandwidth allocation using a joint DBA algorithm according to an embodiment of the present invention;
图2(b)是本发明实施例中联合DBA算法下行带宽分配示意图;FIG2( b ) is a schematic diagram of downlink bandwidth allocation using a joint DBA algorithm according to an embodiment of the present invention;
图3是本发明实施例中集中式级联型PON结构示意图;FIG3 is a schematic diagram of a centralized cascade PON structure according to an embodiment of the present invention;
图4是本发明实施例中传统DBA算法和联合DBA算法丢包率对比图;FIG4 is a comparison diagram of packet loss rates between a traditional DBA algorithm and a joint DBA algorithm according to an embodiment of the present invention;
图5是本发明实施例中接入网中的带宽利用率示意图;5 is a schematic diagram of bandwidth utilization in an access network according to an embodiment of the present invention;
图6(a)和图6(b)是本发明实施例中不同条件下NS流量在家庭PON和接入网PON中的平均上行延迟示意图;6(a) and 6(b) are schematic diagrams of average upstream delay of NS traffic in a home PON and an access network PON under different conditions in an embodiment of the present invention;
图6(c)和图6(d)是本发明实施例中不同条件下EW流量在接入网PON和家庭PON中的平均下行延迟示意图;6(c) and 6(d) are schematic diagrams of average downstream delay of EW traffic in access network PON and home PON under different conditions in an embodiment of the present invention;
图6(e)和图6(f)是本发明实施例中不同条件下EW流量上行和下行的平均延迟示意图。FIG6(e) and FIG6(f) are schematic diagrams of average delays of uplink and downlink EW traffic under different conditions in an embodiment of the present invention.
具体实施方式DETAILED DESCRIPTION
下面结合附图和具体实施例对本发明作进一步说明,以使本领域的技术人员可以更好地理解本发明并能予以实施,但所举实施例不作为对本发明的限定。The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.
实施例一Embodiment 1
参照图1所示,本发明涉及一种面向级联型无源光网络的带宽分配方法,包括:1, the present invention relates to a bandwidth allocation method for a cascaded passive optical network, comprising:
步骤S1:在集中式级联型PON中,计算每个家庭PON可用的上行带宽,并对每个家庭PON的上行带宽计算过程进行优化,其中,所述集中式级联型PON包括接入网PON和若干家庭PON,所述接入网PON包括一个接入网OLT和若干接入网ONU,每个所述家庭PON包括和接入网ONU数量相同的若干家庭OLT,每个所述家庭OLT包括若干家庭ONU,所述接入网OLT与若干接入网ONU连接,每个所述接入网ONU与对应的家庭OLT连接,每个家庭OLT连接有若干家庭ONU,详见图3;Step S1: in a centralized cascade PON, the available upstream bandwidth of each home PON is calculated, and the upstream bandwidth calculation process of each home PON is optimized, wherein the centralized cascade PON includes an access network PON and several home PONs, the access network PON includes an access network OLT and several access network ONUs, each of the home PONs includes several home OLTs with the same number as the access network ONUs, each of the home OLTs includes several home ONUs, the access network OLT is connected to several access network ONUs, each of the access network ONUs is connected to a corresponding home OLT, and each home OLT is connected to several home ONUs, see FIG3 for details;
步骤S2:将计算好的每个家庭PON可用的上行带宽分配到各自家庭PON的T-CONT中,完成上行带宽的分配,其中,所述T-CONT为设置在每个家庭ONU中用于承载流量的传输容器;Step S2: Allocate the calculated available upstream bandwidth of each home PON to the T-CONT of each home PON to complete the allocation of upstream bandwidth, wherein the T-CONT is a transmission container set in each home ONU for carrying traffic;
步骤S3:在集中式级联型PON中,计算每个家庭PON可用的下行带宽,对每个家庭PON的下行带宽计算过程进行优化,并完成下行带宽的分配;Step S3: in the centralized cascade PON, the available downstream bandwidth of each home PON is calculated, the downstream bandwidth calculation process of each home PON is optimized, and the downstream bandwidth allocation is completed;
其中,所述上行带宽包含家庭ONU中的EW流量流向家庭OLT所占用的时隙资源(不同家庭ONU之间的EW流量通过所属的家庭OLT转发)、以及家庭ONU中的NS流量流向接入网OLT所占用的时隙资源;所述下行带宽为接入网OLT中的NS流量和家庭OLT的EW流量流向家庭PON所占用的时隙资源。Among them, the upstream bandwidth includes the time slot resources occupied by the EW traffic in the home ONU flowing to the home OLT (the EW traffic between different home ONUs is forwarded through the home OLT to which they belong), and the time slot resources occupied by the NS traffic in the home ONU flowing to the access network OLT; the downstream bandwidth is the time slot resources occupied by the NS traffic in the access network OLT and the EW traffic of the home OLT flowing to the home PON.
以下对本实施例进行详细介绍:The following is a detailed introduction to this embodiment:
一、上行带宽计算方法1. Uplink Bandwidth Calculation Method
本实施例设计的联合DBA算法方案如下,在计算集中式级联型PON的上行带宽时,首先根据NS和EW流量的比例,将一个上行帧中的总带宽分为NS流量带宽和EW流量带宽两部分。令表示第i个家庭PON的上行容量,γi表示NS流量在总流量中所占的比例。那么在第i个家庭PON中,NS T-CONT的上行可用带宽可以通过以下方式计算:The joint DBA algorithm scheme designed in this embodiment is as follows: when calculating the upstream bandwidth of the centralized cascade PON, firstly, the total bandwidth in an upstream frame is divided into NS traffic bandwidth according to the ratio of NS and EW traffic. and EW traffic bandwidth Two parts. represents the upstream capacity of the ith home PON, and γ i represents the proportion of NS traffic in the total traffic. Then in the ith home PON, the upstream available bandwidth of NS T-CONT is It can be calculated as follows:
类似地,EW流量的可用带宽可以将公式(2)中γi替换为(1-γi)而得到,即Similarly, the available bandwidth for EW traffic We can replace γ i in formula (2) with (1-γ i ) to obtain
其中,T1表示一个上行帧的最大长度,即125微秒。T1 represents the maximum length of an uplink frame, which is 125 microseconds.
然而,各家庭PON的上行容量之和与接入网PON的上行容量可能并不匹配。这种不匹配可能导致从家庭PON上传的总NS流量超过接入网PON的容量,使得NS上行突发帧(burst)在接入网ONU的缓冲区中排队,从而导致拥塞或丢包。为了避免在接入网PON处出现潜在的拥塞,本实施例需要基于接入网PON和家庭PON的容量对这个参数进行进一步限制。考虑到家庭PON的上行容量可能各不相同,因此集中式级联型PON系统中各家庭PON的可以进一步写成如下形式:However, the sum of the upstream capacities of each home PON may not match the upstream capacity of the access network PON. This mismatch may cause the total NS traffic uploaded from the home PON to exceed the capacity of the access network PON, causing the NS upstream burst frames to queue in the buffer of the access network ONU, thereby causing congestion or packet loss. In order to avoid potential congestion at the access network PON, this embodiment requires a capacity comparison based on the access network PON and the home PON. Considering that the upstream capacity of each home PON may be different, the upstream capacity of each home PON in the centralized cascade PON system It can be further written as follows:
其中,UCA表示接入网PON的上行容量,βi表示决定每个家庭PON的可用带宽的带宽权重。βi可以通过以下方式计算:Wherein, UC A represents the uplink capacity of the access network PON, and β i represents the bandwidth weight that determines the available bandwidth of each home PON. β i can be calculated as follows:
其中,是一个集中式级联型PON中的家庭PON索引的集合。由于EW流量不需要上传到接入网中,因此在计算出NS流量的带宽后,EW流量上行可用带宽即为家庭PON中的剩余带宽,可以通过下式得到:in, It is a collection of home PON indexes in a centralized cascade PON. Since EW traffic does not need to be uploaded to the access network, after calculating the bandwidth of NS traffic, the available bandwidth for EW traffic uplink is This is the remaining bandwidth in the home PON, which can be obtained by the following formula:
二、下行带宽计算方法2. Downlink Bandwidth Calculation Method
在下行传输中,EW流量与每个家庭PON中的下行NS流量共用同一信道。然而,由于EW流量的带宽是由家庭PON中的NS下行帧决定的,特别是在下行负载较高的情况下,EWburst表示家庭ONU此前上传的包含EW流量的上行帧可能无法及时在EW传输窗口(即家庭PON中下行NS帧之间的空隙)内传输。为确保EW burst的传输效率,需要限制分配给每个家庭PON中下行NS帧的带宽。因此,在计算每个家庭PON中的下行NS帧时,接入网OLT应该保留一个EW传输窗口(即家庭PON中下行NS帧之间的空隙),以确保上一轮轮询周期中发送到家庭OLT的EW突发能够及时传输。在这种情况下,通过以下方式计算:In downstream transmission, EW traffic shares the same channel with the downstream NS traffic in each home PON. However, since the bandwidth of EW traffic is determined by the NS downstream frames in the home PON, especially when the downstream load is high, EWburst means that the upstream frames containing EW traffic previously uploaded by the home ONU may not be transmitted in time within the EW transmission window (i.e., the gaps between downstream NS frames in the home PON). To ensure the transmission efficiency of EW burst, it is necessary to limit the bandwidth allocated to the downstream NS frames in each home PON. Therefore, when calculating the downstream NS frames in each home PON, the bandwidth of the downstream NS frames in each home PON must be limited. When the access network OLT is 1, the access network OLT should reserve an EW transmission window (i.e., the gap between downstream NS frames in the home PON) to ensure that the EW burst sent to the home OLT in the previous polling cycle can be transmitted in time. In this case, it is calculated as follows:
其中,表示第i个家庭PON的下行容量,DCA表示接入网PON的下行容量。T2表示一个下行帧的最大长度。是存储在家庭OLT缓冲区中的EW burst的集合,表示第i个家庭PON中第j个EW burst的大小。δi是根据第i个家庭PON的下行容量计算得到的带宽权重,可以通过以下方式获得:in, represents the downstream capacity of the ith home PON, DC A represents the downstream capacity of the access network PON, and T2 represents the maximum length of a downstream frame. is the set of EW bursts stored in the home OLT buffer, represents the size of the jth EW burst in the i-th home PON. δi is the bandwidth weight calculated based on the downstream capacity of the i-th home PON, which can be obtained as follows:
然后,接入网OLT通过下式计算出接入网PON的NS流量下行可用带宽(DFA):Then, the access network OLT calculates the available downstream bandwidth (DF A ) of the NS traffic of the access network PON by the following formula:
每个家庭PON中EW流量的下行可用带宽通过以下方式计算:Downstream available bandwidth for EW traffic in each home PON Calculated by:
其中,表示第i个家庭PON的下行容量。in, represents the downstream capacity of the ith home PON.
需要注意的是,在下行带宽计算时,接入网OLT优先考虑NS下行流量的带宽,上述公式6-7用于计算每个家庭PON的NS流量可用带宽,公式8用于计算接入网PON的NS流量可用带宽(即是对每个家庭PON的NS流量可用带宽进行求和)。计算完NS流量的带宽后,每个家庭PON内的剩余下行带宽即为该家庭PON内EW流量的下行可用带宽(即用每个家庭PON下行容量减去每个家庭PON的得到)。It should be noted that when calculating the downstream bandwidth, the access network OLT gives priority to the bandwidth of the NS downstream traffic. The above formulas 6-7 are used to calculate the available bandwidth of the NS traffic of each home PON, and formula 8 is used to calculate the available bandwidth of the NS traffic of the access network PON (that is, the sum of the available bandwidth of the NS traffic of each home PON). After calculating the bandwidth of the NS traffic, the remaining downstream bandwidth in each home PON is the available downstream bandwidth of the EW traffic in the home PON (that is, the downstream capacity of each home PON is used). Subtract each household PON get).
需要注意的是,在数据上行过程中,NS流量从家庭ONU出发上传至接入网OLT中,EW流量从家庭ONU出发并只上传至当前家庭PON中的家庭OLT中。数据下行过程中,NS流量(需要重新计算)从接入网OLT传输至家庭ONU中,并在传输过程中到家庭OLT时,结合在上行过程中到达家庭OLT的EW流量一起传输至家庭ONU中。It should be noted that during the data uplink process, NS traffic starts from the home ONU and is uploaded to the access network OLT, and EW traffic starts from the home ONU and is only uploaded to the home OLT in the current home PON. During the data downlink process, NS traffic (needs to be recalculated) is transmitted from the access network OLT to the home ONU, and when it reaches the home OLT during the transmission process, it is combined with the EW traffic that reaches the home OLT during the uplink process and transmitted to the home ONU.
三、带宽分配方法3. Bandwidth Allocation Method
上行可用带宽需要存放各自家庭ONU的T-CONT后再进行带宽分配,而下行由于是广播方式,直接进行带宽分配。The available upstream bandwidth needs to be stored in the T-CONT of each home ONU before bandwidth allocation, while the downstream bandwidth is directly allocated because it is broadcast.
在计算了每个家庭PON的上行可用带宽之后,它们被分配到各自家庭ONU的T-CONT中。为了提高带宽利用率,一种有效的方法是根据每个家庭PON中T-CONT的需求重新分配带宽。为了实现这一目标,本实施例提出的联合DBA算法引入了最大-最小公平分配策略,在一个轮询周期内为每个T-CONT多次分配带宽。After calculating the available upstream bandwidth of each home PON, they are allocated to the T-CONTs of their respective home ONUs. In order to improve bandwidth utilization, an effective method is to reallocate bandwidth according to the needs of the T-CONTs in each home PON. To achieve this goal, the joint DBA algorithm proposed in this embodiment introduces a maximum-minimum fair allocation strategy to allocate bandwidth to each T-CONT multiple times within a polling cycle.
与传统的DBA算法相比,本实施例的联合DBA算法使用TCONT字节(TB)作为每种类型的T-CONT的服务参数,而不是使用AB。TB表示SI内某种T-CONT类型的总可用带宽。对于第j种类型的NS或EW T-CONT,第i个家庭PON中的TCONT字节(TBi,j)可以通过以下方式计算:Compared with the traditional DBA algorithm, the joint DBA algorithm of this embodiment uses TCONT bytes (TB) as the service parameter of each type of T-CONT instead of using AB. TB represents the total available bandwidth of a certain T-CONT type within SI. For the jth type of NS or EW T-CONT, the TCONT bytes (TB i,j ) in the i-th home PON can be calculated as follows:
TBi,j=(FBi-Oi)·ωj#(10)TB i,j = (FB i -O i )·ω j #(10)
其中,Oi表示由第i个家庭PON发送的NS或EW burst的帧开销,包括帧头、帧尾、DBRu(汇报信息)和guard time(保护时间)。ωj表示第j种类型的NS或EW T-CONT的带宽权重,这取决于NS或EW T-CONT的优先级。通过这种方式,可以在每个家庭PON中分别为各优先级的NS T-CONT或EW T-CONT分配不同的带宽。Where O i represents the frame overhead of the NS or EW burst sent by the i-th home PON, including the frame header, frame tail, DBRu (report information) and guard time. ω j represents the bandwidth weight of the j-th type of NS or EW T-CONT, which depends on the priority of the NS or EW T-CONT. In this way, different bandwidths can be allocated to NS T-CONTs or EW T-CONTs of different priorities in each home PON.
图2展示了联合DBA算法的流程图,包括上行带宽(图2(a))和下行带宽(图2(b))分配过程两部分。FIG2 shows the flow chart of the joint DBA algorithm, which includes two parts: the uplink bandwidth (FIG2(a)) and the downlink bandwidth (FIG2(b)) allocation process.
对于图2(a),上行过程从为每个家庭PON分配NS和EW流量的可用上行带宽开始(公式3-5)。接下来,接入网OLT会计算分配给每种T-CONT优先级的带宽(TBi,j)(公式10)。然后,在辨别出流量类型后,接入网OLT按照优先级顺序为每个家庭PON中的NS和EW T-CONT分别分配上行带宽。属于相同优先级的T-CONT的带宽会统一进行分配,可用带宽BL会被均匀分配给这些T-CONT。如果某些T-CONT的需求仍不满足,剩余带宽会被再次平均分配,该过程经历多次迭代直到剩余带宽用尽或所有T-CONT的带宽需求均得到满足为止。如此一来,带宽不公导致的带宽利用率的问题便会消失。该过程结束后,接入网OLT会检查TBi,j的剩余带宽BL,并将其添加到下一个优先级T-CONT的可用带宽中。需要注意的是,某个优先级的NS T-CONT的剩余带宽只能由优先级较低的NS T-CONT继承,而不能被EWT-CONT继承。这对于EW T-CONT也是同理。之后,接入网OLT根据分配给每个家庭PON中的NS和EW T-CONT的带宽(即和)生成它们各自的BWmap字段(Home BWmap),用于给各家庭PON的EW和NS流量授权带宽,接着通过分配给接入网PON的NS上行带宽来生成接入网PON的BWmap字段(Access BWmap),用于接入网PON的NS流量授权带宽。For Figure 2(a), the upstream process starts with allocating available upstream bandwidth for NS and EW traffic to each home PON. Start (Formula 3-5). Next, the access network OLT calculates the bandwidth (TB i,j ) allocated to each T-CONT priority (Formula 10). Then, after identifying the traffic type, the access network OLT allocates upstream bandwidth to the NS and EW T-CONTs in each home PON in order of priority. The bandwidth of T-CONTs with the same priority will be allocated uniformly, and the available bandwidth BL will be evenly distributed to these T-CONTs. If the needs of some T-CONTs are still not met, the remaining bandwidth will be evenly allocated again, and the process will go through multiple iterations until the remaining bandwidth is exhausted or the bandwidth needs of all T-CONTs are met. In this way, the problem of bandwidth utilization caused by bandwidth inequality will disappear. After the process is completed, the access network OLT will check the remaining bandwidth BL of TB i,j and add it to the available bandwidth of the next priority T-CONT. It should be noted that the remaining bandwidth of a NS T-CONT of a certain priority can only be inherited by a NS T-CONT with a lower priority, but not by an EWT-CONT. The same is true for EW T-CONT. After that, the access network OLT allocates bandwidth to the NS and EW T-CONTs in each home PON (i.e. and ) generates their own BWmap fields (Home BWmap) to authorize bandwidth for EW and NS traffic of each home PON, and then allocates NS upstream bandwidth to the access network PON To generate the BWmap field (Access BWmap) of the access network PON, which is used for the NS traffic authorized bandwidth of the access network PON.
对于图2(b),下行的带宽分配过程也包含了对EW和NS流量的带宽计算。首先,使用公式6-7计算当前家庭PON中NS流量的下行可用带宽同时将EW传输窗口的长度设置为当前家庭PON的下行帧中的剩余带宽。然后,判断该家庭OLT缓冲区中的第一个EW burst的大小是否超过传输窗口的大小若否,则将其分配给EW下行带宽并更新剩余的传输窗口的大小之后对下一个EW burst执行上述操作,直到EW burst的大小超过EW传输窗口的长度为止。得到的即为当前家庭PON的EW下行带宽。在对每个家庭PON的下行带宽分配完成后,再通过公式(8)得到分配给接入网PON中NS流量的带宽(DFA),从而完成接入网PON的下行带宽分配。此外,输出的会和上行分配输出的以及一起用于生成Access BWmap字段。For Figure 2(b), the downstream bandwidth allocation process also includes bandwidth calculations for EW and NS traffic. First, use Formula 6-7 to calculate the available downstream bandwidth for NS traffic in the current home PON: At the same time, the length of the EW transmission window Set to the remaining bandwidth in the downstream frame of the current home PON. Then, determine the size of the first EW burst in the home OLT buffer Whether the transmission window size is exceeded If not, allocate it to the EW downlink bandwidth And update the remaining transmission window size Then, the above operation is performed for the next EW burst until the size of the EW burst exceeds the length of the EW transmission window. That is, the EW downstream bandwidth of the current home PON. After the downstream bandwidth allocation of each home PON is completed, the bandwidth allocated to the NS traffic in the access network PON (DF A ) is obtained by formula (8), thereby completing the downstream bandwidth allocation of the access network PON. In addition, the output Will be distributed with the upstream output as well as Used together to generate Access BWmap fields.
实验分析Experimental analysis
为了验证本实施例方法的性能,本实施例使用matlab软件进行了仿真测试。在仿真中,本实施例模拟了一个集中式级联型PON网络,它包含一个XGS-PON作为接入网PON(上下行速率为10Gb/s)和32个G-PON作为家庭PON(上下行速率分别为1.25Gb/s和2.5Gb/s),其中,接入网OLT到接入网ONU之间的物理距离设定为20公里,每个家庭PON中家庭ONU到家庭OLT之间的距离为200米。此外,生成的NS和EW流量均为泊松流。SDU帧大小为64字节到1518字节之间。本实施例假设所有家庭PON中的家庭ONU都具有相同的到达率,任何家庭ONU内到达的NS流量与EW流量的比率为1:1。此外,在仿真中下行流量的负载与上行负载保持一致。此外本实施例考虑了四种类型的T-CONT,由于T-CONT 1接收的是固定带宽,因此在带宽分配过程中不受DBA的控制,故不分析其性能。其他三种T-CONT的带宽比例为1:1:0.8。In order to verify the performance of the method of this embodiment, this embodiment uses matlab software for simulation testing. In the simulation, this embodiment simulates a centralized cascade PON network, which includes an XGS-PON as an access network PON (upstream and downstream rates are 10Gb/s) and 32 G-PONs as home PONs (upstream and downstream rates are 1.25Gb/s and 2.5Gb/s, respectively), wherein the physical distance between the access network OLT and the access network ONU is set to 20 kilometers, and the distance between the home ONU and the home OLT in each home PON is 200 meters. In addition, the generated NS and EW flows are Poisson flows. The SDU frame size is between 64 bytes and 1518 bytes. This embodiment assumes that the home ONUs in all home PONs have the same arrival rate, and the ratio of NS traffic to EW traffic arriving in any home ONU is 1:1. In addition, the load of the downstream traffic is consistent with the upstream load in the simulation. In addition, this embodiment considers four types of T-CONTs. Since T-CONT 1 receives a fixed bandwidth, it is not controlled by the DBA during bandwidth allocation, so its performance is not analyzed. The bandwidth ratio of the other three T-CONTs is 1:1:0.8.
在仿真中,作为基准与联合DBA算法相比较的是传统的ITU-T PON的DBA算法,该DBA算法采用了单次分配策略,在每个轮询周期内根据预先设定的参数,为每个T-CONT分配一次带宽。两种算法均适应集中式级联型PON的调度机制,均能为EW和NS流量分配带宽。他们之间的关键区别在于联合DBA采用了的策略,以提高带宽利用率。In the simulation, the traditional ITU-T PON DBA algorithm is used as a benchmark for comparison with the joint DBA algorithm. The DBA algorithm adopts a single allocation strategy, which allocates bandwidth to each T-CONT once in each polling cycle according to pre-set parameters. Both algorithms are adapted to the scheduling mechanism of centralized cascade PON and can allocate bandwidth for EW and NS traffic. The key difference between them is the strategy adopted by the joint DBA to improve bandwidth utilization.
由于家庭PON的总上行容量超过了接入网PON的上行容量,这可能导致接入网PON中NS流量的拥塞。因此,首先本实施例评估了NS流量的数据包丢失率(PLR),即丢失数据包数量与产生的总数据包数量的比率。图4显示了家庭PON和接入网PON中NS流量的PLR。由于家庭PON的带宽受限,避免了接入网PON中的流量拥塞,因此随着负载的增加,联合DBA和传统DBA方案都会经历数据包丢失。与传统DBA方案相比,联合DBA在家庭PON中表现出更低的PLR,这是因为联合DBA算法对带宽利用率的提高,如图5所示。对于接入网PON中的NS流量,由于受到了家庭PON分配带宽的限制,因此两种方案都没有数据包丢失。此外,需要注意的是,联合DBA和传统DBA方案都没有EW流量的数据包丢失,因为在家庭PON中EW流量得到了足够的带宽,从而保证EW burst能够及时传输到家庭OLT。Since the total upstream capacity of the home PON exceeds the upstream capacity of the access network PON, this may cause congestion of NS traffic in the access network PON. Therefore, first, this embodiment evaluates the packet loss rate (PLR) of NS traffic, that is, the ratio of the number of lost packets to the total number of generated packets. Figure 4 shows the PLR of NS traffic in the home PON and the access network PON. Since the bandwidth of the home PON is limited, traffic congestion in the access network PON is avoided. Therefore, as the load increases, both the joint DBA and traditional DBA schemes will experience packet loss. Compared with the traditional DBA scheme, the joint DBA shows a lower PLR in the home PON, which is due to the improvement of bandwidth utilization by the joint DBA algorithm, as shown in Figure 5. For NS traffic in the access network PON, due to the limitation of the bandwidth allocated by the home PON, there is no packet loss in both schemes. In addition, it should be noted that there is no packet loss of EW traffic in both the joint DBA and traditional DBA schemes, because EW traffic in the home PON has sufficient bandwidth, thereby ensuring that the EW burst can be transmitted to the home OLT in time.
另一方面,与传统DBA方案相比,联合DBA中更高的带宽利用率也带来了更好的延迟性能。NS流量的上行端到端延迟包括家庭PON和接入网PON中的延迟两部分。在家庭PON中,如图6(a)所示,随着NS流量负载的增加,两种方案中T2的平均延迟可以保持在1毫秒以内,但联合DBA表现出了更好的性能。当每个家庭PON中的NS负载达到310Mbps(即当接入网PON满载)时,联合DBA的延迟比传统DBA方案减少了约300微秒。此外,T3和T4的性能改善尤其显著。对于T3,在负载超过275Mbps时,传统DBA方案中的延迟超过1毫秒,而联合DBA中的延迟几乎稳定在约0.44毫秒左右。对于T4,无论提供负载如何,传统DBA方案中的延迟都会超过1毫秒,并在负载超过125Mbps后达到100毫秒。相比之下,联合DBA能将延迟保持在1毫秒以下,直到负载超过275Mbps。这些提升是由于在联合DBA算法中,根据最大-最小公平分配策略充分利用了分配给不同NS T-CONT的带宽。此外,还可以看到,当负载较低时(即NS负载低于250Mbps时),三种类型的T-CONT的延迟几乎没有差异。这是因为三种类型的T-CONT都可以被分配足够的带宽。因此,与传统DBA方案相比,所提出的联合DBA算法极大地提高了家庭PON中NS流量的延迟性能。On the other hand, the higher bandwidth utilization in joint DBA also leads to better latency performance compared to the traditional DBA scheme. The upstream end-to-end latency of NS traffic consists of two parts: the latency in the home PON and the access network PON. In the home PON, as shown in Figure 6(a), as the NS traffic load increases, the average latency of T2 in both schemes can be kept below 1 ms, but joint DBA shows better performance. When the NS load in each home PON reaches 310 Mbps (i.e., when the access network PON is fully loaded), the latency of joint DBA is reduced by about 300 microseconds compared to the traditional DBA scheme. In addition, the performance improvements of T3 and T4 are particularly significant. For T3, when the load exceeds 275 Mbps, the latency in the traditional DBA scheme exceeds 1 ms, while the latency in joint DBA is almost stable at about 0.44 ms. For T4, the latency in the traditional DBA scheme exceeds 1 ms regardless of the provided load, and reaches 100 ms after the load exceeds 125 Mbps. In contrast, joint DBA can keep the latency below 1 ms until the load exceeds 275 Mbps. These improvements are due to the fact that in the joint DBA algorithm, the bandwidth allocated to different NS T-CONTs is fully utilized according to the maximum-minimum fair allocation strategy. In addition, it can be seen that when the load is low (i.e., when the NS load is less than 250Mbps), there is almost no difference in the delay of the three types of T-CONTs. This is because all three types of T-CONTs can be allocated sufficient bandwidth. Therefore, compared with the traditional DBA scheme, the proposed joint DBA algorithm greatly improves the delay performance of NS traffic in home PON.
在接入网PON中,两种方案中三种类型的NS T-CONT的上行延迟几乎相同,范围在150微秒到200微秒之间。这是因为家庭PON分配给NS流量的带宽受到了限制。在这种情况下,家庭PON的整体吞吐量不会超过接入网PON的容量,因此两种方案中所有NS T-CONT的带宽需求都可以得到满足,导致了如图所示的延迟性能。In the access network PON, the upstream delays of the three types of NS T-CONTs in both schemes are almost the same, ranging from 150 microseconds to 200 microseconds. This is because the bandwidth allocated to NS traffic by the home PON is limited. In this case, the overall throughput of the home PON does not exceed the capacity of the access network PON, so the bandwidth requirements of all NS T-CONTs in both schemes can be met, resulting in the delay performance shown in the figure.
在下行方向,NS流量被广播到所有家庭ONU,并且在调度过程中不区分NS流量的类型,因此本实施例只展示了接入网PON和家庭PON中NS下行流量的平均延迟,如图6(c)和(d)所示。在接入网PON中,当负载低于9Gbps时,两种方案的延迟趋近,都随着负载的增加而缓慢上升。此后,两种方案的延迟急剧上升到约59毫秒。然而,家庭PON中的NS流量延迟在负载较高时仍然保持在100微秒以下,如图6(d)所示。这是因为每个家庭PON中的NS流量的下行带宽相比于接入网PON更充足。In the downstream direction, NS traffic is broadcast to all home ONUs, and the type of NS traffic is not distinguished during the scheduling process. Therefore, this embodiment only shows the average delay of NS downstream traffic in the access network PON and the home PON, as shown in Figures 6(c) and (d). In the access network PON, when the load is less than 9 Gbps, the delays of the two schemes are close, and both rise slowly as the load increases. Thereafter, the delay of the two schemes rises sharply to about 59 milliseconds. However, the NS traffic delay in the home PON remains below 100 microseconds when the load is high, as shown in Figure 6(d). This is because the downstream bandwidth of NS traffic in each home PON is more sufficient than that of the access network PON.
关于EW流量,图6(e)和(f)显示了上行和下行方向上的平均延迟与负载的关系。如图6(e)所示,无论负载如何,两种方案中T2和T3的上行延迟均保持在400微秒以内。对于T4,两种方案都能保证延迟在1毫秒以内,但联合DBA相比传统DBA方案仍降低了约96微秒的延迟。此外,在下行传输中,两种方案的性能也相似,所有EW T-CONT的平均延迟保持在250微秒以内。这是因为家庭PON中的NS下行帧不会占用为EW burst分配的带宽,确保所有EWburst能够在上传到家庭OLT后的两个轮询周期内发送到相应的家庭ONU。Regarding EW traffic, Figures 6(e) and (f) show the average delay versus load in the upstream and downstream directions. As shown in Figure 6(e), regardless of the load, the upstream delay of T2 and T3 in both schemes remains within 400 microseconds. For T4, both schemes can ensure that the delay is within 1 millisecond, but the joint DBA still reduces the delay by about 96 microseconds compared to the traditional DBA scheme. In addition, in downstream transmission, the performance of the two schemes is also similar, and the average delay of all EW T-CONTs remains within 250 microseconds. This is because the NS downstream frames in the home PON do not occupy the bandwidth allocated for the EW burst, ensuring that all EWbursts can be sent to the corresponding home ONUs within two polling cycles after being uploaded to the home OLT.
总之,仿真结果表明,与传统的DBA算法相比,UDBA实现了更高的带宽利用率,从而降低了上行数据包延迟和数据包丢失率,而不会对NS和EW流量的下行性能产生不利影响。In summary, simulation results show that UDBA achieves higher bandwidth utilization compared to the conventional DBA algorithm, thereby reducing upstream packet delay and packet loss rate without adversely affecting the downstream performance of NS and EW traffic.
实施例二Embodiment 2
本实施例提供一种面向级联型无源光网络的带宽分配系统,包括:This embodiment provides a bandwidth allocation system for a cascaded passive optical network, including:
上行计算与优化模块:用于在集中式级联型PON中,计算每个家庭PON可用的上行带宽,并对每个家庭PON的上行带宽计算过程进行优化,其中,所述集中式级联型PON包括接入网PON和若干家庭PON,所述接入网PON包括一个接入网OLT和若干接入网ONU,每个所述家庭PON包括和接入网ONU数量相同的若干家庭OLT,每个所述家庭OLT包括若干家庭ONU,所述接入网OLT与若干接入网ONU连接,每个所述接入网ONU与对应的家庭OLT连接,每个家庭OLT连接有若干家庭ONU;Uplink calculation and optimization module: used to calculate the available uplink bandwidth of each home PON in a centralized cascade PON, and optimize the uplink bandwidth calculation process of each home PON, wherein the centralized cascade PON includes an access network PON and several home PONs, the access network PON includes an access network OLT and several access network ONUs, each of the home PONs includes several home OLTs with the same number as the access network ONUs, each of the home OLTs includes several home ONUs, the access network OLT is connected to several access network ONUs, each of the access network ONUs is connected to the corresponding home OLT, and each home OLT is connected to several home ONUs;
上行分配模块:用于将计算好的每个家庭PON可用的上行带宽分配到各自家庭PON的T-CONT中,完成上行带宽的分配,其中,所述T-CONT为设置在每个家庭ONU中用于承载流量的传输容器;Uplink allocation module: used to allocate the calculated available uplink bandwidth of each home PON to the T-CONT of each home PON, so as to complete the allocation of uplink bandwidth, wherein the T-CONT is a transmission container set in each home ONU for carrying traffic;
下行计算与分配模块:用于在集中式级联型PON中,计算每个家庭PON可用的下行带宽,对每个家庭PON的下行带宽计算过程进行优化,并完成下行带宽的分配。Downstream calculation and allocation module: used to calculate the available downstream bandwidth of each home PON in a centralized cascade PON, optimize the downstream bandwidth calculation process of each home PON, and complete the allocation of downstream bandwidth.
实施例三Embodiment 3
本实施例提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现实施例一所述面向级联型无源光网络的带宽分配方法的步骤。This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the bandwidth allocation method for a cascaded passive optical network described in Embodiment 1 are implemented.
实施例四Embodiment 4
本实施例提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,实现实施例一所述面向级联型无源光网络的带宽分配方法的步骤。This embodiment provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the bandwidth allocation method for a cascaded passive optical network described in the first embodiment are implemented.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。本申请实施例中的方案可以采用各种计算机语言实现,例如,面向对象的程序设计语言Java和直译式脚本语言JavaScript等。Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiment, complete software embodiment, or the embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiment of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal translation scripting language JavaScript, etc.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to the flowchart and/or block diagram of the method, device (system) and computer program product according to the embodiment of the present application. It should be understood that each process and/or box in the flowchart and/or block diagram, and the combination of the process and/or box in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one process or multiple processes in the flowchart and/or one box or multiple boxes in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
显然,上述实施例仅仅是为清楚地说明所作的举例,并非对实施方式的限定。对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式变化或变动。这里无需也无法对所有的实施方式予以穷举。而由此所引申出的显而易见的变化或变动仍处于本发明创造的保护范围之中。Obviously, the above embodiments are merely examples for clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from these are still within the protection scope of the invention.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311148630.9A CN117201976B (en) | 2023-09-07 | 2023-09-07 | Bandwidth allocation method and system for cascade passive optical network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311148630.9A CN117201976B (en) | 2023-09-07 | 2023-09-07 | Bandwidth allocation method and system for cascade passive optical network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117201976A CN117201976A (en) | 2023-12-08 |
CN117201976B true CN117201976B (en) | 2024-09-13 |
Family
ID=88989892
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311148630.9A Active CN117201976B (en) | 2023-09-07 | 2023-09-07 | Bandwidth allocation method and system for cascade passive optical network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117201976B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115767321A (en) * | 2021-09-06 | 2023-03-07 | 中兴通讯股份有限公司 | Bandwidth allocation method and device and authentication method and system of home network ONU |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102104549B (en) * | 2011-03-04 | 2015-04-01 | 中兴通讯股份有限公司 | Method and device for distributing dynamic bandwidth of passive optical network |
CN103905343B (en) * | 2013-05-17 | 2017-04-26 | 杭州东创科技股份有限公司 | Method for dynamically allocating broadband resources |
CN109286580B (en) * | 2017-07-21 | 2023-11-24 | 中兴通讯股份有限公司 | Uplink bandwidth allocation method and device for passive optical network |
CN114845187A (en) * | 2021-01-30 | 2022-08-02 | 华为技术有限公司 | A passive optical network system and related devices |
-
2023
- 2023-09-07 CN CN202311148630.9A patent/CN117201976B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115767321A (en) * | 2021-09-06 | 2023-03-07 | 中兴通讯股份有限公司 | Bandwidth allocation method and device and authentication method and system of home network ONU |
Also Published As
Publication number | Publication date |
---|---|
CN117201976A (en) | 2023-12-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1929361B (en) | Transmission apparatus | |
CN101771902B (en) | Method, system and device for allocating passive optical network uplink bandwidth | |
EP2467978B1 (en) | Method for soft bandwidth limiting in dynamic bandwidth allocation | |
US8081661B2 (en) | Dynamic bandwidth allocation device for an optical network and method thereof | |
CN105119682B (en) | A Dynamic Wavelength Bandwidth Allocation Method Based on User Level Protocol and QoS in WDM‑EPON | |
KR100950337B1 (en) | Efficient Dynamic Bandwidth Allocation Apparatus and Method for TMD-based Passive Optical Subscriber Networks | |
CN116634313B (en) | Single-frame multi-burst distribution method, burst frame uplink method, distribution device and computer readable storage medium in optical forwarding network | |
Gravalos et al. | A modified max-min fair dynamic bandwidth allocation algorithm for XG-PONs | |
Qi-yu et al. | A dynamic bandwidth allocation scheme for GPON based on traffic prediction | |
JP2015033051A (en) | Dynamic bandwidth allocation method, station side device, computer program, and PON system | |
CN117201976B (en) | Bandwidth allocation method and system for cascade passive optical network | |
Rahman et al. | Bandwidth allocation and control message scheduling algorithms for improving the QoSs of high priority traffic in PON | |
CN100574197C (en) | Distribution method of dynamic bandwidth, system and the device of quick response | |
CN104468409B (en) | A kind of distribution method of dynamic bandwidth based on on-fixed multithreading poll | |
Guan et al. | A new composite assembly mechanism for supporting QoS in OBS networks | |
KR19990070901A (en) | Asynchronous Transmission Method (ATMPON) Media Access Control (MAC) Protocol Implementation Method | |
Gravalos et al. | The max–min fair approach on dynamic bandwidth allocation for XG‐PONs | |
CN108667542B (en) | Method and device for realizing uplink time division multiplexing | |
Nakayama et al. | ITU TWDM-PON module for ns-3 | |
Lu et al. | Fine-granularity bandwidth allocation for diverse low-latency services in higher-speed passive optical networks | |
Kurnia et al. | Modification of RR DBA for Performance Improvement of C-RAN on NG-PON2. | |
Chitra et al. | Efficient Low-Latency and Traffic Aware Dynamic Bandwidth Allocation for XG-PON | |
Batdorj et al. | An enhanced DWBA algorithm in WDM-TDM PON networks | |
CN115484516B (en) | Method and device for bandwidth allocation in passive optical network | |
CN117857952B (en) | A cascaded passive optical network system, device and medium for FTTR scenarios |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |