CN108199979A - Flow processing method and device - Google Patents
Flow processing method and device Download PDFInfo
- Publication number
- CN108199979A CN108199979A CN201711305163.0A CN201711305163A CN108199979A CN 108199979 A CN108199979 A CN 108199979A CN 201711305163 A CN201711305163 A CN 201711305163A CN 108199979 A CN108199979 A CN 108199979A
- Authority
- CN
- China
- Prior art keywords
- flow
- terminal device
- current
- server
- statistics
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/29—Flow control; Congestion control using a combination of thresholds
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/26—Flow control; Congestion control using explicit feedback to the source, e.g. choke packets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Abstract
The present invention relates to flow processing technology fields, and in particular to a kind of flow processing method and device, applied to server, method includes:It obtains the current of terminal device being connect with the server and has used statistics flow, the terminal device that acquisition is obtained by the corresponding business system statistics of the terminal device has used actual flow, judge that whether current used counts flow with the difference for having used actual flow beyond predetermined threshold value, obtain a judging result.By the above method to realize that the used flow to terminal device effectively reliably counts, and when the difference exceeds predetermined threshold value, judge to have used statistics flow to be abnormal, and corresponding terminal device is also abnormal.
Description
Technical field
The present invention relates to flow processing technology field, in particular to a kind of flow processing method and device.
Background technology
With the rapid development of mobile communication and popularizing for more and more terminal devices, operator is to mobile communication terminal
Remote management is also being continuously increased.
Through inventor the study found that existing terminal device there may be by the program in malice brush machine or terminal device
It may be maliciously altered, so that the flow that used that terminal device after flow is used, counts upload is not that reality has used stream
The situation of amount.
Invention content
In view of this, the purpose of the present invention is to provide a kind of flow processing method and device, to realize to user terminal
Used flow carry out effectively reliable statistics.
In order to achieve the above object, the present invention provides following technical scheme:
A kind of flow processing method, applied to server, the method includes:
It obtains the current of terminal device being connect with the server and has used statistics flow;
It obtains and having used in fact for the terminal device obtained is counted by the corresponding business system of the terminal device
Border flow;
Judge that current used counts whether flow exceeds predetermined threshold value with the difference for having used actual flow,
Obtain a judging result.
Optionally, in above-mentioned flow processing method, judge described current statistics flow use to use reality with described
After the step of whether difference of border flow exceeds predetermined threshold value, obtain a judging result, the method further includes:
In the judging result when being, to receive management operation instruction input by user and being sent to the operation quotient system
System operates, the management operation instruction so that the business system completes corresponding management according to the management operation instruction
Including current-limiting operation instruction and rupturing operation instruction.
Optionally, in above-mentioned flow processing method, judge described current statistics flow use to use reality with described
After the step of whether difference of border flow exceeds predetermined threshold value, obtain a judging result, the method further includes:
In the judging result when being, to send current-limiting operation instruction to the business system or rupturing operation instructing,
So that the business system is instructed according to the current-limiting operation or corresponding operation is completed in rupturing operation instruction.
Optionally, in above-mentioned flow processing method, it is described obtain connect with the server terminal device it is current
Included using the step of statistics flow:
Obtain the quantity of terminal device being connect with the server;
When the quantity is more than setting value, pair terminal device being connect with the server is grouped multigroup to obtain
Terminal device;
The current of each group terminal device is obtained using instant messaging agreement successively and has used statistics flow.
Optionally, in above-mentioned flow processing method, it is described obtain connect with the server terminal device it is current
Included using the step of statistics flow:
It has been instructed using flow collection to terminal device transmission;
Judge that the terminal device whether is received in preset duration has used flow collection instruction feedback according to described
It is current to have used statistics flow;
If not receiving current use counts flow, self-test operations are proceeded by the server, and to
The terminal device transmission data suspends acquisition instructions, so that terminal device stops instructing using flow collection described in response, and
After completing to the self-test operations of the server, instructed using flow collection to described in terminal device transmission again;
Receive the terminal device described has used the current of flow collection instruction feedback to use according to what is sent again
Count flow.
Optionally, in above-mentioned flow processing method, in working as the terminal device that execution acquisition is connect with the server
Before preceding the step of having used statistics flow, the method further includes:
Whether the corresponding terminal device of registered address detection according to being preserved in gateway is established with the server connects;
If so, perform step:It obtains the current of terminal device being connect with the server and has used statistics flow.
The present invention also provides a kind of flow management devices, and applied to server, described device includes:
Count flow acquisition module:Statistic fluid has been used for obtaining the current of the terminal device being connect with the server
Amount;
Actual flow acquisition module:For obtaining the institute obtained by the corresponding business system statistics of the terminal device
That states terminal device has used actual flow;
Judgment module:For judging described current whether use statistics flow and the difference for having used actual flow
Beyond predetermined threshold value, a judging result is obtained.
Optionally, in above-mentioned flow processing method, described device further includes:
Traffic management module:For when the judging result is to be, it is concurrent to receive management operation instruction input by user
It send to the business system, is operated so that the business system completes corresponding management according to the management operation instruction,
The management operation instruction includes current-limiting operation instruction and rupturing operation instruction.
Optionally, in above-mentioned flow processing method, statistics flow acquisition module includes:
Quantity acquisition submodule:For obtaining the quantity of terminal device being connect with the server;
It is grouped submodule:For when the quantity be more than setting value when, pair with the terminal device that the server is connect into
Row is grouped to obtain multigroup terminal device;
Flow acquisition submodule:System has been used for obtaining the current of each group terminal device successively using instant messaging agreement
Count flow.
Optionally, in above-mentioned flow processing method, the statistics flow acquisition module includes:
Instruct sending submodule:For being instructed using flow collection to terminal device transmission;
Judging submodule:For judging whether to receive the terminal device in preset duration flow has been used according to described
The current of acquisition instructions feedback has used statistics flow;
Self-test submodule:For do not receive it is described it is current use count flow when, the server is started into
Row self-test operations, and suspend acquisition instructions to the terminal device transmission data, so that terminal device stops having used described in response
Flow collection instructs, and after completing to the self-test operations of the server, has been used again to described in terminal device transmission
Flow collection instructs;
Receiving submodule:Use flow collection instruction anti-for receiving the terminal device according to sending again
The current of feedback has used statistics flow.
A kind of flow processing method and device provided in an embodiment of the present invention, applied to server, method includes:Obtain with
The current of the terminal device of the server connection has used statistics flow, obtains through the corresponding operator of the terminal device
The terminal device that system statistics obtain use actual flow, judge it is described it is current used count flow and it is described
Using the difference of actual flow whether beyond predetermined threshold value, a judging result is obtained.Terminal is set with realizing by the above method
Standby has used flow to carry out effectively reliable statistics, and when the difference exceeds predetermined threshold value, judgement has used statistic fluid
It measures as exception, and corresponding terminal device is also abnormal.
Further, by judging described current whether use statistics flow and the difference for having used actual flow
Beyond predetermined threshold value, after the step of obtaining a judging result, and in the judging result when being, to receive pipe input by user
Reason operational order is simultaneously sent to the business system, so that the business system is according to management operation instruction completion pair
The management operation answered, the management operation instruction include current-limiting operation instruction and rupturing operation instruction.To use statistic fluid
When measuring as exception, traffic management is carried out, and then effectively flow is avoided to continue using abnormal situation.
Description of the drawings
It in order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range, for those of ordinary skill in the art, without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of connection block diagram of server provided in an embodiment of the present invention.
Fig. 2 is a kind of flow diagram of flow processing method provided in an embodiment of the present invention.
Fig. 3 is the sub-step schematic diagram of step S110 in Fig. 2.
Fig. 4 is the sub-step schematic diagram of step S110 in Fig. 2.
Fig. 5 connects block diagram for a kind of flow processing unit provided in an embodiment of the present invention.
Fig. 6 is a kind of connection block diagram of load-on module provided in an embodiment of the present invention.
Fig. 7 is a kind of connection block diagram of mobile module provided in an embodiment of the present invention.
Icon:10- servers;12- memories;14- processors;100- flow processing units;110- statistics flows obtain
Module;111- instructs sending submodule;112- judging submodules;113- self-test submodules;114- receiving submodules;116- quantity
Acquisition submodule;117- is grouped submodule;118- flow acquisition submodules;120- actual flow acquisition modules;130- judges mould
Block;140- traffic management modules;150- detection modules.
Specific embodiment
Purpose, technical scheme and advantage to make the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention
In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings is implemented
The component of example can be configured to arrange and design with a variety of different.
Therefore, below the detailed description of the embodiment of the present invention to providing in the accompanying drawings be not intended to limit it is claimed
The scope of the present invention, but be merely representative of the present invention selected embodiment.Based on the embodiments of the present invention, this field is common
Technical staff's all other embodiments obtained without creative efforts belong to the model that the present invention protects
It encloses.
It should be noted that:Similar label and letter represents similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need to that it is further defined and explained in subsequent attached drawing.
As shown in Figure 1, being the block diagram for the server 10 that present pre-ferred embodiments provide, the server 10 has
There is data-handling capacity.The server 10 includes:Memory 12 and processor 14.
The memory 12 is directly or indirectly electrically connected between each other with processor 14, with realize the transmission of data or
Interaction.It is electrically connected for example, these elements can be realized between each other by one or more communication bus or signal wire.Memory
The software function module that the memory 12 is stored in the form of software or firmware (Firmware), the place are stored in 12
Reason device 14 is stored in software program and module in memory 12 by operation, as the flow in the embodiment of the present invention handles dress
100 are put, so as to perform various functions application and data processing, that is, realizes the flow processing method in the embodiment of the present invention.
It is appreciated that structure shown in FIG. 1 is only to illustrate, server 10 may also include than shown in Fig. 1 more or more
Few component or with the configuration different from shown in Fig. 1.Hardware, software or its group may be used in each component shown in Fig. 1
It closes and realizes.
Referring to Fig. 2, a kind of flow processing method provided by the invention, applied to above-mentioned server 10, the method
Including tri- steps of step S110~S130.
Step S110:It obtains the current of terminal device being connect with the server 10 and has used statistics flow.
Wherein, the terminal device can include flow card, described that statistics flow has been used to be counted for the terminal device
Flow card used flow.The flow card can be SIM card or Internet of Things card, be not specifically limited herein, as long as energy
The terminal device is made to carry out data interaction with server 10, gateway etc. when being equipped with the flow card.The terminal
Equipment can be but not limited to POS machine, mobile phone or tablet computer etc., be not specifically limited herein.What is got has currently used
Statistics flow can use statistics flow in one month, in one week, in one day or within several hours, not make to have herein
Body limits, and is configured according to actual demand.
Obtaining the current of terminal device being connect with the server 10 can be using the mode of statistics flow:It is described
Terminal device timing currently will be uploaded to the server 10 using statistics flow or the server 10 is to described
Terminal device sends instruction so that the terminal device currently will be uploaded to the server 10 using flow.
Referring to Fig. 3, it is optional, in the present embodiment, the terminal device that the acquisition is connect with the server 10
Current the step of having used statistics flow, includes following sub-step:
Step S111:It has been instructed using flow collection to terminal device transmission.
Step S112:Judge that the terminal device whether is received in preset duration have been referred to according to described using flow collection
The current of feedback is enabled to have used statistics flow.
Step S113:If not receiving current used counts flow, the server 10 is proceeded by certainly
Inspection operation, and suspend acquisition instructions to the terminal device transmission data, so that terminal device stops having used flow described in response
Acquisition instructions, and after completing to the self-test operations of the server 10, stream has been used to described in terminal device transmission again
Measure acquisition instructions.
Step S114:Receive the terminal device according to send again it is described used flow collection instruction feedback work as
It is preceding to have used statistics flow.
Wherein, the preset duration can be several seconds, more than ten seconds or a few minutes, be set when not receiving terminal in preset duration
When currently having used statistics flow of standby feedback, it may be possible to which the receiving terminal of server 10 is abnormal, it is also possible to which server 10 connects
Receiving end is abnormal.Optionally, in the present embodiment, only consider that abnormal situation occurs in the signal receiving end of the server 10.
The server 10 do not receive terminal device feedback it is current using statistics flow when proceeded by self-test
Operation.The mode that the server 10 carries out self-test operations can be that the server 10 is detected and repaired automatically, also may be used
To be that the server 10 sends out alarm when detecting unusual condition, so that user is repaired according to alarm,
It is not specifically limited herein.The server 10 does not receive the current of terminal device feedback and has used when counting flow to terminal
Equipment transmission data suspends acquisition instructions, so that terminal device pause acquisition has currently used the data of statistics flow, it can
Effectively to avoid when the server 10 is abnormal, the server 10 is remained with terminal device to be connect, and the terminal
Equipment, which is remained to the server 10, sends the current state for having used statistics flow, and in the server 10 in self-test
During completion, due to receiving the excessive current situation for having caused the system failure of server 10 using data on flows is counted simultaneously, with
And effectively prevent sending to the server 10 by using terminal device timing and use when counting flow, due to the clothes
Business 10 failure of device and cannot normally receive terminal device actual use flow situation.
The server 10 has used flow collection to described in terminal device transmission again when completing self-test operations
Instruction, so that the flow collection instruction feedback that terminal device is sent again according to this has currently used statistics flow, and then effectively
Ensure that the server 10 can effectively and reliably obtain the current of the terminal device and use statistics flow.
The terminal device being connect with the server 10 is either one or more.In the present embodiment, with institute
It is multiple to state 10 associated terminal device of server.The quantity of multiple terminal device can reach million value grades or ten million value
Grade.
Referring to Fig. 4, statistics is used further to ensure that the server 10 obtains the current of each terminal device
The accuracy and reliability of flow.Optionally, it is described to obtain the terminal device connecting with the server 10 in the present embodiment
Current the step of having used statistics flow, includes following sub-step:
Sub-step S116:Obtain the quantity of terminal device being connect with the server 10.
Sub-step S117:When the quantity is more than setting value, pair terminal device being connect with the server 10 carries out
It is grouped to obtain multigroup terminal device.
Sub-step S118:The current of each group terminal device is obtained using instant messaging agreement successively and has used statistics flow.
Wherein, the setting value can be but not limited to 500,000,1,000,000,2,000,000 or 5,000,000 etc., not make herein
It is specific to limit, it is configured according to the performance of the server 10 and actual demand.In each group terminal device after grouping
Including the quantity of terminal device can be identical or different, be not specifically limited herein, according to actual demand
It is configured.
In the present embodiment, the current of each group terminal device is obtained successively by using instant messaging agreement used statistics
Flow is it is possible to prevente effectively from using in traditional technology:Current acquisition has been in the terminal device using the mode of statistics flow
A timing routine is installed in face, and program is periodically executed data acquisition operations, and Communication Gateway will be given in data, to pass through communication
Gateway is uploaded to server 10.Under million to millions terminal device acquisition scene, the timing acquiring of million, ten million terminal
Program can not effectively control its concurrent pressure to server 10, it is possible to which a certain one request data of moment does not all have, and having can
Energy subsequent time concurrency increases to million even ten million suddenly, and server 10 is caused to obtain currently having made for terminal device acquisition
With during statistics flow the problem of system crash, and then avoid effectively and reliably obtaining the current of each terminal device and used system
Count the situation of flow.
For example, when the quantity of terminal device being connect with the server 10 is 2,000,000, and there are 50 for synchronization
Ten thousand terminal devices sent to server 10 it is current using the system crash that server 10 can be caused during flow, by this two
Million terminal devices are divided into five groups, and each group includes 400,000 terminal devices, and each group corresponds to a time slot, institute respectively
It states server 10 and obtains current use of each terminal device in corresponding grouping in each time slot successively and count flow so that
Server 10 at most obtains 400,000 the current of terminal device in synchronization and has used statistics flow, effectively to avoid servicing
The situation of the system crash of device 10.And use existing flow collection mode, then easily occur interior more than 50 there are synchronization
Ten thousand terminal devices even send there are 2,000,000 terminal devices to server 10 and have currently used actual flow, Jin Erzao simultaneously
Into the situation of the system crash of server 10.
Step S120:It obtains and the terminal device obtained is counted by the corresponding business system of the terminal device
Actual flow is used.
Specifically, the terminal device that the business system statistics obtains can be operation using actual flow
The terminal device of quotient's system statistics is in one month, has used actual flow in one week, in one day or in several hours, herein
It is not especially limited, is configured according to actual demand, is not specifically limited herein.
It should be noted that in the present embodiment, currently using the period of the statistics of statistics flow with currently having used
The statistical time range of actual flow is identical.For example, when acquisition is when currently having used statistics flow as intraday flow, then obtain
The actual flow that used also be interior flow on the same day.Use stream in when use flow be several small for acquisition current
Amount, then the actual flow that used obtained is also the flow in identical several hours.
Wherein, it when the quantity of the terminal device is excessive, obtains through the corresponding business system of the terminal device
Counting the terminal device obtained can be using the mode of actual flow:The maximum ensured according to business system
Handling capacity is sent the speed for having used actual flow information inquiry to control, under the premise of stability is ensured, is taken with operator
The maximum throughput that system can be born initiates inquiry operation to operator, obtains that the terminal device is corresponding have been used with inquiry
Actual flow.Step S130:Described current whether surpassed with the difference for having used actual flow using statistics flow judged
Go out predetermined threshold value, obtain a judging result.
Wherein, the predetermined threshold value can be tens Mbytes, hundreds of Mbytes, several G bytes or tens G words
Section, is not specifically limited herein, is configured according to actual demand, is not specifically limited herein.
Effectively reliable statistics carries out used flow to realize by the above method, wherein, this is used
Flow includes having used actual flow and has used statistics flow.Wherein, judge whether the difference exceeds the knot of predetermined threshold value
Fruit is beyond predetermined threshold value or without departing from predetermined threshold value, and when the difference exceeds predetermined threshold value, judging result is has used
Flow is counted to be abnormal, and corresponding terminal device is also abnormal.
Further, when the difference exceeds predetermined threshold value, the server 10 can be sent out to corresponding terminal device
Prompt message is sent, which includes currently having used actual flow and currently used statistics flow and terminal device different
Normal information;The server 10 can also send to the business system and instruct so that business system is to corresponding terminal
Equipment carries out current limliting or cut-out using flow;It can also be that user is sent by the server 10 to the business system
It instructs so that business system carries out current limliting or cut-out to corresponding terminal device using flow.
Optionally, in the present embodiment, judge described current use statistics flow and described used reality performing
After the step of whether difference of flow exceeds predetermined threshold value, obtain a judging result, the method further includes:
In the judging result when being, to receive management operation instruction input by user and being sent to the operation quotient system
System operates, the management operation instruction so that the business system completes corresponding management according to the management operation instruction
Including current-limiting operation instruction and rupturing operation instruction.
By the above method to realize in the case of Traffic Anomaly, user can carry out current-limiting operation according to actual conditions
Or rupturing operation, and then effectively terminal device flow is avoided to continue using abnormal situation.
Optionally, in the present embodiment, judge described current use statistics flow and described used reality performing
After the step of whether difference of flow exceeds predetermined threshold value, obtains a judging result, the method includes:
In the judging result when being, to send current-limiting operation instruction to the business system or rupturing operation instructing,
So that the business system is instructed according to the current-limiting operation or corresponding operation is completed in rupturing operation instruction.
By the above method effectively to avoid under the situation of Traffic Anomaly, the server 10 can be from trend operator
System sends current limliting instruction or cut-out instruction to carry out current-limiting operation or rupturing operation, and then effectively avoid the terminal device stream
Amount continues using abnormal situation.
Optionally, it is described before management operation instruction, current-limiting operation instruction or rupturing operation instruction is sent to operator
Server 10 can also be sent to the terminal device includes whether that performing current-limiting operation or the operation of rupturing operation selects information,
The server 10 can also be when receiving the instruction information that terminal device is fed back according to the operation selection information, according to institute
It states instruction information and sends current-limiting operation instruction or rupturing operation instruction to the business system, to realize the stream in terminal device
When amount is abnormal, rationally reliable management is carried out to the flow of terminal device.
Optionally, in the present embodiment, the method further includes:
Whether the corresponding terminal device of registered address detection according to being preserved in gateway is established with the server 10 connects.
If so, perform step:It obtains the current of terminal device being connect with the server 10 and has used statistics flow.
Wherein, the registered address is the log-on message that is sent to gateway of terminal device, and the gateway is described in receive
It is preserved during registered address.It is described according to the registered address that is preserved in the gateway detect corresponding terminal device whether with institute
It can be that connection is established by the way of shaking hands to state server 10 and establish the mode of connection, for example, the server 10 is to described
The corresponding terminal device in registered address stored in gateway sends handshake, and receiving terminal device according to handshake
During the confirmation signal of feedback, then the corresponding terminal device in the registered address is established with the server 10 and is connected, and then is made described
Server 10 can obtain having used for the terminal device that the server 10 connects and count flow.
Incorporated by reference to Fig. 5, the present invention also provides a kind of flow processing unit 100, including statistics flow acquisition module 110, reality
Border flow acquisition module 120 and judgment module 130.
The statistics flow acquisition module 110 has made for obtaining the current of the terminal device being connect with the server 10
With statistics flow.Specifically, the statistics flow acquisition module 110 can be used for performing step S110 shown in Fig. 2, specifically
Operating method can refer to the detailed description of step S110.
Incorporated by reference to Fig. 6, optionally, in the present embodiment, the statistics flow acquisition module 110 includes instruction and sends submodule
Block 111, judging submodule 112, self-test submodule 113 and receiving submodule 114.
Described instruction sending submodule 111 is used to instruct using flow collection to terminal device transmission.Specifically,
Described instruction sending submodule 111 can be used for performing the sub-step S111 shown in Fig. 3, and specific operating method can refer to sub-step
The detailed description of rapid S111.
The judging submodule 112 has made for judging whether to receive the terminal device in preset duration according to described
Current with flow collection instruction feedback has used statistics flow.Specifically, the judging submodule 112 can be used for performing Fig. 3
Shown in sub-step S112, specific operating method can refer to the detailed description of sub-step S112.
The self-test submodule 113 be used for do not receive it is described it is current use count flow when, to the server
10 proceed by self-test operations, and suspend acquisition instructions to the terminal device transmission data, so that terminal device stops response institute
It states and is instructed using flow collection, and after completing to the self-test operations of the server 10, sent again to the terminal device
It is described to be instructed using flow collection.Specifically, the self-test submodule 113 can be used for performing the sub-step shown in Fig. 3
S113, specific operating method can refer to the detailed description of sub-step S113.
The receiving submodule 114 is used to receiving the terminal device described has used flow collection according to what is sent again
The current of instruction feedback has used statistics flow.Specifically, the receiving submodule 114 can be used for performing the son shown in Fig. 3
Step S114, specific operating method can refer to the detailed description of sub-step S114.
Incorporated by reference to Fig. 7, optionally, in the present embodiment, the statistics flow acquisition module 110 further includes:Quantity obtains
Submodule 116, grouping submodule 117 and flow acquisition submodule 118.
The quantity of terminal device that the quantity acquisition submodule 116 connect for acquisition with the server 10.Specifically
Ground, the quantity acquisition submodule 116 can be used for performing the sub-step S116 shown in Fig. 4, and specific operating method can refer to
The detailed description of sub-step S116.
The grouping submodule 117 is used for when the quantity is more than setting value, pair end being connect with the server 10
End equipment is grouped to obtain multigroup terminal device.Specifically, the grouping submodule 117 can be used for performing shown in Fig. 4
Sub-step S117, specific operating method can refer to the detailed description of sub-step S117.
The flow acquisition submodule 118 be used for using instant messaging agreement obtain successively each group terminal device it is current
Use statistics flow.Specifically, the flow acquisition submodule 118 can be used for performing the sub-step S118 shown in Fig. 4, specifically
Operating method can refer to the detailed description of sub-step S118.
The actual flow acquisition module 120 is obtained for obtaining by the corresponding business system statistics of the terminal device
The terminal device obtained has used actual flow.Specifically, the actual flow acquisition module 120 can be used for performing Fig. 2
Shown in step S120, specific operating method can refer to the detailed description of step S120.
The judgment module 130 is used to judge that current used counts flow and the difference for having used actual flow
Whether value obtains a judging result beyond predetermined threshold value.Specifically, the judgment module 130 can be used for performing shown in Fig. 2
Step S130, specific operating method can refer to the detailed description of step S130.
Optionally, in the present embodiment, the flow processing unit 100 further includes traffic management module 140.
The traffic management module 140 is used to when being, to receive management operation input by user refer in the judging result
It enables and is sent to the business system, so that the business system completes corresponding management according to the management operation instruction
Operation, the management operation instruction include current-limiting operation instruction and rupturing operation instruction.About the traffic management module 140
It specifically describes, please refers to the description of above-mentioned flow processing method, do not repeat specifically herein.
Optionally, in the present embodiment, it is yes that the traffic management module 140, which can be also used in the judging result,
When, it sends current-limiting operation instruction to the business system or rupturing operation instructs, so that the business system is according to
Current-limiting operation instructs or corresponding operation is completed in rupturing operation instruction.
Optionally, in the present embodiment, the flow processing unit 100 further includes detection module 150.The detection module
150 are used to connect according to whether the corresponding terminal device of registered address detection preserved in gateway is established with the server 10.
Specific implementation process about the detection module 150 can refer to the description in above-mentioned flow processing method, not make to have herein
Body repeats.
To sum up, a kind of flow processing method and device provided by the invention, applied to server 10, method includes:It obtains
The current of the terminal device being connect with the server 10 has used statistics flow, and acquisition passes through the corresponding fortune of the terminal device
The terminal device that battalion's quotient's system statistics obtain has used actual flow, judges that current used counts flow and institute
It states and has used whether the difference of actual flow exceeds predetermined threshold value, obtain a judging result.By the above method to realize to end
End equipment has used flow to carry out effectively reliable statistics, and when the difference exceeds predetermined threshold value, judgement has used system
Flow is counted to be abnormal, and corresponding terminal device is also abnormal.
In the several embodiments provided in the embodiment of the present invention, it should be understood that disclosed device and method also may be used
To realize by another way.Device and method embodiment described above is only schematical, for example, in attached drawing
Flow chart and block diagram show the device of multiple embodiments according to the present invention, the possibility of method and computer program product is realized
Architectural framework, function and operation.In this regard, each box in flow chart or block diagram can represent module, a program
A part for section or code, a part for the module, program segment or code are used to implement defined patrol comprising one or more
Collect the executable instruction of function.It should also be noted that at some as the function of in the realization method replaced, being marked in box
It can be occurred with being different from the sequence marked in attached drawing.It is also noted that each box in block diagram and/or flow chart,
And the combination of the box in block diagram and/or flow chart, function as defined in performing or the dedicated of action can be used to be based on hardware
Device realize or can be realized with the combination of specialized hardware and computer instruction.In addition, in each implementation of the present invention
Each function module in example can integrate to form an independent part or modules individualism,
An independent part can be integrated to form with two or more modules.
If the function is realized in the form of software function module and is independent product sale or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially in other words
The part contribute to the prior art or the part of the technical solution can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, is used including some instructions so that a computer equipment (can be
People's computer or the network equipment etc.) perform all or part of the steps of the method according to each embodiment of the present invention.It is and aforementioned
Storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory
The various media that can store program code such as (RAM, Random Access Memory), magnetic disc or CD.It needs to illustrate
, herein, term " comprising ", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so as to
So that the process, method, article or the equipment that include a series of elements not only include those elements, but also including without clear and definite
It the other element listed or further includes as elements inherent to such a process, method, article, or device.Do not having more
In the case of more limitations, the element that is limited by sentence "including a ...", it is not excluded that in the process including the element, side
Also there are other identical elements in method, article or equipment.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, that is made any repaiies
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of flow processing method, applied to server, which is characterized in that the method includes:
It obtains the current of terminal device being connect with the server and has used statistics flow;
The terminal device that acquisition is obtained by the corresponding business system statistics of the terminal device has used practical stream
Amount;
Judge that whether current used counts flow with the difference for having used actual flow beyond predetermined threshold value, obtain
One judging result.
2. flow processing method according to claim 1, which is characterized in that judge it is described it is current use statistics flow and
After the described the step of difference of actual flow has been used whether to exceed predetermined threshold value, obtain a judging result, the method is also
Including:
In the judging result when being, to receive management operation instruction input by user and being sent to the business system, with
The business system is made to complete corresponding management according to the management operation instruction to operate, the management operation instruction includes limit
Flow operational order and rupturing operation instruction.
3. flow processing method according to claim 1, which is characterized in that judge it is described it is current use statistics flow and
After the described the step of difference of actual flow has been used whether to exceed predetermined threshold value, obtain a judging result, the method is also
Including:
In the judging result when being, to send current-limiting operation instruction to the business system or rupturing operation instructing, so that
The business system is instructed according to the current-limiting operation or corresponding operation is completed in rupturing operation instruction.
4. according to the flow processing method described in claim 1-3 any one, which is characterized in that the acquisition and the service
The current of the terminal device of device connection is included using the step of statistics flow:
Obtain the quantity of terminal device being connect with the server;
When the quantity is more than setting value, pair terminal device being connect with the server is grouped to obtain multigroup terminal
Equipment;
The current of each group terminal device is obtained using instant messaging agreement successively and has used statistics flow.
5. according to the flow processing method described in claim 1-3 any one, which is characterized in that the acquisition and the service
The current of the terminal device of device connection is included using the step of statistics flow:
It has been instructed using flow collection to terminal device transmission;
Judge that the terminal device whether is received in preset duration has used the current of flow collection instruction feedback according to described
Statistics flow is used;
If not receiving current use counts flow, self-test operations are proceeded by the server, and to the end
End equipment transmission data suspends acquisition instructions, so that terminal device stops instructing using flow collection, and complete described in response
After the self-test operations of the pairs of server, instructed using flow collection to described in terminal device transmission again;
Receive the terminal device described has used the current of flow collection instruction feedback to use statistics according to what is sent again
Flow.
6. flow processing method according to claim 1, which is characterized in that obtain what is connect with the server performing
Before current the step of having used statistics flow of terminal device, the method further includes:
Whether the corresponding terminal device of registered address detection according to being preserved in gateway is established with the server connects;
If so, perform step:It obtains the current of terminal device being connect with the server and has used statistics flow.
7. a kind of flow management device, applied to server, which is characterized in that described device includes:
Count flow acquisition module:Statistics flow has been used for obtaining the current of the terminal device being connect with the server;
Actual flow acquisition module:For obtaining the end obtained by the corresponding business system statistics of the terminal device
End equipment has used actual flow;
Judgment module:For described current whether exceeded with the difference for having used actual flow using statistics flow to be judged
Predetermined threshold value obtains a judging result.
8. flow processing unit according to claim 7, which is characterized in that described device further includes:
Traffic management module:For when the judging result is to be, receiving management operation instruction input by user and being sent to
The business system operates so that the business system completes corresponding management according to the management operation instruction, described
Management operation instruction includes current-limiting operation instruction and rupturing operation instruction.
9. flow processing unit according to claim 7 or 8, which is characterized in that statistics flow acquisition module includes:
Quantity acquisition submodule:For obtaining the quantity of terminal device being connect with the server;
It is grouped submodule:For when the quantity is more than setting value, pair terminal device being connect with the server to divide
Group is to obtain multigroup terminal device;
Flow acquisition submodule:Statistic fluid has been used for obtaining the current of each group terminal device successively using instant messaging agreement
Amount.
10. flow processing unit according to claim 7 or 8, which is characterized in that the statistics flow acquisition module packet
It includes:
Instruct sending submodule:For being instructed using flow collection to terminal device transmission;
Judging submodule:For judging whether to receive the terminal device in preset duration flow collection has been used according to described
The current of instruction feedback has used statistics flow;
Self-test submodule:For do not receive it is described it is current use statistics flow when, oneself is proceeded by the server
Inspection operation, and suspend acquisition instructions to the terminal device transmission data, so that terminal device stops having used flow described in response
Acquisition instructions, and after completing to the self-test operations of the server, flow has been used to described in terminal device transmission again
Acquisition instructions;
Receiving submodule:Flow collection instruction feedback has been used according to sending again for receiving the terminal device
It is current to have used statistics flow.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711305163.0A CN108199979A (en) | 2017-12-11 | 2017-12-11 | Flow processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711305163.0A CN108199979A (en) | 2017-12-11 | 2017-12-11 | Flow processing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108199979A true CN108199979A (en) | 2018-06-22 |
Family
ID=62573818
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711305163.0A Pending CN108199979A (en) | 2017-12-11 | 2017-12-11 | Flow processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108199979A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109347890A (en) * | 2018-12-25 | 2019-02-15 | 中国移动通信集团江苏有限公司 | Method, apparatus, equipment and the medium of pseudo-terminal detection |
CN114257464A (en) * | 2020-09-23 | 2022-03-29 | 中国移动通信有限公司研究院 | Charging method, charging device, communication equipment and readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101110777A (en) * | 2007-07-27 | 2008-01-23 | 中兴通讯股份有限公司 | Method and system for controlling velocity based on flux |
CN102130800A (en) * | 2011-04-01 | 2011-07-20 | 苏州赛特斯网络科技有限公司 | Device and method for detecting network access abnormality based on data stream behavior analysis |
CN104159209A (en) * | 2014-08-01 | 2014-11-19 | 北京奇虎科技有限公司 | Data traffic calibration method and device for mobile terminal |
CN106656660A (en) * | 2016-11-30 | 2017-05-10 | 努比亚技术有限公司 | Traffic monitoring device and method |
CN106888443A (en) * | 2017-03-27 | 2017-06-23 | 广东电网有限责任公司佛山供电局 | Communication resource status monitoring method and system |
CN107148009A (en) * | 2017-07-01 | 2017-09-08 | 浙江省计量科学研究院 | Multi-standard mobile communications network internet surfing data traffic measurement apparatus and its method |
-
2017
- 2017-12-11 CN CN201711305163.0A patent/CN108199979A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101110777A (en) * | 2007-07-27 | 2008-01-23 | 中兴通讯股份有限公司 | Method and system for controlling velocity based on flux |
CN102130800A (en) * | 2011-04-01 | 2011-07-20 | 苏州赛特斯网络科技有限公司 | Device and method for detecting network access abnormality based on data stream behavior analysis |
CN104159209A (en) * | 2014-08-01 | 2014-11-19 | 北京奇虎科技有限公司 | Data traffic calibration method and device for mobile terminal |
CN106656660A (en) * | 2016-11-30 | 2017-05-10 | 努比亚技术有限公司 | Traffic monitoring device and method |
CN106888443A (en) * | 2017-03-27 | 2017-06-23 | 广东电网有限责任公司佛山供电局 | Communication resource status monitoring method and system |
CN107148009A (en) * | 2017-07-01 | 2017-09-08 | 浙江省计量科学研究院 | Multi-standard mobile communications network internet surfing data traffic measurement apparatus and its method |
Non-Patent Citations (1)
Title |
---|
3GPP: "study on the security aspects of the next generation systems", 《3GPP TR33.899》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109347890A (en) * | 2018-12-25 | 2019-02-15 | 中国移动通信集团江苏有限公司 | Method, apparatus, equipment and the medium of pseudo-terminal detection |
CN114257464A (en) * | 2020-09-23 | 2022-03-29 | 中国移动通信有限公司研究院 | Charging method, charging device, communication equipment and readable storage medium |
CN114257464B (en) * | 2020-09-23 | 2022-12-27 | 中国移动通信有限公司研究院 | Charging method, charging device, communication equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103220173B (en) | A kind of alarm monitoring method and supervisory control system | |
CN108763038A (en) | Management method, device, computer equipment and the storage medium of alarm data | |
CN103906112A (en) | Method and system for communication network performance analyzing | |
CN102713861A (en) | Operation management device, operation management method, and program storage medium | |
CN106131083A (en) | A kind of attack message detection and take precautions against method and switch | |
US8689055B2 (en) | Detecting device impairment through statistical monitoring | |
CN107545424B (en) | Data monitoring processing method, device and system | |
CN109995555B (en) | Monitoring method, device, equipment and medium | |
CN111935172A (en) | Network abnormal behavior detection method based on network topology, computer device and computer readable storage medium | |
CN108491720A (en) | A kind of application and identification method, system and relevant device | |
WO2016193060A1 (en) | Method, apparatus and system for device replacement detection and device recommendation | |
CN104836696B (en) | A kind of detection method and device of IP address | |
CN110149653A (en) | A kind of cloud fault of mobile phone monitoring method and system | |
CN111857555A (en) | Method, apparatus and program product for avoiding failure events of disk arrays | |
CN112395156A (en) | Fault warning method and device, storage medium and electronic equipment | |
CN108199979A (en) | Flow processing method and device | |
CN108111367A (en) | Performance test methods and device | |
CN207219047U (en) | The managing device and system of instrument and equipment | |
CN111224807B (en) | Distributed log processing method, device, equipment and computer storage medium | |
CN103517292A (en) | Mobile terminal information reporting method and apparatus | |
CN106878965B (en) | A kind of method and apparatus for assessing mobile terminal performance | |
CN111741007B (en) | Financial business real-time monitoring system and method based on network layer message analysis | |
CN111130944B (en) | System monitoring method and system | |
CN109614289A (en) | A kind of memory node monitoring method, system, equipment and computer storage medium | |
CN108307414A (en) | Wi-Fi connection abnormality eliminating method, device, terminal and the storage medium of application program |
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: 20180622 |