[go: up one dir, main page]

CN112838966A - UDP link monitoring method and system and electronic equipment - Google Patents

UDP link monitoring method and system and electronic equipment Download PDF

Info

Publication number
CN112838966A
CN112838966A CN202110435004.2A CN202110435004A CN112838966A CN 112838966 A CN112838966 A CN 112838966A CN 202110435004 A CN202110435004 A CN 202110435004A CN 112838966 A CN112838966 A CN 112838966A
Authority
CN
China
Prior art keywords
udp
server
socket
client
syn
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
CN202110435004.2A
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.)
Beijing Tuoke Network Technology Co ltd
Original Assignee
Beijing Tuoke Network 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 Beijing Tuoke Network Technology Co ltd filed Critical Beijing Tuoke Network Technology Co ltd
Priority to CN202110435004.2A priority Critical patent/CN112838966A/en
Publication of CN112838966A publication Critical patent/CN112838966A/en
Pending legal-status Critical Current

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/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol

Landscapes

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

Abstract

The invention provides a UDP link monitoring method, a UDP link monitoring system, electronic equipment and a computer readable storage medium. Wherein, the method comprises the following steps: a UDP server and a UDP client respectively create Socket; the server receives a syn packet of the UDP client, and the server enters a syn _ recv state; the client receives a syn + ack packet of the server, and the client and the server enter an estabilished state; the client sends a UDP message to the server; and the Zabbix server side triggers the network quality alarm of the UDP link according to the set network trigger condition through the acquired network trigger information of the UDP link. In the embodiment of the invention, the client sends the random UDP message with the specified length to the server by completing the handshaking flow of the TCP, and the Zabbix program completes the monitoring of the transmission quality of the UDP link according to the preset monitoring alarm mechanism.

Description

UDP link monitoring method and system and electronic equipment
Technical Field
The invention relates to the technical field of Internet networks, in particular to a UDP link monitoring method, a UDP link monitoring system, electronic equipment and a computer readable storage medium.
Background
UDP (User Datagram Protocol) is a connectionless transport layer Protocol in the OSI (Open System Interconnect) reference model. In the UDP protocol, it is not necessary to establish a connection with the other party before formal communication, and data is directly transmitted to the receiving party, which is an unreliable communication protocol. The UDP protocol does not care about a series of states of network data transmission, so that a large amount of system resource consumption of network state confirmation and data confirmation is saved in the data transmission process of the UDP protocol, the transmission efficiency of the UDP protocol is greatly improved, and the transmission speed is high.
Sockets (sockets) are endpoint abstractions for two-way communication between applications on different hosts in a network. A socket can be viewed as an endpoint in the respective communication connection when two network applications are communicating. Sockets are Application Programming Interfaces (APIs) for interprocess communication in a network environment, and are also communication endpoints that can be named and addressed, each socket in use having its type and a process connected to it. During communication, one of the Network applications writes a piece of information to be transmitted into a Socket of the host where the Network application is located, and the Socket sends the piece of information to a Socket of another host through a transmission medium connected to an NIC (Network Interface Card) so that the other host can receive the piece of information. Socket is a mechanism that combines IP addresses and ports to provide a mechanism to transport packets to application layer processes.
The audio and video service, 5G video communication, instant messaging and the like support multiple people to simultaneously complete the service support of transnational service, transplatform service and multiple terminals on line, and have higher requirements on concurrence and network time delay.
In view of the characteristics of the UDP protocol, such as no connection and application message oriented, the specific characteristics are as follows:
1. before data transmission, the client and the server do not establish connection, and when the client and the server transmit data, the client catches the data of the application program and throws the data onto the network as soon as possible;
2. the header of the message has less overhead, and the main attention is focused on the data;
3. since the UDP protocol has no data packet loss, there is no waiting and retransmission process, and the data throughput is very high, which is limited by the transmission bandwidth, the application itself and the performance of the computer itself at most.
Disclosure of Invention
A packet, entering syn _ recv state; entering an aborted state after receiving an acknowledgement packet ack (ack = k + 1); recording the communication state of the Socket after receiving the UDP message;
the UDP client is used for creating a Socket, sending a syn packet (syn = 1) to the UDP server, and entering a syn _ send state to wait for the acknowledgement of the UDP server; receiving a syn + ack packet of the UDP server, sending an acknowledgement packet ack (ack = k + 1) to the UDP server, and entering an estabilished state; sending a UDP message to a UDP server, and recording the communication state of the Socket;
and the Zabbix server is used for triggering the network quality alarm of the UDP link according to the set triggering condition through the acquired network triggering information of the UDP link.
In a third aspect, an embodiment of the present invention provides an electronic device, including a bus, a transceiver, a memory, a processor, and a computer program stored on the memory and executable on the processor, where the transceiver, the memory, and the processor are connected via the bus, and the computer program implements the steps in the UDP link monitoring method as above when executed by the processor.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the UDP link monitoring method as above.
According to the method, the system, the electronic equipment and the computer readable storage medium provided by the embodiment of the invention, through finishing the handshaking process of TCP, the client sends the random UDP message with the specified length to the server, the server checks the length and the number of the UDP messages and records the UDP messages to the specified position, and the Zabbix program completes the monitoring of the transmission quality of the UDP link according to the preset monitoring alarm mechanism.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present invention, the drawings required to be used in the embodiments or the background art of the present invention will be described below.
Fig. 1 is a schematic view illustrating a scenario of UDP link monitoring provided in an embodiment of the present invention;
fig. 2 is a flowchart illustrating a UDP link monitoring method according to an embodiment of the present invention;
fig. 3 is a schematic interface diagram illustrating information of a monitoring item configured by a Zabbix server in the UDP link monitoring method according to the embodiment of the present invention;
fig. 4 is a schematic interface diagram illustrating information of a Zabbix server configuration trigger in a UDP link monitoring method according to an embodiment of the present invention;
fig. 5 is a schematic interface diagram illustrating that the Zabbix client displays an alarm on the nailing software in the UDP link monitoring method according to the embodiment of the present invention;
fig. 6 is a schematic structural diagram illustrating a UDP link monitoring system according to an embodiment of the present invention;
fig. 7 shows a schematic structural diagram of an electronic device for monitoring a UDP link according to an embodiment of the present invention.
Detailed Description
For clarity and conciseness of description of embodiments of the present invention, a brief introduction to the relevant concepts or technologies is first given:
1. an IP Address (Internet Protocol Address), also called an Internet Protocol Address. The IP address is a uniform address format provided by the IP protocol, and it allocates a logical address to each network and each host on the internet, so as to mask the difference of physical addresses. The method is divided into the following two types:
1.1, public IP address: the global address is a legal IP address, which is an address assigned by an INIC (Internet Information Center) or an ISP (Internet Service Provider), and represents one or more internal local addresses to the outside, and is a globally uniform addressable address. Fig. 1 is a schematic diagram illustrating a UDP link monitoring scenario according to an embodiment of the present invention, where, as shown in fig. 1, the IP address 210.21.12.141 and the IP address 210.15.27.167 are public IP addresses, which respectively represent public addresses in the local area networks of the first terminal 10a and the second terminal 10 b.
1.2, private IP address: also called internal address, belonging to unregistered address, and dedicated for internal use in an organization, IANA (The Internet Assigned Numbers Authority) reserves The following class 3 IP addresses as private IP addresses:
a type: 10.0.0 to 10.255.255.255,
b type: 172.16.0.0-172.16.255.255-A,
class C: 192.168.0.0-192.168.255.255.
As shown in fig. 1, IP addresses 192.168.1.4 and 192.168.1.5 are private IP addresses. Wherein the IP address 192.168.1.4 represents only the internal address of the first terminal 10a within the local area network, and the IP address 192.168.1.5 represents only the internal address of the second terminal 10b within the local area network.
2. Port (Port), embodiments of the present invention generally refer to a Port used to differentiate application services in a logical sense. If the IP address is compared to a house, the port is the door to and from the house. Because the number of the physical ports and the number of the logical ports are more, each port is numbered to form a port number in order to distinguish the ports. The port numbers range from 0 to 65535, such as 80 ports for browsing web services, 21 ports for FTP (File Transfer Protocol) services, and the like. As shown in fig. 1, "123" in "192.168.1.4,123" is a port number, which represents a certain chat application service port of the first terminal 10a, and "42" in "210.21.12.141, 42" is also a port of the first terminal 10 a. The difference from "123" is that "123" is the port number of the first terminal 10a itself, and "42" is the port number mapped on the first network address translator 20a by a certain chat application service port (i.e., "123") of the first terminal 10 a.
3. Socket, a host having an IP address, can provide many application services, such as a Web service, an FTP (file Transfer Protocol), an SMTP (Simple Mail Transfer Protocol) service, and the like, and the application services can be completely implemented by 1 IP address. In view of the one-to-many relationship between IP addresses and application services, the host distinguishes different application services by "IP address + port number", i.e. socket. A socket is an abstraction layer through which an application service (i.e., an application) can send or receive data, and can also be considered as an endpoint in a communication connection between two applications, and each socket has a socket number, which includes the IP address of the host and a 16-bit host port number, i.e., "host IP address: port number "or" host IP address, port number ". During communication, one application program writes a piece of information to be transmitted into a socket of a host computer where the application program is located, and the socket sends the piece of information to a socket of another host computer through a transmission medium of a network interface card, so that the piece of information can be transmitted to other application programs. As shown in fig. 1, "192.168.1.4,123" is an intranet socket (alternatively referred to as an internal socket) of the first terminal 10a, corresponding to the private IP address "192.168.1.4" and port "123" of the first terminal 10 a. "210.21.12.141, 42" is the extranet socket of the first terminal 10a, corresponding to the first terminal 10 a's public IP address "210.21.12.141" and port number "42". When the first terminal 10a and the second terminal 10b successfully establish the direct transmission link, "192.168.1.4,123" may be referred to as a target intranet socket of the first terminal 10a, and may also be referred to as a target intranet socket of the second terminal 10 b; "210.21.12.141, 42" may be referred to as a target or pass-through foreign socket for the first terminal 10a and may also be referred to as a destination foreign socket for the second terminal 10 b.
4. NAT (Network Address Translation), also called Network masking or IP masking, is a method of rewriting a source IP when an IP packet passes through a router or firewall: port address (i.e., target socket) or destination IP: the technology of Port addresses (namely, destination sockets) can solve the problem of insufficient IP addresses, effectively avoid attacks outside the network and hide and protect computers inside the network. According to the difference between the mapping rule and the filtering rule, the NAT is classified into a full cone type, a restricted type, a port restricted type, a symmetric type, and the like. Wherein, the symmetrical type has the highest safety level, the most rigorous communication condition and the widest application. As shown in FIG. 1, the first network address translator 20a translates the Intranet socket "192.168.1.4,123" of the first terminal 10a to the Extranet socket "210.21.12.141, 42".
5. NAT penetration: which may also be referred to as NAT tunneling, maps an intranet socket to an extranet socket. In addition, the NAT filters packets received from the external network according to a certain rule. The above manner will make the communication between the two NAT intranet terminals complicated, and the NAT traversal technology is used to break the NAT barrier and establish a P2P direct transmission link between the two NAT intranet hosts.
6. Socket communication mechanism based on UDP protocol
Socket is a programming interface for applications. Each socket is represented by a form of a semi-coherent description, such as: protocol, local address, or local port; and a complete socket is supplemented with remote addresses and remote ports using an associated description. Each socket has a unique socket number and is allocated by the local operating system.
Sockets are mainly divided into three types according to different transmission data types:
(1) streaming Socket (Socket _ stream), which is implemented based on the TCP protocol, two communicating applications first establish a virtual connection, and provide reliable, connection-oriented communication streams with each other, thereby ensuring the ordering and accuracy of the data transmission process.
(2) The datagram Socket (Socket _ dgram), the type of which adopts datagram protocol UDP, is a connectionless service, and the transmitted data messages are independent of each other, unordered and the reliability cannot be guaranteed.
(3) The original Socket, which allows direct access to the underlying protocol (IP or ICMP), is more powerful than the former two, but is less convenient to use, and many protocols are developed based on the Socket.
7. Working principle of UDP protocol
The UDP protocol is a connectionless-oriented transport layer protocol, and is distinguished by a TCP protocol that requires server-side interception during connection, which is a "mandatory" network connection. UDP datagram service types are divided into three types: one-to-one, one-to-many, and connectionless. The UDP protocol does not guarantee whether data can reach a destination in the transmission process, and whether data is transmitted in order, and does not retransmit lost data. The main task of the UDP protocol is to deliver the data blocks delivered by the application to the network layer, and ensure that the information of the packet can be received.
Although the UDP cannot guarantee the reliability of data transmission like the TCP, the UDP has its advantages, especially for the requirement of data transmission in a wireless network, and the UDP has a wider application range. The UDP protocol is more efficient than the TCP protocol, and many applications do not require reliability of the transmitted data, such as video communication, require real-time interaction, and do not require absolute correctness and reliability of the data.
Each port of the UDP protocol is identified by a unique number, which, when used, provides the client with the location to send the message. When an application wants to send a message to another terminal, UDP generates a header, including the source ports, which provide the addresses needed to convey the information. The UDP protocol secures data by providing a check value in the header, and in the destination computer, the data packet is passed to the UDP protocol program and delivered to the destination port.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as methods, apparatus, electronic devices, and computer-readable storage media. Thus, embodiments of the invention may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), a combination of hardware and software. Furthermore, in some embodiments, embodiments of the invention may also be embodied in the form of a computer program product in one or more computer-readable storage media having computer program code embodied in the medium.
The computer-readable storage media described above may take any combination of one or more computer-readable storage media. The computer-readable storage medium includes: an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of the computer-readable storage medium include: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only Memory (ROM), an erasable programmable read-only Memory (EPROM), a Flash Memory, an optical fiber, a compact disc read-only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any combination thereof. In embodiments of the invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, device, or apparatus.
The computer program code embodied on the computer readable storage medium may be transmitted using any appropriate medium, including: wireless, wire, fiber optic cable, Radio Frequency (RF), or any suitable combination thereof.
Computer program code for carrying out operations for embodiments of the present invention may be written in one or more programming languages, including an object oriented programming language such as: java, Smalltalk, C + +, and also include conventional procedural programming languages, such as: c or a similar programming language. The computer program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be over any of a variety of networks, including: a Local Area Network (LAN) or a Wide Area Network (WAN), which may be connected to the user's computer, may be connected to an external computer.
Embodiments of the present invention are described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus, electronic devices, and computer-readable storage media according to embodiments of the invention.
It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions. These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing apparatus to function in a particular manner. Thus, the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
In order to dynamically monitor the network quality condition of UDP links connected to various parts of the world, the inventor utilizes nodes deployed in the world, uses a central machine room, a traffic summary area, other network boundaries or special areas as socket server terminals, uses the global nodes as client terminals, establishes streaming sockets, binds with local addresses and designated ports, then informs TCP, prepares to receive connections, calls accept () block, and waits for the connection from the client terminals.
The embodiments of the present invention will be described below with reference to the drawings.
Fig. 2 shows a flowchart of a UDP link monitoring method according to an embodiment of the present invention. As shown in fig. 2, the method includes:
step S102: the UDP server creates a Socket according to the address type (IPv 4, IPv 6), the Socket type and the protocol type;
wherein socket = socket.socket (socket.af _ inet, socket.socket _ dgram);
step S104: the UDP server binds an IP address and a port for Socket;
step S106: the UDP server starts a Socket process to monitor a port number request of the UDP client, prepares to receive a connection request sent by the UDP client at any time, and does not open the Socket of the UDP server at the moment;
that is, reading (target = server, args = (config [ 'server port')));
step S108: the UDP client creates a Socket and opens the Socket, judges whether the Socket of the UDP client needs to be subjected to multiprocess or not, and tries to connect the Socket of the UDP client with the Socket of the UDP server according to the IP address and the port number of the UDP server;
it should be noted that sockets of the UDP server and the UDP client are programming interfaces of an application written in Python language.
Step S110: the UDP client Socket sends a syn packet (synchronization sequence number) to the UDP server Socket, syn =1, and the UDP client enters a syn _ send state to wait for the UDP server to confirm;
step S112: the UDP server receives a syn packet of the UDP client, confirms (ack = j + 1), and simultaneously sends a syn packet (syn = k), namely the syn + ack packet, to the UDP client, and then the UDP server enters a syn _ recv state;
step S114: the UDP client receives a syn + ack packet of the UDP server and sends an ack (ack = k + 1) confirmation packet to the UDP server, and after the packet is sent, the UDP client and the UDP server enter an invalid state to finish three-way handshake;
step S116: and the UDP server Socket receives the connection request of the UDP client Socket, is passively opened and starts to receive the connection request of the UDP client until the UDP client returns the connection address information.
At the moment, the Socket enters a blocking state, starts to block and waits for accept (), and the next connection request is not received until the UDP client returns connection information;
step S118: the UDP client Socket sends a UDP message to the UDP server Socket by using the Socket _ dgram type;
step S120: the UDP client and the UDP server record the communication state of respective Socket in real Time, wherein the communication state comprises RTT (Round-Trip Time, TCP Round-Trip delay) average Round-Trip Time, RTT minimum Round-Trip Time, RTT maximum Round-Trip Time, total UDP sending packet quantity, total UDP lost packet quantity, target host name, target host IP, target host communication port and source host IP information;
the communication log is exemplified as follows:
2021-03-11 19:41:20,757 INFO: 11399, [ctrl+c trigger]force exit app!
restarting a # program and forcibly exiting the application record;
2021-03-11 19:41:22,781 INFO: 22794, server listerning port 999
# the monitoring of the local Server end is started successfully, and the monitoring port is 999;
2021-03-11 19:41:22,781 INFO: 22794, connecting,destname:cluster10-hw-gz03-N02 , destip:10.10.11.149 , destport:999 , sourceip:
# connection target host cluster10-hw-gz03-N02 succeeds, and records opposite end ip and opposite end service port; (this time indicating successful establishment of the Peer-to-Peer connection socket Tunnel)
2021-03-11 19:41:22,781 INFO: 22794, client bind port(700) success,clinet info==>destname:cluster10-hw-gz03-N02 , destip:10.10.11.149 , destport:999 , sourceip:
# starts sending UDP datagrams on the client 700 port basis and confirms the record target host information again.
And calculating to obtain the average response time according to the RTT average round trip time, the RTT minimum round trip time, the RTT maximum round trip time and the like.
And obtaining the UDP packet loss rate according to the total UDP sending packet quantity and the total UDP loss packet quantity.
Step S122: the Zabbix server configures monitoring item information and trigger information for UDP link monitoring, as shown in fig. 3 and 4, the set alarm triggering condition is: the packet loss rate is more than 2%, and continuously meets the requirement for 3 times (1 time per second);
it should be noted that the Zabbix monitoring program is in a C/S architecture and is written in C language, the Zabbix client is responsible for collecting various data and sending the data to the server, and the Zabbix server displays the monitoring result according to the judgment condition.
Step S124: a Zabbix client (Zabbix Agent) calls a locally defined monitoring item udp.loss function key value through a shell script, and calls network state information stored by a Socket according to the udp.loss function key value and a transmission parameter host name (host name) parameter;
it should be noted that the monitoring item locally defined by the Zabbix client is a udp.loss function key value, the monitoring item information is sent to the Zabbix server, and the Zabbix server directly configures the udp.loss function key value as an alarm triggering condition. For example: and (3) the loss function key value (packet loss rate) is more than 2%, and the alarm triggering condition is met.
Step S126: the Zabbix client defaults to call network state information (such as UDP packet loss rate) once per second, and network trigger information is obtained according to the network state information in a gathering mode;
step S128: the Zabbix server side calls the network trigger information obtained by the Zabbix client side through the shell script, and according to the trigger condition set by the trigger, the alarm mechanism can be triggered immediately as long as the network trigger information meets the alarm trigger condition.
As shown in fig. 3 and 4, as long as Zabbix client detects that the packet loss rate is greater than 2%, and continuously satisfies 3 times (1 time per second), alarm is triggered.
The alarm default notification channel is:
1. e, mail warning;
2. nailing and alarming;
3. personal/enterprise WeChat alerts;
4. and displaying the alarm by applying a large screen.
Fig. 5 shows an alarm interface for the staple display.
According to the UDP link monitoring method provided by the embodiment of the invention, through finishing the handshaking process of TCP, the client sends the random UDP message with the specified length to the server, the server checks the length and the number of the packets of the UDP message and records the length and the number of the packets to the specified position, and the Zabbix program completes the monitoring of the transmission quality of the UDP link according to the preset monitoring alarm mechanism.
Fig. 6 shows a schematic structural diagram of a UDP link monitoring system according to an embodiment of the present invention. As shown in fig. 6, the UDP link monitoring system includes:
the UDP server 620 is configured to create a Socket, receive a syn packet of the UDP client 610, confirm (ack = j + 1), send a syn packet (syn = k), that is, a syn + ack packet, to the UDP client 610, and enter a syn _ recv state; entering an aborted state after receiving an acknowledgement packet ack (ack = k + 1); recording the communication state of the Socket after receiving the UDP message;
the UDP client 610 is configured to create a Socket, send a syn packet (syn = 1) to the UDP server 620, and enter a syn _ send state to wait for the UDP server 620 to confirm; receiving a syn + ack packet of the UDP server 620, sending an ack (ack = k + 1) acknowledgement packet to the UDP server 620, and entering an estabilished state; sending a UDP message to the UDP server 620 and recording the communication state of the Socket;
and the Zabbix server 640 is configured to trigger the network quality alarm of the UDP link according to the set trigger condition through the obtained network trigger information of the UDP link.
In an embodiment of the invention, optionally, in the UDP link monitoring system,
the UDP server 620 includes:
a type creating module 622, configured to create a Socket according to the address type, the Socket type, and the protocol type;
a port binding module 624, configured to bind an IP address and a port for Socket;
a start monitoring module 626, configured to start a Socket process to monitor a port number request of the UDP client 610, and receive a connection request sent by the UDP client 610;
the UDP client 610 includes:
a creation determination module 612, configured to create a Socket, and determine whether the Socket of the UDP client 610 needs multiple processes;
and the Socket connection module 614 is configured to connect the Socket of the UDP client 610 with the Socket of the UDP server 620 according to the IP address and the port number of the UDP server 620.
In this embodiment of the present invention, optionally, the UDP link monitoring system further includes a Zabbix client 630:
the Zabbix client 630 is configured to invoke a locally defined monitoring item udp.loss function key value through a shell script, and acquire network state information according to the udp.loss function key value and the parameter of the parameter host; periodically calling network state information, and acquiring network trigger information according to the network state information;
the Zabbix server 640 is configured to configure monitoring item information and trigger information for UDP link monitoring; and calling network trigger information through the shell script, and triggering network quality alarm of the UDP link according to the network trigger condition set by the trigger.
Optionally, in this embodiment of the present invention, the communication state information of the Socket includes:
the method comprises the following steps of RTT average round trip time, RTT minimum round trip time, RTT maximum round trip time, total UDP sending packet quantity, total UDP lost packet quantity, target host name, target host IP address, target host communication port and source host IP address.
Therefore, in the UDP link monitoring system according to the embodiment of the present invention, by completing the TCP handshake process, the client sends a random UDP packet with a specified length to the server, the server checks the length of the UDP packet and the number of packets and records the length and the number of packets to a specified location, and the Zabbix program completes monitoring of the transmission quality of the UDP link according to a preset monitoring alarm mechanism.
In addition, an embodiment of the present invention further provides an electronic device, which includes a bus, a transceiver, a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the transceiver, the memory, and the processor are connected via the bus, and when being executed by the processor, the computer program implements each process of the UDP link monitoring method embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition.
Specifically, referring to fig. 7, an embodiment of the present invention further provides an electronic device, which includes a bus 71, a processor 72, a transceiver 73, a bus interface 74, a memory 75, and a user interface 76.
In an embodiment of the present invention, the electronic device further includes: a computer program stored on the memory 75 and executable on the processor 72, the computer program when executed by the processor 72 performing the steps of:
a UDP server and a UDP client respectively create Socket;
the UDP client sends a syn packet (syn = 1) to the UDP server, and the UDP client enters a syn _ send state to wait for the UDP server to confirm;
the UDP server receives a syn packet of the UDP client, confirms (ack = j + 1), sends the syn packet (syn = k), namely a syn + ack packet, to the UDP client, and enters a syn _ recv state;
the UDP client receives a syn + ack packet of the UDP server and sends an acknowledgement packet ack (ack = k + 1) to the UDP server, and the UDP client and the UDP server enter an estabilished state;
the UDP client sends a UDP message to the UDP server, and the UDP client and the UDP server record the communication state of respective Socket;
and the Zabbix server side triggers the network quality alarm of the UDP link according to the set network trigger condition through the acquired network trigger information of the UDP link.
Optionally, the computer program when executed by the processor 72 may further implement the steps of:
the UDP server side creates a Socket according to the address type, the Socket type and the protocol type;
the UDP server side binds an IP address and a port for Socket;
the UDP server side starts a Socket process to monitor a port number request of the UDP client side and receives a connection request sent by the UDP client side;
and the UDP client creates a Socket, judges whether the UDP client Socket needs to be subjected to multiprocess or not, and connects the UDP client Socket with the UDP server Socket according to the IP address and the port number of the UDP server.
The method also comprises the following steps:
the Zabbix server configures monitoring item information and trigger information monitored by a UDP link;
the Zabbix client calls a locally defined monitoring item udp.loss function key value through a shell script, and network state information is acquired according to the udp.loss function key value and the parameter of the parameter transmission host;
the Zabbix client side periodically calls the network state information and acquires network trigger information according to the network state information;
and the Zabbix server calls the network trigger information through the shell script and triggers the network quality alarm of the UDP link according to the network trigger condition set by the trigger.
The communication state information of the Socket includes:
the method comprises the following steps of RTT average round trip time, RTT minimum round trip time, RTT maximum round trip time, total UDP sending packet quantity, total UDP lost packet quantity, target host name, target host IP address, target host communication port and source host IP address.
A transceiver 73 for receiving and transmitting data under the control of the processor 72.
In FIG. 7, a bus architecture (represented by bus 71), bus 71 may include any number of interconnected buses and bridges, bus 71 connecting various circuits including one or more processors, represented by processor 72, and memory, represented by memory 75.
Bus 71 represents one or more of any of several types of bus structures, including a memory bus, and memory controller, a peripheral bus, an Accelerated Graphics Port (AGP), a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include: an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an Enhanced ISA (EISA) bus, a Video Electronics Standards Association (VESA), a Peripheral Component Interconnect (PCI) bus.
The processor 72 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method embodiments may be performed by integrated logic circuits in hardware or instructions in software in a processor. The processor described above includes: general purpose processors, Central Processing Units (CPUs), Network Processors (NPs), Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs), Complex Programmable Logic Devices (CPLDs), Programmable Logic Arrays (PLAs), Micro Control Units (MCUs) or other Programmable Logic devices, discrete gates, transistor Logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in embodiments of the present invention may be implemented or performed. For example, the processor may be a single core processor or a multi-core processor, which may be integrated on a single chip or located on multiple different chips.
The processor 72 may be a microprocessor or any conventional processor. The steps of the method disclosed in connection with the embodiments of the present invention may be directly performed by a hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor. The software modules may be located in a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), a register, and other readable storage media known in the art. The readable storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The bus 71 may also connect various other circuits such as peripherals, voltage regulators, or power management circuits to one another, and a bus interface 74 provides an interface between the bus 71 and the transceiver 73, as is well known in the art. Therefore, the embodiments of the present invention will not be further described.
The transceiver 73 may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other devices over a transmission medium. For example: the transceiver 73 receives external data from other devices, and the transceiver 73 is used to transmit data processed by the processor 72 to other devices. Depending on the nature of the computer system, a user interface 76 may also be provided, such as: touch screen, physical keyboard, display, mouse, speaker, microphone, trackball, joystick, stylus.
It should be appreciated that in embodiments of the present invention, the memory 75 may further include memory remotely located from the processor 72, which may be connected to a server over a network. One or more portions of the above-described networks may be an ad hoc network (ad hoc network), an intranet (intranet), an extranet (extranet), a Virtual Private Network (VPN), a Local Area Network (LAN), a Wireless Local Area Network (WLAN), a Wide Area Network (WAN), a Wireless Wide Area Network (WWAN), a Metropolitan Area Network (MAN), the Internet (Internet), a Public Switched Telephone Network (PSTN), a plain old telephone service network (POTS), a cellular telephone network, a wireless fidelity (Wi-Fi) network, and combinations of two or more of the above. For example, the cellular telephone network and the wireless network may be a global system for Mobile Communications (GSM) system, a Code Division Multiple Access (CDMA) system, a Worldwide Interoperability for Microwave Access (WiMAX) system, a General Packet Radio Service (GPRS) system, a Wideband Code Division Multiple Access (WCDMA) system, a Long Term Evolution (LTE) system, an LTE Frequency Division Duplex (FDD) system, an LTE Time Division Duplex (TDD) system, a long term evolution-advanced (LTE-a) system, a Universal Mobile Telecommunications (UMTS) system, an enhanced Mobile Broadband (eMBB) system, a mass Machine Type Communication (mtc) system, an Ultra Reliable Low Latency Communication (urrllc) system, or the like.
It will be appreciated that memory 75 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. Wherein the nonvolatile memory includes: Read-Only Memory (ROM), Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), or Flash Memory.
The volatile memory includes: random Access Memory (RAM), which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as: static random access memory (Static RAM, SRAM), Dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct memory bus RAM (DRRAM). The memory 75 of the electronic device described in the embodiments of the present invention includes, but is not limited to, the above and any other suitable types of memory.
In an embodiment of the present invention, memory 75 stores the following elements of operating system 751 and application programs 752: an executable module, a data structure, or a subset thereof, or an expanded set thereof.
Specifically, the operating system 751 comprises various system programs, such as: a framework layer, a core library layer, a driver layer, etc. for implementing various basic services and processing hardware-based tasks. Applications 752 include various applications such as: media Player (Media Player), Browser (Browser), for implementing various application services. A program implementing the method of an embodiment of the present invention may be included in the application 752. The application programs 752 include: applets, objects, components, logic, data structures, and other computer system executable instructions that perform particular tasks or implement particular abstract data types.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements each process of the UDP link monitoring method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
In particular, the computer program may, when executed by a processor, implement the steps of:
a UDP server and a UDP client respectively create Socket;
the UDP client sends a syn packet (syn = 1) to the UDP server, and the UDP client enters a syn _ send state to wait for the UDP server to confirm;
the UDP server receives a syn packet of the UDP client, confirms (ack = j + 1), sends the syn packet (syn = k), namely a syn + ack packet, to the UDP client, and enters a syn _ recv state;
the UDP client receives a syn + ack packet of the UDP server and sends an acknowledgement packet ack (ack = k + 1) to the UDP server, and the UDP client and the UDP server enter an estabilished state;
the UDP client sends a UDP message to the UDP server, and the UDP client and the UDP server record the communication state of respective Socket;
and the Zabbix server side triggers the network quality alarm of the UDP link according to the set network trigger condition through the acquired network trigger information of the UDP link.
Optionally, the computer program when executed by the processor may further implement the steps of:
the UDP server side creates a Socket according to the address type, the Socket type and the protocol type;
the UDP server side binds an IP address and a port for Socket;
the UDP server side starts a Socket process to monitor a port number request of the UDP client side and receives a connection request sent by the UDP client side;
and the UDP client creates a Socket, judges whether the UDP client Socket needs to be subjected to multiprocess or not, and connects the UDP client Socket with the UDP server Socket according to the IP address and the port number of the UDP server.
Wherein, the step still includes:
the Zabbix server configures monitoring item information and trigger information monitored by a UDP link;
the Zabbix client calls a locally defined monitoring item udp.loss function key value through a shell script, and network state information is acquired according to the udp.loss function key value and the parameter of the parameter transmission host;
the Zabbix client side periodically calls the network state information and acquires network trigger information according to the network state information;
and the Zabbix server calls the network trigger information through the shell script and triggers the network quality alarm of the UDP link according to the network trigger condition set by the trigger.
Wherein, the communication state information of the Socket includes:
the method comprises the following steps of RTT average round trip time, RTT minimum round trip time, RTT maximum round trip time, total UDP sending packet quantity, total UDP lost packet quantity, target host name, target host IP address, target host communication port and source host IP address.
The computer-readable storage medium includes: permanent and non-permanent, removable and non-removable media may be tangible devices that retain and store instructions for use by an instruction execution apparatus. The computer-readable storage medium includes: electronic memory devices, magnetic memory devices, optical memory devices, electromagnetic memory devices, semiconductor memory devices, and any suitable combination of the foregoing. The computer-readable storage medium includes: phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), non-volatile random access memory (NVRAM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic tape cartridge storage, magnetic tape disk storage or other magnetic storage devices, memory sticks, mechanically encoded devices (e.g., punched cards or raised structures in a groove having instructions recorded thereon), or any other non-transmission medium useful for storing information that may be accessed by a computing device. As defined in embodiments of the present invention, the computer-readable storage medium does not include transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses traveling through a fiber optic cable), or electrical signals transmitted through a wire.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed in the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating the interchangeability of hardware and software. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer program instructions. The computer program instructions comprise: assembly instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, integrated circuit configuration data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as: smalltalk, C + + and procedural programming languages, such as: c or a similar programming language.
When the computer program instructions are loaded and executed on a computer, which may be a computer, a special purpose computer, a network of computers, or other editable apparatus, all or a portion of the procedures or functions described herein may be performed, in accordance with the embodiments of the invention. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, such as: the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, twisted pair, fiber optic, Digital Subscriber Line (DSL)), or wirelessly (e.g., infrared, wireless, microwave). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device including one or more available media integrated servers, data centers, and the like. The usable medium may be a magnetic medium (e.g., floppy disk, magnetic tape), an optical medium (e.g., optical disk), or a semiconductor medium (e.g., Solid State Drive (SSD)), among others. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing embodiments of the method of the present invention, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, electronic device and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is merely a logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electrical, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to solve the problem to be solved by the embodiment of the invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention may be substantially or partially contributed by the prior art, or all or part of the technical solutions may be embodied in a software product stored in a storage medium and including instructions for causing a computer device (including a personal computer, a server, a data center, or other network devices) to execute all or part of the steps of the methods of the embodiments of the present invention. And the storage medium includes various media that can store the program code as listed in the foregoing.
The above description is only a specific implementation of the embodiments of the present invention, but the scope of the embodiments of the present invention is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the embodiments of the present invention, and all such changes or substitutions should be covered by the scope of the embodiments of the present invention. Therefore, the protection scope of the embodiments of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A UDP link monitoring method, comprising:
a UDP server and a UDP client respectively create Socket;
the UDP client sends a syn packet to the UDP server, syn =1, and the UDP client enters a syn _ send state to wait for the UDP server to confirm;
the UDP server receives a syn packet of the UDP client, confirms ack = j +1, sends the syn packet to the UDP client, syn = k, namely the syn + ack packet, and enters a syn _ recv state;
the UDP client receives a syn + ack packet of the UDP server and sends an acknowledgement packet ack to the UDP server, wherein ack = k +1, and the UDP client and the UDP server enter an estabilished state;
the UDP client sends a UDP message to the UDP server, and the UDP client and the UDP server record the communication state of respective Socket;
and the Zabbix server side triggers the network quality alarm of the UDP link according to the set network trigger condition through the acquired network trigger information of the UDP link.
2. The method according to claim 1, wherein the step of creating Socket sockets by the UDP server and the UDP client respectively comprises:
the UDP server side creates a Socket according to the address type, the Socket type and the protocol type;
the UDP server side binds an IP address and a port for Socket;
the UDP server side starts a Socket process to monitor a port number request of the UDP client side and receives a connection request sent by the UDP client side;
and the UDP client creates a Socket, judges whether the UDP client Socket needs to be subjected to multi-process, and connects the UDP client Socket with the UDP server Socket according to the IP address and the port number of the UDP server.
3. The method of claim 1, further comprising:
the Zabbix server configures monitoring item information and trigger information monitored by a UDP link;
the Zabbix client calls a locally defined monitoring item udp.loss function key value through a shell script, and network state information is acquired according to the udp.loss function key value and the parameter of the parameter transmission host;
the Zabbix client side periodically calls the network state information and acquires network trigger information according to the network state information;
and the Zabbix server calls the network trigger information through the shell script and triggers the network quality alarm of the UDP link according to the network trigger condition set by the trigger.
4. The method of claim 1, wherein the communication state information of the Socket comprises:
RTT average round trip time, RTT minimum round trip time, RTT maximum round trip time, UDP total send packet number, UDP total lost packet number, target host name, target host IP address, target host communication port, and source host IP address.
5. A UDP link monitoring system, comprising: UDP server, UDP client and Zabbix server, its characterized in that:
the UDP server is used for creating a Socket, receiving a syn packet of the UDP client, confirming ack = j +1, sending the syn packet to the UDP client, wherein the syn = k is a syn + ack packet, and entering a syn _ recv state; entering an aborted state upon receiving an acknowledgement packet ack, ack = k + 1; recording the communication state of the Socket after receiving the UDP message;
the UDP client is used for creating a Socket, sending a syn packet to the UDP server, enabling syn =1, and entering a syn _ send state to wait for the UDP server to confirm; receiving a syn + ack packet of the UDP server, sending an acknowledgement packet ack to the UDP server, wherein ack = k +1, and entering an estabilished state; sending a UDP message to the UDP server, and recording the communication state of the Socket;
and the Zabbix server is used for triggering the network quality alarm of the UDP link according to the set triggering condition through the acquired network triggering information of the UDP link.
6. The system of claim 5, wherein the UDP server-side comprises:
the type creating module is used for creating a Socket according to the address type, the Socket type and the protocol type;
the port binding module is used for binding the IP address and the port for the Socket;
the starting monitoring module is used for starting a Socket process to monitor the port number request of the UDP client and receiving a connection request sent by the UDP client;
the UDP client includes:
the creation judgment module is used for creating a Socket and judging whether the Socket of the UDP client needs to be subjected to multiple processes;
and the Socket connection module is used for connecting the UDP client Socket with the UDP server Socket according to the IP address and the port number of the UDP server.
7. The system of claim 5, further comprising a Zabbix client:
the Zabbix client is used for calling a locally defined monitoring item udp.loss function key value through a shell script and acquiring network state information according to the udp.loss function key value and the parameter of the parameter transmission host; the network state information is periodically called, and network trigger information is obtained according to the network state information;
the Zabbix server is used for configuring monitoring item information and trigger information monitored by a UDP link; and calling the network trigger information through the shell script, and triggering network quality alarm of the UDP link according to the network trigger condition set by the trigger.
8. The system of claim 5, wherein the communication state information of the Socket comprises:
RTT average round trip time, RTT minimum round trip time, RTT maximum round trip time, UDP total send packet number, UDP total lost packet number, target host name, target host IP address, target host communication port, and source host IP address.
9. An electronic device comprising a bus, a transceiver, a memory, a processor and a computer program stored on the memory and executable on the processor, the transceiver, the memory and the processor being connected via the bus, characterized in that the computer program realizes the steps in the UDP link monitoring method according to any one of claims 1 to 4 when executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps in the UDP link monitoring method according to any one of claims 1 to 4.
CN202110435004.2A 2021-04-22 2021-04-22 UDP link monitoring method and system and electronic equipment Pending CN112838966A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110435004.2A CN112838966A (en) 2021-04-22 2021-04-22 UDP link monitoring method and system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110435004.2A CN112838966A (en) 2021-04-22 2021-04-22 UDP link monitoring method and system and electronic equipment

Publications (1)

Publication Number Publication Date
CN112838966A true CN112838966A (en) 2021-05-25

Family

ID=75929856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110435004.2A Pending CN112838966A (en) 2021-04-22 2021-04-22 UDP link monitoring method and system and electronic equipment

Country Status (1)

Country Link
CN (1) CN112838966A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113411228A (en) * 2021-06-04 2021-09-17 网宿科技股份有限公司 Network condition determining method and server
CN113890838A (en) * 2021-09-24 2022-01-04 天津津航计算技术研究所 Network connectivity judgment method based on ICMP (Internet control protocol)
CN114070877A (en) * 2021-11-18 2022-02-18 北京云上曲率科技有限公司 Data transmission method based on user datagram protocol, server and client
CN114338477A (en) * 2021-12-17 2022-04-12 中汽创智科技有限公司 Communication link monitoring method, device, equipment and storage medium
CN114844804A (en) * 2022-06-01 2022-08-02 重庆奥普泰通信技术有限公司 Network measurement method, system, electronic device and computer readable storage medium
CN114980300A (en) * 2022-05-23 2022-08-30 昆山中科晶上信息技术有限公司 Method for measuring and calculating industrial grade 5G end-to-end time delay distribution based on UDP protocol and terminal equipment
CN115017431A (en) * 2022-07-05 2022-09-06 飞书深诺数字科技(上海)股份有限公司 Method and device for collecting customer application links and electronic equipment
CN115695577A (en) * 2021-07-31 2023-02-03 花瓣云科技有限公司 UDP data transmission method and related equipment
CN116566875A (en) * 2023-06-25 2023-08-08 深圳市联瑞电子有限公司 Network card testing system and method
CN119420825A (en) * 2025-01-06 2025-02-11 麒麟软件有限公司 A TCP socket local network communication optimization method and system

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020108122A1 (en) * 2001-02-02 2002-08-08 Rachad Alao Digital television application protocol for interactive television
US20020108121A1 (en) * 2001-02-02 2002-08-08 Rachad Alao Service gateway for interactive television
US20020120676A1 (en) * 2001-02-23 2002-08-29 Biondi James W. Network monitoring systems for medical devices
CN1977494A (en) * 2004-02-11 2007-06-06 方案有限公司 A server, system and method for providing access to a public network through an internal network of a multi-system operator
CN101094136A (en) * 2006-06-23 2007-12-26 阿尔卡特公司 System and method for supporting playlist guidance of digital multimedia content
US20090177763A1 (en) * 2008-01-04 2009-07-09 Aten International Co., Ltd. Data restore device and system and method for restoring configuration data
CN101599992A (en) * 2009-05-27 2009-12-09 南京欣网视讯科技股份有限公司 P2PNAT traversal scheme based on SIP
CN103685223A (en) * 2012-09-11 2014-03-26 波音公司 Detection of infected network devices via analysis of responseless outgoing network traffic
CN107408142A (en) * 2015-02-25 2017-11-28 昂沙普公司 3D CAD systems based on multi-user's cloud parameter attribute
CN108632360A (en) * 2018-04-12 2018-10-09 北京百悟科技有限公司 A kind of virtual cloud terminal and virtual cloud terminal server
CN110247848A (en) * 2018-03-09 2019-09-17 华为技术有限公司 Send method, the network equipment and the computer readable storage medium of message
CN111002310A (en) * 2019-12-17 2020-04-14 上海嘉奥信息科技发展有限公司 Data communication method and system suitable for mechanical arm and PC
CN111049681A (en) * 2019-12-05 2020-04-21 江苏艾佳家居用品有限公司 Method and system for monitoring SLA link tracking based on zabbix
CN112134754A (en) * 2020-09-18 2020-12-25 中移(杭州)信息技术有限公司 Pressure testing method and device, network equipment and storage medium
CN112671760A (en) * 2020-12-22 2021-04-16 平安普惠企业管理有限公司 Socket-based client cross-platform network communication method and related equipment thereof

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020108122A1 (en) * 2001-02-02 2002-08-08 Rachad Alao Digital television application protocol for interactive television
US20020108121A1 (en) * 2001-02-02 2002-08-08 Rachad Alao Service gateway for interactive television
US20020120676A1 (en) * 2001-02-23 2002-08-29 Biondi James W. Network monitoring systems for medical devices
CN1977494A (en) * 2004-02-11 2007-06-06 方案有限公司 A server, system and method for providing access to a public network through an internal network of a multi-system operator
CN101094136A (en) * 2006-06-23 2007-12-26 阿尔卡特公司 System and method for supporting playlist guidance of digital multimedia content
US20090177763A1 (en) * 2008-01-04 2009-07-09 Aten International Co., Ltd. Data restore device and system and method for restoring configuration data
CN101599992A (en) * 2009-05-27 2009-12-09 南京欣网视讯科技股份有限公司 P2PNAT traversal scheme based on SIP
CN103685223A (en) * 2012-09-11 2014-03-26 波音公司 Detection of infected network devices via analysis of responseless outgoing network traffic
CN107408142A (en) * 2015-02-25 2017-11-28 昂沙普公司 3D CAD systems based on multi-user's cloud parameter attribute
CN110247848A (en) * 2018-03-09 2019-09-17 华为技术有限公司 Send method, the network equipment and the computer readable storage medium of message
CN108632360A (en) * 2018-04-12 2018-10-09 北京百悟科技有限公司 A kind of virtual cloud terminal and virtual cloud terminal server
CN111049681A (en) * 2019-12-05 2020-04-21 江苏艾佳家居用品有限公司 Method and system for monitoring SLA link tracking based on zabbix
CN111002310A (en) * 2019-12-17 2020-04-14 上海嘉奥信息科技发展有限公司 Data communication method and system suitable for mechanical arm and PC
CN112134754A (en) * 2020-09-18 2020-12-25 中移(杭州)信息技术有限公司 Pressure testing method and device, network equipment and storage medium
CN112671760A (en) * 2020-12-22 2021-04-16 平安普惠企业管理有限公司 Socket-based client cross-platform network communication method and related equipment thereof

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
MING XUE等: "《The Socket Programming and Software Design for Communication Based on》", 《PACIFIC-ASIA CONFERENCE ON CIRCUITS》 *
OPSS: "《zabbix自定义监控tcp socket》", 《博客园》 *
冯浩: "《基于UDP的监控系统可靠传输协议的设计与实现", 《信息科技缉》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113411228A (en) * 2021-06-04 2021-09-17 网宿科技股份有限公司 Network condition determining method and server
CN115695577A (en) * 2021-07-31 2023-02-03 花瓣云科技有限公司 UDP data transmission method and related equipment
CN113890838A (en) * 2021-09-24 2022-01-04 天津津航计算技术研究所 Network connectivity judgment method based on ICMP (Internet control protocol)
CN114070877A (en) * 2021-11-18 2022-02-18 北京云上曲率科技有限公司 Data transmission method based on user datagram protocol, server and client
CN114070877B (en) * 2021-11-18 2023-10-20 北京云上曲率科技有限公司 Data transmission method, server and client based on user datagram protocol
CN114338477A (en) * 2021-12-17 2022-04-12 中汽创智科技有限公司 Communication link monitoring method, device, equipment and storage medium
CN114338477B (en) * 2021-12-17 2024-04-19 中汽创智科技有限公司 Communication link monitoring method, device, equipment and storage medium
CN114980300A (en) * 2022-05-23 2022-08-30 昆山中科晶上信息技术有限公司 Method for measuring and calculating industrial grade 5G end-to-end time delay distribution based on UDP protocol and terminal equipment
CN114980300B (en) * 2022-05-23 2024-02-06 昆山中科晶上信息技术有限公司 Method for measuring and calculating industrial grade 5G end-to-end time delay distribution based on UDP protocol and terminal equipment
CN114844804A (en) * 2022-06-01 2022-08-02 重庆奥普泰通信技术有限公司 Network measurement method, system, electronic device and computer readable storage medium
CN115017431A (en) * 2022-07-05 2022-09-06 飞书深诺数字科技(上海)股份有限公司 Method and device for collecting customer application links and electronic equipment
CN116566875A (en) * 2023-06-25 2023-08-08 深圳市联瑞电子有限公司 Network card testing system and method
CN116566875B (en) * 2023-06-25 2024-10-08 深圳市联瑞电子有限公司 Network card testing system and method
CN119420825A (en) * 2025-01-06 2025-02-11 麒麟软件有限公司 A TCP socket local network communication optimization method and system
CN119420825B (en) * 2025-01-06 2025-04-08 麒麟软件有限公司 TCP socket local network communication optimization method and system

Similar Documents

Publication Publication Date Title
CN112838966A (en) UDP link monitoring method and system and electronic equipment
US6912588B1 (en) System and method for managing client requests in client-server networks
US7979528B2 (en) System and method for traversing firewalls, NATs, and proxies with rich media communications and other application protocols
US7990866B2 (en) Server device, method for controlling a server device, and method for establishing a connection using the server device
US8544025B2 (en) Efficient data transfer on local network connections using a pseudo socket layer
US8032641B2 (en) Assymmetric traffic flow detection
US9838353B2 (en) Communication across network address translation
EP2908491A1 (en) A communication system for transmitting data under a tunnel protocol
US20020133598A1 (en) Network communication
US20070240209A1 (en) Session persistence on a wireless network
US9516114B2 (en) Data packet transmission method and related device and system
JP6444988B2 (en) Communication system using HTTP
Rhodes et al. Foundations of Python network programming
JP2017118545A5 (en)
CN110177128A (en) Data transmission system and method for establishing VPN connection, terminal and VPN proxy thereof
CN115134553A (en) Data transmission method and device, electronic equipment and storage medium
US11522979B2 (en) Transmission control protocol (TCP) acknowledgement (ACK) packet suppression
US20070288645A1 (en) Method and System for Persistent and Reliable Data Transmission
CN116032807B (en) Detection method, detection device, electronic equipment and storage medium
JP2007180686A (en) Relay communication apparatus, storage medium, integrated circuit, and communication system
Sims et al. Handling a device changing from 3G to Wi-Fi without breaking established connections
EP3525412A1 (en) Improved connectionless data transport protocol
Seggelmann et al. DTLS mobility
CN114978643A (en) Communication method, network device and storage medium
CN115499345A (en) Data testing method and device, storage medium and computer product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210525

RJ01 Rejection of invention patent application after publication