CN108696407A - Network connection on-line monitoring method based on TCP/IP and system - Google Patents

Network connection on-line monitoring method based on TCP/IP and system Download PDF

Info

Publication number
CN108696407A
CN108696407A CN201810556229.1A CN201810556229A CN108696407A CN 108696407 A CN108696407 A CN 108696407A CN 201810556229 A CN201810556229 A CN 201810556229A CN 108696407 A CN108696407 A CN 108696407A
Authority
CN
China
Prior art keywords
tcp
network connection
setting time
client
line monitoring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810556229.1A
Other languages
Chinese (zh)
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.)
Ningbo Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
Original Assignee
Ningbo Power Supply Co of State Grid Zhejiang Electric Power 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 Ningbo Power Supply Co of State Grid Zhejiang Electric Power Co Ltd filed Critical Ningbo Power Supply Co of State Grid Zhejiang Electric Power Co Ltd
Priority to CN201810556229.1A priority Critical patent/CN108696407A/en
Publication of CN108696407A publication Critical patent/CN108696407A/en
Pending legal-status Critical Current

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/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The present invention is intended to provide the network connection on-line monitoring method based on TCP/IP and system, can not be detected automatically with the bandwidth solved the problems, such as in prior art.In order to realize the purpose, the present invention is based on the network connection on-line monitoring methods of TCP/IP, including:Control client transmission data in setting time;Obtain the total amount of data that client is sent in setting time;Bandwidth is calculated in the total data sent in setting time based on setting time and client.The present invention discloses the network connection on-line monitoring system based on TCP/IP accordingly.Following advantageous effects can be obtained by implementing the present invention:Bandwidth is calculated by the transmission data in setting time, and based on the total data that setting time and client are sent in setting time;And then broadband can be calculated automatically, realize the automatic detection of bandwidth.

Description

Network connection on-line monitoring method based on TCP/IP and system
Technical field
The present invention relates to power domains, and in particular to a kind of network connection on-line monitoring method based on TCP/IP and is System.
Background technology
With " change of three types one " business hall transition and upgrade, more and more self-help terminal equipments come into operation, this is to business More stringent requirements are proposed for the stable operation of Room network environment.The mode of traditional detection network, mainly network deployment phase Physical detection, Ping detections etc., there is no being detected to indexs such as network bandwidths emphatically, with Novel self-aid equipment, especially It is being widely used for the mechanical, electrical sub- playbill machine of service handling, these indexs for considering network throughput performance become more important.This Outside, after related terminal device comes into operation, also lack the monitoring to device network state, to caused by network problem Equipment fault response is more passive, is easy to cause customer complaint.Therefore it needs to design a kind of network connection based on TCP/IP online Monitoring method and system, to realize the automatic detection of bandwidth.
Invention content
The present invention is intended to provide the network connection on-line monitoring method based on TCP/IP and system, to solve prior art side The problem of bandwidth in case can not detect automatically.
In order to realize the purpose, the present invention is based on the network connection on-line monitoring methods of TCP/IP, which is characterized in that packet It includes:
Control client transmission data in setting time;
Obtain the total amount of data that client is sent in setting time;
Bandwidth is calculated in the total data sent in setting time based on setting time and client.
Preferably, method further includes:
UDP messages are put into IP layers of data packet by control client one by one, and the UDP messages include unique mark;
The data packet is sent to server;
Server received data packet is controlled, and losing for UDP messages is determined according to the unique mark of UDP messages in data packet Mistake rate, and using the Loss Rate of UDP messages as the Loss Rate of IP layer data packets.
As another aspect of the present invention, the network connection on-line monitoring system based on TCP/IP includes client and service Device, the client include memory module and processor, and software code is stored in the memory, and the software code is located Following steps are executed after reason device operation:
Control client transmission data in setting time;
Obtain the total amount of data that client is sent in setting time;
Bandwidth is calculated in the total data sent in setting time based on setting time and client.
Preferably, the software code also executes the following steps after being run by processor:
UDP messages are put into IP layers of data packet by control client one by one, and the UDP messages include unique mark;
The data packet is sent to server;
Server received data packet is controlled, and losing for UDP messages is determined according to the unique mark of UDP messages in data packet Mistake rate, and using the Loss Rate of UDP messages as the Loss Rate of IP layer data packets.
Preferably, the processor is connected with prior-warning device, and the software code also executes as follows after being run by processor Step:Judge whether bandwidth is less than the first preset value, if being less than the first preset value, output signal controls prior-warning device early warning.
Preferably, the software code also executes the following steps after being run by processor:Judge whether bandwidth is less than second Preset value, if being less than the second preset value, output signal controls prior-warning device early warning.
Preferably, the prior-warning device includes early warning main body, and cuboid cavity and and chamber are equipped in the early warning main body The observation panel of body connection, cavity is interior to be set equipped with early-warning lamp with the rectangle baffle for being used to open/closing observation panel, the early-warning lamp It sets in position corresponding with observation panel, the baffle is slidably arranged in the cavity up and down, when barrier slides are to cavity top, Baffle opens observation panel, and when barrier slides are to cavity lower part, flapper closure observation panel, the early warning main body is interior to be located at cavity upper end Place is equipped with electromagnet, and the baffle upper surface is equipped with irony portion, the electromagnet for after being powered by magnetic force by barrier slides To cavity top;The prior-warning device further includes relay, battery, the electromagnet, early-warning lamp, battery and relay it is normally opened Switch is sequentially connected in series;The input terminal of the relay is for receiving pre-warning signal.
Preferably, the observation panel is square.
Preferably, it is equipped with left guide groove on the left of the cavity, is equipped with right guide groove on the right side of the cavity, the baffle plate setting is on a left side Between guide groove and right guide groove, and the baffle left side edge is located in left guide groove, and the baffle right side edge is located in right guide groove.
Preferably, the early-warning lamp is LED light.
Following advantageous effects can be obtained by implementing the present invention:By the transmission data in setting time, and base Bandwidth is calculated in the total data that setting time and client are sent in setting time;And then broadband can be calculated automatically, Realize the automatic detection of bandwidth.
Description of the drawings
The present invention is based on the flow charts of the network connection on-line monitoring method of TCP/IP by Fig. 1;
The present invention is based on another flow charts of the network connection on-line monitoring method of TCP/IP by Fig. 2;
Fig. 3 is schematic diagram when not receiving pre-warning signal of the prior-warning device in the embodiment of the present invention;
Fig. 4 does not receive sectional view when pre-warning signal for the prior-warning device in the embodiment of the present invention;
Fig. 5 is schematic diagram when receiving pre-warning signal of the prior-warning device in the embodiment of the present invention;
Fig. 6 receives sectional view when pre-warning signal for the prior-warning device in the embodiment of the present invention;
Fig. 7 is the circuit connection diagram of the prior-warning device in the embodiment of the present invention.
Specific implementation mode
For the ease of the understanding of those skilled in the art, the present invention is made further with reference to specific embodiment It is bright:
Embodiment 1:
Network connection on-line monitoring method based on TCP/IP, as shown in Figure 1, including:
Step S01:Control client transmission data in setting time;
Step S02:Obtain the total amount of data that client is sent in setting time;
Step S03:Bandwidth is calculated in the total data sent in setting time based on setting time and client.
Following advantageous effects can be obtained by implementing the present invention:By the transmission data in setting time, and base Bandwidth is calculated in the total data that setting time and client are sent in setting time;And then broadband can be calculated automatically, Realize the automatic detection of bandwidth.
It is known that, preset time can be configured according to actual needs, such as 1 minute.
As the optional embodiment of the above-mentioned network connection on-line monitoring method based on TCP/IP, as shown in Fig. 2, method Further include:
Step S11:UDP messages are put into IP layers of data packet by control client one by one, and the UDP messages include Unique mark;
Step S12:The data packet is sent to server;
Step S13:Server received data packet is controlled, and determines that UDP is reported according to the unique mark of UDP messages in data packet The Loss Rate of text, and using the Loss Rate of UDP messages as the Loss Rate of IP layer data packets.
It is known that, entire message can be put into IP layers of packet by the setting of UDP message sizes in of the invention (packet) in.
When the packet (packet) that UDP messages are put into IP layers for entire message is interior, then the message dropping measured by UDP Data are the loss data of IP layers of packet, i.e. the Loss Rate of Loss Rate, that is, IP layer data packets measured by UDP, and validity test packet is lost Lose situation.
Embodiment 2:
Network connection on-line monitoring system based on TCP/IP, including client and server, the client include depositing Module and processor are stored up, software code is stored in the memory, the software code executes as follows after being run by processor Step:
Control client transmission data in setting time;
Obtain the total amount of data that client is sent in setting time;
Bandwidth is calculated in the total data sent in setting time based on setting time and client.
As the optional embodiment of the above-mentioned network connection on-line monitoring system based on TCP/IP, the software code quilt It is also executed the following steps after processor operation:
UDP messages are put into IP layers of data packet by control client one by one, and the UDP messages include unique mark;
The data packet is sent to server;
Server received data packet is controlled, and losing for UDP messages is determined according to the unique mark of UDP messages in data packet Mistake rate, and using the Loss Rate of UDP messages as the Loss Rate of IP layer data packets.
As the corresponding system of method in embodiment 1, principle is identical as in embodiment 1 as effect, and the present embodiment is not Repeat description.
As the optional embodiment of the above-mentioned network connection on-line monitoring system based on TCP/IP, the processor connection It is also executed the following steps after thering is prior-warning device, the software code to be run by processor:It is default to judge whether bandwidth is less than first Value, if being less than the first preset value, output signal controls prior-warning device early warning.
As the optional embodiment of the above-mentioned network connection on-line monitoring system based on TCP/IP, judge whether bandwidth is small In the second preset value, if being less than the second preset value, output signal controls prior-warning device early warning.
As the optional embodiment of the above-mentioned network connection on-line monitoring system based on TCP/IP, such as Fig. 3~Fig. 7 institutes Show, prior-warning device includes early warning main body 1, equipped with cuboid cavity 2 and the observation being connected to cavity 2 in the early warning main body 1 Mouthfuls 3, equipped with early-warning lamp 4 and be used to open/close the rectangle baffle 5 of observation panel 3 in cavity 2, the setting of the early-warning lamp 4 with 3 corresponding position of observation panel, about 5 baffle is slidably arranged in cavity 2, when baffle 5 slides into 2 top of cavity, Baffle 5 opens observation panel 3, and when baffle 5 slides into 2 lower part of cavity, baffle 5 closes observation panel 3, is located in the early warning main body 1 Electromagnet 6 is equipped at 2 upper end of cavity, 5 upper surface of the baffle is equipped with irony portion 51, and the electromagnet 6 after being powered for passing through Baffle 5 is slided into 2 top of cavity by magnetic force;The prior-warning device further includes relay 7, battery 8, the electromagnet 6, early-warning lamp 4, the normal open switch 71 of battery 8 and relay 7 is sequentially connected in series;The input terminal of the relay 7 is for receiving pre-warning signal.
Following advantageous effects can be obtained by implementing the present invention:It is normally opened after relay receives pre-warning signal Switch is closed so that early-warning lamp and electromagnet are powered simultaneously, and baffle is drawn onto cavity top by the battery iron after energization, and then is opened Observation panel so that user of service is observed that early-warning lamp;When relay does not receive early-warning lamp, normal open switch is opened, So that early-warning lamp and electromagnet power-off, the electromagnet after power-off no longer generate suction to baffle, baffle is because gravity slides To cavity lower part, and then close observation panel;That is, system, when not receiving pre-warning signal, observation panel, which is in, closes shape State, dust etc. will not enter in cavity, reduce the dust stratification rate of early-warning lamp, improving influences the early-warning lamp service life.
Monitor the optional embodiment of early warning system, the observation panel on-line as the above-mentioned network connection based on TCP/IP It is square.The observation panel 3 of square can reduce cost of manufacture convenient for making.
The optional embodiment for monitoring early warning system on-line as the above-mentioned network connection based on TCP/IP, such as Fig. 6 institutes Show, 2 left side of the cavity is equipped with left guide groove 21, and 2 right side of the cavity is equipped with right guide groove 22, and the baffle 5 is arranged in left guide groove Between 21 and right guide groove 22, and 5 left side edge of the baffle is located in left guide groove 21, and 5 right side edge of the baffle is led positioned at the right side In slot 22.The sliding setting that baffle 5 is realized using simple structure, reduces cost, while preferably, in left guide groove 21 and the right side Smooth treatment is carried out at guide groove 22.
Monitor the optional embodiment of early warning system, the early-warning lamp on-line as the above-mentioned network connection based on TCP/IP For LED light.Cost can be saved using LED light, reduce energy consumption.
Above is only a specific embodiment of the present invention, but the technical characteristic of the present invention is not limited thereto, Ren Heben The technical staff in field in the field of the invention, made by changes or modifications all cover the present invention the scope of the claims among.

Claims (10)

1. the network connection on-line monitoring method based on TCP/IP, which is characterized in that including:
Control client transmission data in setting time;
Obtain the total amount of data that client is sent in setting time;
Bandwidth is calculated in the total data sent in setting time based on setting time and client.
2. the network connection on-line monitoring method based on TCP/IP as described in claim 1, which is characterized in that method is also wrapped It includes:
UDP messages are put into IP layers of data packet by control client one by one, and the UDP messages include unique mark;
The data packet is sent to server;
Server received data packet is controlled, and determines the Loss Rate of UDP messages according to the unique mark of UDP messages in data packet, And using the Loss Rate of UDP messages as the Loss Rate of IP layer data packets.
3. the network connection on-line monitoring system based on TCP/IP, which is characterized in that including client and server, the client End includes memory module and processor, software code is stored in the memory, after the software code is run by processor Execute following steps:
Control client transmission data in setting time;
Obtain the total amount of data that client is sent in setting time;
Bandwidth is calculated in the total data sent in setting time based on setting time and client.
4. the network connection on-line monitoring system based on TCP/IP as claimed in claim 3, which is characterized in that the software generation Code also executes the following steps after being run by processor:
UDP messages are put into IP layers of data packet by client one by one, and the UDP messages include unique mark;
The data packet is sent to server;
Server received data packet is controlled, and determines the Loss Rate of UDP messages according to the unique mark of UDP messages in data packet, And using the Loss Rate of UDP messages as the Loss Rate of IP layer data packets.
5. the network connection on-line monitoring system based on TCP/IP as claimed in claim 4, which is characterized in that the processor It is connected with prior-warning device, the software code also executes the following steps after being run by processor:Judge whether bandwidth is less than first Preset value, if being less than the first preset value, output signal controls prior-warning device early warning.
6. the network connection on-line monitoring system based on TCP/IP as claimed in claim 5, which is characterized in that the software generation Code also executes the following steps after being run by processor:Judge whether bandwidth is less than the second preset value, if being less than the second preset value, Output signal controls prior-warning device early warning.
7. the network connection on-line monitoring system based on TCP/IP as claimed in claim 6, which is characterized in that the early warning dress It sets including early warning main body, equipped with cuboid cavity and the observation panel being connected to cavity in the early warning main body, is equipped in cavity Early-warning lamp and the rectangle baffle for being used to open/closing observation panel, the early-warning lamp are arranged in position corresponding with observation panel, The baffle is slidably arranged in the cavity up and down, and when barrier slides are to cavity top, baffle opens observation panel, and barrier slides arrive When cavity lower part, flapper closure observation panel, the early warning main body is interior to be located at cavity upper end equipped with electromagnet, the baffle upper table Face is equipped with irony portion, the electromagnet for after being powered by magnetic force by barrier slides to cavity top;The prior-warning device is also Including relay, battery, the electromagnet, early-warning lamp, battery and relay normal open switch be sequentially connected in series;The relay Input terminal is for receiving pre-warning signal.
8. early warning system is monitored in the network connection based on TCP/IP on-line as claimed in claim 7, which is characterized in that the sight Cha Kou is square.
9. early warning system is monitored in the network connection based on TCP/IP on-line as claimed in claim 7, which is characterized in that the chamber It is equipped with left guide groove on the left of body, is equipped with right guide groove on the right side of the cavity, the baffle plate setting is between left guide groove and right guide groove, and institute It states baffle left side edge to be located in left guide groove, the baffle right side edge is located in right guide groove.
10. early warning system is monitored in the network connection based on TCP/IP on-line as claimed in claim 7, which is characterized in that described Early-warning lamp is LED light.
CN201810556229.1A 2018-06-01 2018-06-01 Network connection on-line monitoring method based on TCP/IP and system Pending CN108696407A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810556229.1A CN108696407A (en) 2018-06-01 2018-06-01 Network connection on-line monitoring method based on TCP/IP and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810556229.1A CN108696407A (en) 2018-06-01 2018-06-01 Network connection on-line monitoring method based on TCP/IP and system

Publications (1)

Publication Number Publication Date
CN108696407A true CN108696407A (en) 2018-10-23

Family

ID=63849442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810556229.1A Pending CN108696407A (en) 2018-06-01 2018-06-01 Network connection on-line monitoring method based on TCP/IP and system

Country Status (1)

Country Link
CN (1) CN108696407A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111224820A (en) * 2019-12-30 2020-06-02 视联动力信息技术股份有限公司 Bandwidth calculation method and device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075918A (en) * 2006-05-15 2007-11-21 中兴通讯股份有限公司 Method for inspecting network band width
CN101471817A (en) * 2007-12-27 2009-07-01 华为技术有限公司 Method, system and equipment for monitoring flux of connectionless IP network
CN101977185A (en) * 2010-10-14 2011-02-16 杭州海康威视数字技术股份有限公司 Digital video recorder in video monitoring system and network connection control method thereof
CN102868566A (en) * 2011-07-05 2013-01-09 彭俊 Remote speed detection method for network device
CN103001835A (en) * 2012-12-29 2013-03-27 电信科学技术第一研究所 Network bandwidth test method and system based on data transmission
CN104125034A (en) * 2013-04-23 2014-10-29 深圳市同洲电子股份有限公司 Transmission method and system for UDP data packets
CN104993979A (en) * 2015-07-22 2015-10-21 上海迈外迪网络科技有限公司 Network connection monitoring method, terminal equipment and communication system
CN105577480A (en) * 2016-02-01 2016-05-11 新浪网技术(中国)有限公司 Monitoring method and device of network connection performances
CN106322293A (en) * 2015-06-18 2017-01-11 管志旭 Multi-signal sound-light alarm lamp
CN206377640U (en) * 2017-01-20 2017-08-04 重庆科创职业学院 LED with warning function

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075918A (en) * 2006-05-15 2007-11-21 中兴通讯股份有限公司 Method for inspecting network band width
CN101471817A (en) * 2007-12-27 2009-07-01 华为技术有限公司 Method, system and equipment for monitoring flux of connectionless IP network
CN101977185A (en) * 2010-10-14 2011-02-16 杭州海康威视数字技术股份有限公司 Digital video recorder in video monitoring system and network connection control method thereof
CN102868566A (en) * 2011-07-05 2013-01-09 彭俊 Remote speed detection method for network device
CN103001835A (en) * 2012-12-29 2013-03-27 电信科学技术第一研究所 Network bandwidth test method and system based on data transmission
CN104125034A (en) * 2013-04-23 2014-10-29 深圳市同洲电子股份有限公司 Transmission method and system for UDP data packets
CN106322293A (en) * 2015-06-18 2017-01-11 管志旭 Multi-signal sound-light alarm lamp
CN104993979A (en) * 2015-07-22 2015-10-21 上海迈外迪网络科技有限公司 Network connection monitoring method, terminal equipment and communication system
CN105577480A (en) * 2016-02-01 2016-05-11 新浪网技术(中国)有限公司 Monitoring method and device of network connection performances
CN206377640U (en) * 2017-01-20 2017-08-04 重庆科创职业学院 LED with warning function

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111224820A (en) * 2019-12-30 2020-06-02 视联动力信息技术股份有限公司 Bandwidth calculation method and device
CN111224820B (en) * 2019-12-30 2023-10-13 视联动力信息技术股份有限公司 Bandwidth calculation method and device

Similar Documents

Publication Publication Date Title
CN204557894U (en) Mimic-disconnecting switch
CN108696407A (en) Network connection on-line monitoring method based on TCP/IP and system
CN108683616B (en) Network configuration device of virtual switch queue
CN105892609B (en) A kind of method and intelligent terminal of terminal booting and identification memory card synchronous operation
CN105072055A (en) Ethernet switch and port polling system and polling method thereof
CN109327343B (en) Automatic inspection method and system for openstack cloud environment
CN209070044U (en) A kind of subway platform gate-width voltage universal signal switch gate order simulator
CN107655177A (en) Opening-closing structure control method, air conditioner and the readable storage medium storing program for executing of air conditioner
CN110260453A (en) Humidify matching process, device and the computer readable storage medium of pipeline
CN204815631U (en) Magnetic induction chess system
CN107477766A (en) Central air conditioning system and central air-conditioner control method
CN215420539U (en) Internet of things-based power operation monitoring equipment
CN207664710U (en) The intelligent monitor system of base station power supply system
CN206541001U (en) Take the testing agency of the control external breaker of electric energy meter
CN214473107U (en) Gas analysis instrument based on internet of things technology
CN205596132U (en) Automatic on -off system of network physical link
CN212972234U (en) Intelligent file management cabinet
CN203965136U (en) A kind of switch checkout equipment
CN105814844B (en) Switch port control method, apparatus and system
CN203553723U (en) Smart control device for switch cabinet
CN207650958U (en) The electric fire disaster warning for managing control application concentratedly based on Internet of Things controls host
CN205232549U (en) Novel light operator
CN114697365A (en) Door structure state monitoring method and system, monitoring equipment and gateway equipment
CN105610740B (en) A kind of method, routing device and the network processing unit of control port state
CN204030341U (en) Distribution box with pre-payment management function

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