CN102055628B - Method of available bandwidth measurement and close link circuit positioning based on single pack column - Google Patents
Method of available bandwidth measurement and close link circuit positioning based on single pack column Download PDFInfo
- Publication number
- CN102055628B CN102055628B CN2011100048717A CN201110004871A CN102055628B CN 102055628 B CN102055628 B CN 102055628B CN 2011100048717 A CN2011100048717 A CN 2011100048717A CN 201110004871 A CN201110004871 A CN 201110004871A CN 102055628 B CN102055628 B CN 102055628B
- Authority
- CN
- China
- Prior art keywords
- bag
- packet
- link
- available bandwidth
- speed
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000005259 measurement Methods 0.000 title claims abstract description 67
- 238000000034 method Methods 0.000 title claims abstract description 38
- 230000009467 reduction Effects 0.000 claims abstract description 21
- 230000003247 decreasing effect Effects 0.000 claims description 8
- 230000008569 process Effects 0.000 claims description 7
- 230000005540 biological transmission Effects 0.000 claims description 6
- 230000004807 localization Effects 0.000 claims 14
- 238000001514 detection method Methods 0.000 abstract description 13
- 239000000523 sample Substances 0.000 abstract description 6
- 238000011895 specific detection Methods 0.000 abstract 1
- 230000008859 change Effects 0.000 description 7
- 238000002474 experimental method Methods 0.000 description 5
- 239000012321 sodium triacetoxyborohydride Substances 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000000691 measurement method Methods 0.000 description 3
- 238000004088 simulation Methods 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 1
- 230000002776 aggregation Effects 0.000 description 1
- 238000004220 aggregation Methods 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明涉及一种基于单包列同时进行可用带宽测量与紧链路定位的方法,包括如下步骤:发送端发送特定探测包列至目的节点;发送端根据目的节点返回的ICMP包计算探测包列经过每段链路后的延展情况及每个探测包所测得的往返时延(RTT);随后,发送端根据包列的延展情况定位紧链路,并确定开始保持恒定的往返时延所对应的降速包,计算该降速包发送时包列的平均发送速率作为路径可用带宽的测量值。本发明通过发送一次探测包列就可定位紧链路并测得可用带宽值,且具有测量精度高、测量速度快、入侵度低、健壮性强等优点。
The invention relates to a method for simultaneously measuring available bandwidth and locating tight links based on a single packet sequence, comprising the following steps: a sending end sends a specific detection packet sequence to a destination node; the sending end calculates the detection packet sequence according to the ICMP packet returned by the destination node The extension after each link and the round-trip delay (RTT) measured by each probe packet; then, the sender locates the tight link according to the extension of the packet column, and determines the time to maintain a constant round-trip delay. For the corresponding speed reduction packet, calculate the average sending rate of the packet row when the speed reduction packet is sent as the measurement value of the available bandwidth of the path. The invention can locate the tight link and measure the available bandwidth value by sending a detection packet sequence once, and has the advantages of high measurement precision, fast measurement speed, low intrusion degree, strong robustness and the like.
Description
技术领域 technical field
本发明涉及网络性能测量领域,特别涉及一种基于单包列同时进行可用带宽测量与紧链路定位的方法。The invention relates to the field of network performance measurement, in particular to a method for simultaneously measuring available bandwidth and locating tight links based on a single packet sequence.
背景技术 Background technique
可用带宽指在不影响背景流传输速率的情况下,链路还能为其他流提供的最大数据传输速率。各段链路中可用带宽最小的链路称为这条路径的紧链路(Tight Link)。紧链路的可用带宽也就是这段路径的可用带宽。端到端路径可用带宽是动态描述网络路径传输能力的重要参数,它能有效评估一条网络路径的实际承载能力和性能优劣。可用带宽和紧链路状况反映网络性能状况,对于监测网络性能、诊断网络运行状况、优化网络性能具有重要意义。可用带宽测量和紧链路定位对于拥塞控制、路由选择、流媒体应用、服务器的动态选择及服务质量(QoS)验证等应用具有重要意义。Available bandwidth refers to the maximum data transfer rate that a link can provide to other streams without affecting the transfer rate of background streams. The link with the smallest available bandwidth in each link is called the tight link of this path (Tight Link). The available bandwidth of the tight link is also the available bandwidth of this path. End-to-end path available bandwidth is an important parameter to dynamically describe the transmission capacity of a network path, and it can effectively evaluate the actual carrying capacity and performance of a network path. Available bandwidth and tight link status reflect network performance status, which is of great significance for monitoring network performance, diagnosing network operation status, and optimizing network performance. Available bandwidth measurement and tight link location are of great significance to applications such as congestion control, routing selection, streaming media applications, dynamic selection of servers, and quality of service (QoS) verification.
根据探测方式的不同,目前的可用带宽测量方法可分为包对法、包列法及基于模型的可用带宽测量方法。包对技术(Packet Pairs)利用包对在传输过程中的时间间隔(DispersionTime)的变化来估计可用带宽。包对技术衍生出了很多的算法和工具,如Spruce、IGI、Delphi、LinkPPQ等。包对技术测量可用带宽需基于紧链路和窄链路为同一链路的假设,该假设不成立时测量误差可能很大。包列技术通过发送一列或多列探测包得到可用带宽值,其原理是通过自负载的方法发送数据包使路径拥塞,通过分析包列中探测包的单向时延变化来估计可用带宽值。采用包列技术的典型方法有:Pathload、PathChirp、PTR,、YAZ、abget等。包列技术测量可用带宽的健壮性和稳定性比较强,但测量负载往往比较大。基于模型的测量方法也是可用带宽测量领域的一个重要方向,基本思想是将复杂的网络进行简化建模,通过发送少量的探测流收集路径信息后结合模型估测路径可用带宽,该方法对网络本身状态和背景流影响较小,但当模型不能准确刻画流量特征时,测量精度将难以保证。According to different detection methods, the current available bandwidth measurement methods can be divided into packet pair method, packet column method and model-based available bandwidth measurement method. Packet Pairs technology (Packet Pairs) uses the change of the time interval (DispersionTime) of the packet pair during transmission to estimate the available bandwidth. Packet technology has derived many algorithms and tools, such as Spruce, IGI, Delphi, LinkPPQ, etc. The measurement of available bandwidth by packet pair technology is based on the assumption that the tight link and the narrow link are the same link. If this assumption is not true, the measurement error may be large. Packet column technology obtains the available bandwidth value by sending one or more columns of probe packets. Its principle is to send data packets through the self-load method to congest the path, and estimate the available bandwidth value by analyzing the one-way delay change of the probe packets in the packet column. Typical methods using package technology include: Pathload, PathChirp, PTR, YAZ, abget, etc. The robustness and stability of measuring the available bandwidth of the package-column technology are relatively strong, but the measurement load is often relatively large. The model-based measurement method is also an important direction in the field of available bandwidth measurement. The basic idea is to simplify the modeling of the complex network, collect path information by sending a small amount of probe flow, and then combine the model to estimate the available bandwidth of the path. This method has no impact on the network itself. The state and background flow have little influence, but when the model cannot accurately describe the flow characteristics, the measurement accuracy will be difficult to guarantee.
目前比较著名的紧链路定位方法有BFind,DRPS,STAB,Pathneck。BFind方法是通过连续发送UDP数据流导致网络拥塞,并从traceroute测得的每条链路的往返时延(RTT)中推算紧链路位置。然而,BFind方法在一次定位过程中产生大量负载包,其入侵度不容忽视。DRPS方法是将数据包周期流性质与数据包挡板原理相结合,通过改变速率的切换时间来控制链路拥塞,在接收端通过拥塞识别技术来定位紧链路,它的缺点在于依赖于可用带宽测量,致使其定位精度直接受到可用带宽测量精度的影响。STAB方法通过测量子路径的可用带宽来进行紧链路定位,但它用pathChirp算法估计子路径可用带宽,测量精度不高且健壮性不足,从而影响紧链路定位精度。Pathneck方法采用了递归包列(RPT)技术确定紧链路的位置,它无需知道子路径或整条路径的可用带宽,便可以得到比较准确的定位结果,但它基于ICMP协议,若路径上的节点不开启ICMP功能则无法定位紧链路。Currently, well-known tight link location methods include BFind, DRPS, STAB, and Pathneck. The BFind method is to cause network congestion by continuously sending UDP data streams, and calculate the location of tight links from the round-trip time delay (RTT) of each link measured by traceroute. However, the BFind method generates a large number of payload packets during a positioning process, and its intrusion cannot be ignored. The DRPS method combines the nature of the periodic flow of data packets with the principle of data packet baffles, controls link congestion by changing the switching time of the rate, and uses congestion identification technology at the receiving end to locate tight links. Its disadvantage is that it depends on available Bandwidth measurement, so that its positioning accuracy is directly affected by the available bandwidth measurement accuracy. The STAB method performs tight link location by measuring the available bandwidth of the subpath, but it uses the pathChirp algorithm to estimate the available bandwidth of the subpath, and the measurement accuracy is not high and the robustness is insufficient, thus affecting the tight link location accuracy. The Pathneck method uses the Recursive Packet Column (RPT) technology to determine the position of the tight link. It does not need to know the available bandwidth of the sub-path or the entire path to obtain more accurate positioning results. However, it is based on the ICMP protocol. If the node does not enable the ICMP function, it cannot locate tight links.
此外,有一种基于紧链路定位的可用带宽测量的方法Pathtrait,它先定位出紧链路,再测量紧链路处的链路可用带宽。Pathtrait同Pathneck一样需要路径上的节点开启ICMP功能,其可用带宽测量依赖于紧链路定位结果,若紧链路定位错误,则可用带宽测量结果将直接受到影响。In addition, there is Pathtrait, a method for measuring available bandwidth based on tight link location. It first locates tight links, and then measures the link available bandwidth at tight links. Pathtrait, like Pathneck, requires nodes on the path to enable the ICMP function. Its available bandwidth measurement depends on the tight link location results. If the tight link location is wrong, the available bandwidth measurement results will be directly affected.
尽管存在多种定位紧链路的方法和测量可用带宽的方法,但仅有STAB在紧链路定位过程中可以同时得到可用带宽测量值。不过由于STAB采用pathChirp算法估计子路径可用带宽,测量精度不高且健壮性不足,致使可用带宽测量精度和紧链路定位精度都不高,且STAB需多次发送探测包列才能完成一次测量,其测量负载较大,测量时间较长。Although there are many methods for locating tight links and methods for measuring available bandwidth, only STAB can simultaneously obtain available bandwidth measurement values during the process of locating tight links. However, because STAB uses the pathChirp algorithm to estimate the available bandwidth of sub-paths, the measurement accuracy is not high and the robustness is not high enough, resulting in low measurement accuracy of available bandwidth and tight link positioning accuracy, and STAB needs to send detection packets multiple times to complete a measurement. The measurement load is large and the measurement time is long.
发明内容 Contents of the invention
本发明的目的在于提出一种基于单包列同时进行可用带宽测量与紧链路定位的方法。The purpose of the present invention is to propose a method for simultaneously measuring available bandwidth and locating tight links based on a single packet sequence.
为了达到上述目的,本发明提出的基于单包列同时进行可用带宽测量与紧链路定位的方法,包括:1)发送端基于待测路径的长度以背靠背方式发送多个TTL(Time to live)域值逐步增加的第一定位包,其中,最大的TTL域值不小于所述待测链路的节点数目n;2)发送端在发送完最后一个第一定位包后,持续以背靠背方式发送多个TTL域值不小于n的负载包,且各负载包的目的端口被设置为不可达端口,以便能触发目的节点端反馈回DU(ICMPdestination-unreachable)包;3)发送端在发送完最后一个负载包后,持续再以背靠背方式发送多个TTL域值逐步递减的第二定位包,其中,各第二定位包的TTL域值分别与一第一定位包的TTL域值相同;4)发送端在发送完最后一个第二定位包后,再以递减的速率发送多个TTL域值为n的降速包,且降速包的目的端口被设置为不可达端口,以便也能触发目的节点端反馈回DU包;5)发送端接收由所述待测链路的各节点基于相应的第一定位包和第二定位包反馈回的各TE(ICMP time-exceeded)包以及由目的节点端基于各负载包及降速包反馈回的DU包;6)发送端基于接收到的TTL域值相等的第一定位包和第二定位包各自对应的TE包的接收时间来确定包列经过相应链路的延展状况,进而根据预定阈值定位紧链路;7)发送端基于发送各负载包及降速包的发送时间、以及接收到各负载包及降速包相对应的DU包的接收时间,计算各包所测得的往返时延;8)发送端基于各包所测得的往返时延确定开始保持恒定的往返时延所对应的降速包;9)发送端计算所确定的降速包发送时包列的平均发送速率作为可用带宽的测量值。In order to achieve the above object, the method for simultaneously performing available bandwidth measurement and tight link location based on a single packet sequence proposed by the present invention includes: 1) the sending end sends multiple TTLs (Time to live) in a back-to-back manner based on the length of the path to be measured The first positioning packet whose domain value gradually increases, wherein the maximum TTL domain value is not less than the number n of nodes of the link to be tested; 2) after the sending end sends the last first positioning packet, it continues to send in a back-to-back manner Multiple payload packets whose TTL field value is not less than n, and the destination port of each payload packet is set as an unreachable port, so as to trigger the destination node to feed back a DU (ICMPdestination-unreachable) packet; After a load packet, continue to send a plurality of second positioning packets with gradually decreasing TTL domain values in a back-to-back manner, wherein the TTL domain values of each second positioning packet are respectively identical to the TTL domain values of a first positioning packet; 4) After sending the last second positioning packet, the sender sends multiple speed-down packets with a TTL domain value of n at a decreasing rate, and the destination port of the speed-down packet is set as an unreachable port, so as to also trigger the destination port. The node side feeds back the DU packet; 5) the sending end receives each TE (ICMP time-exceeded) packet fed back by each node of the link to be tested based on the corresponding first positioning packet and the second positioning packet and the TE (ICMP time-exceeded) packet fed back by the destination node DU packets fed back by the end based on each load packet and deceleration packet; 6) The sending end determines the packet sequence based on the receiving time of the TE packets corresponding to the first positioning packet and the second positioning packet with the same TTL field value received. The extension status of the corresponding link, and then locate the tight link according to the predetermined threshold; 7) The sending end is based on the sending time of sending each load packet and deceleration packet, and receiving the DU packet corresponding to each load packet and deceleration packet time, calculate the measured round-trip delay of each packet; 8) the sending end determines the slow-down packet corresponding to the constant round-trip delay based on the measured round-trip delay of each packet; 9) the sending end calculates the determined The average send rate of the packet column when the slow packet is sent is used as a measure of the available bandwidth.
综上所述,本发明所述的基于单包列同时进行可用带宽测量与紧链路定位的方法只需通过发送一条包列,即可实现紧链路定位和可用带宽的测量。To sum up, the method for simultaneously performing available bandwidth measurement and tight link location based on a single packet sequence in the present invention can realize tight link location and available bandwidth measurement only by sending one packet sequence.
附图说明 Description of drawings
图1为本发明所述的基于单包列同时进行可用带宽测量与紧链路定位的方法的流程图。FIG. 1 is a flowchart of a method for simultaneously performing available bandwidth measurement and tight link location based on a single packet sequence according to the present invention.
图2为本发明所述的基于单包列同时进行可用带宽测量与紧链路定位的方法所发送的包列示意图。FIG. 2 is a schematic diagram of packets sent by the method for simultaneously performing available bandwidth measurement and tight link location based on a single packet sequence according to the present invention.
图3为本发明所述的基于单包列同时进行可用带宽测量与紧链路定位的方法所计算出的往返时延示意图。FIG. 3 is a schematic diagram of the round-trip time delay calculated by the method of simultaneously performing available bandwidth measurement and tight link location based on a single packet sequence according to the present invention.
图4为仿真实验所采用的恒定背景流实验拓扑图。Figure 4 is the topological diagram of the constant background flow experiment used in the simulation experiment.
图5为仿真实验所采用的突发背景流实验拓扑图。Figure 5 is a topology diagram of the burst background flow experiment used in the simulation experiment.
具体实施方式 Detailed ways
请参阅图1,本发明所述的基于单包列同时进行可用带宽测量与紧链路定位的方法包括以下步骤:Referring to Fig. 1, the method for simultaneously performing available bandwidth measurement and tight link location based on a single packet column according to the present invention includes the following steps:
首先,在步骤S11中,发送端基于待测链路的长度以背靠背方式发送多个TTL域值逐步增加的第一定位包,其中,最大的TTL域值不小于所述待测链路的节点数目n。例如,如图2所示,发送端以背靠背的方式发送TTL域值由1逐步增加至n的n个第一定位包。为减小紧链路定位误差,第一定位包的大小应尽量小。First, in step S11, the sending end sends a plurality of first positioning packets with gradually increasing TTL field values in a back-to-back manner based on the length of the link to be tested, wherein the largest TTL field value is not less than the node of the link to be tested number n. For example, as shown in FIG. 2 , the sending end sends n first positioning packets whose TTL field values gradually increase from 1 to n in a back-to-back manner. In order to reduce the tight link positioning error, the size of the first positioning packet should be as small as possible.
接着,在步骤S12中,发送端在发送完最后一个第一定位包后,持续以背靠背方式发送多个TTL域值不小于n的负载包,且各负载包的目的端口被设置为不可达端口,以便能触发目的节点端反馈回DU包。如图2所示,发送端在发送完n个第一定位包后,即刻发送d个负载包,每一负载包的TTL域值为n。Next, in step S12, after sending the last first positioning packet, the sending end continues to send multiple payload packets with a TTL domain value not less than n in a back-to-back manner, and the destination port of each payload packet is set as an unreachable port , so as to trigger the destination node to feed back the DU packet. As shown in FIG. 2 , after sending n first positioning packets, the sending end immediately sends d payload packets, and the TTL field value of each payload packet is n.
接着,在步骤S13中,发送端在发送完最后一个负载包后,持续再以背靠背方式发送多个TTL域值逐步递减的第二定位包;其中,各第二定位包的TTL域值分别与一第一定位包的TTL域值相同。如图2所示,发送端以背靠背方式发送TTL域值从n逐步递减至1的n个第二定位包,第二定位包采用与第一定位包相同大小的包。Then, in step S13, after sending the last load packet, the sending end continues to send a plurality of second positioning packets with gradually decreasing TTL domain values in a back-to-back manner; wherein, the TTL domain values of each second positioning packets are respectively the same as The TTL field value of a first positioning packet is the same. As shown in FIG. 2 , the sending end sends n second positioning packets whose TTL domain values gradually decrease from n to 1 in a back-to-back manner, and the second positioning packets use the same size as the first positioning packets.
接着,在步骤S14中,发送端在发送完最后一个第二定位包后,再以递减的速率发送多个TTL域值为n的降速包,且降速包的目的端口被设置为不可达端口,以便也能触发目的节点端反馈回DU包。如图2所示,例如,发送端发送降速包时以指数形式逐步降低整个探测包列的平均发送速率,例如,发送第i个降速包时包列的平均发送速率Ri为发送第i+1个降速包时包列的平均发送速率Ri+1的α(α>1)倍等。Next, in step S14, after sending the last second positioning packet, the sender sends a plurality of speed-down packets with a TTL domain value of n at a decreasing rate, and the destination port of the speed-down packet is set as unreachable port, so as to also trigger the feedback of DU packets from the destination node. As shown in Figure 2, for example, when the sender sends the speed-down packet, it gradually reduces the average sending rate of the entire detection packet column exponentially. For example, when sending the i-th speed-down packet, the average sending rate Ri of the packet column is α (α>1) times the average sending rate R i+1 of the packet column when +1 speed-down packet is added.
接着,在步骤S15中,发送端接收由所述待测链路的各节点基于相应的第一定位包和第二定位包反馈回的各TE包以及由目的节点端基于各负载包及降速包反馈回的DU包。基于发送端所发送的各包的TTL域值在每经过一个中间节点后就会减1的特性,探测包列经过待测路径的每个中间节点,都将会有一个第一定位包和一个第二定位包因TTL域值减为0而被丢弃,从而使该中间节点向发送端反馈回2个TE包,进而,发送端将会收到2n个来自中间节点返回的TE包。而由于各负载包和降速包的TTL域值不小于n,且目的端口不可达,故当各负载包和降速包到达目的节点后,会触发目的节点反馈回DU(destination-unreachable)包。故发送端会陆续接收到目的节点端反馈回的各DU包。Next, in step S15, the sending end receives each TE packet fed back by each node of the link to be tested based on the corresponding first positioning packet and the second positioning packet, and the destination node side based on each load packet and speed reduction The DU package that the package feeds back. Based on the characteristic that the TTL field value of each packet sent by the sender will decrease by 1 every time it passes through an intermediate node, each intermediate node of the detection packet passing through the path to be tested will have a first positioning packet and a The second positioning packet is discarded because the TTL domain value is reduced to 0, so that the intermediate node feeds back 2 TE packets to the sender, and then the sender will receive 2n TE packets returned from the intermediate node. Since the TTL domain value of each load packet and speed reduction packet is not less than n, and the destination port is unreachable, when each load packet and speed reduction packet arrives at the destination node, it will trigger the destination node to feed back a DU (destination-unreachable) packet . Therefore, the sending end will successively receive the DU packets fed back by the destination node.
接着,在步骤S16中,发送端基于接收到TTL域值相等的第一定位包和第二定位包各自对应的TE包的接收时间来确定包列经过相应链路后的延展状况,进而根据预定阈值定位紧链路。例如,发送端将接收到2n个来自中间节点返回的TE包,而来自同一个节点的先后到达的2个TE包(即根据第一定位包反馈的TE包和根据第二定位包反馈回的TE包)的时间间隔即为包列经过该节点前一跳路径后的包列长度,根据n个节点返回的n对TE包可以得到包列经过每段链路后的包列长度,即可知道包列经过每条链路后的延展情况,随后,发送端将延展超过预定阈值的最后一跳链路定位为待测路径的紧链路。Next, in step S16, based on the receiving time of the TE packets corresponding to the first positioning packet and the second positioning packet with the same TTL field value, the sending end determines the extension status of the packet column after passing through the corresponding link, and then according to the predetermined Threshold locates tight links. For example, the sending end will receive 2n TE packets returned from the intermediate node, and the 2 TE packets arriving successively from the same node (that is, the TE packet fed back according to the first positioning packet and the TE packet fed back according to the second positioning packet TE packet) is the length of the packet sequence after the packet sequence passes through the previous hop path of the node. According to the n pairs of TE packets returned by n nodes, the packet sequence length after the packet sequence passes through each link can be obtained. Knowing the extension of the packet after passing through each link, the sending end then locates the last hop link whose extension exceeds a predetermined threshold as the tight link of the path to be tested.
接着,在步骤S17中,发送端基于各负载包及降速包的发送时间、以及各负载包及降速包相对应的DU包的接收时间,计算各包所测得的往返时延。例如,发送端在12:30:00发送了第i个负载包,在12:30:05接收到目的节点基于第i个负载包反馈回的DU包,故发送端可计算出第i个负载包的包往返时延为:12:30:05-12:30:00=5秒钟。Next, in step S17, the sending end calculates the measured round-trip delay of each packet based on the sending time of each load packet and the speed reduction packet and the receiving time of the DU packet corresponding to each load packet and the speed reduction packet. For example, the sender sends the i-th payload packet at 12:30:00, and receives the DU packet fed back by the destination node based on the i-th payload packet at 12:30:05, so the sender can calculate the i-th payload The round-trip delay of the packet is: 12:30:05-12:30:00=5 seconds.
接着,在步骤S18中,发送端根据各包所测得的往返时延确定开始保持恒定的往返时延所对应的降速包。由于包列的发送方式是先背靠背地发送一些负载包,这些包在紧链路不断堆积,排队时延不断增加,致使后面发送的降速包的排队时延也将逐渐增加,从而往返时延也逐渐增加。当包列的平均发送速率下降到一定程度时,紧链路处的缓冲区中数据包的堆积情况逐渐缓解,探测包的排队时延逐渐减小,从而往返时延也逐渐减小,当某个探测包到达紧链路时拥塞恰好消除,那么从该包开始的各探测包所测得的往返时延将保持不变,包列中各包所测得的往返时延变化如图3所示。由上述分析可知,发送端基于所计算出的各往返时延的变化,可确定开始保持恒定的往返时延所对应的降速包。例如自第k个降速包开始,计算出的往返时延基本趋于一致,故发送端可确定第k个降速包作为开始保持恒定的往返时延所对应的降速包。Next, in step S18 , the sending end determines, according to the measured round-trip delay of each packet, the deceleration packet corresponding to the round-trip delay that starts to be kept constant. Since the way of sending packets is to send some load packets back-to-back first, these packets keep piling up on the tight link, and the queuing delay continues to increase, so that the queuing delay of the deceleration packets sent later will also gradually increase, thus the round-trip delay also gradually increased. When the average sending rate of the packet column drops to a certain level, the accumulation of data packets in the buffer at the tight link is gradually relieved, and the queuing delay of the detection packet is gradually reduced, so the round-trip delay is also gradually reduced. When the first detection packet arrives at the tight link, the congestion is just eliminated, then the round-trip delay measured by each detection packet starting from this packet will remain unchanged, and the round-trip delay measured by each packet in the packet column changes as shown in Figure 3 Show. From the above analysis, it can be seen that based on the calculated changes in each round-trip delay, the sending end can determine the deceleration packet corresponding to the initial constant round-trip delay. For example, the calculated round-trip delay basically tends to be the same starting from the kth speed-down packet, so the sender can determine the k-th speed-down packet as the speed-down packet corresponding to the initial constant round-trip delay.
接着,在步骤S19中,发送端基于所确定的降速包,计算该包发送时包列的平均速率作为可用带宽的测量值。可用带宽值avbw的计算公式如下:Next, in step S19, based on the determined deceleration packet, the sending end calculates the average rate of the packet train when the packet is sent as the measured value of the available bandwidth. The formula for calculating the available bandwidth value avbw is as follows:
其中,S1为负载包和降速包的大小,S2为定位包的大小,d为负载包的个数,k为往返时延下降至恒定的降速包的序号,t为从开始发送第1个负载包到发送第k个降速包所需要的时间,m为到达紧链路处的第一定位包的个数(到达紧链路处的第二定位包的个数亦为m)。Among them, S 1 is the size of the load packet and the speed reduction packet, S 2 is the size of the positioning packet, d is the number of load packets, k is the sequence number of the speed reduction packet whose round-trip delay is reduced to a constant, and t is the number of the speed reduction packet from the beginning of sending The time required from the first load packet to sending the kth deceleration packet, m is the number of first positioning packets arriving at the tight link (the number of second positioning packets arriving at the tight link is also m ).
需要说明的是,本领域技术人员应该理解,上述各步骤的顺序并非以所示为限,事实上,步骤S16也可以在步骤S17之后执行,还可以在步骤S18之后执行等等。It should be noted that those skilled in the art should understand that the order of the above steps is not limited to what is shown, in fact, step S16 may also be performed after step S17, or may be performed after step S18, and so on.
一:实验验证1: Experimental verification
为验证本发明的测量性能,使用网络研究领域广泛采用的NS2进行仿真实验。由于该方法是一个端到端测量工具,因此采用只有一条线性主干路径的实验拓扑,拓扑中各路由器均采用先进先出的调度策略,缓冲区采用队尾丢弃策略。拓扑中所有链路均为双向对称的链路,容量均为100Mbps。In order to verify the measurement performance of the present invention, a simulation experiment is carried out using NS2 which is widely used in the field of network research. Since this method is an end-to-end measurement tool, an experimental topology with only one linear backbone path is adopted. Each router in the topology adopts the first-in-first-out scheduling strategy, and the buffer adopts the end-of-queue discarding strategy. All links in the topology are bidirectional symmetrical links with a capacity of 100Mbps.
1恒定背景流情况1 Constant background flow case
实验拓扑如图4所示,发送端Snd到接收端Rcv的路径P依次经过路由器n1,n2,n3...n8,背景流1为贯穿n1,n2...n8的恒定比特率背景流,它是一条单独的背景流;背景流2和背景流3分别为只经过L4和L7的恒定比特率背景流,它们均由多条恒定背景流混合而成,在实验过程中,通过设置各背景流产生和结束时间来控制L4和L7上的流量大小变化。The experimental topology is shown in Figure 4. The path P from the sending end Snd to the receiving end Rcv passes through routers n1, n2, n3...n8 in turn, and the
1.1一条紧链路情况1.1 A tight link situation
在图4所示的拓扑中,设置背景流1的流量大小恒为30Mbps,设置背景流2的大小恒为10Mbps,0-10秒背景流3的大小为40Mbps,10-20秒背景流3的大小变为30Mbps,20-30秒背景流3的大小变为20Mbps,包大小均为1000bytes。这样设置后,L4上流量大小恒为40Mbps,L7上的流量大小逐渐接近但恒大于L4上的流量大小,整个测量过程中紧链路恒为L7,但随着L7上流量逐渐接近L4上的流量,定位紧链路的难度也逐渐加大。In the topology shown in Figure 4, set the traffic size of
实验结果如表1所示,紧链路定位和可用带宽测量精确度都很高。22次测量过程中,紧链路定位全部正确;可用带宽测量误差均很小,最大相对误差仅为2.18%,平均相对误差为0.86%。实验结果说明,本发明的方法在恒定背景流单紧链路情况下,紧链路定位和可用带宽测量精度高且健壮性强。The experimental results are shown in Table 1. The accuracy of tight link location and available bandwidth measurement is very high. During the 22 measurements, the location of the tight link is all correct; the measurement error of the available bandwidth is very small, the maximum relative error is only 2.18%, and the average relative error is 0.86%. Experimental results show that the method of the present invention has high accuracy and strong robustness in tight link location and available bandwidth measurement under the condition of constant background flow and single tight link.
表1:单紧链路实验结果Table 1: Experimental results of a single tight link
1.2两条紧链路情况1.2 Two tight links
在图4所示的拓扑中,设置背景流1的大小恒为30Mbps,0-10秒背景流2和3的大小同为30Mbps,10-20秒背景流2和3的大小均变为20Mbps,20-30秒背景流2和3的大小均变为10Mbps,包大小均为1000bytes。在整个测量过程中,L4和L7上的流量大小相同且大于其他链路上的流量大小,即L4和L7同为紧链路。而pathrader每次只给出一条链路作为定位结果,根据其算法思想应给出第一条紧链路作为定位结果,即应给出L4为正确定位结果。在实验中设置两条紧链路上流量逐渐减小以使与它们相邻链路的流量大小逐渐接近,从而逐渐增大紧链路定位难度,更有效地验证pathrader的性能。In the topology shown in Figure 4, set the size of
实验结果如表2所示,22次实验过程中2次紧链路定位错误,这两次错误定位的结果均为第二条紧链路L7,定位相对误差为9.09%,表现出很好的定位效果;可用带宽测量的最大相对误差为2.01%,平均相对误差为0.82%,表现出很高的精确度和很强的健壮性。The experimental results are shown in Table 2. In the course of 22 experiments, there were 2 tight link positioning errors. The result of these two wrong positionings was the second tight link L7, and the relative positioning error was 9.09%, showing a very good performance. Positioning effect; the maximum relative error of available bandwidth measurement is 2.01%, and the average relative error is 0.82%, showing high accuracy and strong robustness.
表2双紧链路实验结果Table 2 Experimental results of double tight links
2突发背景流情况2Sudden background flow situation
实验拓扑如图5所示,链路L4上的背景流由100条符合Pareto分布的流汇集而成,链路L7上的背景流由200条符合Pareto分布的流汇集而成,以模拟突发性的背景流,Pareto流的包大小设置为:包大小为40/550/1500bytes的数据包在负载中所占的比例分别为50%、40%、10%,Pareto分布形状参数α=1.9。这是因为多个服从参数α<2的Pareto分布的流聚合后表现出自相似特征。L4与L7上的包发送速率分别为20Mbps和40Mbps,这样设置是为了L4和L7上流量大小差异较为明显以明确紧链路位置,否则可能由于L4与L7上背景流量的突发变化而致使紧链路位置频繁变化而难以明确测量时刻的紧链路位置。The experimental topology is shown in Figure 5. The background flow on link L4 is composed of 100 flows conforming to the Pareto distribution, and the background flow on link L7 is composed of 200 flows conforming to the Pareto distribution to simulate a burst The packet size of the Pareto flow is set as follows: the data packets with a packet size of 40/550/1500bytes account for 50%, 40%, and 10% of the load respectively, and the Pareto distribution shape parameter α=1.9. This is because multiple streams that obey the Pareto distribution with parameter α < 2 show self-similar characteristics after aggregation. The packet transmission rates on L4 and L7 are 20Mbps and 40Mbps respectively. This setting is for the obvious difference in traffic size between L4 and L7 to clarify the location of tight links. Otherwise, the sudden change of background traffic on L4 and L7 may cause tight links. The link position changes frequently and it is difficult to determine the tight link position at the time of measurement.
测量结果如表3所示,22次测量过程中,出现1次定位错误,定位误差率为4.55%;可用带宽测量的最大相对误差为11.2%,平均测量相对误差为3.13%,除一次外,相对误差均小于10%。说明突发背景下,pathrader进行紧链路定位和可用带宽测量仍表现出很高的测量精度和很强的健壮性。The measurement results are shown in Table 3. During the 22 measurements, there was one positioning error, and the positioning error rate was 4.55%. The maximum relative error of the available bandwidth measurement was 11.2%, and the average measurement relative error was 3.13%. The relative errors are all less than 10%. It shows that under the background of bursts, pathrader still shows high measurement accuracy and strong robustness for tight link location and available bandwidth measurement.
表3突发背景流下实验结果Table 3 Experimental results of burst background flow
二、性能分析:2. Performance analysis:
1、测量精度1. Measurement accuracy
本发明方法进行紧链路定位是通过找到最后一次包列延展超过一定阈值时所经过的链路作为紧链路。由于包列经过一条链路后的延展情况受包列在该链路的输入速率、该段链路上的背景流速率及链路容量共同影响,包列延展情况并不能作为判断紧链路的全部依据,因此理论上定位紧链路有一定的误差,且判断阈值的选择也会影响定位精度。The method of the present invention locates the tight link by finding the link passed when the last packet sequence extension exceeds a certain threshold as the tight link. Since the extension of a packet row after passing through a link is affected by the input rate of the packet row on the link, the background flow rate on the link, and the link capacity, the extension of the packet row cannot be used as an indicator for judging a tight link. Therefore, theoretically, there is a certain error in locating tight links, and the selection of the judgment threshold will also affect the positioning accuracy.
由于本发明中的包列的发送速率下降过程中表现出一系列不断减小的离散的值,当待测可用带宽值在某相邻两个值之间时,必然会产生理论误差。理论误差受递减因子设置影响,递减因子越小理论误差越小。Since the sending rate of the packet column in the present invention shows a series of continuously decreasing discrete values, when the available bandwidth value to be measured is between two adjacent values, a theoretical error will inevitably occur. The theoretical error is affected by the setting of the decrement factor, the smaller the decrement factor, the smaller the theoretical error.
在实际测量过程中,探测包的往返时延受反向路径上的流量大小影响,从而根据判断往返时延开始保持恒定的包来确定可用带宽可能会产生误差,但本发明的测量时间很短,在很短时间内反向路径上的流量大小变化很大的可能性很小,因此反向背景流变化对测量精度产生的影响会比较小。In the actual measurement process, the round-trip delay of the detection packet is affected by the flow size on the reverse path, so that errors may occur in determining the available bandwidth based on the packets whose round-trip delay begins to remain constant, but the measurement time of the present invention is very short , it is very unlikely that the magnitude of the flow on the reverse path will change greatly in a short period of time, so the impact of changes in the reverse background flow on the measurement accuracy will be relatively small.
2、测量时间2. Measurement time
本发明完成一次测量(包括紧链路定位和可用带宽测量)的时间为开始发送包列的时间到接收到某ICMP包以确定往返时延开始保持恒定为止。本发明的测量时间受包列发送速率下降速度和探测包往返时延的影响。其中包列发送速率下降速度受初始下降速率和递减因子的设置影响。总体上,由于本发明发送一次探测包列就可完成测量,测量时间很短。The time for the present invention to complete a measurement (including tight link location and available bandwidth measurement) is from the time when the packet column is sent to the time when a certain ICMP packet is received to determine that the round-trip delay is kept constant. The measurement time of the present invention is affected by the descending speed of the sending rate of the packet train and the round-trip delay of the detection packet. Among them, the drop speed of the sending rate of packets is affected by the settings of the initial drop rate and the decrease factor. Generally speaking, since the invention can complete the measurement by sending a detection packet sequence once, the measurement time is very short.
3、测量负载3. Measure the load
测量负载指一次测量过程中所产生的负载量。本发明一次测量发送一条包列,该包列的实际负载量即为测量负载。本发明的测量负载跟负载包的个数、定位包的个数、初始下降速率、递减因子及待测可用带宽值相关。通过设置合理的参数,可使本发明的测量负载控制在很小的范围内。Measurement load refers to the amount of load generated during a measurement. The present invention sends a packet row for one measurement, and the actual load of the packet row is the measurement load. The measurement load of the present invention is related to the number of load packets, the number of positioning packets, the initial descending rate, the decrement factor and the value of available bandwidth to be measured. By setting reasonable parameters, the measurement load of the present invention can be controlled within a small range.
4、健壮性4. Robustness
由于本发明进行紧链路定位的时间很短,在很短的时间内路径上的背景流变化的可能性很小,因此本发明受突发背景流影响小,健壮性强。由图3可知,包列的往返时延值的总体变化趋势是先上升后下降至恒定,在此过程中若受到突发背景流的影响会造成上升或下降的趋势不同。若背景流流量增加,则探测流排队加剧,往返时延下降变缓,则往返时延开始保持恒定的包的序列号增大,所测得的可用带宽值减小;反之,若背景流流量减小,则探测流排队减缓,往返时延下降加快,则往返时延下降至开始保持恒定的探测包的序列号减小,所测得的可用带宽值增大。这就保证了本发明在突发背景流下进行可用带宽测量具有较高的健壮性。Since the time for the present invention to locate tight links is very short, the possibility of background flow changes on the path is very small within a very short time, so the present invention is less affected by sudden background flows and has strong robustness. It can be seen from Fig. 3 that the overall change trend of the round-trip delay value of the packet column is to rise first and then fall to a constant value. In the process, if it is affected by the sudden background flow, the rising or falling trends will be different. If the traffic of the background flow increases, the queuing of the detection flow will intensify, and the decrease of the round-trip delay will slow down, then the sequence number of the packet whose round-trip delay begins to remain constant will increase, and the measured available bandwidth value will decrease; on the contrary, if the traffic of the background flow If the value is reduced, the queuing of the probe flow will be slowed down, and the round-trip delay will decrease faster, and the sequence number of the probe packet will decrease until the round-trip delay drops to a constant value, and the measured available bandwidth value will increase. This ensures that the present invention has high robustness in measuring the available bandwidth under bursty background flows.
综上所述,本发明的基于单包列同时进行可用带宽测量与紧链路定位的方法实现了通过单包列在单端同时进行紧链路定位和可用带宽测量,本发明测量精度高、测量速度快、入侵度低、健壮性强。In summary, the method for simultaneously performing available bandwidth measurement and tight link location based on a single-packet column in the present invention realizes simultaneous tight link location and available bandwidth measurement at a single end through a single-packet column. The present invention has high measurement accuracy, Fast measurement speed, low intrusion, strong robustness.
上述实施例仅列示性说明本发明的原理及功效,而非用于限制本发明。任何熟悉此项技术的人员均可在不违背本发明的精神及范围下,对上述实施例进行修改。因此,本发明的权利保护范围,应如权利要求书所列。The above-mentioned embodiments only illustrate the principles and functions of the present invention, but are not intended to limit the present invention. Anyone skilled in the art can make modifications to the above-mentioned embodiments without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention should be listed in the claims.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011100048717A CN102055628B (en) | 2011-01-11 | 2011-01-11 | Method of available bandwidth measurement and close link circuit positioning based on single pack column |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011100048717A CN102055628B (en) | 2011-01-11 | 2011-01-11 | Method of available bandwidth measurement and close link circuit positioning based on single pack column |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102055628A CN102055628A (en) | 2011-05-11 |
CN102055628B true CN102055628B (en) | 2012-07-04 |
Family
ID=43959584
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011100048717A Expired - Fee Related CN102055628B (en) | 2011-01-11 | 2011-01-11 | Method of available bandwidth measurement and close link circuit positioning based on single pack column |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102055628B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104113446A (en) * | 2014-07-03 | 2014-10-22 | 南京航空航天大学 | Method for measuring single-end available bandwidth in unexpected background flow environment |
CN110098976B (en) * | 2019-04-08 | 2021-01-15 | 京信通信系统(中国)有限公司 | Network parameter measuring method and device, computer equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1658583A (en) * | 2005-03-10 | 2005-08-24 | 同济大学 | A method for end-to-end available bandwidth measurement based on network tight link location |
CN101018161A (en) * | 2006-09-08 | 2007-08-15 | 中山大学 | A link, path, and network availability bandwidth measurement method |
CN101340318A (en) * | 2008-08-15 | 2009-01-07 | 同济大学 | Available Bandwidth Measurement Method for Drop-Rate Probe Packets |
CN101895417A (en) * | 2010-07-06 | 2010-11-24 | 同济大学 | Positioning method for tight link based on available bandwidth of subpaths |
-
2011
- 2011-01-11 CN CN2011100048717A patent/CN102055628B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1658583A (en) * | 2005-03-10 | 2005-08-24 | 同济大学 | A method for end-to-end available bandwidth measurement based on network tight link location |
CN101018161A (en) * | 2006-09-08 | 2007-08-15 | 中山大学 | A link, path, and network availability bandwidth measurement method |
CN101340318A (en) * | 2008-08-15 | 2009-01-07 | 同济大学 | Available Bandwidth Measurement Method for Drop-Rate Probe Packets |
CN101895417A (en) * | 2010-07-06 | 2010-11-24 | 同济大学 | Positioning method for tight link based on available bandwidth of subpaths |
Also Published As
Publication number | Publication date |
---|---|
CN102055628A (en) | 2011-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102045219B (en) | High-efficiency single-end available bandwidth measuring method | |
CN101026509B (en) | End-to-end low available bandwidth measuring method | |
CN100553230C (en) | A Collaborative Congestion Control Method for High-Speed Networks | |
Jung et al. | Adaptive delay-based congestion control for high bandwidth-delay product networks | |
US20140254376A1 (en) | Methods and Apparatus for Using a Layered Gear to Analyze and Manage Real-Time Network Quality of Service Transmission for Mobile Devices on Public Networks | |
CN107426102A (en) | Multipath parallel transmission dynamic decision method based on path quality | |
JP5029125B2 (en) | Available bandwidth estimation system, stream data distribution system, method, and program | |
CN101895417B (en) | Positioning method for tight link based on available bandwidth of subpaths | |
WO2020244448A1 (en) | Congestion control method and device, and computer-readable medium | |
CN101964727B (en) | Method and device for measuring available bandwidth by using mixed messages | |
CN103825775B (en) | The multi-hop wireless network available bandwidth real-time detection method of self-adaptive detection bag length | |
CN101119240A (en) | A Method of Effective Bandwidth Measurement Based on PGM | |
CN101572634B (en) | Method for utilizing cross-correlation function to passively measure TCP connection round-trip delay | |
WO2012167685A1 (en) | Method and device for monitoring packet-loss rate based on fpga | |
WO2010094035A1 (en) | Efficient and loss tolerant method and mechanism for measuring available bandwidth | |
EP2936741B1 (en) | Probing a network | |
US11996997B2 (en) | Round-trip packet loss measurement in a packet-switched communication network | |
CN102055628B (en) | Method of available bandwidth measurement and close link circuit positioning based on single pack column | |
CN100446479C (en) | A method for end-to-end available bandwidth measurement based on network tight link location | |
CN101340318B (en) | Available bandwidth measuring method of rate lowered bougie package | |
CN104113446A (en) | Method for measuring single-end available bandwidth in unexpected background flow environment | |
EP3085021B1 (en) | Probing a network | |
CN113194007B (en) | Method, system and equipment for measuring available bandwidth of network and readable storage medium | |
EP2719104B1 (en) | Methods and apparatus for using a layered gear to analyze and manage real-time network quality of service transmission for mobile devices on public networks | |
Tran et al. | Accurate available bandwidth measurement with packet batching mitigation for high speed networks |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120704 Termination date: 20150111 |
|
EXPY | Termination of patent right or utility model |