[go: up one dir, main page]

CN101668234B - Data packet sending method and module - Google Patents

Data packet sending method and module Download PDF

Info

Publication number
CN101668234B
CN101668234B CN2009101805223A CN200910180522A CN101668234B CN 101668234 B CN101668234 B CN 101668234B CN 2009101805223 A CN2009101805223 A CN 2009101805223A CN 200910180522 A CN200910180522 A CN 200910180522A CN 101668234 B CN101668234 B CN 101668234B
Authority
CN
China
Prior art keywords
data packet
remaining bandwidth
data
data packets
preset number
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
Application number
CN2009101805223A
Other languages
Chinese (zh)
Other versions
CN101668234A (en
Inventor
仇英辉
张家柱
赵丙镇
王一蓉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
State Grid Information and Telecommunication Co Ltd
North China Electric Power University
Original Assignee
State Grid Information and Telecommunication Co Ltd
North China Electric Power University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by State Grid Information and Telecommunication Co Ltd, North China Electric Power University filed Critical State Grid Information and Telecommunication Co Ltd
Priority to CN2009101805223A priority Critical patent/CN101668234B/en
Publication of CN101668234A publication Critical patent/CN101668234A/en
Application granted granted Critical
Publication of CN101668234B publication Critical patent/CN101668234B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

本发明公开一种数据包发送方法及模块,涉及接入网技术领域。所述方法:当授权时隙的剩余带宽小于当前要发送的数据包时,从业务存储器队列的头部开始查询是否有大小适合剩余带宽的数据包,若有则利用剩余带宽发送该适合的数据包,并标记排在其前面的数据包;当执行利用剩余带宽发送适合的数据包达到预设次数时,统计业务存储器队列中是否有数据包被标记过预设次数,若有则将被标记过预设次数的数据包组合,在下一个授权时隙到来时,优先发送该组合后的数据包。所述模块包括适合数据包发送子模块和标记数据包发送子模块。在光网络单元向光线路终端按照时分多址接入方式进行数据发送过程中,采用包调度的数据发送机制,实现带宽的最优利用。

Figure 200910180522

The invention discloses a data packet sending method and module, and relates to the technical field of access networks. The method: when the remaining bandwidth of the authorized time slot is less than the current data packet to be sent, start to inquire whether there is a data packet whose size is suitable for the remaining bandwidth from the head of the service memory queue, and if so, use the remaining bandwidth to send the suitable data Packet, and mark the data packet in front of it; when the execution uses the remaining bandwidth to send suitable data packets for the preset number of times, count whether there is a data packet in the service memory queue that has been marked for the preset number of times, and if so, it will be marked After the preset number of data packets are combined, when the next authorized time slot arrives, the combined data packets will be sent first. The module includes a suitable data packet sending sub-module and a marked data packet sending sub-module. In the process of transmitting data from the optical network unit to the optical line terminal according to the time division multiple access mode, the data transmission mechanism of packet scheduling is adopted to realize the optimal utilization of bandwidth.

Figure 200910180522

Description

一种数据包发送方法及模块A data packet sending method and module

技术领域 technical field

本发明涉及接入网技术领域,特别涉及一种数据包发送方法及模块。The invention relates to the field of access network technology, in particular to a data packet sending method and module.

背景技术 Background technique

随着互联网的普及和互联网技术的迅速发展,网络用户的数量和业务量都有了飞速的增长。为满足需要,主干网已经达到千兆甚至万兆,同时,用户侧的本地局域网也达上百兆,因此,光纤接入技术逐渐成为主流。其中,以太无源光网络(EPON)集合了以太技术和光纤网络的低价格、高带宽、技术成熟、兼容性好、维护成本低等优势,成为解决接入网“最后一公里”的最佳方案。With the popularization of the Internet and the rapid development of Internet technology, the number of network users and business volume have increased rapidly. To meet the needs, the backbone network has reached Gigabit or even 10 Gigabit. At the same time, the local area network on the user side has also reached hundreds of megabits. Therefore, optical fiber access technology has gradually become the mainstream. Among them, Ethernet Passive Optical Network (EPON) combines the advantages of low price, high bandwidth, mature technology, good compatibility, and low maintenance cost of Ethernet technology and optical fiber network, and has become the best solution to the "last mile" of the access network. plan.

EPON主要分为三个部分,即OLT(OPtical Line Termination,光线路终端),ODN(Optical Distribution Network,光配线网络)和ONU(Optical NetworkUnit,光网络单元)。EPON is mainly divided into three parts, namely OLT (OPtical Line Termination, optical line terminal), ODN (Optical Distribution Network, optical distribution network) and ONU (Optical Network Unit, optical network unit).

将各ONU端的业务划分为三个等级:EF业务、AF业务和BE业务。用户业务到达ONU端后,会按照业务类别以队列的方式分别存储到EF业务存储器、AF业务存储器和BE业务存储器中,EPON系统一般采用固定的轮询周期,在一个轮询周期内,会按顺序读取上述三个存储器中的内容,其中,每个存储器均按照先入先出的原则存储和释放数据。The business of each ONU end is divided into three levels: EF business, AF business and BE business. After the user service arrives at the ONU end, it will be stored in the EF service storage, AF service storage and BE service storage in the form of a queue according to the service category. The EPON system generally adopts a fixed polling cycle. In a polling cycle, it will press The contents in the above three memories are sequentially read, wherein each memory stores and releases data according to the first-in-first-out principle.

ONU通过REPORT帧向OLT发出带宽申请后,还会陆续有其它的用户数据传递到该ONU上来,占有对应的业务存储器,在当前ONU得到授权后,则在该ONU得授权时隙内发送已经申请带宽的用户数据。After the ONU sends a bandwidth application to the OLT through the REPORT frame, other user data will be transmitted to the ONU one after another, occupying the corresponding service memory. After the current ONU is authorized, it will send the application in the authorized time slot of the ONU. bandwidth for user data.

OLT与多个ONU相连,也就是说EPON的上行链路(从ONU到OLT)是多点到点的结构,多个ONU共用一个信道,OLT采用时分多址接入方式控制各ONU的数据发送。OLT is connected to multiple ONUs, that is to say, the uplink of EPON (from ONU to OLT) is a multipoint-to-point structure, multiple ONUs share a channel, and OLT uses time division multiple access to control the data transmission of each ONU .

在实施本发明过程中,发明人发现现有技术中至少存在如下问题:OLT采用时分多址接入方式控制各ONU的数据发送时,若在某个授权时隙的剩余带宽不能传送一个完整以太网数据帧的话,则该帧必须等到下一个带宽授权时隙到来时才能发送,导致带宽利用率低,并且时延较大的问题。In the process of implementing the present invention, the inventor has found that at least the following problems exist in the prior art: when the OLT adopts the time division multiple access method to control the data transmission of each ONU, if the remaining bandwidth of a certain authorized time slot cannot transmit a complete Ethernet If the network data frame is used, the frame cannot be sent until the next bandwidth authorization time slot arrives, resulting in low bandwidth utilization and large delay.

发明内容 Contents of the invention

本发明提供一种数据包发送方法及模块,以解决在某个授权时隙的剩余带宽不能传送一个完整以太帧时,该帧须等到下一个带宽授权时隙到来时才能发送,而导致带宽利用率低,且时延较大的问题。The present invention provides a data packet sending method and module to solve the problem that when the remaining bandwidth of a certain authorized time slot cannot transmit a complete Ethernet frame, the frame cannot be sent until the next bandwidth authorized time slot arrives, resulting in bandwidth utilization The problem of low rate and large delay.

本发明实施例提供了一种数据包发送方法,用于光网络单元向光线路终端按照时分多址接入方式进行数据发送,所述方法包括:An embodiment of the present invention provides a data packet sending method, which is used for sending data from an optical network unit to an optical line terminal in a time division multiple access manner, and the method includes:

当授权时隙的剩余带宽小于当前要发送的数据包时,光网络单元从业务存储器队列的头部开始查询是否有大小适合所述剩余带宽的数据包,若有适合的数据包,则利用所述剩余带宽发送该适合的数据包,并标记排在其前面的数据包;When the remaining bandwidth of the authorized time slot is less than the data packet to be sent at present, the optical network unit starts to inquire whether there is a data packet whose size is suitable for the remaining bandwidth from the head of the service storage queue, and if there is a suitable data packet, then use all Send the suitable data packet using the above remaining bandwidth, and mark the data packet in front of it;

当执行所述利用剩余带宽发送适合的数据包达到预设次数时,统计所述业务存储器队列中是否有数据包被标记过所述预设次数,若有,则将被标记过所述预设次数的数据包组合,在下一个授权时隙到来时,优先发送该组合后的数据包。When the execution of sending suitable data packets using the remaining bandwidth reaches the preset number of times, count whether there is a data packet in the service memory queue that has been marked for the preset number of times, and if so, it will be marked for the preset number of times Number of data packet combinations, when the next authorized time slot arrives, the combined data packet will be sent first.

所述大小适合所述剩余带宽的数据包具体为:The data packets whose size is suitable for the remaining bandwidth are specifically:

大小等于或小于所述剩余带宽的一个数据包;或One packet of size equal to or less than the remaining bandwidth; or

大小之和等于或小于所述剩余带宽的多个数据包。A number of packets whose sum size is equal to or less than the remaining bandwidth.

当大小适合所述剩余带宽的数据包为大小之和等于或小于所述剩余带宽的多个数据包时,所述利用剩余带宽发送适合的数据包,并标记排在其前面的数据包具体为:When the size of the data packets suitable for the remaining bandwidth is a plurality of data packets whose sum is equal to or smaller than the remaining bandwidth, the sending of suitable data packets using the remaining bandwidth, and marking the preceding data packets as :

将该多个数据包进行组合,利用所述剩余带宽发送组合后的多个数据包,并对排在该多个数据包前面的数据包均进行标记。Combining the multiple data packets, using the remaining bandwidth to send the combined multiple data packets, and marking all the data packets that are arranged in front of the multiple data packets.

所述预设次数具体为两次。The preset number of times is specifically two times.

本发明实施例还提供了一种数据包发送模块,设置在所述光网络单元中,用于向光线路终端按照时分多址接入方式进行数据发送,包括:The embodiment of the present invention also provides a data packet sending module, which is set in the optical network unit and is used to send data to the optical line terminal according to the time division multiple access mode, including:

适合数据包发送子模块,用于当授权时隙的剩余带宽小于当前要发送的数据包时,从业务存储器队列的头部开始查询是否有大小适合所述剩余带宽的数据包,若有适合的数据包,则利用所述剩余带宽发送该适合的数据包,并标记排在其前面的数据包;Suitable for data packet sending sub-module, used for when the remaining bandwidth of the authorized time slot is less than the current data packet to be sent, start to inquire whether there is a data packet whose size is suitable for the remaining bandwidth from the head of the service storage queue, if there is a suitable data packet, then use the remaining bandwidth to send the suitable data packet, and mark the data packet in front of it;

标记数据包发送子模块,用于当所述适合数据包发送子模块执行所述利用剩余带宽发送适合的数据包达到预设次数时,统计所述业务存储器队列中是否有数据包被标记过所述预设次数,若有,则将被标记过所述预设次数的数据包组合,在下一个授权时隙到来时,优先发送该组合后的数据包。The marking data packet sending sub-module is used for counting whether any data packets in the service memory queue have been marked when the suitable data packet sending sub-module executes the sending of suitable data packets using the remaining bandwidth for a preset number of times The preset number of times, if any, combine the data packets marked with the preset number of times, and send the combined data packets first when the next authorized time slot arrives.

所述大小适合所述剩余带宽的数据包具体为:The data packets whose size is suitable for the remaining bandwidth are specifically:

大小等于或小于所述剩余带宽的一个数据包;或One packet of size equal to or less than the remaining bandwidth; or

大小之和等于或小于所述剩余带宽的多个数据包。A number of packets whose sum size is equal to or less than the remaining bandwidth.

当大小适合所述剩余带宽的数据包为大小之和等于或小于所述剩余带宽的多个数据包时,所述适合数据包发送子模块具体用于:When the size of the data packets suitable for the remaining bandwidth is a plurality of data packets whose sum is equal to or smaller than the remaining bandwidth, the suitable data packet sending submodule is specifically used for:

当授权时隙的剩余带宽小于当前要发送的数据包时,从业务存储器队列的头部开始查询是否有大小适合所述剩余带宽的数据包,若有多个数据包大小之和等于或小于所述剩余带宽,则将该多个数据包进行组合,利用所述剩余带宽发送组合后的多个数据包,并对排在该多个数据包前面的数据包均进行标记。When the remaining bandwidth of the authorized time slot is less than the data packet to be sent at present, start to inquire whether there is a data packet whose size is suitable for the remaining bandwidth from the head of the service memory queue, if the sum of the size of multiple data packets is equal to or less than the specified If the above remaining bandwidth is used, the multiple data packets are combined, the combined multiple data packets are sent using the remaining bandwidth, and all the data packets that are arranged in front of the multiple data packets are marked.

所述预设次数具体为两次。The preset number of times is specifically two times.

本发明提供的一种数据包发送方法及模块,有益效果是:在光网络单元向光线路终端按照时分多址接入方式进行数据发送过程中,采用包调度的数据发送机制,实现带宽的最优利用。具体的,利用所述剩余带宽发送查询到的适合的数据包,并标记排在其前面的数据包,大大减小了带宽时隙,提高了带宽利用率。并且,当上述利用剩余带宽发送合适数据包的操作达到预设次数时,将被标记过所述预设次数的数据包组合,在下一个授权时隙到来时,优先发送该组合后的数据包,可以兼顾到较大的数据包的延时问题,从而带宽的最优利用。A data packet sending method and module provided by the present invention have the beneficial effects that: in the process of sending data from the optical network unit to the optical line terminal according to the time division multiple access mode, the data sending mechanism of packet scheduling is adopted to realize the optimum bandwidth Excellent use. Specifically, using the remaining bandwidth to send the queried suitable data packets, and marking the data packets in front of it, greatly reducing bandwidth time slots and improving bandwidth utilization. And, when the above-mentioned operation of sending suitable data packets using the remaining bandwidth reaches the preset number of times, the data packets marked for the preset number of times are combined, and when the next authorized time slot arrives, the combined data packets are sent preferentially, The delay problem of larger data packets can be taken into account, so as to optimize the utilization of bandwidth.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本发明实施例提供的一种数据包发送方法流程图;FIG. 1 is a flowchart of a data packet sending method provided by an embodiment of the present invention;

图2为本发明实施例提供的一种数据包发送模块结构框图。Fig. 2 is a structural block diagram of a data packet sending module provided by an embodiment of the present invention.

具体实施方式 Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

实施例一Embodiment one

参见图1,为本发明实施例提供的一种数据包发送方法,用于光网络单元向光线路终端按照时分多址接入方式进行数据发送,所述方法包括如下步骤:Referring to Fig. 1, a method for sending a data packet provided by an embodiment of the present invention is used for sending data from an optical network unit to an optical line terminal according to a time division multiple access mode, and the method includes the following steps:

S101:当授权时隙的剩余带宽小于当前要发送的数据包时,光网络单元从业务存储器队列的头部开始查询是否有大小适合所述剩余带宽的数据包,若有适合的数据包,则利用所述剩余带宽发送该适合的数据包,并标记排在其前面的数据包。S101: When the remaining bandwidth of the authorized time slot is less than the current data packet to be sent, the optical network unit starts to inquire whether there is a data packet with a size suitable for the remaining bandwidth from the head of the service memory queue, and if there is a suitable data packet, then The suitable data packet is sent using the remaining bandwidth, and the preceding data packet is marked.

S102:当执行所述利用剩余带宽发送适合的数据包达到预设次数时,统计所述业务存储器队列中是否有数据包被标记过所述预设次数,若有,则将被标记过所述预设次数的数据包组合,在下一个授权时隙到来时,优先发送该组合后的数据包。S102: When the sending of suitable data packets using the remaining bandwidth reaches the preset number of times, count whether there is a data packet in the service memory queue that has been marked for the preset number of times, and if so, it will be marked for the preset number of times. The preset number of data packets are combined, and when the next authorized time slot arrives, the combined data packets are sent preferentially.

实际应用中,当授权时隙的剩余带宽足够发送当前要发送的数据包时,则仍然按照先入先出的原则处理。In practical applications, when the remaining bandwidth of the authorized time slot is sufficient to send the data packet to be sent currently, it is still processed according to the first-in-first-out principle.

优选的,所述预设次数具体为两次。实际应用中,并不限制预设次数仅为两次,可以根据应用场景的需要,依据经验值设定。Preferably, the preset number of times is specifically two times. In practical applications, the preset number of times is not limited to only two, and can be set according to the needs of application scenarios and based on experience values.

其中,所述大小适合所述剩余带宽的数据包具体为:Wherein, the data packet whose size is suitable for the remaining bandwidth is specifically:

大小等于或小于所述剩余带宽的一个数据包;或大小之和等于或小于所述剩余带宽的多个数据包。One data packet whose size is equal to or smaller than the remaining bandwidth; or a plurality of data packets whose sum is equal to or smaller than the remaining bandwidth.

当大小适合所述剩余带宽的数据包为大小之和等于或小于所述剩余带宽的多个数据包时,所述利用剩余带宽发送适合的数据包,并标记排在其前面的数据包具体为:When the size of the data packets suitable for the remaining bandwidth is a plurality of data packets whose sum is equal to or smaller than the remaining bandwidth, the sending of suitable data packets using the remaining bandwidth, and marking the preceding data packets as :

将该多个数据包进行组合,利用所述剩余带宽发送组合后的多个数据包,并对排在该多个数据包前面的数据包均进行标记。Combining the multiple data packets, using the remaining bandwidth to send the combined multiple data packets, and marking all the data packets that are arranged in front of the multiple data packets.

由于以太网数据包是不能分割发送的,若某授权时隙的剩余带宽小于当前要传送的数据包,即该剩余带宽不能传送一个完整的以太帧时,该帧必须等到下一个带宽授权时隙到来时才能发送,这样不但降低了带宽利用率同时也会造成时延的增加,为了解决该问题,本发明实施例采用包调度的传送机制,在包调度机制下采用匹配查找方法和效用优化组合方法来实现带宽的最优利用,同时消除时隙碎片。Since the Ethernet data packet cannot be divided and sent, if the remaining bandwidth of a certain authorized time slot is smaller than the current data packet to be transmitted, that is, when the remaining bandwidth cannot transmit a complete Ethernet frame, the frame must wait until the next bandwidth authorized time slot It can only be sent when it arrives, which not only reduces the bandwidth utilization rate but also causes an increase in delay. In order to solve this problem, the embodiment of the present invention adopts the transmission mechanism of packet scheduling, and adopts the matching search method and utility optimization combination under the packet scheduling mechanism method to achieve optimal utilization of bandwidth while eliminating slot fragmentation.

其中,匹配查找方法是指在业务存储器内,从队列的头部开始搜索适合剩余带宽容量的数据包将其发送出去,并对排在该数据包前面的数据做一个标记,当下次遇到带宽剩余时依然按照此方法寻找合适的数据包,同时做相同的标记。Among them, the matching search method refers to searching for a data packet suitable for the remaining bandwidth capacity from the head of the queue in the service memory and sending it out, and marking the data in front of the data packet. For the remaining time, still follow this method to find the appropriate data packet, and make the same mark at the same time.

由于在执行匹配查找方法的时间有可能导致某些较大的数据包多次延迟而不能被发送出去,这样就会造成数据包延时的迅速增大,为消除这种情况,本发明实施例在匹配查找方法基础上,结合采用效用优化组合方法来实现。效用优化组合方法具体是:在执行匹配查找方法两次以后对原来的队列进行统计,由于匹配查找方法给数据做了标记,可以预先设定:若某些数据被标记过两次,则将这些数据包优化组合在一起,在下一周期的授权时隙到来时,优先将这些组合的数据发送出去。Since some larger data packets may be delayed multiple times and cannot be sent out during the execution of the matching search method, this will cause a rapid increase in the delay of the data packet. In order to eliminate this situation, the embodiment of the present invention On the basis of the matching search method, combined with the utility optimization combination method to achieve. The utility optimization combination method is specifically: after executing the matching search method twice, the original queue is counted. Since the matching search method marks the data, it can be preset: if some data are marked twice, these The data packets are optimally combined, and when the authorized time slot of the next cycle arrives, these combined data are sent out preferentially.

由此可知:在执行两次及以上匹配查找方法后,执行一次效用优化组合方法,所以实际中采用这两种方法相结合,实现在充分的利用带宽授权时隙的同时,也保证了业务的公平性。It can be seen from this that after executing the matching search method twice or more, the utility optimization combination method is executed once. Therefore, the combination of these two methods is used in practice to realize the full utilization of the bandwidth authorization time slot and ensure the service quality. fairness.

可见,本发明实施例提供的数据包发送方法,在光网络单元向光线路终端按照时分多址接入方式进行数据发送过程中,采用包调度的数据发送机制,实现带宽的最优利用。具体的,利用所述剩余带宽发送查询到的适合的数据包,并标记排在其前面的数据包,大大减小了带宽时隙,提高了带宽利用率。并且,当上述利用剩余带宽发送合适数据包的操作达到预设次数时,将被标记过所述预设次数的数据包组合,在下一个授权时隙到来时,优先发送该组合后的数据包,可以兼顾到较大的数据包的延时问题,从而带宽的最优利用。It can be seen that the data packet sending method provided by the embodiment of the present invention adopts the data sending mechanism of packet scheduling during the data sending process from the optical network unit to the optical line terminal according to the time division multiple access mode, so as to realize the optimal utilization of bandwidth. Specifically, using the remaining bandwidth to send the queried suitable data packets, and marking the data packets in front of it, greatly reducing bandwidth time slots and improving bandwidth utilization. And, when the above-mentioned operation of sending suitable data packets using the remaining bandwidth reaches the preset number of times, the data packets marked for the preset number of times are combined, and when the next authorized time slot arrives, the combined data packets are sent preferentially, The delay problem of larger data packets can be taken into account, so as to optimize the utilization of bandwidth.

实施例二Embodiment two

参见图2,为本发明实施例提供的一种数据包发送模块,设置在所述光网络单元中,用于向光线路终端按照时分多址接入方式进行数据发送,数据包发送模块包括如下子模块:Referring to FIG. 2 , a data packet sending module provided by an embodiment of the present invention is set in the optical network unit and is used to send data to an optical line terminal in a time division multiple access mode. The data packet sending module includes the following submodule:

适合数据包发送子模块201,用于当授权时隙的剩余带宽小于当前要发送的数据包时,从业务存储器队列的头部开始查询是否有大小适合所述剩余带宽的数据包,若有适合的数据包,则利用所述剩余带宽发送该适合的数据包,并标记排在其前面的数据包;Suitable data packet sending sub-module 201, used for when the remaining bandwidth of the authorized time slot is less than the current data packet to be sent, starting to inquire whether there is a data packet whose size is suitable for the remaining bandwidth from the head of the service memory queue, if any then use the remaining bandwidth to send the suitable data packet, and mark the data packet in front of it;

标记数据包发送子模块202,用于当所述适合数据包发送子模块201执行所述利用剩余带宽发送适合的数据包达到预设次数时,统计所述业务存储器队列中是否有数据包被标记过所述预设次数,若有,则将被标记过所述预设次数的数据包组合,在下一个授权时隙到来时,优先发送该组合后的数据包。The marking data packet sending sub-module 202 is used for counting whether any data packets in the service memory queue are marked when the suitable data packet sending sub-module 201 executes the sending of suitable data packets using the remaining bandwidth for a preset number of times The preset number of times has passed, and if there is, the data packets that have been marked for the preset number of times are combined, and when the next authorized time slot arrives, the combined data packets are sent preferentially.

优选的,所述预设次数具体为两次。实际应用中,并不限制预设次数仅为两次,可以根据应用场景的需要,依据经验值设定。Preferably, the preset number of times is specifically two times. In practical applications, the preset number of times is not limited to only two, and can be set according to the needs of application scenarios and based on experience values.

其中,所述大小适合所述剩余带宽的数据包具体为:Wherein, the data packet whose size is suitable for the remaining bandwidth is specifically:

大小等于或小于所述剩余带宽的一个数据包;或大小之和等于或小于所述剩余带宽的多个数据包。One data packet whose size is equal to or smaller than the remaining bandwidth; or a plurality of data packets whose sum is equal to or smaller than the remaining bandwidth.

当大小适合所述剩余带宽的数据包为大小之和等于或小于所述剩余带宽的多个数据包时,所述适合数据包发送子模块201具体用于:When the data packets whose size is suitable for the remaining bandwidth are multiple data packets whose sum is equal to or smaller than the remaining bandwidth, the suitable data packet sending sub-module 201 is specifically used for:

当授权时隙的剩余带宽小于当前要发送的数据包时,从业务存储器队列的头部开始查询是否有大小适合所述剩余带宽的数据包,若有多个数据包大小之和等于或小于所述剩余带宽,则将该多个数据包进行组合,利用所述剩余带宽发送组合后的多个数据包,并对排在该多个数据包前面的数据包均进行标记。When the remaining bandwidth of the authorized time slot is less than the data packet to be sent at present, start to inquire whether there is a data packet whose size is suitable for the remaining bandwidth from the head of the service memory queue, if the sum of the size of multiple data packets is equal to or less than the specified If the above remaining bandwidth is used, the multiple data packets are combined, the combined multiple data packets are sent using the remaining bandwidth, and all the data packets that are arranged in front of the multiple data packets are marked.

上述图2所示的一种数据包发送模块,可以执行前述图1及其实施例一所示的方法,因而其工作流程在此不赘述。A data packet sending module shown in FIG. 2 above can execute the method shown in FIG. 1 and its first embodiment above, so its working process will not be repeated here.

由此可知:在执行两次及以上匹配查找方法后,执行一次效用优化组合方法,所以实际中采用这两种方法相结合,实现在充分的利用带宽授权时隙的同时,也保证了业务的公平性。It can be seen from this that after executing the matching search method twice or more, the utility optimization combination method is executed once. Therefore, the combination of these two methods is used in practice to realize the full utilization of the bandwidth authorization time slot and ensure the service quality. fairness.

可见,本发明实施例提供的数据包发送模块,在光网络单元向光线路终端按照时分多址接入方式进行数据发送过程中,采用包调度的数据发送机制,实现带宽的最优利用。具体的,利用所述剩余带宽发送查询到的适合的数据包,并标记排在其前面的数据包,大大减小了带宽时隙,提高了带宽利用率。并且,当上述利用剩余带宽发送合适数据包的操作达到预设次数时,将被标记过所述预设次数的数据包组合,在下一个授权时隙到来时,优先发送该组合后的数据包,可以兼顾到较大的数据包的延时问题,从而带宽的最优利用。It can be seen that the data packet sending module provided by the embodiment of the present invention adopts the data sending mechanism of packet scheduling during the process of sending data from the optical network unit to the optical line terminal according to the time division multiple access mode, so as to realize the optimal utilization of bandwidth. Specifically, using the remaining bandwidth to send the queried suitable data packets, and marking the data packets in front of it, greatly reducing bandwidth time slots and improving bandwidth utilization. And, when the above-mentioned operation of sending suitable data packets using the remaining bandwidth reaches the preset number of times, the data packets marked for the preset number of times are combined, and when the next authorized time slot arrives, the combined data packets are sent preferentially, The delay problem of larger data packets can be taken into account, so as to optimize the utilization of bandwidth.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个......”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, the terms "comprising", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

本领域普通技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,包括若干指令用以执行本发明各个实施例所述的方法。这里所述的存储介质,如:ROM/RAM、磁碟、光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When executed, several instructions are included to execute the methods described in various embodiments of the present invention. The storage medium mentioned here, such as: ROM/RAM, magnetic disk, optical disk, etc.

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.

Claims (8)

1.一种数据包发送方法,其特征在于,用于光网络单元向光线路终端按照时分多址接入方式进行数据发送,所述方法包括:1. A data packet sending method, characterized in that, for an optical network unit to send data to an optical line terminal according to a time division multiple access mode, the method comprises: 当授权时隙的剩余带宽小于当前要发送的数据包时,光网络单元从业务存储器队列的头部开始查询是否有大小适合所述剩余带宽的数据包,若有适合的数据包,则利用所述剩余带宽发送该适合的数据包,并标记排在其前面的数据包;When the remaining bandwidth of the authorized time slot is less than the data packet to be sent at present, the optical network unit starts to inquire whether there is a data packet whose size is suitable for the remaining bandwidth from the head of the service storage queue, and if there is a suitable data packet, then use all Send the suitable data packet using the above remaining bandwidth, and mark the data packet in front of it; 当执行所述利用剩余带宽发送适合的数据包达到预设次数时,统计所述业务存储器队列中是否有数据包被标记过所述预设次数,若有,则将被标记过所述预设次数的数据包组合,在下一个授权时隙到来时,优先发送该组合后的数据包。When the execution of sending suitable data packets using the remaining bandwidth reaches the preset number of times, count whether there is a data packet in the service memory queue that has been marked for the preset number of times, and if so, it will be marked for the preset number of times Number of data packet combinations, when the next authorized time slot arrives, the combined data packet will be sent first. 2.根据权利要求1所述的数据包发送方法,其特征在于,所述大小适合所述剩余带宽的数据包具体为:2. The data packet sending method according to claim 1, wherein the data packet whose size is suitable for the remaining bandwidth is specifically: 大小等于或小于所述剩余带宽的一个数据包;或One packet of size equal to or less than the remaining bandwidth; or 大小之和等于或小于所述剩余带宽的多个数据包。A number of packets whose sum size is equal to or less than the remaining bandwidth. 3.根据权利要求2所述的数据包发送方法,其特征在于,当大小适合所述剩余带宽的数据包为大小之和等于或小于所述剩余带宽的多个数据包时,所述利用剩余带宽发送适合的数据包,并标记排在其前面的数据包具体为:3. The data packet sending method according to claim 2, characterized in that, when the data packet whose size is suitable for the remaining bandwidth is a plurality of data packets whose size sum is equal to or less than the remaining bandwidth, the utilization remaining The bandwidth sends the appropriate packet and marks the packet in front of it as follows: 将该多个数据包进行组合,利用所述剩余带宽发送组合后的多个数据包,并对排在该多个数据包前面的数据包均进行标记。Combining the multiple data packets, using the remaining bandwidth to send the combined multiple data packets, and marking all the data packets that are arranged in front of the multiple data packets. 4.根据权利要求1所述的数据包发送方法,其特征在于,所述预设次数具体为两次。4. The data packet sending method according to claim 1, characterized in that, the preset number of times is specifically twice. 5.一种数据包发送模块,其特征在于,设置在光网络单元中,用于向光线路终端按照时分多址接入方式进行数据发送,包括:5. A data packet sending module, characterized in that, it is arranged in the optical network unit, and is used to send data to the optical line terminal according to the time division multiple access mode, including: 适合数据包发送子模块,用于当授权时隙的剩余带宽小于当前要发送的数据包时,从业务存储器队列的头部开始查询是否有大小适合所述剩余带宽的数据包,若有适合的数据包,则利用所述剩余带宽发送该适合的数据包,并标记排在其前面的数据包;Suitable for data packet sending sub-module, used for when the remaining bandwidth of the authorized time slot is less than the current data packet to be sent, start to inquire whether there is a data packet whose size is suitable for the remaining bandwidth from the head of the service storage queue, if there is a suitable data packet, then use the remaining bandwidth to send the suitable data packet, and mark the data packet in front of it; 标记数据包发送子模块,用于当所述适合数据包发送子模块执行所述利用剩余带宽发送适合的数据包达到预设次数时,统计所述业务存储器队列中是否有数据包被标记过所述预设次数,若有,则将被标记过所述预设次数的数据包组合,在下一个授权时隙到来时,优先发送该组合后的数据包。The marking data packet sending sub-module is used for counting whether any data packets in the service memory queue have been marked when the suitable data packet sending sub-module executes the sending of suitable data packets using the remaining bandwidth for a preset number of times The preset number of times, if any, combine the data packets marked with the preset number of times, and send the combined data packets first when the next authorized time slot arrives. 6.根据权利要求5所述的数据包发送模块,其特征在于,所述大小适合所述剩余带宽的数据包具体为:6. The data packet sending module according to claim 5, wherein the data packet whose size is suitable for the remaining bandwidth is specifically: 大小等于或小于所述剩余带宽的一个数据包;或One packet of size equal to or less than the remaining bandwidth; or 大小之和等于或小于所述剩余带宽的多个数据包。A number of packets whose sum size is equal to or less than the remaining bandwidth. 7.根据权利要求6所述的数据包发送模块,其特征在于,当大小适合所述剩余带宽的数据包为大小之和等于或小于所述剩余带宽的多个数据包时,所述适合数据包发送子模块具体用于:7. The data packet sending module according to claim 6, characterized in that, when the data packet whose size is suitable for the remaining bandwidth is a plurality of data packets whose size sum is equal to or less than the remaining bandwidth, the suitable data The packet sending sub-module is specifically used for: 当授权时隙的剩余带宽小于当前要发送的数据包时,从业务存储器队列的头部开始查询是否有大小适合所述剩余带宽的数据包,若有多个数据包大小之和等于或小于所述剩余带宽,则将该多个数据包进行组合,利用所述剩余带宽发送组合后的多个数据包,并对排在该多个数据包前面的数据包均进行标记。When the remaining bandwidth of the authorized time slot is less than the data packet to be sent at present, start to inquire whether there is a data packet whose size is suitable for the remaining bandwidth from the head of the service memory queue, if the sum of the size of multiple data packets is equal to or less than the specified If the above remaining bandwidth is used, the multiple data packets are combined, the combined multiple data packets are sent using the remaining bandwidth, and all the data packets that are arranged in front of the multiple data packets are marked. 8.根据权利要求5所述的数据包发送模块,其特征在于,所述预设次数具体为两次。8. The data packet sending module according to claim 5, wherein the preset number of times is specifically two times.
CN2009101805223A 2009-10-19 2009-10-19 Data packet sending method and module Active CN101668234B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101805223A CN101668234B (en) 2009-10-19 2009-10-19 Data packet sending method and module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101805223A CN101668234B (en) 2009-10-19 2009-10-19 Data packet sending method and module

Publications (2)

Publication Number Publication Date
CN101668234A CN101668234A (en) 2010-03-10
CN101668234B true CN101668234B (en) 2012-07-04

Family

ID=41804625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101805223A Active CN101668234B (en) 2009-10-19 2009-10-19 Data packet sending method and module

Country Status (1)

Country Link
CN (1) CN101668234B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107562633A (en) * 2017-09-13 2018-01-09 上海市共进通信技术有限公司 Quick display data is passed by the crucial adjustment method for performing code path

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377638A (en) * 2010-08-10 2012-03-14 高通创锐讯通讯科技(上海)有限公司 Calculation method of report message in point-to-multi-point network
CN105307180B (en) * 2015-09-25 2018-09-14 宇龙计算机通信科技(深圳)有限公司 A kind of data transmission method and device based on LAA systems
CN107769977B (en) * 2017-10-31 2020-12-29 广东电网有限责任公司电力调度控制中心 Power communication network resource allocation method based on soft switch
CN116938833A (en) * 2023-07-05 2023-10-24 中国电信股份有限公司技术创新中心 Data processing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003034711A2 (en) * 2001-10-12 2003-04-24 Koninklijke Philips Electronics N.V. Contention resolution for catv with reduced waiting time variance
CN1507207A (en) * 2002-12-06 2004-06-23 北京格林威尔科技发展有限公司 Method for Bidirectional Bandwidth Control in Ethernet Passive Optical Network System
CN1614944A (en) * 2003-11-06 2005-05-11 北京邮电大学 Dynamic distribution control of upward band width in passive optical network
CN101141410A (en) * 2007-10-24 2008-03-12 中兴通讯股份有限公司 Downlink flow control information transferring method in kilomega passive optical network system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003034711A2 (en) * 2001-10-12 2003-04-24 Koninklijke Philips Electronics N.V. Contention resolution for catv with reduced waiting time variance
CN1507207A (en) * 2002-12-06 2004-06-23 北京格林威尔科技发展有限公司 Method for Bidirectional Bandwidth Control in Ethernet Passive Optical Network System
CN1614944A (en) * 2003-11-06 2005-05-11 北京邮电大学 Dynamic distribution control of upward band width in passive optical network
CN101141410A (en) * 2007-10-24 2008-03-12 中兴通讯股份有限公司 Downlink flow control information transferring method in kilomega passive optical network system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107562633A (en) * 2017-09-13 2018-01-09 上海市共进通信技术有限公司 Quick display data is passed by the crucial adjustment method for performing code path
CN107562633B (en) * 2017-09-13 2021-02-05 上海市共进通信技术有限公司 Debugging method for quickly displaying data to walk through critical execution code path

Also Published As

Publication number Publication date
CN101668234A (en) 2010-03-10

Similar Documents

Publication Publication Date Title
US9331812B2 (en) Round trip time aware dynamic bandwidth allocation for ethernet passive optical network over coaxial network
US9793993B2 (en) Method and apparatus of delivering upstream data in ethernet passive optical network over coaxial network
JP5897605B2 (en) Optimized dynamic bandwidth scheduler
CN101668234B (en) Data packet sending method and module
US20170126351A1 (en) Method and system for scheduling cascaded pon
CN104735555B (en) A kind of bandwidth allocation methods of passive optical network
CN116634313B (en) Single-frame multi-burst distribution method, burst frame uplink method, distribution device and computer readable storage medium in optical forwarding network
EP2949129B1 (en) Transmission prioritization based on polling time
Gravalos et al. A modified max-min fair dynamic bandwidth allocation algorithm for XG-PONs
WO2014117510A1 (en) Resource management method and system in photoelectric hybrid system
CN102427567B (en) Asynchronous multi-wavelength mesh network adaptive node system based on optical packet switching
JP2015033051A (en) Dynamic bandwidth allocation method, station side device, computer program, and PON system
Chen et al. Adaptive dynamic bandwidth allocation algorithm with sorting report messages for Ethernet passive optical network
WO2017028623A1 (en) Method and device for channel configuration
CN103546949B (en) A kind of Access Network bandwidth scheduling method based on dormancy power-saving mechanism
Shan et al. EPON upstream multiple access scheme
CN102917282B (en) A kind of priority dynamic wavelength bandwidth allocation methods based on multithreading
CN1767693A (en) Method for Ethernet passive optical network multi service dynamic bandwidth request
CN103124382B (en) Differentiation network coding method, device and the system transmitted towards asymmetric data
Gravalos et al. The max–min fair approach on dynamic bandwidth allocation for XG‐PONs
KR100986224B1 (en) Dynamic Bandwidth Allocation Device and Method in Ethernet Passive Optical Subscriber Network
CN101662706B (en) Service memorizing method and module thereof
CN102685610B (en) A kind of apparatus and method of dynamic assignment operational administrative control interface bandwidth
Hassan et al. Modified backoff technique in fiber-wireless networks
CN101692715A (en) Bandwidth allocation method and bandwidth allocation module

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
ASS Succession or assignment of patent right

Owner name: STATE GRID INFORMATION + TELECOMMUNICATION CO., LT

Free format text: FORMER OWNER: NORTH CHINA ELECTRIC POWER UNIVERSITY

Effective date: 20120731

Owner name: STATE ELECTRIC NET CROP.

Free format text: FORMER OWNER: STATE GRID INFORMATION + TELECOMMUNICATION CO., LTD.

Effective date: 20120731

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100761 XUANWU, BEIJING TO: 100031 XICHENG, BEIJING

TR01 Transfer of patent right

Effective date of registration: 20120731

Address after: 100031 Xicheng District West Chang'an Avenue, No. 86, Beijing

Co-patentee after: State Grid Information & Telecommunication Co.,Ltd.

Patentee after: State Grid Corporation of China

Co-patentee after: NORTH CHINA ELECTRIC POWER University

Address before: 100761 Beijing Xuanwu District city two, Baiguang Road

Co-patentee before: North China Electric Power University

Patentee before: State Grid Information & Telecommunication Co.,Ltd.

CP01 Change in the name or title of a patent holder

Address after: 100031 No. 86 West Chang'an Avenue, Beijing, Xicheng District

Patentee after: STATE GRID CORPORATION OF CHINA

Patentee after: State Grid Information & Telecommunication Co.,Ltd.

Patentee after: NORTH CHINA ELECTRIC POWER University

Address before: 100031 No. 86 West Chang'an Avenue, Beijing, Xicheng District

Patentee before: State Grid Corporation of China

Patentee before: State Grid Information & Telecommunication Co.,Ltd.

Patentee before: NORTH CHINA ELECTRIC POWER University

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230209

Address after: 100031 No. 86 West Chang'an Avenue, Beijing, Xicheng District

Patentee after: STATE GRID CORPORATION OF CHINA

Patentee after: STATE GRID INFORMATION & TELECOMMUNICATION BRANCH

Patentee after: NORTH CHINA ELECTRIC POWER University

Address before: 100031 No. 86 West Chang'an Avenue, Beijing, Xicheng District

Patentee before: STATE GRID CORPORATION OF CHINA

Patentee before: State Grid Information & Telecommunication Co.,Ltd.

Patentee before: NORTH CHINA ELECTRIC POWER University