CN107148009B - Multi-standard mobile communication network internet data flow measuring device and method thereof - Google Patents

Multi-standard mobile communication network internet data flow measuring device and method thereof Download PDF

Info

Publication number
CN107148009B
CN107148009B CN201710528842.8A CN201710528842A CN107148009B CN 107148009 B CN107148009 B CN 107148009B CN 201710528842 A CN201710528842 A CN 201710528842A CN 107148009 B CN107148009 B CN 107148009B
Authority
CN
China
Prior art keywords
data
network
module
internet
mobile communication
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.)
Active
Application number
CN201710528842.8A
Other languages
Chinese (zh)
Other versions
CN107148009A (en
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.)
Zhejiang Province Institute of Metrology
Original Assignee
Zhejiang Province Institute of Metrology
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 Zhejiang Province Institute of Metrology filed Critical Zhejiang Province Institute of Metrology
Priority to CN201710528842.8A priority Critical patent/CN107148009B/en
Publication of CN107148009A publication Critical patent/CN107148009A/en
Application granted granted Critical
Publication of CN107148009B publication Critical patent/CN107148009B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a multi-mode mobile communication network internet data flow measurement device and a method thereof, belonging to the field of measurement. The invention adopts the data flow monitoring hook program to be embedded into the driving program, captures the data packet in the internet data flow measurement process on the data channel in real time, analyzes the head of the captured data packet, judges the type, the characteristics and the identification of the data packet, rejects the data packet which does not belong to the statistical range according to the judgment result, and carries out real-time accumulation on the mobile communication network internet data flow data packet which belongs to the statistical range to obtain the measurement result of the internet data flow measurement data, and the result does not need to be weighted or corrected, thereby obviously improving the measurement precision of the internet data flow measurement data.

Description

Multi-standard mobile communication network internet data flow measuring device and method thereof
Technical Field
The invention belongs to the field of metering, and particularly relates to a multi-mode mobile communication network internet data flow measuring device and a method thereof.
Background
With the development of domestic mobile communication networks, mobile data services based on 2G (GPRS, CDMA),3G (WCDMA, CDMA2000 and TD-SCDMA), 4G (TD-LTE, FDD-LTE) and WIFI are widely used, mobile communication operators charge based on the magnitude of internet data traffic generated during mobile communication, and data traffic calculation systems and charging systems of mobile communication operators belong to the range of trade settlement equipment. According to the regulations of the metering law, trade settlement equipment should be listed in a forced metering range. Meanwhile, as the number of users using mobile communication network data services is increasing, the problem of accuracy in metering internet data traffic of the mobile communication network also becomes a focus of public concern.
However, a device for measuring the internet access data traffic of the mobile communication operator is lacked at present, so that the quality inspection measuring system cannot effectively supervise the internet access data traffic of the mobile communication operator.
At present, users commonly use internet data flow measurement software to measure internet data flow at wireless terminals such as mobile phones. The software utilizes an interface function provided by the system to obtain the internet data traffic, and the measured internet data traffic and the measurement result of a mobile communication operator have great deviation due to the problems of interference of other software of the system, data packet loss, retransmission and the like.
In general, the following problems exist in the current prior art:
(1) the measurement data of the internet data flow of the mobile communication network cannot be directly acquired, and in order to make the measurement result close to the measurement result of the operator, a weighting algorithm and a correction algorithm are needed to calculate the final flow measurement result, and errors are introduced in the calculation process, so that the difference between the measurement result and the measurement result of the mobile communication operator is further expanded.
(2) The data flow measurement is not considered in which network protocol layer, so that the caliber of the data flow measurement is inconsistent with the caliber measured by the mobile communication operator, and a large difference exists between the measurement result and the measurement result of the mobile communication operator.
(3) The same data flow test scene is difficult to reproduce, the measurement repeatability and stability requirements cannot be met, stable tests cannot be provided, and the test results cannot be reproduced repeatedly.
(4) The method is limited to theory and is not implemented in actual hardware.
Disclosure of Invention
The invention aims to solve the problems in the prior art and provides a communication network data flow measurement method, which can complete the mobile communication network and WIFI network data flow measurement under 2G (GPRS, CDMA),3G (WCDMA, CDMA2000 and TD-SCDMA) and 4G (TD-LTE, FDD-LTE) modes.
The invention adopts the following specific technical scheme:
the multi-standard mobile communication network internet data flow measuring device comprises at least 1 of a wireless internet communication module and a local Ethernet interface, a CPU, a storage unit, a GPS clock unit and a power supply;
the CPU is connected with the wireless internet communication module and/or the local Ethernet interface; the CPU captures a data packet in the flow measurement process of the internet data on a data channel by using a hook program embedded in a network card driving program in the transmission process; analyzing the captured packet header of the data packet, and accumulating the data packet in the target layer according to the type, the characteristics and the identification of the data packet to obtain the measurement data of the internet access data flow;
the wireless internet communication module is used for accessing a wireless air link of a mobile communication operator and is linked to the server through the link;
the local Ethernet interface is used for connecting to a server through an Ethernet of a communication operator;
the storage unit is connected to the CPU and used for storing the Internet surfing data flow measurement data recorded by the CPU in the transmission process;
the GPS clock unit is connected to the CPU and used for synchronizing the system time of the CPU;
the power supply is used for supplying power to the measuring device.
Preferably, the wireless internet communication module is one or more of a WCDMA 3G module, a CDMA 20003G module, a TD-SCDMA 3G module, a TD-LTE 4G module, an FDD-LTE 4G module, or a WIFI module, wherein card slots for installing SIM cards are arranged on the WCDMA 3G module, the CDMA 20003G module, the TD-SCDMA 3G module, the TD-LTE 4G module, and the FDD-LTE 4G module.
Preferably, the system further comprises a capacitive touch screen for man-machine interaction display.
Preferably, the system further comprises an mSATA hard disk interface used for expanding the hard disk and providing storage space.
Preferably, the system further comprises an SD interface and/or a USB Host interface for copying data flow measurement results.
Preferably, the power supply comprises an external power supply and/or a built-in lithium battery.
Preferably, the storage unit comprises a NANDFLASH, a DDR RAM storage unit and an mSATA hard disk connected to the CPU by an mSATA hard disk interface.
Another objective of the present invention is to provide a method for measuring internet data traffic in a multi-system mobile communication network based on the above measuring device, which comprises the following steps:
s1: selecting a wireless internet communication module for measurement, and accessing the wireless internet communication module into a wireless air link corresponding to a mobile communication operator;
s2: starting the measuring device, and carrying out hardware initialization on the wireless internet communication module, the storage system and the display system;
s3: judging the communication network system of the wireless internet communication module, if the network system is a 2G, 3G or PPP mode 4G network, initializing a signal notification mechanism and a shared memory mechanism, loading a first hook program for monitoring the working state of the network card, loading a start kernel and a second hook program for monitoring the data flow in a network card driving program, monitoring all network operations in a data channel, simultaneously calling an AT instruction to initialize a dialing parameter, a module communication parameter and a network type parameter and loading configuration, calling a serial port workbench process, and entering a networking mode; if the network mode is a TD-LTE 4G network or an FDD-LTE 4G network under a USB interface, initializing a signal notification mechanism and a shared memory mechanism under a TD-LTE or FDD-LTE flow mode, loading a hook program for monitoring 4G flow, calling an IFCONFIG command to load an initialization network card Device, registering the initialization network card Device to a NET Device list, calling an AT instruction to initialize a dialing parameter, a module communication parameter and a network type parameter, loading configuration, and calling a serial port workbench process; if the network system is a USB interface WIFI network, initializing a signal notification mechanism and a shared memory mechanism in a WIFI flow mode, loading a hook program for monitoring WIFI flow, calling an IFCONFIG command to load an initialization network card Device, and registering the initialization network card Device to a NET Device list;
s4: the system time of the CPU is synchronized by using a GPS clock unit, and the system time setting of the device is completed;
s5: the CPU starts to transmit the target file with the server, and captures a data packet in the flow measurement process of the internet data on a data channel by using a second hook program embedded in a network card driving program in the transmission process; analyzing the captured packet header of the data packet, and accumulating the data packet in the target layer according to the type, the characteristics and the identification of the data packet to obtain the measurement data of the internet data flow.
The invention also aims to provide a multi-system mobile communication network internet data flow measuring method, after the internet data flow measuring data is obtained according to the measuring method, a server for a user to inquire the flow is used for reading internet flow details through a mobile communication operator, the data flow measuring data measured by the internet flow charging system of the mobile communication operator is compared with the data flow measuring data measured by the device to obtain the data flow measuring data deviation, whether the deviation exceeds a threshold value is calculated, if the deviation exceeds the threshold value, the internet flow charging system of the mobile communication operator is judged to be inaccurate, and if not, the internet flow charging system of the mobile communication operator is judged to be accurate.
Preferably, the step S5 is repeated several times at intervals for the same target file, and the measurement data result of the online data flow obtained by each measurement is saved to perform the repeatability verification.
Compared with the prior art, the invention has the following beneficial effects:
1. the invention can directly obtain the data flow measurement data of the communication network on the data channel without weighting or correcting algorithm.
2. The invention adopts the data flow monitoring hook program to be embedded into the driving program, captures the data packet in the internet data flow measurement process on the data channel in real time, analyzes the head of the captured data packet, judges the type, the characteristics and the identification of the data packet, rejects the data packet which does not belong to the statistical range according to the judgment result, and carries out real-time accumulation on the mobile communication network internet data flow data packet which belongs to the statistical range to obtain the measurement result of the internet data flow measurement data, and the result does not need to be weighted or corrected, thereby obviously improving the measurement precision of the internet data flow measurement data.
3. The invention can respectively count the flow measurement data of the uplink data of the IP layer, the flow measurement data of the downlink data of the IP layer, the flow measurement data of the uplink data of the TCP layer and the flow measurement data of the downlink data of the TCP layer, and a user can obtain the single uplink and downlink measurement data and also can respectively obtain the measurement data of the TCP layer and the IP layer.
4. The flow measurement data of the mobile communication network internet data obtained by the invention is consistent with the flow measurement data of the operator. The method for measuring the internet surfing data flow of the mobile communication network, which is adopted by the invention, adopts the method that the data flow monitoring hook program is embedded into the driving program and the data packet in the internet surfing data flow measuring process is captured on the data channel in real time, so that the test result and an operator keep high consistency, and the accuracy and the fairness of the measurement result are ensured.
5. The invention can reproduce the same data flow test scene and meet the requirements of measurement repeatability and stability. The measuring requirement testing device and the measuring requirement testing method have good stability and repeatability, and the method adopted by the invention can be used for carrying out the same data flow test at different time and different places, has reproducibility, has good repeatability and stability, and completely meets the measuring requirement.
Drawings
FIG. 1 is a flow chart of a method of data traffic measurement in a communication network;
FIG. 2 is a schematic structural diagram of a data flow measurement device of a communication network in an embodiment;
FIG. 3 is a flow diagram of a method for data traffic measurement in a communication network according to an embodiment;
FIG. 4 is a flow diagram of a method for data traffic measurement in a communication network according to an embodiment;
FIG. 5 is a flow diagram of a method for data traffic measurement in a communication network according to an embodiment;
FIG. 6 is a flow chart of a network terminal acquiring a data packet;
fig. 7 is a flow chart of a method of communicating network data flow measurement.
Detailed Description
The invention will be further elucidated and described with reference to the drawings and the detailed description. The technical features of the embodiments of the present invention can be combined correspondingly without mutual conflict.
The invention provides a method for measuring communication network data flow, which comprises the following basic steps:
s1: the network terminal (mobile equipment, PC machine or other network equipment integrated with the function module) is accessed to a communication network to be measured, wherein the communication network comprises 2G, 3G, 4G, 5G, WIFI network, WiMax, wired network or Ethernet.
S2: data transmission (uplink or downlink, preferably downloading) is carried out with a target server through the communication network, a hook program for monitoring data flow is embedded into a network card driving program in the transmission process, and a data packet in the measurement process of the internet data flow is captured on a data channel;
s3: analyzing the captured data packet head;
s4: according to the analysis result (including type, characteristics and identification) of the data packet, the data packet can be classified to a corresponding layer, and then the data packet in the target layer is accumulated to obtain the measurement data of the internet data flow of the layer.
In order to implement the method, the present invention further provides a device for measuring network access data flow of a multi-standard mobile communication network, as shown in fig. 2. The device comprises a CPU, a wireless internet communication module, a local Ethernet interface, a storage unit, a GPS clock unit, a capacitive touch screen, an audio input/output unit, a mSATA hard disk interface, a SD interface, a USB Host interface and a power supply, wherein the wireless internet communication module, the local Ethernet interface, the storage unit, the GPS clock unit, the capacitive touch screen, the mSATA hard disk interface, the SD interface, the USB Host interface and the power supply are connected with the CPU, and the storage unit comprises NAND FLASH, a DDR RAM storage unit and a mSATA hard disk. The wireless internet communication module is one or more of a WCDMA 3G module, a CDMA 20003G module, a TD-SCDMA 3G module, a TD-LTE 4G module, an FDD-LTE 4G module or a WIFI module, and is determined according to what network data flow needs to be measured. The WIFI module is a self-contained component, so that the wireless internet communication module can select one or more of a WCDMA 3G module, a CDMA 20003G module, a TD-SCDMA 3G module, a TD-LTE 4G module and an FDD-LTE 4G module according to requirements. The wireless internet communication module is provided with a card slot for installing an SIM card, and the SIM card corresponding to an operator is inserted into the card slot during measurement.
The CPU adopts a Feichal i.MX6ARM Cortex-A9 processor with a dominant frequency of 1 GHz; DDR RAM memory cell adopts DDR3 memory, 1GB capacity; NAND FLASH, INAND Flash of a high-speed EMMC interface is adopted, 8GByte capacity is adopted, and INAND starting is supported; the wireless internet communication module adopts a mini-PCIE interface 3G module (supporting WCDMA, CDMA2000 and TD-SCDMA, downward compatible 2G (GPRS, CDMA)) and a 4G module (TD-LTE, FDD-LTE)) to support an instruction set, can be configured according to requirements, and an antenna is an external SMA interface to support three operations of China Mobile, China telecom and China Unicom; the capacitive touch screen adopts an LVDS interface capacitive multi-point touch display screen; the WLAN unit uses a WiFi module and supports 802.11 b/g/n; the GPS clock unit uses a GPS module, and the antenna is an external SMA interface; the audio input and output unit provides an audio coding and decoding interface; the mSATA hard disk interface provides an SATA interface and supports a 4T mSATA hard disk to the maximum extent; the SD interface provides a standard SD card interface; the local Ethernet interface provides an 10/100/1000Mbps BASE-T Ethernet port; the USB Host interface supports 4 USB Host interfaces and one USB OTG; the power management unit adopts a 10000 mA hour 7.2V lithium battery and an external power supply. The devices may be wired according to the wiring instructions provided by the supplier, which is not limited.
In the device for measuring the network data flow of the mobile communication network, the hardware functions are as follows:
a CPU: the hardware device core has the functions of processing instructions, executing operations, controlling time, processing data and the like, and a Linux system is loaded in the hardware device core.
The internet communication module: the CPU is connected to the wireless internet communication module and the local ethernet interface, and the wireless internet communication module is used to access a wireless air link of a mobile communication operator and is linked to the server through the link and a wired link, as shown in fig. 2. The local ethernet interface is used to connect to the server via the ethernet of the communications carrier. When the flow measurement of the mobile communication network is carried out, the uplink data is sent to a wireless air link after being modulated by a wireless internet communication module; receiving downlink data from a wireless air link, demodulating the downlink data and transmitting the demodulated downlink data to a flow measurement device, and capturing a data packet in the flow measurement process of the internet data on a data channel by using a hook program embedded in a network card driving program in the transmission process by a CPU (central processing unit); analyzing the captured packet header of the data packet, and accumulating the data packet in the target layer according to the type, the characteristics and the identification of the data packet to obtain the measurement data of the internet data flow. When the Ethernet flow needs to be measured, data transmission is carried out between the Ethernet and the server, and the data channel of the network card is monitored in the same way.
DDR RAM memory cell: and the volatile storage device is used for temporarily storing temporary data when the embedded system runs.
NAND FLASH: a non-volatile storage device for storing an appliance embedded operating system.
Capacitive touch screen: and (4) man-machine interaction display, wherein the system receives a control command and displays the setting parameters and the measurement result.
The WLAN unit: and a WIFI module is adopted for connecting WIFI hotspots.
A GPS clock unit: and synchronizing the system time.
An audio input-output unit: the device can also play videos through a network and monitor data flow in the video playing process, and the unit is used for inputting and outputting audio signals in the video playing process.
mSATA hard disk interface: and the expansion hard disk is used for providing a temporary storage space for the received files in the data transmission process.
An SD interface: and the external SD card is supported and used for copying the data flow measurement result.
USB Host interface: and supporting an external USB device for copying the data flow measurement result.
A power management unit: the device comprises an external power supply and a built-in lithium battery, and provides power supply for the device.
The method can measure the internet access data traffic of different layers according to the user requirements. The target layer can be any layer in a network protocol, such as an application layer, a transmission layer, an interconnection network layer and a network interface layer in a TCP/IP four-layer model; physical layer, data link layer, network layer, transport layer, session layer, presentation layer, application layer in the OSI seven-layer model; network layer, GTP layer, TCP/UDP layer, IP layer, data link layer, physical layer in 2G network.
Based on the measuring device, a multi-mode mobile communication network internet data flow measuring method can be specifically designed, and the method comprises the following steps:
step 1: selecting a wireless internet communication module for measurement, and accessing the wireless internet communication module into a wireless air link corresponding to a mobile communication operator;
and 2, step: starting the measuring device, and carrying out hardware initialization on the wireless internet communication module, the storage system and the display system;
and step 3: judging the communication network system of the wireless internet communication module, if the network system is a 2G, 3G or PPP mode 4G network, initializing a signal notification mechanism and a shared memory mechanism, loading a first hook program for monitoring the working state of the network card, loading a start kernel and a second hook program for monitoring the data flow in a network card driving program, monitoring all network operations in a data channel, simultaneously calling an AT instruction to initialize a dialing parameter, a module communication parameter and a network type parameter and loading configuration, calling a serial port workbench process, and entering a networking mode; if the network mode is a TD-LTE 4G network or an FDD-LTE 4G network under a USB interface, initializing a signal notification mechanism and a shared memory mechanism under a TD-LTE or FDD-LTE flow mode, loading a hook program for monitoring 4G flow, calling an IFCONFIG command to load an initialization network card Device, registering the initialization network card Device to a NET Device list, calling an AT instruction to initialize a dialing parameter, a module communication parameter and a network type parameter, loading configuration, and calling a serial port workbench process; if the network system is a USB interface WIFI network, initializing a signal notification mechanism and a shared memory mechanism in a WIFI flow mode, loading a hook program for monitoring WIFI flow, calling an IFCONFIG command to load an initialization network card Device, and registering the initialization network card Device to a NET Device list;
and 4, step 4: the system time of the CPU is synchronized by using a GPS clock unit, and the system time setting of the device is completed;
and 5: the CPU starts to transmit the target file with the server, and captures a data packet in the flow measurement process of the internet data on a data channel by using a second hook program embedded in a network card driving program in the transmission process; analyzing the captured packet header of the data packet, and accumulating the data packet in the target layer according to the type, the characteristics and the identification of the data packet to obtain the measurement data of the internet data flow.
The various steps of the method may be implemented in the embedded system by different modules. Because the networks of different systems have differences, the method is also changed when applied to different networks. In addition, since other processes in the system also generate data traffic when they are active during data transmission, the method of the present invention is preferably operated in a Linux system in order to reduce interference of other processes. The following describes the implementation manners of S3 and S5 in the foregoing method by taking an embedded system loaded with a Linux operating system as an example for the three most common network systems.
When the communication network is a 2G, 3G or PPP mode 4G network, the method for measuring traffic comprises the following steps:
as shown in fig. 3, the system initializes a signaling mechanism and a shared memory mechanism in a PPP mode, calls a PPPD-2.4.4 process and runs in a background mode, loads a first hook program for monitoring the working state of the PPPD-2.4.4 process, loads and starts a kernel PPP driver, loads a second hook program for monitoring data traffic in the PPPD-2.4.4 driver, monitors all operations of a file standard interface Read (), Write (), ioctl (), and calls an AT instruction to initialize a dialing parameter, a module communication parameter, and a network type parameter, loads these configurations, calls a serial workbench process, and enters a networking mode to transmit a data packet. Capturing a data packet in the flow measurement process of the internet data on a data channel by using a second hook program embedded in a network card driving program in the data transmission process with a target server; analyzing the captured packet header of the data packet, and accumulating the data packet in the target layer according to the type, the characteristics and the identification of the data packet to obtain the measurement data of the internet data flow.
When the communication network is a TD-LTE 4G network or an FDD-LTE 4G network under a USB interface, the flow measuring method comprises the following steps:
as shown in fig. 4, when the Linux system is started, a signaling mechanism and a shared memory mechanism in a TD-LTE or FDD-LTE traffic mode are initialized, a hook program for monitoring 4G traffic is loaded, an IFCONFIG command is called to load an initialized network card Device, the network card Device is registered in a NET Device list, an AT command is called to initialize a dialing parameter, a module communication parameter and a network type parameter, configuration is loaded, and a serial workbench process is called; capturing a data packet in the measurement process of the internet surfing data flow on a data channel in the data transmission process with a target server by utilizing a hook program embedded in a network card driving program; analyzing the captured packet header of the data packet, and accumulating the data packet in the target layer according to the type, the characteristics and the identification of the data packet to obtain the measurement data of the internet data flow.
When the communication network is a USB interface WIFI network, the flow measurement method comprises the following steps:
as shown in fig. 5, when the Linux system is started, a signaling mechanism and a shared memory mechanism in a WIFI traffic mode are initialized, a hook program for monitoring WIFI traffic is loaded, an IFCONFIG command is called to load an initialization network card Device, and the initialization network card Device is registered in a NET Device list; capturing a data packet in the measurement process of the internet surfing data flow on a data channel in the data transmission process with a target server by utilizing a hook program; analyzing the captured packet header of the data packet, and accumulating the data packet in the target layer according to the type, the characteristics and the identification of the data packet to obtain the measurement data of the internet data flow.
The above-mentioned are only the implementation steps in three types of network systems, but those skilled in the art need to know that the present invention is not limited to this, for example, 5G, wired network or ethernet, etc. can also be metered by using the method of the present invention.
Based on the data flow measurement method, a communication network data flow measurement method can be further provided, and the steps are as follows:
the network terminal accesses the mobile communication operator through a wireless link, and downloads the standard file data packet from the server through a wired link, as shown in fig. 6. As shown in fig. 7, the flow generated by downloading the file by the network terminal is measured according to the method, and then compared with the data flow measured by the traffic billing system of the communication data operator to obtain the data deviation between the two, and whether the deviation exceeds the threshold value is calculated, if so, the online traffic billing system of the mobile communication operator is determined to be inaccurate, otherwise, the online traffic billing system of the communication data operator is determined to be accurate. In the measurement process, preferably, step S5 is repeated several times at intervals for the target files of the same size, and the measurement data result of the online data flow obtained by each measurement is saved for repeatability verification.
The present invention is further described in detail below with reference to a specific embodiment so that those skilled in the art can better understand the implementation manner of the present invention.
Example 1
The present embodiment is the measuring device shown in fig. 2. After the system is started, hardware initialization is firstly carried out on the wireless internet communication module, the storage system and the display system, and after the hardware initialization is completed, current system hardware information is displayed on the capacitive touch screen and a user test instruction is waited. After a user inputs a test instruction on the capacitive touch screen, the system receives user setting operation, the device dials up to the Internet, and Internet data flow measurement is started. And the system calls a flow measurement instruction set and a Linux system kernel support module to monitor and measure an IP data packet in the internet data flow measurement process, and displays the internet data flow measurement data on the capacitive touch screen in real time and stores the internet data flow measurement data in a system physical storage space. The system realizes system time synchronization through a GPS clock unit.
The specific method for measuring the internet access data traffic of the mobile communication network based on the device comprises the following steps:
(1) and selecting the WCDMA 3G module as a wireless internet communication module for measurement.
(2) The embedded program is written to the device NAND FLASH.
(3) And an external power supply is connected to the device through the device power management unit to supply power to the device.
(4) And putting the China Unicom Internet SIM card into the device card slot.
(5) And starting the mobile communication network internet data flow measuring device.
(6) And hardware initialization, namely performing hardware initialization on the wireless internet communication module, the storage system and the display system, and displaying current system information on the capacitive touch screen of the device after the hardware initialization is completed.
(7) And starting Linux system
The system initializes a signal notification mechanism and a shared memory mechanism under a PPP mode, calls a PPPD-2.4.4 process and runs in a background mode, loads a first hook program for monitoring the working state of the PPPD-2.4.4 process, loads and starts a kernel PPP drive, loads a second hook program for monitoring the data flow in the PPPD-2.4.4 drive, monitors all operations of file standard interfaces Read (), Write (), ioctl (), calls an AT instruction to initialize dialing parameters, module communication parameters and network type parameters, loads the configurations, calls a serial workbench process, and enters a networking mode to transmit data packets.
(8) And setting the clicking time of the user on the capacitive touch screen of the device, and synchronizing the time of the GPS clock unit of the device to finish the setting of the system time of the device
(9) And setting parameters of the capacitive touch screen by the user: selecting test types of dialing circulation HTTP and download files, IP addresses of the download files are 218.75.126.173, ports are 80 ports, circulation times are set for 10 times, and dialing parameters are set as 'waiting for 0 second before dialing'; waiting for 0 second before downloading; wait 10 seconds after the disconnection.
(10) And after the setting is finished, clicking a 'start' button on the capacitive touch screen of the device. The test is started.
(11) The device dials up to the Internet, downloads the standard file with the file size of 10MB from the address http://218.75.126.173:80 through the embedded program, and temporarily stores the file in NAND FLASH in the downloading process. In the downloading process, capturing a data packet in the internet data flow measurement process on a data channel by using a second hook program embedded in a network card driving program, analyzing the head of the captured data packet, identifying data packets of an IP layer and a TCP layer according to the type, characteristics and identification of the data packet, removing other data packets, and accumulating the data packets in the IP layer and the TCP layer respectively to obtain internet data flow measurement data in each layer.
(12) And after the device finishes downloading once, disconnecting PPP connection, and displaying the data flow measurement result obtained by downloading the time on a capacitive touch screen of the device. The data flow measurement result includes downlink flow of an IP layer, uplink flow of the IP layer, total uplink and downlink flow of the IP layer, downlink flow of TCP, uplink flow of TCP, and total uplink and downlink flow of TCP.
In this embodiment, after the first downloading is completed, the test data is as follows:
TABLE 1 first data flow measurement
Figure BDA0001338969590000111
(13) After the device finishes downloading once, the device is disconnected and waits for 10 seconds, then dial up to surf the internet again, and the size of the repeatedly downloaded file is 9 times of the 10MB standard file. After the test, 10 groups of data are obtained
TABLE 2 Ten data flow measurements
Figure BDA0001338969590000121
(14) And after the test is finished, disconnecting the PPP connection, and storing the test result to the NANDFLASH in a TXT file format.
(15) And inserting the USB flash disk into a USB Host interface, and copying the TXT file format to the USB flash disk.
(16) Logging in a mobile communication operator website, inquiring the internet flow detail, and comparing data flow measurement data measured by the internet flow charging system of the mobile communication operator with data flow measurement data measured by the device to obtain data flow measurement data deviation.
TABLE 3 Ten times data flow measurement results vs. operator data
Serial number Device IP layer up and down total flow (byte) Operator IP layer upstream and downstream total traffic (byte) Absolute value of deviation
1 11087414 11087466 0.00047%
2 11086166 11086218 0.00047%
3 11089650 11089650 0.00000%
4 11088974 11089130 0.0014%
5 11090638 11090794 0.0014%
6 11086946 11087102 0.0014%
7 11088558 11088558 0.00000%
8 11088090 11088090 0.00000%
9 11087518 11087518 0.00000%
10 11088870 11088922 0.00047%
Therefore, the method has extremely high measurement accuracy, and the absolute value of the deviation between the actual measurement value and the data flow value provided by an operator is controlled within 0.0014%.
The above-described embodiments are merely preferred embodiments of the present invention, which should not be construed as limiting the invention. Various changes and modifications may be made by one of ordinary skill in the pertinent art without departing from the spirit and scope of the present invention. Therefore, the technical scheme obtained by adopting the mode of equivalent replacement or equivalent transformation is within the protection scope of the invention.

Claims (9)

1. A multi-system mobile communication network internet data flow measuring method based on a multi-system mobile communication network internet data flow measuring device is characterized in that the multi-system mobile communication network internet data flow measuring device comprises at least 1 of a wireless internet communication module and a local Ethernet interface, a CPU, a storage unit, a GPS clock unit and a power supply; the CPU is connected with the wireless internet communication module and/or the local Ethernet interface; the CPU captures a data packet in the flow measurement process of the internet data on a data channel by using a hook program embedded in a network card driving program in the transmission process; analyzing the captured packet header of the data packet, and accumulating the data packet in the target layer according to the type, the characteristics and the identification of the data packet to obtain the measurement data of the internet access data flow; the wireless internet communication module is used for accessing a wireless air link of a mobile communication operator and is linked to the server through the link; the local Ethernet interface is used for connecting to a server through an Ethernet of a communication operator; the storage unit is connected to the CPU and used for storing the Internet surfing data flow measurement data recorded by the CPU in the transmission process; the GPS clock unit is connected to the CPU and used for synchronizing the system time of the CPU; the power supply is used for supplying power to the measuring device;
the method for measuring the internet surfing data flow of the multi-standard mobile communication network comprises the following steps:
s1: selecting a wireless internet communication module for measurement, and accessing the wireless internet communication module into a wireless air link corresponding to a mobile communication operator;
s2: starting the measuring device, and carrying out hardware initialization on the wireless internet communication module, the storage system and the display system;
s3: judging the communication network system of the wireless internet communication module, if the network system is a 2G, 3G or PPP mode 4G network, initializing a signal notification mechanism and a shared memory mechanism, loading a first hook program for monitoring the working state of the network card, loading a start kernel and a second hook program for monitoring the data flow in a network card driving program, monitoring all network operations in a data channel, simultaneously calling an AT instruction to initialize a dialing parameter, a module communication parameter and a network type parameter and loading configuration, calling a serial port workbench process, and entering a networking mode; if the network mode is a TD-LTE 4G network or an FDD-LTE 4G network under a USB interface, initializing a signal notification mechanism and a shared memory mechanism under a TD-LTE or FDD-LTE flow mode, loading a hook program for monitoring 4G flow, calling an IFCONFIG command to load an initialization network card Device, registering the initialization network card Device to a NET Device list, calling an AT instruction to initialize a dialing parameter, a module communication parameter and a network type parameter, loading configuration, and calling a serial port workbench process; if the network system is a USB interface WIFI network, initializing a signal notification mechanism and a shared memory mechanism in a WIFI flow mode, loading a hook program for monitoring WIFI flow, calling an IFCONFIG command to load an initialization network card Device, and registering the initialization network card Device to a NET Device list;
s4: the system time of the CPU is synchronized by using a GPS clock unit, and the system time setting of the device is completed;
s5: the CPU starts to transmit the target file with the server, and captures a data packet in the flow measurement process of the internet data on a data channel by using a second hook program embedded in a network card driving program in the transmission process; analyzing the captured packet header of the data packet, and accumulating the data packet in the target layer according to the type, the characteristics and the identification of the data packet to obtain the measurement data of the internet data flow.
2. The method for measuring internet data traffic of the multi-mode mobile communication network of claim 1, wherein the wireless internet communication module is one or more of a WCDMA 3G module, a CDMA 20003G module, a TD-SCDMA 3G module, a TD-LTE 4G module, an FDD-LTE 4G module, or a WIFI module, and a card slot for installing a SIM card is disposed on the WCDMA 3G module, the CDMA 20003G module, the TD-SCDMA 3G module, the TD-LTE 4G module, or the FDD-LTE 4G module.
3. The method for measuring internet data traffic of multi-system mobile communication network as claimed in claim 1, further comprising a capacitive touch screen for human-computer interaction display.
4. The method as claimed in claim 1, further comprising a msiata hard disk interface for extending the hard disk to provide a storage space.
5. The method as claimed in claim 1, further comprising an SD interface and/or a USB Host interface for copying data flow measurement results.
6. The method as claimed in claim 1, wherein the power source comprises an external power source and/or a built-in lithium battery.
7. The method as claimed in claim 1, wherein the storage unit includes NAND FLASH, DDR RAM storage unit, and a msiata hard disk connected to the CPU via a msiata hard disk interface.
8. A method for measuring the data flow rate of the multi-standard mobile communication network on line is characterized in that after the data flow rate measurement data of the data on line is obtained according to the measuring method of claim 1, a server for a user to inquire the flow rate of the data on line is used for reading the details of the data on line by a mobile communication operator, the data flow rate measurement data measured by a charging system of the data flow rate measurement of the mobile communication operator is compared with the data flow rate measurement data measured by the device to obtain the data flow rate measurement data deviation, whether the deviation exceeds a threshold value is calculated, if the deviation exceeds the threshold value, the charging system of the data on line of the mobile communication operator is judged to be inaccurate, and if the deviation does not exceed the threshold value, the charging system of the data on line of the mobile communication operator is judged to be accurate.
9. The method as claimed in claim 8, wherein the step S5 is repeated several times at intervals for the same object file, and the measurement data result of the internet data traffic obtained from each measurement is saved.
CN201710528842.8A 2017-07-01 2017-07-01 Multi-standard mobile communication network internet data flow measuring device and method thereof Active CN107148009B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710528842.8A CN107148009B (en) 2017-07-01 2017-07-01 Multi-standard mobile communication network internet data flow measuring device and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710528842.8A CN107148009B (en) 2017-07-01 2017-07-01 Multi-standard mobile communication network internet data flow measuring device and method thereof

Publications (2)

Publication Number Publication Date
CN107148009A CN107148009A (en) 2017-09-08
CN107148009B true CN107148009B (en) 2022-09-20

Family

ID=59784937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710528842.8A Active CN107148009B (en) 2017-07-01 2017-07-01 Multi-standard mobile communication network internet data flow measuring device and method thereof

Country Status (1)

Country Link
CN (1) CN107148009B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108199979A (en) * 2017-12-11 2018-06-22 银联商务股份有限公司 Flow processing method and device
CN109996199B (en) * 2017-12-30 2021-10-29 中国移动通信集团山西有限公司 Communication flow statistical charging method, system, equipment and storage medium
CN108601098B (en) * 2018-04-27 2022-01-25 中国联合网络通信集团有限公司 Network system identification method and device of dual-card terminal
CN108632113A (en) * 2018-05-07 2018-10-09 上海市共进通信技术有限公司 Data stream monitoring method based on linux kernel and system
CN108848522B (en) * 2018-06-04 2022-09-06 深圳市魅立科技有限公司 Mobile phone traffic monitoring method based on big data
CN108391283B (en) * 2018-06-04 2021-12-10 江苏方洋智能科技有限公司 Mobile phone traffic monitoring system based on Internet
CN110120899B (en) * 2019-05-10 2024-03-01 北京百度网讯科技有限公司 Data stream detection method and device, electronic equipment and storage medium
CN111866932B (en) * 2020-08-07 2021-03-12 北京邮电大学 Network measurement method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716211A (en) * 2014-01-20 2014-04-09 西安电子科技大学 Data traffic measuring method and system of network terminal
CN104684003A (en) * 2015-02-12 2015-06-03 洛阳市质量技术监督检验测试中心 Flow measurement method for mobile network
CN105635035A (en) * 2014-10-27 2016-06-01 青岛金讯网络工程有限公司 Method for monitoring flow of virtual machine

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103716211A (en) * 2014-01-20 2014-04-09 西安电子科技大学 Data traffic measuring method and system of network terminal
CN105635035A (en) * 2014-10-27 2016-06-01 青岛金讯网络工程有限公司 Method for monitoring flow of virtual machine
CN104684003A (en) * 2015-02-12 2015-06-03 洛阳市质量技术监督检验测试中心 Flow measurement method for mobile network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《网络流量测量的设计与实现》;王民川;《才智》;20110305(第07期);全文 *

Also Published As

Publication number Publication date
CN107148009A (en) 2017-09-08

Similar Documents

Publication Publication Date Title
CN107148009B (en) Multi-standard mobile communication network internet data flow measuring device and method thereof
CN102934313B (en) The method of detection is removed for battery
CN104348680B (en) The method and device of wire-speed detection
CN101931477B (en) System and method for automatically testing performance of TD-LTE (Time Division-Long Term Evolution) terminal
US7623856B2 (en) Method for testing communication protocol having collection of internal information of a mobile communication terminal by an external module
CN102710549B (en) To be established a communications link the method for relation, terminal and system by shooting
CN111327758A (en) Camera sharing method and device
CN112203263A (en) Broadcast message interaction method, terminal, device and medium
CN111093182B (en) Network optimal resource selection system for CPE (customer premises equipment)
CN112566078A (en) Device connection method and apparatus, storage medium, and electronic apparatus
CN113285810B (en) Target equipment login method and device, storage medium and electronic device
CN112988489A (en) Method, device, equipment and storage medium for testing radio frequency chip
CN107341007A (en) Display terminal and its timing start-up method, computer-readable recording medium
CN115460642B (en) Network name display test method and device
CN111787555A (en) Method and equipment for testing intelligent terminal
US10455023B2 (en) System and method for remotely accessing a computing device
CN207354632U (en) A kind of multi-standard mobile communications network internet surfing data traffic measuring device
CN107171895A (en) A kind of communication network data flow-measuring method
CN102196409B (en) Method and system for monitoring terminal equipment as well as subscribing/publishing device
CN109041026A (en) Antenna accounting setting method, device, user equipment and storage medium
CN111541589B (en) Method, device and equipment for testing expansion module interface of intelligent terminal
WO2021042893A1 (en) Access point name configuration method and apparatus, and readable storage medium
CN107426782A (en) Network switching terminal and related product
CN104469899B (en) Network selection method and electronic equipment
CN106341436A (en) Method and device for detecting acceleration effect

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
GR01 Patent grant
GR01 Patent grant