CN107148009A - Multi-standard mobile communications network internet surfing data traffic measurement apparatus and its method - Google Patents

Multi-standard mobile communications network internet surfing data traffic measurement apparatus and its method Download PDF

Info

Publication number
CN107148009A
CN107148009A CN201710528842.8A CN201710528842A CN107148009A CN 107148009 A CN107148009 A CN 107148009A CN 201710528842 A CN201710528842 A CN 201710528842A CN 107148009 A CN107148009 A CN 107148009A
Authority
CN
China
Prior art keywords
data traffic
data
internet surfing
network
traffic measurement
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.)
Granted
Application number
CN201710528842.8A
Other languages
Chinese (zh)
Other versions
CN107148009B (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of multi-standard mobile communications network internet surfing data traffic measurement apparatus and its method, belong to metering field.The present invention is using by data traffic monitoring hook program insertion driver, packet in data channel in real-time capture internet surfing data traffic measurement process, and parse the packet header captured, judge type of data packet, feature and mark, according to judged result, reject the packet for being not belonging to scope of statistics, the mobile communications network internet surfing data traffic packet for belonging to scope of statistics is carried out real-time accumulated, obtain internet surfing data traffic measurement data measurement result, as a result it need not be weighted or correct, significantly improve internet surfing data traffic measurement data measurement accuracy.

Description

Multi-standard mobile communications network internet surfing data traffic measurement apparatus and its method
Technical field
The invention belongs to metering field, and in particular to a kind of multi-standard mobile communications network internet surfing data traffic measurement apparatus And its method.
Background technology
As domestic mobile communications network develops, based on 2G (GPRS, CDMA), 3G (WCDMA, CDMA2000 and TD- SCDMA), 4G (TD-LTE, FDD-LTE) and WIFI mobile data services are used widely, mobile communication carrier's charge It is that the size of the internet surfing data traffic produced using in mobile communication process is used as foundation, the data flow gauge of mobile communication carrier Calculation system and charge system belong to trade settlement equipment scope.According to《Measurement Law》Regulation, trade settlement equipment should be included in pressure Measures range.Simultaneously as the number of users using mobile communication network business is continuously increased, mobile communications network online The accurate measurement sex chromosome mosaicism of data traffic also turns into the focus of public concern.
But lack the device measured to mobile communication carrier's internet surfing data traffic at present, and therefore, quality inspection metering System can not effectively be supervised to mobile communication carrier's internet surfing data traffic metering.
Current user is commonly used in the wireless terminals such as mobile phone and carries out Internet data using internet surfing data traffic Survey Software Flow measurement.Such software is the interface function that provides using system to obtain internet surfing data traffic, due to exist system other Software interference, data-bag lost and retransmit the problems such as, cause measurement internet surfing data traffic and mobile communication carrier place measurement Result error is very big.
In general, there are the following problems in current state of the art:
(1) mobile communications network internet surfing data traffic measurement data can not be directly obtained, to make measurement result close to fortune Business's measurement result is sought, it is necessary to calculate final flow rate measurement result using weighting algorithm and correction algorithm, the calculating process can draw Enter error, cause measurement result and mobile communication carrier's measurement result gap further to expand.
(2) do not consider which network protocol layer to carry out data traffic measurement at, cause data traffic to measure bore and movement Common carrier measurement bore is inconsistent, thus causes measurement result and mobile communication carrier's measurement result to have larger gap.
(3) it is difficult to reappear same data traffic test scene, it is impossible to which the repeatability and stability requirement for meeting metering can not There is provided stable test, it is impossible to repeatedly reproduce test result.
(4) method is only limited to theory, is not achieved on actual hardware.
The content of the invention
The problem of it is an object of the invention to solve present in prior art, and a kind of communication network data flow is provided Measuring method, the device can complete 2G (GPRS, CDMA), 3G (WCDMA, CDMA2000 and TD-SCDMA) and 4G (TD-LTE, FDD-LTE) mobile communications network and the measurement of WIFI internet surfing data traffics under standard.
Concrete technical scheme of the present invention is as follows:
Multi-standard mobile communications network internet surfing data traffic measurement apparatus, including wireless networking communication module and local ether At least one in network interface, and CPU, memory cell, gps clock unit and power supply;
Described CPU connection wireless networking communication modules and/or local ethernet interface;CPU is utilized in transmitting procedure The hook program in NIC driver is embedded in, the data in internet surfing data traffic measurement process are caught in data channel Bag;The packet header captured is parsed, according to type of data packet, feature and mark, the packet in destination layer is tired out Meter, obtains internet surfing data traffic measurement data;
Described wireless networking communication module is used for the wireless air-link of access mobile communication operator, and passes through the chain Road links to server;
Described local ethernet interface is used to be connected to server by the Ethernet of common carrier;
Described memory cell is connected on CPU, for storing the internet surfing data traffic measurement that CPU is recorded in transmitting procedure Data;
Described gps clock unit is connected on CPU, the system time for synchronous CPU;
Described power supply is used to power for measurement apparatus.
Preferably, described wireless networking communication module is WCDMA 3G modules, CDMA2000 3G modules and TD- One or more in SCDMA 3G modules, TD-LTE 4G modules, FDD-LTE 4G modules or WIFI module, wherein WCDMA 3G module, CDMA2000 3G modules and TD-SCDMA 3G modules, TD-LTE 4G modules, it is provided with FDD-LTE 4G modules The neck of SIM card is installed.
Preferably, also including being used for the capacitance touch screen that man-machine interaction is shown.
Preferably, also including mSATA hard-disk interfaces, for expanding hard disk, there is provided memory space.
Preferably, also including SD interface and/or USB Host interfaces, for copying data flow measurement.
Preferably, described power supply includes external power supply and/or built-in lithium battery.
Preferably, described memory cell includes NANDFLASH, DDR ram memory cell and connect by mSATA hard disks Mouth is connected to the mSATA hard disks on CPU.
Another object of the present invention is to provide a kind of multi-standard mobile communications network online based on above-mentioned measurement apparatus Data traffic measuring method, step is as follows:
S1:The selected wireless networking communication module measured, and wireless networking communication module access correspondence is mobile logical Believe the wireless air-link of operator;
S2:Start described measurement apparatus, and hardware is carried out to wireless networking communication module, storage system and display system Initialization;
S3:The communication network standard of wireless networking communication module is judged, if network formats are 2G, 3G or PPP pattern 4G nets Network, then initializing signal informing mechanism and shared drive mechanism, load the first hook program for monitoring network interface card working condition, Loading starts the institute in kernel and the second hook program for monitoring data traffic in NIC driver, monitoring data passage There is network operation, while call AT instruction initialization dialing parameters, module messaging parameter and network type parameters and load configuration, Serial ports workbench process is called, into networked mode;If network formats are the TD-LTE 4G networks or FDD-LTE under USB interface 4G networks, then Initialize installation TD-LTE or signal informing mechanism and shared drive mechanism under FDD-LTE flow rate modes, are loaded Hook program for monitoring 4G flows, calls IFCONFIG orders loading initialization network card equipment, is registered to NET Device List, while calling AT instruction initialization dialing parameters, module messaging parameter and network type parameters and loading configuration, calls string Mouth workbench process;If network formats are USB interface WIFI network, the signal under Initialize installation WIFI flow rate modes is notified Mechanism and shared drive mechanism, load the hook program for monitoring WIFI flows, call IFCONFIG orders loading initialization Network card equipment, is registered to NET Device lists;
S4:Utilize gps clock unit synchronization CPU system time, finishing device system time setting;
S5:CPU starts to carry out the transmission of file destination with server, using being embedded in trawl performance journey in transmitting procedure The second hook program in sequence, catches the packet in internet surfing data traffic measurement process in data channel;Parsing is captured Packet header, according to type of data packet, feature and mark, the packet in destination layer is added up, netting index is obtained According to flow measuring data.
Another object of the present invention is to provide a kind of multi-standard mobile communications network internet surfing data traffic metering method, according to Method as measured above is obtained after internet surfing data traffic measurement data, and the clothes of stream of user queries amount are supplied by mobile communication carrier Device of being engaged in reads that surfing flow is detailed, by the data traffic measurement data of mobile communication carrier's surfing flow charge system measurement with The data traffic measurement data of present apparatus measurement is compared, and is obtained data traffic measurement data deviation, whether is calculated the deviation More than threshold value, if judging more than if, mobile communication carrier's surfing flow charge system is inaccurate, otherwise judges mobile communication fortune Seek business's surfing flow charge system accurate.
Preferably, for same file destination, interval repeat step S5 several times, and preserve that measurement every time obtains it is upper Network data flow measuring data result, to carry out repeated checking.
The present invention in terms of existing technologies, has the advantages that:
1st, the present invention can obtain communication network data flow measuring data directly in data channel, without being weighted Or correction algorithm.
2nd, the present invention is embedded in driver using by data traffic monitoring hook program, the real-time capture in data channel Packet in internet surfing data traffic measurement process, and parse the packet header that captures, judge type of data packet, feature and Mark, according to judged result, rejects the packet for being not belonging to scope of statistics, and the mobile communications network for belonging to scope of statistics is surfed the Net The progress of data traffic packet is real-time accumulated, obtains internet surfing data traffic measurement data measurement result, as a result need not be added Power is corrected, and significantly improves internet surfing data traffic measurement data measurement accuracy.
3rd, the present invention can count IP layers of upstream data flow measuring data, IP layers of downlink data flow measurement number respectively According to, TCP layer upstream data flow measuring data and TCP layer downlink data flow measuring data, user can obtain individually up With descending measurement data, TCP layer and IP layers of measurement data can also be obtained respectively.
4th, the mobile communications network internet surfing data traffic measurement data and operator that the present invention is obtained are consistent.The present invention The mobile communications network internet surfing data traffic measuring method of use, due to using data traffic monitoring hook program insertion driving journey The method of sequence and the packet in data channel in real-time capture internet surfing data traffic measurement process, test result and operator Keep high consistency, it is ensured that the accuracy and fairness of measurement result.
5th, the present invention can reappear same data traffic test scene, meet repeatability and the stability requirement of metering.Meter Amount requires that test device and method have good stability and repeatability, the method used using the present invention, can be in difference Time, different location carried out same data traffic test, and test has repdocutbility, with fine repeatability and stability, completely symbol Total amount requirement.
Brief description of the drawings
Fig. 1 is the flow chart of communication network data flow-measuring method;
Fig. 2 is the structural representation of communication network data flow measurement device in embodiment;
Fig. 3 is the flow chart of communication network data flow-measuring method in an embodiment;
Fig. 4 is the flow chart of communication network data flow-measuring method in an embodiment;
Fig. 5 is the flow chart of communication network data flow-measuring method in an embodiment;
Fig. 6 is the flow chart that the network terminal obtains packet;
Fig. 7 is the flow chart of communication network data flow metering method.
Embodiment
The present invention is further elaborated and illustrated with reference to the accompanying drawings and detailed description.Each in the present invention is implemented The technical characteristic of mode can carry out respective combination on the premise of not colliding with each other.
The present invention proposes a kind of communication network data flow-measuring method, and basic step is as follows:
S1:By the network terminal (mobile device, PC or other be integrated with the network equipment of functional module) access is to be measured The communication network of amount, communication network includes 2G, 3G, 4G, 5G, WIFI network, WiMax, cable network or Ethernet.
S2:(upstream or downstream are preferably downloaded) is carried out data transmission with destination server by the communication network again, passed One is used in the hook program embedded in network card driver of monitoring data flow during defeated, is caught in data channel Packet during network data flow measurement;
S3:Parse the packet header captured;
S4:According to the analysis result (including type, feature and mark) of packet, packet can be sorted out to corresponding Layer, is then added up to the packet in destination layer, obtains this layer of internet surfing data traffic measurement data.
To realize this method, the present invention continues to provide a kind of multi-standard mobile communications network Internet data as shown in Figure 2 Flow measurement device.The device includes CPU and connection and the wireless networking communication module on CPU, local ethernet interface, deposited Storage unit, gps clock unit, capacitance touch screen, audio input output unit, mSATA hard-disk interfaces, SD interface, USB Host Interface and power supply, memory cell include NAND FLASH, DDR ram memory cell and mSATA hard disks.Wherein, wireless networking Communication module is WCDMA 3G modules, CDMA2000 3G modules and TD-SCDMA 3G modules, TD-LTE 4G modules, FDD-LTE One or more in 4G modules or WIFI module, depending on specifically optionally measuring which kind of network traffic data.In the present invention WIFI module is carries component, therefore wireless networking communication module can be as needed from WCDMA 3G modules, CDMA2000 3G moulds Chosen in block and TD-SCDMA 3G modules, TD-LTE 4G modules, FDD-LTE 4G modules one or more.Wireless networking communicates The neck for installing SIM card is provided with module, inserts the SIM card of correspondence operator in neck during measurement.
CPU uses Freescale i.MX6ARM Cortex-A9 processors, dominant frequency 1GHz;DDR ram memory cells are used DDR3 internal memories, 1GB capacity;NAND FLASH use INAND Flash, the 8GByte capacity of high speed EMMC interfaces, support INAND Start;Wireless networking communication module using mini-PCIE interfaces 3G module (support WCDMA, CDMA2000 and TD-SCDMA, to Lower compatible 2G (GPRS, CDMA)) and 4G modules (TD-LTE, FDD-LTE), instruction set is supported, can be configured as needed, antenna is External SMA interfaces, support China Mobile, China Telecom and CHINAUNICOM three to run greatly;Capacitance touch screen is using LVDS interface electricity Appearance formula multiple point touching display screen;WLAN unit uses WiFi module, supports 802.11b/g/n;Gps clock unit uses GPS moulds Block, antenna is external SMA interfaces;Audio input output unit provides audio coding and decoding interface;MSATA hard-disk interfaces are provided SATA interface, maximum supports 4T mSATA hard disks;SD interface provides a standard SD card interface;Local ethernet interface provides one Individual 10/100/1000Mbps BASE-T Ethernet interfaces;USB Host interfaces support 4 USB HOST interfaces, and a USB OTG;PMU uses 10000 MAH 7.2V lithium battery and external power supply.Each equipment room can be according to supplier The wiring explanation of offer carries out wiring, and this is not construed as limiting.
In mobile communications network internet surfing data traffic measurement apparatus, each hardware capability is as follows:
CPU:Hardware unit core, process instruction, perform operation, control time, processing data etc. effect, inside carry Linux system.
Online communication module:CPU connection wireless networking communication modules and local ethernet interface, wireless networking communication module Server is linked to for the wireless air-link of access mobile communication operator, and by the link and wire link, such as Shown in Fig. 2.Local ethernet interface is used to be connected to server by the Ethernet of common carrier.Moving communication network During the flow measurement of network, upstream data is sent to wireless air-link after wireless networking communication module or modulation;From wireless sky Link receives downlink data and is sent to flow measurement device after demodulating, and CPU is driven using being embedded in network interface card in transmitting procedure Hook program in dynamic program, catches the packet in internet surfing data traffic measurement process in data channel;Parsing is captured Packet header, according to type of data packet, feature and mark, the packet in destination layer is added up, netting index is obtained According to flow measuring data.When needing to determine ethernet traffic, then by carrying out data transmission between Ethernet and server, with Same way monitors the data channel of network interface card.
DDR ram memory cells:Volatile storage devices, ephemeral data during for interim storage operation for embedded system.
NAND FLASH:Non-volatile memory device, for storage device embedded OS.
Capacitance touch screen:Man-machine interaction shows that system receives control command, display arrange parameter and measurement result.
WLAN unit:Using WIFI module, for connecting WIFI hot spot.
Gps clock unit:System time synchronization.
Audio input output unit:The equipment of the present invention can also carry out video playback by network, and in video playback During monitoring data flow, this unit is used for the input and output for playing the audio signal during video.
MSATA hard-disk interfaces:Expanding hard disk, the file for being received in data transmission procedure provides interim storage Space.
SD interface:External SD card is supported, for copying data flow measurement.
USB Host interfaces:Circumscribed USB equipment is supported, for copying data flow measurement.
PMU:Including external power supply and built-in lithium battery, power supply supply is provided for device.
The above method can be measured according to user's needs to the internet surfing data traffic of different layers.Destination layer can be Application layer, transport layer in any one layer in procotol, such as layer models of TCP/IP tetra-, Interconnection Network Layer, network interface Layer;Physical layer, data link layer, Internet, transport layer, session layer, expression layer, application layer in OSI seven layer models;2G networks In Internet, GTP layers, TCP/UDP layers, IP layers, data link layer, physical layer.
, can be with a kind of multi-standard mobile communications network internet surfing data traffic measurement side of specific design based on above-mentioned measurement apparatus Method, step is as follows:
Step 1:The selected wireless networking communication module measured, and wireless networking communication module access correspondence is moved The wireless air-link of common carrier;
Step 2:Start described measurement apparatus, and wireless networking communication module, storage system and display system are carried out Hardware initialization;
Step 3:The communication network standard of wireless networking communication module is judged, if network formats are 2G, 3G or PPP pattern 4G Network, then initializing signal informing mechanism and shared drive mechanism, load the first hook journey for monitoring network interface card working condition Sequence, loading starts in kernel and the second hook program for monitoring data traffic in NIC driver, monitoring data passage All-network operation, while calling AT instruction initialization dialing parameters, module messaging parameter and network type parameters and loading Configuration, calls serial ports workbench process, into networked mode;If network formats be USB interface under TD-LTE 4G networks or FDD-LTE 4G networks, then Initialize installation TD-LTE or signal informing mechanism and shared drive under FDD-LTE flow rate modes Mechanism, loads the hook program for monitoring 4G flows, calls IFCONFIG orders loading initialization network card equipment, is registered to NET Device lists, while calling AT instruction initialization dialing parameters, module messaging parameter and network type parameters and loading Configuration, calls serial ports workbench process;If network formats are USB interface WIFI network, Initialize installation WIFI flow rate modes Under signal informing mechanism and shared drive mechanism, load the hook program for monitoring WIFI flows, call IFCONFIG to order Order loading initialization network card equipment, is registered to NET Device lists;
Step 4:Utilize gps clock unit synchronization CPU system time, finishing device system time setting;
Step 5:CPU start with server carry out file destination transmission, in transmitting procedure using be embedded in network interface card drive The second hook program in dynamic program, catches the packet in internet surfing data traffic measurement process in data channel;Parsing is caught The packet header grasped, according to type of data packet, feature and mark, is added up to the packet in destination layer, is obtained Network data flow measuring data.
Each step of this method can be realized by disparate modules in embedded systems.Due to the net of different systems Network has differences, thus the above method be applied to heterogeneous networks in when also to be changed accordingly.Further, since being passed in data During defeated, the process of other in system can also produce data traffic in activity, therefore in order to reduce the interference of other processes, this The method of invention is preferably run in linux system.Below for the most commonly seen network formats of three classes, to carry Linux behaviour The implementation of S3 and S5 in the above method is introduced exemplified by the embedded system for making system.
When communication network is 2G, 3G or PPP pattern 4G networks, above-mentioned flow-measuring method step is:
As shown in figure 3, system initialization sets signal informing mechanism and shared drive mechanism under PPP patterns, call PPPD-2.4.4 processes are simultaneously run in back way, load the first hook journey for monitoring PPPD-2.4.4 process works states Sequence, loading starts kernel PPP drivings, loads the second hook program for monitoring data traffic in PPPD-2.4.4 drivings, prison Linux device file standard interface Read (), Write (), ioctl () all operations are controlled, while calling AT instructions initial Change dialing parameters, module messaging parameter and network type parameters and these configurations will be loaded, call serial ports workbench process, enter Networked mode carries out the transmission of packet.During carrying out data transmission with destination server, using being embedded in trawl performance The second hook program in program, catches the packet in internet surfing data traffic measurement process in data channel;Parsing is caught The packet header arrived, according to type of data packet, feature and mark, is added up to the packet in destination layer, is surfed the Net Data traffic measurement data.
When communication network is TD-LTE 4G networks or FDD-LTE 4G networks under USB interface, above-mentioned flow measurement side Method step is:
As shown in figure 4, during linux system startup, the signal under Initialize installation TD-LTE or FDD-LTE flow rate mode leads to Know mechanism and shared drive mechanism, load the hook program for monitoring 4G flows, call IFCONFIG orders loading initialization Network card equipment, is registered to NET Device lists, while calling AT instruction initialization dialing parameters, module messaging parameter and network Type parameter simultaneously loads configuration, calls serial ports workbench process;Using the hook program being embedded in NIC driver, with During destination server carries out data transmission, the packet in internet surfing data traffic measurement process is caught in data channel; The packet header captured is parsed, according to type of data packet, feature and mark, the packet in destination layer is added up, Obtain internet surfing data traffic measurement data.
When communication network is USB interface WIFI network, above-mentioned flow-measuring method step is:
As shown in figure 5, during linux system startup, signal informing mechanism under Initialize installation WIFI flow rate modes and altogether Memory mechanism is enjoyed, the hook program for monitoring WIFI flows is loaded, IFCONFIG orders loading initialization network card equipment is called, It is registered to NET Device lists;Using hook program, during carrying out data transmission with destination server, in data channel The upper packet caught in internet surfing data traffic measurement process;The packet header captured is parsed, according to type of data packet, spy Seek peace mark, the packet in destination layer is added up, internet surfing data traffic measurement data is obtained.
Above are only the step of realizing under three class network formats, but those skilled in the art it should be appreciated that the present invention not Only limit and this, can also be measured such as 5G, cable network or Ethernet using the method for the present invention.
Based on above-mentioned data traffic measuring method, a kind of communication network data flow measurement side can also be further provided for Method, step is as follows:
The network terminal by Radio Link access mobile communication operator, then by wire link from server download standard File data bag, as shown in Figure 6.Again as shown in fig. 7, measuring the flow that the network terminal downloads this document generation by preceding method, Then the data traffic with the measurement of communication data operator fee collecting system is compared, and obtains data deviation between the two, Calculate whether the deviation exceedes threshold value, if judging that mobile communication carrier's surfing flow charge system is inaccurate more than if, otherwise Judge that communication data operator surfing flow charge system is accurate.In metering process, preferably for the target text of same size Part, interval repeat step S5 several times, and preserves the internet surfing data traffic measurement data result for measuring obtain every time, to carry out weight Renaturation is verified.
With reference to a specific embodiment, the present invention is further elaborated, enables those skilled in the art Enough more fully understand the implementation of the present invention.
Embodiment 1
The above-mentioned measurement apparatus as shown in Figure 2 of the present embodiment.After system starts, first to wireless networking communication module, deposit Storage system and display system carry out hardware initialization, after completion, in capacitance touch screen display current system hardware information, and Wait user test instruction.User is after capacitance touch screen input test instruction, and system receives user and sets operation, device dialing Online, starts internet surfing data traffic measurement.System calls flow measurement instruction set and linux system kernel support module to online Data traffic measurement process is monitored and measures IP packets, shows internet surfing data traffic measurement data in real time on capacitance touch screen And it is stored in system physical memory space.System realizes system time synchronization by gps clock unit.
The specific method step measured based on the device to mobile communications network internet surfing data traffic is as follows:
(1) WCDMA 3G modules, are selected as the wireless networking communication module of measurement.
(2), by embedded program writing station NAND FLASH.
(3), external power supply is accessed by installation's power source administrative unit to power to device.
(4) CHINAUNICOM's online SIM card, is put into device neck.
(5), mobile communications network internet surfing data traffic measurement apparatus is started shooting.
(6), hardware initialization, hardware initialization is carried out to wireless networking communication module, storage system and display system, complete After, current system information is shown in device capacitance touch screen.
(7) linux system, is started
System initialization sets signal informing mechanism and shared drive mechanism under PPP patterns, calls PPPD-2.4.4 to enter Journey is simultaneously run in back way, loads the first hook program for monitoring PPPD-2.4.4 process works states, and loading starts Kernel PPP drives, and loads the second hook program for monitoring data traffic in PPPD-2.4.4 drivings, monitors Linux equipment File standard interface Read (), Write (), ioctl () all operations, at the same call AT instruction initialization dialing parameters, Module messaging parameter and network type parameters simultaneously will load these configurations, call serial ports workbench process, enter into networked mode The transmission of row packet.
(8), user clicks on set of time in device capacitance touch screen, and device gps clock unit carries out time synchronized, completes Apparatus system set of time
(9), user is in device capacitance touch screen arrange parameter:Test-types are selected for " dialing circulates HTTP " and " downloaded File ", download file IP address are 218.75.126.173, and port is 80 ports, and cycle-index is set 10 times, and dialing parameters are set It is set to and " is waited 0 second before dialing;Waited 0 second before downloading;Waited 10 seconds after broken string ".
(10), after setting completed, START button is clicked in device capacitance touch screen.Start test.
(11), device dials up on the telephone, and device is by embedded program from address http://218.75.126.173:Under 80 Load file size is 10MB normative documents, and file is temporarily stored in NAND FLASH in downloading process.In downloading process, utilize The second hook program being embedded in NIC driver catches the number in internet surfing data traffic measurement process in data channel According to bag, the packet header captured is parsed, according to type of data packet, feature and mark, the data of IP layers and TCP layer are identified Bag, rejects remainder data bag, the packet in IP layers and TCP layer is added up respectively, internet surfing data traffic in each layer is obtained Measurement data.
(12) after the completion of, device is once downloaded, PPP connections are disconnected, this is downloaded in device capacitance touch screen display To data traffic measurement result.IP layers of downlink traffic in data traffic measurement result, IP layers of uplink traffic, IP layers of uplink and downlink Total flow, TCP downlink traffics, TCP uplink traffics, TCP uplink and downlink total flows.
In the present embodiment, after the completion of downloading for the first time, test data is as follows:
Table 1 first time data traffic measurement result
(13), device is downloaded after completion once, after broken string is waited 10 seconds, is dialled up on the telephone again, repeated downloads file size For 10MB normative documents 9 times.10 groups of following data are obtained after being completed
20 data flow measurements of table
(14), test is completed, and disconnects PPP connections, test result is saved in into NANDFLASH with TXT file formats.
(15) USB flash disk, is inserted into USB Host interfaces, TXT file formats are copied to USB flash disk.
(16) mobile communication carrier website, is logged in, inquiry surfing flow is detailed, by mobile communication carrier's surfing flow The data traffic measurement data that the data traffic measurement data of charge system measurement is measured with the present apparatus is compared, and obtains data Flow measuring data deviation.
30 data flow measurements of table compare situation with carrier data
Sequence number IP layers of up-downgoing total flow (byte) of device Operator IP layers of up-downgoing total flow (byte) Absolute value of the bias
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%
As can be seen here, the present invention has high measurement accuracy, the data traffic that actual measured value is provided with operator Absolute value of the bias between value is controlled within 0.0014%.
Embodiment described above is a kind of preferably scheme of the present invention, and so it is not intended to limiting the invention.Have The those of ordinary skill for closing technical field, without departing from the spirit and scope of the present invention, can also make various changes Change and modification.Therefore the technical scheme that all modes for taking equivalent substitution or equivalent transformation are obtained, all falls within the guarantor of the present invention In the range of shield.

Claims (10)

1. a kind of multi-standard mobile communications network internet surfing data traffic measurement apparatus, it is characterised in that including wireless networking communication At least one in module and local ethernet interface, and CPU, memory cell, gps clock unit and power supply;
Described CPU connection wireless networking communication modules and/or local ethernet interface;CPU utilizes insertion in transmitting procedure Hook program in NIC driver, catches the packet in internet surfing data traffic measurement process in data channel;Solution The packet header captured is analysed, according to type of data packet, feature and mark, the packet in destination layer is added up, obtained To internet surfing data traffic measurement data;
Described wireless networking communication module is used for the wireless air-link of access mobile communication operator, and passes through the link chain It is connected to server;
Described local ethernet interface is used to be connected to server by the Ethernet of common carrier;
Described memory cell is connected on CPU, and number is measured for storing the internet surfing data traffic that CPU is recorded in transmitting procedure According to;
Described gps clock unit is connected on CPU, the system time for synchronous CPU;
Described power supply is used to power for measurement apparatus.
2. multi-standard mobile communications network internet surfing data traffic measurement apparatus as claimed in claim 1, it is characterised in that described Wireless networking communication module be WCDMA 3G modules, CDMA2000 3G modules and TD-SCDMA 3G modules, TD-LTE 4G moulds One or more in block, FDD-LTE 4G modules or WIFI module, wherein WCDMA 3G modules, CDMA2000 3G modules and TD-SCDMA 3G modules, TD-LTE 4G modules, the neck for installing SIM card is provided with FDD-LTE 4G modules.
3. multi-standard mobile communications network internet surfing data traffic measurement apparatus as claimed in claim 1, it is characterised in that also wrap Include the capacitance touch screen shown for man-machine interaction.
4. multi-standard mobile communications network internet surfing data traffic measurement apparatus as claimed in claim 1, it is characterised in that also wrap MSATA hard-disk interfaces are included, there is provided memory space for expanding hard disk.
5. multi-standard mobile communications network internet surfing data traffic measurement apparatus as claimed in claim 1, it is characterised in that also wrap SD interface and/or USB Host interfaces are included, for copying data flow measurement.
6. multi-standard mobile communications network internet surfing data traffic measurement apparatus as claimed in claim 1, it is characterised in that described Power supply include external power supply and/or built-in lithium battery.
7. multi-standard mobile communications network internet surfing data traffic measurement apparatus as claimed in claim 1, it is characterised in that described Memory cell include NAND FLASH, DDR ram memory cell and the mSATA that is connected to by mSATA hard-disk interfaces on CPU Hard disk.
8. a kind of multi-standard mobile communications network internet surfing data traffic measurement side based on measurement apparatus as claimed in claim 1 Method, it is characterised in that step is as follows:
S1:The selected wireless networking communication module measured, and wireless networking communication module is accessed into correspondence mobile communication fortune Seek the wireless air-link of business;
S2:Start described measurement apparatus, and it is initial to carry out hardware to wireless networking communication module, storage system and display system Change;
S3:Judge the communication network standard of wireless networking communication module, if network formats are 2G, 3G or PPP pattern 4G networks, Initializing signal informing mechanism and shared drive mechanism, load the first hook program for monitoring network interface card working condition, loading Start all nets in kernel and the second hook program for monitoring data traffic in NIC driver, monitoring data passage Network is operated, while calling AT instruction initialization dialing parameters, module messaging parameter and network type parameters and loading configuration, is called Serial ports workbench process, into networked mode;If network formats are the TD-LTE 4G networks or FDD-LTE 4G under USB interface Network, then Initialize installation TD-LTE or signal informing mechanism and shared drive mechanism under FDD-LTE flow rate modes, load and use In the hook program of monitoring 4G flows, IFCONFIG orders loading initialization network card equipment is called, NET Device row are registered to Table, while calling AT instruction initialization dialing parameters, module messaging parameter and network type parameters and loading configuration, calls serial ports Workbench process;If network formats are USB interface WIFI network, the signal under Initialize installation WIFI flow rate modes notifies machine System and shared drive mechanism, load the hook program for monitoring WIFI flows, call IFCONFIG orders loading initialization net Card apparatus, is registered to NETDevice lists;
S4:Utilize gps clock unit synchronization CPU system time, finishing device system time setting;
S5:CPU starts to carry out the transmission of file destination with server, using being embedded in NIC driver in transmitting procedure The second hook program, in data channel catch internet surfing data traffic measurement process in packet;Parse the number captured According to bag packet header, according to type of data packet, feature and mark, the packet in destination layer is added up, Internet data stream is obtained Amount measurement data.
9. a kind of multi-standard mobile communications network internet surfing data traffic metering method, it is characterised in that according to such as claim 8 institute State measuring method to obtain after internet surfing data traffic measurement data, the server of stream of user queries amount is supplied by mobile communication carrier Surfing flow detail is read, by the data traffic measurement data and this dress of mobile communication carrier's surfing flow charge system measurement The data traffic measurement data for putting measurement is compared, and is obtained data traffic measurement data deviation, is calculated whether the deviation exceedes Threshold value, if judging more than if, mobile communication carrier's surfing flow charge system is inaccurate, otherwise judges mobile communication carrier Surfing flow charge system is accurate.
10. multi-standard mobile communications network internet surfing data traffic metering method as claimed in claim 9, it is characterised in that pin To same file destination, interval repeat step S5 several times, and preserves the internet surfing data traffic measurement data for measuring obtain every time As a result.
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 true CN107148009A (en) 2017-09-08
CN107148009B 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)

Cited By (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
CN108391283A (en) * 2018-06-04 2018-08-10 于小龙 A kind of mobile data traffic monitoring system Internet-based
CN108601098A (en) * 2018-04-27 2018-09-28 中国联合网络通信集团有限公司 The recognition methods of the network formats of double-terminal and device
CN108632113A (en) * 2018-05-07 2018-10-09 上海市共进通信技术有限公司 Data stream monitoring method based on linux kernel and system
CN108848522A (en) * 2018-06-04 2018-11-20 于小龙 A kind of mobile data traffic monitoring method based on big data
CN109996199A (en) * 2017-12-30 2019-07-09 ***通信集团山西有限公司 Communication flows counts charging method, system, equipment and storage medium
CN110120899A (en) * 2019-05-10 2019-08-13 北京百度网讯科技有限公司 A kind of detection method of data flow, device, electronic equipment and storage medium
CN111866932A (en) * 2020-08-07 2020-10-30 北京邮电大学 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
王民川: "《网络流量测量的设计与实现》", 《才智》 *

Cited By (13)

* 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
CN109996199A (en) * 2017-12-30 2019-07-09 ***通信集团山西有限公司 Communication flows counts charging method, system, equipment and storage medium
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
CN108601098A (en) * 2018-04-27 2018-09-28 中国联合网络通信集团有限公司 The recognition methods of the network formats of double-terminal and device
CN108632113A (en) * 2018-05-07 2018-10-09 上海市共进通信技术有限公司 Data stream monitoring method based on linux kernel and system
CN108848522A (en) * 2018-06-04 2018-11-20 于小龙 A kind of mobile data traffic monitoring method based on big data
CN108391283A (en) * 2018-06-04 2018-08-10 于小龙 A kind of mobile data traffic monitoring system Internet-based
CN108848522B (en) * 2018-06-04 2022-09-06 深圳市魅立科技有限公司 Mobile phone traffic monitoring method based on big data
CN110120899A (en) * 2019-05-10 2019-08-13 北京百度网讯科技有限公司 A kind of detection method of data flow, device, electronic equipment and storage medium
CN110120899B (en) * 2019-05-10 2024-03-01 北京百度网讯科技有限公司 Data stream detection method and device, electronic equipment and storage medium
CN111866932A (en) * 2020-08-07 2020-10-30 北京邮电大学 Network measurement method and device and electronic equipment
CN111866932B (en) * 2020-08-07 2021-03-12 北京邮电大学 Network measurement method and device and electronic equipment

Also Published As

Publication number Publication date
CN107148009B (en) 2022-09-20

Similar Documents

Publication Publication Date Title
CN107148009A (en) Multi-standard mobile communications network internet surfing data traffic measurement apparatus and its method
CN102364979B (en) A kind of method and system of connection of mobile terminal into network
CN109803318A (en) Data packet shunt method, device, mobile terminal and storage medium
CN103546950A (en) Method and device for automatically turning on and turning off WiFi module of wireless router
CN105764124A (en) Terminal and power consumption reducing method thereof
CN110383870A (en) A kind of processing method and terminal of radio frequency resource
CN108199786A (en) Transmission power adjustment method and device
CN109890069A (en) Method for connecting network, terminal, base station and computer storage medium
CN105873013A (en) Method and device for selecting operator based on e-SIM () card and mobile terminal
CN108092755A (en) Parameter regulation means and device
CN109640379B (en) Link aggregation implementation method and related product
CN105721341A (en) Router network resource allocating method and router
CN109246741A (en) Wireless network connecting method for terminal
CN108174413A (en) Parameter regulation means and device
CN107171895A (en) A kind of communication network data flow-measuring method
US7623856B2 (en) Method for testing communication protocol having collection of internal information of a mobile communication terminal by an external module
CN109640329A (en) Link aggregation implementation method and Related product
CN109617802B (en) Link aggregation implementation method and related product
CN105814930B (en) Charging controller, method and system
CN109862556A (en) Packet distribution method, device, mobile terminal and storage medium
CN207354632U (en) A kind of multi-standard mobile communications network internet surfing data traffic measuring device
CN109495931B (en) Data transmission method for link aggregation and related device
CN109474521A (en) Link aggregation implementation method and Related product
CN104205887A (en) Billing method, access network device and gateway device
CN109639698A (en) A kind of data processing method and server

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