CN109818820A - Data on flows monitoring method, device, electronic equipment and storage medium - Google Patents
Data on flows monitoring method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109818820A CN109818820A CN201811572087.4A CN201811572087A CN109818820A CN 109818820 A CN109818820 A CN 109818820A CN 201811572087 A CN201811572087 A CN 201811572087A CN 109818820 A CN109818820 A CN 109818820A
- Authority
- CN
- China
- Prior art keywords
- data
- flows
- mobile device
- application
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
The present invention provides a kind of data on flows monitoring method, device, electronic equipment and storage mediums, wherein the described method includes: obtaining the port link information of target mobile device;It obtains in the target mobile device all using generated data on flows;The application layer traffic data of classifying and the transport layer flow data are applied to single, and determine the data on flows of target application.The data on flows all applied in routing server monitoring objective mobile device is acted on behalf of by external in the embodiment of the present invention, obtain the data on flows of application layer and transport layer, and therefrom Accurate classification determines the data on flows of target application on target mobile device, it can be realized on the basis of not influencing mobile device original performance, the effect of accurate monitoring objective application traffic data.
Description
Technical field
This application involves APP Performance Evaluation technical field more particularly to a kind of data on flows monitoring methods, device, electronics
Equipment and storage medium.
Background technique
In current mobile device testing field, APP (Application, application program) Performance Evaluation technology is opposite
It is mature.Usual APP Performance Evaluation is using the data on flows of APP as assessment basis.
Common APP traffic data collection method is by injecting pitching pile code to primary APP, and then to target APP's
Data on flows caused by implementation procedure is automatically recorded, or integrates third-party Software Development Kit (Software
Development Kit, SDK), flow data collector and performance test are carried out for each content in packet.
However, applicant has found when acquiring data on flows using existing APP traffic data collection method, the pitching pile of injection
Therefore the CPU and memory that code and the data on flows recorded are required to occupy mobile device can further be influenced to target
The acquisition quality of APP data on flows;And it is directed to third-party Software Development Kit, need to pass through continuous iteration and is developed not
With Performance Evaluation frame version adapt to the mobile device with different operating system, therefore exploitation and dimension can be greatly increased
The cost of shield.
Summary of the invention
This application provides a kind of data on flows monitoring method, device, electronic equipment and storage mediums, can be realized not
On the basis of influencing the original performance of mobile device, the effect of accurate monitoring objective application traffic data.
In a first aspect, the embodiment of the invention provides a kind of data on flows monitoring methods, comprising:
The port link information of target mobile device is obtained, the port link information results from the target mobile device
With act on behalf of corresponding port between routing server;
According to the port link information, obtain in the target mobile device all using generated data on flows,
The data on flows includes: application layer traffic data and transport layer flow data;
According to default classifying rules, the application layer traffic data of classifying and the transport layer flow data are to individually answering
With, and determine the data on flows of target application.
In a kind of possible implementation of first aspect of the embodiment of the present invention, the port for obtaining target mobile device
Include: before link information
Obtain the target mobile device and each binding information acted on behalf of between routing server;
According to the binding information, determine the target mobile device with it is each it is described act on behalf of it is corresponding between routing server
Port.
It is described according to the port link information in a kind of possible implementation of first aspect of the embodiment of the present invention,
It obtains in the target mobile device and all includes: using the specific steps of generated data on flows
Monitor the data on flows of the corresponding ports of the target mobile device in real time;
Summarize the data on flows all applied in the target mobile device in default monitoring period.
It is described according to the port link information in a kind of possible implementation of first aspect of the embodiment of the present invention,
It obtains in the target mobile device and all includes: using the specific steps of generated data on flows
It obtains the interface all applied in each target mobile device in default monitoring period and calls record;
It is called and is recorded according to the interface, determine the data on flows all applied in the target mobile device.
In a kind of possible implementation of first aspect of the embodiment of the present invention, the method also includes:
It stores all using generated data on flows to database in the target mobile device, the database is to set
It is placed in the storage unit acted on behalf of in routing server.
In a kind of possible implementation of first aspect of the embodiment of the present invention, the basis presets classifying rules, classification
The application layer traffic data are applied to single, and the specific steps of the data on flows of determining target application include:
Identify that the whole in the application layer traffic data represents whole generations in field and the transport layer flow data
Literary name section;
Field is represented according to described, the application layer traffic data of classifying and the transport layer flow data are to individually answering
With;
According to goal-selling application message, the flow of the target application is screened and determined in all single applications
Data, the target application can be one or more.
In a kind of possible implementation of first aspect of the embodiment of the present invention, the method also includes:
According to the data on flows of the transport layer flow data and the target application, the property of the target application is assessed
Energy.
In a kind of possible implementation of first aspect of the embodiment of the present invention, the target mobile device and the agency
Routing server is linked by hotspot;It is described to act on behalf of routing server internet is accessed by cable broadband.
Second aspect, the embodiment of the invention provides a kind of data on flows monitoring devices, comprising:
Data obtaining module, for obtaining the port link information of target mobile device, the port link information is generated
In the target mobile device with act on behalf of corresponding port between routing server;
Data on flows obtains module, for according to the port link information, obtaining in the target mobile device all
Using generated data on flows, the data on flows includes: application layer traffic data and transport layer flow data;
Categorization module presets classifying rules, classify the application layer traffic data and the transport layer flow for basis
Data are applied to single, and determine the data on flows of target application.
In a kind of possible implementation of second aspect of the embodiment of the present invention, described device further include:
Binding information obtains module, for obtaining the target mobile device and each described acting on behalf of between routing server
Binding information;
Determining module, for determining that the target mobile device and each agency are routed and taken according to the binding information
Corresponding ports between business device.
In a kind of possible implementation of second aspect of the embodiment of the present invention, the data on flows obtains module and includes:
Real-time monitoring module, the data on flows of the corresponding ports for monitoring the target mobile device in real time;
Summarizing module, for summarizing the data on flows all applied in the target mobile device in default monitoring period.
In a kind of possible implementation of second aspect of the embodiment of the present invention, the data on flows obtains module and includes:
Record obtains module, for obtaining the interface all applied in each target mobile device in default monitoring period
Call record;
First sub- determining module records for being called according to the interface, determines and all answer in the target mobile device
Data on flows.
In a kind of possible implementation of second aspect of the embodiment of the present invention, described device further include:
Memory module, for storing in the target mobile device all using generated data on flows to database,
The database is to be set to the storage unit acted on behalf of in routing server.
In a kind of possible implementation of second aspect of the embodiment of the present invention, the categorization module includes:
Identification module, the whole in the application layer traffic data represents field and the transport layer flow number for identification
Whole in represents field;
First subclassification module, for representing field according to described, classify the application layer traffic data and the transmission
Layer data on flows is applied to single;
Target application determining module, for being screened simultaneously in all single applications according to goal-selling application message
Determine that the data on flows of the target application, the target application can be one or more.
In a kind of possible implementation of second aspect of the embodiment of the present invention, described device further include:
Evaluation module, for the data on flows according to the transport layer flow data and the target application, described in assessment
The performance of target application.
In a kind of possible implementation of second aspect of the embodiment of the present invention, the target mobile device and the agency
Routing server is linked by hotspot;It is described to act on behalf of routing server internet is accessed by cable broadband.
The third aspect, the embodiment of the invention provides a kind of electronic equipment, comprising:
Processor, and
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to require 1-8 any described via executing the executable instruction and carry out perform claim
Data on flows monitoring method.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage mediums, are stored thereon with computer journey
Sequence, which is characterized in that claim 1-8 any data on flows prison is realized when the computer program is executed by processor
Prosecutor method.
Data on flows monitoring method, device, electronic equipment and storage medium provided in an embodiment of the present invention, data on flows prison
In prosecutor method, the port link information of target mobile device is obtained;It obtains in the target mobile device all using produced
Data on flows;The application layer traffic data of classifying and the transport layer flow data are applied to single, and determine that target is answered
Data on flows.It is all applied in routing server monitoring objective mobile device in the embodiment of the present invention by external act on behalf of
Data on flows obtains the data on flows of application layer and transport layer, and therefrom Accurate classification determines target on target mobile device
The data on flows of application can be realized accurate monitoring objective application on the basis of not influencing mobile device original performance
The effect of data on flows.
Detailed description of the invention
It, below will be to embodiment or existing in order to clearly demonstrate the embodiment of the present invention or technical solution in the prior art
Attached drawing needed in technical description is briefly described, it should be apparent that, the accompanying drawings in the following description is of the invention
Some embodiments for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other attached drawings.
Fig. 1 is the flow diagram of data on flows monitoring method embodiment one provided in an embodiment of the present invention;
Fig. 2 is a kind of connection relationship structural representation for acting on behalf of routing server and mobile device provided in an embodiment of the present invention
Figure;
Fig. 3 is the flow diagram of data on flows monitoring method embodiment two provided in an embodiment of the present invention;
Fig. 4 is the flow diagram for the data on flows that the first acquisition is all applied;
Fig. 5 is second of flow diagram for obtaining the data on flows all applied;
Fig. 6 is the flow diagram of the monitoring method embodiment three of data on flows provided in an embodiment of the present invention;
Fig. 7 is the schematic diagram provided in an embodiment of the present invention that individually apply comprising several processes;
Fig. 8 is the structural schematic diagram of data on flows monitoring device embodiment one provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of data on flows monitoring device embodiment two provided in an embodiment of the present invention;
Figure 10 is the structural schematic diagram of data on flows monitoring device embodiment three provided in an embodiment of the present invention;
Figure 11 is the structural schematic diagram of data on flows monitoring device example IV provided in an embodiment of the present invention;
Figure 12 is the structural schematic diagram of data on flows monitoring device embodiment five provided in an embodiment of the present invention;
Figure 13 is the hardware structural diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the embodiment of the present invention, instead of all the embodiments.Based on the embodiment in the embodiment of the present invention, this field
Those of ordinary skill's every other embodiment obtained without making creative work, belongs to implementation of the present invention
The range of example protection.
Fig. 1 is the flow diagram of data on flows monitoring method embodiment one provided in an embodiment of the present invention.Such as Fig. 1 institute
Show, data on flows monitoring method provided in this embodiment includes:
S101: obtaining the port link information of target mobile device, and the port link information results from the target and moves
Dynamic equipment with act on behalf of corresponding port between routing server.
Wherein, the executing subject of the embodiment of the present invention is to act on behalf of routing server with data on flows monitoring collection function
(Proxy Route Server) or other external servers with flow data collector function, platform, terminal, equipment
Deng.
Wherein, as shown in Fig. 2, a kind of connection relationship structural schematic diagram for acting on behalf of routing server and mobile device.?
Routing server is acted on behalf of in S101 and is external in mobile device, mobile device and acts on behalf of routing server interconnection is connected to by port
Net carries out network communication.Port link information generally includes port numbers, linking status, interface requests record, mobile device code name
Deng.Acting on behalf of the mobile device that routing server is connected is the equipment with network communicating function, such as mobile phone, computer, PC
Machine etc. can run each application thereon, it should be noted that the mobile device of internet is accessed by acting on behalf of routing server,
The operating system not had by itself is limited, and it is same act on behalf of routing server can access simultaneously it is multiple identical or
The mobile device of person's different operating system, that is, the data on flows of multiple mobile devices can be monitored simultaneously by acting on behalf of routing server.
In monitoring, acts on behalf of routing server and passes through particular port link information possessed by the different mobile devices of identification,
And then determine the one or more target mobile devices for wanting special monitoring.As shown in Fig. 2, each mobile device takes the mobile phone as an example,
Mobile device A, B, C by the same generation manage routing server 9 be connected to internet, wherein A and B correspond to same port a, C pairs
It should be Android in the operating system of port b, A and C, the operating system of B is iOS, and therefore, A, B, C have different port chains
Connect information.Routing server 9 is acted on behalf of by obtaining the different port link information of A, B, C, finally determines A and C as target shifting
Dynamic equipment, therefore, to being monitored by the data on flows of corresponding ports for A and C.
S102: it according to the port link information, obtains in the target mobile device all using generated flow
Data, the data on flows include: application layer traffic data and transport layer flow data.
Specifically, the application in operational objective mobile device need to be connected to internet when using operation, at this point, application is logical
It crosses target mobile device and initiates the request of the access authority to back-end services, access data via corresponding port, and act on behalf of road
It can be recorded by monitoring via the request that port generates by server, and then each current operation is answered in monitoring objective mobile device
Data on flows.
Wherein, the application in operational objective mobile device is often referred to need the target for carrying out Performance Evaluation to answer using operation
With the method for closing remaining unrelated application.But in practical operation, although user closes unrelated application, practical still to have part
Unrelated apply is generating data on flows, i.e. user is only limitted to foreground program for the closing of unrelated application, but in system process
In, still there is the unrelated background service using institute's carry in part, and these background services still generate data on flows, usually hang
The background service of load is communicated with the target application being currently running using same port, and therefore, the background service of carry will necessarily be right
The flow data collector for the target application being currently running impacts.Existing traffic data collection method only can be more directed to
The data on flows of the acquisition target application of property, however data result collected also and non-fully distinguish it is unrelated using carry after
The data on flows of platform flow of services data and target application, therefore, collection result precision are lower.And the present invention is by obtaining target
The data on flows all applied in mobile device, obtain target application data on flows simultaneously, obtain carry in background service
Unrelated application caused by data on flows, remain subsequent progress data classification processing.It can effectively ensure that data on flows in this way
The transverse direction of acquisition is comprehensive.
Moreover, the performance when Performance Evaluation of target application is generally divided into two parts, i.e. normal front stage operation, and close
After foreground process, performance of carry when backstage.As it can be seen that the performance of accurate evaluation target application, except through above-mentioned mistake
Journey acquires data on flows when target application operates normally, it is also necessary to which after acquiring target application closing foreground process, carry is in rear
Generated data on flows when platform.Equally, existing traffic data collection method can not targetedly acquire target application carry in
The data on flows on backstage;Equally, even if acquiring target application carry in the data on flows on backstage, be also not completely separate in
It is unrelated using carry data on flows caused by backstage, therefore, equally exist the lower problem of collection result precision.And this
Invention remains subsequent carry out data by obtaining on target mobile device all using carry data on flows caused by backstage
Classification processing can effectively ensure that the transverse direction of flow data collector is comprehensive.
Meanwhile it is each application can exist simultaneously one or more processes, to accurate evaluation application information, need into
One step analyzes each process, that is, needs to obtain the data on flows of each process of application, however existing flow is adopted
Set method is only capable of collecting the whole data on flows using after being packaged, i.e. application layer traffic data, can not further obtain not
The data on flows of each process before packing.The present invention is based on routing server is acted on behalf of, by TCP/UDP agreement, port is used
It number identifies each process in application, and obtains data on flows caused by each process simultaneously, remain subsequent carry out data
Divide process processing assessment, and then the longitudinal direction that flow data collector is effectively ensured is comprehensive.
S103: according to default classifying rules, the application layer traffic data of classifying and the transport layer flow data to list
A application, and determine the data on flows of target application.
Specifically, in a kind of classification application layer data on flows provided by the present application and transport layer flow data and target is determined
In the embodiment of the data on flows of application, the present age reason routing server S102 to by port all using generation flow
It is corresponding to the data on flows individually applied by whole flow data classification, wherein application layer traffic data after data acquisition
Identical as data on flows content represented by transport layer flow data, application layer traffic data are the transport layer flow number after being packaged
According to therefore, when sorting flow data, a classification application layer data on flows can be set according to actual needs, or only classification passes
Defeated layer data on flows, or classification application layer data on flows and transport layer flow data simultaneously.Particularly, target application is normal
Data on flows application carry data on flows caused by backstage unrelated with remaining when operation is classified;Target application is hung
It is loaded in the application carry data on flows caused by backstage unrelated with remaining of data on flows caused by backstage to classify, in turn
The accurate data on flows for obtaining target application under each state.
To sum up, in data on flows monitoring method provided in this embodiment, the port link information of target mobile device is obtained;
It obtains in the target mobile device all using generated data on flows;Classify the application layer traffic data and transport layer
Data on flows is applied to single, and determines the data on flows of target application.Clothes are routed by external agency in the embodiment of the present invention
The data on flows all applied in business device monitoring objective mobile device, obtains the data on flows of application layer and transport layer, and therefrom
Accurate classification determines the data on flows of target application on target mobile device, and can be realized is not influencing the original property of mobile device
On the basis of capable of showing, the effect of accurate monitoring objective application traffic data.
The same generation reason routing server can connect multiple mobile devices simultaneously, if the same generation reason routing server connection
Mobile device is excessive, it will cause port call it is overstocked, cause overload, influence the matter that mobile device is connected to internet
Amount, and then run under proper network quality without the application in decree mobile device, it influences using produced data on flows
Acquisition, to influence the assessment of application performance;Moreover, partial movement equipment, to confidentiality, region etc. has particular/special requirement.Cause
This meets the particular/special requirement of mobile device to mitigate the load pressure for acting on behalf of routing server, while conveniently setting to movement
The management respectively applied in standby and mobile device, the agency specified using different mobile device connections of the embodiment of the present invention
Routing server, and act on behalf of the designated port on routing server.
As shown in figure 3, being the flow diagram of data on flows monitoring method embodiment two provided in an embodiment of the present invention.This
Embodiment provide data on flows monitoring method, obtain target mobile device port link information before include:
S201: the target mobile device and each binding information acted on behalf of between routing server are obtained.
Specifically, the binding information that routing server obtains each target mobile device itself in advance, the binding are respectively acted on behalf of
Information includes at least: IP address and port information, can also include: transmission speed, flow, confidential information, area restriction information
Deng.
Wherein, it acts on behalf of routing server and can obtain and current moved with the target for acting on behalf of routing server and building connection relationship
The binding information of dynamic equipment;Also available currently transmitted connection relationship of building is requested to the target movement for acting on behalf of routing server
The binding information of equipment;Also the binding information of the target mobile device of available preparatory uploading system platform.
S202: it according to the binding information, determines the target mobile device and each described acts on behalf of between routing server
Corresponding ports.
In the present embodiment, the binding information obtained according to S201 can determine each target mobile device corresponding to agency
The corresponding ports of routing server.Wherein, for the target mobile device for acting on behalf of routing server acquisition provided in S202
Binding information type, if it is current with the binding information acting on behalf of routing server and build the target mobile device of connection relationship
It is mismatched with the port currently connecting, does not obtain the data on flows of target mobile device further, or directly disconnect and currently connecting
It connects, if matched, continues subsequent operation;If it is currently transmitted to act on behalf of routing server build connection relationship request
The binding information of target mobile device matches with the port acted on behalf of in routing server, linking objective mobile device to corresponding end
Mouthful, if be not connected to without the port to match;It, can be true by analyzing the binding information of the target mobile device uploaded in advance
Surely the target mobile device that can be connected with current agent routing server, while determining the corresponding end of target mobile device
Mouthful.
To sum up, by by target mobile device be connected to it is specified act on behalf of routing server, can effectively improve and act on behalf of road
By the load balancing of server, while meeting the connection request of each target mobile device, and convenient for target mobile device
Monitoring and management.
Further, the first possible implementation of the S102 in above-described embodiment, as shown in figure 4, the first is obtained
The flow diagram for the data on flows all applied.In acquisition target mobile device provided in this embodiment all produced by
The specific steps of data on flows include:
S301: the data on flows of the corresponding ports of the target mobile device is monitored in real time.
S302: summarize the data on flows all applied in the target mobile device in default monitoring period.
Specifically, target mobile device carries out data biography via port corresponding with routing server is acted on behalf of and internet
It is defeated, therefore, routing server is acted on behalf of by the data on flows transmitted in monitoring port, monitoring objective mobile device institute can be realized
The data on flows of generation.
The present embodiment acts on behalf of routing server real time monitoring target mobile device in correspondence with the thinking of " first dissipating rear whole "
The data on flows transmitted on port, and by data summarization, the whole data on flows collection that will be transmitted in default monitoring period
Be combined together, as in final target mobile device all using generated data on flows.Wherein, default monitoring period is
The testing time according to set by big data, artificial experience, actual test demand etc.;Default monitoring period can the second, when, point,
It, be used as chronomere in week etc..
Due to acting on behalf of the connection relationship between routing server and target mobile device there are real-time change, connection it is unstable or
Situations such as person's overload, can enable the real-time traffic data distortion of target mobile device, in order to avoid only obtaining in a period of time
There is contingency and inaccuracy in the data on flows all applied, can be using the data on flows for obtaining multi-section time.Therefore, in advance
If monitoring period can also be the period, that is, the data on flows that routing server continues the mobile corresponding ports of monitoring objective is acted on behalf of, with
The default monitoring period of periodic formation, summarizes data on flows, forms data on flows corresponding to more periods.
Default monitoring period can also be the specific period, such as the accuracy in order to guarantee subsequent applications Performance Evaluation,
It needs to understand simultaneously and applies the generated data on flows within the various representative periods such as use peak and use blank, this
When, according to the time that works by day using less, the first monitoring section of default monitoring period can be set as 9:00-10:00;
According to lunch break using more, the second monitoring section of default monitoring period can be set as 12:00-13:00;Under
Class's time is connected to and acts on behalf of other mobile devices of routing server and increase at this time using more, and network is busier, can
The third monitoring section of default monitoring period is set as 19:00-20:00.By it is several representative in monitoring one day when
Between the data on flows all applied in section, can guarantee the diversity and accuracy of monitored data on flows, and then improve
The subsequent accuracy to the assessment of target application performance.
To sum up, by the data on flows all applied in real time monitoring target mobile device, and summarize default monitoring period
Interior data on flows accurate and effective can obtain the data on flows for meeting demand, and data on flows timeliness with higher.
Further, second of possible implementation of the S102 in above-described embodiment, as shown in figure 5, second of acquisition
The flow diagram for the data on flows all applied.In acquisition target mobile device provided in this embodiment all produced by
The specific steps of data on flows include:
S401: it obtains the interface all applied in each target mobile device in default monitoring period and calls record.
S402: it is called and is recorded according to the interface, determine the data on flows all applied in the target mobile device.
Specifically, in target mobile device all using be by call API (Application Programming
Interface, application programming interface) it requests the access authority of back-end services and obtains data, however above-mentioned API tune
With the proxied routing server monitoring of record meeting, therefore, acting on behalf of routing server can be by inquiring the API Calls that all apply
Record obtains all using generated corresponding discharge data.
Wherein, API Calls record includes at least: call number calls the shortest time, calls maximum duration, calls averagely
Time, calling success rate etc., such as: in default monitoring period, the A application in target mobile device is called a interface 50 times,
The middle calling shortest time is 0.001s, and calling maximum duration is 0.01s, and calling average time is 0.0023s, and calling success rate is
98%, it acts on behalf of routing server and is capable of determining that according to above-mentioned calling record using corresponding data on flows, and will all connect
The data on flows that mouth calls record corresponding, as the data on flows all applied in final goal mobile device.
Wherein, the setting of default monitoring period can be found in aforementioned, and details are not described herein again.In order to guarantee to act on behalf of routing server
The accuracy of data on flows and comprehensive is monitored, interface can be equally obtained using the period and calls record or obtains specific time
The method that section inner joint calls record, specific steps are equally repeated no more herein referring to above-mentioned.
To sum up, the interface that the present embodiment acts on behalf of that routing server pointedly acquires in default storage and monitoring time segment calls note
Therefore record, can reduce the work load for acting on behalf of routing server in remaining time then without acquisition.Pass through monitoring objective
The interface all applied in mobile device calls record, accurate and effective can be determined for compliance with the data on flows of demand.
Further, by above two acquisition target mobile device all using the method for generated data on flows
After obtaining data on flows, store all using generated data on flows to database in the target mobile device, it is described
Database is to be set to the storage unit acted on behalf of in routing server.
Specifically, act on behalf of routing server obtain target mobile device in all using generated data on flows after,
It needs for whole datas on flows to be initially stored in and act on behalf of in the database set in routing server, remaining follow-up data processing makes
With.
Wherein, database can be DB (Date Base) database, or the storage unit with caching function.
The data on flows for acting on behalf of routing server acquisition, is not handled directly, but is first stored.Wherein, it flows
The amount of storage and storage time for measuring data can be arranged according to actual needs.In such manner, it is possible to change the real-time of follow-up data processing
Treatment effect is avoided due to data on flows abruptly increase or is die-offed brought data processing pressure or data processing free time, energy
The pressure of enough effectively dispersion follow-up data processing, such as: acquired data on flows is less within the time that works by day, then can be with
Extend storage time and/or increases amount of storage;The data on flows acquired in lunch break or quitting time is more, then can shorten
Storage time and/or reduction amount of storage, and then guarantee that data on flows is balanced, balance follow-up data treatment process.It should be noted that
It is, although having carried out the limitation of storage time and amount of storage to the data on flows of storage herein, to cause data on flows in form
Dispersion, but such way only for convenience of follow-up data handle, due to data on flows have corresponding timestamp, interface response
Time etc. represents field, and therefore, storage processing herein can't be to the quality for assessing target application performance according to data on flows
It impacts.
Further, database can also delete function with data, once the data on flows stored is more than default deposits
Reserves or storage time then delete current all or part of data on flows, in order to avoid cause to act on behalf of routing server
Data congestion influences normal usage function.
Further, the S103 in above-described embodiment is specifically included: as shown in fig. 6, being stream provided in an embodiment of the present invention
Measure the flow diagram of the monitoring method embodiment three of data.In the present embodiment, it according to default classifying rules, is answered described in classification
It is applied with layer data on flows to single, and the specific steps of the data on flows of determining target application include:
S501: it is complete in field and the transport layer flow data to identify that the whole in the application layer traffic data represents
Portion represents field.
S502: representing field according to described, the application layer traffic data of classifying and the transport layer flow data to list
A application.
S503: it according to goal-selling application message, is screened in all single applications and determines the target application
Data on flows, the target application can for one or more.
Specifically, for the application layer traffic data of each application, application layer traffic data are made of several fields, wherein
Include: URL (Uniform Resource Locator, uniform resource locator) field, timestamp (timestamp) field,
Discharge pattern field, interface response time field etc., by identifying that these, with significant representative field, can know application
Layer data on flows resource location on the internet, data generation time, discharge pattern, connects using issuing to call access method
The response time etc. of mouth request, and then by above- mentioned information, it is divided to all using the data on flows being packaged with each
A corresponding application.It can be by the application of specified assessment, the application that the needs that expire are assessed or the needs reacted according to big data
The application settings assessed are goal-selling application, and therefore generate goal-selling application message, the goal-selling application
Information includes at least: target application title, target application corresponding interface etc., and according to goal-selling application message, from whole lists
Target application is filtered out in a application, and the data on flows corresponding to it is the data on flows of target application.
Further, the present invention also provides another sorting flow data to the method individually applied.In above-described embodiment
S102 in the data on flows that obtains further include transport layer flow data, transport layer flow data itself correspond to some application
Therefore individual process summarizes the data on flows for the whole processes individually applied, i.e., the whole transport layers that will individually apply
Data on flows, which summarizes, is achieved with the whole datas on flows individually applied, and can be obtained target further according to the present embodiment S503 and answers
Data on flows.
It, can be using two different methods point for the different attribute of application layer traffic data and transport layer flow data
Other classification application layer data on flows and transport layer flow data are applied to single.
It should be noted that the present invention can carry out data on flows classification to one or more target applications simultaneously, or
Data on flows classification is carried out to one or more target applications on one or more target mobile devices simultaneously, and then is effectively mentioned
Height acts on behalf of the monitoring efficiency of routing server.
After success obtains the data on flows of each target application, it can be carried out according to performance of the data on flows to target application
Assessment however, existing application performance is assessed only for application layer traffic data, and does not consider flow number caused by unrelated application
According to the influence to target application, therefore, assessment result lacks comprehensive and depth.
Target can be sorted out from the data on flows of whole applications (target application and unrelated application) by above-described embodiment
The data on flows of application meets true operating condition, and it is accurate to classify, and therefore, can satisfy to the assessment of target application performance
Comprehensive requirement.As shown in fig. 7, being the schematic diagram provided in an embodiment of the present invention that individually apply comprising several processes.It can
See, the operation of a target application is completed by multiple processes, therefore, only by complete caused by assessment target application
Portion's application layer traffic data, such as resource location on the internet, access method, data generation time, discharge pattern, application
The response time etc. for issuing calling interface request, deeper, Performance Evaluation more precisely can not be provided.At this point, the present invention is implemented
Example uses, according to the data on flows of transport layer flow data and target application, i.e. transport layer flow data and application layer traffic number
According to, while the performance of target application is assessed, assessment result can be enabled to act on each process, make to assess more accurate.
Optionally, the target mobile device is acted on behalf of routing server and is linked by hotspot with described;The agency
Routing server accesses internet by cable broadband.
It acts on behalf of routing server and is linked with target mobile device by hotspot, can be realized the behaviour of target mobile device
Make system indifference to be linked with routing server is acted on behalf of, and then without developing different performance frames.
Meanwhile acting on behalf of routing server and internet is accessed by cable broadband, it can effectively ensure that and act on behalf of routing server
The stability of networking is reduced since network oscillation is to influence caused by the subsequent data on flows for obtaining target mobile device, guarantor
Barrier target mobile device can access internet by acting on behalf of routing server.
Fig. 8 is the structural schematic diagram of data on flows monitoring device embodiment one provided in an embodiment of the present invention.Such as Fig. 8 institute
Show, the present embodiment monitoring device includes: data obtaining module 1, data on flows acquisition module 2 and categorization module 3, wherein information
The port link information that module 1 is used to obtain target mobile device is obtained, the port link information results from the target and moves
Dynamic equipment with act on behalf of corresponding port between routing server;Data on flows obtains module 2 and is used to be believed according to the port link
Breath, obtains all using generated data on flows in the target mobile device, the data on flows includes: application layer traffic
Data and transport layer flow data;Categorization module 3 is used for according to default classifying rules, classify the application layer traffic data and institute
It states transport layer flow data to apply to single, and determines the data on flows of target application.
Fig. 9 is the structural schematic diagram of data on flows monitoring device embodiment two provided in an embodiment of the present invention.Such as Fig. 9 institute
Show, the monitoring device of the present embodiment further include: binding information obtains module 4, for obtaining the target mobile device and each institute
State the binding information acted on behalf of between routing server;Determining module 5, for determining that the target is moved according to the binding information
Dynamic equipment and each corresponding ports acted on behalf of between routing server.
Figure 10 is the structural schematic diagram of data on flows monitoring device embodiment three provided in an embodiment of the present invention.Such as Figure 10 institute
Show, it includes: real-time monitoring module 21 and summarizing module 22 that the data on flows, which obtains module 2, wherein real-time monitoring module 21 is used
In the data on flows for the corresponding ports for monitoring the target mobile device in real time;Summarizing module 22 is for summarizing default monitoring period
The data on flows all applied in the interior target mobile device.
Figure 11 is the structural schematic diagram of data on flows monitoring device example IV provided in an embodiment of the present invention.Such as Figure 11 institute
Show, it includes: that record obtains module 23 and the first sub- determining module 24 that the data on flows, which obtains module 2, wherein record obtains mould
Block 23 is used to obtain the interface all applied in each target mobile device in default monitoring period and calls record;First son is really
Cover half block 24 is used to be called according to the interface and record, and determines the data on flows all applied in the target mobile device.
Optionally, the monitoring device further include: memory module is all applied for storing in the target mobile device
For generated data on flows to database, the database is to be set to the storage unit acted on behalf of in routing server.
Figure 12 is the structural schematic diagram of data on flows monitoring device embodiment five provided in an embodiment of the present invention.Such as Figure 12 institute
Show, the categorization module 3 includes: identification module 31, categorization module 32 and target application determining module 33, wherein identification module
What 31 whole for identification in the application layer traffic data represented in field and the transport layer flow data whole represents
Field;First subclassification module 32 is used to represent field according to described, classify the application layer traffic data and the transport layer
Data on flows is applied to single;Target application determining module 33 is used for according to goal-selling application message, all described single
Screen and determine that the data on flows of the target application, the target application can be one or more in.
The embodiment of the invention also provides a kind of evaluation modules, for according to the transport layer flow data and the target
The data on flows of application assesses the performance of the target application.
Data on flows monitoring device provided in an embodiment of the present invention can be used for executing above-mentioned data on flows monitoring method,
Implementation is similar with technical effect, and details are not described herein again for the embodiment of the present invention.
Figure 13 is the hardware structural diagram of electronic equipment provided in an embodiment of the present invention.As shown in figure 13, which sets
Standby includes: memory 6 and processor 7;
Memory 6, for storing computer program;
Processor 7, for executing the computer program of memory storage, to realize that the data on flows in above-described embodiment is supervised
Prosecutor method.It specifically may refer to the associated description in preceding method embodiment.
Optionally, memory 6 can also be integrated with processor 7 either independent.
When the memory 6 is independently of the device except processor 7, the electronic equipment can also include:
Bus 8, for connecting the memory 6 and processor 7.
Electronic equipment provided in an embodiment of the present invention can be used for executing above-mentioned data on flows monitoring method, implementation
Similar with technical effect, details are not described herein again for the embodiment of the present invention.
The embodiment of the present invention also provides a kind of electronic equipment, and the electronic equipment is any shown in above-described embodiment for executing
Data on flows monitoring method in each step.
The embodiment of the present invention also provides a kind of readable storage medium storing program for executing, is stored with computer program in readable storage medium storing program for executing, when
When at least one processor for the device that message is sent executes the computer program, the device that message is sent executes above-described embodiment
Any data on flows monitoring method.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can store in computer-readable storage medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or
The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Present invention has been described in detail with reference to the aforementioned embodiments for pipe, those skilled in the art should understand that, according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement, and these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (18)
1. a kind of data on flows monitoring method, which is characterized in that the described method includes:
The port link information of target mobile device is obtained, the port link information results from the target mobile device and generation
Manage corresponding port between routing server;
According to the port link information, obtain all using generated data on flows in the target mobile device, it is described
Data on flows includes: application layer traffic data and transport layer flow data;
According to default classifying rules, the application layer traffic data of classifying and the transport layer flow data are applied to single, and
Determine the data on flows of target application.
2. the method according to claim 1, wherein it is described obtain target mobile device port link information it
Before include:
Obtain the target mobile device and each binding information acted on behalf of between routing server;
According to the binding information, the target mobile device and each corresponding end acted on behalf of between routing server are determined
Mouthful.
3. according to the method described in claim 2, obtaining the mesh it is characterized in that, described according to the port link information
All include: using the specific steps of generated data on flows in mark mobile device
Monitor the data on flows of the corresponding ports of the target mobile device in real time;
Summarize the data on flows all applied in the target mobile device in default monitoring period.
4. according to the method described in claim 2, obtaining the mesh it is characterized in that, described according to the port link information
All include: using the specific steps of generated data on flows in mark mobile device
It obtains the interface all applied in each target mobile device in default monitoring period and calls record;
It is called and is recorded according to the interface, determine the data on flows all applied in the target mobile device.
5. the method according to claim 3 or 4, which is characterized in that the method also includes:
It stores all using generated data on flows to database in the target mobile device, the database is to be set to
The storage unit acted on behalf of in routing server.
6. according to the method described in claim 5, it is characterized in that, the basis presets classifying rules, the application layer of classifying
Data on flows and the transport layer flow data are applied to single, and determine the specific steps packet of the data on flows of target application
It includes:
The whole for identifying that the whole in the application layer traffic data represents in field and the transport layer flow data represents word
Section;
Field is represented according to described, the application layer traffic data of classifying and the transport layer flow data are applied to single;
According to goal-selling application message, the flow number of the target application is screened and determined in all single applications
According to the target application can be one or more.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
According to the data on flows of the transport layer flow data and the target application, the performance of the target application is assessed.
8. the method according to claim 1, wherein the target mobile device acts on behalf of routing server with described
It is linked by hotspot;It is described to act on behalf of routing server internet is accessed by cable broadband.
9. a kind of data on flows monitoring device, which is characterized in that described device includes:
Data obtaining module, for obtaining the port link information of target mobile device, the port link information results from institute
State target mobile device with act on behalf of corresponding port between routing server;
Data on flows obtains module, for obtaining and all applying in the target mobile device according to the port link information
Generated data on flows, the data on flows include: application layer traffic data and transport layer flow data;
Categorization module presets classifying rules, the application layer traffic data of classifying and the transport layer flow data for basis
It is applied to single, and determines the data on flows of target application.
10. device according to claim 9, which is characterized in that described device further include:
Binding information obtains module, for obtaining the target mobile device and each binding acted on behalf of between routing server
Information;
Determining module, for according to the binding information, determining the target mobile device and each described acting on behalf of routing server
Between corresponding ports.
11. device according to claim 10, which is characterized in that the data on flows obtains module and includes:
Real-time monitoring module, the data on flows of the corresponding ports for monitoring the target mobile device in real time;
Summarizing module, for summarizing the data on flows all applied in the target mobile device in default monitoring period.
12. device according to claim 10, which is characterized in that the data on flows obtains module and includes:
Record obtains module, calls for obtaining the interface all applied in each target mobile device in default monitoring period
Record;
The first sub- determining module is recorded for being called according to the interface, is determined and is all applied in the target mobile device
Data on flows.
13. device according to claim 11 or 12, which is characterized in that described device further include:
Memory module, it is described for storing all using generated data on flows to database in the target mobile device
Database is to be set to the storage unit acted on behalf of in routing server.
14. device according to claim 13, which is characterized in that the categorization module includes:
Identification module, the whole in the application layer traffic data represents in field and the transport layer flow data for identification
Whole represent field;
First subclassification module, for representing field according to described, classify the application layer traffic data and the transport layer stream
Data are measured to single application;
Target application determining module, for screening and determining in all single applications according to goal-selling application message
The data on flows of the target application, the target application can be one or more.
15. device according to claim 14, which is characterized in that described device further include:
Evaluation module assesses the target for the data on flows according to the transport layer flow data and the target application
The performance of application.
16. device according to claim 9, which is characterized in that the target mobile device acts on behalf of route service with described
Device is linked by hotspot;It is described to act on behalf of routing server internet is accessed by cable broadband.
17. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
Processor, and
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to carry out any stream of perform claim requirement 1-8 via the execution executable instruction
Measure data monitoring method.
18. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
Claim 1-8 any data on flows monitoring method is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811572087.4A CN109818820A (en) | 2018-12-21 | 2018-12-21 | Data on flows monitoring method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811572087.4A CN109818820A (en) | 2018-12-21 | 2018-12-21 | Data on flows monitoring method, device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109818820A true CN109818820A (en) | 2019-05-28 |
Family
ID=66602245
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811572087.4A Pending CN109818820A (en) | 2018-12-21 | 2018-12-21 | Data on flows monitoring method, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109818820A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111954247A (en) * | 2020-06-30 | 2020-11-17 | 联想(北京)有限公司 | Information processing method, terminal and storage medium |
CN112257069A (en) * | 2020-10-20 | 2021-01-22 | 福建奇点时空数字科技有限公司 | Server security event auditing method based on flow data analysis |
CN112256428A (en) * | 2020-10-21 | 2021-01-22 | 赛尔网络有限公司 | Data processing method and device, electronic equipment and storage medium |
CN112686728A (en) * | 2020-12-30 | 2021-04-20 | 上海瑞家信息技术有限公司 | House resource information display method and device, electronic equipment and computer readable medium |
CN115484194A (en) * | 2022-09-16 | 2022-12-16 | 中国农业银行股份有限公司 | Flow monitoring method and device |
CN116149959A (en) * | 2023-04-20 | 2023-05-23 | 北京集度科技有限公司 | Data processing device, method, monitoring equipment and computer program product |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070081452A1 (en) * | 2005-10-06 | 2007-04-12 | Edward Walter | Access port centralized management |
CN104009892A (en) * | 2014-06-12 | 2014-08-27 | 北京奇虎科技有限公司 | Monitoring method and device for traffic of mobile terminal and client side |
CN104573048A (en) * | 2015-01-20 | 2015-04-29 | 电子科技大学 | User basic attribute predicting method based on flow data of smart phone |
US20150188900A1 (en) * | 2013-12-31 | 2015-07-02 | Digital River, Inc. | Session managment in a multi-tenant, multi-data center environment system and method |
CN105792235A (en) * | 2014-12-25 | 2016-07-20 | 乐视移动智能信息技术(北京)有限公司 | Data flow statistical method and device |
CN105898727A (en) * | 2015-12-31 | 2016-08-24 | 乐视移动智能信息技术(北京)有限公司 | Terminal network-connection state control method and device |
CN106101006A (en) * | 2016-08-23 | 2016-11-09 | 大连网月科技股份有限公司 | A kind of application type cloud recognizer for flow-control and device |
CN106656989A (en) * | 2016-11-03 | 2017-05-10 | 北京奇虎科技有限公司 | Flow monitoring method and terminal |
CN108111619A (en) * | 2017-12-28 | 2018-06-01 | 西安抱朴通信科技有限公司 | A kind of data distribution method and device, computer equipment, storage medium |
-
2018
- 2018-12-21 CN CN201811572087.4A patent/CN109818820A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070081452A1 (en) * | 2005-10-06 | 2007-04-12 | Edward Walter | Access port centralized management |
US20150188900A1 (en) * | 2013-12-31 | 2015-07-02 | Digital River, Inc. | Session managment in a multi-tenant, multi-data center environment system and method |
CN104009892A (en) * | 2014-06-12 | 2014-08-27 | 北京奇虎科技有限公司 | Monitoring method and device for traffic of mobile terminal and client side |
CN105792235A (en) * | 2014-12-25 | 2016-07-20 | 乐视移动智能信息技术(北京)有限公司 | Data flow statistical method and device |
CN104573048A (en) * | 2015-01-20 | 2015-04-29 | 电子科技大学 | User basic attribute predicting method based on flow data of smart phone |
CN105898727A (en) * | 2015-12-31 | 2016-08-24 | 乐视移动智能信息技术(北京)有限公司 | Terminal network-connection state control method and device |
CN106101006A (en) * | 2016-08-23 | 2016-11-09 | 大连网月科技股份有限公司 | A kind of application type cloud recognizer for flow-control and device |
CN106656989A (en) * | 2016-11-03 | 2017-05-10 | 北京奇虎科技有限公司 | Flow monitoring method and terminal |
CN108111619A (en) * | 2017-12-28 | 2018-06-01 | 西安抱朴通信科技有限公司 | A kind of data distribution method and device, computer equipment, storage medium |
Non-Patent Citations (1)
Title |
---|
张玲,: ""快速应用层流量识别方法的研究与实现"", 《电信快报》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111954247A (en) * | 2020-06-30 | 2020-11-17 | 联想(北京)有限公司 | Information processing method, terminal and storage medium |
CN112257069A (en) * | 2020-10-20 | 2021-01-22 | 福建奇点时空数字科技有限公司 | Server security event auditing method based on flow data analysis |
CN112256428A (en) * | 2020-10-21 | 2021-01-22 | 赛尔网络有限公司 | Data processing method and device, electronic equipment and storage medium |
CN112686728A (en) * | 2020-12-30 | 2021-04-20 | 上海瑞家信息技术有限公司 | House resource information display method and device, electronic equipment and computer readable medium |
CN112686728B (en) * | 2020-12-30 | 2023-10-24 | 上海瑞家信息技术有限公司 | House source information display method, device, electronic equipment and computer readable medium |
CN115484194A (en) * | 2022-09-16 | 2022-12-16 | 中国农业银行股份有限公司 | Flow monitoring method and device |
CN116149959A (en) * | 2023-04-20 | 2023-05-23 | 北京集度科技有限公司 | Data processing device, method, monitoring equipment and computer program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109818820A (en) | Data on flows monitoring method, device, electronic equipment and storage medium | |
US8090820B2 (en) | Distributed traffic analysis | |
JP4498179B2 (en) | Network traffic assessment and management | |
Wang et al. | A smart home gateway platform for data collection and awareness | |
US7801985B1 (en) | Data transfer for network interaction fraudulence detection | |
JP5520231B2 (en) | ACL configuration method of network device based on flow information | |
CN103947156B (en) | Method, apparatus and communication network for root cause analysis | |
US10193908B2 (en) | Data transfer for network interaction fraudulence detection | |
CN104869155B (en) | Data Audit method and device | |
CN107800565A (en) | Method for inspecting, device, system, computer equipment and storage medium | |
US20120026914A1 (en) | Analyzing Network Activity by Presenting Topology Information with Application Traffic Quantity | |
Trammell et al. | mPlane: an intelligent measurement plane for the internet | |
CN109548063A (en) | Handle method, apparatus, equipment and the storage medium of message | |
CN108206769A (en) | Method, apparatus, equipment and the medium of screen quality alarm | |
CN108093036A (en) | A kind of method and device for obtaining resource | |
WO2020079986A1 (en) | Estimating device, system, method, and computer-readable medium, and learning device, method, and computer-readable medium | |
CN108494625A (en) | A kind of analysis system on network performance evaluation | |
KR20220029142A (en) | Sdn controller server and method for analysing sdn based network traffic usage thereof | |
KR102314557B1 (en) | System for managing security control and method thereof | |
JP4871775B2 (en) | Statistical information collection device | |
CN111818134B (en) | Mist calculation-based data transmission method and device in substation data center | |
CN112488491A (en) | Petri network-based train control vehicle-mounted equipment access process reliability evaluation method | |
TWM598572U (en) | Network connected apparatus and communication system | |
CN108133046A (en) | Data analysing method and device | |
Gibeli et al. | Construction of baselines for VoIP traffic management on open MANs |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190528 |