CN103546917B - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN103546917B
CN103546917B CN201310554547.1A CN201310554547A CN103546917B CN 103546917 B CN103546917 B CN 103546917B CN 201310554547 A CN201310554547 A CN 201310554547A CN 103546917 B CN103546917 B CN 103546917B
Authority
CN
China
Prior art keywords
message
udp
network element
monitoring server
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310554547.1A
Other languages
Chinese (zh)
Other versions
CN103546917A (en
Inventor
谢寿涛
肖建辉
许志兵
巩伟方
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310554547.1A priority Critical patent/CN103546917B/en
Publication of CN103546917A publication Critical patent/CN103546917A/en
Application granted granted Critical
Publication of CN103546917B publication Critical patent/CN103546917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present invention provides a kind of data transmission method and device, and wherein, the method includes: monitoring network element determines that the transmission control protocol TCP link between described monitoring network element and monitoring server breaks down;Described monitoring network element interrupts described TCP link with described monitoring server;Described monitoring network element is carried out data transmission with described monitoring server by UDP UDP link.Solve problems of the prior art, in network flash is frequent, carried out data transmission by UDP link, efficiency of transmission can be improved and save Internet resources.

Description

Data transmission method and device
Technical field
The present embodiments relate to communication technical field, particularly relate to a kind of data transmission method and device.
Background technology
In current mobile communications network, the monitoring server in monitoring system needs monitoring mobile communication Each monitoring network element in network, monitoring server is positioned at control centre's machine room, and monitors network element and be positioned at far End station point, website is apart from each other with control centre machine room, and respectively monitoring network element can pass through general packet Wireless traffic (General Packet Radio Service is called for short GPRS) network element accesses, with monitoring clothes Business device carries out information transmission communication.
In prior art, monitoring network element uses transmission control protocol with the transport layer of monitoring server (Transfer Control Protocol, is called for short: TCP) communicate, in monitoring network element and monitoring service After TCP link set up by device, monitoring network element and monitoring server carry out message transmissions, and monitoring network element is the most logical Crossing transmission business heartbeat message the most normal to detect this TCP link, if abnormal, then network element is fallen in monitoring Re-establish TCP link with monitoring server, the most again the message of unsuccessful transmission transmitted the most again, Ensure the reliability of message transmissions.
But, GPRS network flash frequently in the case of, TCP link produces substantial amounts of message weight Pass, reduce efficiency of transmission and waste Internet resources.
Summary of the invention
The embodiment of the present invention provides a kind of data transmission method and device, is used for improving efficiency of transmission and saving Internet resources.
First aspect, the embodiment of the present invention provides a kind of data transmission method, including: monitoring network element determines Transmission control protocol TCP link between described monitoring network element and monitoring server breaks down;Described prison Control network element interrupts described TCP link with described monitoring server;Described monitoring network element passes through user datagram Agreement UDP link carries out data transmission with described monitoring server.
In the first possible implementation of first aspect, described monitoring network element passes through user datagram Agreement UDP link carries out data transmission with described monitoring server, including: described monitoring network element is to described Monitoring server sends the first message request message, and described first message request message is used for request data report Literary composition;Described monitoring network element receives described monitoring server according to unit UDP message message length value and UDP N number of UDP message message that data-message transmission frequency sends, described N is whole more than or equal to 1 Number, described unit UDP message message length value represents the length value of each UDP message message, described UDP message message transmission frequency represents every first preset duration one UDP message message of transmission.
In conjunction with the first possible implementation of first aspect, the reality that the second in first aspect is possible In existing mode, described UDP message message also carries the mark of described UDP message message;Described method Also including: described monitoring network element determines M the UDP message message being not successfully received, described M is big In or equal to 1, and the integer less than or equal to described N;Described monitoring network element is to described monitoring service Device sends the first message retransmission request message, and described first message heavily asks message to include described M UDP The mark of data message, described first message retransmission request message is for M UDP described in request retransmission Data message;Described monitoring network element receives described monitoring server according to described UDP message message transmitting pin Described M the UDP message message that rate resends.
In the third possible implementation of first aspect, described monitoring network element passes through user datagram Agreement UDP link carries out data transmission with described monitoring server, including: described monitoring network element receives institute Stating the second message request message that monitoring server sends, described second message request message is used for number of request According to message, described second message request message includes unit UDP message message length value and UDP message Message transmissions frequency;Described monitoring network unit is according to described unit UDP message message length value, by described number According to generating K UDP message message, described K is the integer more than or equal to 1;Described monitoring network element According to described UDP message message transmission frequency, send described K UDP number to described monitoring server According to message.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible reality of first aspect In existing mode, described UDP message message also carries the mark of UDP message message;Described method is also wrapped Include: described monitoring network element receives the second message retransmission request message that described monitoring server sends, described Second message retransmission request message includes the mark of H UDP message message, described H for more than or etc. In 1, and the integer less than or equal to described K, described H UDP message message passes again for needs Defeated data message, described second message retransmission request message is for H UDP number described in request retransmission According to message;Described monitoring network unit, according to the mark of described H UDP message message, determines described H UDP message message;Described monitoring network unit is according to described UDP message message transmission frequency, to described prison Control server resends described H UDP message message.
In conjunction with any one possible implementation of first to the 4th kind of implementation of first aspect, In 5th kind of possible implementation of first aspect, described monitoring network element passes through UDP Before UDP link and described monitoring server carry out data transmission, also include: described monitoring network element is to institute State monitoring server and send UDP heartbeat message;Described monitoring network element receives what described monitoring server sent Solicitation message, described solicitation message is used for asking UDP detection messages, described detection request to disappear Breath includes detecting parameter, described detection parameter include always detecting duration, UDP detection messages at least one At least one transmission frequency of the UDP detection messages of length value and each length value;Described monitoring network element to Described monitoring server sends detection response message;Described monitoring network unit is according to described detection parameter, to institute State monitoring server and send described UDP detection messages.
In conjunction with first aspect or any one possible reality of first to the 5th kind of implementation of first aspect Existing mode, in the 6th kind of possible implementation of first aspect, also includes: described monitoring network element with Described monitoring server sets up described TCP link;Described monitoring network element is just determining described TCP link-recovery Often;Described monitoring network element is carried out data transmission with described monitoring server by described TCP link.
Second aspect, the embodiment of the present invention also provides for a kind of data transmission method, including: if monitoring network element And the transmission control protocol TCP link between monitoring server breaks down, the most described monitoring server with Described monitoring network element interrupts described TCP link;Described monitoring server passes through UDP UDP Link carries out data transmission with described monitoring network element.
In the first possible implementation of second aspect, described monitoring server passes through user data Before datagram protocol UDP link and described monitoring network element carry out data transmission, also include: described monitoring service Device determines unit UDP message message length value and UDP message message transmission frequency, described unit UDP Data message length value represents the length value of each UDP message message, described UDP message message transmissions Every first preset duration one the UDP message message of transmission of frequency representation;Described monitoring server passes through user Datagram protocol UDP link carries out data transmission with described monitoring network element, including: described monitoring server Described UDP is passed through according to described unit UDP message message length value and UDP message message transmission frequency Link carries out data transmission with described monitoring network element.
In conjunction with the first possible implementation of second aspect, the reality that the second in second aspect is possible In existing mode, described monitoring server is according to described unit UDP message message length value and UDP message Message transmissions frequency is carried out data transmission with described monitoring network element by described UDP link, including: described Monitoring server receives the first message request message that described monitoring network element sends, described first message request Message is used for request data message;Described monitoring server is according to described unit UDP message message length Value, by N number of for described data genaration UDP message message, described N is the integer more than or equal to 1; Described monitoring server, according to described UDP message message transmission frequency, sends described to described monitoring network element N number of UDP message message.
In conjunction with the implementation that the second of second aspect is possible, in the third possible reality of second aspect In existing mode, described UDP message message also carries the mark of described UDP message message;Described method Also include: described monitoring server receives the first message retransmission request message that described monitoring network element sends, Described first message heavily asks message to include the mark of M UDP message message, described M for more than or Equal to 1, and the integer less than or equal to described N, described M UDP message message is needs weight The data message of new transmission, described first message retransmission request message is for M UDP described in request retransmission Data message;Described monitoring server, according to the mark of described M UDP message message, determines described M UDP message message;Described monitoring server according to described UDP message message transmission frequency, to Described monitoring network element resends described M UDP message message.
In conjunction with the first possible implementation of second aspect, in the 4th kind of possible reality of second aspect In existing mode, described monitoring server is according to described unit UDP message message length value and UDP message Message transmissions frequency is carried out data transmission with described monitoring network element by described UDP link, including: described Monitoring server sends the second message request message, described second message request message to described monitoring network element For request data message, described second message request message includes described unit UDP message message length Value and UDP message message transmission frequency;Described monitoring server receives described monitoring network unit according to described list K the UDP datagram that position UDP message message length value and UDP message message transmission frequency send Literary composition, described K is the integer more than or equal to 1.
In conjunction with the 4th kind of possible implementation of second aspect, in the 5th kind of possible reality of second aspect In existing mode, described UDP message message also carries the mark of UDP message message;Described method is also wrapped Include: described monitoring server determines the mark of H the UDP message message being not successfully received, described H For more than or equal to 1, and the integer less than or equal to described K;Described monitoring server is to described prison Control network element sends the second message retransmission request message, and described second message retransmission request message includes described H The mark of individual UDP message message, described second message retransmission request message is for H described in request retransmission Individual UDP message message;Described monitoring server receives described monitoring network unit according to described UDP datagram Described H the UDP message message that literary composition transmission frequency resends.
In conjunction with any one possible implementation of first to the 5th kind of implementation of second aspect, In 6th kind of possible implementation of second aspect, described monitoring server determines that UDP message message is long Before angle value and transmission frequency, also include: described monitoring server receives the UDP that described monitoring network element sends Heartbeat message;Described monitoring server determines unit UDP message message length value and UDP message message Transmission frequency, including: described monitoring server is sent out to described monitoring network element according to described UDP heartbeat message Sending solicitation message, described solicitation message to be used for asking UDP detection messages, described detection is asked Message includes detecting parameter, described detection parameter include always detecting duration, at least the one of UDP detection messages At least one transmission frequency of the UDP detection messages of individual length value and each length value;Described monitoring service Device receives the detection response message that described monitoring network element sends;Described monitoring server receives described monitoring network The UDP detection messages that unit sends according to described detection parameter;Described monitoring server is according to described UDP The reception condition of detection messages, determines described unit UDP message message length value and UDP message message Transmission frequency, the reception condition of described UDP detection messages includes: the UDP detection report of each length value Literary composition acceptance rate under each transmission frequency.
In conjunction with second aspect or any one possible reality of first to the 6th kind of implementation of second aspect Existing mode, in the 7th kind of possible implementation of second aspect, also includes: described monitoring server Described TCP link is set up with described monitoring network element;If described TCP link-recovery is normal, the most described monitoring Server is carried out data transmission with described monitoring network element by described TCP link.
The third aspect, the embodiment of the present invention provides one monitoring network element, comprises determining that unit, for really Fixed transmission control protocol TCP link between described monitoring network element and monitoring server breaks down;Process Unit, for interrupting described TCP link with described monitoring server;Transmission unit, is used for passing through user Datagram protocol UDP link carries out data transmission with described monitoring server.
In the first possible implementation of the third aspect, described transmission unit is specifically for described Monitoring server sends the first message request message, and described first message request message is used for request data report Literary composition;And receive described monitoring server according to unit UDP message message length value and UDP datagram N number of UDP message message that literary composition transmission frequency sends, described N is the integer more than or equal to 1, institute State unit UDP message message length value and represent the length value of each UDP message message, described UDP number According to every first preset duration one the UDP message message of transmission of message transmissions frequency representation.
In conjunction with the first possible implementation of the third aspect, the reality that the second in the third aspect is possible In existing mode, described UDP message message also carries the mark of described UDP message message;Described transmission Unit is additionally operable to determine M the UDP message message being not successfully received, and described M is more than or equal to 1, And the integer less than or equal to described N;Send the first message retransmission request to described monitoring server to disappear Breath, described first message heavily asks message to include the mark of described M UDP message message, and described the One message retransmission request message is for M UDP message message described in request retransmission;And receive described Described M the UDP message that monitoring server resends according to described UDP message message transmission frequency Message.
In the third possible implementation of the third aspect, described transmission unit is specifically for receiving institute Stating the second message request message that monitoring server sends, described second message request message is used for number of request According to message, described second message request message includes unit UDP message message length value and UDP message Message transmissions frequency;According to described unit UDP message message length value, by described data genaration K UDP message message, described K is the integer more than or equal to 1;And according to described UDP datagram Literary composition transmission frequency, sends described K UDP message message to described monitoring server.
In conjunction with the third possible implementation of the third aspect, in the 4th kind of possible reality of the third aspect In existing mode, described UDP message message also carries the mark of UDP message message;Described transmission unit It is additionally operable to receive the second message retransmission request message that described monitoring server sends, described second message weight Passing request message and include the mark of H UDP message message, described H is more than or equal to 1 and little In or equal to the integer of described K, described H UDP message message is the datagram needing again to transmit Literary composition, described second message retransmission request message is for M UDP message message described in request retransmission;Root According to the mark of described H UDP message message, determine described H UDP message message;And according to Described UDP message message transmission frequency, resends described H UDP number to described monitoring server According to message.
In conjunction with any one possible implementation of first to the 4th kind of implementation of the third aspect, In 5th kind of possible implementation of the third aspect, also include: transmitting element, single for described transmission Before unit is carried out data transmission by UDP UDP link and described monitoring server, to institute State monitoring server and send UDP heartbeat message;The inspection that described monitoring server sends is received receiving unit After surveying request message, send detection response message to described monitoring server;And according to described detection ginseng Number, sends described UDP detection messages to described monitoring server;Receive unit, be used for receiving described prison The described solicitation message that control server sends, described solicitation message is used for asking UDP detection report Literary composition, described solicitation message includes detecting parameter, and described detection parameter includes always detecting duration, UDP At least one transmission of at least one length value of detection messages and the UDP detection messages of each length value Frequency.
In conjunction with the third aspect or any one possible reality of first to the 5th kind of implementation of the third aspect Existing mode, in the 6th kind of possible implementation of the third aspect, described processing unit is additionally operable to and institute State monitoring server and set up described TCP link;Described determine that unit is additionally operable to determine that described TCP link is extensive Multiple normal;Described transmission unit is additionally operable to carry out data by described TCP link and described monitoring server Transmission.
Fourth aspect, the embodiment of the present invention provides a kind of monitoring server, including: processing unit, it is used for If the transmission control protocol TCP link between monitoring network element and monitoring server breaks down, then with described Monitoring network element interrupts described TCP link;Transmission unit, for by UDP UDP chain Road carries out data transmission with described monitoring network element.
In the first possible implementation of fourth aspect, also comprise determining that unit, for described Before transmission unit is carried out data transmission by UDP UDP link and described monitoring network element, Determine unit UDP message message length value and UDP message message transmission frequency, described unit UDP number The length value of each UDP message message, described UDP message message transmitting pin is represented according to message length value Rate represents every first preset duration one UDP message message of transmission;Described transmission unit is specifically for basis Described unit UDP message message length value and UDP message message transmission frequency are by described UDP link Carry out data transmission with described monitoring network element.
In conjunction with the first possible implementation of fourth aspect, the reality that the second in fourth aspect is possible In existing mode, the first message request that described transmission unit sends specifically for receiving described monitoring network element disappears Breath, described first message request message is used for request data message;According to described unit UDP message message Length value, by N number of for described data genaration UDP message message, described N is whole more than or equal to 1 Number;And according to described UDP message message transmission frequency, send described N number of to described monitoring network element UDP message message.
In conjunction with the implementation that the second of fourth aspect is possible, in the third possible reality of fourth aspect In existing mode, described UDP message message also carries the mark of described UDP message message;Described transmission Unit is additionally operable to receive the first message retransmission request message that described monitoring network element sends, described first message Heavily request message includes the mark of M UDP message message, and described M is more than or equal to 1, and Less than or equal to the integer of described N, described M UDP message message is the data needing again to transmit Message, described first message retransmission request message is for M UDP message message described in request retransmission; According to the mark of described M UDP message message, determine described M UDP message message;And According to described UDP message message transmission frequency, resend described M UDP to described monitoring network element Data message.
In conjunction with the first possible implementation of fourth aspect, in the 4th kind of possible reality of fourth aspect In existing mode, described transmission unit specifically for sending the second message request message to described monitoring network element, Described second message request message is used for request data message, and described second message request message includes described Unit UDP message message length value and UDP message message transmission frequency;And receive described monitoring network The K that unit sends according to described unit UDP message message length value and UDP message message transmission frequency is individual UDP message message, described K is the integer more than or equal to 1.
In conjunction with the 4th kind of possible implementation of fourth aspect, in the 5th kind of possible reality of fourth aspect In existing mode, described UDP message message also carries the mark of UDP message message;Described transmission unit It is additionally operable to determine that the mark of H the UDP message message being not successfully received, described H are more than or equal to 1, And the integer less than or equal to described K;The second message retransmission request message is sent to described monitoring network element, Described second message retransmission request message includes the mark of described H UDP message message, described second Message retransmission request message is for H UDP message message described in request retransmission;And receive described prison Described H the UDP message message that control network element resends according to described UDP message message transmission frequency.
In conjunction with any one possible implementation of first to the 5th kind of implementation of fourth aspect, In 6th kind of possible implementation of fourth aspect, also include: receive unit, determine list for described Before unit determines UDP message message length value and transmission frequency, receive the UDP that described monitoring network element sends Heartbeat message;Described determine that unit includes: send subelement, for according to described UDP heartbeat message to Described monitoring network element sends solicitation message, and described solicitation message is used for asking UDP detection report Literary composition, described solicitation message includes detecting parameter, and described detection parameter includes always detecting duration, UDP At least one transmission of at least one length value of detection messages and the UDP detection messages of each length value Frequency;After receiving subelement and receiving the detection response message that described monitoring network element sends, receive described The UDP detection messages that monitoring network unit sends according to described detection parameter;Described reception subelement, is used for connecing Receive the described detection response message that described monitoring network element sends;Determine subelement, for according to described UDP The reception condition of detection messages, determines described unit UDP message message length value and UDP message message Transmission frequency, the reception condition of described UDP detection messages includes: the UDP detection report of each length value Literary composition acceptance rate under each transmission frequency.
In conjunction with fourth aspect or any one possible reality of first to the 6th kind of implementation of fourth aspect Existing mode, in the 7th kind of possible implementation of fourth aspect, described processing unit is additionally operable to and institute State monitoring network element and set up described TCP link;If described transmission unit is just being additionally operable to described TCP link-recovery Often, then carried out data transmission with described monitoring network element by described TCP link.
The data transmission method of embodiment of the present invention offer and device, if by monitoring network element and monitoring service When transmission control protocol TCP link between device breaks down, monitoring server interrupts with monitoring network element TCP link, and carried out data transmission with monitoring network element by UDP link, solve in prior art and deposit Problem, network flash frequently in, carried out data transmission by UDP link, transmission can be improved Efficiency and saving Internet resources.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that under, Accompanying drawing during face describes is some embodiments of the present invention, for those of ordinary skill in the art, On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of data transmission method embodiment one of the present invention;
Fig. 2 is the flow chart of data transmission method embodiment two of the present invention;
Fig. 3 is the flow chart of data transmission method embodiment three of the present invention;
Fig. 4 is the flow chart of data transmission method embodiment four of the present invention;
Fig. 5 is the flow chart of data transmission method embodiment five of the present invention;
Fig. 6 is the flow chart of data transmission method embodiment six of the present invention;
Fig. 7 is the flow chart of data transmission method embodiment seven of the present invention;
Fig. 8 is the structural representation that the present invention monitors network element embodiment one;
Fig. 9 is the structural representation that the present invention monitors network element embodiment two;
Figure 10 is the structural representation that the present invention monitors network element embodiment three;
Figure 11 is the structural representation of monitoring server embodiment one of the present invention;
Figure 12 is the structural representation of monitoring server embodiment two of the present invention;
Figure 13 is the structural representation of monitoring server embodiment three of the present invention.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention, Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on Embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise The every other embodiment obtained, broadly falls into the scope of protection of the invention.
Fig. 1 is the flow chart of data transmission method embodiment one of the present invention, as it is shown in figure 1, the present embodiment Method may include that
S101, monitoring network element determine that the TCP link between monitoring network element and monitoring server breaks down.
In the present embodiment, monitoring network element may determine that the TCP chain between this monitoring network element and monitoring server Break down in road, such as: monitoring server starts monitors monitoring network element, monitoring network element and monitoring server Between set up TCP link, monitoring network element timing can send TCP heartbeat message to monitoring server, at chain In the case of road is normal, monitoring server can send TCP heart beating response message to monitoring network element, if monitoring Network element does not receives, in certain time length, the TCP heart beating response message that monitoring server sends, then be probably network Occur congested, it is also possible to be that TCP link breaks down, then monitoring network element can resend default time The TCP heartbeat message of number, if monitoring network element does not receives the TCP heart beating response report that monitoring server sends yet Literary composition, then monitoring network element thinks that the TCP link between monitoring network element and monitoring server breaks down, such as Network interrupts.Monitoring network element determines process that TCP link breaks down similarly to the prior art, this Inventive embodiments is not described in detail at this.
S102, monitoring network element and monitoring server interrupting TCP link.
In the present embodiment, monitoring network element determines that the TCP link between monitoring network element and monitoring server occurs Fault, then monitoring network element interrupts this TCP link with monitoring server.Monitoring network element and monitoring server How similarly to the prior art, the embodiment of the present invention does not repeats them here the process of interrupting TCP link.
S103, monitoring network element by UDP (User Datagram Protocol, be called for short: UDP) link carries out data transmission with monitoring server.
In the present embodiment, monitoring network element, after the TCP link interrupted between monitoring server, monitors Network element is carried out data transmission with monitoring server by UDP link.This is owing to network interrupts, if Network recovery connects, then by the data message of the unsuccessful transmission of TCP link can after network recovery, Transmitting, when network generation flash is serious when, then TCP link may repeatedly transmit same the most again One data message, increases burden to network, wastes Internet resources, and also causes datagram below Literary composition slowly can not get transmission, reduces the efficiency of transmission of data, and the embodiment of the present invention is at this network flash In the case of disconnected serious, it is UDP link by transmission link by TCP link switching, this is because pass through The heading of the data message of UDP link transmission is short, the data message of identical bytes size, passes through TCP The ratio of the valid data that link transmission is carried is less than the valid data carried by UDP link transmission Ratio, and UDP link is in the case of the unsuccessful transmission of data message, will not repeatedly transmit this number According to message, not all right just can directly abandon, compared with TCP link, alleviate network burden, save Internet resources, can avoid data message below slowly to can not get the situation of transmission so that the most Ground data message is transmitted, and reaches to pass the purpose that how many data message is how many, improves efficiency of transmission, So can ensure that important data message is succeeded transmission as far as possible, it is ensured that business properly functioning.
The data transmission method that the embodiment of the present invention one provides, is determined and monitoring server by monitoring network element Between TCP link break down, then with monitoring server interrupting TCP link, and pass through UDP Link carries out data transmission with monitoring server, solves problems of the prior art, at network flash In breaking frequently, carried out data transmission by UDP link, efficiency of transmission can be improved and save Internet resources.
Fig. 2 is the flow chart of data transmission method embodiment two of the present invention, as in figure 2 it is shown, the present embodiment Method may include that
If the TCP link between S201 monitoring network element and monitoring server breaks down, monitoring service Device and monitoring network element interrupting TCP link.
S101 in the process that implements of the S201 in the present embodiment and the inventive method embodiment one and The process that implements of S102 is similar to, and may refer to the relevant note in said method embodiment of the present invention in detail Carrying, the embodiment of the present invention does not repeats them here.
S202, monitoring server are carried out data transmission with monitoring network element by UDP link.
In the present embodiment, monitoring server, after the TCP interrupted between monitoring network element links, monitors Server is carried out data transmission with monitoring server by UDP link.This is owing to network interrupts, If network recovery connects, then by the data message of the unsuccessful transmission of TCP link can after network recovery, Transmitting, when network generation flash is serious when, then TCP link may repeatedly transmit same the most again One data message, increases burden to network, wastes Internet resources, and also causes datagram below Literary composition slowly can not get transmission, reduces the efficiency of transmission of data, and the embodiment of the present invention is at this network flash In the case of disconnected serious, it is UDP link by transmission link by TCP link switching, this is because pass through The heading of the data message of UDP link transmission is short, the data message of identical bytes size, passes through TCP The ratio of the valid data that link transmission is carried is less than the valid data carried by UDP link transmission Ratio, and UDP link is in the case of the unsuccessful transmission of data message, will not repeatedly transmit this number According to message, not all right just can directly abandon, compared with TCP link, alleviate network burden, save Internet resources, can avoid data message below slowly to can not get the situation of transmission so that the most Ground data message is transmitted, and reaches to pass the purpose that how many data message is how many, improves efficiency of transmission, So can ensure that important data message is succeeded transmission as far as possible, it is ensured that business properly functioning.
The data transmission method that the embodiment of the present invention two provides, if by monitoring network element and monitoring server it Between transmission control protocol TCP link when breaking down, monitoring server and monitoring network element interrupting TCP Link, and carried out data transmission with monitoring network element by UDP link, solve present in prior art Problem, in network flash is frequent, is carried out data transmission by UDP link, can improve efficiency of transmission With saving Internet resources.
Fig. 3 is the flow chart of data transmission method embodiment three of the present invention, as it is shown on figure 3, the present embodiment Method may include that
S301, monitoring network element determine that the TCP link between monitoring network element and monitoring server breaks down.
S302, monitoring network element and monitoring server interrupting TCP link.
In the present embodiment, in the process that implements of S301 and S302 and the inventive method embodiment one S201 in S101 with S102 or the inventive method embodiment two to implement process similar, in detail May refer to the relevant record in the above embodiment of the present invention, the embodiment of the present invention does not repeats them here.Prison Transmission link is UDP link by TCP link switching by control network element and monitoring server, then by monitoring Server determines by unit UDP message message length value during UDP link transmission data and UDP number According to message transmissions frequency, unit UDP message message length value represents that each UDP message message is (the most logical Cross the data message of UDP link transmission) length value, described UDP message message transmission frequency represents Every first preset duration one UDP message message of transmission, this unit UDP message message length value and UDP Data-message transmission frequency is the optimum being suitable for network at that time, to maximize data transmission efficiency.Prison Control server determines unit UDP message message length value and UDP message message transmission frequency, Yi Jijian Control network element and monitoring server are according to unit UDP message message length value and UDP message message transmitting pin The process that rate carries out data transmission is as described in following step.
S303, monitoring network element send UDP heartbeat message to monitoring server.
In the present embodiment, monitoring network element is after interrupting TCP link, and monitoring network element is sent out to monitoring server Send UDP heartbeat message, the most normal to detect UDP link.
S304, monitoring server receive the UDP heartbeat message that monitoring network element sends, according to UDP heart beating Message sends solicitation message to monitoring network element.
In the present embodiment, monitoring server receives the UDP heartbeat message that monitoring network element sends, then root According to the UDP heartbeat message received, sending solicitation message to monitoring network element, solicitation message is used In request UDP detection messages, solicitation message includes detecting parameter, when detection parameter includes always detecting Length, at least one length value of UDP detection messages, the length value increment of UDP detection messages, Mei Gechang The initial transmission frequency of the UDP detection messages of angle value and the increment of described initial transmission frequency, so that monitoring According to UDP detection messages, server determines that unit UDP message message length value and UDP message message pass Defeated frequency.
S305, monitoring network element receive the solicitation message that monitoring server sends, and send out to monitoring server Response message is surveyed in censorship.
S306, monitoring server receive the detection response message that monitoring network element sends.
In the present embodiment, monitoring network element receives the solicitation message that monitoring server sends, it may be determined that UDP link is normal, then returns detection response message to monitoring server, to notify that monitoring server is supervised Control network element has been received by solicitation message.Monitoring server receives the detection response that monitoring network element sends After message, prepare to receive the detection messages that monitoring network element sends.
If monitoring server is not received by monitoring network element in a certain Preset Time (such as: 1 minute) The detection response message sent, then monitoring server continues to send solicitation message, directly to monitoring network element To receiving the detection response message that monitoring network element sends.
S307, monitoring network unit, according to detection parameter, sends UDP detection messages to monitoring server.
In the present embodiment, monitoring network element obtains detection parameter from the solicitation message received, then UDP detection messages is sent to monitoring server, such as: total detection duration can be 9 according to detection parameter Minute, at least one length value of UDP detection messages can be 50 bytes, 100 bytes, 150 Individual byte, at least one transmission frequency of the UDP detection messages of each length value be 5/minute (i.e. Every 0.2 minute transmission one UDP detection messages), 10/minute (the most every 0.1 minute transmit one UDP detection messages), 20/minute (the most every 0.05 minute transmission one UDP detection messages). UDP detection messages can be to be all the detection messages of 0 or be all the detection messages of 1, and the present invention implements Example does not limits at this, monitors the network element transmission frequency according to 5/minute by 50 byte length value UDP detection messages sent 5 in one minute, and monitoring network element will according to the transmission frequency of 10/minute The UDP detection messages of 50 byte length value sent 10 in one minute, and monitoring network element is according to 15 Individual/minute transmission frequency the UDP detection messages of 50 byte length value was sent in one minute 15 Individual, the UDP of 100 byte length value is detected report according to the transmission frequency of 5/minute by monitoring network element Send 5 in Wen Yi minute, monitor the network element transmission frequency according to 10/minute by 100 bytes The UDP detection messages of length value sent 10 in one minute, and monitoring network element is according to 20 s'/minute The UDP detection messages of 100 byte length value was sent 20 in one minute by transmission frequency, monitoring Network element according to the transmission frequency of 5/minute by the UDP detection messages of 150 byte length value at one point Send 5 in clock, monitor the network element transmission frequency according to 10/minute by 150 byte length value UDP detection messages sent 10 in one minute, and monitoring network element will according to the transmission frequency of 20/minute The UDP detection messages of 150 byte length value sent 20 in one minute.
S308, monitoring server receive the UDP detection messages that monitoring network unit sends according to detection parameter, and According to the reception condition of UDP detection messages, determine unit UDP message message length value and UDP message Message transmissions frequency.
In the present embodiment, monitoring server receives the above-mentioned UDP that monitoring network element sends in total detection duration Detection messages, then according to the reception condition of UDP detection messages, determines UDP message message length value With UDP message message transmission frequency.The reception condition of this UDP detection messages includes: each length value UDP detection messages acceptance rate under each transmission frequency.Monitoring server may determine that monitoring network element The UDP detection messages altogether sent under each transmission frequency and each UDP detection messages length value Number (such as monitoring network element can notify that the UDP detection messages of each length value of monitoring server is often Total number under individual transmission frequency), simultaneously it may also be determined that each transmission frequency and each UDP detection are reported The number of the UDP detection messages being properly received under literary composition length value, may thereby determine that each length value UDP detection messages acceptance rate under each transmission frequency, such as: monitoring server may determine that 50 The UDP detection messages of individual byte length value acceptance rate under the transmission frequency of 5/minute, it may be determined that The UDP detection messages of 100 byte length value acceptance rate under the transmission frequency of 5/minute, can be true UDP detection messages acceptance rate under the transmission frequency of 5/minute of fixed 150 byte length value, can To determine UDP detection messages acceptance rate under the transmission frequency of 10/minute of 50 byte length value, May determine that the UDP detection messages of 100 byte length value receives under the transmission frequency of 10/minute Rate, it may be determined that the UDP detection messages of 150 byte length value is under the transmission frequency of 10/minute Acceptance rate, it may be determined that the UDP detection messages of 50 byte length value is at the transmitting pin of 20/minute Acceptance rate under rate, it may be determined that the UDP detection messages of 100 byte length value is in the biography of 20/minute Acceptance rate under defeated frequency, it may be determined that the UDP detection messages of 150 byte length value is 20/minute Transmission frequency under acceptance rate, then monitoring server is according to maximum acceptance rate, determines unit UDP number Length value and UDP message message transmission frequency according to message.Due in prior art, by UDP chain When road carries out data transmission, according to network condition, data will not be split as the data message of this network applicable, The length value of each data message, if network condition is bad, this data message only can be determined according to business Length value exceed current UDP link maximum transmitted limit, the most directly abandon this data message, if net When network situation is good, the length value of this data message limits smaller relative to the transmission of current UDP link, Then can not effectively utilize bandwidth, cause efficiency of transmission to reduce, therefore, the embodiment of the present invention is counting Before message transmissions, remove the unit UDP number of detection this network condition suitable according to UDP detection messages According to message size and transmission frequency, to improve efficiency of transmission further.
Alternatively, monitoring server, can be according to the UDP having been received by when total detection duration does not arrives Detection messages may determine that length value and the UDP message message transmissions of optimal unit UDP message message Frequency, then monitoring server can send detection abort request message, monitoring network primitive root to monitoring network element Return detection according to detection abort request message and stop response message, if monitoring server is at a certain Preset Time Do not receive the detection termination response message that monitoring network element sends in (such as 1 minute), then monitor service Device resends detection abort request message automatically.
S309, monitoring network element send the first message request message to monitoring server.
In the present embodiment, monitoring network element is after having sent UDP detection messages to monitoring server, if prison Control server sends data, and monitoring network element receives data, then monitoring network element can send to monitoring server First message request message, the first message request message is used for request data message.
S310, monitoring server receive the first message request message that monitoring network element sends, according to unit UDP Data message length value, by N number of for data genaration UDP message message, and passes according to UDP message message Defeated frequency, sends N number of UDP message message to monitoring network element.
S311, monitoring network element receive monitoring server according to unit UDP message message length value and UDP N number of UDP message message that data-message transmission frequency sends.
In the present embodiment, monitoring server receives the first message request message that monitoring network element sends, then According to the above-mentioned unit UDP message message length value determined, by N number of for data genaration waiting for transmission UDP Data message, N is the integer more than or equal to 1, and the length value of each UDP message message is unit UDP message message length value, such as: monitoring server can be by (the most complete for data waiting for transmission Business Stream) it is packaged into a file, then the file after packing is compressed, by the file root after compression Split according to unit UDP message message length value, it is possible to obtain N number of UDP message message.Then It is N number of that monitoring server sends this according to the above-mentioned UDP message message transmission frequency determined to monitoring network element UDP message message.Correspondingly, monitoring network element receives monitoring server according to unit UDP message message N number of UDP message message that length value and UDP message message transmission frequency send, monitoring network element is permissible The data message received is merged into a file, then the file after merging decompresses, then resolve Become data (such as Business Stream).
Alternatively, monitoring network element can send to monitoring server and confirm message, and notice monitoring server is It is properly received UDP message message, then monitoring server can discharge the above-mentioned UDP message of caching Message, with a part of Internet resources of release busy, such as: monitoring server can be sent out to monitoring network element Wait the confirmation of monitoring network element after sending the UDP message message of predetermined number, receive monitoring network element really After recognizing, retransmit the UDP message message of the predetermined number of next group, so can avoid monitoring server Transport layer process scarce capacity causes blocking.
The data transmission method that the embodiment of the present invention three provides, by when monitoring network element and monitoring server it Between transmission control protocol TCP link when breaking down, monitoring network element and monitoring server interrupting TCP Link, monitoring server can determine applicable current network according to the UDP detection messages that monitoring network element sends Unit UDP message message length value and UDP message message transmission frequency, then according to the list determined Position UDP message message length value and UDP message message transmission frequency, send UDP number to monitoring network element According to message, solve problems of the prior art, in network flash is frequent, by UDP link Carry out data transmission, efficiency of transmission can be improved and save Internet resources, be determined by being suitable for current network Unit UDP message message length value and UDP message message transmission frequency, improve further transmission effect Rate.
Fig. 4 is the flow chart of data transmission method embodiment four of the present invention, as shown in Figure 4, the present embodiment On the basis of embodiment of the method shown in Fig. 3, further, the method for the present embodiment can also include:
S401, monitoring network element determine M the UDP message message being not successfully received, to monitoring server Send the first message retransmission request message.
In the present embodiment, monitoring network element is receiving monitoring server according to unit UDP message message length value After N number of UDP message message of UDP message message transmission frequency transmission, monitoring network element can be true Surely M the UDP message message being not successfully received, M is more than or equal to 1, and is less than or equal to The integer of described N, the first message retransmission request message is used for request retransmission M UDP message message, Specifically, UDP message message can carry the mark (such as numbering) of UDP message message, monitoring N number of UDP message message, generating N number of UDP message message when, can be stamped mark by server, N number of UDP message message is such as stamped continuous print numbering, and monitoring network element can be according to being properly received UDP message message determines M the UDP datagram being not successfully received in N number of UDP message message The mark of literary composition, may thereby determine that M the UDP message message being not successfully received.Then network element is monitored Sending message retransmission request message to monitoring server, this message retransmission request message includes M UDP The mark of data message.
S402, monitoring server receive the first message retransmission request message that monitoring network element sends, according to M The mark of individual UDP message message, determines M UDP message message;And according to UDP message message Transmission frequency, resends M UDP message message to monitoring network element.
S403, monitoring network element receive what monitoring server resend according to UDP message message transmission frequency M UDP message message.
In the present embodiment, monitoring server receives the first message retransmission request message that monitoring network element sends, Obtain the first message retransmission and ask the mark of M UDP message message in message, this M UDP Data message is the data message needing again to transmit;The mark of each UDP message message correspond to one UDP message message, then according to the mark of this M UDP message message, determines M UDP number The UDP message message of correspondence is distinguished according to the mark of UDP message message each in the mark of message, thus Determine M UDP message message, the length of each UDP message message in this M UDP message message Angle value is unit UDP message message length value, and monitoring server is further according to UDP message message transmitting pin Rate, resends, to monitoring network element, M the UDP message message that monitoring network element is not successfully received.Accordingly Ground, monitoring network element receives M that monitoring server resends according to UDP message message transmission frequency UDP message message.Owing to, in prior art, there is no failed retransmission mechanism by UDP link, so Transmission success rate ratio is relatively low, and therefore the embodiment of the present invention uses the data message retransmission mechanism of unsuccessful transmission (breakpoint transmission mechanism), can improve the success rate of data transmission, it is ensured that business properly functioning and complete Whole property.
The data transmission method that the embodiment of the present invention four provides, further, is determined not by monitoring network element M the UDP message message being properly received, sends the first message retransmission request message to monitoring server; Monitoring server is according to the mark of M UDP message message in the first message retransmission request message, really Determine M UDP message message, and according to UDP message message transmission frequency, again send out to monitoring network element Send M UDP message message.The success rate of data transmission can be improved, ensure business to greatest extent Properly functioning and integrity.
Fig. 5 is the flow chart of data transmission method embodiment five of the present invention, as it is shown in figure 5, the present embodiment Method may include that
S501, monitoring network element determine that the TCP link between monitoring network element and monitoring server breaks down.
S502, monitoring network element and monitoring server interrupting TCP link.
S503, monitoring network element send UDP heartbeat message to monitoring server.
S504, monitoring server receive the UDP heartbeat message that monitoring network element sends, according to UDP heart beating Message sends solicitation message to monitoring network element.
S505, monitoring network element receive the solicitation message that monitoring server sends, and send out to monitoring server Response message is surveyed in censorship.
S506, monitoring server receive the detection response message that monitoring network element sends.
S507, monitoring network unit, according to detection parameter, sends UDP detection messages to monitoring server.
S508, monitoring server receive the UDP detection messages that monitoring network unit sends according to detection parameter, and According to the reception condition of UDP detection messages, determine unit UDP message message length value and UDP message Message transmissions frequency.
In the process that implements of the S501-S508 in the present embodiment and the inventive method embodiment three The process that implements of S301-S308 is similar to, and may refer to the phase in said method embodiment of the present invention in detail Closing and record, the embodiment of the present invention does not repeats them here.
S509, monitoring server send the second message request message to monitoring network element.
In the present embodiment, monitoring server is determining unit UDP message message length value and UDP message After message transmissions frequency, if monitoring network element sends data, monitoring server receives data, then monitor clothes Business device can send the second message request message to monitoring network element, and the second message request message is used for number of request According to message, the second message request message in the present embodiment include unit UDP message message length value and UDP message message transmission frequency, so that monitoring network unit is according to unit UDP in Secondary Report literary composition request message Data message length value and UDP message message transmission frequency, send UDP datagram to monitoring server Literary composition.
S510, monitoring network element receive the second message request message that monitoring server sends, according to unit UDP Data message length value, by K UDP message message of data genaration, and passes according to UDP message message Defeated frequency, sends K UDP message message to monitoring server.
S511, monitoring server receive monitoring network unit according to unit UDP message message length value and UDP K the UDP message message that data-message transmission frequency sends.
In the present embodiment, monitoring network element receives the second message request message that monitoring server sends, then Unit UDP message message length value according to the second message request message, by data genaration K waiting for transmission Individual UDP message message, K is the integer more than or equal to 1, the length value of each UDP message message For unit UDP message message length value, such as: monitoring network element can be by (the completeest for data waiting for transmission Whole Business Stream) it is packaged into a file, then the file after packing is compressed, by the literary composition after compression Part splits according to unit UDP message message length value, it is possible to obtain K UDP message message. Then monitoring server according to the UDP message message transmission frequency of the second message request message to monitoring network Unit sends this K UDP message message.Correspondingly, monitoring server receives monitoring network unit according to unit UDP message message length value and UDP message message transmission frequency send K UDP message message, prison The data message received can be merged into a file by control server, then the file after merging is carried out Decompression, then resolve to data (such as Business Stream).
Alternatively, monitoring server can send to monitoring network element and confirm message, and notice monitoring network element becomes Merit receives UDP message message, then monitoring network element can discharge the above-mentioned UDP message message of caching, With a part of Internet resources of release busy, such as: monitoring network element can send to monitoring server and preset Wait the confirmation of monitoring server after the UDP message message of number, receive the confirmation of monitoring server After, retransmit the UDP message message of the predetermined number of next group, so can avoid monitoring network element transmission Layer disposal ability deficiency causes blocking.
The data transmission method that the embodiment of the present invention five provides, by when monitoring network element and monitoring server it Between transmission control protocol TCP link when breaking down, monitoring network element and monitoring server interrupting TCP Link, monitoring server can determine applicable current network according to the UDP detection messages that monitoring network element sends Unit UDP message message length value and UDP message message transmission frequency, then by unit UDP number Being sent to monitor network element according to message length value and UDP message message transmission frequency, monitoring network unit is according to unit UDP message message length value and UDP message message transmission frequency, send UDP number to monitoring server According to message, solve problems of the prior art, in network flash is frequent, by UDP link Carry out data transmission, efficiency of transmission can be improved and save Internet resources, be determined by being suitable for current network Unit UDP message message length value and UDP message message transmission frequency, improve further transmission effect Rate.
Fig. 6 is the flow chart of data transmission method embodiment six of the present invention, as shown in Figure 6, the present embodiment On the basis of embodiment of the method shown in Fig. 5, further, the method for the present embodiment can also include:
S601, monitoring server determine the mark of H the UDP message message being not successfully received, to prison Control network element sends the second message retransmission request message.
Wherein, H is more than or equal to 1, and the integer less than or equal to above-mentioned K;Second message Retransmission request message includes that the mark of H UDP message message, the second message retransmission request message are used for Request retransmission H UDP message message.
S602, monitoring network element receive the second message retransmission request message that monitoring server sends, according to H The mark of individual UDP message message, determines H UDP message message, and according to UDP message message Transmission frequency, resends H UDP message message to monitoring server.
Wherein, H UDP message message is the data message needing again to transmit.
S603, monitoring server receive described monitoring network unit and again send out according to UDP datagram literary composition transmission frequency H the UDP message message sent.
In the process that implements of the S601-S603 in the present embodiment and the inventive method embodiment four The process that implements of S401-S403 is similar to, and may refer to the phase in said method embodiment of the present invention in detail Closing and record, the embodiment of the present invention does not repeats them here.
The data transmission method that the embodiment of the present invention six provides, further, is determined by monitoring server H the UDP message message being not successfully received, sends the second message retransmission request message to monitoring network element; Monitoring network unit, according to the mark of H UDP message message in Secondary Report literary composition retransmission request message, determines H Individual UDP message message, and according to UDP message message transmission frequency, resend to monitoring server H UDP message message.The success rate of data transmission can be improved, just ensureing business to greatest extent Often run and integrity.
Fig. 7 is the flow chart of data transmission method embodiment seven of the present invention, as it is shown in fig. 7, the present embodiment On the basis of the arbitrary shown embodiment of the method for Fig. 1-Fig. 6, further, the method for the present embodiment also may be used To include:
S701, monitoring network element set up TCP link with monitoring server.
S702, monitoring network element determine that TCP link-recovery is normal.
S703, monitoring network element are carried out data transmission with monitoring server by TCP link.
In the present embodiment, after monitoring network element with monitoring server interrupting TCP link, interval is preset Time, monitoring server and monitoring network element are set up between monitoring network element and monitoring server each other TCP link, monitoring network element may determine that TCP link-recovery is normal, such as: monitoring network element can timing to Monitoring server sends TCP heartbeat message, and monitoring server can send TCP heart beating response to monitoring network element Message, in the case of link is normal, monitoring network element can receive the TCP heart beating that monitoring server sends Response message, then monitoring network element thinks that the TCP link-recovery between monitoring network element and monitoring server is normal. Communication link is TCP link by UDP link switching by so monitoring network element and monitoring server, monitoring Network element can be carried out data transmission with monitoring server by TCP link, and monitoring server can also pass through TCP link carries out data transmission with monitoring network element.
The data transmission method that the embodiment of the present invention seven provides, further, by monitoring network element and monitoring Setting up TCP link between server, monitoring network element determines that TCP link-recovery is normal, then monitors network element Carried out data transmission by TCP link with monitoring server, so can make full use of the excellent of TCP link Gesture, in the case of network quality is good, it is ensured that the reliability of transmission and raising efficiency of transmission.
Fig. 8 is the structural representation that the present invention monitors network element embodiment one, as shown in Figure 8, the present embodiment Monitoring network element may include that and determine unit 11, processing unit 12 and transmission unit 13, wherein, really Cell 11, for determining that the TCP link between described monitoring network element and monitoring server breaks down; Processing unit 12, for interrupting described TCP link with described monitoring server;Transmission unit 13, uses In being carried out data transmission with described monitoring server by UDP link.
The monitoring network element of the present embodiment, may be used for performing to monitor in said method embodiment of the present invention network element Performed technical scheme, it is similar with technique effect that it realizes principle, may refer to the present invention in detail above-mentioned Record mutually in embodiment of the method, here is omitted.
Fig. 9 is the structural representation that the present invention monitors network element embodiment two, as it is shown in figure 9, the present embodiment Monitoring network element on the basis of Fig. 8 shown device structure, further, in the realization that the first is feasible In mode, transmission unit 13 is specifically for sending the first message request message, institute to described monitoring server State the first message request message for request data message;And receive described monitoring server according to unit N number of UDP message message that UDP message message length value and UDP message message transmission frequency send, Described N is the integer more than or equal to 1, and described unit UDP message message length value represents each UDP The length value of data message, described UDP message message transmission frequency represents every first preset duration transmission one Individual UDP message message.
Alternatively, described UDP message message also carries the mark of described UDP message message;Transmission is single Unit 13 is for determining M the UDP message message being not successfully received, and described M is more than or equal to 1, And the integer less than or equal to described N;Send the first message retransmission request to described monitoring server to disappear Breath, described first message heavily asks message to include the mark of described M UDP message message, and described the One message retransmission request message is for M UDP message message described in request retransmission;And receive described Described M the UDP message that monitoring server resends according to described UDP message message transmission frequency Message.
In the implementation that the second is feasible, transmission unit 13 is specifically for receiving described monitoring server The the second message request message sent, described second message request message is used for request data message, described Second message request message includes unit UDP message message length value and UDP message message transmission frequency; According to described unit UDP message message length value, by K UDP message message of described data genaration, Described K is the integer more than or equal to 1;And according to described UDP message message transmission frequency, to Described monitoring server sends described K UDP message message.
Alternatively, described UDP message message also carries the mark of UDP message message;Transmission unit 13 It is additionally operable to receive the second message retransmission request message that described monitoring server sends, described second message weight Passing request message and include the mark of K UDP message message, described H is more than or equal to 1 and little In or equal to the integer of described K, described H UDP message message is the datagram needing again to transmit Literary composition, described second message retransmission request message is for H UDP message message described in request retransmission;Root According to the mark of described H UDP message message, determine described H UDP message message;And according to Described UDP message message transmission frequency, resends described H UDP number to described monitoring server According to message.
Alternatively, the monitoring network element transmitting element be may include that 14 of the present embodiment and reception unit 15, wherein, transmitting element 14 is entered with described monitoring server by UDP link for transmission unit 13 Before the transmission of row data, send UDP heartbeat message to described monitoring server;Connect receiving unit 15 After receiving the solicitation message that described monitoring server sends, send detection to described monitoring server and ring Answer message;And according to described detection parameter, send described UDP detection messages to described monitoring server; Receive unit 15, for receiving the described solicitation message that described monitoring server sends, described detection Request message is used for asking UDP detection messages, described solicitation message to include detecting parameter, described inspection Survey parameter to include always detecting duration, at least one length value of UDP detection messages and each length value At least one transmission frequency of UDP detection messages.
Alternatively, processing unit 12 is additionally operable to set up described TCP link with described monitoring server;Really Cell 11 is additionally operable to determine that described TCP link-recovery is normal;Transmission unit 13 is additionally operable to by described TCP link carries out data transmission with described monitoring server.
The monitoring network element of the present embodiment, may be used for performing to monitor in said method embodiment of the present invention network element Performed technical scheme, it is similar with technique effect that it realizes principle, may refer to the present invention in detail above-mentioned Record mutually in embodiment of the method, here is omitted.
Figure 10 is the structural representation that the present invention monitors network element embodiment three, as shown in Figure 10, this enforcement The monitoring network element of example may include that transmitter 21, receptor 22, memorizer 23 and respectively with transmission The processor 24 that device 21, receptor 22 and memorizer 23 connect.Wherein, memorizer 23 stores one Group program code, and processor 24 is for calling the program code of storage in memorizer 23, is used for performing Below operation: determine that the TCP link between described monitoring network element and monitoring server breaks down;With institute State monitoring server and interrupt described TCP link;And entered with described monitoring server by UDP link Row data are transmitted.
Alternatively, processor 24 is carried out data transmission with described monitoring server by UDP link, bag Include: processor 24 controls transmitter 21 and sends the first message request message, institute to described monitoring server State message request message for the first request data message;And processor 24 controls receptor 22 and receives Described monitoring server is sent out according to unit UDP message message length value and UDP message message transmission frequency The N number of UDP message message sent, described N is the integer more than or equal to 1, described unit UDP number The length value of each UDP message message, described UDP message message transmitting pin is represented according to message length value Rate represents every first preset duration one UDP message message of transmission.
Alternatively, described UDP message message also carries the mark of described UDP message message;Processor 24 also determine that M the UDP message message being not successfully received, and described M is more than or equal to 1, and Integer less than or equal to described N;Processor 24 also controls transmitter 21 and sends out to described monitoring server Sending the first message retransmission request message, described first message heavily asks message to include described M UDP number According to the mark of message, described first message retransmission request message is for M UDP number described in request retransmission According to message;Processor 24 also controls receptor 22 and receives described monitoring server according to described UDP message Described M the UDP message message that message transmissions frequency resends.
Alternatively, processor 24 is carried out data transmission with described monitoring server by UDP link, bag Include: processor 24 controls receptor 22 and receives the second message request message that described monitoring server sends, Described second message request message is used for request data message, and described second message request message includes unit UDP message message length value and UDP message message transmission frequency;Processor 24 is according to described unit UDP message message length value, by K UDP message message of described data genaration, described K is for being more than Or the integer equal to 1;Processor 24 controls transmitter 21 according to described UDP message message transmission frequency, Described K UDP message message is sent to described monitoring server.
Alternatively, described UDP message message also carries the mark of UDP message message;Processor 24 is also Control receptor 22 receive described monitoring server send the second message retransmission request message, described second Message retransmission request message includes the mark of H UDP message message, and described H is more than or equal to 1, And less than or equal to the integer of described K, described H UDP message message is to need again to transmit Data message, described second message retransmission request message is for H UDP datagram described in request retransmission Literary composition;Processor 24, always according to the mark of described H UDP message message, determines described H UDP Data message;Processor 24 also controls transmitter 21 according to described UDP message message transmission frequency, to Described monitoring server resends described H UDP message message.
Alternatively, described processor 24 is by UDP UDP link and described monitoring service Before device carries out data transmission, described processor 24 also controls transmitter 21 and sends out to described monitoring server Send UDP heartbeat message;Described processor 24 also controls receptor 22 and receives the transmission of described monitoring server Solicitation message, described solicitation message is used for asking UDP detection messages, and described detection is asked Message includes detecting parameter, described detection parameter include always detecting duration, at least the one of UDP detection messages At least one transmission frequency of the UDP detection messages of individual length value and each length value;Described processor 24 also control transmitter 21 sends detection response message to described monitoring server;And according to described inspection Survey parameter, send described UDP detection messages to described monitoring server.
Alternatively, described TCP link also set up by processor 24 with described monitoring server;Determine described TCP link-recovery is normal;And carried out data transmission with described monitoring server by described TCP link.
The monitoring network element of the present embodiment, may be used for performing to monitor in said method embodiment of the present invention network element Performed technical scheme, it is similar with technique effect that it realizes principle, may refer to the present invention in detail above-mentioned Record mutually in embodiment of the method, here is omitted.
Figure 11 is the structural representation of monitoring server embodiment one of the present invention, as shown in figure 11, this reality The monitoring network element executing example may include that processing unit 31 and transmission unit 32, wherein, processing unit 31 If breaking down, then with described monitoring network element for the TCP link between monitoring network element and monitoring server Interrupt described TCP link;Transmission unit 32 is for by UDP link and described monitoring network element number According to transmission.
The monitoring server of the present embodiment, may be used for performing monitoring clothes in said method embodiment of the present invention Business technical scheme performed by device, it is similar with technique effect that it realizes principle, may refer to the present invention in detail Record mutually in said method embodiment, here is omitted.
Figure 12 is the structural representation of monitoring server embodiment two of the present invention, as shown in figure 12, this reality Execute the monitoring server of example on the basis of Figure 11 shown device structure, further, also comprise determining that Unit 33, wherein, this determines that unit 33 passes through UDP UDP for transmission unit 32 Before link and described monitoring network element carry out data transmission, determine unit UDP message message length value and UDP message message transmission frequency, described unit UDP message message length value represents each UDP message The length value of message, described UDP message message transmission frequency represents that every first preset duration transmits one UDP message message;Transmission unit 32 specifically for according to described unit UDP message message length value and UDP message message transmission frequency is carried out data transmission with described monitoring network element by described UDP link.
Alternatively, the first message request that transmission unit 32 sends specifically for receiving described monitoring network element disappears Breath, described first message request message is used for request data message;According to described unit UDP message message Length value, by N number of for described data genaration UDP message message, described N is whole more than or equal to 1 Number;And according to described UDP message message transmission frequency, send described N number of to described monitoring network element UDP message message.
Alternatively, described UDP message message also carries the mark of described UDP message message;Transmission is single Unit 32 is additionally operable to receive the first message retransmission request message that described monitoring network element sends, described first message Heavily request message includes the mark of M UDP message message, and described M is more than or equal to 1, and Less than or equal to the integer of described N, described M UDP message message is the data needing again to transmit Message, described first message retransmission request message is for M UDP message message described in request retransmission; According to the mark of described M UDP message message, determine described M UDP message message;And According to described UDP message message transmission frequency, resend described M UDP to described monitoring network element Data message.
Alternatively, transmission unit 32 specifically for sending the second message request message to described monitoring network element, Described second message request message is used for request data message, and described second message request message includes described Unit UDP message message length value and UDP message message transmission frequency;And receive described monitoring network The K that unit sends according to described unit UDP message message length value and UDP message message transmission frequency is individual UDP message message, described K is the integer more than or equal to 1.
Alternatively, described UDP message message also carries the mark of UDP message message;Transmission unit 32 It is additionally operable to determine that the mark of H the UDP message message being not successfully received, described H are more than or equal to 1, And the integer less than or equal to described K;The second message retransmission request message is sent to described monitoring network element, Described second message retransmission request message includes the mark of described H UDP message message, described second Message retransmission request message is for H UDP message message described in request retransmission;And receive described prison Described H the UDP message message that control network element resends according to described UDP message message transmission frequency.
Alternatively, the monitoring server of the present embodiment can also include receiving unit 34, wherein, this reception Before unit 34 is used for determining that unit 33 determines UDP message message length value and transmission frequency, receive institute State the UDP heartbeat message that monitoring network element sends;
Described determine that unit 33 may include that transmission subelement 331, receives subelement 332 and determine son Unit 333, wherein, sends subelement 331 and is used for according to described UDP heartbeat message to described monitoring network Unit sends solicitation message, and described solicitation message is used for asking UDP detection messages, described detection Request message includes detecting parameter, and described detection parameter includes always detecting duration, UDP detection messages extremely At least one transmission frequency of the UDP detection messages of a few length value and each length value;Receiving son After unit 332 receives the detection response message that described monitoring network element sends, receive described monitoring network primitive root The UDP detection messages sent according to described detection parameter;Receive subelement 332 to be used for receiving described monitoring network The described detection response message that unit sends;Determine that subelement 333 is for according to described UDP detection messages Reception condition, determines described unit UDP message message length value and UDP message message transmission frequency, The reception condition of described UDP detection messages includes: the UDP detection messages of each length value is in each biography Acceptance rate under defeated frequency.
Alternatively, processing unit 31 is additionally operable to set up described TCP link with described monitoring network element;Transmission If it is normal that unit 32 is additionally operable to described TCP link-recovery, then by described TCP link and described monitoring Network element carries out data transmission.
The monitoring server of the present embodiment, may be used for performing monitoring clothes in said method embodiment of the present invention Business technical scheme performed by device, it is similar with technique effect that it realizes principle, may refer to the present invention in detail Record mutually in said method embodiment, here is omitted.
Figure 13 is the structural representation of monitoring server embodiment three of the present invention, as shown in figure 13, this reality Execute the monitoring server of example may include that transmitter 41, receptor 42, memorizer 43 and respectively with The processor 44 that transmitter 41, receptor 42 and memorizer 43 connect.Wherein, memorizer 43 is deposited Storage batch processing code, and processor 44 is for calling the program code of storage in memorizer 43, is used for Perform following operation: if the transmission control protocol TCP link between monitoring network element and monitoring server occurs Fault, then interrupt described TCP link with described monitoring network element;And by UDP UDP Link carries out data transmission with described monitoring network element.
Alternatively, processor 44 is carried out with described monitoring network element by UDP UDP link Before data transmission, also determine that unit UDP message message length value and UDP message message transmission frequency, Described unit UDP message message length value represents the length value of each UDP message message, described UDP Every first preset duration one the UDP message message of transmission of data-message transmission frequency representation;Processor 44 Carried out data transmission with described monitoring network element by UDP UDP link, including: processor 44 pass through described according to described unit UDP message message length value and UDP message message transmission frequency UDP link carries out data transmission with described monitoring network element.
Alternatively, processor 44 is according to described unit UDP message message length value and UDP message message Transmission frequency is carried out data transmission with described monitoring network element by described UDP link, including: processor 44 control receptor 42 receives the first message request message that described monitoring network element sends, described first report Literary composition request message is for request data message;Processor 44 is according to described unit UDP message message length Value, by N number of for described data genaration UDP message message, described N is the integer more than or equal to 1; Processor 44 controls transmitter 41 according to described UDP message message transmission frequency, to described monitoring network element Send described N number of UDP message message.
Alternatively, described UDP message message also carries the mark of described UDP message message;Processor 44 also control receptor 42 receives the first message retransmission request message that described monitoring network element sends, described First message heavily asks message to include the mark of M UDP message message, and described M is for being more than or equal to 1, and the integer less than or equal to described N, described M UDP message message transmits again for needs Data message, described first message retransmission request message M UDP message described in the request retransmission Message;Processor 44, according to the mark of described M UDP message message, determines described M UDP Data message;Processor 44 controls transmitter 41 according to described UDP message message transmission frequency, to institute State monitoring network element and resend described M UDP message message.
Alternatively, processor 44 is according to described unit UDP message message length value and UDP message message Transmission frequency is carried out data transmission with described monitoring network element by described UDP link, including: processor 44 control transmitter 41 sends the second message request message to described monitoring network element, and described second message please Message is asked to include described unit UDP datagram for request data message, described second message request message Literary composition length value and UDP message message transmission frequency;Processor 44 controls receptor 42 and receives described monitoring The K that network element sends according to described unit UDP message message length value and UDP message message transmission frequency Individual UDP message message, described K is the integer more than or equal to 1.
Alternatively, described UDP message message also carries the mark of UDP message message;Processor 44 is also Determining the mark of H the UDP message message being not successfully received, described H is more than or equal to 1, and Integer less than or equal to described K;Processor 44 also controls transmitter 41 and sends to described monitoring network element Second message retransmission request message, described second message retransmission request message includes described H UDP number According to the mark of message, described second message retransmission request message is for H UDP number described in request retransmission According to message;Processor 44 also controls receptor 42 and receives described monitoring network unit according to described UDP datagram Described H the UDP message message that literary composition transmission frequency resends.
Alternatively, before processor 44 determines UDP message message length value and transmission frequency, also include: Processor 44 controls receptor 42 and receives the UDP heartbeat message that described monitoring network element sends;Processor 44 determine unit UDP message message length value and UDP message message transmission frequency, including: processor 44 control transmitter 41 sends solicitation message according to described UDP heartbeat message to described monitoring network element, Described solicitation message is used for asking UDP detection messages, described solicitation message to include detection ginseng Number, described detection parameter includes always detecting duration, at least one length value of UDP detection messages and each At least one transmission frequency of the UDP detection messages of length value;Processor 44 controls receptor 42 and receives The detection response message that described monitoring network element sends;And receive described monitoring network unit according to described detection ginseng The UDP detection messages that number sends;Processor 44 is according to the reception condition of described UDP detection messages, really Fixed described unit UDP message message length value and UDP message message transmission frequency, described UDP detects The reception condition of message includes: the reception under each transmission frequency of the UDP detection messages of each length value Rate.
Alternatively, processor 44 also sets up described TCP link with described monitoring network element;If it is and described TCP link-recovery is normal, then carried out data transmission with described monitoring network element by described TCP link.
The monitoring server of the present embodiment, may be used for performing monitoring clothes in said method embodiment of the present invention Business technical scheme performed by device, it is similar with technique effect that it realizes principle, may refer to the present invention in detail Record mutually in said method embodiment, here is omitted.
One of ordinary skill in the art will appreciate that: realize all or part of step of above-mentioned each method embodiment Suddenly can be completed by the hardware that programmed instruction is relevant.Aforesaid program can be stored in a computer can Read in storage medium.This program upon execution, performs to include the step of above-mentioned each method embodiment;And Aforesaid storage medium includes: ROM, RAM, magnetic disc or CD etc. are various can store program code Medium.
Last it is noted that various embodiments above is only in order to illustrate technical scheme, rather than right It limits;Although the present invention being described in detail with reference to foregoing embodiments, this area common Skilled artisans appreciate that the technical scheme described in foregoing embodiments still can be modified by it, Or the most some or all of technical characteristic is carried out equivalent;And these amendments or replacement, and The essence not making appropriate technical solution departs from the scope of various embodiments of the present invention technical scheme.

Claims (24)

1. a data transmission method, it is characterised in that including:
Monitoring network element determines the transmission control protocol TCP link between described monitoring network element and monitoring server Break down;
Described monitoring network element interrupts described TCP link with described monitoring server;
Described monitoring network element is by UDP UDP link and described monitoring server number According to transmission;
Described monitoring network element carries out data by UDP UDP link and described monitoring server Before transmission, also include:
Described monitoring network element sends UDP heartbeat message to described monitoring server;
Described monitoring network element receives the solicitation message that described monitoring server sends, and described detection is asked Message is used for asking UDP detection messages, described solicitation message to include detecting parameter, and described detection is joined Number includes always detecting duration, at least one length value of UDP detection messages and the UDP of each length value At least one transmission frequency of detection messages;
Described monitoring network element sends detection response message to described monitoring server;
Described monitoring network unit, according to described detection parameter, sends described UDP detection to described monitoring server Message.
Method the most according to claim 1, it is characterised in that described monitoring network element passes through number of users Carry out data transmission with described monitoring server according to datagram protocol UDP link, including:
Described monitoring network element sends the first message request message, described first message to described monitoring server Request message is for request data message;
Described monitoring network element receive described monitoring server according to unit UDP message message length value and N number of UDP message message that UDP message message transmission frequency sends, described N is more than or equal to 1 Integer, described unit UDP message message length value represents the length value of each UDP message message, Described UDP message message transmission frequency represents every first preset duration one UDP message message of transmission.
Method the most according to claim 2, it is characterised in that described UDP message message is also taken Mark with described UDP message message;
Described method also includes:
Described monitoring network element determines M the UDP message message being not successfully received, described M for more than or Equal to 1, and the integer less than or equal to described N;
Described monitoring network element to described monitoring server send first message retransmission request message, described first Message heavily asks message to include the mark of described M UDP message message, and described first message retransmission please Ask message for M UDP message message described in request retransmission;
Described monitoring network element receives described monitoring server according to described UDP message message transmission frequency weight New described M the UDP message message sent.
Method the most according to claim 1, it is characterised in that described monitoring network element passes through number of users Carry out data transmission with described monitoring server according to datagram protocol UDP link, including:
The second message request message that the described monitoring network element described monitoring server of reception sends, described second Message request message is used for request data message, and described second message request message includes unit UDP message Message length value and UDP message message transmission frequency;
Described monitoring network unit is according to described unit UDP message message length value, by described data genaration K Individual UDP message message, described K is the integer more than or equal to 1;
Described monitoring network unit, according to described UDP message message transmission frequency, sends to described monitoring server Described K UDP message message.
Method the most according to claim 4, it is characterised in that described UDP message message is also taken Mark with UDP message message;
Described method also includes:
Described monitoring network element receives the second message retransmission request message that described monitoring server sends, described Second message retransmission request message includes the mark of H UDP message message, described H for more than or etc. In 1, and the integer less than or equal to described K, described H UDP message message passes again for needs Defeated data message, described second message retransmission request message is for H UDP number described in request retransmission According to message;
Described monitoring network unit, according to the mark of described H UDP message message, determines described H UDP Data message;
Described monitoring network unit is according to described UDP message message transmission frequency, to described monitoring server again Send described H UDP message message.
6. according to the method described in claim 1-5 any one, it is characterised in that also include:
Described monitoring network element and described monitoring server set up described TCP link;
Described monitoring network element determines that described TCP link-recovery is normal;
Described monitoring network element is carried out data transmission with described monitoring server by described TCP link.
7. a data transmission method, it is characterised in that including:
If the transmission control protocol TCP link between monitoring network element and monitoring server breaks down, then institute State monitoring server and interrupt described TCP link with described monitoring network element;
Described monitoring server is by UDP UDP link and described monitoring network element number According to transmission;
Described monitoring server is by UDP UDP link and described monitoring network element number Before transmission, also include:
Described monitoring server determines unit UDP message message length value and UDP message message transmitting pin Rate, described unit UDP message message length value represents the length value of each UDP message message, described UDP message message transmission frequency represents every first preset duration one UDP message message of transmission;
Described monitoring server is by UDP UDP link and described monitoring network element number According to transmission, including:
Described monitoring server passes according to described unit UDP message message length value and UDP message message Defeated frequency is carried out data transmission with described monitoring network element by described UDP link;
Described monitoring server determines unit UDP message message length value and UDP message message transmitting pin Before rate, also include:
Described monitoring server receives the UDP heartbeat message that described monitoring network element sends;
Described monitoring server determines unit UDP message message length value and UDP message message transmitting pin Rate, including:
Described monitoring server sends detection request according to described UDP heartbeat message to described monitoring network element Message, described solicitation message is used for asking UDP detection messages, described solicitation message to include inspection Survey parameter, described detection parameter include always detecting duration, at least one length value of UDP detection messages and At least one transmission frequency of the UDP detection messages of each length value;
Described monitoring server receives the detection response message that described monitoring network element sends;
Described monitoring server receives the UDP detection that described monitoring network unit sends according to described detection parameter Message;
Described monitoring server, according to the reception condition of described UDP detection messages, determines described unit UDP Data message length value and UDP message message transmission frequency, the reception condition of described UDP detection messages Including: the UDP detection messages of each length value acceptance rate under each transmission frequency.
Method the most according to claim 7, it is characterised in that described monitoring server is according to described Unit UDP message message length value and UDP message message transmission frequency are by described UDP link and institute State monitoring network element to carry out data transmission, including:
The first message request message that the described monitoring server described monitoring network element of reception sends, described first Message request message is used for request data message;
Described monitoring server is according to described unit UDP message message length value, by described data genaration N Individual UDP message message, described N is the integer more than or equal to 1;
Described monitoring server, according to described UDP message message transmission frequency, sends to described monitoring network element Described N number of UDP message message.
Method the most according to claim 8, it is characterised in that described UDP message message is also taken Mark with described UDP message message;
Described method also includes:
Described monitoring server receives the first message retransmission request message that described monitoring network element sends, and described the One message heavily ask message to include the mark of M UDP message message, described M are more than or equal to 1, And less than or equal to the integer of described N, described M UDP message message is the number needing again to transmit According to message, described first message retransmission request message is for M UDP message message described in request retransmission;
Described monitoring server, according to the mark of described M UDP message message, determines described M UDP message message;
Described monitoring server is according to described UDP message message transmission frequency, to described monitoring network element again Send described M UDP message message.
Method the most according to claim 7, it is characterised in that described monitoring server is according to institute State unit UDP message message length value and UDP message message transmission frequency by described UDP link with Described monitoring network element carries out data transmission, including:
Described monitoring server sends the second message request message, described second message to described monitoring network element Request message is for request data message, and described second message request message includes described unit UDP message Message length value and UDP message message transmission frequency;
Described monitoring server receives described monitoring network unit according to described unit UDP message message length value K the UDP message message sent with UDP message message transmission frequency, described K is for being more than or equal to The integer of 1.
11. methods according to claim 10, it is characterised in that described UDP message message is also Carry the mark of UDP message message;
Described method also includes:
Described monitoring server determines the mark of H the UDP message message being not successfully received, described H For more than or equal to 1, and the integer less than or equal to described K;
Described monitoring server sends the second message retransmission request message to described monitoring network element, and described second Message retransmission request message includes the mark of described H UDP message message, described second message retransmission Request message is for H UDP message message described in request retransmission;
Described monitoring server receives described monitoring network unit according to described UDP message message transmission frequency weight New described H the UDP message message sent.
12. according to the method described in claim 7-11 any one, it is characterised in that also include:
Described monitoring server and described monitoring network element set up described TCP link;
If described TCP link-recovery is normal, the most described monitoring server passes through described TCP link with described Monitoring network element carries out data transmission.
13. 1 kinds of monitoring network elements, it is characterised in that including:
Determine unit, for determining the transmission control protocol between described monitoring network element and monitoring server TCP link breaks down;
Processing unit, for interrupting described TCP link with described monitoring server;
Transmission unit, for by UDP UDP link and described monitoring server number According to transmission;
Transmitting element, for described transmission unit by UDP UDP link and described monitoring Before server carries out data transmission, send UDP heartbeat message to described monitoring server;Single receiving After unit receives the solicitation message that described monitoring server sends, send detection to described monitoring server Response message;And according to described detection parameter, send described UDP detection messages to described monitoring server;
Receive unit, for receiving the described solicitation message that described monitoring server sends, described inspection Survey request message to be used for asking UDP detection messages, described solicitation message to include detecting parameter, described Detection parameter includes always detecting duration, at least one length value of UDP detection messages and each length value At least one transmission frequency of UDP detection messages.
14. monitoring network elements according to claim 13, it is characterised in that described transmission unit is concrete For sending the first message request message to described monitoring server, described first message request message is used for Request data message;And receive described monitoring server according to unit UDP message message length value and N number of UDP message message that UDP message message transmission frequency sends, described N is more than or equal to 1 Integer, described unit UDP message message length value represents the length value of each UDP message message, Described UDP message message transmission frequency represents every first preset duration one UDP message message of transmission.
15. monitoring network elements according to claim 14, it is characterised in that described UDP datagram Literary composition also carries the mark of described UDP message message;
Described transmission unit is additionally operable to determine M the UDP message message being not successfully received, and described M is More than or equal to 1, and the integer less than or equal to described N;First is sent to described monitoring server Message retransmission request message, described first message heavily asks message to include described M UDP message message Mark, described first message retransmission request message M UDP message message described in the request retransmission; And receive described in described monitoring server resends according to described UDP message message transmission frequency M UDP message message.
16. monitoring network elements according to claim 13, it is characterised in that described transmission unit is concrete For receiving the second message request message that described monitoring server sends, described second message request message For request data message, described second message request message include unit UDP message message length value and UDP message message transmission frequency;According to described unit UDP message message length value, by described data Generating K UDP message message, described K is the integer more than or equal to 1;And according to described UDP Data-message transmission frequency, sends described K UDP message message to described monitoring server.
17. monitoring network elements according to claim 16, it is characterised in that described UDP datagram Literary composition also carries the mark of UDP message message;
Described transmission unit is additionally operable to receive the second message repeat requests of described monitoring server transmission and disappears Breath, described second message retransmission request message includes the mark of H UDP message message, and described H is More than or equal to 1, and the integer less than or equal to described K, described H UDP message message is for needing Again the data message to transmit, described second message retransmission request message is for M described in request retransmission UDP message message;According to the mark of described H UDP message message, determine described H UDP Data message;And according to described UDP message message transmission frequency, again send out to described monitoring server Send described H UDP message message.
18. according to the monitoring network element described in claim 13-17 any one, it is characterised in that
Described processing unit is additionally operable to set up described TCP link with described monitoring server;
Described determine that unit is additionally operable to determine that described TCP link-recovery is normal;
Described transmission unit is additionally operable to be carried out data transmission with described monitoring server by described TCP link.
19. 1 kinds of monitoring servers, it is characterised in that including:
Processing unit, if for the transmission control protocol TCP link between monitoring network element and monitoring server Break down, then interrupt described TCP link with described monitoring network element;
Transmission unit, for carrying out data by UDP UDP link and described monitoring network element Transmission;
Determine unit, for described transmission unit by UDP UDP link and described monitoring Before network element carries out data transmission, determine that unit UDP message message length value and UDP message message pass Defeated frequency, described unit UDP message message length value represents the length value of each UDP message message, Described UDP message message transmission frequency represents every first preset duration one UDP message message of transmission;
Described transmission unit is specifically for according to described unit UDP message message length value and UDP message Message transmissions frequency is carried out data transmission with described monitoring network element by described UDP link;
Receive unit, determine that unit UDP message message length value and UDP message message pass for described Before defeated frequency, receive the UDP heartbeat message that described monitoring network element sends;
Described determine that unit includes:
Send subelement, for sending detection request according to described UDP heartbeat message to described monitoring network element Message, described solicitation message is used for asking UDP detection messages, described solicitation message to include inspection Survey parameter, described detection parameter include always detecting duration, at least one length value of UDP detection messages and At least one transmission frequency of the UDP detection messages of each length value;Described prison is received receiving subelement After the detection response message that control network element sends, receive described monitoring network unit and send according to described detection parameter UDP detection messages;
Described reception subelement, for receiving the described detection response message that described monitoring network element sends;
Determine subelement, for the reception condition according to described UDP detection messages, determine described unit UDP message message length value and UDP message message transmission frequency, the reception of described UDP detection messages Situation includes: the UDP detection messages of each length value acceptance rate under each transmission frequency.
20. monitoring servers according to claim 19, it is characterised in that described transmission unit has Body is for receiving the first message request message that described monitoring network element sends, described first message request message For request data message;According to described unit UDP message message length value, by described data genaration N Individual UDP message message, described N is the integer more than or equal to 1;And according to described UDP message Message transmissions frequency, sends described N number of UDP message message to described monitoring network element.
21. monitoring servers according to claim 20, it is characterised in that described UDP message Message also carries the mark of described UDP message message;
Described transmission unit is additionally operable to receive the first message retransmission request message that described monitoring network element sends, Described first message heavily asks message to include the mark of M UDP message message, described M for more than or Equal to 1, and the integer less than or equal to described N, described M UDP message message is needs weight The data message of new transmission, described first message retransmission request message is for M UDP described in request retransmission Data message;According to the mark of described M UDP message message, determine described M UDP message Message;And according to described UDP message message transmission frequency, resend described to described monitoring network element M UDP message message.
22. monitoring servers according to claim 19, it is characterised in that described transmission unit has Body is for sending the second message request message to described monitoring network element, and described second message request message is used for Request data message, described second message request message include described unit UDP message message length value and UDP message message transmission frequency;And receive described monitoring network unit according to described unit UDP datagram K the UDP message message that literary composition length value and UDP message message transmission frequency send, described K is big In or equal to 1 integer.
23. monitoring servers according to claim 22, it is characterised in that described UDP message Message also carries the mark of UDP message message;
Described transmission unit is additionally operable to determine the mark of H the UDP message message being not successfully received, institute Stating H is more than or equal to 1, and the integer less than or equal to described K;Send to described monitoring network element Second message retransmission request message, described second message retransmission request message includes described H UDP number According to the mark of message, described second message retransmission request message is for H UDP number described in request retransmission According to message;And receive what described monitoring network unit resend according to described UDP message message transmission frequency Described H UDP message message.
24. according to the monitoring server described in claim 19-23 any one, it is characterised in that
Described processing unit is additionally operable to set up described TCP link with described monitoring network element;
If described transmission unit to be additionally operable to described TCP link-recovery normal, then by described TCP link with Described monitoring network element carries out data transmission.
CN201310554547.1A 2013-11-07 2013-11-07 Data transmission method and device Active CN103546917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310554547.1A CN103546917B (en) 2013-11-07 2013-11-07 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310554547.1A CN103546917B (en) 2013-11-07 2013-11-07 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN103546917A CN103546917A (en) 2014-01-29
CN103546917B true CN103546917B (en) 2016-10-05

Family

ID=49969888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310554547.1A Active CN103546917B (en) 2013-11-07 2013-11-07 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN103546917B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107800754B (en) * 2016-09-07 2021-01-29 腾讯科技(深圳)有限公司 Data transmission task processing method and device, and data transmission task monitoring method and device
CN109217978A (en) * 2017-06-30 2019-01-15 华为技术有限公司 The methods, devices and systems of data transmission
CN107465751B (en) * 2017-08-22 2020-10-16 数贸科技(北京)有限公司 Communication method, device, client and computer storage medium
CN108092853B (en) * 2017-12-27 2021-09-21 珠海市君天电子科技有限公司 Method, device and system for monitoring link state of server, electronic equipment and storage medium
CN111026698B (en) * 2019-11-20 2022-06-21 迈普通信技术股份有限公司 Link repair method and device, electronic equipment and storage medium
CN114531475A (en) * 2020-11-02 2022-05-24 中兴通讯股份有限公司 Service transmission method, communication equipment and storage medium
CN114338477B (en) * 2021-12-17 2024-04-19 中汽创智科技有限公司 Communication link monitoring method, device, equipment and storage medium
CN117714011A (en) * 2022-08-31 2024-03-15 华为技术有限公司 Data stream processing method and related device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079840A (en) * 2007-02-12 2007-11-28 腾讯科技(深圳)有限公司 A data transmission system and method
CN101616077A (en) * 2009-07-29 2009-12-30 武汉大学 The rapid transmission method of the big file in the Internet
CN103078831A (en) * 2011-10-26 2013-05-01 新太科技股份有限公司 Self-adaption method on basis of TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) transmission supported by streaming media

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2919778A1 (en) * 2007-07-30 2009-02-06 Canon Kk METHOD FOR TRANSMITTING DATA PACKETS IN A TUNNEL, COMPUTER PROGRAM PRODUCT, CORRESPONDING STORAGE MEDIUM AND TUNNEL HEAD

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079840A (en) * 2007-02-12 2007-11-28 腾讯科技(深圳)有限公司 A data transmission system and method
CN101616077A (en) * 2009-07-29 2009-12-30 武汉大学 The rapid transmission method of the big file in the Internet
CN103078831A (en) * 2011-10-26 2013-05-01 新太科技股份有限公司 Self-adaption method on basis of TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) transmission supported by streaming media

Also Published As

Publication number Publication date
CN103546917A (en) 2014-01-29

Similar Documents

Publication Publication Date Title
CN103546917B (en) Data transmission method and device
CN109348508B (en) Data transmission method and device
CN106559739B (en) Lightweight data transmission method suitable for Bluetooth low-power wireless communication system
CN102664718B (en) The method and apparatus that wireless side tcp data retransmits
CN102148662B (en) Adjusting method and device for data transmitting speed
JP7234402B2 (en) Secondary link monitoring method for vehicle communication, vehicle communication terminal, electronic device and computer program
EP3235271A1 (en) Methods for enabling delay-awareness in the constrained application protocol (coap)
KR102046792B1 (en) Method of transporting data from sending node to destination node
CN102780593B (en) Based on the method for BFD protocol detection link, device and network processing unit
CN110073639A (en) Packet loss tolerant transmission control protocol congestion control
CN104093170A (en) TCP-based data transmission method and TCP agent apparatus
CN103795632A (en) Data message transmission method, related equipment and system
CN107104902B (en) RDMA data transmission method, related device and system
CN103701843A (en) Information synchronization data transmission method and system
CN105407149B (en) Information push method and device
CN106453356A (en) Wireless network bilateral accelerated transmission method and system
CN111711680A (en) File breakpoint continuous transmission method and device based on UDP (user Datagram protocol)
JPH09160858A (en) Data resending method and server
CN102769520A (en) Wireless network congestion control method based on stream control transmission protocol (SCTP)
JP5587809B2 (en) Control and monitoring of high-speed millimeter-wave links using out-of-band radio channels
KR20190068606A (en) Information processing method and apparatus
KR20190011898A (en) Terminal, base station, and transmitting method thereof in a wireless communication system
CN109217978A (en) The methods, devices and systems of data transmission
WO2023179538A1 (en) Data transmission method and apparatus, electronic device, and storage medium
CN102932392B (en) UDP (User Datagram Protocol) downloading method of multi-terminal system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant