WO2020103423A1 - 带宽测试方法及装置、存储介质 - Google Patents

带宽测试方法及装置、存储介质

Info

Publication number
WO2020103423A1
WO2020103423A1 PCT/CN2019/090055 CN2019090055W WO2020103423A1 WO 2020103423 A1 WO2020103423 A1 WO 2020103423A1 CN 2019090055 W CN2019090055 W CN 2019090055W WO 2020103423 A1 WO2020103423 A1 WO 2020103423A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
bandwidth
oam
bits
oam message
Prior art date
Application number
PCT/CN2019/090055
Other languages
English (en)
French (fr)
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
Application filed by 盛科网络(苏州)有限公司 filed Critical 盛科网络(苏州)有限公司
Priority to US17/295,883 priority Critical patent/US20210399967A1/en
Publication of WO2020103423A1 publication Critical patent/WO2020103423A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0882Utilisation of link capacity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Definitions

  • the present invention relates to the field of communications, and in particular, to a bandwidth testing method and device, and a storage medium.
  • bandwidth is generally set for a certain service in the current network. If the bandwidth is specified reasonably or the bandwidth can be updated reasonably, it is often necessary to test the idle bandwidth based on the service to determine whether the bandwidth is set reasonably.
  • the existing method usually requires that the service data is stopped, and when the bandwidth is completely idle, a dedicated message is sent for testing.
  • the embodiments of the present invention provide a bandwidth testing method and device, and a storage medium, to at least solve the problem that the service flow needs to be stopped in order to test the bandwidth in the related art, and then the bandwidth testing method is complicated and cannot be tested at any time.
  • a bandwidth testing method which includes: a sending end sends a service message, an operation management and maintenance (Operation Administration and Maintenance, OAM for short) message, where the bandwidth of the OAM message is The maximum bandwidth of the service message; the sender discards some OAM messages, where some OAM messages are the service message plus the OAM message, and the OAM message exceeds the maximum bandwidth; the sender obtains the discarded part of the OAM message The total number of bits in the message and the time to send the service message and OAM message; confirm the bandwidth occupied by the service message according to the total number of bits and time.
  • OAM Operaation Administration and Maintenance
  • a bandwidth testing device which is applied to a sending end and includes: a sending module, configured to send a service message and an OAM message, wherein the bandwidth of the OAM message is a service message Maximum bandwidth; Discard module, set to discard some OAM messages, where some OAM messages are business messages plus OAM messages, and some OAM messages that exceed the maximum bandwidth; the first acquisition module is set to Obtain the total number of bits of the discarded part of the OAM message and the time for sending the service message and the OAM message; the first determining module is set to determine the bandwidth occupied by the service message according to the total number of bits and time.
  • a storage medium in which a computer program is stored, wherein the computer program is set to execute any of the above bandwidth testing methods during runtime.
  • the bandwidth occupied by the service message can be determined according to the total number of bits of some discarded OAM messages and the time for sending the service message and the OAM message.
  • FIG. 1 is a flowchart of a bandwidth testing method according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram of a bandwidth testing device according to an embodiment of the present invention.
  • FIG. 3 is another structural block diagram of a bandwidth testing device according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a bandwidth testing method according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
  • Step S102 The sending end sends a service message and an OAM message, where the bandwidth of the OAM message is the maximum bandwidth of the service message;
  • Step S104 The sending end discards part of the OAM message, where part of the OAM message is a part of the OAM message that exceeds the maximum bandwidth after adding the OAM message to the service message;
  • Step S106 The sending end obtains the total number of bits of some discarded OAM messages and the time to send the service messages and OAM messages;
  • Step S108 The sending end determines the bandwidth occupied by the service message according to the total number of bits and time.
  • the bandwidth occupied by the service message can be determined according to the total number of bits of some discarded OAM messages and the time for sending the service message and the OAM message.
  • the bandwidth occupied by the service message, the idle bandwidth in the maximum bandwidth including: at least one of the following is confirmed according to the following formula: the service report
  • step S102 the sending end enables the flow-based Flow mechanism in the direction of the business message, so that when the receiving end receives the maximum bandwidth OAM message, the above-mentioned partial OAM message is discarded.
  • the computer software product is stored in a storage medium (such as ROM / RAM, magnetic
  • the CD-ROM includes several instructions to enable a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present invention.
  • a bandwidth testing device is also provided.
  • the device is used to implement the above-mentioned embodiments and preferred implementation modes, and those that have already been described will not be repeated.
  • the term "module” may implement a combination of software and / or hardware that performs predetermined functions.
  • the devices described in the following embodiments are preferably implemented in software, implementation of hardware or a combination of software and hardware is also possible and conceived.
  • FIG. 2 is a structural block diagram of a bandwidth testing device according to an embodiment of the present invention. As shown in FIG. 2, the device includes:
  • the sending module 30 is configured to send business messages and OAM messages, where the bandwidth of the OAM message is the maximum bandwidth of the business message;
  • the discarding module 32 is configured to discard part of the OAM message, where part of the OAM message is a part of the OAM message that exceeds the maximum bandwidth after adding the OAM message to the service message;
  • the obtaining module 34 is set to obtain the total number of bits of some discarded OAM messages and the time for sending service messages and OAM messages;
  • the first determining module 36 is configured to determine the bandwidth occupied by the service message according to the total number of bits and time.
  • the present invention by sending a business message and an OAM message, and setting the bandwidth of the OAM message to the maximum bandwidth of the business message, and after discarding the business message plus the OAM message, a portion of the OAM message exceeding the maximum bandwidth
  • the relevant technology needs to stop the business flow to test the bandwidth
  • the bandwidth testing method is complicated, and problems such as the inability to test at any time are simplified, which further simplifies the process of testing bandwidth and enables bandwidth testing without terminating the service flow.
  • the first determining module 36 is further configured to confirm at least one of the following according to the following formula: the bandwidth H1 occupied by the service message;
  • the sending module 30 is further configured to enable the flow-based Flow mechanism in the direction of the business message, so that when the receiving end receives the OAM message with the maximum bandwidth, the above-mentioned partial OAM message is discarded.
  • FIG. 4 is a flowchart of bandwidth testing according to a preferred embodiment of the present invention. As shown in FIG. 4, it includes the following steps:
  • the testing of idle bandwidth is based on services and is implemented using a combination of common OAM messages and the policy mechanism in Qos.
  • service A originally set the maximum bandwidth of service A to be 100Gbps.
  • Step S402 enabling the flow-based flow policy in the direction of the sender of the service A, where the policy mechanism stipulates that the OAM message is discarded first when the number of messages exceeds 100G.
  • Step S404 the OAM message is sent at the sending end of the service A at a speed of 100G (the message size is the same as Y bit), and of course the service A message continues to be sent without being affected.
  • Step S406 After a period of test time T, the number of discarded OAM packets X is counted. Converted to the total number of bits divided by time, the occupied bandwidth of the service packet (equivalent to H1 in the above embodiment) is obtained. 100G minus it is the idle bandwidth H (equivalent to H2 in the above embodiment).
  • H 100G-X * Y / T; You can also count the number of OAM messages received by the peer. Converted to the total number of bits divided by time, we can get the idle bandwidth.
  • the above technical solutions of the embodiments of the present invention can efficiently test the bandwidth at any time. And there is no need to add new devices. Flexible application of existing tool mechanisms can accurately test business idle bandwidth.
  • the above bandwidth testing process is preferably applied to the chip, and the chip is not limited to application specific integrated circuit (Application Specific Integrated Circuit, ASIC for short) chips, but also includes field programmable Gate Array (Field Programable Gate Array, referred to as FPGA) or Network Processor (Network Processor, referred to as NP), etc.
  • An embodiment of the present invention further provides a storage medium, the storage medium including a stored program, wherein the method described above is executed when the above program runs.
  • the above storage medium may be set to store program code for performing the following steps:
  • the sender sends a business message and an OAM message, where the bandwidth of the OAM message is the maximum bandwidth of the business message;
  • the sending end discards some OAM messages, where some OAM messages are business messages plus OAM messages, and some OAM messages that exceed the maximum bandwidth;
  • the sender obtains the total number of bits of the discarded OAM message, and the time to send the service message and OAM message;
  • the sending end determines the bandwidth occupied by the service message according to the total number of bits and time.
  • the above storage medium may include, but is not limited to: a USB flash drive, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), Various media that can store program codes, such as removable hard disks, magnetic disks, or optical disks.
  • modules or steps of the present invention can be implemented by a universal computing device, they can be concentrated on a single computing device, or distributed in a network composed of multiple computing devices Above, optionally, they can be implemented with program code executable by the computing device, so that they can be stored in the storage device to be executed by the computing device, and in some cases, can be in a different order than here
  • the steps shown or described are performed, or they are made into individual integrated circuit modules respectively, or multiple modules or steps among them are made into a single integrated circuit module to achieve. In this way, the present invention is not limited to any specific combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明提供了一种带宽测试方法及装置、存储介质,其中,上述方法包括:发送端发送业务报文、操作管理以及维护OAM报文,其中,OAM报文的带宽为业务报文的最大带宽;发送端丢弃部分OAM报文,其中,部分OAM报文为业务报文加上OAM报文后,超出所述最大带宽的部分OAM报文;发送端获取丢弃的部分OAM报文的总比特数,和发送业务报文和所述OAM报文的时间;根据总比特数和时间确认业务报文所占用的带宽,采用上述技术方案解决相关技术中需要停止业务流才能测试带宽,进而带宽测试方式复杂,无法随时进行测试等问题。

Description

带宽测试方法及装置、存储介质 技术领域
本发明涉及通信领域,具体而言,涉及一种带宽测试方法及装置、存储介质。
背景技术
当前网络中对于某种业务一般都设置了规定的带宽,想要把这个带宽规定的合理或者是能合理更新带宽,就需要常常测试基于该业务的空闲带宽,来确定带宽是否设置的合理。
现有的做法通常是需要业务的数据停下来,在带宽完全空闲的情况下,发送专用的报文来测试。
针对相关技术中,需要停止业务流才能测试带宽,进而带宽测试方式复杂,无法随时进行测试等问题,尚未提出有效的技术方案。
发明内容
本发明实施例提供了一种带宽测试方法及装置、存储介质,以至少解决相关技术中需要停止业务流才能测试带宽,进而带宽测试方式复杂,无法随时进行测试等问题。
根据本发明的一个实施例,提供了一种带宽测试方法,包括:发送端发送业务报文、操作管理和维护(Operation Administration and Maintenance,简称为OAM)报文,其中,OAM报文的带宽为业务报文的最大带宽;发送端丢弃部分OAM报文,其中,部分OAM报文为业务报文加上OAM报文后,超出所述最大带宽的部分OAM报文;发送端获取丢弃的部分OAM报文的总比特数,和发送业务报文和OAM报文的时间;根据总比特数和时间确认业务报文所占用的带宽。
根据本发明的另一个实施例,还提供了一种带宽测试装置,应用于发送端,包括:发送模块,设置为发送业务报文、OAM报文,其中,OAM 报文的带宽为业务报文的最大带宽;丢弃模块,设置为丢弃部分OAM报文,其中,部分OAM报文为业务报文加上OAM报文后,超出所述最大带宽的部分OAM报文;第一获取模块,设置为获取丢弃的部分OAM报文的总比特数,和发送业务报文和OAM报文的时间;第一确定模块,设置为根据总比特数和时间确定业务报文所占用的带宽。
根据本发明的另一个实施例,还提供了一种存储介质,存储介质中存储有计算机程序,其中,计算机程序被设置为运行时执行以上任一项的带宽测试方法。
通过本发明实施例,通过发送业务报文和OAM报文,并设置OAM报文的带宽为业务报文的最大带宽,丢弃业务报文加上OAM报文后,超出所述最大带宽的部分OAM报文,进而能够根据丢弃的部分OAM报文的总比特数,和发送业务报文和OAM报文的时间确定业务报文所占用的带宽。采用上述技术方案,相关技术中需要停止业务流才能测试带宽,进而带宽测试方式复杂,无法随时进行测试等问题。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1为根据本发明实施例的带宽测试方法的流程图;
图2是根据本发明实施例的带宽测试装置的结构框图;
图3是根据本发明实施例的带宽测试装置的另一结构框图;
图4是根据本发明优选实施例的带宽测试流程图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
本发明实施例提供了一种带宽测试方法,图1为根据本发明实施例的带宽测试方法的流程图,如图1所示,包括以下步骤:
步骤S102:发送端发送业务报文、OAM报文,其中,OAM报文的带宽为业务报文的最大带宽;
步骤S104:发送端丢弃部分OAM报文,其中,部分OAM报文为业务报文加上OAM报文后,超出所述最大带宽的部分OAM报文;
步骤S106:发送端获取丢弃的部分OAM报文的总比特数,和发送业务报文和OAM报文的时间;
步骤S108:发送端根据总比特数和时间确定业务报文所占用的带宽。
通过本发明,通过发送业务报文和OAM报文,并设置OAM报文的带宽为业务报文的最大带宽,且丢弃业务报文加上OAM报文后,超出所述最大带宽的部分OAM报文,进而能够根据丢弃的部分OAM报文的总比特数,和发送业务报文和OAM报文的时间确定业务报文所占用的带宽。采用上述技术方案,相关技术中需要停止业务流才能测试带宽,进而带宽测试方式复杂,无法随时进行测试等问题,进而简化了测试带宽的流程,无需终止业务流就能测试带宽。
发送端通过以下方式获取丢弃的部分OAM报文的总比特数:发送端获取丢弃的部分OAM报文的数量X和一个OAM报文的比特数Y;根据以下公式确定总比特数Z=X×Y。
基于上述确定总比特数的技术方案,根据总比特数和时间至少确认以下之一:业务报文所占用的带宽,最大带宽中的空闲带宽,包括:根据以下公式至少确认以下之一:业务报文所占用的带宽H1,最大带宽中的空闲带宽H2:H1=Z÷T,H2=M-H1,其中,Z为总比特数,T为时间,M为最大带宽,可选地,H2=N÷T,其中,N为接收端接收到的OAM报文 总比特数,T为发送业务报文和OAM报文的时间。
需要说明的是,在执行步骤S102之前,发送端在业务报文的engress方向使能基于流的Flow Policer机制,以使接收端接收到最大带宽的OAM报文时,丢弃上述部分OAM报文。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例的方法。
在本实施例中还提供了一种带宽测试装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图2是根据本发明实施例的带宽测试装置的结构框图,如图2所示,该装置包括:
发送模块30,设置为发送业务报文、OAM报文,其中,OAM报文的带宽为业务报文的最大带宽;
丢弃模块32,设置为丢弃部分OAM报文,其中,部分OAM报文为业务报文加上OAM报文后,超出所述最大带宽的部分OAM报文;
获取模块34,设置为获取丢弃的部分OAM报文的总比特数,和发送业务报文和OAM报文的时间;
第一确定模块36,设置为根据总比特数和时间确定业务报文所占用的带宽。
通过本发明,通过发送业务报文和OAM报文,并设置OAM报文的带宽为业务报文的最大带宽,且丢弃业务报文加上OAM报文后,超出所述最大带宽的部分OAM报文,进而能够根据丢弃的OAM报文的总比特数,和发送业务报文和OAM报文的时间确定业务报文所占用的带宽,采用上述技术方案,相关技术中需要停止业务流才能测试带宽,进而带宽测试方式复杂,无法随时进行测试等问题,进而简化了测试带宽的流程,无需终止业务流就能测试带宽。
可选地,获取模块34,还设置为获取丢弃的部分OAM报文的数量X和一个OAM报文的比特数Y;并根据以下公式确定总比特数Z=X×Y。
可选地,第一确定模块36,还设置为根据以下公式至少确认以下之一:业务报文所占用的带宽H1;
如图3所示,装置还包括:第二确定模块38,设置为确定最大带宽中的空闲带宽H2:H1=Z÷T,H2=M-H1,其中,Z为总比特数,T为时间,M为最大带宽;H2=N÷T,其中,N为接收端接收到的OAM报文总比特数,T为发送业务报文和OAM报文的时间。
发送模块30,还设置为在业务报文的engress方向使能基于流的Flow Policer机制,以使接收端接收到最大带宽的OAM报文时,丢弃上述部分OAM报文。
需要说明的是,上述实施例的技术方案可以结合使用,也可以单独使用,本发明实施例对此不作限定。
以下结合一优选实施例对上述带宽测试流程进行说明,但不用于限定本发明实施例的技术方案。
图4是根据本发明优选实施例的带宽测试流程图,如图4所示,包括以下步骤:
本发明优选实施例中,测试空闲带宽是基于业务的且使用常见的OAM报文以及Qos中的Policer机制相结合来实现。举例说明,业务A.原本设定业务A的最大带宽是100G bps,现在需要测试业务A当前占用的 带宽或者空闲的带宽,可以通过如下步骤实现:
步骤S402,在业务A,的发送端Egress方向使能基于流的Flow Policer,其中,Policer机制规定当报文数超过100G时优先丢弃OAM报文。
步骤S404,在业务A的发送端按照100G的速度发送OAM报文(报文大小一致Y bit),当然业务A报文继续发送,不受影响。
步骤S406,经过一段测试时间T,统计丢弃的OAM的报文数量X。换算成总bit数除以时间,就得出业务报文的占用带宽(相当于上述实施例中的H1)。100G减去它则是空闲带宽H(相当于上述实施例中的H2)。
H=100G-X*Y/T;也可以统计对端收到的OAM报文数量。换算成总bit数除以时间,就得出空闲带宽。
综上,本发明实施例的上述技术方案,可以随时高效地测试带宽。并且不需要增加新的装置。灵活组合应用现有工具机制就能准确测试业务空闲带宽,上述带宽测试过程优选应用在芯片中,且芯片不局限于专用集成电路(Application Specific Integrated Circuit,简称为ASIC)芯片,还包括现场可编程门阵列(Field Programable Gate Array,简称为FPGA)或网络处理器(Network Processor,简称为NP)等。
本发明的实施例还提供了一种存储介质,该存储介质包括存储的程序,其中,上述程序运行时执行上述任一项的方法。
可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:
S1,发送端发送业务报文、OAM报文,其中,OAM报文的带宽为业务报文的最大带宽;
S2,发送端丢弃部分OAM报文,其中,部分OAM报文为业务报文加上OAM报文后,超出所述最大带宽的部分OAM报文;
S3,发送端获取丢弃的部分OAM报文的总比特数,和发送业务报文和OAM报文的时间;
S4,发送端根据总比特数和时间确定业务报文所占用的带宽。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (10)

  1. 一种带宽测试方法,包括:
    发送端发送业务报文、操作管理以及维护OAM报文,其中,所述OAM报文的带宽为所述业务报文的最大带宽;
    所述发送端丢弃部分OAM报文,其中,部分OAM报文为业务报文加上OAM报文后,超出所述最大带宽的部分OAM报文;
    所述发送端获取丢弃的所述部分OAM报文的总比特数,和发送所述业务报文和所述OAM报文的时间;
    所述发送端根据所述总比特数和所述时间确定所述业务报文所占用的带宽。
  2. 根据权利要求1所述的带宽测试方法,其中,所述发送端获取丢弃的所述部分OAM报文的总比特数,包括:
    所述发送端获取丢弃的所述部分OAM报文的数量X和一个所述OAM报文的比特数Y;
    根据以下公式确定所述总比特数Z=X×Y。
  3. 根据权利要求1所述的带宽测试方法,其中,所述发送端根据所述总比特数和所述时间确定所述业务报文所占用的带宽,包括:
    根据以下公式确认所述业务报文所占用的带宽H1:
    H1=Z÷T,其中,Z为所述总比特数,T为所述时间。
  4. 根据权利要求3所述的带宽测试方法,其中,发送端发送业务报文、操作管理以及维护OAM报文之后,所述方法还包括:
    根据以下公式之一确定所述最大带宽中的空闲带宽H2:
    H2=M-H1,M为所述最大带宽;
    H2=N÷T,其中,N为接收端接收到的OAM报文总比特数,T为发送所述业务报文和所述OAM报文的时间。
  5. 根据权利要求1-4任一项所述的带宽测试方法,其中,发送端发送业务报文和操作管理和维护OAM报文之前,所述方法还包括:
    所述发送端在所述业务报文的engress方向使能基于流的Flow Policer机制,以使所述发送端丢弃所述部分OAM报文。
  6. 一种带宽测试装置,应用于发送端,包括:
    发送模块,设置为发送业务报文、操作管理以及维护OAM报文,其中,所述OAM报文的带宽为所述业务报文的最大带宽;
    丢弃模块,设置为丢弃部分OAM报文,其中,部分OAM报文为业务报文加上OAM报文后,超出所述最大带宽的部分OAM报文;
    获取模块,设置为获取丢弃的所述部分OAM报文的总比特数,和发送所述业务报文和所述OAM报文的时间;
    第一确定模块,设置为根据所述总比特数和所述时间确定所述业务报文所占用的带宽。
  7. 根据权利要求6所述的带宽测试装置,其中,所述获取模块,还设置为获取丢弃的所述部分OAM报文的数量X和一个所述OAM报文的比特数Y;根据以下公式确定所述总比特数Z=X×Y。
  8. 根据权利要求6所述的带宽测试装置,其中,所述第一确定模块,还设置为根据以下公式确认所述业务报文所占用的带宽H1:H1=Z÷T,其中,Z为所述总比特数,T为所述时间。
  9. 根据权利要求8所述的带宽测试装置,其中,所述装置还包括:
    第二确定模块,设置为根据以下公式之一确定所述最大带宽中的空闲带宽H2:
    H2=M-H1,M为所述最大带宽;
    H2=N÷T,其中,N为接收端接收到的OAM报文总比特数,T为发送所述业务报文和所述OAM报文的时间。
  10. 一种存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至5任一项中所述的方法。
PCT/CN2019/090055 2018-11-23 2019-06-05 带宽测试方法及装置、存储介质 WO2020103423A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/295,883 US20210399967A1 (en) 2018-11-23 2019-06-05 Bandwidth testing method and apparatus, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811410178.8A CN109547287B (zh) 2018-11-23 2018-11-23 带宽测试方法及装置、存储介质
CN201811410178.8 2018-11-23

Publications (1)

Publication Number Publication Date
WO2020103423A1 true WO2020103423A1 (zh) 2020-05-28

Family

ID=65849480

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/090055 WO2020103423A1 (zh) 2018-11-23 2019-06-05 带宽测试方法及装置、存储介质

Country Status (3)

Country Link
US (1) US20210399967A1 (zh)
CN (1) CN109547287B (zh)
WO (1) WO2020103423A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109547287B (zh) * 2018-11-23 2020-12-01 盛科网络(苏州)有限公司 带宽测试方法及装置、存储介质
CN112929228B (zh) * 2021-01-08 2022-06-07 浙江大华技术股份有限公司 带宽测试方法及用户设备、存储装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725718A (zh) * 2005-04-04 2006-01-25 杭州华为三康技术有限公司 网络服务质量测试方法及系统
CN102487330A (zh) * 2010-12-02 2012-06-06 中兴通讯股份有限公司 运行、管理和维护报文的发送方法及装置
WO2012145886A1 (zh) * 2011-04-25 2012-11-01 华为技术有限公司 一种基于标签的测量方法,装置和系统
CN106487613A (zh) * 2016-11-16 2017-03-08 北京华为数字技术有限公司 一种带宽测试方法、装置和系统
CN109547287A (zh) * 2018-11-23 2019-03-29 盛科网络(苏州)有限公司 带宽测试方法及装置、存储介质

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232459B (zh) * 2005-03-28 2011-09-14 华为技术有限公司 一种业务带宽动态控制方法和设备
JP5233504B2 (ja) * 2008-08-25 2013-07-10 富士通株式会社 経路制御装置およびパケット廃棄方法
US8116224B2 (en) * 2008-09-09 2012-02-14 Embarq Holdings Company, LP System and method for generating alarms based on bursting traffic
CN101645797B (zh) * 2009-08-25 2011-04-13 华为技术有限公司 自动保护倒换方法、设备和系统
CN102325060B (zh) * 2011-09-09 2013-11-20 瑞斯康达科技发展股份有限公司 一种链路带宽测试的方法和路由器
CN103152228B (zh) * 2013-03-27 2016-08-24 杭州华三通信技术有限公司 一种带宽检测方法和设备
CN104639362A (zh) * 2013-11-15 2015-05-20 中兴通讯股份有限公司 Oam性能监控方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725718A (zh) * 2005-04-04 2006-01-25 杭州华为三康技术有限公司 网络服务质量测试方法及系统
CN102487330A (zh) * 2010-12-02 2012-06-06 中兴通讯股份有限公司 运行、管理和维护报文的发送方法及装置
WO2012145886A1 (zh) * 2011-04-25 2012-11-01 华为技术有限公司 一种基于标签的测量方法,装置和系统
CN106487613A (zh) * 2016-11-16 2017-03-08 北京华为数字技术有限公司 一种带宽测试方法、装置和系统
CN109547287A (zh) * 2018-11-23 2019-03-29 盛科网络(苏州)有限公司 带宽测试方法及装置、存储介质

Also Published As

Publication number Publication date
CN109547287B (zh) 2020-12-01
CN109547287A (zh) 2019-03-29
US20210399967A1 (en) 2021-12-23

Similar Documents

Publication Publication Date Title
US11792046B2 (en) Method for generating forwarding information, controller, and service forwarding entity
US11843535B2 (en) Key performance indicators (KPI) for tracking and correcting problems for a network-under-test
US9742650B2 (en) Systems and methods for measuring available capacity and tight link capacity of IP paths from a single endpoint
US20210328856A1 (en) Scalability, fault tolerance and fault management for twamp with a large number of test sessions
US8989002B2 (en) System and method for controlling threshold testing within a network
US8102879B2 (en) Application layer metrics monitoring
US10404611B2 (en) Discovering path maximum transmission unit
WO2020103423A1 (zh) 带宽测试方法及装置、存储介质
KR20150090216A (ko) 암호화된 세션 모니터링
US20230300051A1 (en) In-band Edge-to-Edge Round-Trip Time Measurement
CN112073128A (zh) 通信设备性能测试方法及装置
CN110784339B (zh) Lacp报文超时的故障检测方法、装置、电子设备
CN113055293A (zh) 软件定义广域网中的选路方法及装置、通信系统
US20230057487A1 (en) Data packet format to communicate across different networks
CN115242892B (zh) 一种流标识获取方法、装置、设备及介质
CN109995603B (zh) 一种Tag模型下丢包测量的方法、装置及电子设备
WO2018177003A1 (zh) 一种计费方法、相关设备和系统
WO2022021882A1 (zh) Oam信息块定位方法及装置
CN111865884B (zh) 一种报文处理方法、装置及设备
US10938772B2 (en) Access device for analysis of physical links and method thereof
US10162733B2 (en) Debugging failure of a service validation test
WO2019119836A1 (zh) 报文处理的方法和设备
Yavas et al. Strict prioritization of new requests over retransmissions for enhancing scalability of SIP servers
EP3972201A1 (en) Measurement reporting method and network node
CN117278480A (zh) 网络设备协同限速的方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19887137

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19887137

Country of ref document: EP

Kind code of ref document: A1