CN101667890A - Network bandwidth detecting method and system - Google Patents
Network bandwidth detecting method and system Download PDFInfo
- Publication number
- CN101667890A CN101667890A CN200910190382A CN200910190382A CN101667890A CN 101667890 A CN101667890 A CN 101667890A CN 200910190382 A CN200910190382 A CN 200910190382A CN 200910190382 A CN200910190382 A CN 200910190382A CN 101667890 A CN101667890 A CN 101667890A
- Authority
- CN
- China
- Prior art keywords
- local device
- test
- remote equipment
- request
- sends
- 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.)
- Pending
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention is applicable to the technical field of communication and provides a network bandwidth detecting method and a system, wherein the method comprises the following steps: a local device sends an opening test request to a remote device; the local device/remote device sends a test packet to the opposite side; a device for receiving the test packet calculates the bandwidth between the local device and the remote device in real time; and the opening test request and the detection packet are respectively encapsulated into an ICMP packet which comprises an ICMP header, a type field carried with information type and a data field carried with data similar to the information type. The invention can avoid the problem of port conflict caused by adopting a TCP data packet in the prior art;the test accuracy of the invention is high; and a current test result can be obtained at any time in the test process.
Description
Technical field
The invention belongs to communication technical field, relate in particular to a kind of detection method and system of the network bandwidth.
Background technology
In the prior art, the scheme that detects the network bandwidth is: by sending tcp data continuously to specific endpoints, add up successfully the data bulk that sends and send the employed time of these data, the computing formula by the network bandwidth performs mathematical calculations, thereby obtains the link bandwidth value.Tcp protocol stack own loss problem.Transmission Control Protocol is a kind of connection-oriented transport layer protocol, for an other end that is delivered to connection that guarantees that data can be complete, orderly, tcp protocol stack is worked out many security mechanisms, as flow control, congested control etc., this part was completely calculated within the transmission time by the time that the protocol stack autophage falls, thereby had influenced the calculating of link bandwidth value.In addition and since The data based on the data of the Transmission Control Protocol of port transmission, though can produce continuously and stable data stream, in the process of function transplanting, problem that might the originating port conflict, thereby influence the application of network bandwidth test function.
Summary of the invention
Embodiment of the invention technical problem to be solved is to provide a kind of detection method and system of the network bandwidth that can avoid the originating port conflict and not influence the calculating of link bandwidth value.
For solving the problems of the technologies described above, the embodiment of the invention provides a kind of detection method of the network bandwidth, said method comprising the steps of:
Local device sends to remote equipment and opens test request;
Local device/remote equipment sends test pack to the other side;
Receive the real-time bandwidth of calculating between described local device and the remote equipment of equipment of described test pack;
Described unlatching test request and test pack all are packaged into the ICMP protocol package, and described ICMP protocol package comprises icmp header, carries the type field and the data field that carries the data relevant with described type of message of type of message.
The embodiment of the invention also provides a kind of detection system of the network bandwidth, and the system of described LA Management Room bandwidth detection comprises: local device and remote equipment; Described local device sends to remote equipment and opens test request; Local device/remote equipment sends test pack to the other side; Receive the real-time bandwidth of calculating between described local device and the remote equipment of equipment of described test pack; Described unlatching test request and test pack all are packaged into the ICMP protocol package, and described ICMP protocol package comprises icmp header, carries the type field and the data field that carries the data relevant with described type of message of type of message.
In embodiments of the present invention, adopt the carrier of ICMP protocol package as test both sides' communication and manufacturing data flow, the ICMP agreement can control network devices send test pack, in test process, realized data and control information transmission at LA Management Room, the problem that can avoid prior art to adopt tcp data bag originating port to conflict, test accuracy height of the present invention.Because therefore the real-time computation bandwidth of the present invention can obtain current test result at any time in test process.
Description of drawings
Fig. 1 is the realization flow schematic diagram of the detection method of the network bandwidth that provides of the embodiment of the invention.
Fig. 2 is the realization flow schematic diagram of the information interaction of the test receiving velocity that provides of the embodiment of the invention.
Fig. 3 is the realization flow schematic diagram of the information interaction of the test transmission rate that provides of the embodiment of the invention.
Embodiment
In order to make technical problem to be solved by this invention, technical scheme and beneficial effect clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
See also Fig. 1 and Fig. 2, the detection method of the network bandwidth that provides for the embodiment of the invention, it may further comprise the steps:
In step S101, local device sends to remote equipment and opens test request;
In embodiments of the present invention, described local device sends to remote equipment before the step of opening test request, and is further comprising the steps of:
Step S1, local device sends ID authentication request to remote equipment;
Step S2, described local device receives the identity authentication result that described remote equipment returns; Described ID authentication request and identity authentication result all are packaged into ICMP (Internet Control Message Protocol, the Internet Internet Control Message Protocol) protocol package.If local device is not received the identity authentication result that remote equipment returns in Preset Time, judge that then link is obstructed.
If it is authentication success that described local device receives the identity authentication result that described remote equipment returns, then execution in step S101.
In embodiments of the present invention, described local device sends the step of opening test request to remote equipment, is specially: described local device sends to remote equipment and opens the receiving velocity test request;
After remote equipment sends the step of opening the receiving velocity test request, further comprising the steps of at described local device:
Remote equipment sends to local device and opens the receiving velocity test response;
Described local device receives the unlatching receiving velocity test response that remote equipment returns; Described receiving velocity test response is packaged into the ICMP protocol package.If local device is not received the unlatching receiving velocity test response that remote equipment returns in Preset Time; Then think link down, end this network bandwidth test.
In embodiments of the present invention, comprise in the described unlatching test request: destination address, test time and amount of test data.
In step S102, local device/remote equipment sends test pack to the other side;
In embodiments of the present invention, local device/remote equipment is to send test pack according to the parameter in the described unlatching test request to the other side.
Described local device/remote equipment is specially to the step that the other side sends test pack: described remote equipment sends test pack to local device.If local device is not received any test pack that remote equipment sends in Preset Time, judge link down so.
In embodiments of the present invention, described remote equipment is after local device sends the step of test pack, and is further comprising the steps of:
Local device receives the EOT request that remote equipment sends;
Local device returns the EOT response to remote equipment; Described EOT request and EOT response all are packaged into the ICMP protocol package.If remote equipment is not received the EOT response that local device returns in Preset Time, then judge link down.
After the other side sends the step of test pack, further comprising the steps of at described local device/remote equipment:
Local device sends to remote equipment and stops test post, and described termination test post is packaged into the ICMP protocol package.
In step S103, receive the real-time bandwidth of calculating between described local device and the remote equipment of equipment of described test pack; Described unlatching test request and test pack all are packaged into the ICMP protocol package, and described ICMP protocol package comprises icmp header, carries the type field and the data field that carries the data relevant with described type of message of type of message.
The data encapsulation form of ICMP is as follows:
Icmp header (8 byte) | Type (1 byte) | Data (n byte) |
For example:
Type of message | ??Type | ??Data | Length n |
ID authentication request | ??0x01 | The user name encrypted message of user's input | ??16B |
Identity authentication result | ??0x02 | Authentication result (by/authentication of failure/refusal) | ??1B |
Open the receiving velocity test request | ??0x10 | Test parameter (address+time+data volume) | ??48B |
Open the receiving velocity test response | ??0x11 | ??NULL | ?0B |
The real-time testing result | ??0x12 | The real-time testing result | ?4B |
Stop test | ??0x20 | ??NULL | ?0B |
Test pack | ??0x41 | Padding data | ?1470B |
Open the transmission rate test request | ??0x51 | ??NULL | ?0B |
Open the transmission rate test response | ??0x52 | ??NULL | ?0B |
The EOT request | ??0x53 | ??NULL | ?0B |
The EOT response | ??0x54 | ??NULL | ?0B |
In embodiments of the present invention, the computing formula of bandwidth is as follows:
Bandwidth=(the big or small * 8 of the quantity * test pack of the test pack that success up to the present receives)/(time of reception of the time of reception of a nearest test pack-first test pack).Wherein, the size of described test pack refers to: the size of test pack=message data length+header length.
See also Fig. 3, as another embodiment of the present invention, described local device sends the step of opening test request to remote equipment, is specially: described local device sends to remote equipment and opens the transmission rate test request;
After remote equipment sends the step of opening the transmission rate test request, further comprising the steps of at described local device:
Remote equipment sends to local device and opens the transmission rate test response;
Described local device receives the unlatching transmission rate test response that remote equipment returns; Described transmission rate test response is packaged into the ICMP protocol package.If local device is not received the unlatching transmission rate test response that remote equipment returns in Preset Time; Then think link down, end this network bandwidth test.
In embodiments of the present invention, described local device/remote equipment is specially to the step that the other side sends test pack: described local device sends test pack to remote equipment.Remote equipment returns the real-time testing result to local device, if local device is not received the real-time testing result that remote equipment returns in Preset Time, judges link down so, and stops to send test pack, ends this network bandwidth test.
In embodiments of the present invention, described local device is after remote equipment sends the step of test pack, and is further comprising the steps of:
Remote equipment receives the EOT request that local device sends;
Remote equipment returns the EOT response to local device; Described EOT request and EOT response all are packaged into the ICMP protocol package.If local device is not received the EOT response that remote equipment returns in Preset Time, then judge link down.
Yet, be understandable that in case link is obstructed or the Rule of judgment of link down is set up, network bandwidth test is so this time all ended at once.
The detection system of the network bandwidth that the embodiment of the invention provides, the system of described LA Management Room bandwidth detection comprises: local device and remote equipment.Described local device sends to remote equipment and opens test request; Local device/remote equipment sends test pack to the other side; Receive the real-time bandwidth of calculating between described local device and the remote equipment of equipment of described test pack; Described unlatching test request and test pack all are packaged into the ICMP protocol package, and described ICMP protocol package comprises icmp header, carries the type field and the data field that carries the data relevant with described type of message of type of message.
In sum, the embodiment of the invention adopts the carrier of ICMP protocol package as test both sides' communication and manufacturing data flow, the ICMP agreement can control network devices send test pack, in test process, realized data and control information transmission at LA Management Room, the problem that can avoid prior art to adopt tcp data bag originating port to conflict, test accuracy height of the present invention.By the decision of the characteristics of testing throughput self, what be concerned about in the testing throughput process is the quantity of Data transmission in the unit interval in the test process, and what the content that needn't haggle over the data that pass is; So the use icmp packet can the limited bandwidth of more efficient use as the transport vehicle of testing throughput.In addition, because therefore the real-time computation bandwidth of the present invention can obtain current test result at any time in test process.The present invention can also stop the test that moving at any time.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1, a kind of detection method of the network bandwidth is characterized in that, said method comprising the steps of:
Local device sends to remote equipment and opens test request;
Local device/remote equipment sends test pack to the other side;
Receive the real-time bandwidth of calculating between described local device and the remote equipment of equipment of described test pack;
Described unlatching test request and test pack all are packaged into the ICMP protocol package, and described ICMP protocol package comprises icmp header, carries the type field and the data field that carries the data relevant with described type of message of type of message.
2, the method for claim 1 is characterized in that, described local device sends to remote equipment before the step of opening test request, and is further comprising the steps of:
Local device sends ID authentication request to remote equipment;
Described local device receives the identity authentication result that described remote equipment returns; Described ID authentication request and identity authentication result all are packaged into the ICMP protocol package;
If it is authentication success that described local device receives the identity authentication result that described remote equipment returns, then the execution in step local device sends to remote equipment and opens test request.
3, the method for claim 1 is characterized in that, described local device sends the step of opening test request to remote equipment, is specially:
Described local device sends to remote equipment and opens the receiving velocity test request;
After remote equipment sends the step of opening the receiving velocity test request, further comprising the steps of at described local device:
Described local device receives the unlatching receiving velocity test response that remote equipment returns; Described receiving velocity test response is packaged into the ICMP protocol package;
Described local device/remote equipment is specially to the step that the other side sends test pack:
Described remote equipment sends test pack to local device.
4, method as claimed in claim 3 is characterized in that, described remote equipment is after local device sends the step of test pack, and is further comprising the steps of:
Local device receives the EOT request that remote equipment sends;
Local device returns the EOT response to remote equipment; Described EOT request and EOT response all are packaged into the ICMP protocol package.
5, the method for claim 1 is characterized in that, described local device sends the step of opening test request to remote equipment, is specially:
Described local device sends to remote equipment and opens the transmission rate test request;
After remote equipment sends the step of opening the transmission rate test request, further comprising the steps of at described local device:
Described local device receives the unlatching transmission rate test response that remote equipment returns; Described transmission rate test response is packaged into the ICMP protocol package;
Described local device/remote equipment is specially to the step that the other side sends test pack:
Described local device sends test pack to remote equipment.
6, method as claimed in claim 5 is characterized in that, described local device is after remote equipment sends the step of test pack, and is further comprising the steps of:
Remote equipment receives the EOT request that local device sends;
Remote equipment returns the EOT response to local device; Described EOT request and EOT response all are packaged into the ICMP protocol package.
7, the method for claim 1 is characterized in that, comprises in the described unlatching test request: destination address, test time and amount of test data.
8, method as claimed in claim 7 is characterized in that, described local device/remote equipment is to send test pack according to the parameter in the described unlatching test request to the other side.
9, the method for claim 1 is characterized in that, the computing formula of described bandwidth is as follows:
Bandwidth=(the big or small * 8 of the quantity * test pack of the test pack that success up to the present receives)/(time of reception of the time of reception of a nearest test pack-first test pack), wherein, the size of described test pack refers to: the size of test pack=message data length+header length.
10, a kind of detection system of the network bandwidth is characterized in that, the system of described LA Management Room bandwidth detection comprises: local device and remote equipment; Described local device sends to remote equipment and opens test request; Local device/remote equipment sends test pack to the other side; Receive the real-time bandwidth of calculating between described local device and the remote equipment of equipment of described test pack; Described unlatching test request and test pack all are packaged into the ICMP protocol package, and described ICMP protocol package comprises icmp header, carries the type field and the data field that carries the data relevant with described type of message of type of message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910190382A CN101667890A (en) | 2009-09-24 | 2009-09-24 | Network bandwidth detecting method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910190382A CN101667890A (en) | 2009-09-24 | 2009-09-24 | Network bandwidth detecting method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101667890A true CN101667890A (en) | 2010-03-10 |
Family
ID=41804348
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200910190382A Pending CN101667890A (en) | 2009-09-24 | 2009-09-24 | Network bandwidth detecting method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101667890A (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102056195A (en) * | 2011-01-21 | 2011-05-11 | 大唐移动通信设备有限公司 | Quality of service (QoS) etermination method and radio access network equipment |
CN102123063A (en) * | 2011-04-26 | 2011-07-13 | 杭州华三通信技术有限公司 | Method and device for detecting link bandwidth |
CN102420725A (en) * | 2011-12-27 | 2012-04-18 | 华为技术有限公司 | Method for detecting IP network bandwidth and apparatus thereof |
RU2453905C1 (en) * | 2011-01-21 | 2012-06-20 | Государственное казенное образовательное учреждение высшего профессионального образования Академия Федеральной службы охраны Российской Федерации (Академия ФСО России) | Method for functional inspection of information system protocols |
CN102594629A (en) * | 2012-03-29 | 2012-07-18 | 迈普通信技术股份有限公司 | Method and system for measuring subscriber line bandwidth |
CN103701626A (en) * | 2012-09-27 | 2014-04-02 | 华为技术有限公司 | Method and equipment for acquiring bandwidth information |
TWI462529B (en) * | 2010-03-11 | 2014-11-21 | Chunghwa Telecom Co Ltd | A testing method for network transmission speed |
CN104734909A (en) * | 2015-01-23 | 2015-06-24 | 北京奥普维尔科技有限公司 | Network bio-directional testing method |
CN105577461A (en) * | 2014-10-10 | 2016-05-11 | 北京风行在线技术有限公司 | Multi-layer protocol automatic testing method, multi-layer protocol automatic testing device, and multi-layer protocol automatic testing system |
CN106792828A (en) * | 2017-01-04 | 2017-05-31 | 深圳市吉祥腾达科技有限公司 | A kind of outdoor wireless AP equipment rooms testing method and instrument |
WO2017152880A1 (en) * | 2016-03-11 | 2017-09-14 | 中兴通讯股份有限公司 | Method for testing performance of mobile network, mobile terminal, server and testing system |
CN108667690A (en) * | 2018-05-22 | 2018-10-16 | 烽火通信科技股份有限公司 | A kind of detection method of Signal Degrade |
WO2020042018A1 (en) * | 2018-08-29 | 2020-03-05 | 华为技术有限公司 | Method for detecting bandwidth and detection device |
-
2009
- 2009-09-24 CN CN200910190382A patent/CN101667890A/en active Pending
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI462529B (en) * | 2010-03-11 | 2014-11-21 | Chunghwa Telecom Co Ltd | A testing method for network transmission speed |
CN102056195A (en) * | 2011-01-21 | 2011-05-11 | 大唐移动通信设备有限公司 | Quality of service (QoS) etermination method and radio access network equipment |
RU2453905C1 (en) * | 2011-01-21 | 2012-06-20 | Государственное казенное образовательное учреждение высшего профессионального образования Академия Федеральной службы охраны Российской Федерации (Академия ФСО России) | Method for functional inspection of information system protocols |
CN102123063A (en) * | 2011-04-26 | 2011-07-13 | 杭州华三通信技术有限公司 | Method and device for detecting link bandwidth |
CN102123063B (en) * | 2011-04-26 | 2013-08-28 | 杭州华三通信技术有限公司 | Method and device for detecting link bandwidth |
CN102420725A (en) * | 2011-12-27 | 2012-04-18 | 华为技术有限公司 | Method for detecting IP network bandwidth and apparatus thereof |
CN102420725B (en) * | 2011-12-27 | 2014-05-21 | 华为技术有限公司 | Method for detecting IP network bandwidth and apparatus thereof |
CN102594629A (en) * | 2012-03-29 | 2012-07-18 | 迈普通信技术股份有限公司 | Method and system for measuring subscriber line bandwidth |
CN103701626A (en) * | 2012-09-27 | 2014-04-02 | 华为技术有限公司 | Method and equipment for acquiring bandwidth information |
CN103701626B (en) * | 2012-09-27 | 2018-01-19 | 华为技术有限公司 | The preparation method of bandwidth information and the equipment for obtaining bandwidth information |
CN105577461A (en) * | 2014-10-10 | 2016-05-11 | 北京风行在线技术有限公司 | Multi-layer protocol automatic testing method, multi-layer protocol automatic testing device, and multi-layer protocol automatic testing system |
CN104734909A (en) * | 2015-01-23 | 2015-06-24 | 北京奥普维尔科技有限公司 | Network bio-directional testing method |
WO2017152880A1 (en) * | 2016-03-11 | 2017-09-14 | 中兴通讯股份有限公司 | Method for testing performance of mobile network, mobile terminal, server and testing system |
CN106792828A (en) * | 2017-01-04 | 2017-05-31 | 深圳市吉祥腾达科技有限公司 | A kind of outdoor wireless AP equipment rooms testing method and instrument |
CN106792828B (en) * | 2017-01-04 | 2019-12-27 | 深圳市吉祥腾达科技有限公司 | Method and tool for testing speed between outdoor wireless AP (access point) devices |
CN108667690A (en) * | 2018-05-22 | 2018-10-16 | 烽火通信科技股份有限公司 | A kind of detection method of Signal Degrade |
WO2020042018A1 (en) * | 2018-08-29 | 2020-03-05 | 华为技术有限公司 | Method for detecting bandwidth and detection device |
CN112602294A (en) * | 2018-08-29 | 2021-04-02 | 华为技术有限公司 | Method and device for detecting bandwidth |
CN112602294B (en) * | 2018-08-29 | 2021-10-15 | 华为技术有限公司 | Method and device for detecting bandwidth |
US11388090B2 (en) | 2018-08-29 | 2022-07-12 | Huawei Technologies Co., Ltd. | Bandwidth measurement method and measurement device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101667890A (en) | Network bandwidth detecting method and system | |
US9762498B2 (en) | Localized congestion exposure | |
CN106027412B (en) | A kind of TCP jamming control method based on congestion queue length | |
US9503380B2 (en) | Communication apparatus, communication method, and computer readable medium | |
EP1557975A1 (en) | Method for implementing an Internet Protocol (IP) charging and rating middleware platform and gateway system | |
CN104883335B (en) | A kind of devices at full hardware TCP protocol stack realizes system | |
CN104486153B (en) | A kind of transformer station process layer network transmission performance monitoring method based on FPGA | |
CN103346963A (en) | MPTCP data scheduling method based on forecast arrival time | |
CN110493329A (en) | A kind of concurrent Push Service method and system based on User space protocol stack | |
CN107547430A (en) | A kind of file transmitting method and device | |
CN104579973B (en) | Message forwarding method and device in a kind of Virtual Cluster | |
US20110176437A1 (en) | Traffic volume monitoring system | |
CN101360090A (en) | Application protocol recognition method | |
CN114205340B (en) | Fuzzy test method and device based on intelligent power equipment | |
CN102340454B (en) | A kind of universal identification method of voip network data flow | |
CN105897665B (en) | Method for realizing TCP transmission in satellite network environment and corresponding gateway | |
CN101447934B (en) | Business flow-recognizing method and system thereof and business flow charging method and system thereof | |
CN107948217A (en) | Switch system and communication means | |
CN102255790A (en) | Method and system for informing congestion control information | |
CN101355585A (en) | System and method for protecting information of distributed architecture data communication equipment | |
CN105991353A (en) | Fault location method and device | |
CN106792897B (en) | Gateway shunt method and system in LTE-VPN evolved system | |
CN109067663B (en) | System and method for controlling request response rate in application program | |
KR20130062598A (en) | Network management system integrated a power line communication and control method of the same | |
CN103124239B (en) | Based on the load-balancing method of forward spacer assembly with isolation gateway connected applications |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20100310 |