CN1933427A - Network Heartbeat monitoring system based on UDP protocol and method thereof - Google Patents

Network Heartbeat monitoring system based on UDP protocol and method thereof Download PDF

Info

Publication number
CN1933427A
CN1933427A CN 200510029578 CN200510029578A CN1933427A CN 1933427 A CN1933427 A CN 1933427A CN 200510029578 CN200510029578 CN 200510029578 CN 200510029578 A CN200510029578 A CN 200510029578A CN 1933427 A CN1933427 A CN 1933427A
Authority
CN
China
Prior art keywords
heartbeat
network
udp
central
information
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
CN 200510029578
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.)
XINNA ADVERTISEMENT MEDIA CO Ltd SHANGHAI
Original Assignee
XINNA ADVERTISEMENT MEDIA CO Ltd SHANGHAI
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 XINNA ADVERTISEMENT MEDIA CO Ltd SHANGHAI filed Critical XINNA ADVERTISEMENT MEDIA CO Ltd SHANGHAI
Priority to CN 200510029578 priority Critical patent/CN1933427A/en
Publication of CN1933427A publication Critical patent/CN1933427A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

A method for monitoring heartbeat of network based on UDP protocol includes collecting state information and carrying out compression and package on collected information then sending it to conversion server of network address by network terminal unit at a fixed interval time, sending information to central heartbeat server for making decompression .

Description

Network Heartbeat monitoring system and method thereof based on udp protocol
Technical field
The present invention relates to computer network field, particularly computer network is controlled the field immediately, specifically is meant a kind of network Heartbeat monitoring system based on udp protocol.
Background technology
In the modern life, various network-termination devices are more and more, and its function also becomes increasingly complex and intellectuality, and these network-termination devices all must have a powerful central server system usually as Surveillance center, and in present every network terminal is used, what use " heartbeat " technology between central server system and customer terminal equipment also is not a lot, though use to some extent at instant communication field, but the compression of its UDP message package informatin and management yet are not very perfect, therefore can't satisfy the requirement of effectively instant control at a high speed, very unfavorable for the application development of present network-termination device like this, restricted the scope of network application simultaneously.
Summary of the invention
The objective of the invention is to have overcome above-mentioned shortcoming of the prior art, provide a kind of be suitable for catenet instant messaging and control system, can be in real time to network-termination device carry out condition monitoring and adjustment, be swift in response timely and effective, the resource occupying rate is low, working stability, wider network Heartbeat monitoring system and the method thereof based on udp protocol of applicable surface.
In order to realize above-mentioned purpose, network Heartbeat monitoring system and the method thereof based on udp protocol of the present invention is as follows:
Should be based on the network Heartbeat monitoring system of udp protocol, comprise FTP client FTP and the central server system that is connected by network, its principal character is, described FTP client FTP comprises the network address translation services device and is attached thereto several network-termination devices that connect by network, described central server system comprises central heartbeat server, the heartbeat manager, central authorities' task manager and central database server, described central heartbeat server, the heartbeat manager, central authorities' task manager and central database server are connected to each other in twos by network, and should be connected with described network address translation services device by network by central authorities' heartbeat server.
This network address translation services device based on the network Heartbeat monitoring system of udp protocol is connected with described network-termination device by LAN; Described central heartbeat server, heartbeat manager, central task manager and central database server are connected to each other in twos by LAN; Described central heartbeat server is connected with described network address translation services device by the internet.
The above-mentioned system of this use carries out the network Heartbeat method for supervising based on udp protocol, and its main feature is that described method may further comprise the steps:
(1) network-termination device is collected the state information of self at regular intervals and is compressed packing and handle, and uses udp protocol that the UDP heartbeat data packets is sent on the network address translation services device by network then;
(2) the network address translation services device carries out the address transition processing with the UDP heartbeat data package informatin of network-termination device transmission, be about to the IP address of network terminal equipment and IP address and the port that port translation is the network address translation services device, again this UDP heartbeat data package informatin by forwarded to central heartbeat server;
(3) central heartbeat server is given the heartbeat manager with message by forwarded after receiving corresponding UDP heartbeat data package informatin;
(4) the heartbeat manager carries out decompress(ion) checking processing to this UDP heartbeat data package informatin, then corresponding information is carried out format translate and handles;
(5) if information format is incorrect, then the heartbeat manager abandons current UDP heartbeat data packets, and sends the feedback information UDP message bag of UDP heartbeat data package informatin retransmission requesting to FTP client FTP;
(6), then relative recording information is forwarded to and writes database in the central database server if information format is correct;
(7) central task manager carries out sending to FTP client FTP the processing of respective feedback information UDP heartbeat data packets according to the relative recording information that writes in the central database server;
(8) the network address translation services device receives the feedback information UDP message bag of central server system by network, it is carried out reverse address conversion process, be about to the IP address of network address translation services device and IP address and the port that port translation is network terminal equipment;
(9) the network address translation services device sends to corresponding network-termination device with feedback information UDP message bag;
(10) network-termination device carries out corresponding subsequent processing according to this feedback information UDP message bag.
This UDP heartbeat data packets type of message based on the network Heartbeat method for supervising of udp protocol comprises log messages and heartbeat message, and described log messages comprises login request message and login answer message, and described login request message form is:
The logon operation sign indicating number Subscriber Number Crypted password Version
Message format is replied in described login:
The logon operation sign indicating number Conditional code The message explanation
This heartbeat message form is:
Command code Whether reply Message id Source ID Heartbeat message
Should it be 2 minutes based on the collection oneself state information of the network-termination device of the network Heartbeat method for supervising of udp protocol and the time interval that sends the UDP heartbeat data packets.
These network terminal data based on the network Heartbeat method for supervising of udp protocol are compressed the packing processing to state information and be may further comprise the steps:
(1) sets up the corresponding relation of character string---hexadecimal digit---ASCII character in the system in advance;
(2) system is converted to corresponding hexadecimal digit with the character string in the state information, and then is converted to ASCII character;
(3) system encrypts the ASCII character that obtains, and calculates the MD5 value of encrypting the back character;
(4) system packs together with the MD5 value to the information after encrypting.
This heartbeat manager based on the network Heartbeat method for supervising of udp protocol carries out decompress(ion) checking processing to this UDP heartbeat data package informatin and may further comprise the steps:
(1) sets up the corresponding relation of character string---hexadecimal digit---ASCII character in the system in advance;
(2) state information received of system docking detects its MD5 value, and the MD5 value of carrying with it again compares, if value equates then verification succeeds; Otherwise verification failure;
(3), and send the feedback information UDP message bag of UDP heartbeat data package informatin retransmission requesting to FTP client FTP if the verification failure then abandons current UDP heartbeat data packets;
(4) if verification succeeds then is decrypted the state information that obtains, obtain ASCII character;
(5) system is converted to corresponding hexadecimal digit with ASCII character, and then is converted to character string.
This relative recording information based on the network Heartbeat method for supervising of udp protocol is state information and IP address information.
This central task manager based on the network Heartbeat method for supervising of udp protocol carries out may further comprise the steps to the processing of FTP client FTP transmission respective feedback information UDP heartbeat data packets according to relative recording information:
(1) if all are normal for state information, then returns the affirmation information that central server system receives the success of FTP client FTP UDP heartbeat data packets;
(2) if state information has unusually, then return the state that corresponding update information is adjusted corresponding network terminal equipment in the FTP client FTP.
Further comprising the steps of in this method based on the network Heartbeat method for supervising of udp protocol:
Do not send the UDP heartbeat data packets if network-termination device is interior at the appointed time to central heartbeat server, then central heartbeat server inquires according to the IP address information of heartbeat last time record whether this network-termination device is online.
The network Heartbeat monitoring system and the method thereof based on udp protocol of this invention have been adopted, owing to monitor in real time by the UDP heartbeat data packets between network-termination device in this system and the central heartbeat server, and this UDP heartbeat data packets adopts the compress-encrypt mode, make this system and method be suitable for catenet instant messaging and control, can guarantee that client is connected with the long-term of service end, very high stability and autgmentability are arranged, can guarantee the normal operation at whole networking and the instant arrival of message, and the resource occupying rate is low, is applicable to all instant communicating system and real-time control systems based on the internet.
Description of drawings
Fig. 1 is client-server model system network topology structure figure.
Fig. 2 is the course of work schematic diagram of the network Heartbeat method for supervising based on udp protocol of the present invention.
Fig. 3 is the packing of UDP heartbeat data packets Information Compression and the decompress(ion) proof procedure schematic diagram of the network Heartbeat method for supervising based on udp protocol of the present invention.
Embodiment
In order more to be expressly understood technology contents of the present invention, at first introduce the more used prior aries of the present invention:
(1) based on the network service basic principle of udp protocol
Udp protocol is the abbreviation of English User Datagram Protocol, and promptly User Datagram Protoco (UDP) is mainly used to support those need transmit the network application of data between computer.The network application that comprises numerous Client of network teleconference system all needs to use udp protocol.Though UDP communication is insecure network information transfer, we can set up the reliable communication system of a cover based on udp protocol, are fully taking into account message numbering, message retransmission, message buffering is on the function bases such as message multicast, realize reliably high efficiency instant messages transmission.
(2) NAT penetrates basic principle (based on the network application of Internet)
In current Internet, ubiquity uses " agency " equipment to carry out network address translation (nat), and the reason that causes this phenomenon is the resource exhaustion crisis of IPV4 address space.Though the address assignment of asymmetric asymmetric and connective system are defined in the agency, formulate some special problems that caused but for end-to-end application program and agreement.Picture videoconference and multi-media network recreation.Even these problems still can exist in the IPV6 world, because NAT often is used [NAT-PT] as a kind of compatible mechanism of IPV4, and fire compartment wall will be still with ubiquity, even no longer need the NAT technology.At different network environments, employed through-transmission technique is also different, the most frequently used technology is " UDP holepunching ", it is the UDP udp hole punching, the UDP udp hole punching depends on by public fire compartment wall and cone NAT, allow suitable planned end-to-end application program " to burrow ", even after both sides' main frame all is in NAT by NAT.Also information directly can be sent over.
See also shown in Figure 1, client-server adopts hub-and-spoke configuration in this pattern, and server-server adopts peering structure, is a kind of very ripe topological structure, most of TCP/IP application systems, for example SMTP service, DNS service, WWW service etc. all are to use this pattern.
(1) applicability
As a general model, the communication model goes for wireless network and Internet goes up existing multiple systems.Model can be the application program on the Internet, also can be the application program of being transplanted on mobile phone and other various radio hand-held equipments.Instant messaging and the service of showing up can be that Internet goes up the ICQ service, can be the SMS (ShortMessage Service, SMS (Short Message Service)) etc. in the GSM standard.
(2) autgmentability
Model have a very strong autgmentability.Central server is adopted in the service of this model regulation, and central server can carry out aggregated structure.Promptly can there be a large amount of heartbeat servers and database server to carry out the matrix construction, have brought great autgmentability for so whole application;
(3) stability
Model has extremely strong stability, because this model must adopt central server, and the network of central server and stability all are quite high, after especially network being expanded, cluster server can reach 7*24 hour high performance network service.
, described in detail based on the network Heartbeat monitoring system of udp protocol and the technical scheme of method thereof as of the present invention especially exemplified by following examples.
See also shown in Figure 2ly, network element wherein have following:
(1) the terminal machine 1,2
The IP address information is 192.168.0.41, and 192.168.0.44 uses LAN IP address, and state is normal, and is online, waits for " heartbeat " next time.
(2) the NAT server 1
The IP address information is 202.114.23.123, uses global unique static ip address, and the terminal machine connects by this server goes up Internet, and carries out network address translation, is the information transfer between client and the server.
(3) central heartbeat server
Comprising central heartbeat server, heartbeat manager, central task manager, be responsible for specially and accept and handle the heartbeat message that client transmits, and come client is fed back accordingly according to the state of heartbeat message, to reach the purpose of instant control terminal.
(4) central database server
Store the state and the IP address information of every last heartbeat of machine, be used to keep the port binding of client and send effectiveness of information.
For selecting UDP information protocol form for use, mainly need to consider following factor:
(1) design requirement of instant message
1, the protocol requirement of instant message
Agreement is a series of step, and it comprises both sides or in many ways, the purpose that designs it is to accomplish a task.Instant communication protocol, the both sides of participation or be the entity of instant messaging in many ways.Agreement must be both sides or participate in many ways, once the unaided agreement that do not include in side.In the process of protocol action, the necessary exchange message of both sides comprises control information, state information or the like like this.The form of these information must be the agreement of agreement participant and follow.Good protocol requirement is clear, complete, and all must there be clear and definite definition in each step, and can not lead to misunderstanding; Must stipulate concrete action to every kind of possible situation.
2, the demand for security of instant message
A transfers immediate news M to B
(1) if can't send, A must receive affirmation;
(2) if M has been delivered, B can only accept M once;
(3) agreement is necessary for B provides method to check that A has sent this information;
(4) agreement must allow B to use another instant messages, return information;
(5) agreement can not expose the IP address of A;
(6) agreement is necessary for A provides method to guarantee do not have other individual C can see content M;
(7) agreement is necessary for A provides method to guarantee do not have other individual C can distort M;
(8) agreement is necessary for B provides the method discriminating to distort;
(9) B must can read M, and B can prevent that A from sending information to him;
(10) agreement must allow A to use present DSS that information is signed;
3, instant messages is encrypted and is differentiated
(1) agreement must provide the confidence level that method guarantees notice and instant message, is not monitored or destroys;
(2) agreement must provide method to guarantee the confidence level of notice and instant message, is not rearranged preface or playback;
(3) agreement must provide method to guarantee that notice and instant message are by correct entity reading;
(4) agreement must allow the own using method of client to guarantee not intercepted and captured of information, is not reset and deciphers.
(2) the basic design of instant message
The message of each request all should have an ID, and identifying each different message, and the ID of the message of each answer must be consistent with its ID that asks.
Each message all must comprise a command code.As the message opcode of landing can be 0x22.
For operating result being confirmed the message of returning from server of each client-requested must comprise a conditional code.Conditional code can be operated successfully as 200 expressions with reference to the conditional code of http agreement.
(3) concrete message semantic definition
1, login message
Client-requested is landed, and Crypted password uses the shal algorithm:
The logon operation sign indicating number Subscriber Number Crypted password Version
Server is replied:
The logon operation sign indicating number Conditional code The message explanation
If the success status sign indicating number is 200, if password or user name mistake, conditional code is 401,307 for being redirected, must with on the address that will be redirected.
2, heartbeat message
Command code Whether reply Message id Source ID Heartbeat message
Command code is 2, and transmission frequency is 2 minutes/time.
The course of work of whole network Heartbeat monitoring system based on udp protocol may further comprise the steps:
The first step: terminating machine 1 with oneself state information collection good after, the compress technique of using EnumHelper to provide is compressed packing, and uses the udp port 2000 of terminal itself, and the UDP message bag is sent on the LAN server NAT server 1;
Second step: NAT server 1 carries out address transition with the UDP message information that terminating machine 1 is sent, as terminating machine 1 is that 2000 ports by its this machine send, after address transition, its IP address information becomes 202.114.23.123:6000 accordingly, promptly uses the IP address and the port of NAT server 1; After address transition is finished, again the information of terminating machine 1 is forwarded on the central heartbeat server;
The 3rd step: central heartbeat server is handed to the heartbeat manager with message after the heartbeat message that receives terminating machine 1, and the heartbeat manager carries out decompress(ion) and MD5 checking to UDP information, and information is translated;
The 4th step: if information format is correct, then state information and IP address information are write database server, if terminating machine 1 is not reported heartbeat to server timely, then whether server can come the inquiry terminal machine online according to the address of heartbeat last time;
The 5th step: central task manager returns corresponding feedback information according to the state information of heartbeat manager translation, if all are normal, then only return the affirmation information that server receives client heartbeat success, if client has unusually, then server end will be passed the state that corresponding update information is adjusted client back;
The 6th step: because the relation of network delay and data-bag lost, the situation of data failure can appear transmitting once in a while, if message format is incorrect, then central heartbeat manager can require terminating machine 1 that heartbeat message is resend and once give server, and this time the UDP heartbeat message that sends then will be lost and disregard;
The 7th step: NAT server 1 carries out address transition once more after receiving the feedback information of service end, information is sent on correct the terminating machine IP address and port.
Wherein see also shown in Figure 3 about UDP heartbeat data packets Information Compression packing and decompress(ion) proof procedure, present technique is used the enumeration type among the C# that long word is accorded with the serial type variable name and is combined with hexadecimal, convert American Standard Code for Information Interchange at last to, greatly reduce the length of UDP message, can carry out Object oriented programming very easily again simultaneously.
Public enum ExampleHexEnum { Login=0x22, // game server ASCII=" LogOff=0x23; // withdraw from server A SCII=# Online=0x24; // online ASCII=$ Offline=0x25; // ASCII=% Away=0x26 rolls off the production line; // leave ASCII=﹠ Busy=0x27; // busy ASCII=' Hide=0x28, // stealthy ASCII=(}
The first step: adopt the method for StringValueToEnum, character string type can be changed into corresponding enumeration type, just can be directly changed into enumeration type from configuration file or UDP character string to data like this, it is quite convenient to operate.
///<summary>///from Enum gets a String value arbitrarily, convert it into the enumeration type value ///</summary>///<param name=" protocolType "></param>///<param name=" enumStringValue "></param>///<returns></returns>///<example>ExampleNormalEnum status=(ExampleNormalEnum) EnumHelper.StringValueToEnum (typeof (ExampleNormalEnum), " Offline "); The value of obtaining is ExampleNormalEnum.Offline</example>Public static object StringValueToEnum (System.Type protocolType, string enumStringValue) { object myObject=Enum.Parse (protocolType, enumStringValue, true); Return myObject; }
Second step: use the EnumValueToASCIIString method that the enumeration type value is directly changed into the ASCII character value, so just can use the value after udp protocol will be changed to compress.
///<summary>///static method, according to enumeration type return the string value of ASCII ///</summary>///<param name=" protocolType ">Enumeration type</param>///<param name=" objectValue ">Enumerated value</param>///<returns>The ascii string value</returns>///<example>EnumHelper.EnumValueToASCIIString (typeof (ExampleHexEnum), ExampleHexEnum.Hide); The value that obtains is " ("</example>Public static string EnumValueToASCIIString (System.Type protocolType, object objectValue) { return HexStringToASCIIString (EnumValueToHexString (protocolType, objectValue)); }
The 3rd step: through as above compression, such as " Offline " be 7 ascii characters, conversion just has only 1 ASCII character " % " later, great compression ratio and high security are arranged, we encrypt the ASCII after the compression again, and calculate the MD5 value of encrypting the back character, the information after will encrypting is at last carried the MD5 value and is sent to service end by Internet.
The 4th step: central server is after receiving the heartbeat message that client sends, to carry out MD5 verification, server end its MD5 value of message detection to information earlier to receiving, the MD5 value of carrying with it again compares, if value equates then verification succeeds, after the MD5 verification succeeds, UDP information is decrypted and decompresses, analyze UDP information and data again, if above any one walks out of existing error, server all will require client to resend heartbeat message.
The MD5 method of calibration is as follows:
///<summary>///calculate byte[] types value the MD5 value ///</summary>///<param name=" data ">Calculative object</param>///<returns>The MD5 value</returns>Public byte[] MD5hash (byte[] data) //This is one implementation of the abstract class MD5. MD5 md5=new MD5CryptoServiceProvider (); Byte[] result=md5.ComputeHash (data); Return result; }
The reversed in order of corresponding decompression process and compression process can be finished, and here no longer specifically gives unnecessary details, and the code of its method is as follows:
///<summary>///with ascii string convert to the value of Enum ///</summary>///<param name=" protocolType "></param>///<param name=" asciiString "></param>///<returns></returns>///<example>EnumHelper.ASCIIStringToEnumValue (typeof (ExampleHexEnum), " and (") value of obtaining " ExampleHexEnum.Hide "</example>Public static object ASCIIStringToEnumValue (System.Type protocolType, string asciiString) { return HexStringToEnumValue (protocolType, ASCIIStringToHexString (asciiString)); }
Of the present invention based on udp protocol network Heartbeat monitoring system and method in the middle of practical application, the heartbeat technology is applied in the IM MSN at first, but only relating to simple port keeps, can not guarantee control fully (this also is that common IM security mechanism institute is unallowed) to client, and the method that the present invention mentions, then can guarantee control fully to terminal, utilize this method can realize the running status of remote monitoring terminal, and according in real time " heartbeat " moving law and the offered load of this terminal of data analysis, according to the running status of terminal, server is made corresponding adjustment; Simultaneously, service end can receive a large amount of concurrent data, starts the relevant information that the manager of asynchronous multithreading comes processing terminal to send.In the method for the present invention, when also having UDP message and wrap in the penetrating NAT multitiered network how the correct network address with oneself send to the method for server, as the UDP udp hole punching, port maintenance technology etc. are applied in the instant control of the network terminal and can reach quite high validity and instantaneity.
Simultaneously, along with network more and more gos deep into all trades and professions, traditional industries have obtained transformation, originally depended on the system of phone or manual oversight, can replace by the instant tele-control system of use progressively, and network Heartbeat monitoring system and method very important technology in the tele-control system videlicet time the thereof based on udp protocol of the present invention, he can guarantee that client is connected with the long-term of service end, very high stability and autgmentability are arranged, can guarantee the normal operation at whole networking and the instant arrival of message, therefore, system and method for the present invention is suitable for and all instant communicating system and real-time control systems based on the Internet network.
In this specification, the present invention is described with reference to its certain embodiments.But, still can make various modifications and conversion obviously and not deviate from the spirit and scope of the present invention.Therefore, specification and accompanying drawing are regarded in an illustrative, rather than a restrictive.

Claims (10)

1, a kind of network Heartbeat monitoring system based on udp protocol, comprise FTP client FTP and the central server system that is connected by network, it is characterized in that, described FTP client FTP comprises the network address translation services device and is attached thereto several network-termination devices that connect by network, described central server system comprises central heartbeat server, the heartbeat manager, central authorities' task manager and central database server, described central heartbeat server, the heartbeat manager, central authorities' task manager and central database server are connected to each other in twos by network, and should be connected with described network address translation services device by network by central authorities' heartbeat server.
2, the network Heartbeat monitoring system based on udp protocol according to claim 1 is characterized in that, described network address translation services device is connected with described network-termination device by LAN; Described central heartbeat server, heartbeat manager, central task manager and central database server are connected to each other in twos by LAN; Described central heartbeat server is connected with described network address translation services device by the internet.
3, a kind of described system of claim 1 that uses carries out network Heartbeat method for supervising based on udp protocol, it is characterized in that described method may further comprise the steps:
(1) network-termination device is collected the state information of self at regular intervals and is compressed packing and handle, and uses udp protocol that the UDP heartbeat data packets is sent on the network address translation services device by network then;
(2) the network address translation services device carries out the address transition processing with the UDP heartbeat data package informatin of network-termination device transmission, be about to the IP address of network terminal equipment and IP address and the port that port translation is the network address translation services device, again this UDP heartbeat data package informatin by forwarded to central heartbeat server;
(3) central heartbeat server is given the heartbeat manager with message by forwarded after receiving corresponding UDP heartbeat data package informatin;
(4) the heartbeat manager carries out decompress(ion) checking processing to this UDP heartbeat data package informatin, then corresponding information is carried out format translate and handles;
(5) if information format is incorrect, then the heartbeat manager abandons current UDP heartbeat data packets, and sends the feedback information UDP message bag of UDP heartbeat data package informatin retransmission requesting to FTP client FTP;
(6), then relative recording information is forwarded to and writes database in the central database server if information format is correct;
(7) central task manager carries out sending to FTP client FTP the processing of respective feedback information UDP heartbeat data packets according to the relative recording information that writes in the central database server;
(8) the network address translation services device receives the feedback information UDP message bag of central server system by network, it is carried out reverse address conversion process, be about to the IP address of network address translation services device and IP address and the port that port translation is network terminal equipment;
(9) the network address translation services device sends to corresponding network-termination device with feedback information UDP message bag;
(10) network-termination device carries out corresponding subsequent processing according to this feedback information UDP message bag.
4, the network Heartbeat method for supervising based on udp protocol according to claim 3, it is characterized in that, described UDP heartbeat data packets type of message comprises log messages and heartbeat message, described log messages comprises login request message and login answer message, and described login request message form is: The logon operation sign indicating number Subscriber Number Crypted password Version
Message format is replied in described login: The logon operation sign indicating number Conditional code The message explanation
This heartbeat message form is: Command code Whether reply Message id Source ID Heartbeat message
5, the network Heartbeat method for supervising based on udp protocol according to claim 3 is characterized in that, the collection oneself state information of described network-termination device and the time interval that sends the UDP heartbeat data packets are 2 minutes.
According to claim 3,4 or 5 described network Heartbeat method for supervising, it is characterized in that 6, described network terminal data are compressed the packing processing to state information and be may further comprise the steps based on udp protocol:
(1) sets up the corresponding relation of character string---hexadecimal digit---ASCII character in the system in advance;
(2) system is converted to corresponding hexadecimal digit with the character string in the state information, and then is converted to ASCII character;
(3) system encrypts the ASCII character that obtains, and calculates the MD5 value of encrypting the back character;
(4) system packs together with the MD5 value to the information after encrypting.
7, the network Heartbeat method for supervising based on udp protocol according to claim 6 is characterized in that, described heartbeat manager carries out decompress(ion) checking processing to this UDP heartbeat data package informatin and may further comprise the steps:
(1) sets up the corresponding relation of character string---hexadecimal digit---ASCII character in the system in advance;
(2) state information received of system docking detects its MD5 value, and the MD5 value of carrying with it again compares, if value equates then verification succeeds; Otherwise verification failure;
(3), and send the feedback information UDP message bag of UDP heartbeat data package informatin retransmission requesting to FTP client FTP if the verification failure then abandons current UDP heartbeat data packets;
(4) if verification succeeds then is decrypted the state information that obtains, obtain ASCII character;
(5) system is converted to corresponding hexadecimal digit with ASCII character, and then is converted to character string.
8, according to claim 3,4 or 5 described network Heartbeat method for supervising, it is characterized in that described relative recording information is state information and IP address information based on udp protocol.
9, the network Heartbeat method for supervising based on udp protocol according to claim 8, it is characterized in that described central task manager carries out may further comprise the steps to the processing of FTP client FTP transmission respective feedback information UDP heartbeat data packets according to relative recording information:
(1) if all are normal for state information, then returns the affirmation information that central server system receives the success of FTP client FTP UDP heartbeat data packets;
(2) if state information has unusually, then return the state that corresponding update information is adjusted corresponding network terminal equipment in the FTP client FTP.
10, the network Heartbeat method for supervising based on udp protocol according to claim 8 is characterized in that, and is further comprising the steps of in the described method:
Do not send the UDP heartbeat data packets if network-termination device is interior at the appointed time to central heartbeat server, then central heartbeat server inquires according to the IP address information of heartbeat last time record whether this network-termination device is online.
CN 200510029578 2005-09-12 2005-09-12 Network Heartbeat monitoring system based on UDP protocol and method thereof Pending CN1933427A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200510029578 CN1933427A (en) 2005-09-12 2005-09-12 Network Heartbeat monitoring system based on UDP protocol and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200510029578 CN1933427A (en) 2005-09-12 2005-09-12 Network Heartbeat monitoring system based on UDP protocol and method thereof

Publications (1)

Publication Number Publication Date
CN1933427A true CN1933427A (en) 2007-03-21

Family

ID=37879059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200510029578 Pending CN1933427A (en) 2005-09-12 2005-09-12 Network Heartbeat monitoring system based on UDP protocol and method thereof

Country Status (1)

Country Link
CN (1) CN1933427A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488966A (en) * 2009-01-14 2009-07-22 深圳市同洲电子股份有限公司 Video service system
WO2011000271A1 (en) * 2009-07-02 2011-01-06 中兴通讯股份有限公司 Method and device for acquiring connection condition of user-plane
CN101106535B (en) * 2007-08-14 2011-04-13 华为技术有限公司 A method, server and system for heartbeat mechanism
CN101605130B (en) * 2009-07-20 2012-04-18 杭州华三通信技术有限公司 Heartbeat handshake method and heartbeat handshake system
CN101764836B (en) * 2008-12-23 2013-08-07 北京大学深圳研究生院 Distributed heartbeat server framework and progress processing method
CN103338115A (en) * 2012-03-02 2013-10-02 株式会社Pfu Information processing system, management terminal device, and information processing device
CN105446852A (en) * 2014-09-28 2016-03-30 中国航空工业集团公司西安飞机设计研究所 High reliability cascaded heartbeat design method
CN105574021A (en) * 2014-10-14 2016-05-11 北京神州泰岳软件股份有限公司 Data compression method and device of database
CN105577410A (en) * 2014-10-16 2016-05-11 中兴通讯股份有限公司 Real-time terminal state refreshing method and apparatus thereof
CN105827697A (en) * 2016-03-14 2016-08-03 广州趣丸网络科技有限公司 User off-line detection method and user off-line detection system
CN106331198A (en) * 2015-06-29 2017-01-11 中兴通讯股份有限公司 NAT traversal method and device
CN106712993A (en) * 2015-11-16 2017-05-24 任子行网络技术股份有限公司 Method and system for managing auditing device
CN107612789A (en) * 2017-11-09 2018-01-19 北京奇艺世纪科技有限公司 The heartbeat interval adjusting method and device of a kind of client
CN109660426A (en) * 2018-12-14 2019-04-19 泰康保险集团股份有限公司 Monitoring method and system, computer-readable medium and electronic equipment
CN110557658A (en) * 2018-05-31 2019-12-10 视联动力信息技术股份有限公司 Monitoring system and method
CN112350792A (en) * 2020-09-27 2021-02-09 福建新大陆通信科技股份有限公司 Emergency broadcast data forwarding multiplexing method

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101106535B (en) * 2007-08-14 2011-04-13 华为技术有限公司 A method, server and system for heartbeat mechanism
CN101764836B (en) * 2008-12-23 2013-08-07 北京大学深圳研究生院 Distributed heartbeat server framework and progress processing method
CN101488966A (en) * 2009-01-14 2009-07-22 深圳市同洲电子股份有限公司 Video service system
WO2011000271A1 (en) * 2009-07-02 2011-01-06 中兴通讯股份有限公司 Method and device for acquiring connection condition of user-plane
CN101605130B (en) * 2009-07-20 2012-04-18 杭州华三通信技术有限公司 Heartbeat handshake method and heartbeat handshake system
CN103338115B (en) * 2012-03-02 2016-12-28 株式会社Pfu Information processing system, management termination, information processor
CN103338115A (en) * 2012-03-02 2013-10-02 株式会社Pfu Information processing system, management terminal device, and information processing device
US9219618B2 (en) 2012-03-02 2015-12-22 Pfu Limited Information processing system, information processing device, management terminal device, and computer readable medium
CN105446852B (en) * 2014-09-28 2018-04-10 中国航空工业集团公司西安飞机设计研究所 A kind of tandem type heartbeat design method
CN105446852A (en) * 2014-09-28 2016-03-30 中国航空工业集团公司西安飞机设计研究所 High reliability cascaded heartbeat design method
CN105574021A (en) * 2014-10-14 2016-05-11 北京神州泰岳软件股份有限公司 Data compression method and device of database
CN105577410A (en) * 2014-10-16 2016-05-11 中兴通讯股份有限公司 Real-time terminal state refreshing method and apparatus thereof
CN106331198A (en) * 2015-06-29 2017-01-11 中兴通讯股份有限公司 NAT traversal method and device
CN106331198B (en) * 2015-06-29 2020-04-21 中兴通讯股份有限公司 NAT (network Address translation) penetration method and device
CN106712993A (en) * 2015-11-16 2017-05-24 任子行网络技术股份有限公司 Method and system for managing auditing device
CN105827697A (en) * 2016-03-14 2016-08-03 广州趣丸网络科技有限公司 User off-line detection method and user off-line detection system
CN107612789A (en) * 2017-11-09 2018-01-19 北京奇艺世纪科技有限公司 The heartbeat interval adjusting method and device of a kind of client
CN107612789B (en) * 2017-11-09 2020-08-28 北京奇艺世纪科技有限公司 Heartbeat interval adjusting method and device for client
CN110557658A (en) * 2018-05-31 2019-12-10 视联动力信息技术股份有限公司 Monitoring system and method
CN109660426A (en) * 2018-12-14 2019-04-19 泰康保险集团股份有限公司 Monitoring method and system, computer-readable medium and electronic equipment
CN112350792A (en) * 2020-09-27 2021-02-09 福建新大陆通信科技股份有限公司 Emergency broadcast data forwarding multiplexing method
CN112350792B (en) * 2020-09-27 2023-05-30 福建新大陆通信科技股份有限公司 Emergency broadcast data forwarding multiplexing method

Similar Documents

Publication Publication Date Title
CN1933427A (en) Network Heartbeat monitoring system based on UDP protocol and method thereof
CN1941748A (en) Group message transmitting method, transmitting end and system
US8145768B1 (en) Tuning of SSL session caches based on SSL session IDS
US7020457B2 (en) System and method for proxy-enabling a wireless device to an existing IP-based service
CN1531264A (en) Peer-to-peer communication apparatus and communication method
CN1498489A (en) Network communication
CN101304436A (en) Load balancing method, system and equipment for implementing application layer conversation persistency
CN101043346A (en) Method and system for adding label for contacts
US9015344B2 (en) Method, apparatus and system for managing private network remotely using session initiation protocol
CN1852328A (en) Diskless workstation start system and method
CN107124483A (en) Domain name analytic method and server
CN1578249A (en) Virtual connnectivity with local connection translation
Huang et al. Fine-grained dissection of WeChat in cellular networks
CN102917082B (en) Penetrate information push method and the system of network address translation
CN105323128B (en) method, device and system for accessing front-end equipment to server
CN108023877A (en) A kind of systems approach that the control of fire wall domain name is realized based on home gateway
CN107409047A (en) Encrypt the coordinate packet delivering of session
JP2007243825A (en) Controller to which programmable controller is applied
US20100333178A1 (en) System and Method for Unique User Identification via Correlation of Public and Private Data by a Third-Party
CN100574205C (en) A kind of method of setting up instant communication network neighbor
Yu et al. Traffic identification and overlay measurement of Skype
CN113965622A (en) Graphical agent method for bitmap display window based on X window
CN1905457A (en) Method and apparatus for quickly obtaining on-line enterprise information
CN106131243A (en) A kind of user&#39;s internet behavior auditing method and audit device
CN1941707A (en) Method and system for displaying user state and information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication