CN113542067A - Method and system for testing network rate between two points based on network equipment - Google Patents
Method and system for testing network rate between two points based on network equipment Download PDFInfo
- Publication number
- CN113542067A CN113542067A CN202110797762.9A CN202110797762A CN113542067A CN 113542067 A CN113542067 A CN 113542067A CN 202110797762 A CN202110797762 A CN 202110797762A CN 113542067 A CN113542067 A CN 113542067A
- Authority
- CN
- China
- Prior art keywords
- speed
- speed measurement
- network
- testing
- network equipment
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
- H04L43/0894—Packet rate
Landscapes
- Engineering & Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a network speed testing method between two points based on network equipment, which puts the receiving, sending and processing of speed measuring messages into a kernel. The invention also provides a system for testing the network rate between two points based on the network equipment. The invention has the beneficial effects that: the sending and receiving processing of the speed measurement message is processed in the kernel, a slow kernel protocol stack is bypassed, CPU resources are greatly saved, and the realization of inter-device speed measurement on embedded equipment with poor CPU performance becomes possible.
Description
Technical Field
The present invention relates to a network rate testing method, and more particularly, to a method and system for testing a network rate between two points based on a network device.
Background
The existing solution for measuring speed between devices generally organizes a speed measurement message through application layer software at one end, and then sends the message to a network device after passing through a kernel protocol stack and a network card drive; the receiving end receives the message through the network device, then through the network card driver, the kernel protocol stack, and then to the application layer, as shown in fig. 1.
When the network speed measurement is carried out, CPU resources of the equipment are required to be consumed for sending and receiving, and speed measurement messages are processed. Because resources such as a CPU of the embedded device are poor, the prior art can not measure larger bandwidth.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a method and a system for testing the network rate between two points based on network equipment.
The invention provides a network speed testing method between two points based on network equipment, which puts the receiving, sending and processing of speed measuring messages into a kernel.
As a further improvement of the present invention, the following transmission process is performed at the transmitting end: a speed measurement message is created through a kernel speed measurement module, driven by network equipment and then sent out through the network equipment; the following reception processes are performed at the receiving end: after receiving the speed measurement message, the network device drives the speed measurement message through the network device, and then the speed measurement message is processed by the kernel speed measurement module.
As a further improvement of the present invention, the method for testing the network rate between two points includes the following steps:
s1, Ping testing process;
s2, testing parameter configuration process;
s3, starting a speed measuring process;
s4, acquiring a speed measurement result;
And S5, stopping the speed measuring process.
As a further improvement of the present invention, in step S1, the Ping test procedure includes: let the sending end that tests the speed to the receiving end that tests the speed ping test, the purpose of doing so is: 1. checking whether ping can be reached between the devices, and allowing the next speed measurement operation only if ping can be reached; 2. through ping, the sending end can obtain the MAC address of the receiving end to prepare for subsequent speed measurement.
As a further improvement of the present invention, in step S2, the test parameter configuration procedure includes: configuring a destination IP of the speed measurement message, a destination port number of the speed measurement message and speed measurement time for a sending end; and configuring the port number of the speed measurement message and the speed measurement time for the receiving end.
As a further improvement of the present invention, in step S3, the starting of the speed measurement process includes: firstly, configuring a receiving end to enable receiving; and secondly, configuring a sending end to start sending UDP speed measurement data packets.
As a further improvement of the present invention, in step S4, the process of obtaining the speed measurement result includes: after the speed measurement is started, the receiving end or the sending end can be requested to obtain the speed measurement result at any time.
As a further improvement of the present invention, in step S5, the stopping the speed measurement process includes: the manager requests to stop measuring the speed through the interface, and if the speed measuring time is configured in step S2, the speed measurement is automatically stopped after the speed measuring time expires.
The invention also provides a network device-based system for testing network speed between two points, which comprises a readable storage medium, wherein the readable storage medium stores execution instructions, and the execution instructions are used for realizing the method in any one of the above manners when being executed by a processor.
The invention has the beneficial effects that: the sending and receiving processing of the speed measurement message is processed in the kernel, a slow kernel protocol stack is bypassed, CPU resources are greatly saved, and the realization of inter-device speed measurement on embedded equipment with poor CPU performance becomes possible.
Drawings
Fig. 1 is a schematic diagram of transmitting and receiving a velocity measurement between devices in the prior art.
Fig. 2 is a schematic diagram of transmission and reception of a network rate testing method between two points based on a network device according to the present invention.
Fig. 3 is a device architecture diagram of a network device-based method for testing network speed between two points according to the present invention.
Fig. 4 is a flowchart of a method for testing network speed between two points based on a network device according to the present invention.
Fig. 5 is a flowchart of a configuration start transmission process of a network device-based network rate test method between two nodes according to the present invention.
Fig. 6 is a main processing flow chart of a sending thread of a network device-based method for testing network rates between two points according to the present invention.
Fig. 7 is a flow chart of the main processing of the receiving task of the method for testing the network rate between two points based on the network device of the present invention.
Detailed Description
The invention is further described with reference to the following description and embodiments in conjunction with the accompanying drawings.
As shown in fig. 2 to 7, a method for testing a network speed between two points based on a network device puts the receiving, sending and processing of a speed measurement message into a kernel. The kernel speed measurement module creates a speed measurement message, and then the speed measurement message is driven by the network card and sent out to the network equipment; after receiving the speed measurement message, the network device at the receiving end is driven by the network card and then enters the kernel speed measurement module for processing, so that the processing flow of the speed measurement message is reduced. Under the condition of processing the same amount of data, fewer CPU resources are required, and the method is particularly suitable for a system with insufficient CPU resources.
The invention processes the sending and receiving processes of the speed measurement message in the kernel, bypasses the slow kernel protocol stack, greatly saves the CPU resource and makes the realization of the speed measurement between devices possible on the embedded device with poor CPU performance.
As shown in fig. 3, both the device 1 and the device 2 are network devices equipped with CPUs, and the connection between the device 1 and the device 2 is: a two-layer or 3-layer network.
The manager in fig. 4 may be a work of manual operation management, or may be an operation of software implementation manager.
The specific speed measurement process is as follows:
1. ping test procedure: and enabling the sending end for measuring the speed to perform ping test to the receiving end for measuring the speed. The purpose of this is: 1. checking whether ping can be reached between the devices, and allowing the next speed measurement operation only if ping can be reached; 2. through ping, the sending end can obtain the MAC address of the opposite end to prepare for subsequent speed measurement.
2. The test parameter configuration process comprises the following steps: and for the destination IP of the speed measurement message, the destination port number of the speed measurement message and the speed measurement time (if the speed measurement is continuous, the time configuration is '1' to represent continuous speed measurement) which are required to be configured by the sending end. And for the receiving end, the port number of the speed measurement message and the speed measurement time need to be configured.
3. Starting a speed measuring process: firstly, configuring a receiving end to enable receiving; and secondly, configuring a sending end to start sending UDP speed measurement data packets.
4. The speed measurement result obtaining process comprises the following steps: after the device starts speed measurement, the receiving end or the sending end can be requested to obtain the speed measurement result at any time.
5. Stopping the speed measurement process: the manager can request the speed measuring equipment to stop measuring the speed through the interface, and if the speed measuring time is configured in the process 2, the equipment can automatically stop measuring the speed after the speed measuring time is expired.
The invention provides a method for realizing point-to-point speed measurement in a kernel state, which is very useful for embedded network equipment, particularly network equipment with weak CPU processing capacity. The invention bypasses the processing of the kernel protocol stack to the speed measurement message, greatly saves the CPU resource of the equipment, and makes the network equipment such as the household routing and the household AP possible to use the speed measurement function between the equipments. The application of inter-device speed measurement can help network engineers to check the bandwidth quality between network devices when a network is newly deployed, and the cost is saved.
The invention provides a method for realizing point-to-point speed measurement in a kernel state, which can be applied to installation networking, and after network equipment in a local area network completes installation networking, an engineer needs to check and accept the whole networking equipment, and the speed measurement between the equipment can complete the check and acceptance of the bandwidth of the network equipment. Meanwhile, when the wireless networking equipment is installed and deployed, the optimal relative installation position between the two sets of networking equipment can be found by using the speed measurement technology between the equipment.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.
Claims (9)
1. A method for testing network speed between two points based on network equipment is characterized in that: and the receiving, sending and processing of the speed measurement message are all carried out in the kernel.
2. The method for testing network speed between two points based on network equipment according to claim 1, wherein: the following transmission processes are performed at the transmitting end: a speed measurement message is created through a kernel speed measurement module, driven by network equipment and then sent out through the network equipment; the following reception processes are performed at the receiving end: after receiving the speed measurement message, the network device drives the speed measurement message through the network device, and then the speed measurement message is processed by the kernel speed measurement module.
3. The method for testing network speed between two points based on network equipment according to claim 2, wherein: the method for testing the network speed between two points comprises the following processes:
s1, Ping testing process;
s2, testing parameter configuration process;
s3, starting a speed measuring process;
s4, acquiring a speed measurement result;
and S5, stopping the speed measuring process.
4. The method for testing network speed between two points based on network equipment according to claim 3, wherein: in step S1, the Ping test procedure includes: let the sending end that tests the speed to the receiving end that tests the speed ping test, the purpose of doing so is: 1. checking whether ping can be reached between the devices, and allowing the next speed measurement operation only if ping can be reached; 2. through ping, the sending end can obtain the MAC address of the receiving end to prepare for subsequent speed measurement.
5. The method for testing network speed between two points based on network equipment according to claim 4, wherein: in step S2, the test parameter configuration procedure includes: configuring a destination IP of the speed measurement message, a destination port number of the speed measurement message and speed measurement time for a sending end; and configuring the port number of the speed measurement message and the speed measurement time for the receiving end.
6. The method for testing network speed between two points based on network equipment according to claim 5, wherein: in step S3, the starting of the speed measurement process includes: firstly, configuring a receiving end to enable receiving; and secondly, configuring a sending end to start sending UDP speed measurement data packets.
7. The method of claim 6, wherein the method comprises: in step S4, the process of obtaining the speed measurement result includes: after the speed measurement is started, the receiving end or the sending end can be requested to obtain the speed measurement result at any time.
8. The method of claim 7, wherein the method comprises: in step S5, the stopping the speed measurement process includes: the manager requests to stop measuring the speed through the interface, and if the speed measuring time is configured in step S2, the speed measurement is automatically stopped after the speed measuring time expires.
9. A network speed test system between two points based on network equipment is characterized in that: comprising a readable storage medium having stored therein execution instructions for, when executed by a processor, implementing the method of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110797762.9A CN113542067A (en) | 2021-07-14 | 2021-07-14 | Method and system for testing network rate between two points based on network equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110797762.9A CN113542067A (en) | 2021-07-14 | 2021-07-14 | Method and system for testing network rate between two points based on network equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113542067A true CN113542067A (en) | 2021-10-22 |
Family
ID=78099218
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110797762.9A Pending CN113542067A (en) | 2021-07-14 | 2021-07-14 | Method and system for testing network rate between two points based on network equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113542067A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102868566A (en) * | 2011-07-05 | 2013-01-09 | 彭俊 | Remote speed detection method for network device |
CN103117907A (en) * | 2013-03-11 | 2013-05-22 | 星云融创(北京)信息技术有限公司 | Network speed test method and system and method and system for selecting accelerating server |
CN103763156A (en) * | 2014-01-28 | 2014-04-30 | 中国移动(深圳)有限公司 | Network speed measurement method and system |
EP2843872A1 (en) * | 2013-08-26 | 2015-03-04 | Albis Technologies AG | Method and devices for the registration of a customer-specific acquistion of services |
CN107172648A (en) * | 2017-07-13 | 2017-09-15 | 京信通信系统(中国)有限公司 | A kind of network test method and equipment |
CN108011781A (en) * | 2017-12-06 | 2018-05-08 | 上海市共进通信技术有限公司 | The method that network equipment detection performance is improved based on linux kernel |
CN112311628A (en) * | 2020-10-30 | 2021-02-02 | 中移(杭州)信息技术有限公司 | Network speed measuring method, system, network equipment and storage medium |
-
2021
- 2021-07-14 CN CN202110797762.9A patent/CN113542067A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102868566A (en) * | 2011-07-05 | 2013-01-09 | 彭俊 | Remote speed detection method for network device |
CN103117907A (en) * | 2013-03-11 | 2013-05-22 | 星云融创(北京)信息技术有限公司 | Network speed test method and system and method and system for selecting accelerating server |
EP2843872A1 (en) * | 2013-08-26 | 2015-03-04 | Albis Technologies AG | Method and devices for the registration of a customer-specific acquistion of services |
CN103763156A (en) * | 2014-01-28 | 2014-04-30 | 中国移动(深圳)有限公司 | Network speed measurement method and system |
CN107172648A (en) * | 2017-07-13 | 2017-09-15 | 京信通信系统(中国)有限公司 | A kind of network test method and equipment |
CN108011781A (en) * | 2017-12-06 | 2018-05-08 | 上海市共进通信技术有限公司 | The method that network equipment detection performance is improved based on linux kernel |
CN112311628A (en) * | 2020-10-30 | 2021-02-02 | 中移(杭州)信息技术有限公司 | Network speed measuring method, system, network equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3585095B1 (en) | Method and device for controlling qos, smf, upf, ue, pcf and an | |
EP2903213B1 (en) | Throughput test method and apparatus | |
EP1892929A1 (en) | A method, an apparatus and a system for message transmission | |
EP3295612B1 (en) | Uplink performance management | |
CN107196820B (en) | Switch performance test method, device and system | |
JP2004015290A (en) | Voice packet priority control apparatus and method thereof | |
WO2017196216A1 (en) | A monitoring controller and a method performed thereby for monitoring network performance | |
CN101771585A (en) | Network delay measuring equipment and method thereof | |
CN103109497B (en) | For measuring the dynamic-configuration of the interconnect equipment of net neutral energy characteristic | |
CN104468265A (en) | Method and device for detecting online states of local area network terminals | |
CN111817913A (en) | Distributed network performance test method, system, server and storage medium | |
CN113542067A (en) | Method and system for testing network rate between two points based on network equipment | |
JP2009065404A (en) | Communication failure segmentation method, video distribution system having communication failure segmentation function, and receiving terminal | |
CN103441894A (en) | Method and system for L2TP concurrent connection performance test | |
US20050223150A1 (en) | Resource management device, resource management system, and resource management method | |
CN110753363A (en) | Intelligent device wireless debugging system and method | |
CN114375001B (en) | Network speed measuring method and device | |
CN210274135U (en) | Remote connection system | |
CN105306278B (en) | The system and method for PING network diagnosises is realized based on embedded Web webmaster | |
CN106301832B (en) | Method and device for processing system log message | |
CN109245964B (en) | Communication method, system, equipment and medium for public network pressure test | |
CN115567431A (en) | Network stability testing method and device, tested equipment and storage medium | |
WO2017107083A1 (en) | Data sending method and receiving method, apparatus and system | |
CN114338477A (en) | Communication link monitoring method, device, equipment and storage medium | |
JP5162641B2 (en) | Automatic configuration system for media adapter device and router device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20211022 |
|
RJ01 | Rejection of invention patent application after publication |