CN105306305B - A kind of mobile wireless network traffic data collection method and device - Google Patents

A kind of mobile wireless network traffic data collection method and device Download PDF

Info

Publication number
CN105306305B
CN105306305B CN201510772161.7A CN201510772161A CN105306305B CN 105306305 B CN105306305 B CN 105306305B CN 201510772161 A CN201510772161 A CN 201510772161A CN 105306305 B CN105306305 B CN 105306305B
Authority
CN
China
Prior art keywords
data acquisition
acquisition
data
heartbeat
node
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
CN201510772161.7A
Other languages
Chinese (zh)
Other versions
CN105306305A (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.)
CETC 30 Research Institute
Original Assignee
CETC 30 Research Institute
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 CETC 30 Research Institute filed Critical CETC 30 Research Institute
Priority to CN201510772161.7A priority Critical patent/CN105306305B/en
Publication of CN105306305A publication Critical patent/CN105306305A/en
Application granted granted Critical
Publication of CN105306305B publication Critical patent/CN105306305B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of mobile wireless network traffic data collection method and devices, this method comprises: receiving configuration management message;Judge whether each data acquisition node works normally in mobile wireless network using heartbeat handshake mechanism, and judge whether the data acquisition parameters configuration of data acquisition node is completed, obtains the data acquisition node that normal work and parameter configuration are completed;For the data acquisition node of each normal work and parameter configuration completion, Two-stage control mechanism construction data acquisition session is acquired using data, data acquisition session is sent to the data acquisition node, is acquired the data acquisition node to network flow data according to data acquisition session.This method realizes the configuration management and control to Network Traffic Data Collection parameter, provides for mobile wireless network and stablizes effective flow data collector service.

Description

A kind of mobile wireless network traffic data collection method and device
Technical field
The present invention relates to radio network technique fields, more particularly to a kind of mobile wireless network traffic data collection method And device.
Background technique
Currently, the flow of network reflects the operation conditions of network, it is to judge the whether normal crucial foundation of the network operation. Therefore, Network Traffic Data Collection is the basis for carrying out network operation status analysis.Traditional Network Traffic Data Collection technology Mainly for cable network, mainly for fixed topological structure and stable data acquisition node in terms of topological control.Together When, since fixed network data traffic is relatively stable, so often lacking data acquisition configuration and control in acquisition node side Function.
For mobile wireless network, since it has the characteristics that self-organizing, wireless transmission, cause to carry out above it Flow data collector is needed in face of network topology structure mutability, and data acquisition node is unstable, network flow data is unstable etc. Problem cannot with general data acquisition technology in the prior art there is no the acquisition technique for being directed to wireless network traffic data Meet the flow data collector demand of mobile wireless network, can not be provided for mobile wireless network and stablize effective data on flows and adopt Collection service.
Summary of the invention
The object of the present invention is to provide a kind of mobile wireless network traffic data collection method and devices, to realize to network The configuration management and control of flow data collector parameter provide for mobile wireless network and stablize effective flow data collector clothes Business.
In order to solve the above technical problems, the present invention provides a kind of mobile wireless network traffic data collection method, this method Include:
Receive configuration management message;
Judge whether each data acquisition node works normally in mobile wireless network using heartbeat handshake mechanism, and sentences Whether the data acquisition parameters configuration of disconnected data acquisition node is completed, and the data acquisition that normal work and parameter configuration are completed is obtained Node;
For the data acquisition node of each normal work and parameter configuration completion, data is utilized to acquire Two-stage control machine System building data acquisition session, Xiang Suoshu data acquisition node send data acquisition session, make the data acquisition node foundation Data acquisition session is acquired network flow data;
Wherein, the configuration management message includes heartbeat message, configuration order and acquisition.
Preferably, the whether normal work of each data acquisition node in mobile wireless network is judged using heartbeat handshake mechanism Make, and judge whether the data acquisition parameters configuration of data acquisition node is completed, comprising:
Listen to multicast information;
When listening to multicast information, communication link is established using TCP transmission control protocol and each data acquisition node It connects;
Initialize the acquisition state of each data acquisition node, heartbeat shake hands time-out mark and heartbeat timeout management letter Breath;
For each data acquisition node, judge that the heartbeat of data acquisition node time-out of shaking hands marks whether as time-out; If so, disconnecting communication connection;If it is not, using the configuration management message respectively carry out resetting heartbeat shake hands expired times, complete Acquisition parameter configuration and completion acquisition state configuration.
Preferably, it is described using the configuration management message respectively carry out resetting heartbeat shake hands expired times, complete acquisition After parameter configuration and completion acquisition state configuration, further includes:
Judge heartbeat to shake hands in the time and whether receives heartbeat message;
If so, resetting heartbeat is shaken hands, expired times are 0;
If it is not, heartbeat expired times of shaking hands are added 1, judge whether heartbeat number of shaking hands is more than or equal to 3;If heartbeat is held Hand number is more than or equal to 3, and resetting heartbeat time-out of shaking hands is identified as time-out.
Preferably, described to acquire Two-stage control mechanism construction data acquisition session, Xiang Suoshu data acquisition section using data Point sends data acquisition session, comprising:
Judge whether data acquisition node state is changed into ready state;
If so, sending acquisition start command to data acquisition node, while acquisition parameter configuration information is sent, makes the number According to acquisition node creation and initialization data acquisition tasks;
It ceases and desist order if it is not, sending acquisition to data acquisition node, so that the data acquisition node is deleted data acquisition and appoint Business.
Preferably, described to acquire Two-stage control mechanism construction data acquisition session, Xiang Suoshu data acquisition section using data Point is sent after data acquisition session, further includes:
Judge whether data acquisition node receives IP packet;
If data acquisition node receives IP packet, judge whether the IP packet that data acquisition node receives meets acquisition Demand;
If IP packet meets acquisition demand, the acquisition that IP packet is arranged is identified as vacation, and adopts to data acquisition node transmission Collect response message, makes data acquisition node acquisition tasks message.
The present invention also provides a kind of mobile wireless network flow data collector device, which includes:
Receiving module, for receiving configuration management message;
Judgment module, for judging in mobile wireless network whether is each data acquisition node using heartbeat handshake mechanism It works normally, and judges whether the data acquisition parameters configuration of data acquisition node is completed, obtain normal work and parameter configuration The data acquisition node of completion;
Management module, the data acquisition node for working normally for each and parameter configuration is completed, utilizes data Two-stage control mechanism construction data acquisition session is acquired, Xiang Suoshu data acquisition node sends data acquisition session, makes the number Network flow data is acquired according to data acquisition session according to acquisition node;
Wherein, the configuration management message includes heartbeat message, configuration order and acquisition.
Preferably, the judgment module includes:
Unit is listened to, for listening to multicast information;
Unit is communicated to connect, for being adopted using TCP transmission control protocol and each data when listening to multicast information Collect node and establishes communication connection;
Setting unit, for initializing the acquisition state of each data acquisition node, heartbeat shake hands time-out mark and the heart Jump overtime management information;
Judging unit, for for each data acquisition node, judging that the heartbeat of data acquisition node is shaken hands time-out mark Whether note is time-out;If so, disconnecting communication connection;It shakes hands if it is not, carrying out resetting heartbeat respectively using the configuration management message Expired times complete acquisition parameter configuration and complete acquisition state configuration;
Acquiring unit, the data acquisition node completed for obtaining normal work and parameter configuration.
Preferably, the judgment module further include:
Whether reset cell receives heartbeat message for judging heartbeat to shake hands in the time;If so, resetting heartbeat shake hands it is super When number be 0;If it is not, heartbeat expired times of shaking hands are added 1, judge whether heartbeat number of shaking hands is more than or equal to 3;If heartbeat Number of shaking hands is more than or equal to 3, and resetting heartbeat time-out of shaking hands is identified as time-out.
Preferably, the management module includes:
State judging unit, the data acquisition node for being worked normally for each and parameter configuration is completed, judgement Whether data acquisition node state is changed into ready state;
First transmission unit, if being changed into ready state for data acquisition node state;, sent to data acquisition node Start command is acquired, while sending acquisition parameter configuration information, makes the data acquisition node creation and initialization data acquisition Task;
Second transmission unit, if not being changed into ready state for data acquisition node state;It is sent out to data acquisition node It send acquisition to cease and desist order, the data acquisition node is made to delete data acquisition session.
Preferably, the management module further include:
Message judging unit, for judging whether data acquisition node receives IP packet;If data acquisition node receives To IP packet, judge whether the IP packet that data acquisition node receives meets acquisition demand;If IP packet meets acquisition demand, The acquisition that IP packet is arranged is identified as vacation, and sends acquisition response message to data acquisition node, acquires data acquisition node Task message.
A kind of mobile wireless network traffic data collection method and device provided by the present invention receive configuration management and disappear Breath;Judge whether each data acquisition node works normally in mobile wireless network using heartbeat handshake mechanism, and judges number Whether completed according to the data acquisition parameters configuration of acquisition node, obtains the data that normal work and parameter configuration are completed and acquire section Point;For the data acquisition node of each normal work and parameter configuration completion, data is utilized to acquire Two-stage control mechanism structure Building data acquisition task, Xiang Suoshu data acquisition node send data acquisition session, make the data acquisition node according to data Acquisition tasks are acquired network flow data.As it can be seen that on the basis of general networking flow data collector technology, using tool There is an embedded data acquisition mode of data acquisition parameters configuration management function and control function, is specifically shaken hands machine using heartbeat It makes to identify whether data acquisition node works normally and whether each parameter configuration is completed, meanwhile, utilize data to acquire second level Controlling mechanism controls data acquisition session, realizes configuration management and control to Network Traffic Data Collection parameter, for movement Effective flow data collector service is stablized in wireless network offer.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of mobile wireless network traffic data collection method provided by the present invention;
Fig. 2 is a kind of structural schematic diagram of mobile wireless network flow data collector device provided by the present invention;
Fig. 3 is the module frame chart for realizing mobile wireless network flow data collector;
Fig. 4 is that acquisition management supporting module handles configuration management message flow schematic diagram;
Fig. 5 is that acquisition management supporting module receives heartbeat message timeout treatment flow diagram.
Specific embodiment
Core of the invention is to provide a kind of mobile wireless network traffic data collection method and device, to realize to network The configuration management and control of flow data collector parameter provide for mobile wireless network and stablize effective flow data collector clothes Business.
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Referring to FIG. 1, Fig. 1 is a kind of process of mobile wireless network traffic data collection method provided by the present invention Figure, this method comprises:
S11: configuration management message is received;
S12: judging whether each data acquisition node works normally in mobile wireless network using heartbeat handshake mechanism, And judge whether the data acquisition parameters configuration of data acquisition node is completed, obtain the data that normal work and parameter configuration are completed Acquisition node;
Wherein, the whether normal work of each data acquisition node in mobile wireless network is judged using heartbeat handshake mechanism Make, and judge the data acquisition parameters of data acquisition node configure the process whether completed specifically: listens to multicast information;When detecing When hearing multicast information, is established and communicated to connect using TCP transmission control protocol and each data acquisition node;It initializes each The acquisition state of a data acquisition node, heartbeat shake hands time-out mark and heartbeat timeout management information;Each data is adopted Collect node, judges that the heartbeat of data acquisition node time-out of shaking hands marks whether as time-out;If so, disconnecting communication connection;If it is not, sharp With configuration management message respectively carry out resetting heartbeat shake hands expired times, complete acquisition parameter configuration and complete acquisition state match It sets.
Wherein, using configuration management message respectively carry out resetting heartbeat shake hands expired times, complete acquisition parameter configuration and After completing acquisition state configuration, judges heartbeat to shake hands in the time and whether receive heartbeat message;If so, resetting heartbeat shake hands it is super When number be 0;If it is not, heartbeat expired times of shaking hands are added 1, judge whether heartbeat number of shaking hands is more than or equal to 3;If heartbeat Number of shaking hands is more than or equal to 3, and resetting heartbeat time-out of shaking hands is identified as time-out.
The data acquisition node that S13: working normally each and parameter configuration is completed acquires second level control using data Making mechanism constructs data acquisition session, sends data acquisition session to data acquisition node, makes data acquisition node according to data Acquisition tasks are acquired network flow data;
Wherein, configuration management message includes heartbeat message, configuration order and acquisition.
Wherein, Two-stage control mechanism construction data acquisition session is acquired using data, sends data to data acquisition node The process of acquisition tasks specifically: judge whether data acquisition node state is changed into ready state;It is saved if so, being acquired to data Point sends acquisition start command, while sending acquisition parameter configuration information, makes data acquisition node creation and initialization data is adopted Set task;It ceases and desist order if it is not, sending acquisition to data acquisition node, data acquisition node is made to delete data acquisition session.
Wherein, Two-stage control mechanism construction data acquisition session is acquired using data, sends data to data acquisition node After acquisition tasks, judge whether data acquisition node receives IP packet;If data acquisition node receives IP packet, judgement Whether the IP packet that data acquisition node receives meets acquisition demand;If IP packet meets acquisition demand, IP packet is set Acquisition is identified as vacation, and sends acquisition response message to data acquisition node, makes data acquisition node acquisition tasks message.Its In, IP packet is the network flow data of data acquisition node acquisition.
A kind of mobile wireless network traffic data collection method provided by the present invention receives configuration management message;It utilizes Heartbeat handshake mechanism judges whether each data acquisition node works normally in mobile wireless network, and judges data acquisition section Whether the data acquisition parameters configuration of point is completed, and the data acquisition node that normal work and parameter configuration are completed is obtained;For every The data acquisition node that one normal work and parameter configuration are completed utilizes data acquisition Two-stage control mechanism construction data to acquire Task sends data acquisition session to data acquisition node, makes data acquisition node according to data acquisition session to network flow Data are acquired.As it can be seen that this method on the basis of general networking flow data collector technology, is joined using acquiring with data The embedded data acquisition mode of number configuration management function and control function, specifically identifies data using heartbeat handshake mechanism Whether acquisition node works normally and whether each parameter configuration is completed, meanwhile, Two-stage control mechanism is acquired using data to control Data acquisition session processed is realized configuration management and control to Network Traffic Data Collection parameter, is provided for mobile wireless network Stablize effective flow data collector service.
Referring to FIG. 2, Fig. 2 is that a kind of structure of mobile wireless network flow data collector device provided by the present invention is shown It is intended to, which includes:
Receiving module 101, for receiving configuration management message;
Judgment module 102, for judging each data acquisition node in mobile wireless network using heartbeat handshake mechanism Whether work normally, and judge whether the data acquisition parameters configuration of data acquisition node is completed, obtains normal work and parameter Configure the data acquisition node completed;
Management module 103, the data acquisition node for working normally for each and parameter configuration is completed, utilizes number According to acquisition Two-stage control mechanism construction data acquisition session, data acquisition session is sent to data acquisition node, acquires data Node is acquired network flow data according to data acquisition session;
Wherein, configuration management message includes heartbeat message, configuration order and acquisition.
Specifically, the judgment module includes:
Unit is listened to, for listening to multicast information;
Unit is communicated to connect, for being adopted using TCP transmission control protocol and each data when listening to multicast information Collect node and establishes communication connection;
Setting unit, for initializing the acquisition state of each data acquisition node, heartbeat shake hands time-out mark and the heart Jump overtime management information;
Judging unit, for for each data acquisition node, judging that the heartbeat of data acquisition node is shaken hands time-out mark Whether note is time-out;If so, disconnecting communication connection;It shakes hands time-out if it is not, carrying out resetting heartbeat respectively using configuration management message Number completes acquisition parameter configuration and completes acquisition state configuration;
Acquiring unit, the data acquisition node completed for obtaining normal work and parameter configuration.
The judgment module further include:
Whether reset cell receives heartbeat message for judging heartbeat to shake hands in the time;If so, resetting heartbeat shake hands it is super When number be 0;If it is not, heartbeat expired times of shaking hands are added 1, judge whether heartbeat number of shaking hands is more than or equal to 3;If heartbeat Number of shaking hands is more than or equal to 3, and resetting heartbeat time-out of shaking hands is identified as time-out.
The management module includes:
State judging unit, the data acquisition node for being worked normally for each and parameter configuration is completed, judgement Whether data acquisition node state is changed into ready state;
First transmission unit, if being changed into ready state for data acquisition node state;, sent to data acquisition node Start command is acquired, while sending acquisition parameter configuration information, makes data acquisition node creation and initialization data acquisition tasks;
Second transmission unit, if not being changed into ready state for data acquisition node state;It is sent out to data acquisition node It send acquisition to cease and desist order, data acquisition node is made to delete data acquisition session.
The management module further include:
Message judging unit, for judging whether data acquisition node receives IP packet;If data acquisition node receives To IP packet, judge whether the IP packet that data acquisition node receives meets acquisition demand;If IP packet meets acquisition demand, The acquisition that IP packet is arranged is identified as vacation, and sends acquisition response message to data acquisition node, acquires data acquisition node Task message.
Optionally, described device further includes sending module, and the acquisition data received are acquired to message envelope for being responsible for Data using terminal or other data, which are sent to, after dress processing uses component.
Specifically, flow data collector problem of the present invention directly against mobile wireless network, design has data acquisition The embedded data acquisition device of parameter configuration management and control function, key technology point of the invention are to judge acquisition node The heartbeat handshake mechanism of stability, the Two-stage control mechanism for constructing data acquisition session.
Fig. 3 is the module frame chart for realizing mobile wireless network flow data collector, as shown in figure 3, data acquisition software point Sub-agent module is acquired for acquisition management supporting module, acquisition data reception module, acquisition data transmission blocks and data.Its In, acquisition management support, acquisition data reception module and acquisition data transmission blocks are deployed on data collecting card, data acquisition Sub-agent module is deployed on interface board.The function of each module is as follows:
Acquisition management supporting module: being responsible for configuration management order of the processing from configuration management and Data Analysis Software, complete At the relevant parameter configuration of data acquisition.The acquisition management supporting module is judgment module and management mould in above-mentioned apparatus Block, the acquisition management supporting module is by the judgment module and management module in the mobile wireless network flow data collector device It constitutes, can be realized the function of judgment module and management module.
Acquisition data reception module: it is responsible for receiving the acquisition data returned from Collection agent submodule and gives acquisition number According to sending module.The acquisition data reception module is the receiving module in above-mentioned apparatus, which is institute State the receiving module in mobile wireless network flow data collector device.
Acquisition data transmission blocks: it is responsible for being sent to data after the acquisition data received are acquired message encapsulation process Using terminal or other data use component.The acquisition data transmission blocks are the mobile wireless network flow data collector Sending module in device.
Data collection agent submodule: responsible reception carrys out the data capture management order of Self management supporting module, completes number It is configured according to the relevant parameter of acquisition, and requires to filter out according to acquisition and require the data message forwarding to match to acquisition with acquisition Data reception module.The data acquisition proxy module is data acquisition node among the above, and data acquisition node number has It is multiple, the number of same data acquisition proxy module be also it is multiple, data acquisition proxy module be the mobile radio network Data acquisition node in network flow data collector device.
Acquisition management supporting module, acquisition data transmission blocks, acquisition data reception module can be set and acquire in data On card, data acquisition proxy module be can be set on interface board, i.e., receiving module, judgment module, pipe in above-mentioned apparatus Reason module and sending module can be set on data collecting card, and data acquisition node can be set on interface board.Specifically, Each module information interaction is mainly realized by the way of interface function on data collecting card, data collecting card and each mould of interface board It is realized by the way of communication between plates between block.
Key technology point first is that: whether heartbeat handshake mechanism works normally identifying data acquisition node and each parameter is matched It sets and whether completes.The technical point mainly includes two process flows, first is that acquisition management supporting module handles configuration management message Process, second is that acquisition management supporting module receives heartbeat message timeout treatment process.
It is as follows that acquisition management supporting module handles configuration management message flow:
Step 1: initialization management supporting module;
Step 2: listening to multicast information, if listening to, goes to step three;If not listening to, continue to listen to;
Step 3: establishing TCP connection, if success, goes to step four;If unsuccessful, continue to establish;
Step 4: initialization acquisition state, heartbeat are shaken hands time-out, heartbeat timeout management information;
Step 5: judging that heartbeat is shaken hands timeout flag, and if true, i.e. heartbeat time-out of shaking hands is identified as time-out, disconnects TCP and connects It connects, goes to step two;If not true, i.e. heartbeat time-out mark of shaking hands not is time-out, goes to step six;
Step 6: identification configuration management message, classification is respectively heartbeat message, configuration order, acquisition;
Step 7: according to configuration management message respectively carry out resetting heartbeat shake hands expired times, complete acquisition parameter configuration, Complete acquisition state configuration;Then five are gone to step.
It is as shown in Figure 4 that acquisition management supporting module handles configuration management message flow.
It is as follows that acquisition management supporting module receives heartbeat message timeout treatment process:
Step 1: judge heartbeat to shake hands in the time and whether receive heartbeat message, if receiving, go to step two;Turn if not receiving Step 3;
Step 2: resetting heartbeat shake hands expired times be 0, go to step one;
Step 3: heartbeat expired times of shaking hands add 1;
Step 4: judging whether heartbeat expired times of shaking hands are not less than 3 times, if it is not, going to step one;If so, going to step five;
Step 5: set heartbeat shake hands timeout flag be it is true, go to step one.
It is as shown in Figure 5 that acquisition management supporting module receives heartbeat message timeout treatment process.
Key technology point second is that: acquire Two-stage control mechanism using data and control data acquisition session.The key technology Point mainly includes two process flows, first is that the information exchange processing stream of acquisition management supporting module and acquisition sub-agent module Journey, this is the process of level-one control;Second is that the information exchange process flow of acquisition sub-agent module and acquisition management supporting module, This is the process of Two-stage control, and the process of level-one control and the process of Two-stage control are combined as Two-stage control mechanism.
Acquisition management supporting module and the information exchange process flow of acquisition sub-agent module are as follows:
Step 1: acquisition state changes.
Step 2: judging whether acquisition state becomes ready state, if so, going to step three;If it is not, going to step four.
Step 3: acquisition start command is sent, while issuing acquisition parameter configuration information.
Step 4: it sends acquisition and ceases and desist order.
Step 5: acquisition tasks order is received.
Step 6: identification acquisition tasks order goes to step seven if ceasing and desisting order;If not ceasing and desisting order, go to step Eight.
Step 7: data acquisition session is deleted.
Step 8: creating and initialization data acquisition tasks.
Wherein, the executor of step 1 to four is acquisition management supporting module, and the executor of step 5 to eight is acquisition Proxy module.
Interface board and acquisition processing module information exchange process flow are as follows:
Step 1: judging whether acquisition interface receives IP packet, if going to step two, if it is not, continuing step 1.
Step 2: judging whether the IP packet received meets acquisition and require, if so, three are gone to step, if it is not, going to step one.
Step 3: it sets acquisition and is identified as vacation.
Step 4: acquisition response message is sent.
Step 5: capture card receives acquisition response message.
Step 6: construction data acquisition message is simultaneously sent to Collection agent.
Wherein, the executor of step 1 to four is acquisition sub-agent module, and the executor of step 5 to six is acquisition management Supporting module.
The present invention has the embedded data acquisition device of data acquisition parameters configuration management and control function by design, To preferably solve the problems, such as that mobile wireless network effectively carries out flow data collector.Key technology point of the invention is to sentence The heartbeat handshake mechanism of disconnected acquisition node stability, the Two-stage control mechanism for constructing data acquisition session.Method realizes simple, portion Existing equipment investment can be completely secured without particular/special requirement to existing mobile wireless network when administration.
A kind of mobile wireless network flow data collector device provided by the present invention receives configuration management message;It utilizes Heartbeat handshake mechanism judges whether each data acquisition node works normally in mobile wireless network, and judges data acquisition section Whether the data acquisition parameters configuration of point is completed, and the data acquisition node that normal work and parameter configuration are completed is obtained;For every The data acquisition node that one normal work and parameter configuration are completed utilizes data acquisition Two-stage control mechanism construction data to acquire Task sends data acquisition session to data acquisition node, makes data acquisition node according to data acquisition session to network flow Data are acquired.As it can be seen that the device on the basis of general networking flow data collector technology, is joined using acquiring with data The embedded data acquisition mode of number configuration management function and control function, specifically identifies data using heartbeat handshake mechanism Whether acquisition node works normally and whether each parameter configuration is completed, meanwhile, Two-stage control mechanism is acquired using data to control Data acquisition session processed is realized configuration management and control to Network Traffic Data Collection parameter, is provided for mobile wireless network Stablize effective flow data collector service.
A kind of mobile wireless network traffic data collection method provided by the present invention and device have been carried out in detail above It introduces.Used herein a specific example illustrates the principle and implementation of the invention, the explanation of above embodiments It is merely used to help understand method and its core concept of the invention.It should be pointed out that for the ordinary skill people of the art Member for, without departing from the principle of the present invention, can with several improvements and modifications are made to the present invention, these improve and Modification is also fallen within the protection scope of the claims of the present invention.

Claims (6)

1. a kind of mobile wireless network traffic data collection method characterized by comprising
Receive configuration management message;
Judge whether each data acquisition node works normally in mobile wireless network using heartbeat handshake mechanism, and judges number Whether completed according to the data acquisition parameters configuration of acquisition node, obtains the data that normal work and parameter configuration are completed and acquire section Point;
For the data acquisition node of each normal work and parameter configuration completion, data is utilized to acquire Two-stage control mechanism structure Building data acquisition task, Xiang Suoshu data acquisition node send data acquisition session, make the data acquisition node according to data Acquisition tasks are acquired network flow data;
Wherein, the Two-stage control mechanism includes the information exchange processing stream of acquisition management supporting module and acquisition sub-agent module The information exchange process flow of journey and acquisition the sub-agent module and the acquisition management supporting module, the configuration management disappear Breath includes heartbeat message, configuration order and acquisition;
Wherein, the information exchange process flow of the acquisition management supporting module and the acquisition sub-agent module includes:
Judge whether data acquisition node state is changed into ready state;
If so, sending acquisition start command to data acquisition node, while acquisition parameter configuration information is sent, adopts the data Collect node creation and initialization data acquisition tasks;
It ceases and desist order if it is not, sending acquisition to data acquisition node, the data acquisition node is made to delete data acquisition session;
Wherein, the acquisition sub-agent module and the information exchange process flow of the acquisition management supporting module include:
Judge whether data acquisition node receives IP packet;
If data acquisition node receives IP packet, judge whether the IP packet that data acquisition node receives meets acquisition need It asks;
If IP packet meets acquisition demand, the acquisition that IP packet is arranged is identified as vacation, and sends acquisition to data acquisition node and ring Information is answered, data acquisition node acquisition tasks message is made.
2. the method as described in claim 1, which is characterized in that judged using heartbeat handshake mechanism each in mobile wireless network Whether a data acquisition node works normally, and judges whether the data acquisition parameters configuration of data acquisition node is completed, comprising:
Listen to multicast information;
When listening to multicast information, is established and communicated to connect using TCP transmission control protocol and each data acquisition node;
Initialize the acquisition state of each data acquisition node, heartbeat shake hands time-out mark and heartbeat timeout management information;
For each data acquisition node, judge that the heartbeat of data acquisition node time-out of shaking hands marks whether as time-out;If so, Disconnect communication connection;If it is not, using the configuration management message respectively carry out resetting heartbeat shake hands expired times, complete acquisition ginseng Number configuration and completion acquisition state configuration.
3. method according to claim 2, which is characterized in that described to carry out the resetting heart respectively using the configuration management message Jump is shaken hands after expired times, the configuration of completion acquisition parameter and completion acquisition state configuration, further includes:
Judge heartbeat to shake hands in the time and whether receives heartbeat message;
If so, resetting heartbeat is shaken hands, expired times are 0;
If it is not, heartbeat expired times of shaking hands are added 1, judge whether heartbeat number of shaking hands is more than or equal to 3;If heartbeat is shaken hands secondary Number is more than or equal to 3, and resetting heartbeat time-out of shaking hands is identified as time-out.
4. a kind of mobile wireless network flow data collector device characterized by comprising
Receiving module, for receiving configuration management message;
Judgment module, for judging whether each data acquisition node is normal in mobile wireless network using heartbeat handshake mechanism Work, and judge whether the data acquisition parameters configuration of data acquisition node is completed, it obtains normal work and parameter configuration is completed Data acquisition node;
Management module, the data acquisition node for working normally for each and parameter configuration is completed, is acquired using data Two-stage control mechanism construction data acquisition session, Xiang Suoshu data acquisition node send data acquisition session, adopt the data Collection node is acquired network flow data according to data acquisition session;
Wherein, the Two-stage control mechanism includes the information exchange processing stream of acquisition management supporting module and acquisition sub-agent module The information exchange process flow of journey and acquisition the sub-agent module and the acquisition management supporting module, the configuration management disappear Breath includes heartbeat message, configuration order and acquisition;
Wherein, the management module includes:
State judging unit, the data acquisition node for working normally for each and parameter configuration is completed, judges data Whether acquisition node state is changed into ready state;
First transmission unit, if being changed into ready state for data acquisition node state;It sends and acquires to data acquisition node Start command, while acquisition parameter configuration information is sent, make the data acquisition node creation and initialization data acquisition tasks;
Second transmission unit, if not being changed into ready state for data acquisition node state;It is adopted to data acquisition node transmission Collection is ceased and desisted order, and the data acquisition node is made to delete data acquisition session;
Wherein, the management module further include:
Message judging unit, for judging whether data acquisition node receives IP packet;If data acquisition node receives IP Message, judges whether the IP packet that data acquisition node receives meets acquisition demand;If IP packet meets acquisition demand, setting The acquisition of IP packet is identified as vacation, and sends acquisition response message to data acquisition node, makes data acquisition node acquisition tasks Message.
5. device as claimed in claim 4, which is characterized in that the judgment module includes:
Unit is listened to, for listening to multicast information;
Unit is communicated to connect, for being saved using TCP transmission control protocol and the acquisition of each data when listening to multicast information Point establishes communication connection;
Setting unit, for initializing the acquisition state of each data acquisition node, heartbeat shake hands time-out mark and heartbeat it is super When management information;
Judging unit, for for each data acquisition node, judging that the heartbeat of data acquisition node time-out label of shaking hands is No is overtime;If so, disconnecting communication connection;It shakes hands time-out if it is not, carrying out resetting heartbeat respectively using the configuration management message Number completes acquisition parameter configuration and completes acquisition state configuration;
Acquiring unit, the data acquisition node completed for obtaining normal work and parameter configuration.
6. device as claimed in claim 4, which is characterized in that the judgment module further include: reset cell, for judging the heart Jump shakes hands whether receive heartbeat message in the time;If so, resetting heartbeat is shaken hands, expired times are 0;If it is not, it is super that heartbeat is shaken hands When number add 1, judge whether heartbeat number of shaking hands is more than or equal to 3;If heartbeat is shaken hands, number is more than or equal to 3, resetting Heartbeat time-out of shaking hands is identified as time-out.
CN201510772161.7A 2015-11-12 2015-11-12 A kind of mobile wireless network traffic data collection method and device Active CN105306305B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510772161.7A CN105306305B (en) 2015-11-12 2015-11-12 A kind of mobile wireless network traffic data collection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510772161.7A CN105306305B (en) 2015-11-12 2015-11-12 A kind of mobile wireless network traffic data collection method and device

Publications (2)

Publication Number Publication Date
CN105306305A CN105306305A (en) 2016-02-03
CN105306305B true CN105306305B (en) 2019-04-05

Family

ID=55203085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510772161.7A Active CN105306305B (en) 2015-11-12 2015-11-12 A kind of mobile wireless network traffic data collection method and device

Country Status (1)

Country Link
CN (1) CN105306305B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107766066B (en) * 2016-08-23 2021-02-26 中车株洲电力机车研究所有限公司 Method for updating slave module firmware
CN113067722A (en) * 2021-03-02 2021-07-02 北京澎思科技有限公司 Data management platform and working method thereof

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174927A (en) * 2006-11-03 2008-05-07 华为技术有限公司 Feedback method for processing data accepting state and its receiving and transmitting device
CN101562777A (en) * 2009-05-27 2009-10-21 马强 Active acquisition system for state of mobile communication network and active mentoring system based on same
CN101583140A (en) * 2009-05-14 2009-11-18 复旦大学 Automatic communication network monitoring system and realization method thereof
CN101801036A (en) * 2010-03-03 2010-08-11 华为终端有限公司 Network traffic management method and system and common node
CN101808017A (en) * 2010-03-26 2010-08-18 中国科学院计算技术研究所 Method and system for quantificationally calculating network abnormity index
CN102801587A (en) * 2012-08-29 2012-11-28 北京邮电大学 Large-scale network-oriented virtualized monitoring system and dynamic monitoring method thereof
CN103023680A (en) * 2011-09-23 2013-04-03 中国科学院声学研究所 Terminal state collection system and method
CN103067192A (en) * 2011-10-20 2013-04-24 北京天行网安信息技术有限责任公司 Analytic system and method of network flow
CN103326897A (en) * 2013-06-08 2013-09-25 烽火通信科技股份有限公司 Distributed computing environment general monitoring device and failure detection method
CN103780454A (en) * 2013-12-06 2014-05-07 重庆邮电大学 Distributed network performance measuring system and method based on access gateways
CN103856615A (en) * 2012-12-04 2014-06-11 赛龙通信技术(深圳)有限公司 Method for displaying dynamic variation data of state parameters of mobile phone

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8125907B2 (en) * 2008-06-12 2012-02-28 Talari Networks Incorporated Flow-based adaptive private network with multiple WAN-paths
WO2011106591A2 (en) * 2010-02-26 2011-09-01 Net Optics, Inc Ibypass high density device and methods thereof

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174927A (en) * 2006-11-03 2008-05-07 华为技术有限公司 Feedback method for processing data accepting state and its receiving and transmitting device
CN101583140A (en) * 2009-05-14 2009-11-18 复旦大学 Automatic communication network monitoring system and realization method thereof
CN101562777A (en) * 2009-05-27 2009-10-21 马强 Active acquisition system for state of mobile communication network and active mentoring system based on same
CN101801036A (en) * 2010-03-03 2010-08-11 华为终端有限公司 Network traffic management method and system and common node
CN101808017A (en) * 2010-03-26 2010-08-18 中国科学院计算技术研究所 Method and system for quantificationally calculating network abnormity index
CN103023680A (en) * 2011-09-23 2013-04-03 中国科学院声学研究所 Terminal state collection system and method
CN103067192A (en) * 2011-10-20 2013-04-24 北京天行网安信息技术有限责任公司 Analytic system and method of network flow
CN102801587A (en) * 2012-08-29 2012-11-28 北京邮电大学 Large-scale network-oriented virtualized monitoring system and dynamic monitoring method thereof
CN103856615A (en) * 2012-12-04 2014-06-11 赛龙通信技术(深圳)有限公司 Method for displaying dynamic variation data of state parameters of mobile phone
CN103326897A (en) * 2013-06-08 2013-09-25 烽火通信科技股份有限公司 Distributed computing environment general monitoring device and failure detection method
CN103780454A (en) * 2013-12-06 2014-05-07 重庆邮电大学 Distributed network performance measuring system and method based on access gateways

Also Published As

Publication number Publication date
CN105306305A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
EP3300311B1 (en) Method and smart watch for interacting with a wechat platform
CN104519493B (en) A kind of method of multiple bluetooth equipment networkings
CN103096435B (en) Connect keeping method, device and mobile terminal
CN105933852B (en) A kind of telecommunication system and method by bluetooth equipment realization
WO2004059994A8 (en) Mobile terminal connecting different terminal equipment te2 at rm interface with a plurality of wireless networks at um interface
CN102104893B (en) Method, device and wireless access point equipment for realizing hot backup of wireless controller
CN108199865A (en) A kind of route service implementation method based on distribution subscription
CN103312532B (en) The automatic method for removing of fault for things-internet gateway and system
CN106102033B (en) A kind of equipment communication means and device based on Android platform
CN106941536A (en) Data interactive method between client and server based on http protocol
CN105827439B (en) The method for realizing wireless device ad hoc network
CN107135529A (en) Realize the method that AP and STA connects simultaneously synchronous AP configuration modifications automatically
CN101136801A (en) Network fault detecting method
CN102387461A (en) Mobile data service recommendation method, apparatus and system thereof
CN106453906A (en) External device, data transmission method, device and system
CN105306305B (en) A kind of mobile wireless network traffic data collection method and device
CN106375453B (en) Bidirectional communication equipment, system and method based on HTTP connection
CN110167026A (en) A kind of method for switching network and device, private network application server and storage medium
CN103516766B (en) Method and system of communication between client-side and application server
CN106850784A (en) Communication means between smart host and cloud service
CN201667661U (en) Auxiliary measurement equipment and testing system of PPPOE client router
CN112616171B (en) Communication method and device based on wireless local area network and computer readable storage medium
CN106533934A (en) Border gateway applicable to all interconnected manufacturing networks
CN105472101B (en) Method, master control mobile intelligent terminal and the controlled mobile intelligent terminal of remote help
CN107454659A (en) A kind of terminal identification method, system, terminal device and base station

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant