CN104301185A - Message sending rate detection method and device - Google Patents

Message sending rate detection method and device Download PDF

Info

Publication number
CN104301185A
CN104301185A CN 201410616915 CN201410616915A CN104301185A CN 104301185 A CN104301185 A CN 104301185A CN 201410616915 CN201410616915 CN 201410616915 CN 201410616915 A CN201410616915 A CN 201410616915A CN 104301185 A CN104301185 A CN 104301185A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
virtual queue
packet
count
queue length
length count
Prior art date
Application number
CN 201410616915
Other languages
Chinese (zh)
Inventor
蒋震
Original Assignee
盛科网络(苏州)有限公司
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

Links

Abstract

The invention provides a message sending rate detection method and device. The method includes the steps that a bypass virtual queue is set for a message to be sent; when the message is forwarded, the message is made to additionally simulate the queuing behavior in the virtual queue, and the virtual queue length count of the message is recorded; the virtual queue length count is compared with a virtual queue excess threshold; if the virtual queue length count is larger than the virtual queue excess threshold, it is determined that when the message is forwarded, a message output port is in an excess sending state. According to the message sending rate detection method and device, the bypass virtual queue is set for the message to be sent, before the message is forwarded, whether the excess sending state occurs in a sending port of a message channel or not is predicted in advance on the dependence of the bypass virtual queue, the forward time delay in the actual network is lowered to the forward time delay under the non-blocking condition of an exchanger, the network operation state is accurately monitored, and the increasingly high safety requirement and the refinement of monitoring in the network are met.

Description

报文发送速率检测方法及装置 Packet transmission rate detection method and apparatus

技术领域 FIELD

[0001] 本发明涉及网络通信领域,尤其涉及一种报文发送速率检测方法及装置。 [0001] The present invention relates to network communications, and in particular rate detection method and device, to a message transmission.

背景技术 Background technique

[0002] 在部署数据中心应用的时候,应用的响应时间不但取决于集群的整体计算能力,也取决于集群网络的数据转发时延,转发时延是一个十分重要的网络性能参数,因此,如何提升数据中心的数据转发时延是目前业界比较重视的焦点。 [0002] When deploying data center applications, application response time depends not only on the overall computing power of a cluster, the cluster networks also depend on the data forwarding delay, delay forwarding network performance parameters it is a very important, therefore, how improve data center data forwarding delay is more emphasis on industry focus.

[0003] 数据中心对其网络有相应的需求:由于短数据流往往是实时信息,故对短数据流实行低时延,对突发数据流高容忍性,长数据流高带宽利用率。 [0003] Data center network has its respective requirements: the data stream is often due to short real-time information, so that the implementation of low-delay data stream of short, high burst tolerance data stream, the data stream length high bandwidth utilization. 通常状况下,大多数数据中心应用都是面向有状态连接,从发送机制上多采用带有速率控制的传输控制协议(DataCenter TCP,DCTCP)技术。 Ordinarily, for most data center applications are stateful connection, from the transmission mechanism to use more transmission control protocol with rate control (DataCenter TCP, DCTCP) technology. 然而,传输控制协议造成了数据中心网络中短数据流的高时延,其原因在于,传输控制协议对交换机缓存空间的消耗过大,导致长数据流塞满了交换机的缓存,短数据流被迫排队等待,由于排队等待导致了传输时延的激增。 However, the transmission control protocol resulted in a data center network short data stream high latency, which is the reason that the consumption of the transmission control protocol switch buffer space is too large, resulting in a long stream of filled buffer switch, the short data stream is forced to wait in line, because the waiting has led to a surge transmission delay.

[0004] 相应的,为了解决上述问题,数据中心的传输控制协议利用了交换机中新出现的显式拥塞通知(ECN)功能,将之与数据源端的控制策略相结合,从而保证交换机缓存空间的数据占据率始终低于某个阈值,这样短数据流就基本只要在这个阈值内排队即可通过交换机,同时保证长数据流的吞吐量较高,即不会有过多的丢弃。 [0004] Accordingly, to solve the above problems, the data center transmission control protocol using explicit congestion notification (ECN) switch emerging function, combining it with the control policy data source, thereby ensuring that the switch buffer space data occupying rate is always below a certain threshold, such a short line as long as the basic data flow in through this threshold can be a switch, while ensuring a high throughput long data stream, i.e. without excessive discarded.

[0005] 进一步的,对于上述数据中心传输控制协议,其实现机制是在若干数据报文排队到一定的队列长度后,触发显式拥塞通知,进而通过数据源端的控制策略调整发送速率,故。 [0005] Further, the above-described data center transmission control protocol, its implementation mechanism after a number of data packets queued to a certain queue length, triggered explicit congestion notification, and then through the control strategy to adjust the transmission rate of the data source, so. 报文还是会有排队行为,无法实现超低转发时延。 The message will still be queuing behavior, can not achieve ultra-low latency forwarding.

发明内容 SUMMARY

[0006] 本发明的目的在于提供一种报文发送速率检测方法及装置,该方法、装置可降低报文转发过程中转发时延。 [0006] The object of the present invention is to provide a packet transmission rate detection method and apparatus, the method, apparatus can reduce packet forwarding delay forwarding process.

[0007] 为实现上述目的之一,本发明一实施方式的报文发送速率检测方法,所述方法包括:为待发送的报文设置一旁路的虚拟队列; Detecting packet transmission rate, the method [0007] In order to achieve one of the above-described object, the present invention is an embodiment comprising: a packet to be transmitted is provided to bypass the virtual queue;

在报文转发的时,将所述报文额外地在所述虚拟队列中模拟排队行为,并记录所述报文的虚拟队列长度计数; When forwarding packets, the packet additionally in the virtual queue in the queuing behavior simulation, a virtual queue length and record count of the packet;

将所述虚拟队列长度计数和虚拟队列超量阈值进行比较; The virtual queue length count and excess virtual queue threshold value;

若所述虚拟队列长度计数大于虚拟队列超量阈值,判定所述报文转发时,所述报文出端口处于超量发送状态。 If the virtual queue length count is greater than the threshold value in the virtual queue excess, when it is determined to forward the packet, the packet transmission state of the port is in excess.

[0008] 作为本发明的进一步改进,所述“在报文转发的时,将所述报文额外地在所述虚拟队列中模拟排队行为;”具体包括: [0008] As a further improvement of the present invention, the "packet forwarding when, additionally the packet in the virtual queue in the queuing behavior simulation;" comprises:

获取报文发送端口的原虚拟队列长度计数,在报文计划转发时,根据计划发送报文的长度计数,以及原虚拟队列长度计数更新当前虚拟队列长度计数; Get the original virtual queue length count packets the port when the packet forwarding plan, according to plans to send packet length count, as well as the original virtual queue length count update the current virtual queue length count;

更新后的当前所述虚拟队列长度计数=原虚拟队列长度计数+计划转发报文长度计数。 After updating the current virtual queue length of the virtual queue length count = count + original program length count forward packets.

[0009] 作为本发明的进一步改进,所述方法还包括:设置一扫描周期,定时扫描所述虚拟队列长度计数,并按照预先设置的单次扫描扣减额,变更所述虚拟队列长度计数; [0009] As a further improvement of the invention, the method further comprising: setting a scanning period, the scanning timing of the virtual queue length count, and deduction according to a single scan set in advance to change the virtual queue length count;

每个扫描周期后,更新后的所述虚拟队列长度计数=原虚拟队列长度计数-所述单次扫描扣减额; After each scan cycle, the updated virtual queue length of the original virtual queue length count = count - the single-scanning deductions;

若扣减后的虚拟队列长度计数为负数,则直接将其设置为零; If the virtual queue length after deduction count is negative, directly set to zero;

所述单次扫描扣减额为预设的每个扫描周期内报文发送端口发送报文的长度计数。 Transmission packet length count sending the packets in said single scan of a predetermined amount deducted each scan cycle.

[0010] 作为本发明的进一步改进,所述方法还包括: [0010] As a further improvement of the invention, the method further comprising:

根据虚拟带宽评估速率,以及虚拟队列扫描频率计算单个扫描周期内虚拟队列长度的单次扫描扣减额; Deductions single scan within a single virtual queue length is calculated according to the virtual scanning period bandwidth estimator rate, and frequency scanning virtual queue;

所述单次扫描扣减额=虚拟带宽评估速率/虚拟队列扫描频率。 The single scan deduction rate = bandwidth estimator virtual / virtual queue scanning frequency.

[0011] 作为本发明的进一步改进,在“判定所述报文转发时,所述报文出端口处于超量发送状态”后,所述方法还包括: After [0011] As a further improvement of the present invention, "it is determined to forward the packet, the port is in excess of a packet transmission state", the method further comprising:

将超量发送状态信息发送至外部处理中心。 Transmitting status information is transmitted to the external excessive processing center.

[0012] 为实现上述目的之一,本发明一实施方式的报文发送速率检测装置,所述装置包括:为待发送的报文设置一旁路的虚拟队列; [0012] In order to achieve one of the above-described object, the present invention is packet transmission rate detecting apparatus according to an embodiment, said apparatus comprising: a packet to be transmitted is provided to bypass the virtual queue;

所述虚拟队列中设置: The virtual queue is provided:

出口资源计数模块,在报文转发的时,将所述报文额外地在所述虚拟队列中模拟排队行为,并记录所述报文的虚拟队列长度计数; Outlet resource count module, when packet forwarding, the packet additionally in the virtual queue in the queuing behavior simulation, a virtual queue length and record count of the packet;

流量监测模块,将所述虚拟队列长度计数和虚拟队列超量阈值进行比较; Flow monitoring module, the virtual queue length count and excess virtual queue threshold value;

若所述虚拟队列长度计数大于虚拟队列超量阈值,判定所述报文转发时,所述报文出端口处于超量发送状态。 If the virtual queue length count is greater than the threshold value in the virtual queue excess, when it is determined to forward the packet, the packet transmission state of the port is in excess.

[0013] 作为本发明的进一步改进,所述出口资源计数模块还用于: [0013] As a further improvement of the invention, the outlet resource count module is further configured:

获取报文发送端口的原虚拟队列长度计数,在报文计划转发时,根据计划发送报文的长度计数,以及原虚拟队列长度计数更新当前虚拟队列长度计数; Get the original virtual queue length count packets the port when the packet forwarding plan, according to plans to send packet length count, as well as the original virtual queue length count update the current virtual queue length count;

更新后的当前所述虚拟队列长度计数=原虚拟队列长度计数+计划转发报文长度计数。 After updating the current virtual queue length of the virtual queue length count = count + original program length count forward packets.

[0014] 作为本发明的进一步改进,所述出口资源计数模块还用于:设置一扫描周期,定时扫描所述虚拟队列长度计数,并按照预先设置的单次扫描扣减额,变更所述虚拟队列长度计数; [0014] As a further improvement of the invention, the outlet resource count module is further configured: setting a scanning period, the scanning timing of the virtual queue length count, and deduction according to a single scan set in advance to change the virtual queue length count;

每个扫描周期后,更新后的所述虚拟队列长度计数=原虚拟队列长度计数-所述单次扫描扣减额; After each scan cycle, the updated virtual queue length of the original virtual queue length count = count - the single-scanning deductions;

若扣减后的虚拟队列长度计数为负数,则直接将其设置为零; If the virtual queue length after deduction count is negative, directly set to zero;

所述单次扫描扣减额为预设的每个扫描周期内报文发送端口发送报文的长度计数。 Transmission packet length count sending the packets in said single scan of a predetermined amount deducted each scan cycle.

[0015] 作为本发明的进一步改进,所述出口资源计数模块具体用于: [0015] As a further improvement of the invention, the outlet resource count module is configured to:

根据虚拟带宽评估速率,以及虚拟队列扫描频率计算单个扫描周期内虚拟队列长度的单次扫描扣减额; Deductions single scan within a single virtual queue length is calculated according to the virtual scanning period bandwidth estimator rate, and frequency scanning virtual queue;

所述单次扫描扣减额=虚拟带宽评估速率/虚拟队列扫描频率。 The single scan deduction rate = bandwidth estimator virtual / virtual queue scanning frequency.

[0016] 作为本发明的进一步改进,所述虚拟通道中还设置: 超量发送状态汇报模块,用于在判定所述报文出端口处于超量发送状态后,将超量发送状态信息发送至外部处理中心。 [0016] As a further improvement of the present invention, the virtual channel is further provided: transmitting excessive status reporting module, configured to, after determining the port is in excess of the packet transmission state, the transmission state information to the excessive external processing center.

[0017] 与现有技术相比,本发明的有益效果是:本发明报文发送速率检测方法及装置,通过为待发送的报文设置旁路的虚拟队列,并在报文转发之前,借助旁路的虚拟队列,提前预估报文通道的发送端口是否会出现超量发送状态,将实际网络中的转发时延降低到交换机无阻塞条件下的转发时延,精确地监测网络运行状况、满足了网络中日益提高的安全性要求以及监测的精细化。 [0017] Compared with the prior art, the beneficial effects of the present invention are: the present invention as hereinbefore packet transmission rate detection method and apparatus provided by packets bypass the virtual queue to be transmitted, and prior to packet forwarding, by virtual queue bypass, estimated in advance to send the message channel port of whether the state will send the excess will reduce the actual network of forwarding delay to the non-blocking switch forwarding delay under conditions accurately monitor network health, to meet the ever-increasing network security requirements, and the refinement of monitoring.

附图说明 BRIEF DESCRIPTION

[0018] 图1是本发明一实施方式中报文发送速率检测方法的流程图; [0018] FIG. 1 is a flowchart embodiment of the present invention, the rate of packet transmission method according to an embodiment of the detection;

图2是本发明一实施方式中报文发送速率检测装置的模块图。 FIG 2 is an embodiment of the present invention described packet transmission rate detection device module of FIG.

具体实施方式 detailed description

[0019] 以下将结合附图所示的具体实施方式对本发明进行详细描述。 [0019] Hereinafter, specific embodiments shown in the drawings in conjunction with the present invention will be described in detail. 但这些实施方式并不限制本发明,本领域的普通技术人员根据这些实施方式所做出的结构、方法、或功能上的变换均包含在本发明的保护范围内。 However, these embodiments do not limit the present invention, the structure of those of ordinary skill in the art according to these embodiments made, methods, or conversion functions are included in the scope of the present invention.

[0020] 如图1所示,在本发明的一实施方式中,所述报文发送速率检测方法,包括: 为待发送的报文设置一旁路的虚拟队列。 [0020] 1, in one embodiment of the present invention, the packet transmission rate detection method, comprising: setting a virtual queue bypass of packets to be transmitted.

[0021] 报文转发过程中,需要在报文通道中进行排队、等待转发,本申请区别报文通道设置一旁路的虚拟队列,在报文计划转发时,先在旁路的虚拟队列中进行模拟排队,以此判断报文发送端口的流量转发状态,以下将会详细叙述。 [0021] packet forwarding process, the message needs to be in the channel line up, waiting for forwarding the difference between this application packet channel set up a virtual queue side of the road, first in the virtual queue bypass at the time of packet forwarding plan analog line in order to determine the flow rate packet transmission port forwarding state, as will be described in detail.

[0022] 本发明一实施方式中,当报文计划从某一个出端口转发出去时,报文在所述旁路的虚拟队列中模拟转发过程。 [0022] In an embodiment of the present invention, when the program packets forwarded from one output port, the packet forwarding process in the simulated virtual queue bypass. 具体的,在报文转发的时,将所述报文额外地在所述虚拟队列中模拟排队行为,并记录所述报文的虚拟队列长度计数。 Specifically, when the message is forwarded, the packet additionally in the virtual queue in the queuing behavior simulation, virtual queue length count and record the message.

[0023] 本实施方式中,可以在旁路的虚拟队列中设置一虚拟队列长度计数器,用于记录及更新虚拟队列的长度变化。 [0023] In the present embodiment, may be provided in a virtual queue length counter in the virtual queue bypass for recording and updating the virtual queue length change.

[0024] 所述虚拟队列长度计数可为报文数量的计数和/或报文长度的计数。 [0024] The virtual queue length counter can count and / or count the length of the packet number of packets.

[0025] 报文计划转发时,计划转发的报文在旁路的虚拟队列的入端口发送转出请求,大致同一时间向旁路的虚拟队列的出端口发起计数增加请求,使的所述虚拟队列长度计数增加。 When the [0025] program packet forwarding, packet forwarding program in a virtual queue bypass ingress port transmitting transfer-out request, a request to increase substantially the same time an originating virtual port bypass queue count, so the virtual increase the queue length count.

[0026] 本实施方式中,获取报文发送端口的原虚拟队列长度计数,在报文计划转发时,根据计划发送报文的长度计数,以及原虚拟队列长度计数更新当前虚拟队列长度计数;更新后的当前所述虚拟队列长度计数=原虚拟队列长度计数+计划转发报文长度计数。 [0026] the present embodiment, obtaining the original virtual queue length count packet transmission port, and when the packet plan forward, according to the plan sending a packet length count, as well as the original virtual queue length count update this virtual queue length count; update after the current virtual queue length count = count + original virtual queue length packet forwarding program length count.

[0027] 进一步的,设置一扫描周期,定时扫描所述虚拟队列长度计数,并按照预先设置的单次扫描扣减额,变更所述虚拟队列长度计数;每个扫描周期后,更新后的所述虚拟队列长度计数=原虚拟队列长度计数-所述单次扫描扣减额;若扣减后的虚拟队列长度计数为负数,则直接将其设置为零。 [0027] Further, setting a scanning period, the scanning timing of the virtual queue length count, and a virtual queue length count according to a single scan deduction previously set, the change; after each scanning cycle, the update said virtual queue length of the original virtual queue length count = count - the single scan deduction; if the virtual queue length after deduction count is negative, directly set to zero.

[0028] 所述单次扫描扣减额为预设的每个扫描周期内报文发送端口发送报文的长度计数。 [0028] The single scan within a predetermined amount deducted each scanning cycle length packet transmission port count transmitted packets.

[0029] 本实施方式中,可以在所述旁路的虚拟队列中设置一个额定频率的扫描器,按照指定周期定时扫描所述虚拟队列长度计数器,每个扫描周期后,按照预先设置的单次扫描扣减额,变更所述虚拟队列长度计数。 [0029] The present embodiment may be provided a nominal frequency of the scanner in the bypass in the virtual queue, the specified scan period timing of the virtual queue length counter, after every scan cycle, according to pre-set the single scanning deduction changes the virtual queue length count.

[0030] 进一步的,根据虚拟带宽评估速率,以及虚拟队列扫描频率计算单个扫描周期内虚拟队列长度的单次扫描扣减额;所述单次扫描扣减额=虚拟带宽评估速率/虚拟队列扫描频率。 [0030] Further, the calculated rate of virtual bandwidth estimator, and a single scan frequency scanning virtual queue virtual single sweep cycle queue length of deduction; deduction of the single scan rate = bandwidth estimator virtual / virtual queue scanning frequency.

[0031 ] 本示例中,列举一实施例做详细说明。 [0031] In this example, it includes an embodiment described in detail.

[0032] 例如:假定旁路的虚拟队列的虚拟带宽评估速率为900Mbps,虚拟队列扫描频率为4MHz,那么,旁路的虚拟队列中,每秒钟需要通过900,000,000Kb it的数据量,SP112,500,000字节/秒,进而,每次扫描后,所述旁路的虚拟队列的虚拟队列长度计数比原虚拟队列产度计数减少28.125个字节。 [0032] For example: a virtual bandwidth estimator assumed virtual queue bypass rate is 900Mbps, the virtual queue scanning frequency of 4MHz, then the virtual queue bypass, the required amount of data per second of 900,000,000Kb it, SP112,500,000 byte / sec, and further, after each scan, the virtual queue bypass virtual queue length count than the original capacity of the virtual queue 28.125 byte count is decremented.

[0033] 本示例中,为了使报文转发时,报文的转发时延是最低的无阻塞时延,通常将旁路的虚拟队列的虚拟带宽评估速率略低于报文通道的带宽评估速率设置,例如:将所述虚拟带宽评估速率设置为报文通道带宽评估速率的90%。 [0033] In this example, in order to make packet forwarding, packet forwarding delay is the minimum delay non-blocking, usually virtual bandwidth estimator virtual queue bypass rate is slightly lower than the rate of the text message channel bandwidth estimator setting, for example: the bandwidth of the virtual evaluation rate is set to 90% of the channel bandwidth packet rate evaluation.

[0034] S2、将所述虚拟队列长度计数和虚拟队列超量阈值进行比较;若所述虚拟队列长度计数大于虚拟队列超量阈值,判定所述报文转发时,所述报文出端口处于超量发送状态。 [0034] S2, the virtual queue length count and excess virtual queue threshold value; if the virtual queue length count is greater than a threshold value excess virtual queue, determining that the packet forwarding the packet at the egress port excessive sending state.

[0035] 所述超量阈值,为数据交换机中预设的用于判断是否产生超量发送状态的一个相应的报文数量计数和/或报文长度计数。 [0035] The excess of the threshold value, the data switch for determining whether a predetermined transmission state of excessive numbers of packets corresponding to a count and / or count of packet length.

[0036] 每次扫描周期后,报文从报文发送端口转发出去后,,报文虚拟队列长度计数随之减小,直至报文的虚拟队列长度计数小于所述超量阈值时,判定计划的报文转发时,所述报文发送端口将处于正常流量状态,同时,可选择的给计划转发的报文通知报文发送端口的当前状态,该当前状态包括两种,报文发送端口处于正常转发状态或出于超量发送状态。 After [0036] After each scanning period, the packet from the packet transmission port forwards the packet ,, virtual queue length count decreases, the length of the virtual queue until the packet count is less than the excess of the threshold value, it is determined Program forwarding packets, the packet transmission port in a normal traffic state, while, alternatively to program forwarding current status notification packet transmission port packet, which includes two current status, packet transmission port is normal forwarding state for excessive or send state.

[0037] 本示例中,报文在计划发送时,按照计划转发报文队列长度增加旁路的虚拟队列的虚拟队列长度计数;同时,设置一扫描周期,定时扫描所述虚拟队列长度计数,并按照预先设置的单次扫描扣减额,递减更新所述旁路的虚拟队列长度计数。 [0037] In this example, when a packet is scheduled to be transmitted, in accordance with the plan forwarded packet queue length increases bypass virtual queue virtual queue length count; the same time, provided with a scanning period, the scanning timing of the virtual queue length count, and according to a single scan deduction previously set, the bypass decrementing updating virtual queue length count.

[0038] 如此,假定当前报文发送端口处于正常的传输状态。 [0038] Thus, assuming the current packet transmission port in the normal transmission state.

[0039] 若报文计划的发送速率小于900Mbps,每个扫描周期后,旁路的虚拟队列长度计数减小,所述旁路的虚拟队列长度计数将始终小于超量发送状态超量阈值,通过所述旁路的虚拟队列长度计数判断出所述报文通道处于正常流量状态。 [0039] When the packet transmission rate is less than 900Mbps program, after each scan cycle, the virtual queue length count is reduced bypass, the bypass virtual queue length count will always be less than the threshold excess excessive transmission state, by the bypass virtual queue length count is determined that the packet traffic channel in the normal state. 进一步的,若在旁路的虚拟队列中的全部报文完成转发之后,还未有下一个报文发送,那么所述旁路的虚拟队列长度计数将会减为负值,并被强制设置为零。 Further, if after all the packets in the virtual queue bypass forwarding is completed, the next packet has not been sent, then the virtual queue length count will be reduced to the bypass negative, and is forced to zero.

[0040] 若报文计划发送的速率等于900Mbps,每个扫描周期后,若所述旁路的虚拟队列中一直有报文转发,旁路的虚拟队列长度计数保持不变,所述旁路的虚拟队列长度计数将始终小于所述超量阈值,通过所述旁路的虚拟队列长度计数判断出所述报文通道处于正常流量状态。 [0040] When the rate is equal to the text message transmission program 900Mbps, after each scan cycle, if the virtual queue bypass has been forwarded packets, a virtual queue length count remains unchanged bypass, the bypass is virtual queue length count is always smaller than the threshold value excessive, the packet is judged that the bypass passage virtual queue length count is in a normal traffic state. 进一步的,若在旁路的虚拟队列中的全部报文完成转发之后,还未有下一个报文发送,那么,所述旁路的虚拟队列长度计数将会逐渐减小,且最终会减为零值,当然,由于扫描周期与报文计划发送时间点不同步,旁路的虚拟队列长度计数也可能为趋近于零值的正数。 Further, if after all the packets in the virtual queue bypass forwarding is completed, the next packet has not been sent, then the bypass virtual queue length count will gradually decrease, and eventually to reduce value of zero, of course, since the scan cycle and packet transmission time point is not synchronized programs, a virtual queue length count may bypass a positive number close to zero value.

[0041] 若报文计划发送的速率大于900Mbps,每个扫描周期后,若在旁路的虚拟队列中的报文完成转发之前,继续有新的报文进入所述旁路的虚拟队列,那么,旁路的虚拟队列长度计数将始终为正值,且随着报文的增多,所述虚拟队列长度计数会逐渐增加,当所述虚拟队列长度计数大于所述超量阈值时,判定所述报文转发时,所述报文发送端口将处于超量发送状态。 [0041] If the message is larger than the transmission rate of 900Mbps program, after each scan cycle, if the previous packet in the virtual queue bypass forwarding is completed, continue new virtual queue packets entering the bypass, then , bypassing the virtual queue length count will always be positive, and with the increase of the packet, the virtual queue length count will gradually increase, when the virtual queue length count is greater than the threshold value excess, determining the packet forwarding, the packet transmitting port will be in excess transmission state.

[0042] 进一步的,若预估所述报文发送端口将处于超量发送状态,可将超量发送状态信息发送至外部处理中心。 [0042] Further, if the estimated transmission port packet transmission state in excess, the excess can send status information to the external processing center.

[0043] 本实施例中,所述超量发送状态信息可包括:产生超量发送状态的发送端口信息、产生超量发送状态的时刻信息等。 [0043] In this embodiment, the excess may send status information comprising: generating excessive transmission state transmitting the port information of the time information generating excessive transmission status and the like.

[0044] 在所述外部处理中心接收到超量发送状态信息后;由于数据中心网络上的流量几乎都是TCP流量,并且所有发起这些TCP流量的终端设备都支持了DCTCP的协议栈,因此一旦存在超量发送状态预警,其对应的TCP会话可通过调节速率降低发送数据量,从而减少对发送带宽的消耗,故而对于一个链路来说,提供网络优化方案。 [0044] After receiving the status information is transmitted in excess of the external processing center; traffic on the network since almost all TCP traffic data center, and the terminal device initiates all of these TCP flows are supported DCTCP protocol stack, once presence of excess transmission warning status, the corresponding TCP session may be reduced by adjusting the amount of transmission data rate, thereby reducing the consumption of transmission bandwidth, and therefore is for a link, provide network optimization.

[0045] 进一步的,通过在旁路的虚拟队列中模拟报文传输,并将旁路的虚拟队列的虚拟带宽评估速率略低于报文通道的带宽评估速率进行设置,当通过旁路的虚拟队列中的虚拟队列长度计数预估报文发送时报文通道处于超量发送状态时,传输控制协议在发送周期的带宽开销刚大于发送出口链路带宽的时候便预先地下调了发送速率,避免了传输控制协议的“慢启动”机制导致链路带宽被占满,避免开始真正意义上的排队,如此,消除了排队带来的转发时延,此时,报文的转发时延仅仅包含了无阻塞时延部分,而不再有排队部分,其转发时延的抖动也几乎消除。 [0045] Further, by simulating a virtual bypass the packet transmission queue, and bandwidth estimator virtual virtual queue bypass rate is slightly lower than the rate of packet bandwidth estimator packet channel is set, when the virtual bypass when the virtual queue length count in the queue when the estimated packet sending an instant message channel is excessive transmission state, the transmission control protocol transmission bandwidth overhead outlet than the transmission cycle immediately link bandwidth will be reduced transmission rate in advance, to avoid the transmission control protocol "slow start" mechanism leading link bandwidth is fully occupied, to avoid queuing on the first real, true, eliminating the queuing delay brought forward at this time, packet forwarding delay contains only unimpeded Cypriot part of the delay, there is no more queuing part of its forwarding delay jitter is almost eliminated.

[0046] 结合图2所示,在本发明的第一实施方式中,所述报文发送速率检测装置包括:为待发送的报文设置一旁路的虚拟队列;所述虚拟队列中设置:出口资源计数模块100、流量监测模块200、超量发送状态汇报模块300。 [0046] in conjunction with FIG. 2, in the first embodiment of the present invention, the packet transmission rate detecting apparatus comprising: setting a virtual queue bypass the packets to be transmitted; the virtual queue is provided: outlet resource count module 100, flow monitoring module 200, status reporting module 300 transmits excessive.

[0047] 出口资源计数模块100用于在报文转发的时,将所述报文额外地在所述虚拟队列中模拟排队行为,并记录所述报文的虚拟队列长度计数。 [0047] The resource export counter module 100 when forwarding packets, the packet additionally in the virtual queue in the queuing behavior simulation, virtual queue length count and record the message.

[0048] 本实施方式中,可以在出口资源计数模块100中设置一虚拟队列长度计数器,用于记录及更新虚拟队列的长度变化。 [0048] The present embodiment may be provided in a virtual queue length counter 100 counts resource outlet means for recording and updating the virtual queue length change.

[0049] 所述虚拟队列长度计数可为报文数量的计数和/或报文长度的计数。 [0049] The virtual queue length counter can count and / or count the length of the packet number of packets.

[0050] 出口资源计数模块100用于,报文计划转发时,计划转发的报文在旁路的虚拟队列的入端口发送转出请求,大致同一时间向旁路的虚拟队列的出端口发起计数增加请求,使的所述虚拟队列长度计数增加。 [0050] The counting module 100 export resource for forwarding the packet time plan, the plan forwarded packets transferred out request queue in the virtual ingress port bypass substantially the same time to the bypass port launched virtual queue count increase request, so that the virtual queue length count increases.

[0051] 本实施方式中,出口资源计数模块100获取报文发送端口的原虚拟队列长度计数,在报文计划转发时,根据计划发送报文的长度计数,以及原虚拟队列长度计数更新当前虚拟队列长度计数;更新后的当前所述虚拟队列长度计数=原虚拟队列长度计数+计划转发报文长度计数。 [0051] the present embodiment, the outlet resource count module 100 acquires the original virtual queue length count packet transmission port, and when the packet plan forward, according to the plan sending a packet length count, as well as the original virtual queue length count update the current virtual queue length count; the current update of the virtual queue length count = count + original virtual queue length packet forwarding program length count.

[0052] 进一步的,出口资源计数模块100设置一扫描周期,定时扫描所述虚拟队列长度计数,并按照预先设置的单次扫描扣减额,变更所述虚拟队列长度计数;每个扫描周期后,更新后的所述虚拟队列长度计数=原虚拟队列长度计数-所述单次扫描扣减额;若扣减后的虚拟队列长度计数为负数,则直接将其设置为零。 [0052] Further, the outlet 100 is provided a resource count module scanning period, the scanning timing of the virtual queue length count, and deduction according to a single scan set in advance to change the virtual queue length count; after each scanning cycle the updated virtual queue length of the original virtual queue length count = count - the single scan deduction; if the virtual queue length after deduction count is negative, directly set to zero. 所述单次扫描扣减额为预设的每个扫描周期内报文发送端口发送报文的长度计数。 Transmission packet length count sending the packets in said single scan of a predetermined amount deducted each scan cycle.

[0053] 本实施方式中,可以在出口资源计数模块100中设置一个额定频率的扫描器,按照指定周期定时扫描所述虚拟队列长度计数器,每个扫描周期后,按照预先设置的单次扫描扣减额,变更所述虚拟队列长度计数。 [0053] In the present embodiment, a nominal frequency may be provided in the outlet resource count module 100 scanner, the scanning timing of the specified period virtual queue length counter, after every scan, a single scanning according to a preset button derating changes the virtual queue length count.

[0054] 进一步的,出口资源计数模块100根据虚拟带宽评估速率,以及虚拟队列扫描频率计算单个扫描周期内虚拟队列长度的单次扫描扣减额;所述单次扫描扣减额=虚拟带宽评估速率/虚拟队列扫描频率。 [0054] Further, the export module 100 calculates the resource counts deductions single scan within a single virtual queue length virtual scanning period according to bandwidth estimator rate, and frequency scanning virtual queue; a = single scan deduction virtual bandwidth estimator rate / frequency scanning virtual queue.

[0055] 本示例中,列举一实施例做详细说明。 [0055] In this example, it includes an embodiment described in detail.

[0056] 例如:假定旁路的虚拟队列的虚拟带宽评估速率为900Mbps,虚拟队列扫描频率为4MHz,那么,旁路的虚拟队列中,每秒钟需要通过900,000,OOOKb it的数据量,SP112,500,000字节/秒,进而,每次扫描后,所述旁路的虚拟队列的虚拟队列长度计数比原虚拟队列产度计数减少28.125个字节。 [0056] For example: a virtual bandwidth estimator assumed virtual queue bypass rate is 900Mbps, the virtual queue scanning frequency of 4MHz, then the virtual queue bypass, the need to 900,000 per second, the data amount OOOKb it, SP112,500,000 byte / sec, and further, after each scan, the virtual queue bypass virtual queue length count than the original capacity of the virtual queue 28.125 byte count is decremented.

[0057] 本示例中,为了使报文转发时,报文的转发时延是最低的无阻塞时延,通常将旁路的虚拟队列的虚拟带宽评估速率略低于报文通道的带宽评估速率设置,例如:将所述虚拟带宽评估速率设置为报文通道带宽评估速率的90%。 [0057] In this example, in order to make packet forwarding, packet forwarding delay is the minimum delay non-blocking, usually virtual bandwidth estimator virtual queue bypass rate is slightly lower than the rate of the text message channel bandwidth estimator setting, for example: the bandwidth of the virtual evaluation rate is set to 90% of the channel bandwidth packet rate evaluation.

[0058] 流量监测模块200用于将所述虚拟队列长度计数和虚拟队列超量阈值进行比较;若所述虚拟队列长度计数大于虚拟队列超量阈值,判定所述报文转发时,所述报文出端口处于超量发送状态。 [0058] The traffic monitoring module 200 is configured to count the virtual queue length threshold and a virtual queue excess compared; if the virtual queue length count is greater than a threshold value excess virtual queue, determining that the packet forwarding the packet Wen sent a port is in excess of state.

[0059] 所述超量阈值,为数据交换机中预设的用于判断是否产生超量发送状态的一个相应的报文数量计数和/或报文长度计数。 [0059] The excess of the threshold value, the data switch for determining whether a predetermined transmission state of excessive numbers of packets corresponding to a count and / or count of packet length.

[0060] 每次扫描周期后,报文从报文发送端口转发出去后,,报文虚拟队列长度计数随之减小,直至报文的虚拟队列长度计数小于所述超量阈值时,判定计划的报文转发时,所述报文发送端口将处于正常流量状态,同时,可选择的给计划转发的报文通知报文发送端口的当前状态,该当前状态包括两种,报文发送端口处于正常转发状态或出于超量发送状态。 After [0060] After each scanning period, the packet from the packet transmission port forwards the packet ,, virtual queue length count decreases, the length of the virtual queue until the packet count is less than the excess of the threshold value, it is determined Program forwarding packets, the packet transmission port in a normal traffic state, while, alternatively to program forwarding current status notification packet transmission port packet, which includes two current status, packet transmission port is normal forwarding state for excessive or send state.

[0061] 本示例中,报文在计划发送时,按照计划转发报文队列长度增加旁路的虚拟队列的虚拟队列长度计数;同时,设置一扫描周期,定时扫描所述虚拟队列长度计数,并按照预先设置的单次扫描扣减额,递减更新所述旁路的虚拟队列长度计数。 [0061] In this example, when a packet is scheduled to be transmitted, in accordance with the plan forwarded packet queue length increases bypass virtual queue virtual queue length count; the same time, provided with a scanning period, the scanning timing of the virtual queue length count, and according to a single scan deduction previously set, the bypass decrementing updating virtual queue length count.

[0062] 如此,假定当前报文发送端口处于正常的传输状态。 [0062] Thus, assuming the current packet transmission port in the normal transmission state.

[0063] 若报文计划的发送速率小于900Mbps,每个扫描周期后,,旁路的虚拟队列长度计数减小,所述旁路的虚拟队列长度计数将始终小于超量发送状态超量阈值,通过所述旁路的虚拟队列长度计数判断出所述报文通道处于正常流量状态。 [0063] When the packet transmission rate is less than 900Mbps program, after each scan cycle ,, virtual queue length count is reduced bypass, the bypass virtual queue length count will always be less than the threshold excess excessive transmission state, the bypass virtual queue length count is determined that the packet traffic channel in the normal state. 进一步的,若在旁路的虚拟队列中的全部报文完成转发之后,还未有下一个报文发送,那么所述旁路的虚拟队列长度计数将会减为负值,并被强制设置为零。 Further, if after all the packets in the virtual queue bypass forwarding is completed, the next packet has not been sent, then the virtual queue length count will be reduced to the bypass negative, and is forced to zero.

[0064] 若报文计划发送的速率等于900Mbps,每个扫描周期后,若所述旁路的虚拟队列中一直有报文转发,旁路的虚拟队列长度计数保持不变,所述旁路的虚拟队列长度计数将始终小于所述超量阈值,通过所述旁路的虚拟队列长度计数判断出所述报文通道处于正常流量状态。 [0064] When the rate is equal to the text message transmission program 900Mbps, after each scan cycle, if the virtual queue bypass has been forwarded packets, a virtual queue length count remains unchanged bypass, the bypass is virtual queue length count is always smaller than the threshold value excessive, the packet is judged that the bypass passage virtual queue length count is in a normal traffic state. 进一步的,若在旁路的虚拟队列中的全部报文完成转发之后,还未有下一个报文发送,那么,所述旁路的虚拟队列长度计数将会逐渐减小,且最终会减为零值,当然,由于扫描周期与报文计划发送时间点不同步,旁路的虚拟队列长度计数也可能为趋近于零值的正数。 Further, if after all the packets in the virtual queue bypass forwarding is completed, the next packet has not been sent, then the bypass virtual queue length count will gradually decrease, and eventually to reduce value of zero, of course, since the scan cycle and packet transmission time point is not synchronized programs, a virtual queue length count may bypass a positive number close to zero value.

[0065] 若报文计划发送的速率大于900Mbps,每个扫描周期后,若在旁路的虚拟队列中的报文完成转发之前,继续有新的报文进入所述旁路的虚拟队列,那么,旁路的虚拟队列长度计数将始终为正值,且随着报文的增多,所述虚拟队列长度计数会逐渐增加,当所述虚拟队列长度计数大于所述超量阈值时,判定所述报文转发时,所述报文发送端口将处于超量发送状态。 [0065] If the message is larger than the transmission rate of 900Mbps program, after each scan cycle, if the previous packet in the virtual queue bypass forwarding is completed, continue new virtual queue packets entering the bypass, then , bypassing the virtual queue length count will always be positive, and with the increase of the packet, the virtual queue length count will gradually increase, when the virtual queue length count is greater than the threshold value excess, determining the packet forwarding, the packet transmitting port will be in excess transmission state.

[0066] 进一步的,若预估所述报文发送端口将处于超量发送状态,可通过超量发送状态汇报模块300可将超量发送状态信息发送至外部处理中心。 [0066] Further, if the estimated transmission port packet transmission state in excess, the excess can send status reporting module 300 may transmit status information is transmitted to the external excessive processing center.

[0067] 本实施例中,所述超量发送状态信息可包括:产生超量发送状态的发送端口信息、产生超量发送状态的时刻信息等。 [0067] In this embodiment, the excess may send status information comprising: generating excessive transmission state transmitting the port information of the time information generating excessive transmission status and the like.

[0068] 在所述外部处理中心接收到超量发送状态信息后;由于数据中心网络上的流量几乎都是TCP流量,并且所有发起这些TCP流量的终端设备都支持了DCTCP的协议栈,因此一旦存在超量发送状态预警,其对应的TCP会话可通过调节速率降低发送数据量,从而减少对发送带宽的消耗,故而对于一个链路来说,提供网络优化方案。 [0068] After receiving the status information is transmitted in excess of the external processing center; traffic on the network since almost all TCP traffic data center, and the terminal device initiates all of these TCP flows are supported DCTCP protocol stack, once presence of excess transmission warning status, the corresponding TCP session may be reduced by adjusting the amount of transmission data rate, thereby reducing the consumption of transmission bandwidth, and therefore is for a link, provide network optimization.

[0069] 进一步的,通过在旁路的虚拟队列中模拟报文传输,并将旁路的虚拟队列的虚拟带宽评估速率略低于报文通道的带宽评估速率进行设置,当流量监测模块200通过旁路的虚拟队列中的虚拟队列长度计数预估报文发送时报文通道处于超量发送状态时,传输控制协议在发送周期的带宽开销刚大于发送出口链路带宽的时候便预先地下调了发送速率,避免了传输控制协议的“慢启动”机制导致链路带宽被占满,避免开始真正意义上的排队,如此,消除了排队带来的转发时延,此时,报文的转发时延仅仅包含了无阻塞时延部分,而不再有排队部分,其转发时延的抖动也几乎消除。 [0069] Further, by setting the packet transmission to simulate a virtual bypass queue and bandwidth estimator virtual virtual queue bypass rate is slightly lower than the rate of the text message channel bandwidth estimator, when the traffic monitoring module 200 when the virtual queue length count in the virtual queue bypass when the estimated packet sending an instant message transmission channel state is excessive, the bandwidth overhead in the transmission control protocol transmission period just larger than the transmission link bandwidth outlet will be lowered previously transmitted rate, to avoid the transmission control protocol "slow start" mechanism results in link bandwidth is fully occupied, to avoid queuing on the first real, true, eliminating the queuing delay brought forward at this time, packet forwarding delay contains only non-blocking delay part, there is no more queuing part of its forwarding delay jitter is almost eliminated.

[0070] 综上所述,本发明报文发送速率检测方法及装置,通过为待发送的报文设置旁路的虚拟队列,并在报文转发之前,借助旁路的虚拟队列,提前预估报文通道的发送端口是否会出现超量发送状态,将实际网络中的转发时延降低到交换机无阻塞条件下的转发时延,精确地监测网络运行状况、满足了网络中日益提高的安全性要求以及监测的精细化。 [0070] In summary, the packet transmission rate detection method and apparatus of the present invention, by setting the packet to bypass virtual queue to be transmitted, and packet forwarding before, the virtual queue bypass means, estimated in advance send message channel port of whether the state will send the excess will reduce the actual network of forwarding delay to the forwarding delay under conditions of non-blocking switch, accurately monitor network health, security of the network to meet the increasing monitoring requirements and fine.

[0071] 为了描述的方便,描述以上装置时以功能分为各种模块分别描述。 [0071] For convenience of description, a functional description is divided into various modules, respectively when the apparatus described in the above. 当然,在实施本申请时可以把各模块的功能在同一个或多个软件和/或硬件中实现。 Of course, the function of each module is implemented in one or more software and / or hardware at the time of application of the present embodiment.

[0072] 通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件平台的方式来实现。 [0072] By the above described embodiments can be seen, those skilled in the art can understand that the present application may be implemented by software plus a necessary universal hardware platform. 基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以保存在保存介质中,如R0M/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,信息推送服务器,或者网络设备等)执行本申请各个实施方式或者实施方式的某些部分所述的方法。 Based on such understanding, the technical solutions of the present application or the nature of the part contributing to the prior art may be embodied in a software product out of the computer software product may be stored in the storage medium, such as a R0M / RAM, magnetic disk, , an optical disc, and includes several instructions that enable a computer device (may be a personal computer, a information push server, or network device) to execute the method some parts of the various embodiments of the present application or embodiment.

[0073]以上所描述的装置实施方式仅仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。 [0073] The apparatus of the embodiment described above is merely illustrative, wherein the modules described as separate components may be or may not be physically separated, as a component of the display module may or may not be physical modules, i.e., it may be located in one place, or may be distributed on a plurality of network modules. 可以根据实际的需要选择其中的部分或者全部模块来实现本实施方式方案的目的。 Part or all of the modules may be selected according to actual needs to achieve the object of the embodiment of the present embodiment. 本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。 Those of ordinary skill in the art without creative efforts, can be understood and implemented.

[0074] 本申请可用于众多通用或专用的计算系统环境或配置中。 [0074] The present application can be used in numerous general purpose or special purpose computing system environments or configurations. 例如:个人计算机、信息推送服务器计算机、手持设备或便携式设备、平板型设备、多处理模块系统、基于微处理模块的系统、置顶盒、可编程的消费电子设备、网络PC、小型计算机、大型计算机、包括以上任何系统或设备的分布式计算环境等等。 For example: a personal computer, information push server computers, handheld or portable devices, tablet devices, multiprocessor systems processing module, microprocessor module based system, set-top boxes, programmable consumer electronics, network PC, minicomputers, mainframe computers, , a distributed computing environment comprising any of the above systems or devices, and the like.

[0075] 本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。 [0075] The present application may be described in the general context of computer-executable instructions, executed by a computer, such as program modules. 一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。 Generally, program modules include performing particular tasks or implement particular abstract data types routines, programs, objects, components, data structures, and the like. 也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。 This application may be practiced in a distributed computing environment, the distributed computing environments, where tasks are performed by remote processing devices that are linked through a communications network. 在分布式计算环境中,程序模块可以位于包括保存设备在内的本地和远程计算机保存介质中。 In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices, including the.

[0076] 应当理解,虽然本说明书按照实施方式加以描述,但并非每个实施方式仅包含一个独立的技术方案,说明书的这种叙述方式仅仅是为清楚起见,本领域技术人员应当将说明书作为一个整体,各实施方式中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。 [0076] It should be understood that while the present specification be described in terms of embodiments, but not every embodiment contains only a separate aspect, this narrative description only for the sake of clarity, those skilled in the art should be used as a specification overall, the embodiments of the technical solutions may be suitably combined to form other embodiments of the present art can be appreciated in the art.

[0077] 上文所列出的一系列的详细说明仅仅是针对本发明的可行性实施方式的具体说明,它们并非用以限制本发明的保护范围,凡未脱离本发明技艺精神所作的等效实施方式或变更均应包含在本发明的保护范围之内。 [0077] A series of the detailed description set forth above is merely for the feasibility of specifically described embodiments of the present invention, they are not intended to limit the scope of the present invention, who have not departing from the spirit of the present invention the equivalent skills made embodiment or changes be included within the scope of the present invention.

Claims (10)

  1. 1.一种报文发送速率检测方法,其特征在于,所述方法包括: 为待发送的报文设置一旁路的虚拟队列; 在报文转发的时,将所述报文额外地在所述虚拟队列中模拟排队行为,并记录所述报文的虚拟队列长度计数; 将所述虚拟队列长度计数和虚拟队列超量阈值进行比较; 若所述虚拟队列长度计数大于虚拟队列超量阈值,判定所述报文转发时,所述报文出端口处于超量发送状态。 A method for detecting packet transmission rate, characterized in that, the method comprising: setting a virtual queue bypass of packets to be transmitted; when forwarding packets, the packet additionally in the the queuing behavior simulation in the virtual queue, the virtual queue length count and record the message; the virtual queue length count and excess virtual queue threshold; if the virtual queue length count is greater than the threshold excess virtual queue, determined forwarding said packet, the packet port is a send state excessive.
  2. 2.根据权利要求1所述的报文发送速率检测方法,其特征在于,所述“在报文转发的时,将所述报文额外地在所述虚拟队列中模拟排队行为;”具体包括: 获取报文发送端口的原虚拟队列长度计数,在报文计划转发时,根据计划发送报文的长度计数,以及原虚拟队列长度计数更新当前虚拟队列长度计数; 更新后的当前所述虚拟队列长度计数=原虚拟队列长度计数+计划转发报文长度计数。 The packet transmission rate detection method according to claim 1, wherein said "when packet forwarding, the packet additionally in the virtual queue in the queuing behavior simulation;" specifically includes : Get original virtual queue length count packet transmission port, and when the packet forwarding program, scheduled to be transmitted according to the packet length count, as well as the original virtual queue length count update this virtual queue length count; the current update of the virtual queue the original virtual queue length count = count + length planned to forward the packet length count.
  3. 3.根据权利要求1所述的报文发送速率检测方法,其特征在于,所述方法还包括:设置一扫描周期,定时扫描所述虚拟队列长度计数,并按照预先设置的单次扫描扣减额,变更所述虚拟队列长度计数; 每个扫描周期后,更新后的所述虚拟队列长度计数=原虚拟队列长度计数-所述单次扫描扣减额; 若扣减后的虚拟队列长度计数为负数,则直接将其设置为零; 所述单次扫描扣减额为预设的每个扫描周期内报文发送端口发送报文的长度计数。 The packet transmission rate detection method according to claim 1, wherein said method further comprises: setting a scanning period, the scanning timing of the virtual queue length count, and deduction according to preset a single scan the amount of change of the virtual queue length count; after each scan cycle, the updated virtual queue length of the original virtual queue length count = count - the single scan deduction; virtual queue length count if the deduction it is negative, directly set to zero; packets within a single scan of said deduction amount for each scan cycle preset length count transmitting port to send the packet.
  4. 4.根据权利要求3所述的报文发送速率检测方法,其特征在于,所述方法还包括: 根据虚拟带宽评估速率,以及虚拟队列扫描频率计算单个扫描周期内虚拟队列长度的单次扫描扣减额; 所述单次扫描扣减额=虚拟带宽评估速率/虚拟队列扫描频率。 4. The packet transmission rate detection method according to claim 3, characterized in that, said method further comprising: calculating a virtual queue length within a single scanning period according to the single scan button virtual bandwidth estimator rate, and frequency scanning virtual queue Derate; deduction of the single scan rate = bandwidth estimator virtual / virtual queue scanning frequency.
  5. 5.根据权利要求1所述的报文发送速率检测方法,其特征在于,在“判定所述报文转发时,所述报文出端口处于超量发送状态”后,所述方法还包括: 将超量发送状态信息发送至外部处理中心。 The packet transmission rate detection method according to claim 1, characterized in that "it is determined to forward the packet, the packet port is a send state excessive" post, the method further comprising: transmitting status information is transmitted to the external excessive processing center.
  6. 6.一种报文发送速率检测装置,其特征在于,所述装置包括:为待发送的报文设置一旁路的虚拟队列; 所述虚拟队列中设置: 出口资源计数模块,在报文转发的时,将所述报文额外地在所述虚拟队列中模拟排队行为,并记录所述报文的虚拟队列长度计数; 流量监测模块,将所述虚拟队列长度计数和虚拟队列超量阈值进行比较; 若所述虚拟队列长度计数大于虚拟队列超量阈值,判定所述报文转发时,所述报文出端口处于超量发送状态。 A packet transmission rate detecting means, characterized in that said apparatus comprising: a packet to be transmitted is provided to bypass the virtual queue; the virtual queue is provided: an outlet resource count module, the packet forwarding in when the packet is additionally in the virtual queue in the queuing behavior simulation, and recording the count of the virtual queue length packet; flow monitoring module, the virtual queue length count and excess virtual queue threshold ; if the virtual queue length count is greater than the threshold value in the virtual queue excess, when it is determined to forward the packet, the packet transmission state of the port is in excess.
  7. 7.根据权利要求6所述的报文发送速率检测装置,其特征在于,所述出口资源计数模块还用于: 获取报文发送端口的原虚拟队列长度计数,在报文计划转发时,根据计划发送报文的长度计数,以及原虚拟队列长度计数更新当前虚拟队列长度计数; 更新后的当前所述虚拟队列长度计数=原虚拟队列长度计数+计划转发报文长度计数。 The packet transmission rate detecting apparatus according to claim 6, characterized in that the outlet module is further configured resource count: acquiring original virtual queue length count packet transmitting port, the packet forwarding scheme in accordance with scheduled to be transmitted packet length count, the original virtual queue length count and updates the current virtual queue length count; the current update of the virtual queue length count = count + original virtual queue length packet forwarding program length count.
  8. 8.根据权利要求6所述的报文发送速率检测装置,其特征在于, 所述出口资源计数模块还用于:设置一扫描周期,定时扫描所述虚拟队列长度计数,并按照预先设置的单次扫描扣减额,变更所述虚拟队列长度计数; 每个扫描周期后,更新后的所述虚拟队列长度计数=原虚拟队列长度计数-所述单次扫描扣减额; 若扣减后的虚拟队列长度计数为负数,则直接将其设置为零; 所述单次扫描扣减额为预设的每个扫描周期内报文发送端口发送报文的长度计数。 Provided with a single scanning period, the scanning timing of the virtual queue length count, and in accordance with the preset: 8. The packet transmission rate detecting apparatus according to claim 6, characterized in that the outlet module is further configured resource count scanning deduction changes the virtual queue length count; after each scan cycle, the updated virtual queue length of the original virtual queue length count = count - the single scan deduction; if after deduction virtual queue length count is negative, directly set to zero; packets within a single scan of said deduction amount for each predetermined transmission period length count port scan packets transmitted.
  9. 9.根据权利要求8所述的报文发送速率检测装置,其特征在于,所述出口资源计数模块具体用于: 根据虚拟带宽评估速率,以及虚拟队列扫描频率计算单个扫描周期内虚拟队列长度的单次扫描扣减额; 所述单次扫描扣减额=虚拟带宽评估速率/虚拟队列扫描频率。 9. The packet transmission rate detecting apparatus according to claim 8, characterized in that the outlet module is used for resource count: calculating a single virtual scanning period according to the length of the virtual queue bandwidth estimator rate, and frequency scanning virtual queue deductions single scan; said single scan deduction rate = bandwidth estimator virtual / virtual queue scanning frequency.
  10. 10.根据权利要求6所述的报文发送速率检测装置,其特征在于,所述虚拟通道中还设置: 超量发送状态汇报模块,用于在判定所述报文出端口处于超量发送状态后,将超量发送状态信息发送至外部处理中心。 10. The packet transmission rate detecting apparatus according to claim 6, wherein said virtual channel further provided: status report excessive transmission means for transmitting status in determining the excess packets in the port after the excess send status information to the external processing center.
CN 201410616915 2014-11-06 2014-11-06 Message sending rate detection method and device CN104301185A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201410616915 CN104301185A (en) 2014-11-06 2014-11-06 Message sending rate detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201410616915 CN104301185A (en) 2014-11-06 2014-11-06 Message sending rate detection method and device

Publications (1)

Publication Number Publication Date
CN104301185A true true CN104301185A (en) 2015-01-21

Family

ID=52320763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201410616915 CN104301185A (en) 2014-11-06 2014-11-06 Message sending rate detection method and device

Country Status (1)

Country Link
CN (1) CN104301185A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210785A (en) * 2016-08-12 2016-12-07 浙江宇视科技有限公司 Adaptive unidirectional control method and system for media stream network

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050047338A1 (en) * 2003-08-25 2005-03-03 Andiamo Systems, Inc., A Delaware Corporation Scalable approach to large scale queuing through dynamic resource allocation
US20090063698A1 (en) * 2007-09-04 2009-03-05 Aspera, Inc. Method and system for aggregate bandwith control
CN103346925A (en) * 2013-06-17 2013-10-09 盛科网络(苏州)有限公司 Message channel burst flow detection method and device based on ASIC

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050047338A1 (en) * 2003-08-25 2005-03-03 Andiamo Systems, Inc., A Delaware Corporation Scalable approach to large scale queuing through dynamic resource allocation
CN1826768A (en) * 2003-08-25 2006-08-30 思科技术公司 A scalable approach to large scale queuing through dynamic resource allocation
US20090063698A1 (en) * 2007-09-04 2009-03-05 Aspera, Inc. Method and system for aggregate bandwith control
CN101803304A (en) * 2007-09-04 2010-08-11 奥斯佩拉股份公司 Method and system for aggregate bandwidth control
CN103346925A (en) * 2013-06-17 2013-10-09 盛科网络(苏州)有限公司 Message channel burst flow detection method and device based on ASIC

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210785A (en) * 2016-08-12 2016-12-07 浙江宇视科技有限公司 Adaptive unidirectional control method and system for media stream network

Similar Documents

Publication Publication Date Title
US20130250765A1 (en) Delay based active queue management for uplink traffic in user equipment
Bai et al. Information-Agnostic Flow Scheduling for Commodity Data Centers.
US20160212065A1 (en) Controlling fair bandwidth allocation efficiently
US20060203730A1 (en) Method and system for reducing end station latency in response to network congestion
US20120151084A1 (en) Asynchronous virtual machine replication
US20130080652A1 (en) Dynamic runtime choosing of processing communication methods
US20130290969A1 (en) Operator graph changes in response to dynamic connections in stream computing applications
US20090003209A1 (en) Flow regulation switch
CN102111337A (en) Method and system for task scheduling
Nicol et al. Discrete event fluid modeling of background TCP traffic
US20130081042A1 (en) Dynamic reduction of stream backpressure
US20130124753A1 (en) Fair quantized congestion notification (fqcn) to mitigate transport control protocol (tcp) throughput collapse in data center networks
US20120278400A1 (en) Effective Circuits in Packet-Switched Networks
US7646781B2 (en) Methods, systems, and computer program products for selectively discarding packets
CN102035732A (en) Service scheduling method and device
US20140201388A1 (en) System and method for data transfer, including protocols for use in data transfer
CN1449156A (en) Method for controlling flow of data transmisison
US20100157803A1 (en) Method and system to manage network traffic congestion in networks with link layer flow control
CN103269260A (en) Data transmission method, data receiving terminal, data sending terminal and data transmission system
US20070226347A1 (en) Method and apparatus for dynamically changing the TCP behavior of a network connection
CN101692648A (en) Method and system for queue scheduling
Hughes-Jones et al. Performance of 1 and 10 Gigabit Ethernet cards with server quality motherboards
US20120250511A1 (en) Adjusting rate limits for transmission rates of data flows having a certain priority in a transmitter
Yoshino et al. Performance optimization of TCP/IP over 10 gigabit ethernet by precise instrumentation
CN102594675A (en) Traffic control system and method

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
RJ01