CN115102884B - Remote data flow statistics method and device for industrial personal computer application program - Google Patents

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

Info

Publication number
CN115102884B
CN115102884B CN202210720157.6A CN202210720157A CN115102884B CN 115102884 B CN115102884 B CN 115102884B CN 202210720157 A CN202210720157 A CN 202210720157A CN 115102884 B CN115102884 B CN 115102884B
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.)
Active
Application number
CN202210720157.6A
Other languages
Chinese (zh)
Other versions
CN115102884A (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

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 present disclosure discloses a remote data flow statistics method and device for an industrial personal computer application program, firstly, historical network connection information and historical data are obtained, and the data are stored 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, obtaining flow information, and storing the flow information; inquiring data in the i ptab l es statistical rule; judging whether each piece of network connection information in the network connection information queue exists in the system or not, and if not, removing the network connection information from the i ptab l es statistical rule and the network connection information queue; according to the remote data flow statistics method provided by the disclosure, the flow generated by the application program can be counted under the condition of occupying less system resources, and the flow can be accumulated even if the network connection of the application program is changed.

Description

Remote data flow statistics method and device for industrial personal computer application program
Technical Field
The disclosure relates to the field of industrial control, and in particular relates to a remote data flow statistics method and device for an industrial control computer application program.
Background
The method for connecting the industrial control equipment with the server generally adopts a data dialing mode which is the same as the data surfing mode of the mobile phone and is limited by the flow limit of operators. The flow generated by the application program running in the industrial personal computer is counted, so that a manager can conveniently know the flow service condition.
tcpdump is a network packet-grabbing tool in Linux system, which can sense the information of loss and retransmission of link layer data. And (3) grasping packets by inquiring ports, server addresses and server ports used by an application program network and using a tcpdump command, and adding lengths of all grasped data packets to realize the function of flow statistics.
the tcpdump grabs the packet to acquire information based on the data interception mode, and the mode is used for comparing and comparing the performance of the network and consuming the resources of the system, so that the tcpdump grabs the packet to be used for network debugging, but is not very suitable for statistics of network traffic.
In the prior art, more system resources are occupied when traffic is counted, and accumulation cannot be performed when network connection information of an application program is changed.
Disclosure of Invention
The present disclosure aims to solve, at least to some extent, one of the technical problems in the related art. Therefore, the remote data flow statistics method and device for the industrial personal computer application program can be used for counting the flow generated by the application program under the condition of occupying less system resources, and can accumulate the flow even if the network connection of the application program is changed.
To achieve the above object, the present disclosure provides a remote data traffic statistics method for an industrial personal computer application, including 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 into a network connection information queue in the industrial personal computer application program;
s2: respectively acquiring TCP (transmission control protocol) connection information and UDP (user datagram protocol) 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: the local communication connection is filtered 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 piece of TCP connection information and 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 last detected TCP connection information and UDP connection information to be the current time according to a judging 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, acquiring flow information of each piece of network connection information, and storing the flow information of the network connection information into 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 exists in a current system in the industrial personal computer application program, and removing the network connection information from the iptables statistics rule and the network connection information queue in the industrial personal computer application program if the network connection information exists in the current system in the industrial personal computer application program;
s8: delay waiting;
s9: steps S2-S8 are looped.
In a preferred embodiment, 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 UDP connection information exist in a network connection information queue in the industrial personal computer application program, updating the connection time of the last detected TCP connection information and UDP connection information 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 last detected TCP connection information and UDP connection information to be the current time;
in a preferred embodiment, in the step of determining whether the iptables statistics rule has been added, obtaining the 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 obtaining flow information of the network connection information;
if the TCP connection information and the UDP connection information are judged to not be completely added into the iptables statistical rule, the TCP connection information and the UDP connection information are added into the iptables rule, then the iptables rule is inquired, and then the flow information of the network connection information is acquired.
In a preferred embodiment, traversing each piece of network connection information in the network connection information queue in the industrial personal computer application program, and determining whether the iptables statistics rule has been added includes traversing and determining whether the application program process ID, the local port, the target IP, and the target port 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 time in S8 is 500 milliseconds.
The present disclosure provides a remote data traffic statistics device for an industrial personal computer application, comprising:
the system comprises a historical network connection information and historical data acquisition unit, a network connection information queue and a network connection information queue, 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 into the network connection information queue in the industrial personal computer application program;
the current system data acquisition unit is used for acquiring TCP connection information and corresponding application program names in the current system and acquiring UDP connection information and corresponding application program names in the current system;
the local communication connection filtering unit is used 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 judges whether the TCP connection information and the UDP connection information exist in a network connection information queue in the 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 last detected TCP connection information and the last detected UDP connection information to be the current time according to a judging result;
the iptables statistical rule adding unit traverses each piece of network connection information in a network connection information queue in the industrial personal computer application program, judges whether the iptables statistical rule is added, and adds the connection information into the iptables statistical rule if the iptables statistical rule is not added;
the data storage unit is used for inquiring network connection information sending data and 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 the network connection information queue in the industrial personal computer application program exists in the current system in the industrial personal computer application program, and removing the network connection information from the iptables statistics 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 addition unit, a data storage unit and a connection information removal unit.
The present disclosure also provides a computer device comprising a memory and a processor, the memory having stored therein computer readable instructions that, when executed by the processor, cause the processor to perform the remote data traffic statistics method for an industrial personal computer application as described in claim.
The beneficial effects of the present disclosure are: compared with the traditional method, the method can count the flow generated by the application program under the condition of occupying less 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 that are required in the embodiments or the description of the prior art will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present disclosure, and other drawings may be obtained from the structures shown in these drawings without inventive effort to those of ordinary skill in the art.
FIG. 1 is an overall flow control diagram of a remote data flow statistics method for an industrial personal computer application in accordance with an embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating an overall process of a remote data flow statistics method for an industrial personal computer application, according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a remote data traffic statistics device for an industrial personal computer application according to an embodiment of the present disclosure.
The achievement of the objects, functional features and advantages of the present disclosure will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
Embodiments of the present disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary for the purpose of explaining the present disclosure and are not to be construed as limiting the present disclosure, and all other embodiments obtained by one of ordinary skill in the art without making creative efforts based on the embodiments in the present disclosure are within the scope of protection of the present disclosure.
The iptables command is firewall software commonly used on Linux and is part of the netfilter item. When using iptables for data statistics, the statistics is the length of the link layer data, namely the additional data including IP packet information, data retransmission and the like, and by the mode, the accurate statistics of the flow can be realized. The flow statistics tool filters out local communication by inquiring information of all network connections in the system, and adds all connections established with the server into the statistics rules of iptables so as to realize statistics of application flow.
Example 1
1-2, the present disclosure provides a remote data traffic statistics method for an industrial personal computer application program, which includes 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 into 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 the 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 piece of TCP connection information and 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 last detected TCP connection information and UDP connection information to be the current time according to a judging result;
specifically, in the step of judging whether the network connection information queue already exists in the industrial personal computer application program,
if each piece of TCP connection information and UDP connection information exist in a network connection information queue in the industrial personal computer application program, updating the connection time of the last detected TCP connection information and UDP connection information to be the current time;
if not, the TCP connection information and the UDP connection information are all in the network connection information queue in the industrial personal computer application program, and 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 are added into the network connection information queue in the industrial personal computer application program, and then the connection time of the last detected TCP connection information and UDP connection information is updated 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, acquiring flow information of each piece of network connection information, and storing the flow information of the network connection information into a database.
Specifically, in practical application, the method comprises the following two aspects:
(1) Traversing each piece of network connection information in a network connection information queue in the industrial personal computer application program, and judging whether the step of adding the iptables statistical rule 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;
(2) Judging whether the iptables statistical rule is added, acquiring the flow information of each piece of network connection information, storing the flow information into a 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 obtaining flow information of the network connection information;
if the TCP connection information and the UDP connection information are judged to not be completely added into the iptables statistical rule, the TCP connection information and the UDP connection information are added into the iptables rule, then the iptables rule is inquired, and then the flow information of the network connection information is acquired.
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 exists in a current system in the industrial personal computer application program, and removing the network connection information from the iptables statistics rule and the network connection information queue in the industrial personal computer application program if the network connection information exists in the current system in the industrial personal computer application program;
s8: delay wait, wherein the delay wait time is 500 milliseconds;
s9: steps S2-S8 are looped.
Example 2
Referring to fig. 1-2, the disclosure further provides another embodiment, a remote data traffic statistics method for an industrial personal computer application program, which specifically includes the following steps:
(1) Opening a database file, acquiring historical network connection information and historical data, and storing the data into a network connection information queue;
(2) Acquiring TCP connection information and corresponding application program names in a current system by calling a system command;
(3) Acquiring UDP connection information and corresponding application program names in a current system by calling a system command;
(4) The local communication connection is filtered by judging whether the target IP address in the TCP and UDP connection information is the 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, and if so, updating the last detection time of the connection in the network connection information queue to be the current time;
(6) If the connection information is different, adding the network connection information into a network connection information queue, storing the connection information into a database, and recording the time of last 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, 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 counted data into a database;
(9) Judging whether each connection in the network connection information queue 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) Delay waiting 500 milliseconds;
the operations of the second to tenth steps are cycled.
Example 3
As shown in fig. 3, the present disclosure provides a remote data traffic statistics apparatus for an industrial personal computer application, comprising:
the historical network connection information and historical data acquisition unit 1 is used for 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 into a network connection information queue in the industrial personal computer application program;
a current system data obtaining unit 2, configured to obtain TCP connection information and a corresponding application program name in the current system, and obtain UDP connection information and a corresponding application program name in the current system;
the local communication connection filtering unit 3 filters local communication connection by judging whether the 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 current time exists in a network connection information queue in the industrial personal computer application program or not by traversing each piece of TCP connection information and UDP connection information, and updates the connection time of the last detected TCP connection information and UDP connection information to be the current time according to a judging 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, and if so, updating the last detection time of the connection in the network connection information queue to be the current time;
if the connection information is different, adding the network connection information into a network connection information queue, storing the connection information into a database, and recording the time of last detecting the connection as the current time;
the iptables statistical rule adding unit 5 traverses each piece of network connection information in the network connection information queue in the industrial personal computer application program, judges whether the iptables statistical rule is added, and adds the connection information into the iptables statistical rule if the iptables statistical rule is not added;
a data storage unit 6 for inquiring the network connection information transmission data and the network connection information reception data counted in the iptables counting rule and storing the network connection information transmission data and the network connection information reception data in the database;
a connection information removing unit 7, configured to determine whether each piece of network connection information in the network connection information queue in the industrial personal computer application program is still present in the current system in the industrial personal computer application program, and if not, remove the network connection information from the iptables statistics rule and the network connection information queue in the industrial personal computer application program;
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 addition unit, a data storage unit and a connection information removal unit.
Embodiment 4, a computer device includes a memory and a processor, the memory having stored therein computer readable instructions that, when executed by the processor, cause the processor to perform a remote data traffic statistics method or apparatus, such as for an industrial personal computer application, to perform traffic statistics.
The above embodiments 1-4 can count traffic generated by an application program with less system resources occupied, and accumulate traffic even if the network connection of the application program changes.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means 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, schematic representations of the above terms are not necessarily directed 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, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
It will be appreciated by those skilled in the art that the above-described embodiments are merely for clarity of illustration of the disclosure, and are not intended to limit the scope of the disclosure. Other variations or modifications will be apparent to persons skilled in the art from the foregoing disclosure, and such variations or modifications are intended to be within the scope of the present disclosure.

Claims (7)

1. A remote data traffic statistics method for an industrial personal computer application program, comprising the following steps of:
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 into a network connection information queue in the industrial personal computer application program;
s2: respectively acquiring TCP (transmission control protocol) connection information and UDP (user datagram protocol) 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: the local communication connection is filtered 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 piece of TCP connection information and 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 last detected TCP connection information and UDP connection information to be the current time according to a judging 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, acquiring flow information of each piece of network connection information, and storing the flow information of the network connection information into 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 exists in a current system in the industrial personal computer application program, and removing the network connection information from the iptables statistics rule and the network connection information queue in the industrial personal computer application program if the network connection information exists in the current system in the industrial personal computer application program;
s8: delay waiting;
s9: steps S2-S8 are looped.
2. The method of claim 1, wherein in the step of determining whether the network connection information queue already exists in the industrial personal computer application,
if each piece of TCP connection information and UDP connection information exist in a network connection information queue in the industrial personal computer application program, updating the connection time of the last detected TCP connection information and UDP connection information to be the current time;
if not, the TCP connection information and the UDP connection information are all in the network connection information queue in the industrial personal computer application program, and 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 are added into the network connection information queue in the industrial personal computer application program, and then the connection time of the last detected TCP connection information and UDP connection information is updated to be the current time.
3. The method for remote data traffic statistics for an industrial personal computer application according to claim 1, wherein in the step of judging whether the iptables statistics rule has been added, and acquiring traffic information of each piece of network connection information, and saving the traffic information to 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 obtaining flow information of the network connection information;
if the TCP connection information and the UDP connection information are judged to not be completely added into the iptables statistical rule, the TCP connection information and the UDP connection information are added into the iptables rule, then the iptables rule is inquired, and then the flow information of the network connection information is acquired.
4. The method of claim 1, wherein traversing each piece of network connection information in a network connection information queue in the industrial personal computer application comprises determining whether an iptables statistics rule has been added, including traversing and determining whether an application 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.
5. The method of claim 1, wherein the delay wait time in S8 is 500 milliseconds.
6. A remote data traffic statistics device for an industrial personal computer application, comprising:
the system comprises a historical network connection information and historical data acquisition unit, a network connection information queue and a network connection information queue, 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 into the network connection information queue in the industrial personal computer application program;
the current system data acquisition unit is used for acquiring TCP connection information and corresponding application program names in the current system and acquiring UDP connection information and corresponding application program names in the current system;
the local communication connection filtering unit is used 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 judges whether the TCP connection information and the UDP connection information exist in a network connection information queue in the 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 last detected TCP connection information and the last detected UDP connection information to be the current time according to a judging result;
the iptables statistical rule adding unit traverses each piece of network connection information in a network connection information queue in the industrial personal computer application program, judges whether the iptables statistical rule is added, and adds the connection information into the iptables statistical rule if the iptables statistical rule is not added;
the data storage unit is used for inquiring network connection information sending data and 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 the network connection information queue in the industrial personal computer application program exists in the current system in the industrial personal computer application program, and removing the network connection information from the iptables statistics 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 addition unit, a data storage unit and a connection information removal unit.
7. A computer device, characterized by: comprising a memory and a processor, the memory having stored therein computer readable instructions that, when executed by the processor, cause the processor to perform the remote data traffic statistics method for industrial control computer applications according to any 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 CN115102884A (en) 2022-09-23
CN115102884B true 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
CN115102884A (en) 2022-09-23

Similar Documents

Publication Publication Date Title
US10469364B2 (en) System and method for real-time load balancing of network packets
US7644157B2 (en) Statistical information collecting system and apparatus thereof
CN1279717C (en) Sort method of net element of group-oriented network
CN111314179B (en) Network quality detection method, device, equipment and storage medium
RU2517411C1 (en) Method of managing connections in firewall
US9001650B2 (en) TCP relay apparatus
CN116708148B (en) Network diagnosis method and electronic equipment
CN108512816B (en) Traffic hijacking detection method and device
US6954785B1 (en) System for identifying servers on network by determining devices that have the highest total volume data transfer and communication with at least a threshold number of client devices
KR100501080B1 (en) A method and system for distinguishing higher layer protocols of the internet traffic
CN115102884B (en) Remote data flow statistics method and device for industrial personal computer application program
CN107222403A (en) A kind of data transmission method, system and electronic equipment
CN111818134B (en) Mist calculation-based data transmission method and device in substation data center
JPH05260053A (en) Method for estimating traffic service station
JP2009049592A (en) Ip flow measuring circuit and ip flow measuring method
CN114726763A (en) Method and system for detecting service identification capability of DPI system
CN1321511C (en) Method of proxy service detection for user terminal
CN109802959A (en) Internet protocol selection method and system under double stack environment
CN116708149B (en) Network diagnosis method and electronic equipment
CN116708150B (en) Network diagnosis method and electronic equipment
CN108234155B (en) Data packet acquisition method and device and server
CN117714313A (en) Data acquisition method, device, equipment and storage medium
CN107302470B (en) Method and device for processing xDR data represented by external data
Zhang et al. A new approach based on mobile agents to network fault detection
CN113923169A (en) Message filtering method and device, storage medium and electronic device

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