CN103546917A - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN103546917A
CN103546917A CN201310554547.1A CN201310554547A CN103546917A CN 103546917 A CN103546917 A CN 103546917A CN 201310554547 A CN201310554547 A CN 201310554547A CN 103546917 A CN103546917 A CN 103546917A
Authority
CN
China
Prior art keywords
message
udp
network element
monitoring server
monitoring network
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.)
Granted
Application number
CN201310554547.1A
Other languages
Chinese (zh)
Other versions
CN103546917B (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

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

An embodiment of the invention provides a data transmission method and device. The method comprises the steps that a monitoring network element determines that a transmission control protocol link between the monitoring network element and a monitoring server has faults; the TCP link is interrupted by the monitoring network element and the monitoring server; the monitoring network element conducts data transmission with the monitoring server through a user datagram protocol link. The data transmission method and device solve the problems in the prior art, conduct data transmission through the UDP link when the network is flashed frequently, and can improve transmission efficiency and save network sources.

Description

Data transmission method and device
Technical field
The embodiment of the present invention relates to communication technical field, relates in particular to a kind of data transmission method and device.
Background technology
In current mobile communications network, monitoring server in supervisory control system needs each monitoring network element in monitoring mobile communication network, monitoring server is positioned at control centre's machine room, and monitoring network element is positioned at remote station, website and control centre's machine room apart from each other, therefore respectively monitoring network element can, by GPRS (General Packet Radio Service is called for short GPRS) network element access, carry out communication with monitoring server and communicate by letter.
In prior art, the transport layer of monitoring network element and monitoring server adopts transmission control protocol (Transfer Control Protocol, be called for short: TCP) communicate, after monitoring network element and monitoring server are set up TCP link, monitoring network element and monitoring server carry out message transmissions, whether monitoring network element also detects this TCP link by transmission business heartbeat message normal, if undesired, monitor network element and monitoring server and re-establish TCP link, and then by the transmission again again of the message of unsuccessful transmission, guarantee the reliability of message transmissions.
Yet, in GPRS network flash, frequently in situation, on TCP link, produce a large amount of messages and retransmit, reduced 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, for improving efficiency of transmission and saving Internet resources.
First aspect, the embodiment of the present invention provides a kind of data transmission method, comprising: monitoring network element is determined the transmission control protocol TCP link occurs fault between described monitoring network element and monitoring server; Described monitoring network element and described monitoring server interrupt described TCP link; Described monitoring network element carries out transfer of data by User Datagram Protoco (UDP) UDP link and described monitoring server.
In the possible implementation of the first of first aspect, described monitoring network element carries out transfer of data by User Datagram Protoco (UDP) UDP link and described monitoring server, comprise: described monitoring network element sends the first message request message to described monitoring server, described the first message request message is for request msg message; Described monitoring network element receives described monitoring server according to N UDP message message of unit UDP message message length value and the transmission of UDP message message transmission frequency, 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, and described UDP message message transmission frequency represents UDP message message of the every first longer transmission when default.
In conjunction with the possible implementation of the first of first aspect, in the possible implementation of the second of first aspect, described UDP message message also carries the sign of described UDP message message; Described method also comprises: described monitoring network element is determined M UDP message message of unsuccessful reception, and described M is for being more than or equal to 1, and is less than or equal to the integer of described N; Described monitoring network element sends the first message retransmission request message to described monitoring server, the heavy request message of described the first message comprises the sign of described M UDP message message, and described the first message retransmission request message is for M UDP message message described in request retransmission; Described monitoring network element receives described M the UDP message message that described monitoring server resends according to described UDP message message transmission frequency.
In the third possible implementation of first aspect, described monitoring network element carries out transfer of data by User Datagram Protoco (UDP) UDP link and described monitoring server, comprise: described monitoring network element receives the second message request message that described monitoring server sends, described the second message request message is for request msg message, and described the second message request message comprises unit UDP message message length value and UDP message message transmission frequency; Described monitoring network unit, according to described unit UDP message message length value, generates K UDP message message by described data, and described K is more than or equal to 1 integer; Described monitoring network unit, according to described UDP message message transmission frequency, sends described K UDP message message to described monitoring server.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, described UDP message message also carries the sign of UDP message message; Described method also comprises: described monitoring network element receives the second message retransmission request message that described monitoring server sends, described the second message retransmission request message comprises the sign of H UDP message message, described H is for being more than or equal to 1, and the integer that is less than or equal to described K, described H UDP message message is the data message that need to again transmit, and described the second message retransmission request message is for H UDP message message described in request retransmission; Described monitoring network unit, according to the sign of described H UDP message message, determines described H UDP message message; Described monitoring network unit, according to described UDP message message transmission frequency, resends described H UDP message message to described monitoring server.
Any one possible implementation in conjunction with first to the 4th kind of implementation of first aspect, in the 5th kind of possible implementation of first aspect, described monitoring network element also comprises before carrying out transfer of data by User Datagram Protoco (UDP) UDP link and described monitoring server: 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, described solicitation message is used for asking UDP detection messages, described solicitation message comprises detected parameters, and described detected parameters comprises at least one transmission frequency of at least one length value of total detection duration, UDP detection messages and the UDP detection messages of each length value; Described monitoring network element sends and detects response message to described monitoring server; Described monitoring network unit, according to described detected parameters, sends described UDP detection messages to described monitoring server.
Any one possible implementation in conjunction with first to the 5th kind of implementation of first aspect or first aspect, in the 6th kind of possible implementation of first aspect, also comprises: described monitoring network element and described monitoring server are set up described TCP link; Described monitoring network element determines that described TCP link-recovery is normal; Described monitoring network element carries out transfer of data by described TCP link and described monitoring server.
Second aspect, the embodiment of the present invention also provides a kind of data transmission method, comprising: if the transmission control protocol TCP link occurs fault between monitoring network element and monitoring server, described monitoring server and described monitoring network element interrupt described TCP link; Described monitoring server carries out transfer of data by User Datagram Protoco (UDP) UDP link and described monitoring network element.
In the possible implementation of the first of second aspect, before described monitoring server carries out transfer of data by User Datagram Protoco (UDP) UDP link and described monitoring network element, also comprise: described monitoring server is determined 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, and described UDP message message transmission frequency represents UDP message message of the every first longer transmission when default; Described monitoring server carries out transfer of data by User Datagram Protoco (UDP) UDP link and described monitoring network element, comprising: described monitoring server carries out transfer of data according to described unit UDP message message length value and UDP message message transmission frequency by described UDP link and described monitoring network element.
In conjunction with the possible implementation of the first of second aspect, in the possible implementation of the second of second aspect, described monitoring server carries out transfer of data according to described unit UDP message message length value and UDP message message transmission frequency by described UDP link and described monitoring network element, comprise: described monitoring server receives the first message request message that described monitoring network element sends, described the first message request message is for request msg message; Described monitoring server, according to described unit UDP message message length value, generates N UDP message message by described data, and described N is more than or equal to 1 integer; Described monitoring server, according to described UDP message message transmission frequency, sends described N UDP message message to described monitoring network element.
In conjunction with the possible implementation of the second of second aspect, in the third possible implementation of second aspect, described UDP message message also carries the sign of described UDP message message; Described method also comprises: described monitoring server receives the first message retransmission request message that described monitoring network element sends, the heavy request message of described the first message comprises the sign of M UDP message message, described M is for being more than or equal to 1, and the integer that is less than or equal to described N, described M UDP message message is the data message that need to again transmit, and described the first message retransmission request message is for M UDP message message described in request retransmission; Described monitoring server, according to the sign of described M UDP message message, is determined described M UDP message message; Described monitoring server, according to described UDP message message transmission frequency, resends described M UDP message message to described monitoring network element.
In conjunction with the possible implementation of the first of second aspect, in the 4th kind of possible implementation of second aspect, described monitoring server carries out transfer of data according to described unit UDP message message length value and UDP message message transmission frequency by described UDP link and described monitoring network element, comprise: described monitoring server sends the second message request message to described monitoring network element, described the second message request message is for request msg message, and described the second message request message comprises described unit UDP message message length value and UDP message message transmission frequency; Described monitoring server receives K the UDP message message that described monitoring network unit sends according to described unit UDP message message length value and UDP message message transmission frequency, and described K is more than or equal to 1 integer.
In conjunction with the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation of second aspect, described UDP message message also carries the sign of UDP message message; Described method also comprises: described monitoring server is determined the sign of H UDP message message of unsuccessful reception, and described H is for being more than or equal to 1, and is less than or equal to the integer of described K; Described monitoring server sends the second message retransmission request message to described monitoring network element, described the second message retransmission request message comprises the sign of described H UDP message message, and described the second message retransmission request message is for H UDP message message described in request retransmission; Described monitoring server receives described H the UDP message message that described monitoring network unit resends according to described UDP message message transmission frequency.
Any one possible implementation in conjunction with first to the 5th kind of implementation of second aspect, in the 6th kind of possible implementation of second aspect, described monitoring server also comprises before determining UDP message message length value and transmission frequency: described monitoring server receives the UDP heartbeat message that described monitoring network element sends; Described monitoring server is determined unit UDP message message length value and UDP message message transmission frequency, comprise: described monitoring server 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 comprises detected parameters, and described detected parameters comprises at least one transmission frequency of at least one length value of total detection duration, UDP detection messages and 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 messages that described monitoring network unit sends according to described detected parameters; Described monitoring server is according to the reception condition of described UDP detection messages, determine described unit UDP message message length value and UDP message message transmission frequency, the reception condition of described UDP detection messages comprises: the acceptance rate of the UDP detection messages of each length value under each transmission frequency.
Any one possible implementation in conjunction with first to the 6th kind of implementation of second aspect or second aspect, in the 7th kind of possible implementation of second aspect, also comprises: described monitoring server and described monitoring network element are set up described TCP link; If described TCP link-recovery is normal, described monitoring server carries out transfer of data by described TCP link and described monitoring network element.
The third aspect, the embodiment of the present invention provides a kind of monitoring network element, comprising: determining unit, for determining the transmission control protocol TCP link occurs fault between described monitoring network element and monitoring server; Processing unit, for interrupting described TCP link with described monitoring server; Transmission unit, for carrying out transfer of data by User Datagram Protoco (UDP) UDP link and described monitoring server.
In the possible implementation of the first of the third aspect, described transmission unit is specifically for send the first message request message to described monitoring server, and described the first message request message is for request msg message; And receive described monitoring server according to N UDP message message of unit UDP message message length value and the transmission of UDP message message transmission frequency, 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, and described UDP message message transmission frequency represents UDP message message of the every first longer transmission when default.
In conjunction with the possible implementation of the first of the third aspect, in the possible implementation of the second of the third aspect, described UDP message message also carries the sign of described UDP message message; Described transmission unit is also for determining M UDP message message of unsuccessful reception, and described M is for being more than or equal to 1, and is less than or equal to the integer of described N; To described monitoring server, send the first message retransmission request message, the heavy request message of described the first message comprises the sign of described M UDP message message, and described the first message retransmission request message is for M UDP message message described in request retransmission; And receive described M the UDP message message that described monitoring server resends according to described UDP message message transmission frequency.
In the third possible implementation of the third aspect, the second message request message that described transmission unit sends specifically for receiving described monitoring server, described the second message request message is for request msg message, and described the second message request message comprises unit UDP message message length value and UDP message message transmission frequency; According to described unit UDP message message length value, described data are generated to K UDP message message, described K is more than or equal to 1 integer; And according to described UDP message message transmission frequency, to described monitoring server, send described K UDP message message.
In conjunction with the third possible implementation of the third aspect, in the 4th kind of possible implementation of the third aspect, described UDP message message also carries the sign of UDP message message; The second message retransmission request message that described transmission unit also sends for receiving described monitoring server, described the second message retransmission request message comprises the sign of H UDP message message, described H is for being more than or equal to 1, and the integer that is less than or equal to described K, described H UDP message message is the data message that need to again transmit, and described the second message retransmission request message is for M UDP message message described in request retransmission; According to the sign of described H UDP message message, determine described H UDP message message; And according to described UDP message message transmission frequency, to described monitoring server, resend described H UDP message message.
Any one possible implementation in conjunction with first to the 4th kind of implementation of the third aspect, in the 5th kind of possible implementation of the third aspect, also comprise: transmitting element, before carrying out transfer of data for described transmission unit by User Datagram Protoco (UDP) UDP link and described monitoring server, to described monitoring server, send UDP heartbeat message; After receiving element receives the solicitation message of described monitoring server transmission, to described monitoring server, send and detect response message; And according to described detected parameters, to described monitoring server, send described UDP detection messages; Receiving element, the described solicitation message sending for receiving described monitoring server, described solicitation message is used for asking UDP detection messages, described solicitation message comprises detected parameters, and described detected parameters comprises at least one transmission frequency of at least one length value of total detection duration, UDP detection messages and the UDP detection messages of each length value.
In conjunction with any one possible implementation of first to the 5th kind of implementation of the third aspect or the third aspect, in the 6th kind of possible implementation of the third aspect, described processing unit is also for setting up described TCP link with described monitoring server; Described determining unit is also for determining that described TCP link-recovery is normal; Described transmission unit is also for carrying out transfer of data by described TCP link and described monitoring server.
Fourth aspect, the embodiment of the present invention provides a kind of monitoring server, comprising: processing unit, if for the transmission control protocol TCP link occurs fault between monitoring network element and monitoring server, interrupt described TCP link with described monitoring network element; Transmission unit, for carrying out transfer of data by User Datagram Protoco (UDP) UDP link and described monitoring network element.
In the possible implementation of the first of fourth aspect, also comprise: determining unit, before carrying out transfer of data for described transmission unit by User Datagram Protoco (UDP) UDP link and described monitoring network element, determine 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, and described UDP message message transmission frequency represents UDP message message of the every first longer transmission when default; Described transmission unit is specifically for carrying out transfer of data according to described unit UDP message message length value and UDP message message transmission frequency by described UDP link and described monitoring network element.
In conjunction with the possible implementation of the first of fourth aspect, in the possible implementation of the second of fourth aspect, the first message request message that described transmission unit sends specifically for receiving described monitoring network element, described the first message request message is for request msg message; According to described unit UDP message message length value, described data are generated to N UDP message message, described N is more than or equal to 1 integer; And according to described UDP message message transmission frequency, to described monitoring network element, send described N UDP message message.
In conjunction with the possible implementation of the second of fourth aspect, in the third possible implementation of fourth aspect, described UDP message message also carries the sign of described UDP message message; The first message retransmission request message that described transmission unit also sends for receiving described monitoring network element, the heavy request message of described the first message comprises the sign of M UDP message message, described M is for being more than or equal to 1, and the integer that is less than or equal to described N, described M UDP message message is the data message that need to again transmit, and described the first message retransmission request message is for M UDP message message described in request retransmission; According to the sign of described M UDP message message, determine described M UDP message message; And according to described UDP message message transmission frequency, to described monitoring network element, resend described M UDP message message.
In conjunction with the possible implementation of the first of fourth aspect, in the 4th kind of possible implementation of fourth aspect, described transmission unit is specifically for sending the second message request message to described monitoring network element, described the second message request message is for request msg message, and described the second message request message comprises described unit UDP message message length value and UDP message message transmission frequency; And receiving K the UDP message message that described monitoring network unit sends according to described unit UDP message message length value and UDP message message transmission frequency, described K is more than or equal to 1 integer.
In conjunction with the 4th kind of possible implementation of fourth aspect, in the 5th kind of possible implementation of fourth aspect, described UDP message message also carries the sign of UDP message message; Described transmission unit is also for determining the sign of H UDP message message of unsuccessful reception, and described H is for being more than or equal to 1, and is less than or equal to the integer of described K; To described monitoring network element, send the second message retransmission request message, described the second message retransmission request message comprises the sign of described H UDP message message, and described the second message retransmission request message is for H UDP message message described in request retransmission; And receive described H the UDP message message that described monitoring network unit resends according to described UDP message message transmission frequency.
Any one possible implementation in conjunction with first to the 5th kind of implementation of fourth aspect, in the 6th kind of possible implementation of fourth aspect, also comprise: receiving element, before determining UDP message message length value and transmission frequency for described determining unit, receive the UDP heartbeat message that described monitoring network element sends; Described determining unit comprises: send subelement, for sending 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 comprises detected parameters, and described detected parameters comprises at least one transmission frequency of at least one length value of total detection duration, UDP detection messages and the UDP detection messages of each length value; Receiving after subelement receives the detection response message that described monitoring network element sends, receiving the UDP detection messages that described monitoring network unit sends according to described detected parameters; Described reception subelement, the described detection response message sending for receiving described monitoring network element; Determine subelement, be used for according to the reception condition of described UDP detection messages, determine described unit UDP message message length value and UDP message message transmission frequency, the reception condition of described UDP detection messages comprises: the acceptance rate of the UDP detection messages of each length value under each transmission frequency.
In conjunction with any one possible implementation of first to the 6th kind of implementation of fourth aspect or fourth aspect, in the 7th kind of possible implementation of fourth aspect, described processing unit is also for setting up described TCP link with described monitoring network element; If described transmission unit is also normal for described TCP link-recovery, by described TCP link and described monitoring network element, carry out transfer of data.
The data transmission method that the embodiment of the present invention provides and device, if during the transmission control protocol TCP link occurs fault by between monitoring network element and monitoring server, monitoring server and monitoring network element interrupting TCP link, and carry out transfer of data by UDP link and monitoring network element, problems of the prior art have been solved, in network flash is frequent, by UDP link, carry out transfer of data, can improve efficiency of transmission and save Internet resources.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the flow chart of data transmission method embodiment mono-of the present invention;
Fig. 2 is the flow chart of data transmission method embodiment bis-of the present invention;
Fig. 3 is the flow chart of data transmission method embodiment tri-of the present invention;
Fig. 4 is the flow chart of data transmission method embodiment tetra-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 mono-;
Fig. 9 is the structural representation that the present invention monitors network element embodiment bis-;
Figure 10 is the structural representation that the present invention monitors network element embodiment tri-;
Figure 11 is the structural representation of monitoring server embodiment mono-of the present invention;
Figure 12 is the structural representation of monitoring server embodiment bis-of the present invention;
Figure 13 is the structural representation of monitoring server embodiment tri-of the present invention.
Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the flow chart of data transmission method embodiment mono-of the present invention, and as shown in Figure 1, the method for the present embodiment can comprise:
S101, monitoring network element are determined the TCP link occurs fault between monitoring network element and monitoring server.
In the present embodiment, monitoring network element can be determined the TCP link occurs fault between this monitoring network element and monitoring server, for example: monitoring server starts monitors monitoring network element, between monitoring network element and monitoring server, set up TCP link, monitoring network element can regularly send TCP heartbeat message to monitoring server, in the normal situation of link, monitoring server can send TCP heartbeat response message to monitoring network element, if monitoring network element does not receive in certain time length the TCP heartbeat response message that monitoring server sends, may be that network generation is congested, also be likely TCP link occurs fault, monitor so the TCP heartbeat message that network element can resend preset times, if monitoring network element is not received the TCP heartbeat response message that monitoring server sends yet, monitor network element and think TCP link occurs fault between monitoring network element and monitoring server, for example network interrupts.Similarly to the prior art, the embodiment of the present invention is not described in detail at this process that monitoring network element is determined TCP link occurs fault.
S102, monitoring network element and monitoring server interrupting TCP link.
In the present embodiment, monitoring network element is determined the TCP link occurs fault between monitoring network element and monitoring server, monitors so network element and monitoring server and interrupts this TCP link.Monitoring network element and monitoring server how interrupting TCP link process similarly to the prior art, the embodiment of the present invention does not repeat them here.
(User Datagram Protocol is called for short: UDP) link and monitoring server carry out transfer of data by User Datagram Protoco (UDP) for S103, monitoring network element.
In the present embodiment, after the TCP link of monitoring network element between interruption and monitoring server, monitoring network element carries out transfer of data by UDP link and monitoring server.This is because network interrupts, if network recovery connects, can be after network recovery by the data message of the unsuccessful transmission of TCP link, again transmit again, when network generation flash is serious, TCP link may repeatedly transmit same data message, to network, increase burden, waste Internet resources, and cause data message below slowly to can not get transmission, reduced the efficiency of transmission of data, and the embodiment of the present invention is in the situation that this network flash is serious, by transmission link, by TCP link switching, be UDP link, this is short because of the heading of the data message by UDP link transmission, the data message of identical bytes size, the ratio of the valid data that carry by TCP link transmission is less than the ratio of the valid data that carry by UDP link transmission, and UDP link is the in the situation that of the unsuccessful transmission of data message, can repeatedly not transmit this data message, not all rightly just can directly abandon, compare with TCP link, alleviated network burden, Internet resources have been saved, can avoid data message below slowly to can not get situation about transmitting, data message is as much as possible transmitted, reach and pass the how many object of how many data messages, improved efficiency of transmission, can guarantee as far as possible like this transmission of succeeding of important data message, guaranteed the normal operation of business.
The data transmission method that the embodiment of the present invention one provides, by monitoring network element determine and monitoring server between TCP link occurs fault, then with monitoring server interrupting TCP link, and carry out transfer of data by UDP link and monitoring server, problems of the prior art have been solved, in network flash is frequent, by UDP link, carry out transfer of data, can improve efficiency of transmission and save Internet resources.
Fig. 2 is the flow chart of data transmission method embodiment bis-of the present invention, and as shown in Figure 2, the method for the present embodiment can comprise:
If during the TCP link occurs fault between S201 monitoring network element and monitoring server, monitoring server and monitoring network element interrupting TCP link.
The specific implementation process of S201 in the present embodiment and the specific implementation process of the S101 in the inventive method embodiment mono-and S102 are similar, in detail can be referring to the relevant record in said method embodiment of the present invention, and the embodiment of the present invention does not repeat them here.
S202, monitoring server carry out transfer of data by UDP link and monitoring network element.
In the present embodiment, monitoring server is interrupting and is monitoring after TCP between network element links, and monitoring server carries out transfer of data by UDP link and monitoring server.This is because network interrupts, if network recovery connects, can be after network recovery by the data message of the unsuccessful transmission of TCP link, again transmit again, when network generation flash is serious, TCP link may repeatedly transmit same data message, to network, increase burden, waste Internet resources, and cause data message below slowly to can not get transmission, reduced the efficiency of transmission of data, and the embodiment of the present invention is in the situation that this network flash is serious, by transmission link, by TCP link switching, be UDP link, this is short because of the heading of the data message by UDP link transmission, the data message of identical bytes size, the ratio of the valid data that carry by TCP link transmission is less than the ratio of the valid data that carry by UDP link transmission, and UDP link is the in the situation that of the unsuccessful transmission of data message, can repeatedly not transmit this data message, not all rightly just can directly abandon, compare with TCP link, alleviated network burden, Internet resources have been saved, can avoid data message below slowly to can not get situation about transmitting, data message is as much as possible transmitted, reach and pass the how many object of how many data messages, improved efficiency of transmission, can guarantee as far as possible like this transmission of succeeding of important data message, guaranteed the normal operation of business.
The data transmission method that the embodiment of the present invention two provides, if during the transmission control protocol TCP link occurs fault by between monitoring network element and monitoring server, monitoring server and monitoring network element interrupting TCP link, and carry out transfer of data by UDP link and monitoring network element, problems of the prior art have been solved, in network flash is frequent, by UDP link, carry out transfer of data, can improve efficiency of transmission and save Internet resources.
Fig. 3 is the flow chart of data transmission method embodiment tri-of the present invention, and as shown in Figure 3, the method for the present embodiment can comprise:
S301, monitoring network element are determined the TCP link occurs fault between monitoring network element and monitoring server.
S302, monitoring network element and monitoring server interrupting TCP link.
In the present embodiment, the specific implementation process of S201 in the specific implementation process of S301 and S302 and the S101 in the inventive method embodiment mono-and S102 or the inventive method embodiment bis-is similar, in detail can be referring to the relevant record in the above embodiment of the present invention, the embodiment of the present invention does not repeat them here.Monitoring network element and monitoring server are UDP link by transmission link by TCP link switching, unit UDP message message length value and UDP message message transmission frequency while then determining by UDP link transmission data by monitoring server, unit UDP message message length value represents the length value of each UDP message message (by the data message of UDP link transmission), described UDP message message transmission frequency represents UDP message message of the every first longer transmission when default, this unit UDP message message length value and UDP message message transmission frequency are the optimum values that is applicable to network at that time, with maximum data transfer efficiency.Monitoring server is determined unit UDP message message length value and UDP message message transmission frequency, and the process that monitoring network element and monitoring server carry out transfer of data according to unit UDP message message length value and UDP message message transmission frequency 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 whether monitoring network element sends UDP heartbeat message to monitoring server, normal to detect UDP link.
S304, monitoring server receive the UDP heartbeat message that monitoring network element sends, and according to UDP heartbeat message, to monitoring network element, send solicitation message.
In the present embodiment, monitoring server receives the UDP heartbeat message that monitoring network element sends, then according to the UDP heartbeat message receiving, to monitoring network element, send solicitation message, solicitation message is used for asking UDP detection messages, solicitation message comprises detected parameters, detected parameters comprises total detection duration, at least one length value of UDP detection messages, the length value increment of UDP detection messages, the initial transmission frequency of the UDP detection messages of each length value and the increment of described initial transmission frequency, so that monitoring server is determined unit UDP message message length value and UDP message message transmission frequency according to UDP detection messages.
S305, monitoring network element receive the solicitation message that monitoring server sends, and to monitoring server, send and detect response message.
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, and can determine that UDP link is normal, then to monitoring server, returns to detection response message, to notify monitoring server monitoring network element to receive solicitation message.Monitoring server receives after the detection response message of monitoring network element transmission, prepares to receive the detection messages that monitoring network element sends.
For example, if monitoring server does not receive the detection response message that monitoring network element sends in a certain Preset Time (: 1 minute), monitoring server continues to send solicitation message to monitoring network element, until receive the detection response message that monitoring network element sends.
S307, monitoring network unit, according to detected parameters, send UDP detection messages to monitoring server.
In the present embodiment, monitoring network element obtains detected parameters from the solicitation message receiving, then according to detected parameters, to monitoring server, send UDP detection messages, for example: always detecting duration can be 9 minutes, at least one length value of UDP detection messages can be 50 bytes, 100 bytes, 150 bytes, at least one transmission frequency of the UDP detection messages of each length value is 5/minute (being a UDP detection messages of transmission in every 0.2 minute), 10/minute (being a UDP detection messages of transmission in every 0.1 minute), 20/minute (being a UDP detection messages of transmission in every 0.05 minute).UDP detection messages can be for being 0 detection messages or being 1 detection messages entirely entirely, the embodiment of the present invention does not limit at this, monitoring network element sent 5 according to the transmission frequency of 5/minute by the UDP detection messages of 50 byte length values in one minute, monitoring network element sent 10 according to the transmission frequency of 10/minute by the UDP detection messages of 50 byte length values in one minute, monitoring network element sent 15 according to the transmission frequency of 15/minute by the UDP detection messages of 50 byte length values in one minute, monitoring network element sent 5 according to the transmission frequency of 5/minute by the UDP detection messages of 100 byte length values in one minute, monitoring network element sent 10 according to the transmission frequency of 10/minute by the UDP detection messages of 100 byte length values in one minute, monitoring network element sent 20 according to the transmission frequency of 20/minute by the UDP detection messages of 100 byte length values in one minute, monitoring network element sent 5 according to the transmission frequency of 5/minute by the UDP detection messages of 150 byte length values in one minute, monitoring network element sent 10 according to the transmission frequency of 10/minute by the UDP detection messages of 150 byte length values in one minute, monitoring network element sent 20 according to the transmission frequency of 20/minute by the UDP detection messages of 150 byte length values in one minute.
S308, monitoring server receive the UDP detection messages that monitoring network unit sends according to detected parameters, and according to the reception condition of UDP detection messages, determine unit UDP message message length value and UDP message message transmission frequency.
In the present embodiment, monitoring server receives monitoring network element in total above-mentioned UDP detection messages sending in duration that detects, and then according to the reception condition of UDP detection messages, determines UDP message message length value and UDP message message transmission frequency.The reception condition of this UDP detection messages comprises: the acceptance rate of the UDP detection messages of each length value under each transmission frequency.Monitoring server can be determined the number (for example monitoring UDP detection messages that network element can notify each length value of the monitoring server total number under each transmission frequency) of the UDP detection messages that altogether send of monitoring network element under each transmission frequency and each UDP detection messages length value, can also determine the number of the UDP detection messages of the successful reception under each transmission frequency and each UDP detection messages length value simultaneously, thereby the acceptance rate of the UDP detection messages that can determine each length value under each transmission frequency, for example: monitoring server can be determined UDP detection messages acceptance rate under the transmission frequency of 5/minute of 50 byte length values, can determine UDP detection messages acceptance rate under the transmission frequency of 5/minute of 100 byte length values, can determine UDP detection messages acceptance rate under the transmission frequency of 5/minute of 150 byte length values, can determine UDP detection messages acceptance rate under the transmission frequency of 10/minute of 50 byte length values, can determine UDP detection messages acceptance rate under the transmission frequency of 10/minute of 100 byte length values, can determine UDP detection messages acceptance rate under the transmission frequency of 10/minute of 150 byte length values, can determine UDP detection messages acceptance rate under the transmission frequency of 20/minute of 50 byte length values, can determine UDP detection messages acceptance rate under the transmission frequency of 20/minute of 100 byte length values, can determine UDP detection messages acceptance rate under the transmission frequency of 20/minute of 150 byte length values, then monitoring server is according to maximum acceptance rate, determine length value and the UDP message message transmission frequency of unit UDP message message.In prior art, while carrying out transfer of data by UDP link, can according to network condition, by Data Division, not be the data message that is applicable to this network, only can determine according to business the length value of each data message, when if network condition is bad, the length value of this data message surpasses the maximum transmitted restriction of current UDP link, directly abandon this data message, when if network condition is good, the length value of this data message is smaller with respect to the transmission restriction of current UDP link, can not effectively utilize bandwidth, cause efficiency of transmission to reduce, therefore, the embodiment of the present invention is before carrying out data-message transmission, according to UDP detection messages, go to survey unit UDP message message size and the transmission frequency of suitable this network condition, further to improve efficiency of transmission.
Alternatively, monitoring server is not when total detection duration arrives, can can determine length value and the UDP message message transmission frequency of best unit UDP message message according to the UDP detection messages having received, monitoring server can send and detect abort request message to monitoring network element so, monitoring network unit returns to detection termination response message according to detecting abort request message, for example, if monitoring server does not receive the detection termination response message that monitoring network element sends in a certain Preset Time (1 minute), monitoring server 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 sending UDP detection messages to monitoring server, if monitoring server sends data, monitoring network element receives data, monitor network element and can send the first message request message to monitoring server, the first message request message is for request msg message.
S310, monitoring server receive the first message request message that monitoring network element sends, and according to unit UDP message message length value, data are generated to N UDP message message, and according to UDP message message transmission frequency, to monitoring network element, send N UDP message message.
S311, monitoring network element receive monitoring server according to N UDP message message of unit UDP message message length value and the transmission of UDP message message transmission frequency.
In the present embodiment, monitoring server receives the first message request message that monitoring network element sends, then according to above-mentioned definite unit UDP message message length value, data waiting for transmission are generated to N UDP message message, N is more than or equal to 1 integer, the length value of each UDP message message is unit UDP message message length value, for example: monitoring server can for example, be packaged into a file by data waiting for transmission (complete Business Stream), again the file after packing is compressed, file after compression is split according to unit UDP message message length value, can obtain N UDP message message.Then monitoring server sends this N UDP message message according to above-mentioned definite UDP message message transmission frequency to monitoring network element.Correspondingly, monitoring network element receives monitoring server according to N UDP message message of unit UDP message message length value and the transmission of UDP message message transmission frequency, monitoring network element can be merged into the data message receiving a file, again the file after merging is carried out to decompress(ion), then resolve to data (for example Business Stream).
Alternatively, monitoring network element can send acknowledge message to monitoring server, notice monitoring server successfully receives UDP message message, monitoring server can discharge the above-mentioned UDP message message of buffer memory so, a part of Internet resources with release busy, for example: monitoring server can be waited for the confirmation of monitoring network element after monitoring network element sends the UDP message message of presetting number, after receiving the confirmation of monitoring network element, send again the UDP message message of the default number of next group, can avoid like this monitoring server transport layer process scarce capacity to cause blocking.
The data transmission method that the embodiment of the present invention three provides, during transmission control protocol TCP link occurs fault by when between monitoring network element and monitoring server, monitoring network element and monitoring server interrupting TCP link, the UDP detection messages that monitoring server can send according to monitoring network element is determined unit UDP message message length value and the UDP message message transmission frequency that is applicable to current network, then according to definite unit UDP message message length value and UDP message message transmission frequency, to monitoring network element, send UDP message message, problems of the prior art have been solved, in network flash is frequent, by UDP link, carry out transfer of data, can improve efficiency of transmission and save Internet resources, by determining unit UDP message message length value and the UDP message message transmission frequency that is applicable to current network, further improve efficiency of transmission.
Fig. 4 is the flow chart of data transmission method embodiment tetra-of the present invention, and as shown in Figure 4, the present embodiment is on the basis of embodiment of the method shown in Fig. 3, and further, the method for the present embodiment can also comprise:
S401, monitoring network element are determined M UDP message message of unsuccessful reception, to monitoring server, send the first message retransmission request message.
In the present embodiment, monitoring network element is after reception monitoring server is according to N UDP message message of unit UDP message message length value and the transmission of UDP message message transmission frequency, monitoring network element can be determined M UDP message message of unsuccessful reception, M is for being more than or equal to 1, and the integer that is less than or equal to described N, the first message retransmission request message is for request retransmission M UDP message message, particularly, UDP message message can carry the sign (for example numbering) of UDP message message, monitoring server is when generating N UDP message message, N UDP message message can be stamped to sign, for example N UDP message message stamped to continuous numbering, the UDP message message that monitoring network element can receive according to success is determined the sign of M UDP message message of unsuccessful reception in N UDP message message, thereby can determine M UDP message message of unsuccessful reception.Then monitor network element and send message retransmission request message to monitoring server, this message retransmission request message comprises the sign of M UDP message message.
S402, monitoring server receive the first message retransmission request message that monitoring network element sends, and according to the sign of M UDP message message, determine M UDP message message; And according to UDP message message transmission frequency, to monitoring network element, resend M UDP message message.
S403, monitoring network element receive M the UDP message message that monitoring server resends according to UDP message message transmission frequency.
In the present embodiment, monitoring server receives the first message retransmission request message that monitoring network element sends, and obtains the sign of M UDP message message in the first message retransmission request message, and this M UDP message message is the data message that need to again transmit; The sign correspondence of each UDP message message a UDP message message, then according to the sign of this M UDP message message, determine that the sign of each UDP message message in the sign of M UDP message message distinguishes corresponding UDP message message, thereby determine M UDP message message, in this M UDP message message, the length value of each UDP message message is unit UDP message message length value, monitoring server, again according to UDP message message transmission frequency, resends M UDP message message of the unsuccessful reception of monitoring network element to monitoring network element.Correspondingly, monitoring network element receives M the UDP message message that monitoring server resends according to UDP message message transmission frequency.In prior art, by UDP link, there is no failed retransmission mechanism, so transmission success rate is lower, therefore the embodiment of the present invention adopts the data message retransmission mechanism (breakpoint transmission mechanism) of unsuccessful transmission, can improve the success rate of transfer of data, guarantee normal operation and the integrality of business.
The data transmission method that the embodiment of the present invention four provides, further, determines M UDP message message of unsuccessful reception by monitoring network element, to monitoring server, send the first message retransmission request message; Monitoring server, according to the sign of M UDP message message in the first message retransmission request message, is determined M UDP message message, and according to UDP message message transmission frequency, to monitoring network element, resends M UDP message message.Can improve the success rate of transfer of data, guarantee to greatest extent normal operation and the integrality of business.
Fig. 5 is the flow chart of data transmission method embodiment five of the present invention, and as shown in Figure 5, the method for the present embodiment can comprise:
S501, monitoring network element are determined the TCP link occurs fault between monitoring network element and monitoring server.
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, and according to UDP heartbeat message, to monitoring network element, send solicitation message.
S505, monitoring network element receive the solicitation message that monitoring server sends, and to monitoring server, send and detect response message.
S506, monitoring server receive the detection response message that monitoring network element sends.
S507, monitoring network unit, according to detected parameters, send UDP detection messages to monitoring server.
S508, monitoring server receive the UDP detection messages that monitoring network unit sends according to detected parameters, and according to the reception condition of UDP detection messages, determine unit UDP message message length value and UDP message message transmission frequency.
The specific implementation process of S501-S508 in the present embodiment and the specific implementation process of the S301-S308 in the inventive method embodiment tri-are similar, in detail can be referring to the relevant record in said method embodiment of the present invention, and the embodiment of the present invention does not repeat them here.
S509, monitoring server send the second message request message to monitoring network element.
In the present embodiment, monitoring server is after definite unit UDP message message length value and UDP message message transmission frequency, if monitoring network element sends data, monitoring server receives data, monitoring server can send the second message request message to monitoring network element, the second message request message is for request msg message, the second message request message in the present embodiment comprises unit UDP message message length value and UDP message message transmission frequency, so that monitoring network unit is according to unit UDP message message length value and UDP message message transmission frequency in Secondary Report literary composition request message, to monitoring server, send UDP message message.
S510, monitoring network element receive the second message request message that monitoring server sends, according to unit UDP message message length value, data are generated to K UDP message message, and according to UDP message message transmission frequency, to monitoring server, send K UDP message message.
S511, monitoring server receive monitoring network unit according to K UDP message message of unit UDP message message length value and the transmission of UDP message message transmission frequency.
In the present embodiment, monitoring network element receives the second message request message that monitoring server sends, then according to the unit UDP message message length value of the second message request message, data waiting for transmission are generated to K UDP message message, K is more than or equal to 1 integer, the length value of each UDP message message is unit UDP message message length value, for example: monitoring network element can for example, be packaged into a file by data waiting for transmission (complete Business Stream), again the file after packing is compressed, file after compression is split according to unit UDP message message length value, can obtain K UDP message message.Then monitoring server sends this K UDP message message according to the UDP message message transmission frequency of the second message request message to monitoring network element.Correspondingly, monitoring server receives monitoring network unit and sends K UDP message message according to unit UDP message message length value and UDP message message transmission frequency, monitoring server can be merged into the data message receiving a file, again the file after merging is carried out to decompress(ion), then resolve to data (for example Business Stream).
Alternatively, monitoring server can send acknowledge message to monitoring network element, notice monitoring network element successfully receives UDP message message, monitor so the above-mentioned UDP message message that network element can discharge buffer memory, a part of Internet resources with release busy, for example: monitoring network element can be to the confirmation of waiting for monitoring server after monitoring server sends the UDP message message of default number, after the confirmation that receives monitoring server, send again the UDP message message of the default number of next group, can avoid like this monitoring network element transport layer process scarce capacity and cause blocking.
The data transmission method that the embodiment of the present invention five provides, during transmission control protocol TCP link occurs fault by when between monitoring network element and monitoring server, monitoring network element and monitoring server interrupting TCP link, the UDP detection messages that monitoring server can send according to monitoring network element is determined unit UDP message message length value and the UDP message message transmission frequency that is applicable to current network, then unit UDP message message length value and UDP message message transmission frequency are sent to monitoring network element, monitoring network unit is according to unit UDP message message length value and UDP message message transmission frequency, to monitoring server, send UDP message message, problems of the prior art have been solved, in network flash is frequent, by UDP link, carry out transfer of data, can improve efficiency of transmission and save Internet resources, by determining unit UDP message message length value and the UDP message message transmission frequency that is applicable to current network, further improve efficiency of transmission.
Fig. 6 is the flow chart of data transmission method embodiment six of the present invention, and as shown in Figure 6, the present embodiment is on the basis of embodiment of the method shown in Fig. 5, and further, the method for the present embodiment can also comprise:
S601, monitoring server are determined the sign of H UDP message message of unsuccessful reception, to monitoring network element, send the second message retransmission request message.
Wherein, H is for being more than or equal to 1, and is less than or equal to the integer of above-mentioned K; The second message retransmission request message comprises the sign of H UDP message message, and the second message retransmission request message is for request retransmission H UDP message message.
S602, monitoring network element receive the second message retransmission request message that monitoring server sends, according to the sign of H UDP message message, determine H UDP message message, and according to UDP message message transmission frequency, to monitoring server, resend H UDP message message.
Wherein, H UDP message message is the data message that need to again transmit.
S603, monitoring server receive H the UDP message message that described monitoring network unit resends according to UDP datagram literary composition transmission frequency.
The specific implementation process of S601-S603 in the present embodiment and the specific implementation process of the S401-S403 in the inventive method embodiment tetra-are similar, in detail can be referring to the relevant record in said method embodiment of the present invention, and the embodiment of the present invention does not repeat them here.
The data transmission method that the embodiment of the present invention six provides, further, determines H UDP message message of unsuccessful reception by monitoring server, to monitoring network element, send the second message retransmission request message; Monitoring network unit, according to the sign of H UDP message message in Secondary Report literary composition retransmission request message, determines H UDP message message, and according to UDP message message transmission frequency, to monitoring server, resends H UDP message message.Can improve the success rate of transfer of data, guarantee to greatest extent normal operation and the integrality of business.
Fig. 7 is the flow chart of data transmission method embodiment seven of the present invention, as shown in Figure 7, the present embodiment Fig. 1-Fig. 6 arbitrary shown on the basis of embodiment of the method, further, the method for the present embodiment can also comprise:
S701, monitoring network element and monitoring server are set up TCP link.
S702, monitoring network element determine that TCP link-recovery is normal.
S703, monitoring network element carry out transfer of data by TCP link and monitoring server.
In the present embodiment, after monitoring network element and monitoring server interrupting TCP link, the time that interval is default, monitoring server and monitoring network element are set up the TCP link between monitoring network element and monitoring server each other, monitoring network element can determine that TCP link-recovery is normal, for example: monitoring network element can regularly send TCP heartbeat message to monitoring server, monitoring server can send TCP heartbeat response message to monitoring network element, in the normal situation of link, monitoring network element can receive the TCP heartbeat response message that monitoring server sends, monitor network element and think that the TCP link-recovery between monitoring network element and monitoring server is normal.Monitoring so network element and monitoring server is TCP link by communication link by UDP link switching, and monitoring network element can carry out transfer of data by TCP link and monitoring server, and monitoring server also can carry out transfer of data by TCP link and monitoring network element.
The data transmission method that the embodiment of the present invention seven provides, further, by setting up TCP link between monitoring network element and monitoring server, monitoring network element determines that TCP link-recovery is normal, then monitor network element and monitoring server and carry out transfer of data by TCP link, can make full use of the advantage of TCP link like this, in the situation that network quality is good, guarantees the reliability of transmission and improve efficiency of transmission.
Fig. 8 is the structural representation that the present invention monitors network element embodiment mono-, as shown in Figure 8, the monitoring network element of the present embodiment can comprise: determining unit 11, processing unit 12 and transmission unit 13, wherein, determining unit 11, for determining the TCP link occurs fault between described monitoring network element and monitoring server; Processing unit 12, for interrupting described TCP link with described monitoring server; Transmission unit 13, for carrying out transfer of data by UDP link and described monitoring server.
The monitoring network element of the present embodiment, can monitor the performed technical scheme of network element for carrying out in said method embodiment of the present invention, it realizes principle and technique effect is similar, can, referring to the record mutually in said method embodiment of the present invention, repeat no more in detail herein.
Fig. 9 is the structural representation that the present invention monitors network element embodiment bis-, as shown in Figure 9, the monitoring network element of the present embodiment is on the basis of Fig. 8 shown device structure, further, in the feasible implementation of the first, transmission unit 13 is specifically for send the first message request message to described monitoring server, and described the first message request message is for request msg message; And receive described monitoring server according to N UDP message message of unit UDP message message length value and the transmission of UDP message message transmission frequency, 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, and described UDP message message transmission frequency represents UDP message message of the every first longer transmission when default.
Alternatively, the sign that described UDP message message also carries described UDP message message; Transmission unit 13 is for determining M UDP message message of unsuccessful reception, and described M is for being more than or equal to 1, and is less than or equal to the integer of described N; To described monitoring server, send the first message retransmission request message, the heavy request message of described the first message comprises the sign of described M UDP message message, and described the first message retransmission request message is for M UDP message message described in request retransmission; And receive described M the UDP message message that described monitoring server resends according to described UDP message message transmission frequency.
In the feasible implementation of the second, the second message request message that transmission unit 13 sends specifically for receiving described monitoring server, described the second message request message is for request msg message, and described the second message request message comprises unit UDP message message length value and UDP message message transmission frequency; According to described unit UDP message message length value, described data are generated to K UDP message message, described K is more than or equal to 1 integer; And according to described UDP message message transmission frequency, to described monitoring server, send described K UDP message message.
Alternatively, the sign that described UDP message message also carries UDP message message; The second message retransmission request message that transmission unit 13 also sends for receiving described monitoring server, described the second message retransmission request message comprises the sign of K UDP message message, described H is for being more than or equal to 1, and the integer that is less than or equal to described K, described H UDP message message is the data message that need to again transmit, and described the second message retransmission request message is for H UDP message message described in request retransmission; According to the sign of described H UDP message message, determine described H UDP message message; And according to described UDP message message transmission frequency, to described monitoring server, resend described H UDP message message.
Alternatively, the monitoring network element of the present embodiment is also wanted to comprise: transmitting element 14 and receiving element 15, wherein, before transmitting element 14 carries out transfer of data for transmission unit 13 by UDP link and described monitoring server, to described monitoring server, send UDP heartbeat message; After receiving element 15 receives the solicitation message of described monitoring server transmission, to described monitoring server, send and detect response message; And according to described detected parameters, to described monitoring server, send described UDP detection messages; Receiving element 15, the described solicitation message sending for receiving described monitoring server, described solicitation message is used for asking UDP detection messages, described solicitation message comprises detected parameters, and described detected parameters comprises at least one transmission frequency of at least one length value of total detection duration, UDP detection messages and the UDP detection messages of each length value.
Alternatively, processing unit 12 is also for setting up described TCP link with described monitoring server; Determining unit 11 is also for determining that described TCP link-recovery is normal; Transmission unit 13 is also for carrying out transfer of data by described TCP link and described monitoring server.
The monitoring network element of the present embodiment, can monitor the performed technical scheme of network element for carrying out in said method embodiment of the present invention, it realizes principle and technique effect is similar, can, referring to the record mutually in said method embodiment of the present invention, repeat no more in detail herein.
Figure 10 is the structural representation that the present invention monitors network element embodiment tri-, as shown in figure 10, the monitoring network element of the present embodiment can comprise: transmitter 21, receiver 22, memory 23 and the processor 24 being connected with transmitter 21, receiver 22 and memory 23 respectively.Wherein, in memory 23, store batch processing code, and processor 24 is for calling the program code of memory 23 storages, for carrying out following operation: determine the TCP link occurs fault between described monitoring network element and monitoring server; Interrupt described TCP link with described monitoring server; And carry out transfer of data by UDP link and described monitoring server.
Alternatively, processor 24 carries out transfer of data by UDP link and described monitoring server, comprising: processor 24 is controlled transmitter 21 and sent the first message request message to described monitoring server, and described message request message is for the first request msg message; And processor 24 is controlled the described monitoring server of receiver 22 reception according to N UDP message message of unit UDP message message length value and the transmission of UDP message message transmission frequency, 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, and described UDP message message transmission frequency represents UDP message message of the every first longer transmission when default.
Alternatively, the sign that described UDP message message also carries described UDP message message; Processor 24 is also determined M UDP message message of unsuccessful reception, and described M is for being more than or equal to 1, and is less than or equal to the integer of described N; Processor 24 is also controlled transmitter 21 and is sent the first message retransmission request message to described monitoring server, the heavy request message of described the first message comprises the sign of described M UDP message message, and described the first message retransmission request message is for M UDP message message described in request retransmission; Processor 24 is also controlled receiver 22 and is received described M the UDP message message that described monitoring server resends according to described UDP message message transmission frequency.
Alternatively, processor 24 carries out transfer of data by UDP link and described monitoring server, comprise: processor 24 is controlled receiver 22 and received the second message request message that described monitoring server sends, described the second message request message is for request msg message, and described the second message request message comprises unit UDP message message length value and UDP message message transmission frequency; Processor 24, according to described unit UDP message message length value, generates K UDP message message by described data, and described K is more than or equal to 1 integer; Processor 24 is controlled transmitter 21 according to described UDP message message transmission frequency, to described monitoring server, sends described K UDP message message.
Alternatively, the sign that described UDP message message also carries UDP message message; Processor 24 is also controlled receiver 22 and is received the second message retransmission request message that described monitoring server sends, described the second message retransmission request message comprises the sign of H UDP message message, described H is for being more than or equal to 1, and the integer that is less than or equal to described K, described H UDP message message is the data message that need to again transmit, and described the second message retransmission request message is for H UDP message message described in request retransmission; Processor 24, also according to the sign of described H UDP message message, is determined described H UDP message message; Processor 24 is also controlled transmitter 21 according to described UDP message message transmission frequency, to described monitoring server, resends described H UDP message message.
Alternatively, before described processor 24 carries out transfer of data by User Datagram Protoco (UDP) UDP link and described monitoring server, described processor 24 is also controlled transmitter 21 and is sent UDP heartbeat message to described monitoring server; Described processor 24 is also controlled receiver 22 and is received the solicitation message that described monitoring server sends, described solicitation message is used for asking UDP detection messages, described solicitation message comprises detected parameters, and described detected parameters comprises at least one transmission frequency of at least one length value of total detection duration, UDP detection messages and the UDP detection messages of each length value; Described processor 24 is also controlled transmitter 21 and is sent and detect response message to described monitoring server; And according to described detected parameters, to described monitoring server, send described UDP detection messages.
Alternatively, processor 24 is also set up described TCP link with described monitoring server; Determine that described TCP link-recovery is normal; And carry out transfer of data by described TCP link and described monitoring server.
The monitoring network element of the present embodiment, can monitor the performed technical scheme of network element for carrying out in said method embodiment of the present invention, it realizes principle and technique effect is similar, can, referring to the record mutually in said method embodiment of the present invention, repeat no more in detail herein.
Figure 11 is the structural representation of monitoring server embodiment mono-of the present invention, as shown in figure 11, the monitoring network element of the present embodiment can comprise: processing unit 31 and transmission unit 32, wherein, if processing unit 31, for the TCP link occurs fault between monitoring network element and monitoring server, interrupts described TCP link with described monitoring network element; Transmission unit 32 is for carrying out transfer of data by UDP link and described monitoring network element.
The monitoring server of the present embodiment, can be for carrying out the performed technical scheme of monitoring server in said method embodiment of the present invention, it realizes principle and technique effect is similar, can, referring to the record mutually in said method embodiment of the present invention, repeat no more in detail herein.
Figure 12 is the structural representation of monitoring server embodiment bis-of the present invention, as shown in figure 12, the monitoring server of the present embodiment is on the basis of Figure 11 shown device structure, further, also comprise: determining unit 33, wherein, before this determining unit 33 is carried out transfer of data for transmission unit 32 by User Datagram Protoco (UDP) UDP link and described monitoring network element, determine 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 message message transmission frequency represents UDP message message of the every first longer transmission when default, transmission unit 32 is specifically for carrying out transfer of data according to described unit UDP message message length value and UDP message message transmission frequency by described UDP link and described monitoring network element.
Alternatively, the first message request message that transmission unit 32 sends specifically for receiving described monitoring network element, described the first message request message is for request msg message; According to described unit UDP message message length value, described data are generated to N UDP message message, described N is more than or equal to 1 integer; And according to described UDP message message transmission frequency, to described monitoring network element, send described N UDP message message.
Alternatively, the sign that described UDP message message also carries described UDP message message; The first message retransmission request message that transmission unit 32 also sends for receiving described monitoring network element, the heavy request message of described the first message comprises the sign of M UDP message message, described M is for being more than or equal to 1, and the integer that is less than or equal to described N, described M UDP message message is the data message that need to again transmit, and described the first message retransmission request message is for M UDP message message described in request retransmission; According to the sign of described M UDP message message, determine described M UDP message message; And according to described UDP message message transmission frequency, to described monitoring network element, resend described M UDP message message.
Alternatively, transmission unit 32 is specifically for sending the second message request message to described monitoring network element, described the second message request message is for request msg message, and described the second message request message comprises described unit UDP message message length value and UDP message message transmission frequency; And receiving K the UDP message message that described monitoring network unit sends according to described unit UDP message message length value and UDP message message transmission frequency, described K is more than or equal to 1 integer.
Alternatively, the sign that described UDP message message also carries UDP message message; Transmission unit 32 is also for determining the sign of H UDP message message of unsuccessful reception, and described H is for being more than or equal to 1, and is less than or equal to the integer of described K; To described monitoring network element, send the second message retransmission request message, described the second message retransmission request message comprises the sign of described H UDP message message, and described the second message retransmission request message is for H UDP message message described in request retransmission; And receive described H the UDP message message that described monitoring network unit resends according to described UDP message message transmission frequency.
Alternatively, the monitoring server of the present embodiment can also comprise receiving element 34, and wherein, this receiving element 34 receives the UDP heartbeat message that described monitoring network element sends before determining UDP message message length value and transmission frequency for determining unit 33;
Described determining unit 33 can comprise: send subelement 331, receive subelement 332 and definite subelement 333, wherein, send subelement 331 for sending 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 comprises detected parameters, and described detected parameters comprises at least one transmission frequency of at least one length value of total detection duration, UDP detection messages and the UDP detection messages of each length value; Receiving after subelement 332 receives the detection response message that described monitoring network element sends, receiving the UDP detection messages that described monitoring network unit sends according to described detected parameters; Receive the described detection response message that subelement 332 sends for receiving described monitoring network element; Determine that subelement 333 is for according to the reception condition of described UDP detection messages, determine described unit UDP message message length value and UDP message message transmission frequency, the reception condition of described UDP detection messages comprises: the acceptance rate of the UDP detection messages of each length value under each transmission frequency.
Alternatively, processing unit 31 is also for setting up described TCP link with described monitoring network element; If transmission unit 32 is also normal for described TCP link-recovery, by described TCP link and described monitoring network element, carry out transfer of data.
The monitoring server of the present embodiment, can be for carrying out the performed technical scheme of monitoring server in said method embodiment of the present invention, it realizes principle and technique effect is similar, can, referring to the record mutually in said method embodiment of the present invention, repeat no more in detail herein.
Figure 13 is the structural representation of monitoring server embodiment tri-of the present invention, as shown in figure 13, the monitoring server of the present embodiment can comprise: transmitter 41, receiver 42, memory 43 and the processor 44 being connected with transmitter 41, receiver 42 and memory 43 respectively.Wherein, in memory 43, store batch processing code, and processor 44 is for calling the program code of memory 43 storages, be used for carrying out following operation: if the transmission control protocol TCP link occurs fault between monitoring network element and monitoring server is interrupted described TCP link with described monitoring network element; And carry out transfer of data by User Datagram Protoco (UDP) UDP link and described monitoring network element.
Alternatively, before processor 44 carries out transfer of data by User Datagram Protoco (UDP) UDP link and described monitoring network element, also determine 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, and described UDP message message transmission frequency represents UDP message message of the every first longer transmission when default; Processor 44 carries out transfer of data by User Datagram Protoco (UDP) UDP link and described monitoring network element, comprising: processor 44 carries out transfer of data according to described unit UDP message message length value and UDP message message transmission frequency by described UDP link and described monitoring network element.
Alternatively, processor 44 carries out transfer of data according to described unit UDP message message length value and UDP message message transmission frequency by described UDP link and described monitoring network element, comprise: processor 44 is controlled receiver 42 and received the first message request message that described monitoring network element sends, and described the first message request message is for request msg message; Processor 44, according to described unit UDP message message length value, generates N UDP message message by described data, and described N is more than or equal to 1 integer; Processor 44 is controlled transmitter 41 according to described UDP message message transmission frequency, to described monitoring network element, sends described N UDP message message.
Alternatively, the sign that described UDP message message also carries described UDP message message; Processor 44 is also controlled receiver 42 and is received the first message retransmission request message that described monitoring network element sends, the heavy request message of described the first message comprises the sign of M UDP message message, described M is for being more than or equal to 1, and the integer that is less than or equal to described N, described M UDP message message is the data message that need to again transmit, and described the first message retransmission request message is for M UDP message message described in request retransmission; Processor 44, according to the sign of described M UDP message message, is determined described M UDP message message; Processor 44 is controlled transmitter 41 according to described UDP message message transmission frequency, to described monitoring network element, resends described M UDP message message.
Alternatively, processor 44 carries out transfer of data according to described unit UDP message message length value and UDP message message transmission frequency by described UDP link and described monitoring network element, comprise: processor 44 is controlled transmitter 41 and sent the second message request message to described monitoring network element, described the second message request message is for request msg message, and described the second message request message comprises described unit UDP message message length value and UDP message message transmission frequency; Processor 44 is controlled the described monitoring network of receiver 42 reception unit according to K UDP message message of described unit UDP message message length value and the transmission of UDP message message transmission frequency, and described K is more than or equal to 1 integer.
Alternatively, the sign that described UDP message message also carries UDP message message; Processor 44 is also determined the sign of H UDP message message of unsuccessful reception, and described H is for being more than or equal to 1, and is less than or equal to the integer of described K; Processor 44 is also controlled transmitter 41 and is sent the second message retransmission request message to described monitoring network element, described the second message retransmission request message comprises the sign of described H UDP message message, and described the second message retransmission request message is for H UDP message message described in request retransmission; Processor 44 is also controlled described H the UDP message message that the described monitoring network of receiver 42 reception unit resends according to described UDP message message transmission frequency.
Alternatively, processor 44 also comprises before determining UDP message message length value and transmission frequency: processor 44 is controlled receiver 42 and received the UDP heartbeat message that described monitoring network element sends; Processor 44 is determined unit UDP message message length value and UDP message message transmission frequency, comprise: processor 44 is controlled transmitter 41 and to described monitoring network element, sent solicitation message according to described UDP heartbeat message, described solicitation message is used for asking UDP detection messages, described solicitation message comprises detected parameters, and described detected parameters comprises at least one transmission frequency of at least one length value of total detection duration, UDP detection messages and the UDP detection messages of each length value; Processor 44 is controlled receiver 42 and is received the detection response message that described monitoring network element sends; And receive the UDP detection messages that described monitoring network unit sends according to described detected parameters; Processor 44 is according to the reception condition of described UDP detection messages, determine described unit UDP message message length value and UDP message message transmission frequency, the reception condition of described UDP detection messages comprises: the acceptance rate of the UDP detection messages of each length value under each transmission frequency.
Alternatively, processor 44 is also set up described TCP link with described monitoring network element; And if described TCP link-recovery is normal, by described TCP link and described monitoring network element, carry out transfer of data.
The monitoring server of the present embodiment, can be for carrying out the performed technical scheme of monitoring server in said method embodiment of the present invention, it realizes principle and technique effect is similar, can, referring to the record mutually in said method embodiment of the present invention, repeat no more in detail herein.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each embodiment of the method can complete by the relevant hardware of program command.Aforesaid program can be stored in a computer read/write memory medium.This program, when carrying out, is carried out the step that comprises above-mentioned each embodiment of the method; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: each embodiment, only in order to technical scheme of the present invention to be described, is not intended to limit above; Although the present invention is had been described in detail with reference to aforementioned each embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or some or all of technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (30)

1. a data transmission method, is characterized in that, comprising:
Monitoring network element is determined the transmission control protocol TCP link occurs fault between described monitoring network element and monitoring server;
Described monitoring network element and described monitoring server interrupt described TCP link;
Described monitoring network element carries out transfer of data by User Datagram Protoco (UDP) UDP link and described monitoring server.
2. method according to claim 1, is characterized in that, described monitoring network element carries out transfer of data by User Datagram Protoco (UDP) UDP link and described monitoring server, comprising:
Described monitoring network element sends the first message request message to described monitoring server, and described the first message request message is for request msg message;
Described monitoring network element receives described monitoring server according to N UDP message message of unit UDP message message length value and the transmission of UDP message message transmission frequency, 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, and described UDP message message transmission frequency represents UDP message message of the every first longer transmission when default.
3. method according to claim 2, is characterized in that, described UDP message message also carries the sign of described UDP message message;
Described method also comprises:
Described monitoring network element is determined M UDP message message of unsuccessful reception, and described M is for being more than or equal to 1, and is less than or equal to the integer of described N;
Described monitoring network element sends the first message retransmission request message to described monitoring server, the heavy request message of described the first message comprises the sign of described M UDP message message, and described the first message retransmission request message is for M UDP message message described in request retransmission;
Described monitoring network element receives described M the UDP message message that described monitoring server resends according to described UDP message message transmission frequency.
4. method according to claim 1, is characterized in that, described monitoring network element carries out transfer of data by User Datagram Protoco (UDP) UDP link and described monitoring server, comprising:
Described monitoring network element receives the second message request message that described monitoring server sends, and described the second message request message is for request msg message, and described the second message request message comprises unit UDP message message length value and UDP message message transmission frequency;
Described monitoring network unit, according to described unit UDP message message length value, generates K UDP message message by described data, and described K is more than or equal to 1 integer;
Described monitoring network unit, according to described UDP message message transmission frequency, sends described K UDP message message to described monitoring server.
5. method according to claim 4, is characterized in that, described UDP message message also carries the sign of UDP message message;
Described method also comprises:
Described monitoring network element receives the second message retransmission request message that described monitoring server sends, described the second message retransmission request message comprises the sign of H UDP message message, described H is for being more than or equal to 1, and the integer that is less than or equal to described K, described H UDP message message is the data message that need to again transmit, and described the second message retransmission request message is for H UDP message message described in request retransmission;
Described monitoring network unit, according to the sign of described H UDP message message, determines described H UDP message message;
Described monitoring network unit, according to described UDP message message transmission frequency, resends described H UDP message message to described monitoring server.
6. according to the method described in claim 2-5 any one, it is characterized in that, described monitoring network element also comprises before carrying out transfer of data by User Datagram Protoco (UDP) UDP link and described monitoring server:
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, described solicitation message is used for asking UDP detection messages, described solicitation message comprises detected parameters, and described detected parameters comprises at least one transmission frequency of at least one length value of total detection duration, UDP detection messages and the UDP detection messages of each length value;
Described monitoring network element sends and detects response message to described monitoring server;
Described monitoring network unit, according to described detected parameters, sends described UDP detection messages to described monitoring server.
7. according to the method described in claim 1-6 any one, it is characterized in that, also comprise:
Described monitoring network element and described monitoring server are set up described TCP link;
Described monitoring network element determines that described TCP link-recovery is normal;
Described monitoring network element carries out transfer of data by described TCP link and described monitoring server.
8. a data transmission method, is characterized in that, comprising:
If the transmission control protocol TCP link occurs fault between monitoring network element and monitoring server, described monitoring server and described monitoring network element interrupt described TCP link;
Described monitoring server carries out transfer of data by User Datagram Protoco (UDP) UDP link and described monitoring network element.
9. method according to claim 8, is characterized in that, described monitoring server also comprises before carrying out transfer of data by User Datagram Protoco (UDP) UDP link and described monitoring network element:
Described monitoring server is determined 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, and described UDP message message transmission frequency represents UDP message message of the every first longer transmission when default;
Described monitoring server carries out transfer of data by User Datagram Protoco (UDP) UDP link and described monitoring network element, comprising:
Described monitoring server carries out transfer of data according to described unit UDP message message length value and UDP message message transmission frequency by described UDP link and described monitoring network element.
10. method according to claim 9, is characterized in that, described monitoring server carries out transfer of data according to described unit UDP message message length value and UDP message message transmission frequency by described UDP link and described monitoring network element, comprising:
Described monitoring server receives the first message request message that described monitoring network element sends, and described the first message request message is for request msg message;
Described monitoring server, according to described unit UDP message message length value, generates N UDP message message by described data, and described N is more than or equal to 1 integer;
Described monitoring server, according to described UDP message message transmission frequency, sends described N UDP message message to described monitoring network element.
11. methods according to claim 10, is characterized in that, described UDP message message also carries the sign of described UDP message message;
Described method also comprises:
Described monitoring server receives the first message retransmission request message that described monitoring network element sends, the heavy request message of described the first message comprises the sign of M UDP message message, described M is for being more than or equal to 1, and the integer that is less than or equal to described N, described M UDP message message is the data message that need to again transmit, and described the first message retransmission request message is for M UDP message message described in request retransmission;
Described monitoring server, according to the sign of described M UDP message message, is determined described M UDP message message;
Described monitoring server, according to described UDP message message transmission frequency, resends described M UDP message message to described monitoring network element.
12. methods according to claim 9, is characterized in that, described monitoring server carries out transfer of data according to described unit UDP message message length value and UDP message message transmission frequency by described UDP link and described monitoring network element, comprising:
Described monitoring server sends the second message request message to described monitoring network element, and described the second message request message is for request msg message, and described the second message request message comprises described unit UDP message message length value and UDP message message transmission frequency;
Described monitoring server receives K the UDP message message that described monitoring network unit sends according to described unit UDP message message length value and UDP message message transmission frequency, and described K is more than or equal to 1 integer.
13. methods according to claim 12, is characterized in that, described UDP message message also carries the sign of UDP message message;
Described method also comprises:
Described monitoring server is determined the sign of H UDP message message of unsuccessful reception, and described H is for being more than or equal to 1, and is less than or equal to the integer of described K;
Described monitoring server sends the second message retransmission request message to described monitoring network element, described the second message retransmission request message comprises the sign of described H UDP message message, and described the second message retransmission request message is for H UDP message message described in request retransmission;
Described monitoring server receives described H the UDP message message that described monitoring network unit resends according to described UDP message message transmission frequency.
14. according to the method described in claim 9-13 any one, it is characterized in that, described monitoring server also comprises before determining UDP message message length value and transmission frequency:
Described monitoring server receives the UDP heartbeat message that described monitoring network element sends;
Described monitoring server is determined unit UDP message message length value and UDP message message transmission frequency, comprising:
Described monitoring server 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 comprises detected parameters, and described detected parameters comprises at least one transmission frequency of at least one length value of total detection duration, UDP detection messages and 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 messages that described monitoring network unit sends according to described detected parameters;
Described monitoring server is according to the reception condition of described UDP detection messages, determine described unit UDP message message length value and UDP message message transmission frequency, the reception condition of described UDP detection messages comprises: the acceptance rate of the UDP detection messages of each length value under each transmission frequency.
Method described in 15. according to Claim 8-14 any one, is characterized in that, also comprises:
Described monitoring server and described monitoring network element are set up described TCP link;
If described TCP link-recovery is normal, described monitoring server carries out transfer of data by described TCP link and described monitoring network element.
16. 1 kinds of monitoring network elements, is characterized in that, comprising:
Determining unit, for determining the transmission control protocol TCP link occurs fault between described monitoring network element and monitoring server;
Processing unit, for interrupting described TCP link with described monitoring server;
Transmission unit, for carrying out transfer of data by User Datagram Protoco (UDP) UDP link and described monitoring server.
17. monitoring network elements according to claim 16, is characterized in that, described transmission unit is specifically for send the first message request message to described monitoring server, and described the first message request message is for request msg message; And receive described monitoring server according to N UDP message message of unit UDP message message length value and the transmission of UDP message message transmission frequency, 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, and described UDP message message transmission frequency represents UDP message message of the every first longer transmission when default.
18. monitoring network elements according to claim 17, is characterized in that, described UDP message message also carries the sign of described UDP message message;
Described transmission unit is also for determining M UDP message message of unsuccessful reception, and described M is for being more than or equal to 1, and is less than or equal to the integer of described N; To described monitoring server, send the first message retransmission request message, the heavy request message of described the first message comprises the sign of described M UDP message message, and described the first message retransmission request message is for M UDP message message described in request retransmission; And receive described M the UDP message message that described monitoring server resends according to described UDP message message transmission frequency.
19. monitoring network elements according to claim 16, it is characterized in that, the second message request message that described transmission unit sends specifically for receiving described monitoring server, described the second message request message is for request msg message, and described the second message request message comprises unit UDP message message length value and UDP message message transmission frequency; According to described unit UDP message message length value, described data are generated to K UDP message message, described K is more than or equal to 1 integer; And according to described UDP message message transmission frequency, to described monitoring server, send described K UDP message message.
20. monitoring network elements according to claim 19, is characterized in that, described UDP message message also carries the sign of UDP message message;
The second message retransmission request message that described transmission unit also sends for receiving described monitoring server, described the second message retransmission request message comprises the sign of H UDP message message, described H is for being more than or equal to 1, and the integer that is less than or equal to described K, described H UDP message message is the data message that need to again transmit, and described the second message retransmission request message is for M UDP message message described in request retransmission; According to the sign of described H UDP message message, determine described H UDP message message; And according to described UDP message message transmission frequency, to described monitoring server, resend described H UDP message message.
21. according to the monitoring network element described in claim 17-20 any one, it is characterized in that, also comprises:
Transmitting element, before carrying out transfer of data, sends UDP heartbeat message to described monitoring server for described transmission unit by User Datagram Protoco (UDP) UDP link and described monitoring server; After receiving element receives the solicitation message of described monitoring server transmission, to described monitoring server, send and detect response message; And according to described detected parameters, to described monitoring server, send described UDP detection messages;
Receiving element, the described solicitation message sending for receiving described monitoring server, described solicitation message is used for asking UDP detection messages, described solicitation message comprises detected parameters, and described detected parameters comprises at least one transmission frequency of at least one length value of total detection duration, UDP detection messages and the UDP detection messages of each length value.
22. according to the monitoring network element described in claim 16-21 any one, it is characterized in that,
Described processing unit is also for setting up described TCP link with described monitoring server;
Described determining unit is also for determining that described TCP link-recovery is normal;
Described transmission unit is also for carrying out transfer of data by described TCP link and described monitoring server.
23. 1 kinds of monitoring servers, is characterized in that, comprising:
Processing unit, if for the transmission control protocol TCP link occurs fault between monitoring network element and monitoring server, interrupt described TCP link with described monitoring network element;
Transmission unit, for carrying out transfer of data by User Datagram Protoco (UDP) UDP link and described monitoring network element.
24. monitoring servers according to claim 23, is characterized in that, also comprise:
Determining unit, before carrying out transfer of data for described transmission unit by User Datagram Protoco (UDP) UDP link and described monitoring network element, determine 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, and described UDP message message transmission frequency represents UDP message message of the every first longer transmission when default;
Described transmission unit is specifically for carrying out transfer of data according to described unit UDP message message length value and UDP message message transmission frequency by described UDP link and described monitoring network element.
25. monitoring servers according to claim 24, is characterized in that, the first message request message that described transmission unit sends specifically for receiving described monitoring network element, and described the first message request message is for request msg message; According to described unit UDP message message length value, described data are generated to N UDP message message, described N is more than or equal to 1 integer; And according to described UDP message message transmission frequency, to described monitoring network element, send described N UDP message message.
26. monitoring servers according to claim 25, is characterized in that, described UDP message message also carries the sign of described UDP message message;
The first message retransmission request message that described transmission unit also sends for receiving described monitoring network element, the heavy request message of described the first message comprises the sign of M UDP message message, described M is for being more than or equal to 1, and the integer that is less than or equal to described N, described M UDP message message is the data message that need to again transmit, and described the first message retransmission request message is for M UDP message message described in request retransmission; According to the sign of described M UDP message message, determine described M UDP message message; And according to described UDP message message transmission frequency, to described monitoring network element, resend described M UDP message message.
27. monitoring servers according to claim 24, it is characterized in that, described transmission unit is specifically for sending the second message request message to described monitoring network element, described the second message request message is for request msg message, and described the second message request message comprises described unit UDP message message length value and UDP message message transmission frequency; And receiving K the UDP message message that described monitoring network unit sends according to described unit UDP message message length value and UDP message message transmission frequency, described K is more than or equal to 1 integer.
28. monitoring servers according to claim 27, is characterized in that, described UDP message message also carries the sign of UDP message message;
Described transmission unit is also for determining the sign of H UDP message message of unsuccessful reception, and described H is for being more than or equal to 1, and is less than or equal to the integer of described K; To described monitoring network element, send the second message retransmission request message, described the second message retransmission request message comprises the sign of described H UDP message message, and described the second message retransmission request message is for H UDP message message described in request retransmission; And receive described H the UDP message message that described monitoring network unit resends according to described UDP message message transmission frequency.
29. according to the monitoring server described in claim 24-28 any one, it is characterized in that, also comprises:
Receiving element, before determining UDP message message length value and transmission frequency, receives the UDP heartbeat message that described monitoring network element sends for described determining unit;
Described determining unit comprises:
Send subelement, for sending 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 comprises detected parameters, and described detected parameters comprises at least one transmission frequency of at least one length value of total detection duration, UDP detection messages and the UDP detection messages of each length value; Receiving after subelement receives the detection response message that described monitoring network element sends, receiving the UDP detection messages that described monitoring network unit sends according to described detected parameters;
Described reception subelement, the described detection response message sending for receiving described monitoring network element;
Determine subelement, be used for according to the reception condition of described UDP detection messages, determine described unit UDP message message length value and UDP message message transmission frequency, the reception condition of described UDP detection messages comprises: the acceptance rate of the UDP detection messages of each length value under each transmission frequency.
30. according to the monitoring server described in claim 23-29 any one, it is characterized in that,
Described processing unit is also for setting up described TCP link with described monitoring network element;
If described transmission unit is also normal for described TCP link-recovery, by described TCP link and described monitoring network element, carry out transfer of data.
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 true CN103546917A (en) 2014-01-29
CN103546917B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465751A (en) * 2017-08-22 2017-12-12 世纪禾光科技发展(北京)有限公司 Communication means, device, client and computer-readable storage medium
CN107800754A (en) * 2016-09-07 2018-03-13 腾讯科技(深圳)有限公司 Data transfer task processing, data transfer task monitoring method and device
CN108092853A (en) * 2017-12-27 2018-05-29 珠海市君天电子科技有限公司 Method, apparatus, system, electronic equipment and the storage medium of monitoring server link state
CN109217978A (en) * 2017-06-30 2019-01-15 华为技术有限公司 The methods, devices and systems of data transmission
CN111026698A (en) * 2019-11-20 2020-04-17 迈普通信技术股份有限公司 Link repair method and device, electronic equipment and storage medium
CN114338477A (en) * 2021-12-17 2022-04-12 中汽创智科技有限公司 Communication link monitoring method, device, equipment and storage medium
CN114531475A (en) * 2020-11-02 2022-05-24 中兴通讯股份有限公司 Service transmission method, communication equipment and storage medium
WO2024046151A1 (en) * 2022-08-31 2024-03-07 华为技术有限公司 Data stream processing method and related device

Citations (4)

* 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
US20090034416A1 (en) * 2007-07-30 2009-02-05 Canon Kabushiki Kaisha Method for the transmission of data packets in a tunnel, corresponding computer program product, storage means and tunnel end-point
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

Patent Citations (4)

* 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
US20090034416A1 (en) * 2007-07-30 2009-02-05 Canon Kabushiki Kaisha Method for the transmission of data packets in a tunnel, corresponding computer program product, storage means and tunnel end-point
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

Cited By (13)

* 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
CN107800754A (en) * 2016-09-07 2018-03-13 腾讯科技(深圳)有限公司 Data transfer task processing, data transfer task monitoring method and device
US11528345B2 (en) 2017-06-30 2022-12-13 Huawei Technologies Co., Ltd. Data transmission method and system, and apparatus
CN109217978A (en) * 2017-06-30 2019-01-15 华为技术有限公司 The methods, devices and systems of data transmission
CN107465751A (en) * 2017-08-22 2017-12-12 世纪禾光科技发展(北京)有限公司 Communication means, device, client and computer-readable 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
CN108092853A (en) * 2017-12-27 2018-05-29 珠海市君天电子科技有限公司 Method, apparatus, system, electronic equipment and the storage medium of monitoring server link state
CN111026698A (en) * 2019-11-20 2020-04-17 迈普通信技术股份有限公司 Link repair method and device, 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
CN114338477A (en) * 2021-12-17 2022-04-12 中汽创智科技有限公司 Communication link monitoring method, device, equipment and storage medium
CN114338477B (en) * 2021-12-17 2024-04-19 中汽创智科技有限公司 Communication link monitoring method, device, equipment and storage medium
WO2024046151A1 (en) * 2022-08-31 2024-03-07 华为技术有限公司 Data stream processing method and related device

Also Published As

Publication number Publication date
CN103546917B (en) 2016-10-05

Similar Documents

Publication Publication Date Title
CN103546917A (en) Data transmission method and device
RU2667508C2 (en) Method and device for processing radio link failure
CN110418376B (en) Data transmission method and device
CN106559739B (en) Lightweight data transmission method suitable for Bluetooth low-power wireless communication system
JP4198741B2 (en) Communication device, communication system, communication method, communication program, communication circuit
CN111435844B (en) Method, device, equipment and system for correcting audio data in dual-wireless Bluetooth communication
CN111770428B (en) Monitoring method of wireless equipment
JP2007089174A (en) Method and device for improving signal transmission rate in wireless communication system
CN103368705A (en) Method and arrangement in a telecommunication system
US20160366008A1 (en) Data retransmission method and apparatus
CN107104902B (en) RDMA data transmission method, related device and system
KR20020012401A (en) Method for Flow Control of data with Window Timer in a Communication System
WO2017103044A1 (en) Method for multicasting a plurality of data packets to a plurality of receivers
JP3537015B2 (en) Packet communication method
CN111131179B (en) Service processing method, device, network equipment and storage medium
CN104104608A (en) Message receiving method and device
CN110234101B (en) Wireless transmission method, equipment and system for reliably transmitting data
JP2007267082A (en) Data transmitter/receiver and data transmitting/receiving method
JP7000662B2 (en) Methods, computer programs, systems and terminals
KR101769133B1 (en) Electronic device adaptively selecting tcp/r-udp and packet transmitting/receiving method thereof
TWI814957B (en) Communication device and communication method
JP2011015273A (en) Content distribution system
US20110238819A1 (en) Apparatus and method for transmitting information on an operational state of the same
JP2008289080A (en) Terminal device, network device, and data communication method
CN103209213A (en) Data transmission method and system for data subscription

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