CN101087238B - Device and method for dynamic bandwidth allocation in passive optical network - Google Patents
Device and method for dynamic bandwidth allocation in passive optical network Download PDFInfo
- Publication number
- CN101087238B CN101087238B CN2007101062772A CN200710106277A CN101087238B CN 101087238 B CN101087238 B CN 101087238B CN 2007101062772 A CN2007101062772 A CN 2007101062772A CN 200710106277 A CN200710106277 A CN 200710106277A CN 101087238 B CN101087238 B CN 101087238B
- Authority
- CN
- China
- Prior art keywords
- optical network
- onu
- authorization
- bandwidth
- network unit
- 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.)
- Expired - Lifetime
Links
Images
Landscapes
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明涉及光通信领域,公开了一种无源光网络的动态带宽分配装置及方法,使得动态带宽分配方法实现业务透明,能适应不同类型业务需求,提高带宽利用率,实现带宽公平分配,健壮性好,实时性强,并且能对不同端口进行带宽分配,同时支持ONU的离线带宽释放。这种无源光网络的动态带宽分配方法包括光线路终端OLT接收来自于光网络单元ONU的多个业务的带宽指配请求;根据所述光网络单元的带宽指配请求中携带的上报信息,为所述光网络单元的所述业务进行带宽授权;根据带宽授权的信息,对同一光网络单元下的业务统一生成授权消息;将生成的所述授权消息发送给相应的光网络单元。
The invention relates to the field of optical communication, and discloses a dynamic bandwidth allocation device and method for a passive optical network, so that the dynamic bandwidth allocation method realizes business transparency, can adapt to different types of business requirements, improves bandwidth utilization, realizes bandwidth fair allocation, and is robust It has good performance, strong real-time performance, and can allocate bandwidth to different ports, and supports offline bandwidth release of ONU at the same time. This passive optical network dynamic bandwidth allocation method includes that the optical line terminal OLT receives bandwidth assignment requests from multiple services from the optical network unit ONU; according to the reported information carried in the bandwidth assignment request of the optical network unit, performing bandwidth authorization for the services of the optical network unit; according to the bandwidth authorization information, uniformly generating authorization messages for services under the same optical network unit; sending the generated authorization messages to corresponding optical network units.
Description
技术领域technical field
本发明涉及光通信领域,特别涉及无源光网络的动态带宽分配装置及方法。The invention relates to the field of optical communication, in particular to a dynamic bandwidth allocation device and method for a passive optical network.
背景技术Background technique
无源光网络(Passive Optical Network,简称″PON″)是指光配线网中不含有任何电子器件及电子电源,全部由光分路器等无源器件组成,不需要贵重的有源电子设备的一种光接入网。PON作为一种新兴的覆盖最后一公里的宽带接入光纤技术,其在光分支点不需要节点设备,只需安装一个简单的光分支器即可,因此具有节省光缆资源、带宽资源共享、节省机房投资、设备安全性高、建网速度快、综合建网成本低等优点。PON的低成本已经使其成为光纤到大楼(Fiber To The Building,简称″FTTB″)、光纤到路边(FiberTo The Curb,简称″FTTC″)、光纤到家庭(Fiber To The Home,简称″FTTH″)等FTTx网络的最理想的宽带接入方式。Passive Optical Network ("PON" for short) means that the optical distribution network does not contain any electronic devices and electronic power supplies, and is all composed of passive devices such as optical splitters, and does not require expensive active electronic equipment. An optical access network. As an emerging broadband access optical fiber technology covering the last mile, PON does not require node equipment at the optical branch point, and only needs to install a simple optical splitter, so it has the advantages of saving optical cable resources, sharing bandwidth resources, saving It has the advantages of investment in computer room, high equipment security, fast network construction speed, and low comprehensive network construction cost. The low cost of PON has made it a popular choice for Fiber To The Building ("FTTB"), Fiber To The Curb ("FTTC"), Fiber To The Home ("FTTH") ″) is the most ideal broadband access method for FTTx networks.
PON作为目前光接入网的主要类型,主要分为异步传输模式无源光网络(ATM Passive Optical Network,简称″APON″)和以太网无源光网络(Ethernet Passive Optical Network,简称″EPON″),是点到多点的主从控制结构,如图1所示,光纤线路终端(Optical Line Terminal,简称″OLT″)为主结点设备,通过光分路器与多个光纤网络单元(Optical Network Unit,简称″ONU″)相连,并进行ONU注册、待发数据授权、媒体接入控制子层(MediaAccess Control sub layer,简称″MAC″)消息交互等处理;ONU为从结点设备,响应OLT发现消息,上报待发数据长度,根据授权信息进行各端口数据的发送,并且下挂多个用户终端,支持多业务并行。在光接入网的此种框架结构下,如何合理分配带宽、有效利用网络资源并满足业务需求,成为PON MAC方案中很重要的内容。As the main type of optical access network, PON is mainly divided into ATM Passive Optical Network ("APON" for short) and Ethernet Passive Optical Network ("EPON" for short). , is a point-to-multipoint master-slave control structure, as shown in Figure 1, the optical line terminal (Optical Line Terminal, referred to as "OLT") is the master node device, through the optical splitter and multiple optical network units (Optical Network Unit ("ONU" for short) is connected, and performs ONU registration, data authorization to be sent, media access control sublayer (MediaAccess Control sublayer, "MAC") message interaction, etc.; ONU is a slave node device, responding The OLT discovers the message, reports the length of the data to be sent, sends the data of each port according to the authorization information, and connects multiple user terminals to support multiple services in parallel. Under the frame structure of the optical access network, how to reasonably allocate bandwidth, effectively utilize network resources and meet business needs has become a very important content in the PON MAC solution.
光接入网中,带宽分配有两种方式:静态带宽分配(Static BandwidthAllocation,简称″SBA″)和动态带宽分配(Dynamic Bandwidth Allocation,简称″DBA″)。静态带宽分配固定分配各ONU或其端口的带宽,未用时隙不能被抢占,带宽利用率比较低,并且对高突发率的自似然业务适应力不强。动态带宽分配算法是一种基于当前用户业务需求进行快速带宽重分配的机制或算法,可根据ONU突发业务的要求,通过在ONU之间动态调节带宽来提高PON带宽利用率。In the optical access network, there are two ways of bandwidth allocation: static bandwidth allocation (Static Bandwidth Allocation, referred to as "SBA") and dynamic bandwidth allocation (Dynamic Bandwidth Allocation, referred to as "DBA"). Static bandwidth allocation fixedly allocates the bandwidth of each ONU or its port, unused time slots cannot be preempted, the bandwidth utilization rate is relatively low, and the adaptability to natural services with high burst rate is not strong. The dynamic bandwidth allocation algorithm is a mechanism or algorithm for fast bandwidth redistribution based on the current user service requirements. It can improve the PON bandwidth utilization by dynamically adjusting the bandwidth between ONUs according to the ONU burst service requirements.
目前有多种动态带宽分配方法,比如,以加州大学Davis分校、Alloptic公司雇员Glen Kramer为主提出的称为周期自适应交叉轮循(InterleavedPolling with Adaptive Cycle Time,简称″IPACT″)的PON动态带宽分配方法;国际电信联盟标准部(International Telecommunication Union-Telecommunication Standardization Sector,简称″ITU-T″)的G.983.4标准提出的一种特别针对APON的DBA协议等。At present, there are many dynamic bandwidth allocation methods, such as the PON dynamic bandwidth called Interleaved Polling with Adaptive Cycle Time ("IPACT") proposed by Glen Kramer, an employee of the University of California at Davis and Alloptic. Allocation method; a DBA protocol especially for APON proposed by the G.983.4 standard of the International Telecommunication Union-Telecommunication Standardization Sector ("ITU-T" for short).
在美国专利US6546014中描述的IPACT方法的主要思路是来自前一ONU的发送数据到达OLT之前就轮循下一ONU以确定是否授权及授权额度等信息。下面参照图2描述这一方法的某些细节,图中以一个OLT与三个OUN通信为例进行方法描述。假定某轮询周期开始时刻t0,OLT有每个ONU的待发数据长度及环路传输时延(Round Trip Time,简称″RTT″)信息,并存储在轮询表(Polling Table)中。The main idea of the IPACT method described in US Pat. No. 6,546,014 is to round-robin the next ONU before the data sent from the previous ONU reaches the OLT to determine whether to authorize and authorize the amount and other information. Some details of this method are described below with reference to FIG. 2 , in which an OLT communicates with three OUNs as an example to describe the method. Assuming that a certain polling cycle starts at time t0, the OLT has the length of the data to be sent and the round trip time (Round Trip Time, "RTT" for short) information of each ONU, and stores them in the polling table (Polling Table).
如图2中(a)所示,OLT在轮询周期开始时,给ONU1发送授权信息,允许其发送6000字节。收到授权信息后,ONU发送数据直到授权窗口结束。在向OLT发送数据的同时,ONU一直从下挂的用户终端接收数据,并做缓存。在发送数据的最后,ONU产生下一轮待发数据信息,并上报。图中为550字节。As shown in (a) in Figure 2, when the polling period starts, the OLT sends authorization information to ONU1, allowing it to send 6000 bytes. After receiving the authorization information, the ONU sends data until the end of the authorization window. While sending data to the OLT, the ONU has been receiving data from the downstream user terminal and buffering it. At the end of sending data, the ONU generates the next round of data information to be sent and reports it. In the picture it is 550 bytes.
如图2中(b)所示,在收到前一个ONU的响应之前,OLT计算前一个ONU数据的最后一个比特到达的时间:第一比特的到达时间(该ONU的RTT)加上该ONU授权的发送数据长度。于是OLT便可根据下一ONU的RTT信息,在确切的时刻发送下一ONU的授权信息,使得前后两个ONU的数据发送窗口仅相差一个保护带。As shown in (b) in Figure 2, before receiving the response from the previous ONU, the OLT calculates the arrival time of the last bit of the previous ONU data: the arrival time of the first bit (the RTT of the ONU) plus the arrival time of the ONU Authorized send data length. Therefore, the OLT can send the authorization information of the next ONU at the exact moment according to the RTT information of the next ONU, so that the data transmission windows of the two ONUs before and after are only separated by a guard band.
如图2中(c)所示,当ONU1的数据全部被OLT接收以后,OLT根据附带的下一轮待发数据信息更新轮询表中的信息,作为下一轮轮询周期的参考数据。对于RTT信息的更新,OLT通过对授权信息发送和数据接收的跟踪获取。As shown in (c) in Figure 2, when all the data of ONU1 is received by the OLT, the OLT updates the information in the polling table according to the attached next round of data information to be sent, as the reference data for the next round of polling cycle. For the update of the RTT information, the OLT obtains it by tracking the authorization information sending and data receiving.
如图2中(d)所示,OLT对ONU2、ONU3做同样处理。As shown in (d) in Figure 2, the OLT performs the same processing on ONU2 and ONU3.
当某个ONU中缓存数据为空时,上报的下一轮待发数据置为零,这样授权的窗口为零,ONU照样可以在下次上报的待发数据请求中申请授权窗口。When the cached data in an ONU is empty, the next round of reported data to be sent is set to zero, so that the authorized window is zero, and the ONU can still apply for an authorization window in the next reported data request to be sent.
如果OLT授权每个ONU在一次发送过程中发送完其所有缓存中的内容,则数据量大的那些ONU可能会独占整个带宽。为避免这一点,OLT将限制最大发送量。每个ONU将被授权发送其前一周期请求的数据量,但不超过预定的最大限制,即最大发送窗口尺寸。对数据发送量最大限制的不同设定,将产生若干不同的方案。比如是固定的,基于服务水平协议(ServiceLevel Agreement,简称″SLA″),这种方案忽略请求窗口大小而总是授予最大发送窗口;或者受限的,其授权请求字节数但不超过最大发送窗口;或者常量信用额度(Constant Credit),其在请求窗口之上加一常量信用额度;或者线性信用额度(Linear Credit),其在请求窗口之上加一与请求窗口成线性比例关系的信用额度;或者弹性的,其试图去除固定最大窗口的限制,唯一限制因素为最大周期时间。If the OLT authorizes each ONU to send all the content in its cache in one sending process, those ONUs with a large amount of data may monopolize the entire bandwidth. To avoid this, the OLT will limit the maximum sending volume. Each ONU will be authorized to send the amount of data requested by it in the previous cycle, but it will not exceed the predetermined maximum limit, that is, the maximum sending window size. Different settings for the maximum limit on the amount of data sent will produce several different solutions. For example, it is fixed, based on the Service Level Agreement (Service Level Agreement, referred to as "SLA"). This scheme ignores the request window size and always grants the maximum sending window; or is limited, which authorizes the number of requested bytes but does not exceed the maximum sending window. window; or a constant credit limit (Constant Credit), which adds a constant credit limit on top of the request window; or a linear credit limit (Linear Credit), which adds a credit limit linearly proportional to the request window on top of the request window ; or elastic, which attempts to remove the constraint of a fixed maximum window, the only limiting factor being the maximum cycle time.
IPACT的控制消息不是标准的APON或EPON规定消息,其在数据流中插入转义码(Escape,简称″ESC″)字符以标识后面为控制消息数据,后跟随ONU结点标识(Node Identifier,简称″NID″)和请求授权窗口尺寸(Window Size,简称″WS″)。The control message of IPACT is not a standard APON or EPON specified message. It inserts an escape code (Escape, referred to as "ESC") character in the data stream to identify the following control message data, followed by the ONU node identifier (Node Identifier, referred to as "NID") and request authorization window size (Window Size, referred to as "WS").
另外,在ITU-T G.983.4标准提出的DBA协议中,把来自ONU的业务分成几种类型的传输适配容器(Transmission Container,简称″T-CONT″),本质上为承载异步传输模式(Asynchronous Transfer Mode,简称″ATM″)的虚通路(Virtual Path,简称″VP″)或虚通道(Virtual Channel,简称″VC″)的″管道″,具有不同服务质量(Quality of Service,简称″QoS″)要求的VP和VC到T-CONT的复用为可编程的。每种T-CONT类型有其特定的带宽分配要求。按照处理业务的优先级由高到低分为4类适配器,分别为T-CONT1、T-CONT2、T-CONT3和T-CONT4,T-CONT5可以对所有的业务适配,其目的是为了减少传输适配容器的数量。而带宽分配要求有四种类型:固定带宽,保证带宽,非保证带宽和尽力传输带宽。In addition, in the DBA protocol proposed by the ITU-T G.983.4 standard, the business from the ONU is divided into several types of transmission adaptation containers (Transmission Container, referred to as "T-CONT"), which is essentially carrying the asynchronous transmission mode ( Asynchronous Transfer Mode, referred to as "ATM" virtual path (Virtual Path, referred to as "VP") or virtual channel (Virtual Channel, referred to as "VC") "pipe" has different quality of service (Quality of Service, referred to as "QoS") ″) required multiplexing of VP and VC to T-CONT is programmable. Each T-CONT type has its specific bandwidth allocation requirements. According to the priority of business processing, it is divided into four types of adapters from high to low, namely T-CONT1, T-CONT2, T-CONT3 and T-CONT4. T-CONT5 can adapt to all services, and its purpose is to reduce The number of transport adaptation containers. There are four types of bandwidth allocation requirements: fixed bandwidth, guaranteed bandwidth, non-guaranteed bandwidth, and best-effort bandwidth.
该DBA协议有三种策略:非状态上报(Non-Status-Reporting,简称″NSR″),状态上报(Status-Reporting,简称″SR″)和混合类型。对于NSR策略,OLT要进行业务监控;对于SR策略,ONU和光网络终端(OpticalNetwork Terminal,简称″ONT″)要发送状态报告给OLT;对于混合策略,OLT既要进行业务监控,又要处理来自ONU/ONT的状态报告。The DBA protocol has three strategies: Non-Status-Reporting ("NSR" for short), Status-Reporting ("SR" for short) and mixed type. For the NSR strategy, the OLT needs to monitor services; for the SR strategy, the ONU and the Optical Network Terminal ("ONT" for short) need to send status reports to the OLT; /ONT status report.
SR策略中,ONU采集除T-CONT1之外传输适配器的状态,通过物理层操作管理维护(Physical Layer Operation、Administration、Maintenance,简称″PLOAM″)信息帧上报给OLT。OLT根据上行PLOAM信息得出ONU中各容器的状态,根据算法分配确保带宽、未确保带宽和尽力传输带宽给各容器其中,带宽分配采用了各种调度方法来实现其公平性。比如有无记忆、逐步递增、逐步增减等算法。In the SR strategy, the ONU collects the status of the transmission adapters except T-CONT1, and reports to the OLT through the Physical Layer Operation, Administration, Maintenance ("PLOAM") information frame. The OLT obtains the state of each container in the ONU according to the upstream PLOAM information, and allocates guaranteed bandwidth, unguaranteed bandwidth, and best-effort transmission bandwidth to each container according to the algorithm. Various scheduling methods are used for bandwidth allocation to achieve its fairness. For example, there are algorithms such as memory, step by step, step by step increase and decrease.
这些算法的带宽更新区别为,当检测到某T-CONT有拥塞时,无记忆算法分配更多资源给该组,分配的资源与先前分配资源无关;逐步递增算法则在先前分配资源的基础上,渐次增加更多资源分配给该组;逐步增减算法在先前分配资源的基础上,逐步减少其他组资源,以增加分配给该组的资源。The difference in the bandwidth update of these algorithms is that when a certain T-CONT is detected to be congested, the memoryless algorithm allocates more resources to the group, and the allocated resources have nothing to do with the previously allocated resources; the incremental algorithm is based on the previously allocated resources , gradually increase the allocation of more resources to this group; the gradual increase and decrease algorithm gradually reduces the resources of other groups on the basis of the previously allocated resources, so as to increase the resources allocated to this group.
在实际应用中,上述方案存在以下问题:只能应用在单一性质的系统,不能根据不同策略区分处理不同类型的业务,无法满足多种业务类型的QoS需求,无法按照用户业务端口进行带宽分配,无法动态处理ONU离线的情况。In practical application, the above scheme has the following problems: it can only be applied to a system of a single nature, it cannot distinguish and process different types of services according to different policies, it cannot meet the QoS requirements of various types of services, and it cannot allocate bandwidth according to user service ports. It cannot dynamically handle the situation that the ONU is offline.
造成这种情况的一个主要原因在于,均没有对不同业务设置不同的分配策略;技术方案一中轮询周期是随着数据量自适应变化的,导致同一业务的数据发送不定时,不能满足时延均匀的实时性业务的需求;技术方案二中采取Round-Robin式固定顺序轮循,是专门针对面向连接的、协议数据单元(Protocol Data Unit,简称″PDU″)定长的APON应用,而带宽更新机制针对的是T-CONT,不能按照不同端口进行带宽分配处理。One of the main reasons for this situation is that there are no different allocation strategies for different services; the polling period in
发明内容Contents of the invention
本发明要解决的技术问题是提供一种无源光网络的动态带宽分配装置及方法,使得动态带宽分配方法实现业务透明,能适应不同类型业务需求,提高带宽利用率,实现带宽公平分配,健壮性好,实时性强,并且能对不同端口进行带宽分配,同时支持ONU的离线带宽释放。The technical problem to be solved by the present invention is to provide a dynamic bandwidth allocation device and method for a passive optical network, so that the dynamic bandwidth allocation method realizes business transparency, can adapt to different types of business requirements, improves bandwidth utilization, realizes bandwidth fair allocation, and is robust It has good performance, strong real-time performance, and can allocate bandwidth to different ports, and supports offline bandwidth release of ONU at the same time.
为了解决上述技术问题,本发明实施例提供了一种无源光网络的动态带宽分配方法,包括:In order to solve the above technical problems, an embodiment of the present invention provides a dynamic bandwidth allocation method for a passive optical network, including:
光线路终端OLT接收来自于光网络单元ONU的多个业务的带宽指配请求;The optical line terminal OLT receives bandwidth assignment requests of multiple services from the optical network unit ONU;
根据所述光网络单元的带宽指配请求中携带的上报信息,为所述光网络单元的所述业务进行授权;authorize the service of the optical network unit according to the reported information carried in the bandwidth assignment request of the optical network unit;
根据授权的信息,对同一光网络单元下的业务统一生成授权消息;According to the authorized information, uniformly generate authorization messages for services under the same optical network unit;
将生成的所述授权消息发送给相应的光网络单元。Send the generated authorization message to a corresponding optical network unit.
本发明实施例还提供了一种无源光网络的动态带宽分配装置,包括:带宽授权单元,用于接收来自于光网络单元的多个业务的带宽指配请求;根据所述光网络单元的带宽指配请求中携带的上报信息,为所述光网络单元的所述业务进行授权;An embodiment of the present invention also provides a dynamic bandwidth allocation device for a passive optical network, including: a bandwidth authorization unit, configured to receive bandwidth assignment requests from multiple services from an optical network unit; The reporting information carried in the bandwidth assignment request authorizes the service of the optical network unit;
授权消息生成单元,用于根据授权的信息,对同一光网络单元下的业务统一生成授权消息;An authorization message generation unit, configured to uniformly generate authorization messages for services under the same optical network unit according to the authorized information;
授权消息发送单元,将生成的所述授权消息发送给相应的光网络单元。The authorization message sending unit is configured to send the generated authorization message to a corresponding optical network unit.
本发明实施例还提供了一种无源光网络系统,包括光线路终端OLT,所述OLT与多个光网络单元ONU进行通信;所述的OLT,用于接收来自于所述ONU的多个业务的带宽指配请求;根据所述带宽指配请求中携带的上报信息,为所述光网络单元的所述业务进行授权;根据所述授权的信息,对同一光网络单元下的业务统一生成授权消息;将生成的所述授权消息发送给相应的光网络单元。The embodiment of the present invention also provides a passive optical network system, including an optical line terminal OLT, the OLT communicates with a plurality of optical network units ONU; the OLT is used to receive a plurality of ONUs from the ONU A service bandwidth assignment request; according to the reported information carried in the bandwidth assignment request, authorize the service of the optical network unit; according to the authorized information, uniformly generate services under the same optical network unit An authorization message; sending the generated authorization message to a corresponding optical network unit.
通过实施本发明的实施例,可以带来较为明显的有益效果,即使得动态带宽分配对业务透明,能适应TDM/EF、AF、DF及MPCP消息的必须转发和CPU/OAM的确保转发等多种业务需求,提高带宽利用率,公平分配带宽,健壮性好,实时性强,更加有效利用带宽资源,避免资源浪费。By implementing the embodiments of the present invention, more obvious beneficial effects can be brought, that is, the dynamic bandwidth allocation is transparent to services, and can adapt to the necessary forwarding of TDM/EF, AF, DF and MPCP messages and the guaranteed forwarding of CPU/OAM, etc. Various business needs, improve bandwidth utilization, allocate bandwidth fairly, have good robustness, strong real-time performance, use bandwidth resources more effectively, and avoid waste of resources.
附图说明Description of drawings
图1是无源光网络结构示意图;FIG. 1 is a schematic diagram of a structure of a passive optical network;
图2是周期自适应交叉轮循方法的原理示意图;Fig. 2 is a schematic diagram of the principle of the periodic self-adaptive cross round robin method;
图3是根据本发明的一个实施例的上行业务激活ONU Bitmap寄存器和相应的上行业务激活端口Bitmap表的结构图;Fig. 3 is according to an embodiment of the present invention, uplink service activates the structural diagram of ONU Bitmap register and corresponding uplink service activation port Bitmap table;
图4是根据本发明的一个实施例的上行vMAC上报信息表结构图;FIG. 4 is a structural diagram of an uplink vMAC reporting information table according to an embodiment of the present invention;
图5是根据本发明的一个实施例的各类业务的授权方法流程图;FIG. 5 is a flowchart of an authorization method for various services according to an embodiment of the present invention;
图6是根据本发明的一个实施例的上行vMAC授权信息表结构图;FIG. 6 is a structural diagram of an uplink vMAC authorization information table according to an embodiment of the present invention;
图7是根据本发明的一个实施例的ONU状态信息表结构图;Fig. 7 is a structural diagram of an ONU state information table according to an embodiment of the present invention;
图8是根据本发明的一个实施例的授权消息生成方法流程图;FIG. 8 is a flowchart of a method for generating an authorization message according to an embodiment of the present invention;
图9是根据本发明的一个实施例的ONU激活超时计数表结构图;Fig. 9 is a structural diagram of an ONU activation timeout counting table according to an embodiment of the present invention;
图10是根据本发明的一个实施例的ONU信息老化方法流程图。Fig. 10 is a flowchart of an ONU information aging method according to an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings.
首先需要指出,在本发明所提出的无源光网络的动态带宽分配方法中,包含业务注册、带宽分配、授权消息、ONU信息老化。本发明将各种业务进行分类,并且对于不同类型的业务安排不同的数据结构实行不同分配策略。本发明还将同一ONU下的不同端口分别处理。另外,本发明还对ONU状态进行监控,动态释放离线ONU的资源。下面详细描述本发明的一个实施例。First of all, it needs to be pointed out that the dynamic bandwidth allocation method for passive optical network proposed by the present invention includes service registration, bandwidth allocation, authorization message, and ONU information aging. The invention classifies various services, and arranges different data structures for different types of services to implement different allocation strategies. The present invention also handles different ports under the same ONU separately. In addition, the present invention also monitors the state of the ONU, and dynamically releases the resource of the offline ONU. An embodiment of the present invention is described in detail below.
为了将业务进行分类,对不同端口分别处理,需要设置各种类型业务的数据结构和端口的数据结构,以便系统进行分类处理。在本发明的一个实施例中,按照优先级将业务分为以下几类:In order to classify services and process different ports separately, it is necessary to set the data structures of various types of services and ports so that the system can perform classification processing. In one embodiment of the present invention, business is divided into the following categories according to priority:
快速转发业务,如时分复用(Time Division Multiplex,简称″TDM″)、加速转发(Expedited Forwarding,简称″EF″)等,这里统称为EF业务,此类业务需要均匀延时的实时转发,而且带宽基本不受限制,因此优先级最高;Fast forwarding services, such as time division multiplexing (Time Division Multiplex, referred to as "TDM"), accelerated forwarding (Expedited Forwarding, referred to as "EF"), etc., here collectively referred to as EF services, such services require real-time forwarding with uniform delay, and The bandwidth is basically unlimited, so the priority is the highest;
多点控制协议(Multi-Point Control Protocol,简称″MPCP″)消息业务,MPCP消息是用于系统正常MPCP通信的,分为自动发现MPCP消息和非自动发现MPCP消息,MPCP消息的有关参数都是固定的,本发明还将根据ONU及时的MPCP消息判断是否其在线;Multi-Point Control Protocol (Multi-Point Control Protocol, referred to as "MPCP") message service, MPCP message is used for normal MPCP communication of the system, divided into automatic discovery MPCP message and non-automatic discovery MPCP message, the relevant parameters of MPCP message are Fixed, the present invention will also judge whether it is online according to the timely MPCP message of the ONU;
确保转发(Must Forwarding,简称″MF″)业务,如中央处理单元(CentralProcess Unit,简称″CPU″)的消息、OAM的消息,此类业务需要保证消息正确传送,用于运行、管理、维护和预置模块(Operation Administration,Maintenance and Provisioning,简称″OAM&P″)及OLT与ONU间通讯,因此优先级也较高;Ensure forwarding (Must Forwarding, "MF" for short) services, such as Central Process Unit (Central Process Unit, "CPU" for short) messages, OAM messages, such services need to ensure the correct transmission of messages for operation, management, maintenance and Preset module (Operation Administration, Maintenance and Provisioning, referred to as "OAM&P") and communication between OLT and ONU, so the priority is also higher;
可靠转发业务,即可靠转发(Assured Forwarding,简称″AF″),此类业务需要保证指定的最低带宽,但对实时性要求不高;Reliable forwarding service, that is, Assured Forwarding ("AF" for short), this type of service needs to guarantee the specified minimum bandwidth, but does not have high requirements for real-time performance;
尽力转发业务,如缺省转发(Default Forwarding,简称″DF″),此类没有最低带宽要求,所以优先级最低。Best-effort forwarding services, such as Default Forwarding ("DF" for short), have no minimum bandwidth requirements, so they have the lowest priority.
本发明采用集中控制上报信息的方式,OLT对每个ONU的状态进行管理。在本发明的一个较佳实施例中,ONU的自动发现和注册过程的消息交互采用,国际电气电子工程师协会IEEE802.3ah标准的消息交互过程。The present invention adopts the mode of centralized control and reporting information, and the OLT manages the state of each ONU. In a preferred embodiment of the present invention, the ONU auto-discovery and message exchange of the registration process adopts the message exchange process of the IEEE802.3ah standard of the International Institute of Electrical and Electronics Engineers.
为了在进行数据发送授权时便于分业务、分优先级地轮循,在本发明的一个较佳实施例中,设置各种业务的上行业务激活ONU位映射(Bitmap)寄存器来保存各种业务的ONU激活信息,比如上行MPCP激活ONU Bitmap寄存器(Ingress MPCP Active Bitmap,简称″IMAB″)、上行MF业务激活ONU Bitmap寄存器(Ingress Must Forwarding Active Bitmap,简称″IMFAB″)、上行EF业务激活ONU Bitmap寄存器(Ingress Expedited Forwarding ActiveBitmap,简称″IEFAB″)、上行AF业务激活ONU Bitmap寄存器(IngressAssured Forwarding Active Bitmap,简称″IAFAB″)、上行DF业务激活ONUBitmap寄存器(Ingress Default Forwarding Active Bitmap,简称″IDFAB″);同时以端口为单位的业务有EF、AF、DF等,这些业务还需设置上行业务激活端口位映射(Bitmap)表来保存这些业务在端口的激活信息,比如上行EF业务激活Bitmap表(Ingress Expedited Forwarding Active Bitmap Table,简称″IEFABT″)、上行DF业务激活Bitmap表(Ingress Assured ForwardingActive Bitmap Table,简称″IAFABT″)、上行AF业务激活Bitmap表(IngressDefault Forwarding Active Bitmap Table,简称″IDFABT″)。In order to facilitate round robin by business and priority when carrying out data transmission authorization, in a preferred embodiment of the present invention, the upstream business of various services is set to activate the ONU bitmap (Bitmap) register to save the information of various services. ONU activation information, such as upstream MPCP activation ONU Bitmap register (Ingress MPCP Active Bitmap, referred to as "IMAB"), upstream MF service activation ONU Bitmap register (Ingress Must Forwarding Active Bitmap, referred to as "IMFAB"), upstream EF service activation ONU Bitmap register (Ingress Expedited Forwarding ActiveBitmap, "IEFAB" for short), upstream AF service activation ONU Bitmap register (Ingress Assured Forwarding Active Bitmap, short for "IAFAB"), upstream DF service activation ONUBitmap register (Ingress Default Forwarding Active Bitmap, short for "IDFAB"); At the same time, services in units of ports include EF, AF, DF, etc. These services also need to set up the upstream service activation port bitmap (Bitmap) table to save the activation information of these services on the port, such as the upstream EF service activation Bitmap table (Ingress Expedited Forwarding Active Bitmap Table, referred to as "IEFABT"), uplink DF service activation Bitmap table (Ingress Assured Forwarding Active Bitmap Table, referred to as "IAFABT"), uplink AF service activation Bitmap table (IngressDefault Forwarding Active Bitmap Table, referred to as "IDFABT").
如图3所示,上行业务激活ONU Bitmap寄存器包含N个ONU的相应的位(bit),用于指示该ONU的此类业务是否被激活,比如1表示激活、0表示未激活;图中右侧的上行业务激活端口Bitmap表包含N个ONU的相应的表项,每个表项的内容(content)存储着相应的ONU所下挂的各个端口的此类业务是否被激活的信息,比如是每个端口对应着一位,1表示激活、0表示未激活,而系统将这些表存放在存储器中,且可以根据相应的光纤网络单元标识符(Optical Network Unit Identifier,简称″ONUID″)来索引(index)相应的ONU的表项,以方便读写端口业务激活信息。As shown in Figure 3, the upstream service activation ONU Bitmap register contains the corresponding bits (bits) of N ONUs, which are used to indicate whether this type of service of the ONU is activated, such as 1 indicates activation, 0 indicates inactivation; The upstream service activation port Bitmap table on the side contains the corresponding entries of N ONUs, and the content of each entry stores the information of whether such services of each port connected to the corresponding ONU are activated, such as Each port corresponds to a bit, 1 means active, 0 means inactive, and the system stores these tables in memory, and can be indexed according to the corresponding Optical Network Unit Identifier ("ONUID") (index) table entry of the corresponding ONU, so as to facilitate reading and writing of port service activation information.
需要说明的是,在业务注册过程中,为ONU分配的逻辑链路标识符(Logical Link Identifier,简称″LLID″)为{ONUID,端口激活Bitmap}的形式,这种形式便于使用ONUID和各端口偏移(Offset)进行各种业务激活信息、带宽分配信息表的检索,也便于组播业务的开展。It should be noted that during the service registration process, the Logical Link Identifier ("LLID") assigned to the ONU is in the form of {ONUID, port activation Bitmap}, which is convenient for using ONUID and each port Offset searches various service activation information and bandwidth allocation information tables, and facilitates the development of multicast services.
ONU在注册过程中其MPCP端口即被激活,激活信息加入IMAB中;ONU注册后则MF端口激活,激活信息加入IMFAB中,这里每个ONU缺省都有CPU和OAM的业务。The MPCP port of the ONU is activated during the registration process, and the activation information is added to the IMAB; after the ONU is registered, the MF port is activated, and the activation information is added to the IMFAB. Here, each ONU has CPU and OAM services by default.
ONU注册成功后向OLT的CPU请求带宽指配,网管通过与OLT的CPU的交互进行带宽信息的传递。带宽信息包含EF业务端口的激活,AF及DF业务端口的激活及该端口的带宽。EF、AF及DF业务端口的激活信息分别加入IEFAB、IAFAB、IDFAB中和IEFABT、IAFABT、IDFABT的相应表项中,IEFAB、IAFAB、IDFAB的相应位分别反映该ONU是否有EF、DF、AF业务激活的信息,IEFABT、IAFABT、IDFABT的相应表项则标识出该ONU的那些端口的EF、DF、AF业务被激活。After the ONU successfully registers, it requests bandwidth allocation from the CPU of the OLT, and the network management communicates with the CPU of the OLT to transmit the bandwidth information. The bandwidth information includes the activation of the EF service port, the activation of the AF and DF service ports and the bandwidth of the port. The activation information of EF, AF and DF service ports are respectively added to IEFAB, IAFAB and IDFAB and corresponding entries of IEFAB, IAFAB and IDFABT, and the corresponding bits of IEFAB, IAFAB and IDFAB respectively reflect whether the ONU has EF, DF and AF services For the activation information, the corresponding entries of IEFABT, IAFABT, and IDFABT indicate that the EF, DF, and AF services of those ports of the ONU are activated.
对于需要进行带宽控制的业务端口,设置相应的带宽信息表(BandwidthInformation Table,简称″BIT″),用于存放每个固定轮询周期(即虚拟帧周期)内发送的数据量,称为发送量子(Transmit Quantum),其单位可以是字节(Byte)、字(Word)等。同样的系统根据ONUID和各端口偏移(Offset)进行表项检索。For service ports that require bandwidth control, set up a corresponding bandwidth information table (BandwidthInformation Table, referred to as "BIT"), which is used to store the amount of data sent in each fixed polling cycle (that is, the virtual frame cycle), called the sending quantum (Transmit Quantum), its unit can be byte (Byte), word (Word), etc. The same system performs table item retrieval according to ONUID and each port offset (Offset).
OLT通过与网管的交互,可以动态操作修改上行业务激活ONU Bitmap寄存器相关位、激活端口Bitmap表相关表项及带宽信息表相关表项的内容,从而实现了ONU业务端口的动态插入删除和带宽信息的重配置。Through the interaction with the network management, the OLT can dynamically operate and modify the relevant bits of the upstream service activation ONU Bitmap register, the relevant entries of the activated port Bitmap table and the relevant entries of the bandwidth information table, thereby realizing the dynamic insertion and deletion of ONU service ports and bandwidth information. reconfiguration.
每个轮询周期中,ONU通过IEEE802.3ah标准的REPORT消息向OLT上报待发数据长度,每个消息包含有8个队列数据长度上报项,并预定各个队列和ONU端口间对应关系,使得OLT能够区分上报长度来自哪个端口。同时设定各个队列的有效标志,比如划分8个比特对应的标志8个队列是否有效项、或者将无效队列长度置为零以标志该项无效。当ONU下挂端口大于8个时,采用多个REPORT消息表征,消息中附带序号,以标识一个周期中多个REPORT的连续性,使得OLT可以根据接收到的多个消息确定各上报项来自哪个端口。In each polling cycle, the ONU reports the data length to be sent to the OLT through the REPORT message of the IEEE802.3ah standard. Each message contains 8 queue data length reporting items, and the corresponding relationship between each queue and the ONU port is predetermined, so that the OLT Ability to distinguish which port the reported length comes from. At the same time, the valid flags of each queue are set, such as dividing 8 bits corresponding to whether the 8 queues are valid items, or setting the length of the invalid queue to zero to mark the item as invalid. When the ONU has more than 8 connected ports, multiple REPORT messages are used to represent the message, and the sequence number is attached to the message to identify the continuity of multiple REPORTs in one cycle, so that the OLT can determine which report item comes from according to the received multiple messages port.
为了对各个端口的上报信息进行分别处理,OLT将上报待发数据长度信息存储于以虚拟MAC(Virtual MAC,简称″vMAC″)分类的上行vMAC上报信息表(Report Information Table,简称″RIT″)中,图4示出了该表的结构:各个表项相应于各个ONU端口的上报信息,并且系统由ONUID索引;对于普通业务,如OAM、CPU及通常的转发业务等数据,表项包含上报标识(Reported Flag)、上报待发数据长度(Report),其中″上报标识″标志当前虚拟帧周期内该vMAC是否上报待发数据,″上报待发数据长度″的数字单位与带宽信息表中发送量子的单位保持一致;对于MPCP消息业务,表项包含上报标识(Reported Flag)、上行MPCP消息类型域(Type)、保留域(Reserved),其中上行MPCP消息类型域指明该上行MPCP消息的类型,如″REGISTER REQ″、″REGISTER ACK″和″Normal REPORT″等,使得OLT能区分ONU所在注册阶段以便明确应当生成的下行MPCP消息类型。由于EF业务在确定了虚拟帧周期后,端口在一个虚拟帧周期内可发送的数据长度是一定的,因此无须进行待发数据长度上报。In order to process the reported information of each port separately, the OLT stores the length information of the reported data to be sent in the uplink vMAC Report Information Table (Report Information Table, referred to as "RIT") classified by Virtual MAC (Virtual MAC, referred to as "vMAC") 4 shows the structure of the table: each entry corresponds to the reporting information of each ONU port, and the system is indexed by the ONUID; for common services, such as OAM, CPU and common forwarding services, etc., the entry includes reporting information Flag (Reported Flag), reported data length to be sent (Report), where "report flag" indicates whether the vMAC reports data to be sent within the current virtual frame period, and the numerical unit of "reported data length to be sent" is sent in the bandwidth information table The unit of quantum is consistent; for MPCP message service, the table item includes reporting flag (Reported Flag), uplink MPCP message type field (Type), reserved field (Reserved), wherein the uplink MPCP message type field indicates the type of the uplink MPCP message, Such as "REGISTER REQ", "REGISTER ACK" and "Normal REPORT", etc., enable the OLT to distinguish the registration stage of the ONU so as to clarify the type of downlink MPCP message that should be generated. After the virtual frame period is determined for the EF service, the data length that the port can send within a virtual frame period is fixed, so there is no need to report the length of the data to be sent.
带宽分配,即业务数据发送授权,是OLT根据业务ONU端口激活信息、带宽分配信息、上报信息等按照业务优先级轮询授权的过程。为了满足EF业务的QoS保证,授权的周期为虚拟帧周期,其他的带宽分配操作均按照虚拟帧周期进行。下面参照图5详细说明本发明的一个实施例的上行业务数据发送授权方法。Bandwidth allocation, that is, service data transmission authorization, is a process in which the OLT polls the authorization according to the service priority according to the service ONU port activation information, bandwidth allocation information, and reported information. In order to meet the QoS guarantee of the EF service, the authorized period is the virtual frame period, and other bandwidth allocation operations are performed according to the virtual frame period. A method for authorizing uplink service data transmission according to an embodiment of the present invention will be described in detail below with reference to FIG. 5 .
本发明按照业务优先级从高到低分别是EF业务、自动发现MPCP、非自动发现MPCP、MF业务、AF业务、DF业务的顺序轮询授权。In the present invention, according to the service priority from high to low, the order polling authorization is respectively EF service, automatic discovery of MPCP, non-automatic discovery of MPCP, MF service, AF service and DF service.
为了方便OLT对各类上行业务发送授权消息,本发明设置上行vMAC授权信息表(Grant Information Table,简称GIT),用于存储业务发送授权产生的授权信息,当在上行接收过程中,OLT读取授权信息表中的数据,并产生授权消息,发送至相应ONU,完成带宽动态分配过程。In order to facilitate the OLT to send authorization messages to various uplink services, the present invention sets up an uplink vMAC authorization information table (Grant Information Table, GIT for short), which is used to store the authorization information generated by the authorization of service transmission. When in the uplink receiving process, the OLT reads The data in the authorization information table is generated, and the authorization message is sent to the corresponding ONU to complete the bandwidth dynamic allocation process.
图5示出了各类业务的授权方法流程。Fig. 5 shows the authorization method flow of various services.
在步骤501中,根据上行业务激活信息确定当前授权端口,或者根据启动计数器启动自动发现MPCP消息。对于EF、MF、AF、DF及非自动发现MPCP等业务,所述上行业务激活信息包含各类业务的上行业务激活ONUBitmap寄存器和上行业务激活端口Bitmap表,轮询这些信息得到当前需要操作的该类业务端口。对于自动发现MPCP,为了动态注册新上线的ONU,设定一个自动发现MPCP的启动计数器,每次计满则启动,实现周期启动自动发现MPCP过程并不占用过多带宽。In
接着进入步骤502,在带宽资源允许的情况下进行授权,记录授权窗口信息或者下行MPCP类型。带宽资源是否允许的判断是根据端口指配带宽,即一个虚拟帧周期内允许发送的数据量,或者MPCP的固定数据量,以及当前虚拟帧周期内剩余带宽来判断,前者大于后者时,带宽资源允许,可以进行授权;或者对于AF业务,只有当端口有待发数据上报,并且上报的待发数据量不大于剩余可发送数据量也不大于该端口带宽指配发送数据量与亏欠量的和,才判断为带宽资源允许;或者对于DF业务,只有当端口有待发数据上报并且剩余可发送数据量不小于上报数据量和带宽指配最大可发送数据量两者中最大者,才判断为带宽资源允许。Then enter
其中,对于EF业务,根据预定数据到达时间戳、与本虚拟帧周期内的前一端口属于不同ONU时需要加入的保护带,确定其数据发送起始时间(Start Time)和数据发送长度(Length),并记录到该类业务的GIT的该端口的相应表项中。其中所述预定数据到达时间戳是指预先确定的下一上行虚拟帧周期内数据到达时间标识,该时间标识的参考标准为OLT处的自由振荡时钟。Among them, for the EF service, according to the scheduled data arrival time stamp and the protection band that needs to be added when the previous port in this virtual frame period belongs to a different ONU, determine its data transmission start time (Start Time) and data transmission length (Length ), and record it into the corresponding entry of the port of the GIT of this type of business. The predetermined data arrival time stamp refers to a predetermined data arrival time stamp in the next uplink virtual frame period, and the reference standard of the time stamp is a free-running clock at the OLT.
对于MPCP消息业务,根据当前MPCP端口的RIT上行消息类型确定下行MPCP消息类型,自动发现MPCP为固定类型,并将所述MPCP类型和授权标志写入MPCP端口相应GIT表项中。For the MPCP message service, determine the downlink MPCP message type according to the RIT uplink message type of the current MPCP port, automatically find that the MPCP is a fixed type, and write the MPCP type and authorization flag into the corresponding GIT entry of the MPCP port.
对于MF、DF业务,根据端口RIT中上报数据长度信息、已有授权亏欠量对其授权对应长度窗口,并写入相应GIT表项中。For MF and DF services, according to the data length information reported in the port RIT and the existing authorization deficit, it authorizes the corresponding length window, and writes it into the corresponding GIT entry.
对于AF业务,根据端口RIT中上报数据长度信息和已有授权亏欠量对其授权对应长度窗口,同时计算新的授权亏欠量,并写入相应GIT表项中。For the AF service, according to the data length information reported in the port RIT and the existing authorization owed amount, it authorizes the corresponding length window, and calculates the new authorized owed amount at the same time, and writes it into the corresponding GIT entry.
接着进入步骤503,更新相关信息。更新相关信息的操作包含,更新当前虚拟帧周期内剩余带宽,更新EF业务中当前预定数据到达时间戳及虚拟帧周期内剩余带宽,清零自动发现MPCP的启动计数器,清除MF、AF、DF中对应RIT表中上报标志等,其中清除RIT表中的上报标志是为了避免下一虚拟帧周期不发生重复授权。Then enter
在本发明的一个较佳实施例中,AF业务的授权调度方法采用漏桶型算法。熟悉本领域的技术人员可以理解,AF业务的授权调度也可以采用加权轮询算法,而不影响本发明的实质和范围。In a preferred embodiment of the present invention, the authorization scheduling method of the AF service adopts a leaky bucket algorithm. Those skilled in the art can understand that the authorization scheduling of the AF service can also adopt the weighted round-robin algorithm, without affecting the essence and scope of the present invention.
接着进入步骤504,判断是否有端口未授权,如果有,进入步骤501,否则结束本来业务端口的授权,进入下一优先级业务端口的授权。其中,自动发现MPCP每周期最多只有一次授权,所以直接进入下一优先级业务端口的授权。Then enter
图6示出了上行vMAC授权信息表的数据结构,各个表项相应于各个ONU端口的授权信息,并且系统由ONUID索引;对于上行EF业务,表项包含授权标志(Granted Flag)、数据发送起始时间(StartTime)、数据发送长度(Length),其中授权标志指示该业务端口是否被授权,数据发送起始时间即该端口被授权可以开始发送的时间,数据发送长度即该端口被授权可以发送数据的长度;对于上行MF业务,表项包含授权标志(Granted Flag)、预留域(Reserved)、数据发送长度(Length),预留域即尚未定义的部分;对于MPCP端口,表项包含授权标志(Granted Flag)、下行MPCP消息类型(Type)、预留域(Reserved),其中下行MPCP消息类型包含″DiscoveryGATE″、″Normal GATE″、″REGISTER&GATE″,这里″GATE″类型的下行MPCP专门用于承载授权消息;对于其他业务,表项包含授权标志(GrantedFlag)、亏欠计数器(Deficit Cnt)、数据发送长度(Length),其中亏欠计数器用于记录该端口的授权亏欠量,授权亏欠量反映该业务端口在以前的上行业务周期中累计的授权带宽多于上报带宽的程度,系统通过授权亏欠量来平衡AF、DF业务的QoS保证。在业务数据发送授权阶段,只对EF业务授权数据发送起始时间,其他业务中自动发现MPCP的注册窗口对ONU数目及最长扩展距离确定的PON系统来说也是确定的,非自动发现MPCP由于MPCP消息长度是固定的故其授权长度也是固定的,它们的授权长度不再写入授权信息表,AF和DF业务端口的授权长度由于不固定要写入授权信息表。Fig. 6 shows the data structure of uplink vMAC authorization information table, and each entry corresponds to the authorization information of each ONU port, and the system is indexed by ONUID; Start time (StartTime), data sending length (Length), where the authorization flag indicates whether the service port is authorized, the data sending start time is the time when the port is authorized to start sending, and the data sending length is the port is authorized to send The length of the data; for the uplink MF service, the entry includes the Granted Flag, the reserved field (Reserved), and the data transmission length (Length), and the reserved field is the part that has not yet been defined; for the MPCP port, the entry contains the authorized Flag (Granted Flag), downlink MPCP message type (Type), reserved field (Reserved), wherein the downlink MPCP message type includes "DiscoveryGATE", "Normal GATE", "REGISTER&GATE", where the downlink MPCP of the "GATE" type is specially used For other services, the entry includes Granted Flag (GrantedFlag), Deficit Cnt, and Data Sending Length (Length). The accumulated authorized bandwidth of the service port in the previous uplink service cycle is more than the reported bandwidth, and the system balances the QoS guarantee of AF and DF services through the authorized deficit. In the service data sending authorization phase, only the start time of data sending is authorized for EF services, and the registration window for automatic discovery of MPCP in other services is also determined for PON systems with a certain number of ONUs and the longest extension distance. Non-automatic discovery of MPCP is due to MPCP message length is fixed, so its authorized length is also fixed, and their authorized lengths are no longer written into the authorized information table, and the authorized lengths of AF and DF service ports are not fixed to be written into the authorized information table.
为了便于管理ONU,本发明还设置了ONU状态信息表(StatusInformation Table,简称″SIT″),用于表征ONU的状态信息。ONU状态信息表是在MPCP消息交互过程中生成的,ONU所处状态根据当前OLT与ONU间所交互的消息类型确定。图7示出了状态信息表的数据结构,每个ONU对应一个表项,系统由ONUID索引,表项包含ONU状态信息(ONUStatus)。在本发明的一个较佳实施例中,用2个比特表示ONU状态信息,分别是无效(Invalid Entry)、已注册(Registered ONU)、注册中(RegisteringONU),其中无效表示该ONUID未分配给任何ONU,已注册表示该ONU已完成注册过程可以正常进行业务数据转发,注册中表示该ONU正处在注册过程中,注册中的ONU的具体当前交互消息可通过该ONU的MPCP端口上报信息表(RIT)表项和授权信息表(GIT)表项得知。In order to facilitate the management of the ONU, the present invention also sets an ONU status information table (StatusInformation Table, referred to as "SIT"), which is used to characterize the status information of the ONU. The ONU state information table is generated during the MPCP message exchange process, and the state of the ONU is determined according to the type of message exchanged between the current OLT and the ONU. Figure 7 shows the data structure of the status information table, each ONU corresponds to a table item, the system is indexed by ONUID, and the table item contains ONU status information (ONUStatus). In a preferred embodiment of the present invention, 2 bits are used to represent the ONU state information, which are respectively invalid (Invalid Entry), registered (Registered ONU), and registration (RegisteringONU), wherein invalid means that the ONUID is not assigned to any ONU, registered means that the ONU has completed the registration process and can forward business data normally, and registered means that the ONU is in the process of registration, and the specific current interaction information of the ONU in registration can be reported to the information table through the MPCP port of the ONU ( RIT) entry and authorization information table (GIT) entry.
在完成业务发送授权操作以后,OLT将在虚拟帧周期中生成授权消息并在一定的时刻发送授权消息至相应ONU。授权消息生成的原则是:为了对每个ONU的端口业务生成尽量少的授权消息,同时也是为了在上行数据流中少插入ONU间保护带及同步时间段,除了EF外其他端口业务的授权发送窗口是前后紧邻的,所以除EF外的其他端口的授权数据发送起始时间是在授权消息生成阶段确定并写入授权消息中的。After completing the service sending authorization operation, the OLT will generate an authorization message in the virtual frame period and send the authorization message to the corresponding ONU at a certain time. The principle of authorization message generation is: in order to generate as few authorization messages as possible for the port services of each ONU, and also to insert less guard bands and synchronization time periods between ONUs in the upstream data stream, the authorization transmission of other port services except EF The windows are adjacent to each other, so the start time of sending authorization data on ports other than EF is determined in the authorization message generation stage and written into the authorization message.
图8示出了根据本发明的一个实施例的授权消息生成方法的流程。Fig. 8 shows the flow of a method for generating an authorization message according to an embodiment of the present invention.
如图所示,在步骤801中,逐个读取ONU状态信息表表项。系统以ONU为单位进行授权消息生成,使得授权消息在类型为″GATE″的下行MPCP消息中承载,并且可以处理同一ONU的业务端口的统一授权。As shown in the figure, in
接着进入步骤802,判断当前ONU是否无效,如果是,进入步骤801,否则进入步骤803。如果当前ONUID对应的ONU状态信息为无效,则不进行授权,继续往下读取状态信息表。Then enter
在步骤803中,读取该ONU各端口对应的GIT表项。授权信息在授权过程中存储于授权信息表中,读取各端口对应的表项可以获取该端口授权信息。此后进入步骤804。In
在步骤804中,根据授权信息生成下行MPCP消息。系统将授权消息通过下行MPCP消息承载,首先根据ONU所处状态及授权的MPCP消息类型确定下行MPCP消息类型,然后根据各vMAC端口授权情况和由业务数据发送授权阶段继承来的已授权预定数据发送时间戳,来确定各vMAC端口的授权数据发送起始时间,并把授权相关信息写入生成的下行MPCP消息中。In step 804, a downlink MPCP message is generated according to the authorization information. The system carries the authorization message through the downlink MPCP message, first determines the downlink MPCP message type according to the state of the ONU and the authorized MPCP message type, and then according to the authorization status of each vMAC port and the authorized scheduled data transmission inherited from the service data transmission authorization stage Timestamp, to determine the start time of sending the authorization data of each vMAC port, and write the authorization related information into the generated downlink MPCP message.
接着进入步骤805,清除该GIT表项授权标志,以避免授权信息重复生成。Then enter
接着进入步骤806,判断是否已读完所有状态信息表表项,如果是,则表明已完成所有ONU授权消息的生成,结束本虚拟帧周期的授权消息生成过程,否则返回步骤81继续读取状态信息表。Then enter
最后,本发明给出了处理离线ONU或者故障ONU的方法,即ONU信息老化过程。系统设置ONU激活超时计数表,给每个ONU的不响应时间进行计数,如果计数值超过规定的离线阈值,则判定该ONU已无效,释放无效ONU的资源。Finally, the present invention provides a method for dealing with offline ONUs or faulty ONUs, that is, the ONU information aging process. The system sets the ONU activation timeout count table to count the non-response time of each ONU. If the count value exceeds the specified offline threshold, it will determine that the ONU is invalid and release the resources of the invalid ONU.
图9示出了ONU激活超时计数表的数据结构,每个ONU对应一个表项,系统由ONUID索引,表项包含上报标志(Reported)、激活超时计数器(Active Timeout Count,简称″ATC″)。Figure 9 shows the data structure of the ONU activation timeout count table, each ONU corresponds to an entry, the system is indexed by the ONUID, and the entry includes a report flag (Reported), an activation timeout counter (Active Timeout Count, referred to as "ATC").
图10示出了根据本发明的一个实施例的OUN信息老化方法流程,Fig. 10 shows the flow of the OUN information aging method according to one embodiment of the present invention,
如图所示,在步骤101中,逐个读取ONU状态信息表表项。系统根据ONUID索引。As shown in the figure, in
接着进入步骤102,判断当前ONU是否有效,如果是,则进入步骤103,否则,返回步骤101,对无效ONU不予处理,继续往下读取。Then enter
在步骤103中,读取该ONU对应的激活超时计数表表项,用于判断该ONU是否离线,此后进入步骤104。In
在步骤104中,根据是否上报MPCP消息,对激活超时计数器进行清零或计数操作,并清除上报标志。系统根据该ONU在本虚拟帧周期内是否上报MPCP消息对激活超时计数器操作,如果是,则清零,否则计数。In
接着进入步骤105,判断激活超时计数器是否超过离线阈值,如果是,表明该ONU已离线,进入步骤106;否则,表明该ONU在线,进入步骤107。Then enter
在步骤106中,置该ONU对应的ONU状态信息表表项为无效状态,并释放该ONU的相关资源,此后进入步骤107。对于离线ONU,系统在状态信息表设置无效,标志该ONU不存在。该ONU的相关资源包含:上行业务激活Bitmap寄存器IMPAB、IMFAB、IEFAB、IAFAB、IDFAB的相应位,上行业务激活Bitmap表IEFAT、IAFAT、IDFAT的相应表项,带宽信息表的相应表项,以及原先分配给该ONU的ONUID。In
在步骤107中,判断是否已读完所有状态信息表表项,如果是,则结束本虚拟帧周期的ONU信息老化过程,否则返回步骤101继续读取状态信息表。In
本发明适用于由OLT控制ONU接入的主从系统,OLT控制ONU的上行所有业务数据的转发接入包括MPCP或其他MAC消息,下行则为广播模式,数据在ONU处进行过滤接收,下行的发送调度也是基于优先级的,以EF、MPCP、CPU/OAM、AF、DF的优先级次序进行下行调度转发。The present invention is applicable to a master-slave system in which the OLT controls ONU access. The OLT controls the forwarding and access of all upstream business data of the ONU, including MPCP or other MAC messages, and the downstream is broadcast mode. The data is filtered and received at the ONU, and the downstream The transmission scheduling is also based on priority, and the downlink scheduling and forwarding is performed in the priority order of EF, MPCP, CPU/OAM, AF, and DF.
虽然通过参照本发明的某些优选实施例,已经对本发明进行了图示和描述,但本领域的普通技术人员应该明白,可以在形式上和细节上对其作各种各样的改变,而不偏离所附权利要求书所限定的本发明的精神和范围。Although the present invention has been illustrated and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein, and without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2007101062772A CN101087238B (en) | 2003-10-21 | 2003-10-21 | Device and method for dynamic bandwidth allocation in passive optical network |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2007101062772A CN101087238B (en) | 2003-10-21 | 2003-10-21 | Device and method for dynamic bandwidth allocation in passive optical network |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB2003101011838A Division CN1326340C (en) | 2003-10-21 | 2003-10-21 | Device and method for dynamic bandwidth allocation in passive optical network |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN101087238A CN101087238A (en) | 2007-12-12 |
| CN101087238B true CN101087238B (en) | 2010-08-04 |
Family
ID=38938011
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2007101062772A Expired - Lifetime CN101087238B (en) | 2003-10-21 | 2003-10-21 | Device and method for dynamic bandwidth allocation in passive optical network |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN101087238B (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8798080B2 (en) | 2011-05-14 | 2014-08-05 | International Business Machines Corporation | Distributed fabric protocol (DFP) switching network architecture |
| US8797843B2 (en) | 2011-09-12 | 2014-08-05 | International Business Machines Corporation | High availability distributed fabric protocol (DFP) switching network architecture |
| US8824485B2 (en) | 2011-05-13 | 2014-09-02 | International Business Machines Corporation | Efficient software-based private VLAN solution for distributed virtual switches |
| US8856801B2 (en) | 2011-05-14 | 2014-10-07 | International Business Machines Corporation | Techniques for executing normally interruptible threads in a non-preemptive manner |
| US8942094B2 (en) | 2011-10-06 | 2015-01-27 | International Business Machines Corporation | Credit-based network congestion management |
| US8948003B2 (en) | 2011-06-17 | 2015-02-03 | International Business Machines Corporation | Fault tolerant communication in a TRILL network |
| US9059922B2 (en) | 2011-10-06 | 2015-06-16 | International Business Machines Corporation | Network traffic distribution |
Families Citing this family (32)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101179503B (en) * | 2007-12-14 | 2011-07-20 | 华为技术有限公司 | QoS implementing method and apparatus in wireless access network |
| CN100579050C (en) * | 2008-02-18 | 2010-01-06 | 中兴通讯股份有限公司 | Method and system for fair distribution of node bandwidth on elastic packet ring |
| WO2010109542A1 (en) * | 2009-03-27 | 2010-09-30 | 三菱電機株式会社 | Station side device and optical communication system |
| CN101931834A (en) * | 2010-09-01 | 2010-12-29 | 南京邮电大学 | An EPON Channel Transmission Method for Eliminating Idle Time |
| CN102014052B (en) * | 2010-11-05 | 2013-12-11 | 中国科学院声学研究所 | Virtual dynamic priority packet dispatching method |
| CN102014319B (en) * | 2010-12-02 | 2014-04-16 | 金林鑫 | Uplink bandwidth dynamic allocation method applied to EPON system |
| CN102546374A (en) | 2010-12-27 | 2012-07-04 | 中兴通讯股份有限公司 | Method and system for automatically discovering ODU (Optical Digital Unit) flex bandwidth lossless regulation capability |
| US9276953B2 (en) | 2011-05-13 | 2016-03-01 | International Business Machines Corporation | Method and apparatus to detect and block unauthorized MAC address by virtual machine aware network switches |
| US20120287785A1 (en) | 2011-05-14 | 2012-11-15 | International Business Machines Corporation | Data traffic handling in a distributed fabric protocol (dfp) switching network architecture |
| US8588224B2 (en) * | 2011-05-14 | 2013-11-19 | International Business Machines Corporation | Priority based flow control in a distributed fabric protocol (DFP) switching network architecture |
| US20130064066A1 (en) | 2011-09-12 | 2013-03-14 | International Business Machines Corporation | Updating a switch software image in a distributed fabric protocol (dfp) switching network |
| CN103309827B (en) * | 2012-03-06 | 2016-01-27 | 展讯通信(上海)有限公司 | The device parameter reading/writing method of terminal and device |
| CN103581060B (en) * | 2012-08-03 | 2016-08-03 | 华为技术有限公司 | A kind of sub-carrier wave distribution method, equipment and system |
| CN104756584A (en) | 2012-10-29 | 2015-07-01 | 高通股份有限公司 | Device registration and sounding in time-division multiple access network |
| US20150270986A1 (en) * | 2012-10-29 | 2015-09-24 | Na Wang | Credit-based dynamic bandwidth allocation for time-division multiple access communications |
| CN103260196B (en) * | 2013-04-18 | 2016-03-30 | 上海华为技术有限公司 | A kind of control method of transmission bandwidth, Apparatus and system |
| JP5908167B2 (en) * | 2013-05-02 | 2016-04-26 | 三菱電機株式会社 | Master station device, slave station device, optical communication system, control device, and bandwidth allocation method |
| WO2014201605A1 (en) * | 2013-06-17 | 2014-12-24 | 华为技术有限公司 | Bandwidth allocation method, device, local end, terminal and system |
| CN104426684B (en) * | 2013-08-20 | 2018-10-12 | 上海斐讯数据通信技术有限公司 | PON system and its state updating method |
| EP3076622A4 (en) * | 2013-12-12 | 2016-11-09 | Huawei Tech Co Ltd | Method and device for allocating dynamic bandwidth in passive optical network |
| CN104284259A (en) * | 2014-11-11 | 2015-01-14 | 武汉长光科技有限公司 | Method for automatically removing invalid ONU (optical network unit) by OLT (optical line terminal) of EPON (Ethernet passive optical network) system and OLT |
| CN105704751B (en) * | 2014-11-26 | 2020-07-31 | 南京中兴新软件有限责任公司 | Method, device and system for reporting network sharing data |
| CN107113807B (en) * | 2015-07-27 | 2020-09-11 | 华为技术有限公司 | A method, base station and terminal for transmitting communication resources |
| CN108809851B (en) * | 2017-04-28 | 2021-01-29 | 华为技术有限公司 | Service bandwidth allocation method and device based on GPON system |
| EP3641236B1 (en) * | 2017-07-19 | 2022-06-15 | Nippon Telegraph and Telephone Corporation | Virtual subscriber line terminal station device and control method for virtual subscriber line terminal station device |
| CN107800574B (en) * | 2017-11-03 | 2021-05-28 | 郑州云海信息技术有限公司 | Storage QOS adjustment method, system, device and computer readable memory |
| CN112087678B (en) * | 2019-06-14 | 2023-08-18 | 中兴通讯股份有限公司 | Bandwidth allocation and bandwidth checking method and device |
| CN111934916B (en) * | 2020-07-23 | 2023-05-09 | 中国科学院空间应用工程与技术中心 | A network scheduling method and system based on mixed service transmission |
| CN113316035B (en) * | 2020-11-05 | 2022-09-30 | 北京邮电大学 | Dynamic wavelength bandwidth allocation device |
| CN113207048B (en) * | 2021-03-15 | 2022-08-05 | 广东工业大学 | Neural network prediction-based uplink bandwidth allocation method in 50G-PON (Passive optical network) |
| CN118282979A (en) * | 2022-12-29 | 2024-07-02 | 中兴通讯股份有限公司 | Bandwidth allocation and feature determination method, optical line terminal, calculation server and medium |
| CN119697035B (en) * | 2024-12-16 | 2025-09-19 | 烽火通信科技股份有限公司 | Gateway bandwidth self-adaption method, main gateway, sub-gateway and system |
-
2003
- 2003-10-21 CN CN2007101062772A patent/CN101087238B/en not_active Expired - Lifetime
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8824485B2 (en) | 2011-05-13 | 2014-09-02 | International Business Machines Corporation | Efficient software-based private VLAN solution for distributed virtual switches |
| US8798080B2 (en) | 2011-05-14 | 2014-08-05 | International Business Machines Corporation | Distributed fabric protocol (DFP) switching network architecture |
| US8837499B2 (en) | 2011-05-14 | 2014-09-16 | International Business Machines Corporation | Distributed fabric protocol (DFP) switching network architecture |
| US8856801B2 (en) | 2011-05-14 | 2014-10-07 | International Business Machines Corporation | Techniques for executing normally interruptible threads in a non-preemptive manner |
| US8948003B2 (en) | 2011-06-17 | 2015-02-03 | International Business Machines Corporation | Fault tolerant communication in a TRILL network |
| US8948004B2 (en) | 2011-06-17 | 2015-02-03 | International Business Machines Corporation | Fault tolerant communication in a trill network |
| US8797843B2 (en) | 2011-09-12 | 2014-08-05 | International Business Machines Corporation | High availability distributed fabric protocol (DFP) switching network architecture |
| US8942094B2 (en) | 2011-10-06 | 2015-01-27 | International Business Machines Corporation | Credit-based network congestion management |
| US9059922B2 (en) | 2011-10-06 | 2015-06-16 | International Business Machines Corporation | Network traffic distribution |
| US9065745B2 (en) | 2011-10-06 | 2015-06-23 | International Business Machines Corporation | Network traffic distribution |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101087238A (en) | 2007-12-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101087238B (en) | Device and method for dynamic bandwidth allocation in passive optical network | |
| CN1326340C (en) | Device and method for dynamic bandwidth allocation in passive optical network | |
| US8634431B1 (en) | Quality of service and flow control architecture for a passive optical network | |
| Leligou et al. | Efficient medium arbitration of FSAN‐compliant GPONs | |
| CN101060523B (en) | Optical network terminal, its port speed limit attribute configuration method and message processing method | |
| US7257326B2 (en) | Method for allocating bandwidth for voice service in a Gigabit Ethernet passive optical network | |
| CN101771902B (en) | Method, system and device for allocating passive optical network uplink bandwidth | |
| Choi | Cyclic polling-based dynamic bandwidth allocation for differentiated classes of service in Ethernet passive optical networks | |
| US7437076B2 (en) | Data transmission method in gigabit ethernet passive optical network | |
| CN108370270B (en) | Dynamic bandwidth allocation method and device and passive optical network system | |
| US8040918B2 (en) | Dynamic bandwidth allocation in a passive optical access network | |
| Han et al. | Efficient dynamic bandwidth allocation for FSAN-compliant GPON | |
| CN104053076A (en) | A method and system for improving bandwidth allocation efficiency | |
| KR100526551B1 (en) | Method and apparatus for controlling down stream traffic in ethernet passive optical network | |
| EP2111055A1 (en) | Extended queue polling mechanism for ITU G.984 GPON system | |
| CN101330450A (en) | Bandwidth allocation method, system and equipment in optical network | |
| KR100566294B1 (en) | Dynamic Bandwidth Allocation Method for Gigabit Ethernet Passive Optical Subscriber Network | |
| KR100584420B1 (en) | Dynamic Bandwidth Allocation Method for Gigabit Ethernet Passive Optical Subscriber Network | |
| CN100581294C (en) | A method for multi-service dynamic bandwidth request in Ethernet passive optical network | |
| PT1714972E (en) | Method for producing a peptide with a pl above 8 or below 5 | |
| CN100546227C (en) | Method for Dynamic Bandwidth Allocation of Multiple Services in Ethernet Passive Optical Network | |
| CN100574197C (en) | Distribution method of dynamic bandwidth, system and the device of quick response | |
| JP2004289780A (en) | Optical line terminal, optical line terminal, and band allocation method used by them | |
| CN101453672A (en) | Optical network terminal, port speed limiting attribute configuration method and packet process method | |
| CN102111688A (en) | Uplink bandwidth distribution method for passive optical network and optical line terminal |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CX01 | Expiry of patent term | ||
| CX01 | Expiry of patent term |
Granted publication date: 20100804 |