CN117896294A - Method for improving and acquiring network throughput test value of remote onu terminal - Google Patents

Method for improving and acquiring network throughput test value of remote onu terminal Download PDF

Info

Publication number
CN117896294A
CN117896294A CN202410121043.9A CN202410121043A CN117896294A CN 117896294 A CN117896294 A CN 117896294A CN 202410121043 A CN202410121043 A CN 202410121043A CN 117896294 A CN117896294 A CN 117896294A
Authority
CN
China
Prior art keywords
speed measurement
onu
kernel
onu terminal
data
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
Application number
CN202410121043.9A
Other languages
Chinese (zh)
Inventor
严国肇
叶佐平
余振超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Sidit Technology Co ltd
Original Assignee
Shenzhen Sidit Technology Co ltd
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 Shenzhen Sidit Technology Co ltd filed Critical Shenzhen Sidit Technology Co ltd
Priority to CN202410121043.9A priority Critical patent/CN117896294A/en
Publication of CN117896294A publication Critical patent/CN117896294A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to ONU terminal network technical field, in particular to a method for improving and obtaining network throughput test value of a remote ONU terminal, which comprises the steps of establishing connection between an ONU terminal and a tr069 network management platform, and issuing a speed measurement instruction to the ONU terminal through the tr069 network management platform, wherein the tr069 network management platform issues diagnostic instructions of uplink speed measurement and downlink speed measurement to the ONU terminal; and the ONU terminal is connected with the tr069 service process, after corresponding instructions, the ONU terminal respectively starts the processes of uplink speed measurement and downlink speed measurement, the processes are respectively executed, and simultaneously, the ONU speed measurement process creates multiple threads and establishes connection with a speed measurement server for a plurality of sockets.

Description

Method for improving and acquiring network throughput test value of remote onu terminal
Technical Field
The invention relates to the technical field of onu terminal networks, in particular to a method for improving and acquiring a network throughput test value of a remote onu terminal.
Background
Based on the TR-143 technical standard published by Broadband Forum. The document describes that a data model of a set of network performance monitoring and reporting mechanism is defined by tr069 protocol, and network throughput performance test and statistical monitoring, test function issuing of ONU terminal and information acquisition of speed measurement result are enabled.
Because the ONU terminal remotely detected by tr069 tests the speed in a soft forwarding mode, the speed measurement message is required to be processed by the CPU of the speed measurement terminal. The steps from socket establishment to protocol stack processing consume more CPU resources and consume more time, which can cause that the uplink and downlink throughput speed measurement actually tested by onu terminals with general CPU performance may not reach the actually configured bandwidth level.
Disclosure of Invention
The invention aims to provide a method for improving and acquiring a network throughput test value of a remote onu terminal, which solves the problem that the difference between an uplink speed measurement value and a downlink speed measurement value of a query terminal onu through a tr069 network management platform is large.
In order to achieve the above purpose, the present invention is widely applied to onu terminal network technical schemes, and in particular provides the following technical schemes: a method for improving the acquisition of a network throughput test value of a remote onu terminal comprises the following steps:
The ONU terminal is connected with the tr069 network management platform, and issues a speed measurement instruction to the ONU terminal through the tr069 network management platform, wherein the diagnosis instruction of the uplink speed measurement and the downlink speed measurement is issued to the ONU terminal through the tr069 network management platform;
The ONU terminal starts up load speed measurement and down load speed measurement processes respectively after corresponding instructions to tr069 service processes, the processes are executed respectively, and simultaneously, the ONU speed measurement processes create multiple threads and are connected with a speed measurement server to form multiple sockets;
after the application layer of the ONU speed measurement process is connected with the socket, the conventional speed measurement is carried out, the application program is called by the send and recv system to write into the socket, and the data is written into a buffer area of the user space; then reporting the protocol stack processing, the protocol stack in the kernel space can carry out a series of processing on the data, including adding or modifying the data packet header information, and carrying out routing;
The ONU speed measurement process reserves the speed measurement statistical result message to be local to the ONU terminal and is used for information interaction between the tr069 service process and the tr069 management platform.
Preferably, in the conventional speed measurement process, data may be copied between different kernel buffers, and after the data is processed by a protocol stack, the data is sent to a network interface controller, and then the data is received and sent through a network card driver.
Preferably, after the application layer of the ONU speed measurement process establishes socket connection, the method further includes speed measurement in an acceleration mode:
The acceleration mode speed measurement comprises the steps of skipping a kernel protocol stack to carry out acceleration optimization on message receiving and sending processing, defining an ioctl command and parameters by a user space, defining the ioctl command and related parameters for acceleration by an application program, and indicating how the kernel should count the receiving and sending data of the message.
Preferably, the acceleration mode speed measurement further includes: ioctl is invoked and defined commands and parameters are passed to the kernel.
Preferably, the acceleration mode speed measurement further includes: after the kernel receives the ioctl request, searching a corresponding device driver to process the request, accessing a kernel data structure related to the socket, receiving and transmitting a device driver statistical message, and returning the result of the ioctl to an application program in a user space by the kernel.
Compared with the prior art, the invention has the beneficial effects that:
(1) After a socket tcp connection is established between an ONU speed measurement process application layer and a speed measurement server, an application program writes the data into the socket through send and recv system call, the data is firstly written into a buffer area of a user space, and then a protocol stack is reported for processing, and a protocol stack of a kernel space can perform a series of processing on the data, including adding or modifying data packet header information, routing and the like; in the process, the data can be copied among different kernel buffers, and after being processed by a protocol stack, the data can be sent to a network interface controller and then received and sent through a network card driver; thereby realizing the conventional mode of testing the network throughput of onu terminals;
(2) The invention skips the kernel protocol stack to transmit and receive the message through the accelerating mode, carries out accelerating optimization, defines the ioctl command and parameters in the user space, defines the ioctl command and related parameters for accelerating, indicates the kernel how to count the transmit and receive data of the message, and calls the ioctl and transmits the defined command and parameters to the kernel; after receiving the ioctl request, the kernel searches a corresponding device driver to process the request, accesses a kernel data structure related to the socket, transmits and receives a device driver statistical message, and returns the ioctl result to an application program in a user space; therefore, the network card driver dev is directly connected to send and receive data in an ioctl mode, the data is received and sent without memory copying between a user space and a kernel space, time consumption is reduced, complex message processing of a protocol stack is not needed, processing of iptables soft forwarding and the like is carried out by a work queue of a kernel, and the work queue is processed by a kernel thread, so that the data receiving and sending efficiency is improved, the uplink and downlink speed measurement data of a remote terminal acquired by a management platform is more close to the actual bandwidth level, and the acceleration mode of network throughput test values of onu terminals is realized.
Drawings
FIG. 1 is a flow chart of the overall invention;
FIG. 2 is a flow chart of the present invention for a user to select a conventional mode or an acceleration mode.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1 and fig. 2, a method for improving the network throughput test value of a remote onu terminal according to the present invention includes:
The ONU terminal is connected with the tr069 network management platform, and issues a speed measurement instruction to the ONU terminal through the tr069 network management platform, wherein the diagnosis instruction of the uplink speed measurement and the downlink speed measurement is issued to the ONU terminal through the tr069 network management platform;
The ONU terminal starts up load speed measurement and down load speed measurement processes respectively after corresponding instructions to tr069 service processes, the processes are executed respectively, and simultaneously, the ONU speed measurement processes create multiple threads and are connected with a speed measurement server to form multiple sockets;
after the application layer of the ONU speed measurement process is connected with the socket, the conventional speed measurement is carried out, the application program is called by the send and recv system to write into the socket, and the data is written into a buffer area of the user space; then reporting the protocol stack processing, the protocol stack in the kernel space can carry out a series of processing on the data, including adding or modifying the data packet header information, and carrying out routing;
The ONU speed measurement process reserves the speed measurement statistical result message to be local to the ONU terminal and is used for information interaction between the tr069 service process and the tr069 management platform;
Specifically, in the conventional speed measurement process, data may be copied between different kernel buffers, and after the data is processed by a protocol stack, the data is sent to a network interface controller, and then the data is received and sent through a network card driver.
In this embodiment, after the application layer of the ONU speed measurement process and the socket connection are established, the method further includes speed measurement by an acceleration mode:
The acceleration mode speed measurement comprises: skipping the kernel protocol stack to carry out acceleration optimization on the message transceiving processing, defining an ioctl command and parameters in a user space, defining the ioctl command and related parameters for acceleration by an application program, and indicating how the kernel should count the transceiving data of the message; the onu terminal network throughput test value method further comprises the following steps: calling ioctl and transmitting defined commands and parameters to the kernel; after the kernel receives the ioctl request, searching a corresponding device driver to process the request, accessing a kernel data structure related to the socket, receiving and sending a device driver statistical message, and returning the result of the ioctl to an application program in a user space by the kernel; the ONU speed measurement process reserves the speed measurement statistical result message to the ONU local for the information interaction between the tr069 service process and the tr069 management platform;
Specifically, the ioctl mode is adopted to directly butt-joint the network card drive dev to send and receive data, the data is not required to be copied in a memory between a user space and a kernel space, time consumption is reduced, complex message processing of a protocol stack, processing of iptables soft forwarding and the like are not required, the data is picked up by a work queue of the kernel and is processed by a kernel thread, so that the data receiving and sending efficiency is improved, and the uplink and downlink speed measurement data acquired by a management platform from a remote terminal is closer to the actual bandwidth level.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (5)

1. A method for improving the acquisition of a network throughput test value of a remote onu terminal is characterized in that: comprising the following steps:
The ONU terminal is connected with the tr069 network management platform, and issues a speed measurement instruction to the ONU terminal through the tr069 network management platform, wherein the diagnosis instruction of the uplink speed measurement and the downlink speed measurement is issued to the ONU terminal through the tr069 network management platform;
The ONU terminal starts up load speed measurement and down load speed measurement processes respectively after corresponding instructions to tr069 service processes, the processes are executed respectively, and simultaneously, the ONU speed measurement processes create multiple threads and are connected with a speed measurement server to form multiple sockets;
after the application layer of the ONU speed measurement process is connected with the socket, the conventional speed measurement is carried out, the application program is called by the send and recv system to write into the socket, and the data is written into a buffer area of the user space; then reporting the protocol stack processing, the protocol stack in the kernel space can carry out a series of processing on the data, including adding or modifying the data packet header information, and carrying out routing;
The ONU speed measurement process reserves the speed measurement statistical result message to be local to the ONU terminal and is used for information interaction between the tr069 service process and the tr069 management platform.
2. The method for improving the acquisition of the network throughput test value of the remote onu terminal according to claim 1, wherein: in the conventional speed measurement process, data may be copied between different kernel buffers, and after being processed by a protocol stack, the data may be sent to a network interface controller, and then the data is received and sent through a network card driver.
3. The method for improving the acquisition of the network throughput test value of the remote onu terminal according to claim 1, wherein: the acceleration mode speed measurement is further included after the application layer of the ONU speed measurement process is connected with the socket:
The acceleration mode speed measurement comprises the steps of skipping a kernel protocol stack to carry out acceleration optimization on message receiving and sending processing, defining an ioctl command and parameters by a user space, defining the ioctl command and related parameters for acceleration by an application program, and indicating how the kernel should count the receiving and sending data of the message.
4. A method for enhancing acquisition of network throughput test values of a remote onu terminal as defined in claim 3, wherein: the acceleration mode speed measurement further comprises: ioctl is invoked and defined commands and parameters are passed to the kernel.
5. The method for improving the network throughput test value of the remote onu terminal according to claim 4, wherein: the acceleration mode speed measurement further comprises: after the kernel receives the ioctl request, searching a corresponding device driver to process the request, accessing a kernel data structure related to the socket, receiving and transmitting a device driver statistical message, and returning the result of the ioctl to an application program in a user space by the kernel.
CN202410121043.9A 2024-01-29 2024-01-29 Method for improving and acquiring network throughput test value of remote onu terminal Pending CN117896294A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410121043.9A CN117896294A (en) 2024-01-29 2024-01-29 Method for improving and acquiring network throughput test value of remote onu terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410121043.9A CN117896294A (en) 2024-01-29 2024-01-29 Method for improving and acquiring network throughput test value of remote onu terminal

Publications (1)

Publication Number Publication Date
CN117896294A true CN117896294A (en) 2024-04-16

Family

ID=90644255

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410121043.9A Pending CN117896294A (en) 2024-01-29 2024-01-29 Method for improving and acquiring network throughput test value of remote onu terminal

Country Status (1)

Country Link
CN (1) CN117896294A (en)

Similar Documents

Publication Publication Date Title
US5644717A (en) System for generating local area network operating statistics based on monitored network traffic and method therefor
US20060036764A1 (en) Priority control device
CN112039722B (en) MQTT protocol simulation method and simulation equipment
CN111682994B (en) Annular or linear network system based on EPA protocol and transmission method of non-real-time data
CN109802773B (en) Social trust perception cooperative wireless network data transmission method
CA2857727C (en) Computer-implemented method, computer system, computer program product to manage traffic in a network
CN112261142B (en) RDMA network data retransmission method, device and FPGA
CN117896294A (en) Method for improving and acquiring network throughput test value of remote onu terminal
CN111092952B (en) Data interaction method and related product
WO2023160568A1 (en) Communication method and apparatus, and system and storage medium
CN114337942B (en) Message retransmission method and device and electronic equipment
CN210274135U (en) Remote connection system
CN114827272A (en) Power business management method and device, transformer substation equipment and storage medium
CN112637055A (en) Multi-link aggregation method, system and storage medium based on VPN tunnel
CN110661731A (en) Message processing method and device
KR100900963B1 (en) Hardware device and method for sending the network protocol packet
CN112667359B (en) Data transparent transmission method, electronic equipment and storage medium
CN112437458B (en) Data transmission method, device, communication equipment and medium
CN112596893B (en) Monitoring method and system for multi-node edge computing device
CN108738061B (en) Short message sending performance test method and system based on cmpp3.0 protocol
CN117440026B (en) Terminal connection and data interaction management and control method and system based on electric power Internet of things
CN112019400A (en) Radio frequency test method and system based on wireless communication tester
US8112400B2 (en) Method for collecting data from semiconductor equipment
JP3254318B2 (en) Communication control method for network management device
CN113676378A (en) Network bandwidth speed measurement application for simplifying Linux TCP protocol stack

Legal Events

Date Code Title Description
PB01 Publication