CN104657152A - Data transmission management method and electronic equipment - Google Patents
Data transmission management method and electronic equipment Download PDFInfo
- Publication number
- CN104657152A CN104657152A CN201510114135.5A CN201510114135A CN104657152A CN 104657152 A CN104657152 A CN 104657152A CN 201510114135 A CN201510114135 A CN 201510114135A CN 104657152 A CN104657152 A CN 104657152A
- Authority
- CN
- China
- Prior art keywords
- data
- identifying information
- application process
- electronic equipment
- instruction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Telephonic Communication Services (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a data transmission management method and electronic equipment. The data transmission management method can be applied to the electronic equipment and comprises the following steps: detecting the execution of a first instruction; when the execution of the first instruction is detected, acquiring identification information of an application process which executes the first instruction and identification information of a data transmission process which is started by the application process; acquiring network connection information of an operating system of the electronic equipment, and judging whether the application process is being connected with the network; and when the application process is being connected with the network, performing data transmission management on an application program corresponding to the application process. By adopting the data transmission management method and the electronic equipment provided by the invention, the application program which executes the first instruction namely the instruction of performing data transmission by virtue of system flow and other instructions can be timely discovered, so that data transmission can be effectively monitored and managed, and the data traffic loss which is not expected by users can be prevented.
Description
Technical field
The present invention relates to a kind of data transfer management method and electronic equipment, particularly relate to and can perform the application program of such as being carried out the first instruction of data transmission by flow system flow by Timeliness coverage, thus logarithm is reportedly input into row supervision effectively, prevents data transfer management method and the electronic equipment of the loss of the less desirable data traffic of user.
Background technology
Along with the development of the network information technology, the various functions of electronic equipment all start to depart from network.Nowadays, network koinotropic type application software is more and more universal, even starts to replace traditional phone, SMS.Each operator also makes the transition thereupon, becomes topmost expense in communication facilities for network traffics user.But, also occur that some malice steal the application program of flow recently, if the flow service condition of each application program cannot be checked, then may bring windfall loss to user.
In the electronic device, the standard A PI (Application ProgrammingInterface, application programming interface) that system can provide usually is so that application program carries out data transmission.Major applications program can use this API directly or indirectly, and therefore system can by the flow of each application program of this monitoring use.Here data transmission is typically downloading data and uploading data.Such as in Android (Android) system, application program uses Download Manager to carry out data transmission usually.System can count the flow service condition of each application program so that user's inquiry.
But, except the method carrying out downloading except using standard A PI, also there are some and not using API to carry out the method for data transmission.Such as, in Android system, application program can use app_process to start the mode performing data transmission order of data-transfer process or " su-c " instruction.For the download that app_process starts, under data traffic is recorded in the process calling app_process by system, what therefore which application program user can find employs this data traffic.But, if when application program starts data-transfer process by performing " su-c " instruction, data traffic can directly be recorded in Android system by system, and therefore user is difficult to discovery is which application program employs this data traffic.Like this, leave the chance of stealing data traffic can to the application program of malice.
Summary of the invention
The present invention completes in view of above problem, its object is to, a kind of data transfer management method and electronic equipment are provided, the application program of such as being carried out the first instruction of data transmission by flow system flow can be performed by Timeliness coverage, thus logarithm is reportedly input into row supervision effectively, prevents the loss of the less desirable data traffic of user.
Embodiments of the invention provide a kind of data transfer management method, are applied to electronic equipment, comprising: the execution detecting the first instruction; When the execution of described first instruction being detected, obtain the identifying information of the identifying information of the application process performing described first instruction and the data-transfer process of described application process startup; Obtain the network connection information of the operating system of described electronic equipment, judge that whether described application process is just at interconnection network; And when described application process is just at interconnection network, the application program corresponding to described application process carries out data transfer management.
Embodiments of the invention also provide a kind of electronic equipment, comprising: detection module, configuration detects the execution of the first instruction; Identifying information acquisition module, configuration comes when the execution of described first instruction being detected, obtains the identifying information of the identifying information of the application process performing described first instruction and the data-transfer process of described application process startup; Judge module, configuration obtains the network connection information of the operating system of described electronic equipment, judges that whether described application process is just at interconnection network; Data transmission management module, configuration works as described application process just when interconnection network, and the application program corresponding to described application process carries out data transfer management.
According to data transfer management method of the present invention and electronic equipment, the application program of such as being carried out the first instruction of data transmission by flow system flow can be performed by Timeliness coverage, thus logarithm is reportedly input into row supervision effectively, prevents the loss of the less desirable data traffic of user.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of data transfer management method according to an embodiment of the invention.
Fig. 2 is the schematic diagram performing the first command data for illustration of application process.
Fig. 3 is the schematic diagram of process context table according to a preferred embodiment of the invention.
Fig. 4 is the functional block diagram of electronic equipment according to an embodiment of the invention.
Embodiment
For enabling those skilled in the art to understand technical scheme of the present invention better, describe the embodiment of data transfer management method of the present invention and electronic equipment in detail below in conjunction with accompanying drawing.Certainly, the present invention is not limited thereto, those of ordinary skill in the art not making the every other embodiment obtained under creative work prerequisite, all belonging to the scope of protection of the invention.
[data transfer management method]
Below, the display packing of the image of multiple layer of the present invention is described by reference to the accompanying drawings in detail.Data transfer management method of the present invention is applied to electronic equipment, electronic equipment can be such as the equipment based on calculation function such as panel computer, notebook computer, desktop computer, PDA, also can be the equipment based on Presentation Function such as e-book, intelligent television, can also be the equipment based on call function such as smart phone, as long as data transmission and applicable data managing method of the present invention can be carried out.
Fig. 1 is the process flow diagram of data transfer management method according to an embodiment of the invention.As shown in Figure 1, the method comprises:
First, the execution (step S110) of the first instruction is detected.First instruction can be such as data traffic as operating system and carry out the instruction of data transmission.When application program is by execution first command data, the data traffic consumed by the unified data traffic incorporated into as the operating system on electronic equipment consumes, therefore user cannot check be which application program employ this data traffic.As an example, the first instruction can be " su-c " instruction in Android system.When the execution of the first instruction not detected (step S110, no), continue the execution of detection first instruction.
When the execution of the first instruction being detected (step S110, yes), obtain the identifying information (step S120) of the identifying information of the application process performing this first instruction and the data-transfer process of described application process startup.Fig. 2 is the schematic diagram of the process performing the first command data for illustration of application process.As shown in Figure 2, when some application processes are after execution first instruction, data-transfer process can be started.Data-transfer process operating system such as allows this data-transfer process interconnection network by distributing socket (socket) to this data-transfer process and transmits data.Therefore, when each application process performs the first instruction, the data-transfer process for this application process transmission data all can be started.Now, the identifying information of the identifying information of this application process and the data-transfer process of application process startup is obtained.
Next, obtain the network connection information of the operating system of described electronic equipment, judge that whether described application process is just at interconnection network (step S130).Specifically, can be obtained just at the identifying information of whole processes connected to the network by operating system, and judge the identifying information whether comprising the data-transfer process that this application process starts in these identifying informations.Obtaining just can have multiple in the method for whole processes connected to the network, such as, can be obtained in operating system the identifying information of all data-transfer process being assigned with socket by tcpdump order.(the step S130 when this application process does not have interconnection network, no), such as all be assigned with the identifying information that there is not the data-transfer process that this application process starts in the identifying information of the data-transfer process of socket time, illustrate that this application process can not cause data traffic to run off, therefore continue the execution of detection first instruction.
(the step S130 when being judged as this application process interconnection network, be), such as, when comprising the identifying information of the data-transfer process that this application process starts in the identifying information of all data-transfer process being assigned with socket, the application program corresponding to described application process carries out data transfer management.But some application processes also can perform the first instruction and interconnection network sometimes when normal operation, therefore carry out data transfer management can cause irrational result to all performing the first instruction and application process connected to the network.For this reason, the present invention also when being judged as this application process interconnection network, first obtain the volume of transmitted data of the data-transfer process that this application process starts, and when volume of transmitted data exceedes defined threshold, application programs can carry out data transfer management.Here, data transfer management can be any method run off of controlling the data flows, such as, present to user the information that application program corresponding to this application process of expression is transmitting data, or stop the data transmission etc. of application process.
By above method, the application program of such as being carried out the first instruction of data transmission by flow system flow can be performed by Timeliness coverage, thus logarithm is reportedly input into row supervision effectively, prevents the loss of the less desirable data traffic of user.
In the above-mentioned methods, preferably, process context table can also be set up in the electronic device, and when the execution of the first instruction being detected, in this process context table, store the identifying information of the data-transfer process that the identifying information of application process performing described first instruction and this application process start by performing this first instruction.Subsequently, can judge that whether application process in process correlation table is just at interconnection network, such as can judge whether to comprise in the identifying information of the whole processes being assigned with socket the identifying information of data-transfer process corresponding to application process in management of process table, thus data traffic management is carried out for the application process connected to the network by the first instruction.By said method, can judge that whether application process in process context table is at interconnection network in the lump, thus the efficiency of traffic policing can be improved.
Be explained above multiple embodiments of data transfer management method of the present invention.Obviously, those skilled in the art can make various combination, amendment or distortion to above-described embodiment without departing from the spirit and scope of the present invention.Those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
[electronic equipment]
Below, electronic equipment of the present invention is described in detail by reference to the accompanying drawings.Electronic equipment of the present invention can be such as the equipment based on calculation function such as panel computer, notebook computer, desktop computer, PDA, also can be the equipment based on Presentation Function such as e-book, intelligent television, can also be the equipment based on call function such as smart phone, transmit as long as data can be carried out.
Fig. 4 is the functional block diagram of electronic equipment according to an embodiment of the invention.As shown in Figure 4, electronic equipment 400 comprises: detection module 410, identifying information acquisition module 420, judge module 430 and data transmission management module 440.
Below, the process of the modules of electronic equipment 400 is described in detail.
Detection module 410 detects the execution of the first instruction.First instruction can be such as data traffic as the operating system of electronic equipment and carry out the instruction of data transmission.When application program is by execution first command data, the data traffic consumed by the unified data traffic incorporated into as the operating system on electronic equipment consumes, therefore user cannot check be which application program employ this data traffic.As an example, the first instruction can be " su-c " instruction in Android system.When detection module 410 does not detect the execution of the first instruction, continue the execution of detection first instruction.
Identifying information acquisition module 420, when detection module 410 detects the execution of the first instruction, obtains the identifying information of the identifying information of the application process performing this first instruction and the data-transfer process of described application process startup.Fig. 2 is the schematic diagram of the process performing the first command data for illustration of application process.As shown in Figure 2, when some application processes are after execution first instruction, data-transfer process can be started.Data-transfer process operating system such as allows this data-transfer process interconnection network by distributing socket (socket) to this data-transfer process and transmits data.Therefore, when each application process performs the first instruction, the data-transfer process for this application process transmission data all can be started.Now, the identifying information of the identifying information of this application process and the data-transfer process of application process startup is obtained.
Judge module 430 obtains the network connection information of the operating system of described electronic equipment, judges that whether described application process is just at interconnection network.Specifically, judge module 430 can be obtained just at the identifying information of whole processes connected to the network by operating system, and judges the identifying information whether comprising the data-transfer process that this application process starts in these identifying informations.Obtaining just can have multiple in the method for whole processes connected to the network, such as, can be obtained in operating system the identifying information of all data-transfer process being assigned with socket by tcpdump order.When this application process does not have interconnection network, such as all be assigned with the identifying information that there is not the data-transfer process that this application process starts in the identifying information of the data-transfer process of socket time, illustrate that this application process can not cause data traffic to run off, therefore continue the execution of detection first instruction.
Data transmission management module 440 is when judge module 430 is judged as this application process interconnection network, such as, when comprising the identifying information of the data-transfer process that this application process starts in the identifying information of all data-transfer process being assigned with socket, the application program corresponding to described application process carries out data transfer management.But some application processes also can perform the first instruction and interconnection network sometimes when normal operation, therefore carry out data transfer management can cause irrational result to all performing the first instruction and application process connected to the network.For this reason, the present invention also can when being judged as this application process interconnection network, data transmission management module 440 first obtains the volume of transmitted data of the data-transfer process that this application process starts, and when volume of transmitted data exceedes defined threshold, application programs carries out data transfer management.Here, data transfer management can be any method run off of controlling the data flows, such as, present to user the information that application program corresponding to this application process of expression is transmitting data, or stop the data transmission etc. of application process.
By above electronic equipment, the application program of such as being carried out the first instruction of data transmission by flow system flow can be performed by Timeliness coverage, thus logarithm is reportedly input into row supervision effectively, prevents the loss of the less desirable data traffic of user.
Preferably, process context table can also be set up in electronic equipment 400, and when detection module 410 detects the execution of the first instruction, identifying information acquisition module 420 stores the identifying information of the data-transfer process that the identifying information of application process that performs described first instruction and this application process start by performing this first instruction in this process context table.Subsequently, judge module 430 can judge that whether application process in process correlation table is just at interconnection network, such as can judge whether to comprise in the identifying information of the whole processes being assigned with socket the identifying information of data-transfer process corresponding to application process in management of process table, thus data transmission management module 440 carries out data traffic management for the application process connected to the network by the first instruction.Like this, can judge that whether application process in process context table is at interconnection network in the lump, thus the efficiency of traffic policing can be improved.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required hardware platform by software and realize, and can certainly all be implemented by hardware.Based on such understanding, what technical scheme of the present invention contributed to background technology can embody with the form of software product in whole or in part, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
Be explained above multiple embodiments of electronic equipment of the present invention.Obviously, those skilled in the art can make various combination, amendment or distortion to above-described embodiment without departing from the spirit and scope of the present invention.Those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Claims (10)
1. a data transfer management method, is applied to electronic equipment, comprising:
Detect the execution of the first instruction;
When the execution of described first instruction being detected, obtain the identifying information of the identifying information of the application process performing described first instruction and the data-transfer process of described application process startup;
Obtain the network connection information of the operating system of described electronic equipment, judge that whether described application process is just at interconnection network; And
When described application process is just at interconnection network, the application program corresponding to described application process carries out data transfer management.
2. data transfer management method as claimed in claim 1, wherein,
Described when described application process is just at interconnection network, the application program corresponding to described application process is carried out data transfer management and is comprised:
Obtain the volume of transmitted data of the data-transfer process that described application process starts;
When described volume of transmitted data exceedes defined threshold, data transfer management is carried out to described application program.
3. data transfer management method as described in claim 1 or 2, wherein,
Described application program is carried out data transfer management and is comprised:
Present to user and represent that described application program is being transmitted the message of data or stopping the data transmission of described application process.
4. data transfer management method as claimed in claim 1, wherein
The network connection information of the operating system of the described electronic equipment of described acquisition, judges whether application program corresponding to described application process just comprises at interconnection network:
Obtain the identifying information of whole processes connected to the network; And
Judge the identifying information whether comprising the data-transfer process that described application process starts in the identifying information of described whole processes connected to the network.
5. data transfer management method as claimed in claim 1, wherein,
Process context table is set up in described electronic equipment,
Also comprise after described acquisition performs the identifying information of the identifying information of the application process of described first instruction and the data-transfer process of described application process startup:
The identifying information of described application process and the identifying information of described data-transfer process is stored in described process context table,
Describedly judge whether described application process just comprises at interconnection network:
Obtain the identifying information being assigned with whole processes of socket; And
The identifying information of data-transfer process corresponding to the application process whether comprised in described management of process table is assigned with in the identifying information of whole processes of socket described in judgement.
6. an electronic equipment, comprising:
Detection module, configuration detects the execution of the first instruction;
Identifying information acquisition module, configuration comes when the execution of described first instruction being detected, obtains the identifying information of the identifying information of the application process performing described first instruction and the data-transfer process of described application process startup;
Judge module, configuration obtains the network connection information of the operating system of described electronic equipment, judges that whether described application process is just at interconnection network;
Data transmission management module, configuration works as described application process just when interconnection network, and the application program corresponding to described application process carries out data transfer management.
7. electronic equipment as claimed in claim 6, wherein,
Described judge module obtains the volume of transmitted data of the data-transfer process that described application process starts, and when described volume of transmitted data exceedes defined threshold, carries out data transfer management to described application program.
8. the electronic equipment as described in claim 6 or 7, wherein, also comprises:
Described data transmission management module by present to user represent described application program transmitting data message or stop described application process data transmission carry out described data transfer management.
9. electronic equipment as claimed in claim 6, wherein, also comprises;
Described judge module obtains the identifying information of whole processes connected to the network, and judges the identifying information whether comprising the data-transfer process that described application process starts in the identifying information of described whole processes connected to the network.
10. electronic equipment as claimed in claim 6, wherein,
In described electronic equipment, set up process context table, configuration stores the identifying information of described application process and the identifying information of described data-transfer process,
Described identifying information acquisition module is after the identifying information of the data-transfer process of the identifying information and the startup of described application process that obtain the application process performing described first instruction, the identifying information of described application process and the identifying information of described data-transfer process is stored in this process context table
Described judge module obtains the identifying information being assigned with whole processes of socket, and is assigned with in the identifying information of whole processes of socket the identifying information of data-transfer process corresponding to the application process whether comprised in described management of process table described in judging.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510114135.5A CN104657152B (en) | 2015-03-16 | 2015-03-16 | Data transfer management method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510114135.5A CN104657152B (en) | 2015-03-16 | 2015-03-16 | Data transfer management method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104657152A true CN104657152A (en) | 2015-05-27 |
CN104657152B CN104657152B (en) | 2019-03-29 |
Family
ID=53248338
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510114135.5A Active CN104657152B (en) | 2015-03-16 | 2015-03-16 | Data transfer management method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104657152B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108664366A (en) * | 2017-03-28 | 2018-10-16 | 百度在线网络技术(北京)有限公司 | Data transmission method, device and server |
CN111913395A (en) * | 2020-06-29 | 2020-11-10 | 普瑞达建设有限公司 | Intelligent building energy-saving control method and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102223307A (en) * | 2011-06-29 | 2011-10-19 | 中兴通讯股份有限公司 | Method for processing socket, method for grouped data transmission and device |
CN102612084A (en) * | 2012-02-24 | 2012-07-25 | 中兴通讯股份有限公司 | Method and device for controlling data traffic |
US20120209937A1 (en) * | 2010-12-14 | 2012-08-16 | International Business Machines Corporation | Method for operating a node cluster system in a network and node cluster system |
CN103701709A (en) * | 2013-12-13 | 2014-04-02 | 北京京东尚科信息技术有限公司 | Flow rate control method and system |
-
2015
- 2015-03-16 CN CN201510114135.5A patent/CN104657152B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120209937A1 (en) * | 2010-12-14 | 2012-08-16 | International Business Machines Corporation | Method for operating a node cluster system in a network and node cluster system |
CN102223307A (en) * | 2011-06-29 | 2011-10-19 | 中兴通讯股份有限公司 | Method for processing socket, method for grouped data transmission and device |
CN102612084A (en) * | 2012-02-24 | 2012-07-25 | 中兴通讯股份有限公司 | Method and device for controlling data traffic |
CN103701709A (en) * | 2013-12-13 | 2014-04-02 | 北京京东尚科信息技术有限公司 | Flow rate control method and system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108664366A (en) * | 2017-03-28 | 2018-10-16 | 百度在线网络技术(北京)有限公司 | Data transmission method, device and server |
CN108664366B (en) * | 2017-03-28 | 2021-08-24 | 百度在线网络技术(北京)有限公司 | Data transmission method and device and server |
CN111913395A (en) * | 2020-06-29 | 2020-11-10 | 普瑞达建设有限公司 | Intelligent building energy-saving control method and system |
Also Published As
Publication number | Publication date |
---|---|
CN104657152B (en) | 2019-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019168032A1 (en) | Device management system and device management method | |
CN104360878B (en) | A kind of method and device of application software deployment | |
WO2022127504A1 (en) | Network element management method and apparatus, and storage medium | |
CN109299064B (en) | Database monitoring method and terminal equipment | |
CN103809967A (en) | Application and data removal system | |
CN109618174B (en) | Live broadcast data transmission method, device, system and storage medium | |
WO2019051948A1 (en) | Method, apparatus, server, and storage medium for processing monitoring data | |
CN111654404B (en) | Intelligent network card management and control method and device | |
CN110708366A (en) | Plug-in process management method, related method and related device | |
CN103716356A (en) | Storage process operation method, device and system based on Web | |
CN111159269A (en) | Data processing method, device and system | |
CN106557404B (en) | Application control method and mobile terminal | |
WO2016043896A1 (en) | Contextual platform feature recommendations | |
CN104657152A (en) | Data transmission management method and electronic equipment | |
WO2020000657A1 (en) | Method and apparatus for establishing operation and maintenance monitoring connection, terminal device, and medium | |
CN110908881B (en) | Buried point data transmitting method and device, electronic equipment and computer readable storage medium | |
CN107612755A (en) | The management method and its device of a kind of cloud resource | |
CN111182536A (en) | SIM card state detection method, device, network equipment and storage medium | |
CN111464394A (en) | Node monitoring method and device and storage medium | |
CN114302351B (en) | Short message service processing method and device, computer equipment and storage medium | |
CN109936528B (en) | Monitoring method, device, equipment and system | |
CN105357078A (en) | Detection method and system of network state of intelligent equipment | |
CN112214437B (en) | Storage device, communication method and device and computer readable storage medium | |
CN112637821B (en) | Management platform and management method of vehicle communication chip and vehicle communication management system | |
CN104035858A (en) | Software monitoring method, communication terminal and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |