CN115102884A - Remote data flow statistical method and device for industrial personal computer application program - Google Patents

Remote data flow statistical method and device for industrial personal computer application program Download PDF

Info

Publication number
CN115102884A
CN115102884A CN202210720157.6A CN202210720157A CN115102884A CN 115102884 A CN115102884 A CN 115102884A CN 202210720157 A CN202210720157 A CN 202210720157A CN 115102884 A CN115102884 A CN 115102884A
Authority
CN
China
Prior art keywords
connection information
network connection
application program
personal computer
industrial personal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210720157.6A
Other languages
Chinese (zh)
Other versions
CN115102884B (en
Inventor
李瑞杰
高伟峰
李新军
李振
刘德波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Lianzhongxin Cloud Technology Co ltd
Original Assignee
Qingdao Lianzhongxin Cloud Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Lianzhongxin Cloud Technology Co ltd filed Critical Qingdao Lianzhongxin Cloud Technology Co ltd
Priority to CN202210720157.6A priority Critical patent/CN115102884B/en
Publication of CN115102884A publication Critical patent/CN115102884A/en
Application granted granted Critical
Publication of CN115102884B publication Critical patent/CN115102884B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a remote data flow statistical method and a device for an industrial personal computer application program, which comprises the steps of firstly obtaining historical network connection information and historical data, and storing the data in a network connection information queue; simultaneously acquiring TCP and UDP information and filtering local communication connection; traversing each TCP and UDP connection, and updating the last detected connection time to the current time; traversing each piece of network connection information in the network connection information queue, acquiring flow information, and storing the flow information; inquiring data in an iptab les statistical rule; judging whether each piece of network connection information in the network connection information queue still exists in the system, if not, removing the network connection information from the ipptab les statistical rule and the network connection information queue; according to the remote data traffic statistical method provided by the disclosure, the traffic generated by the application program can be counted under the condition of less occupied system resources, and the traffic can be accumulated even if the network connection of the application program is changed.

Description

Remote data flow statistical method and device for industrial personal computer application program
Technical Field
The disclosure relates to the field of industrial control, in particular to a remote data flow statistical method and device for an industrial personal computer application program.
Background
The method for connecting the industrial control equipment with the server generally adopts a data dialing mode, is the same as a data networking mode used by a mobile phone, and is limited by the traffic limit of an operator. The flow generated by the application program running in the industrial personal computer is counted, and managers can conveniently know the flow use condition.
tcpdump is a network packet capturing tool under the Linux system, which can sense the loss and retransmission of link layer data and other information. And the port, the server address and the server port used by the application program network are inquired, a tcpdump command is used for packet capture, and the lengths of all captured data packets are added to realize the function of flow statistics.
the tcpdump packet capture acquires information based on a data interception mode, and the mode influences the network performance relatively, consumes system resources relatively, can be used for network debugging, but is not very suitable for network flow statistics.
In the prior art, the system resources are occupied more when the flow is counted, and the accumulation can not be carried out when the network connection information of the application program is changed.
Disclosure of Invention
The present disclosure is directed to solving, at least to some extent, one of the technical problems in the related art. Therefore, the method and the device for counting the remote data traffic of the application program of the industrial personal computer are provided, the traffic generated by the application program can be counted under the condition of less occupied system resources, and the traffic can be accumulated even if the network connection of the application program is changed.
In order to achieve the above object, the present disclosure provides a remote data flow statistical method for an application program of an industrial personal computer, comprising the following operation steps:
s1: acquiring historical network connection information and historical data in an industrial personal computer application program through an industrial personal computer application program database, and storing the historical network connection information and the historical data in a network connection information queue in the industrial personal computer application program;
s2: respectively acquiring TCP connection information and UDP connection information in a current system in an industrial personal computer application program, and respectively acquiring application program names corresponding to the TCP connection information and the UDP connection information;
s3: filtering local communication connection by judging whether a target IP address in TCP connection information and UDP connection information is a local IP address;
s4: traversing each TCP connection information and each UDP connection information, judging whether a network connection information queue exists in an industrial personal computer application program or not, and updating the connection time of the TCP connection information and the UDP connection information which are detected finally to be the current time according to the judgment result;
s5: traversing each piece of network connection information in a network connection information queue in an industrial personal computer application program, judging whether an iptables statistical rule is added or not, acquiring flow information of each piece of network connection information, and storing the flow information of the network connection information to a database;
s6: inquiring network connection information sending data and network connection information receiving data counted in the iptables counting rule, and simultaneously storing the network connection information sending data and the network connection information receiving data into a database;
s7: judging whether each piece of network connection information in a network connection information queue in an industrial personal computer application program still exists in a current system in the industrial personal computer application program, and if not, removing the network connection information from iptables statistical rules and the network connection information queue in the industrial personal computer application program;
s8: delaying for waiting;
s9: the steps of S2-S8 are looped.
In a preferred embodiment, in the step of determining whether a network connection information queue already exists within the industrial personal computer application,
if each piece of TCP connection information and each piece of UDP connection information are stored in a network connection information queue in an industrial personal computer application program, updating the connection time of the TCP connection information and the UDP connection information which are detected finally to be the current time;
if not, adding the TCP connection information and the UDP connection information which are not in the network connection information queue in the industrial personal computer application program into the network connection information queue in the industrial personal computer application program, and then updating the connection time of the TCP connection information and the UDP connection information which are detected finally to be the current time;
in a preferred embodiment, in the step of judging whether the iptables statistical rule is added or not, and obtaining the flow information of each piece of network connection information, and storing the flow information into the database,
if each piece of TCP connection information and each piece of UDP connection information are judged to have been added into the iptables statistical rule, inquiring the iptables rule and then acquiring the flow information of the network connection information;
if the TCP connection information and the UDP connection information are not completely added into the iptables statistical rule, the TCP connection information and the UDP connection information are firstly added into the iptables rule, then the iptables rule is inquired, and then the flow information of the network connection information is obtained.
In a preferred embodiment, the step of traversing each piece of network connection information in a network connection information queue in the industrial personal computer application program and judging whether the iptables statistical rule is added comprises traversing and judging whether the process ID, the local port, the target IP and the target port of the application program are the same as the data in the network connection information queue in the industrial personal computer application program.
In a preferred embodiment, the delay wait in S8 is 500 milliseconds.
The utility model provides a remote data flow statistics device for industrial computer application program, includes:
the system comprises a historical network connection information and historical data acquisition unit, a network connection information queue management unit and a historical data queue management unit, wherein the historical network connection information and historical data acquisition unit is used for acquiring historical network connection information and historical data in an industrial personal computer application program through an industrial personal computer application program database and storing the historical network connection information and the historical data in the industrial personal computer application program;
the current system data acquisition unit is used for acquiring TCP connection information and a corresponding application program name in a current system and acquiring UDP connection information and a corresponding application program name in the current system;
a local communication connection filtering unit for filtering local communication connection by judging whether the target IP address in the TCP connection information and the UDP connection information is the local IP address;
the current time judging unit judges whether the current time exists in a network connection information queue in an industrial personal computer application program or not by traversing each TCP connection information and UDP connection information, and updates the connection time of the TCP connection information and the UDP connection information which are detected finally to be the current time according to the judgment result;
the system comprises an iptables statistical rule adding unit, an IPables statistical rule judging unit and an IPables statistical rule adding unit, wherein the IPables statistical rule adding unit is used for traversing each piece of network connection information in a network connection information queue in an industrial personal computer application program, judging whether the IPables statistical rule is added or not, and if the IPables statistical rule is not added, adding the connection information into the IPables statistical rule;
the data storage unit is used for inquiring the network connection information sending data and the network connection information receiving data counted in the iptables counting rule and storing the network connection information sending data and the network connection information receiving data into a database;
the connection information removing unit is used for judging whether each piece of network connection information in a network connection information queue in the industrial personal computer application program still exists in a current system in the industrial personal computer application program or not, and removing the network connection information from the iptables statistical rule and the network connection information queue in the industrial personal computer application program if the network connection information does not exist;
a waiting unit;
a circulation unit for circulating: the system comprises a current system data acquisition unit, a filtering local communication connection unit, a current time judgment unit, an iptables statistical rule adding unit, a data saving unit and a connection information removing unit.
The present disclosure also provides a computer device comprising a memory and a processor, the memory having stored therein computer-readable instructions which, when executed by the processor, cause the processor to perform the remote data traffic statistics method for an industrial personal computer application as claimed.
The beneficial effects of this disclosure are: compared with the traditional method, the method can count the flow generated by the application program under the condition of less occupied system resources, and can accumulate the flow even if the network connection of the application program is changed.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is an overall flow control diagram of a method for remote data flow statistics for industrial personal computer applications in accordance with an embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating overall flow steps of a method for remote data traffic statistics for industrial personal computer applications, according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a remote data traffic statistic device for an industrial personal computer application according to an embodiment of the present disclosure.
The objects, features, and advantages of the present disclosure will be further explained with reference to the accompanying drawings.
Detailed Description
Reference will now be made in detail to the embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary for the purpose of explaining the present disclosure and should not be construed as limiting the present disclosure, and all other embodiments that can be obtained by one of ordinary skill in the art based on the embodiments in the present disclosure without making creative efforts shall fall within the protection scope of the present disclosure.
The iptables command is firewall software commonly used on Linux and is part of netfilter project. When iptables is used for data statistics, the statistics is carried out on data of a link layer, namely the length of extra data including IP packet information, data retransmission and the like. The flow statistic tool filters local communication by inquiring information of all network connections in the system, adds all connections established with the server into the statistic rule of iptables, and realizes the statistic of the application program flow.
Example 1
Referring to fig. 1-2, the purpose of the present disclosure is to provide a method for remote data traffic statistics for an industrial personal computer application, including the following steps:
s1: and acquiring historical network connection information and historical data in the industrial personal computer application program through the industrial personal computer application program database, and storing the historical network connection information and the historical data in a network connection information queue in the industrial personal computer application program.
S2: and respectively acquiring TCP connection information and UDP connection information in a current system in an industrial personal computer application program, and respectively acquiring application program names corresponding to the TCP connection information and the UDP connection information.
S3: and filtering the local communication connection by judging whether the target IP address in the TCP connection information and the UDP connection information is the local IP address.
S4: traversing each TCP connection information and UDP connection information, judging whether a network connection information queue exists in an industrial personal computer application program, and updating the connection time of the TCP connection information and the UDP connection information which are detected finally to be the current time according to the judgment result;
specifically, in the step of judging whether the network connection information queue exists in the application program of the industrial personal computer,
if each piece of TCP connection information and UDP connection information exist in a network connection information queue in an industrial personal computer application program, updating the connection time of the TCP connection information and the UDP connection information which are detected finally as the current time;
if not, adding the TCP connection information and the UDP connection information which are not in the network connection information queue in the industrial personal computer application program into the network connection information queue in the industrial personal computer application program, and then updating the connection time of the TCP connection information and the UDP connection information which are detected finally to be the current time.
S5: traversing each piece of network connection information in a network connection information queue in an industrial personal computer application program, judging whether an iptables statistical rule is added or not, acquiring flow information of each piece of network connection information, and storing the flow information of the network connection information to a database.
Specifically, in practical application, the method includes the following two aspects:
(1) traversing each piece of network connection information in a network connection information queue in an industrial personal computer application program, and judging whether an iptables statistical rule is added or not, wherein the step of traversing and judging whether the process ID, the local port, the target IP and the target port of the application program are the same as the data in the network connection information queue in the industrial personal computer application program or not is included;
(2) in the step of judging whether the iptables statistical rule is added or not, acquiring the flow information of each piece of network connection information and storing the flow information into the database,
if each piece of TCP connection information and each piece of UDP connection information are judged to be added into the iptables statistical rule, inquiring the iptables rule and then acquiring the flow information of the network connection information;
if the TCP connection information and the UDP connection information are not completely added into the iptables statistical rule, the TCP connection information and the UDP connection information are firstly added into the iptables rule, then the iptables rule is inquired, and then the flow information of the network connection information is obtained.
S6: and inquiring the network connection information sending data and the network connection information receiving data counted in the iptables counting rule, and simultaneously storing the network connection information sending data and the network connection information receiving data into a database.
S7: judging whether each piece of network connection information in a network connection information queue in the industrial personal computer application program still exists in a current system in the industrial personal computer application program, and if not, removing the network connection information from iptables statistical rules and the network connection information queue in the industrial personal computer application program;
s8: delay waiting, wherein the delay waiting time is 500 milliseconds;
s9: the steps of S2-S8 are looped.
Example 2
Referring to fig. 1-2, the present disclosure further provides another embodiment, a method for remote data traffic statistics of an application program of an industrial personal computer, including the following steps:
(1) opening a database file, acquiring historical network connection information and historical data, and storing the data in a network connection information queue;
(2) acquiring TCP connection information and a corresponding application program name in a current system by calling a system command;
(3) acquiring UDP (user Datagram protocol) connection information and a corresponding application program name in the current system by calling a system command;
(4) filtering local communication connection by judging whether a target IP address in TCP and UDP connection information is a local IP;
(5) judging whether the application name, the application program process ID, the local port, the target IP and the target port in the TCP and UDP connection information are the same as the data in the network connection information queue or not, and if the connection last detection time in the network connection information queue is the same, updating the current time;
(6) if not, adding the network connection information into a network connection information queue, storing the connection information into a database, and recording the time of finally detecting the connection as the current time;
(7) traversing each piece of network connection information in the network connection information queue, judging whether an iptables statistical rule is added or not, and adding the connection information if the iptables statistical rule is not added;
(8) inquiring the sending data and the receiving data counted in the iptables counting rule, and storing the counting data into a database;
(9) judging whether each connection in the network connection information queue still exists in the system or not, and if not, removing the connection information from the iptables statistical rule and the network connection information queue;
(10) delaying for 500 milliseconds;
and circulating the operations from the second step to the tenth step.
Example 3
As shown in fig. 3, the present disclosure provides a remote data flow statistics apparatus for an industrial personal computer application, comprising:
the system comprises a historical network connection information and historical data acquisition unit 1, a network connection information queue and a historical data queue, wherein the historical network connection information and historical data acquisition unit 1 is used for acquiring historical network connection information and historical data in an industrial personal computer application program through an industrial personal computer application program database and storing the historical network connection information and the historical data in the industrial personal computer application program;
a current system data obtaining unit 2, configured to obtain TCP connection information and a corresponding application name in a current system, and obtain UDP connection information and a corresponding application name in the current system;
a filtering local communication connection unit 3 for filtering local communication connection by judging whether a target IP address in the TCP connection information and the UDP connection information is a local IP address;
the current time judging unit 4 judges whether the TCP connection information and the UDP connection information exist in a network connection information queue in an industrial personal computer application program or not by traversing each piece of TCP connection information and each piece of UDP connection information, and updates the connection time of the TCP connection information and the UDP connection information which are detected finally to be the current time according to a judgment result;
judging whether the application name, the application program process ID, the local port, the target IP and the target port in the TCP and UDP connection information are the same as the data in the network connection information queue or not, and if the connection last detection time in the network connection information queue is the same, updating the current time;
if not, adding the network connection information into a network connection information queue, storing the connection information into a database, and recording the time of finally detecting the connection as the current time;
the iptables statistical rule adding unit 5 traverses each piece of network connection information in a network connection information queue in an industrial personal computer application program, judges whether the iptables statistical rule is added or not, and adds the connection information into the iptables statistical rule if the iptables statistical rule is not added;
the data storage unit 6 is used for inquiring the network connection information sending data and the network connection information receiving data counted in the iptables counting rule and storing the network connection information sending data and the network connection information receiving data into a database;
the connection information removing unit 7 is used for judging whether each piece of network connection information in a network connection information queue in the industrial personal computer application program still exists in a current system in the industrial personal computer application program, and removing the network connection information from iptables statistical rules and the network connection information queue in the industrial personal computer application program if the network connection information does not exist;
a waiting unit 8;
a circulation unit 9 for circulating: the system comprises a current system data acquisition unit, a filtering local communication connection unit, a current time judgment unit, an iptables statistical rule adding unit, a data saving unit and a connection information removing unit.
Embodiment 4, a computer device comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to perform a method or apparatus for remote data traffic statistics, such as for an industrial personal computer application.
The above embodiments 1 to 4 can count the traffic generated by the application program under the condition of less occupied system resources, and can accumulate the traffic even if the network connection of the application program is changed.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
It will be understood by those skilled in the art that the foregoing embodiments are provided merely for clarity of explanation and are not intended to limit the scope of the disclosure. Other variations or modifications may be made to those skilled in the art, based on the above disclosure, and still be within the scope of the present disclosure.

Claims (7)

1. A remote data flow statistical method for an industrial personal computer application program is characterized by comprising the following operation steps:
s1: acquiring historical network connection information and historical data in an industrial personal computer application program through an industrial personal computer application program database, and storing the historical network connection information and the historical data in a network connection information queue in the industrial personal computer application program;
s2: respectively acquiring TCP connection information and UDP connection information in a current system in an industrial personal computer application program, and respectively acquiring application program names corresponding to the TCP connection information and the UDP connection information;
s3: filtering the local communication connection by judging whether the target IP address in the TCP connection information and the UDP connection information is the local IP address;
s4: traversing each TCP connection information and each UDP connection information, judging whether a network connection information queue exists in an industrial personal computer application program or not, and updating the connection time of the TCP connection information and the UDP connection information which are detected finally to be the current time according to the judgment result;
s5: traversing each piece of network connection information in a network connection information queue in an industrial personal computer application program, judging whether an iptables statistical rule is added or not, acquiring flow information of each piece of network connection information, and storing the flow information of the network connection information to a database;
s6: inquiring network connection information sending data and network connection information receiving data counted in the iptables counting rule, and simultaneously storing the network connection information sending data and the network connection information receiving data into a database;
s7: judging whether each piece of network connection information in a network connection information queue in the industrial personal computer application program still exists in a current system in the industrial personal computer application program, and if not, removing the network connection information from iptables statistical rules and the network connection information queue in the industrial personal computer application program;
s8: delaying for waiting;
s9: the steps of S2-S8 are looped.
2. The remote data traffic statistical method for industrial personal computer application according to claim 1, wherein in the step of determining whether a network connection information queue already exists in the industrial personal computer application,
if each piece of TCP connection information and each piece of UDP connection information are stored in a network connection information queue in an industrial personal computer application program, updating the connection time of the TCP connection information and the UDP connection information which are detected finally to be the current time;
if not, adding the TCP connection information and the UDP connection information which are not in the network connection information queue in the industrial personal computer application program into the network connection information queue in the industrial personal computer application program, and then updating the connection time of the TCP connection information and the UDP connection information which are detected finally to be the current time.
3. The remote data traffic statistical method for the industrial personal computer application program according to claim 1, wherein in the step of judging whether iptables statistical rules are added or not, acquiring traffic information of each piece of network connection information, and storing the traffic information in the database,
if each piece of TCP connection information and each piece of UDP connection information are judged to be added into the iptables statistical rule, inquiring the iptables rule and then acquiring the flow information of the network connection information;
if the TCP connection information and the UDP connection information are judged not to be completely added into the iptables statistical rule, the TCP connection information and the UDP connection information are firstly added into the iptables rule, then the iptables rule is inquired, and then the flow information of the network connection information is obtained.
4. The remote data traffic statistical method for the industrial personal computer application program according to claim 1, wherein traversing each piece of network connection information in a network connection information queue in the industrial personal computer application program, and judging whether an iptables statistical rule is added comprises traversing and judging whether an application program process ID, a local port, a target IP and a target port are the same as data in the network connection information queue in the industrial personal computer application program.
5. The remote data traffic statistical method for the industrial personal computer application program according to claim 1, wherein the time of the delay wait in S8 is 500 milliseconds.
6. The utility model provides a remote data flow statistics device for industrial computer application which characterized in that includes:
the system comprises a historical network connection information and historical data acquisition unit, a network connection information queue management unit and a historical data queue management unit, wherein the historical network connection information and historical data acquisition unit is used for acquiring historical network connection information and historical data in an industrial personal computer application program through an industrial personal computer application program database and storing the historical network connection information and the historical data in the industrial personal computer application program in a network connection information queue;
the current system data acquisition unit is used for acquiring TCP connection information and a corresponding application program name in a current system and acquiring UDP connection information and a corresponding application program name in the current system;
a local communication connection filtering unit for filtering local communication connection by judging whether the target IP address in the TCP connection information and the UDP connection information is the local IP address;
the current time judging unit judges whether the TCP connection information and the UDP connection information exist in a network connection information queue in an industrial personal computer application program or not by traversing each piece of TCP connection information and each piece of UDP connection information, and updates the connection time of the TCP connection information and the UDP connection information which are detected finally to be the current time according to a judging result;
the system comprises an iptables statistical rule adding unit, an IPables statistical rule judging unit and an IPables statistical rule adding unit, wherein the IPables statistical rule adding unit is used for traversing each piece of network connection information in a network connection information queue in an industrial personal computer application program, judging whether the IPables statistical rule is added or not, and if the IPables statistical rule is not added, adding the connection information into the IPables statistical rule;
the data storage unit is used for inquiring the network connection information sending data and the network connection information receiving data counted in the iptables counting rule and storing the network connection information sending data and the network connection information receiving data into a database;
the connection information removing unit is used for judging whether each piece of network connection information in a network connection information queue in the industrial personal computer application program still exists in a current system in the industrial personal computer application program or not, and removing the network connection information from the iptables statistical rule and the network connection information queue in the industrial personal computer application program if the network connection information does not exist;
a waiting unit;
a circulation unit for circulating: the system comprises a current system data acquisition unit, a filtering local communication connection unit, a current time judgment unit, an iptables statistical rule adding unit, a data saving unit and a connection information removing unit.
7. A computer device, characterized by: comprising a memory and a processor, the memory having stored therein computer-readable instructions which, when executed by the processor, cause the processor to perform the remote data flow statistics method for industrial personal computer applications according to any one of claims 1 to 5.
CN202210720157.6A 2022-06-23 2022-06-23 Remote data flow statistics method and device for industrial personal computer application program Active CN115102884B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210720157.6A CN115102884B (en) 2022-06-23 2022-06-23 Remote data flow statistics method and device for industrial personal computer application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210720157.6A CN115102884B (en) 2022-06-23 2022-06-23 Remote data flow statistics method and device for industrial personal computer application program

Publications (2)

Publication Number Publication Date
CN115102884A true CN115102884A (en) 2022-09-23
CN115102884B CN115102884B (en) 2023-07-21

Family

ID=83293731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210720157.6A Active CN115102884B (en) 2022-06-23 2022-06-23 Remote data flow statistics method and device for industrial personal computer application program

Country Status (1)

Country Link
CN (1) CN115102884B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006148686A (en) * 2004-11-22 2006-06-08 Oki Electric Ind Co Ltd Communication monitoring system
CN101702121A (en) * 2009-10-29 2010-05-05 珠海金山软件股份有限公司 Device for controlling network flow of program in Windows system
CN103036773A (en) * 2012-12-21 2013-04-10 清华大学 Network instant communication tool traffic identification system and identification method
CN112783777A (en) * 2021-01-27 2021-05-11 济南大学 Method and system for collecting real-time information and network traffic in android environment
CN113595806A (en) * 2021-09-02 2021-11-02 青岛联众芯云科技有限公司 Distribution network Internet of things communication architecture method based on OPCUA and MQTT protocols
WO2022116665A1 (en) * 2020-12-04 2022-06-09 中兴通讯股份有限公司 Method and system for adjusting tcp flow

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006148686A (en) * 2004-11-22 2006-06-08 Oki Electric Ind Co Ltd Communication monitoring system
CN101702121A (en) * 2009-10-29 2010-05-05 珠海金山软件股份有限公司 Device for controlling network flow of program in Windows system
CN103036773A (en) * 2012-12-21 2013-04-10 清华大学 Network instant communication tool traffic identification system and identification method
WO2022116665A1 (en) * 2020-12-04 2022-06-09 中兴通讯股份有限公司 Method and system for adjusting tcp flow
CN112783777A (en) * 2021-01-27 2021-05-11 济南大学 Method and system for collecting real-time information and network traffic in android environment
CN113595806A (en) * 2021-09-02 2021-11-02 青岛联众芯云科技有限公司 Distribution network Internet of things communication architecture method based on OPCUA and MQTT protocols

Also Published As

Publication number Publication date
CN115102884B (en) 2023-07-21

Similar Documents

Publication Publication Date Title
US10469364B2 (en) System and method for real-time load balancing of network packets
CN1279717C (en) Sort method of net element of group-oriented network
RU2517411C1 (en) Method of managing connections in firewall
EP2806602A1 (en) Feature extraction device, network traffic identification method, device and system.
CN111314179B (en) Network quality detection method, device, equipment and storage medium
US9001650B2 (en) TCP relay apparatus
US10958579B2 (en) Congestion avoidance in a slice-based network
CN114097206A (en) Congestion avoidance in slice-based networks
CN115037700B (en) Complex network data packet transmission method, system, terminal and storage medium
CN108512816B (en) Traffic hijacking detection method and device
JP2008048131A (en) P2p traffic monitoring and control system, and method therefor
KR20020049462A (en) A method and system for distinguishing higher layer protocols of the internet traffic
CN115102884A (en) Remote data flow statistical method and device for industrial personal computer application program
CN111818134B (en) Mist calculation-based data transmission method and device in substation data center
US11146468B1 (en) Intelligent export of network information
JPH05260053A (en) Method for estimating traffic service station
CN111884871B (en) Method and equipment for detecting discarded message of switch
CN114726763A (en) Method and system for detecting service identification capability of DPI system
CN103428295A (en) Method and system for monitoring P2P network application
CN109347756A (en) Improve the active queue management method and apparatus of fairness
CN1321511C (en) Method of proxy service detection for user terminal
CN113676378B (en) Network bandwidth speed measuring method for simplifying Linux TCP protocol stack
CN107302470B (en) Method and device for processing xDR data represented by external data
CN116094950A (en) Flow acquisition bandwidth control method and device and flow analysis server
CN114826939A (en) Network traffic analysis method of K8S cluster

Legal Events

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