CN106230619A - Data sending, receiving method and device, data transmission method and system - Google Patents

Data sending, receiving method and device, data transmission method and system Download PDF

Info

Publication number
CN106230619A
CN106230619A CN201610579401.6A CN201610579401A CN106230619A CN 106230619 A CN106230619 A CN 106230619A CN 201610579401 A CN201610579401 A CN 201610579401A CN 106230619 A CN106230619 A CN 106230619A
Authority
CN
China
Prior art keywords
message
analytical equipment
serial numbers
sequence number
marking serial
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
CN201610579401.6A
Other languages
Chinese (zh)
Other versions
CN106230619B (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.)
HUNAN ZHIZHUO INNOVATION FINANCIAL ELECTRONIC CO Ltd
Original Assignee
HUNAN ZHIZHUO INNOVATION FINANCIAL ELECTRONIC 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 HUNAN ZHIZHUO INNOVATION FINANCIAL ELECTRONIC CO Ltd filed Critical HUNAN ZHIZHUO INNOVATION FINANCIAL ELECTRONIC CO Ltd
Priority to CN201610579401.6A priority Critical patent/CN106230619B/en
Publication of CN106230619A publication Critical patent/CN106230619A/en
Application granted granted Critical
Publication of CN106230619B publication Critical patent/CN106230619B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures

Abstract

The invention discloses a kind of data transmission method for uplink, send data to analytical equipment for shunting device by TCP channel, including step: S11: send and there is the message of sequence number to analytical equipment;S12: monitor the marking serial numbers whether receiving analytical equipment feedback;S13: when receiving the described marking serial numbers of analytical equipment feedback, records described marking serial numbers;S14: judge whether shunting device reconnects to new analytical equipment;If so, next step is performed, otherwise repeated execution of steps S11;S15: determine the beginning sequence number of next message to be sent according to the described marking serial numbers of the last time record;S16: send described message to new analytical equipment according to described beginning sequence number.The present invention sends message by this marking serial numbers, it is ensured that the integrity that sequence of message sends, and prevents loss of data, improves the work efficiency of analytical equipment.

Description

Data sending, receiving method and device, data transmission method and system
Technical field
The present invention relates to field of data transmission, particularly relate to data sending, receiving method and device, data transmission method and System.
Background technology
In a lot of network processing environment, owing to there is the input network interface bandwidth place more than single back-end analysis equipment Reason ability, it is therefore desirable to according to the disposal ability of back-end analysis equipment, input flow rate is assigned to multiple analytical equipment and process. The data collected are passed to analytical equipment by shunting device, and main collection is all tcp data stream.For the TCP number collected According to stream, being all based on a complete interaction sequence and be analyzed the when of analysis, a complete interaction sequence contains multiple TCP message.Therefore, being analyzed when, it is necessary to assure multiple TCP message of complete sequence enter same analysis and set Standby, otherwise can cause and analyze unsuccessfully.
Traditional way is data directly to be sent from network interface card with the form of Ethernet message, and analytical equipment connects oneself Receiving Ethernet message, package analysis.But so receive message and can cause analytical equipment degraded performance, it is easy to report lost literary composition.
Prior art improves for disadvantages mentioned above, shunting device increases TCP Client module, sets in analysis Standby middle increase TCP service module, by setting up TCP channel between shunting device and analytical equipment, transmission front-end collection arrives Bypass tcp data.Although this improved method ensure that data message will not be lost, but TCP Client module is nearly all The form using software realizes, i.e. the branching process of the network equipment is to realize in the driver of equipment mostly.This reality Existing mode can increase the load of the network equipment, affects the disposal ability of other business, and speed is the most limited, and performance is the most limited.
Have at present the network equipment begin to use hardware realize part TCP function, i.e. high speed shunting device TCP Client be In hardware, (or main body is based on hardware) realizes, it is ensured that equipment can shunt in the case of total interface flow is fully loaded in real time, Accelerate transmission speed.
But, hardware TCP Client has two shortcomings, and one is the response message that TCP can not process the analytical equipment of complexity, Two is that TCP cannot oneself go to understand which message can make up a complete analytical sequence, and it can only be some continuous print (TCP) information stream gives same analytical equipment.Therefore, if the analytical equipment being currently running is died or software crash, Shunting device is when migrating, and when i.e. connecting another analytical equipment, does not knows to start to transmit data from where, it is more likely that make Becoming analysing content, a most complete analytical sequence part passes to the equipment of collapse, and another part is passed to new analytical equipment, caused Analyze unsuccessfully.Meanwhile, if software processes is very slow, the data of shunting device accumulation will be cumulative, will also result in data and loses Lose.
Summary of the invention
For solving above-mentioned technical problem, the present invention provides a kind of data sending, receiving method and device, data transmission method And system, it is possible to ensure the integrity in data transmission procedure, it is achieved shunting device load balancing.
The technical scheme that the present invention provides is as follows:
The invention discloses a kind of data transmission method for uplink, send data to analysis for shunting device by TCP channel and set Standby, including step: S11: to send and there is the message of sequence number to analytical equipment;S12: monitor whether receive analytical equipment feedback Marking serial numbers;S13: when receiving the described marking serial numbers of analytical equipment feedback, records described marking serial numbers;S14: judge to divide Whether flow device reconnects to new analytical equipment;If so, next step is performed, otherwise repeated execution of steps S11;S15: according to The described marking serial numbers of the last record determines the beginning sequence number of next message to be sent;S16: according to described beginning sequence Number send described message to new analytical equipment.
It is further preferred that further comprise the steps of: S10: according to preset rules, the message in sequence of message is compiled continuous print Sequence number.
It is further preferred that described step S15 " determines next pending according to the described marking serial numbers of the last time record The beginning sequence number of the message sent " specifically include step: S151: described marking serial numbers the last time recorded according to preset rules Beginning sequence number as next message to be sent.
It is further preferred that further comprise the steps of: after described step S13 " marking serial numbers described in shunting device record " S131: release sequence number comes the space that the described message before described marking serial numbers is corresponding.
The invention also discloses a kind of data receiver method, receive shunting device for analytical equipment by TCP channel and send out The data sent, including step: S21: receive the message with sequence number that shunting device sends;S22: judge the described report received Whether literary composition forms complete sequence of message;If so, next step is performed, otherwise, repeated execution of steps S21;S23: when receive When described message forms complete sequence of message, feedback one marking serial numbers is to shunting device.
It is further preferred that described step S23 " feedback one marking serial numbers is to shunting device " specifically includes step: S231: In the complete sequence of message that will be currently formed, the Next Sequence of the sequence number of last message returns as described marking serial numbers It is fed to shunting device.
The invention also discloses a kind of data transmission method, for passing through TCP channel between shunting device and analytical equipment Transmission data, including step: S11: shunting device sends has the message of sequence number to analytical equipment;S12: shunting device is monitored The no marking serial numbers receiving analytical equipment feedback;S21: analytical equipment receives the message with sequence number that shunting device sends; S22: analytical equipment judges whether the described message received forms complete sequence of message;If so, next step is performed, otherwise, Repeated execution of steps S21;S23: when the described message received forms complete sequence of message, analytical equipment feedback one labelling Sequence number is to shunting device;S13: when shunting device receives the described marking serial numbers of analytical equipment feedback, record described labelling Sequence number;S14: shunting device judges whether to reconnect to new analytical equipment;If so, perform next step, otherwise repeat Step S11;S15: shunting device determines opening of next message to be sent according to the described marking serial numbers that the last time records Beginning sequence number;S16: shunting device sends described message to new analytical equipment according to described beginning sequence number.
It is further preferred that further comprise the steps of: S10: according to preset rules, the message in sequence of message is compiled continuous print Sequence number.
It is further preferred that described step S23 " feedback one marking serial numbers is to shunting device " specifically includes step: S231: In the complete sequence of message that will be currently formed, the Next Sequence of the sequence number of last message returns as described marking serial numbers It is fed to shunting device.
It is further preferred that described step S15 " determines next pending according to the described marking serial numbers of the last time record The beginning sequence number of the message sent " specifically include step: S151: described marking serial numbers the last time recorded according to preset rules Beginning sequence number as next message to be sent.
It is further preferred that further comprise the steps of: after described step S13 " marking serial numbers described in shunting device record " S131: release sequence number comes the space that the described message before described marking serial numbers is corresponding.
The invention discloses a kind of data sending device, for sending data to analytical equipment by TCP channel, including dividing Flow device, described shunting device specifically includes: sending module, has the message of sequence number to analytical equipment for sending;Monitor mould Block, for monitoring the marking serial numbers whether receiving analytical equipment feedback;Logging modle, for when receiving analytical equipment feedback Described marking serial numbers time, record the marking serial numbers of described analytical equipment feedback;Connection judgment module, is used for judging shunting device Whether reconnect to new analytical equipment;Determine module, for reconnecting to new analytical equipment when described shunting device Time upper, determined the beginning sequence number of next message to be sent according to the described marking serial numbers of the last time record;Described transmission Module is additionally operable to send described message to new analytical equipment according to described beginning sequence number.
It is further preferred that also include: numbering module, for the message in sequence of message being compiled even according to preset rules Continuous sequence number.
Determine that module is specifically for the described labelling recorded the last time according to preset rules it is further preferred that described Sequence number is as the beginning sequence number of next message to be sent.
It is further preferred that also include: release module, come the described report before described marking serial numbers for discharging sequence number The space that literary composition is corresponding.
The invention also discloses a kind of data sink, for receiving, by TCP channel, the data that shunting device sends, Including analytical equipment, described analytical equipment specifically includes: receiver module, for receiving the report with sequence number that shunting device sends Literary composition;Sequence of message judge module, for judging whether the described message received forms complete sequence of message;Feedback module, During for forming complete sequence of message when the described message received, feedback one marking serial numbers is to shunting device.
It is further preferred that described feedback module specifically in the complete sequence of message that will currently be formed last The Next Sequence of the sequence number of message is fed back to shunting device as described marking serial numbers.
The invention also discloses a kind of data transmission system, for transmitting data by TCP channel, send dress including data Putting and data sink, described data sending device includes shunting device;Described shunting device specifically includes: sending module, There is the message of sequence number to analytical equipment for sending;Monitor module, for monitoring the mark whether receiving analytical equipment feedback Note sequence number;Logging modle, for when receiving the described marking serial numbers of analytical equipment feedback, records described analytical equipment feedback Marking serial numbers;Connection judgment module, for judging whether shunting device reconnects to new analytical equipment;Determine module, For when described shunting device reconnects in new analytical equipment, according to the last time, the described marking serial numbers of record is true The beginning sequence number of fixed next message to be sent;Described sending module is additionally operable to send described message according to described beginning sequence number To new analytical equipment;Described data sink includes that analytical equipment, described analytical equipment specifically include: receiver module, uses In receiving the message with sequence number that shunting device sends;Sequence of message judge module, for judging the described message received Whether form complete sequence of message;Feedback module, for when the described message received forms complete sequence of message, returns Present a marking serial numbers to shunting device.
It is further preferred that described shunting device also includes: numbering module, it is used for according to preset rules in sequence of message Message compile continuous print sequence number.
Determine that module is specifically for the described labelling recorded the last time according to preset rules it is further preferred that described Sequence number is as the beginning sequence number of next message to be sent.
It is further preferred that described feedback module specifically in the complete sequence of message that will currently be formed last The Next Sequence of the sequence number of message is fed back to shunting device as described marking serial numbers.
It is further preferred that described shunting device also includes: release module, it is used for discharging sequence number and comes described marking serial numbers The space that the sequence of message at described message place before is corresponding.
Compared with prior art, the present invention between shunting device and analytical equipment by message is compiled continuous print The mode of sequence number guarantees to send the integrity of sequence of message.If equipment goes offline or software crash, shunting device will divide with new Desorption device is set up and is connected, or analytical equipment is very slow, and the message causing shunting device to accumulate gets more and more, and shunting device actively disconnects Connect, set up with new analytical equipment and be connected, all can start again to transmit message from the marking serial numbers of analytical equipment feedback last time, Guarantee the integrity for the sequence of message analyzed.
Accompanying drawing explanation
Below by the way of the most understandable, accompanying drawings preferred implementation, the present invention is given furtherly Bright.
Fig. 1 is the key step schematic diagram of a kind of data transmission method for uplink of the present invention;
Fig. 2 is that in a kind of data transmission method for uplink of the present invention, the sequence number of message compiles schematic diagram;
Fig. 3 is the entire protocol schematic diagram of a kind of data transmission method for uplink of the present invention;
Fig. 4 is the step schematic diagram of the present invention a kind of data receiver method;
Fig. 5 is the key step schematic diagram of a kind of data transmission method of the present invention;
Fig. 6 be a kind of data sending device of the present invention mainly comprise schematic diagram;
Fig. 7 be a kind of data sink of the present invention mainly comprise schematic diagram;
Fig. 8 be a kind of data transmission system of the present invention mainly comprise schematic diagram;
Fig. 9 be a kind of data transmission system of the present invention be fully composed schematic diagram.
Drawing reference numeral illustrates:
110. shunting devices, 111. sending modules, 112. monitoring modules, 113. logging modles, 114. connection judgment modules, 115. determine module, 116. numbering modules, 117. release module;
220. analytical equipments, 221. receiver modules, 222. sequence of message judge modules, 223. feedback module;
Detailed description of the invention
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will comparison accompanying drawing explanation The detailed description of the invention of the present invention.It should be evident that the accompanying drawing in describing below is only some embodiments of the present invention, for From the point of view of those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain other according to these accompanying drawings Accompanying drawing, and obtain other embodiment.
For making simplified form, only schematically show part related to the present invention in each figure, they do not represent It is as the practical structures of product.It addition, so that simplified form readily appreciates, some figure has identical structure or function Parts, only symbolically depict one of them, or have only marked one of them.In this article, " one " not only represents " only this ", it is also possible to represent the situation of " more than one ".
Fig. 1 is the key step schematic diagram of a kind of data transmission method for uplink of the present invention, and one as the present invention is embodied as Example, as it is shown in figure 1, a kind of data transmission method for uplink, sends data to analytical equipment for shunting device 110 by TCP channel 220, including step: S11: send and there is the message of sequence number to analytical equipment 220;S12: monitor whether receive analytical equipment The marking serial numbers of 220 feedbacks;S13: when receiving the described marking serial numbers of analytical equipment 220 feedback, records described labelling sequence Number;S14: judge whether shunting device 110 reconnects to new analytical equipment 220;If so, perform next step, otherwise repeat Perform step S11;S15: determine the beginning sequence of next message to be sent according to the described marking serial numbers of the last time record Number;S16: send described message to new analytical equipment 220 according to described beginning sequence number.
Concrete, the data transmission method for uplink of the present invention is set up between shunting device 110 and analytical equipment 220, Qi Zhongfen Flow device 110 and analytical equipment 220 set up TCP channel, send TCP message sequence.By in the sequence of message complete to Multiple messages carry out compiling sequence number, then by the marking serial numbers of analytical equipment 220 feedback, the TCP Client of shunting device 110 The sequence number of the message of the sequence of message sent is needed when can determine that reconnect.Send message by this marking serial numbers, protect Demonstrate,prove the integrity that sequence of message sends, prevented loss of data, improve the work efficiency of analytical equipment 220.
Preferably, said method further comprises the steps of: S10: according to preset rules, the message in sequence of message is compiled even Continuous sequence number.Concrete, Fig. 2 is that in a kind of data transmission method for uplink of the present invention, the sequence number of message compiles schematic diagram, as in figure 2 it is shown, Message different in size, each message has a numbering, starts message is compiled sequence number from message 1, can rollback.The sequence of message Number it is continuous print, as it can be seen, from sequence number 3 to sequence number 12.If 16, after having arrived 0xffff, next test serial number It is 0.
Above-described embodiment is improved, obtains preferred embodiment.Fig. 3 is the complete of a kind of data transmission method for uplink of the present invention The rapid schematic diagram of synchronizing.As a specific embodiment of the present invention, as it is shown on figure 3, a kind of data transmission method for uplink, including step: S10: the message in sequence of message is compiled continuous print sequence number according to preset rules;S11: send the message with sequence number to analyzing Equipment 220;S12: monitor the marking serial numbers whether receiving analytical equipment 220 feedback;S13: when receiving analytical equipment 220 times During the described marking serial numbers presented, record described marking serial numbers;S14: judge whether shunting device 110 reconnects to new analysis Equipment 220;If so, next step is performed, otherwise repeated execution of steps S11;S151: the last time is recorded according to preset rules Described marking serial numbers is as the beginning sequence number of next message to be sent;S16: send described message according to described beginning sequence number To new analytical equipment 220.
Concrete, the present invention marking serial numbers by analytical equipment 220 feedback, can determine whether that a complete sequence of message is No transmission completely is terminated, simultaneously when shunting device 110 reconnects new analytical equipment 220, it is possible to determine next step needs The test serial number sent, it is to avoid occur that the message in a sequence of message sends to different analytical equipments 220, cause message not Completely, it is impossible to carry out the analysis of sequence of message.
Preferably, S131 is further comprised the steps of: after described step S13 " shunting device 110 records described marking serial numbers ": release Put sequence number and come the space that the described message before described marking serial numbers is corresponding.Concrete, the present invention is learnt by marking serial numbers Complete message sequence, the space corresponding to complete sequence of message that timely removing has sent and received, it is possible to reduce slow The memory space that the data deposited take, improves the processing speed of shunting device 110.
Fig. 4 is the step schematic diagram of the present invention a kind of data receiver method, as another specific embodiment of the present invention, As shown in Figure 4, a kind of data receiver method, receive, by TCP channel, the number that shunting device 110 sends for analytical equipment 220 According to, including step: S21: receive the message with sequence number that shunting device 110 sends;S22: judge the described message received Whether form complete sequence of message;If so, next step is performed, otherwise, repeated execution of steps S21;S23: when the institute received Stating message when forming complete sequence of message, feedback one marking serial numbers is to shunting device 110.
Concrete, the data receiver method of the present invention is set up between shunting device 110 and analytical equipment 220, Qi Zhongfen Flow device 110 and analytical equipment 220 set up TCP channel, receive TCP message sequence.The analytical equipment 220 of the present invention is when receiving With sequence number message form a complete sequence of message time one marking serial numbers of feedback to shunting device 110.Because point The TCP Client of flow device 110 only has the ability sending data, it is impossible to process the response letter of complicated analytical equipment 220 Breath, also cannot oneself go to understand which message can make up a complete analytical sequence, therefore, the data receiver of the present invention By one marking serial numbers of feedback, method can inform that its sequence of message sent of shunting device 110 the most completely and is specifically sent out Send and complete which sequence of message.
Preferably, described step S23 " feedback one marking serial numbers is to shunting device 110 " specifically includes step S231: ought In the complete sequence of message of front formation, the Next Sequence of the sequence number of last message is fed back to as described marking serial numbers Shunting device 110.Concrete, marking serial numbers in the present invention can represent complete sequence of message, can be complete by receive In sequence of message, the sequence number of last message is as marking serial numbers, it is also possible to by last message in complete sequence of message The Next Sequence of sequence number be fed back to shunting device 110 as described marking serial numbers.Marking serial numbers does not make concrete restriction, can Sets itself.
Fig. 5 is the key step schematic diagram of a kind of data transmission method of the present invention, and one as the present invention is embodied as Example, as it is shown in figure 5, a kind of data transmission method, for being transmitted by TCP channel between shunting device 110 and analytical equipment 220 Data, including step: S11: shunting device 110 sends has the message of sequence number to analytical equipment 220;S12: shunting device 110 Monitor the marking serial numbers whether receiving analytical equipment 220 feedback;S21: analytical equipment 220 receives what shunting device 110 sent There is the message of sequence number;S22: analytical equipment 220 judges whether the described message received forms complete sequence of message;If It is to perform next step, otherwise, repeated execution of steps S21;S23: when the described message received forms complete sequence of message Time, analytical equipment 220 feedback one marking serial numbers is to shunting device 110;S13: when shunting device 110 receives analytical equipment 220 During the described marking serial numbers of feedback, record described marking serial numbers;S14: shunting device 110 judges whether to reconnect to new dividing Desorption device 220;If so, next step is performed, otherwise repeated execution of steps S11;S15: shunting device 110 is according to the last record Described marking serial numbers determine the beginning sequence number of next message to be sent;S16: shunting device 110 is according to described beginning sequence Number send described message to new analytical equipment 220.
Concrete, the data transmission method of the present invention is set up between shunting device 110 and analytical equipment 220, including on The data transmission method for uplink stated and data method of reseptance.Wherein shunting device 110 and analytical equipment 220 set up TCP channel, transmission TCP message sequence.Shunting device 110 is compiled sequence number by the multiple messages in the sequence of message complete to and is sent To analytical equipment 220, analytical equipment 220 one marking serial numbers of feedback extremely shunting when message one complete sequence of message of composition Equipment 110.Shunting device 110 when reconnecting new analytical equipment 220 according to marking serial numbers, it may be determined that need the report sent The sequence number of the message of literary composition sequence.Ensure that, by this marking serial numbers, the integrity that sequence of message sends, prevent loss of data, carry The work efficiency of high analyte equipment 220.
Preferably, S10 is further comprised the steps of:: according to preset rules, the message in sequence of message is compiled continuous print sequence number.
Preferably, described step S23 " feedback one marking serial numbers is to shunting device 110 " specifically includes step: S231: ought In the complete sequence of message of front formation, the Next Sequence of the sequence number of last message is fed back to as described marking serial numbers Shunting device 110.
Preferably, described step S15 " determines next report to be sent according to the described marking serial numbers of the last time record The beginning sequence number of literary composition " specifically include step: S151: described marking serial numbers the last time recorded according to preset rules as under The beginning sequence number of one message to be sent.
Preferably, S131 is further comprised the steps of: after described step S13 " shunting device 110 records described marking serial numbers ": release Put sequence number and come the space that the described message before described marking serial numbers is corresponding.
The transmission flow of the present invention a kind of data transmission method for uplink is discussed in detail below in conjunction with Fig. 2.
As in figure 2 it is shown, shunting device 110 passes to analytical equipment 220 message 3,4,5,6,7, analytical equipment 220 receives into Merit.
Analytical equipment 220 is 6 to shunting device 110 feedback marking serial numbers, and the message before showing sequence number 6 has had become as Whole sequence, analyzes complete.Shunting device 110 can discharge sequence number 6 before space corresponding to message, the next message analyzed Sequence is by the start of heading from serial number 6.
Shunting device 110 continues to pass to analytical equipment 220 message 8,9, and analytical equipment 220 receives successfully.
Analytical equipment 220 gives shunting device 110 feedback marking serial numbers 10, and the message before showing sequence number 10 has had become as Whole sequence, analyzes complete, and shunting device 110 can discharge the space that the message before 10 is corresponding, the next message sequence analyzed Row will be from the beginning of 10.
Shunting device 110 continues to pass to analytical equipment 220 message 10,11, and analytical equipment 220 receives successfully.
Analytical equipment 220 goes wrong (equipment goes offline or software crash).
Shunting device 110 reconnects new analytical equipment 220, from the marking serial numbers of analytical equipment last time 220 feedback, i.e. 10, start to continue to transmit message 10,11,12, analytical equipment 220 receives successfully.
Analytical equipment 220 gives shunting device 110 feedback marking serial numbers 12, and the message before showing sequence number 12 has had become as Whole sequence, analyzes complete, and shunting device 110 can discharge the space that the message before 12 is corresponding, and next analytical sequence will be from Sequence number 12 starts.
Fig. 6 be a kind of data sending device of the present invention mainly comprise schematic diagram.One as the present invention is embodied as Example, as shown in Figure 6, a kind of data sending device, for sending data to analytical equipment 220 by TCP channel, set including shunting Standby 110, described shunting device 110 specifically includes: sending module 111, has the message of sequence number to analytical equipment for sending 220;Monitor module 112, for monitoring the marking serial numbers whether receiving analytical equipment 220 feedback;Logging modle 113, is used for When receiving the described marking serial numbers of analytical equipment 220 feedback, record the marking serial numbers of described analytical equipment 220 feedback;Even Connect judge module 114, for judging whether shunting device 110 reconnects to new analytical equipment 220;Determine module 115, use In time reconnecting in new analytical equipment 220 when described shunting device 110, according to the described labelling sequence of the last time record Number determine the beginning sequence number of next message to be sent;Described sending module 111 is additionally operable to send according to described beginning sequence number Described message is to new analytical equipment 220.
Preferably, also include numbering module 116, for the message in sequence of message being compiled continuous print according to preset rules Sequence number.
Preferably, described determine that module 115 is specifically for the described labelling sequence recorded the last time according to preset rules Number as the beginning sequence number of next one message to be sent.
Preferably, also include: release module 117, come the described message before described marking serial numbers for discharging sequence number Corresponding space.
It should be noted that the content such as mutual, the execution process of information between each module is sent out with above-mentioned data in this device Delivery method embodiment is based on same design, and particular content can be found in the narration in data transmission method for uplink embodiment of the present invention, herein Repeat no more.
Fig. 7 be a kind of data sink of the present invention mainly comprise schematic diagram.One as the present invention is embodied as Example, as it is shown in fig. 7, a kind of data sink, for receiving, by TCP channel, the data that shunting device 110 sends, including dividing Desorption device 220, described analytical equipment 220 specifically includes: receiver module 221, for receive shunting device 110 send there is sequence Number message;Sequence of message judge module 222, for judging whether the described message received forms complete sequence of message; Feedback module 233, for when the described message received forms complete sequence of message, feedback one marking serial numbers sets to shunting Standby 110.
Preferably, described feedback module 233 is specifically for last report in the complete sequence of message that will currently be formed The Next Sequence of the sequence number of literary composition is fed back to shunting device 110 as described marking serial numbers.
It should be noted that the content such as mutual, the execution process of information between each module connects with above-mentioned data in this device Receiving method embodiment is based on same design, and particular content can be found in the narration in data receiver method embodiment of the present invention, herein Repeat no more.
Fig. 8 be a kind of data transmission system of the present invention mainly comprise schematic diagram, one as the present invention is embodied as Example, as shown in Figure 8, a kind of data transmission system, for transmitting data by TCP channel, including data sending device and data Receiving device, described data sending device includes shunting device 110;Described shunting device 110 specifically includes: sending module 111, There is the message of sequence number to analytical equipment 220 for sending;Monitor module 112, for monitoring whether receive analytical equipment 220 The marking serial numbers of feedback;Logging modle 113, for when receiving the described marking serial numbers of analytical equipment 220 feedback, records institute State the marking serial numbers of analytical equipment 220 feedback;Connection judgment module 114, is used for judging whether shunting device 110 reconnects to New analytical equipment 220;Determine module 115, for reconnecting to new analytical equipment 220 when described shunting device 110 Time, the beginning sequence number of next message to be sent is determined according to the described marking serial numbers of the last time record;Described transmission mould Block 111 is additionally operable to send described message to new analytical equipment 220 according to described beginning sequence number;Described data sink includes Analytical equipment 220, described analytical equipment 220 specifically includes: receiver module 221, for receiving having of shunting device 110 transmission The message of sequence number;Sequence of message judge module 222, for judging whether the described message received forms complete message sequence Row;Feedback module 233, for when the described message received forms complete sequence of message, feedback one marking serial numbers is to dividing Flow device 110.
Fig. 9 be a kind of data transmission system of the present invention be fully composed schematic diagram.One as the present invention is embodied as Example, as it is shown in figure 9, described shunting device 110 also includes: numbering module 116, is used for according to preset rules in sequence of message Message compiles continuous print sequence number.
Preferably, described determine that module 115 is specifically for the described labelling sequence recorded the last time according to preset rules Number as the beginning sequence number of next one message to be sent.
Preferably, described feedback module 233 is specifically for last report in the complete sequence of message that will currently be formed The Next Sequence of the sequence number of literary composition is fed back to shunting device 110 as described marking serial numbers.
Preferably, as it is shown in figure 9, described shunting device 110 also includes: release module 117, it is used for discharging sequence number and comes institute State the space that the sequence of message at described message place before marking serial numbers is corresponding.
The data transmission system of the present invention is set up between shunting device 110 and analytical equipment 220, including above-mentioned data Dispensing device and data sink.Wherein shunting device 110 and analytical equipment 220 set up TCP channel, transmit TCP message sequence Row.Shunting device 110 compiles sequence number by the multiple messages in the sequence of message complete to and transmission sets to analysis Standby 220, analytical equipment 220 when message one complete sequence of message of composition one marking serial numbers of feedback to shunting device 110. Shunting device 110 when reconnecting new analytical equipment 220 according to marking serial numbers, it may be determined that the sequence of message needing to send The sequence number of message.Ensure that, by this marking serial numbers, the integrity that sequence of message sends, prevent loss of data, improve analysis and set The work efficiency of standby 220.
It should be noted that the content such as mutual, the execution process of information between each module is real with said method in native system Executing example based on same design, particular content can be found in the narration in the inventive method embodiment, and here is omitted.
It should be noted that, above-described embodiment all can independent assortment as required.The above is only the preferred of the present invention Embodiment, it is noted that for those skilled in the art, in the premise without departing from the principle of the invention Under, it is also possible to making some improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (22)

1. a data transmission method for uplink, sends data to analytical equipment for shunting device by TCP channel, it is characterised in that Including step:
S11: send and there is the message of sequence number to analytical equipment;
S12: monitor the marking serial numbers whether receiving analytical equipment feedback;
S13: when receiving the described marking serial numbers of analytical equipment feedback, records described marking serial numbers;
S14: judge whether shunting device reconnects to new analytical equipment;If so, perform next step, otherwise repeat step Rapid S11;
S15: determine the beginning sequence number of next message to be sent according to the described marking serial numbers of the last time record;
S16: send described message to new analytical equipment according to described beginning sequence number.
2. data transmission method for uplink as claimed in claim 1, it is characterised in that further comprise the steps of: S10: according to preset rules pair Message in sequence of message compiles continuous print sequence number.
3. data transmission method for uplink as claimed in claim 2, it is characterised in that described step S15 is " according to the last time record Described marking serial numbers determines the beginning sequence number of next message to be sent " specifically include step:
S15: the described marking serial numbers recorded the last time according to preset rules is as the beginning of next one message to be sent Sequence number.
4. data transmission method for uplink as claimed in claim 3, it is characterised in that described step S13 " is marked described in shunting device record Note sequence number " further comprise the steps of: afterwards
S131: release sequence number comes the space that the described message before described marking serial numbers is corresponding.
5. a data receiver method, receives, by TCP channel, the data that shunting device sends for analytical equipment, and its feature exists In, including step:
S21: receive the message with sequence number that shunting device sends;
S22: judge whether the described message received forms complete sequence of message;If so, perform next step, otherwise, repeat Perform step S21;
S23: when the described message received forms complete sequence of message, feedback one marking serial numbers is to shunting device.
6. data receiver method as claimed in claim 5, it is characterised in that " feedback one marking serial numbers is to dividing for described step S23 Flow device " specifically include step:
S231: in the complete sequence of message that will be currently formed, the Next Sequence of the sequence number of last message is as described mark Note sequence number is fed back to shunting device.
7. a data transmission method, for transmitting data by TCP channel between shunting device and analytical equipment, its feature exists In, including step:
S11: shunting device sends has the message of sequence number to analytical equipment;
S12: shunting device monitors the marking serial numbers whether receiving analytical equipment feedback;
S21: analytical equipment receives the message with sequence number that shunting device sends;
S22: analytical equipment judges whether the described message received forms complete sequence of message;If so, next step is performed, no Then, repeated execution of steps S21;
S23: when the described message received forms complete sequence of message, analytical equipment feedback one marking serial numbers sets to shunting Standby;
S13: when shunting device receives the described marking serial numbers of analytical equipment feedback, record described marking serial numbers;
S14: shunting device judges whether to reconnect to new analytical equipment;If so, perform next step, otherwise repeat step Rapid S11;
S15: shunting device determines the beginning sequence of next message to be sent according to the described marking serial numbers that the last time records Number;
S16: shunting device sends described message to new analytical equipment according to described beginning sequence number.
8. data transmission method as claimed in claim 7, it is characterised in that further comprise the steps of: S10: according to preset rules pair Message in sequence of message compiles continuous print sequence number.
9. data transmission method as claimed in claim 8, it is characterised in that " feedback one marking serial numbers is to dividing for described step S23 Flow device " specifically include step:
S231: in the complete sequence of message that will be currently formed, the Next Sequence of the sequence number of last message is as described mark Note sequence number is fed back to shunting device.
10. data transmission method as claimed in claim 9, it is characterised in that described step S15 is " according to the last record Described marking serial numbers determine the beginning sequence number of next message to be sent " specifically include step:
S151: the described marking serial numbers recorded the last time according to preset rules is as the beginning of next one message to be sent Sequence number.
11. data transmission methods as claimed in claim 10, it is characterised in that described step S13 is " described in shunting device record Marking serial numbers " further comprise the steps of: afterwards
S31: release sequence number comes the space that the described message before described marking serial numbers is corresponding.
12. 1 kinds of data sending devices, for sending data to analytical equipment by TCP channel, it is characterised in that includes shunting Equipment, described shunting device specifically includes:
Sending module, has the message of sequence number to analytical equipment for sending;
Monitor module, for monitoring the marking serial numbers whether receiving analytical equipment feedback;
Logging modle, for when receiving the described marking serial numbers of analytical equipment feedback, records described analytical equipment feedback Marking serial numbers;
Connection judgment module, for judging whether shunting device reconnects to new analytical equipment;
Determine module, for when described shunting device reconnects in new analytical equipment, according to the last time record Described marking serial numbers determines the beginning sequence number of next message to be sent;
Described sending module is additionally operable to send described message to new analytical equipment according to described beginning sequence number.
13. data sending devices as claimed in claim 12, it is characterised in that also include:
Numbering module, for compiling continuous print sequence number according to preset rules to the message in sequence of message.
14. data sending devices as claimed in claim 13, it is characterised in that described determine module specifically for according to preset The described marking serial numbers that the last time is recorded by rule is as the beginning sequence number of next message to be sent.
15. data sending devices as claimed in claim 14, it is characterised in that also include:
Release module, comes, for discharging sequence number, the space that the described message before described marking serial numbers is corresponding.
16. 1 kinds of data sinks, for receiving, by TCP channel, the data that shunting device sends, it is characterised in that include Analytical equipment, described analytical equipment specifically includes:
Receiver module, for receiving the message with sequence number that shunting device sends;
Sequence of message judge module, for judging whether the described message received forms complete sequence of message;
Feedback module, for when the described message received forms complete sequence of message, feedback one marking serial numbers is to shunting Equipment.
17. data sinks as claimed in claim 16, it is characterised in that described feedback module is specifically for by current shape In the complete sequence of message become, the Next Sequence of the sequence number of last message is fed back to shunting as described marking serial numbers Equipment.
18. 1 kinds of data transmission systems, for transmitting data by TCP channel, fill including data sending device and data receiver Put, it is characterised in that described data sending device includes shunting device;Described shunting device specifically includes:
Sending module, has the message of sequence number to analytical equipment for sending;
Monitor module, for monitoring the marking serial numbers whether receiving analytical equipment feedback;
Logging modle, for when receiving the described marking serial numbers of analytical equipment feedback, records described analytical equipment feedback Marking serial numbers;
Connection judgment module, for judging whether shunting device reconnects to new analytical equipment;
Determine module, for when described shunting device reconnects in new analytical equipment, according to the last time record Described marking serial numbers determines the beginning sequence number of next message to be sent;
Described sending module is additionally operable to send described message to new analytical equipment according to described beginning sequence number;
Described data sink includes that analytical equipment, described analytical equipment specifically include:
Receiver module, for receiving the message with sequence number that shunting device sends;
Sequence of message judge module, for judging whether the described message received forms complete sequence of message;
Feedback module, for when the described message received forms complete sequence of message, feedback one marking serial numbers is to shunting Equipment.
19. data transmission systems as claimed in claim 18, it is characterised in that described shunting device also includes: numbering module, For the message in sequence of message being compiled continuous print sequence number according to preset rules.
20. data transmission systems as claimed in claim 19, it is characterised in that described determine module specifically for according to preset The described marking serial numbers that the last time is recorded by rule is as the beginning sequence number of next message to be sent.
21. data transmission systems as claimed in claim 20, it is characterised in that described feedback module is specifically for by current shape In the complete sequence of message become, the Next Sequence of the sequence number of last message is fed back to shunting as described marking serial numbers Equipment.
22. data transmission systems as claimed in claim 21, it is characterised in that described shunting device also includes:
Release module, comes, for discharging sequence number, the sky that the sequence of message at described message place before described marking serial numbers is corresponding Between.
CN201610579401.6A 2016-07-21 2016-07-21 Data sending and receiving method and device, and data transmission method and system Active CN106230619B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610579401.6A CN106230619B (en) 2016-07-21 2016-07-21 Data sending and receiving method and device, and data transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610579401.6A CN106230619B (en) 2016-07-21 2016-07-21 Data sending and receiving method and device, and data transmission method and system

Publications (2)

Publication Number Publication Date
CN106230619A true CN106230619A (en) 2016-12-14
CN106230619B CN106230619B (en) 2019-12-17

Family

ID=57532365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610579401.6A Active CN106230619B (en) 2016-07-21 2016-07-21 Data sending and receiving method and device, and data transmission method and system

Country Status (1)

Country Link
CN (1) CN106230619B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109428801A (en) * 2017-08-23 2019-03-05 北京华为数字技术有限公司 File transmitting method and device
WO2022111471A1 (en) * 2020-11-30 2022-06-02 华为技术有限公司 Communication method and devices

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1451217A (en) * 1999-11-17 2003-10-22 诺基亚有限公司 Data transmission
KR20050088942A (en) * 2005-07-19 2005-09-07 한국정보통신대학교 산학협력단 Method for providing efficient loss recovery of packet transmission in wireless network system
CN1855878A (en) * 2005-04-28 2006-11-01 华为技术有限公司 Voice transmission based on transmission control protocol
WO2008134897A1 (en) * 2007-05-08 2008-11-13 Technologies Ezoom Exponentiel Inc. Method and system for quality service enhancement in networks for media streaming
CN102594694A (en) * 2012-03-06 2012-07-18 北京中创信测科技股份有限公司 Data distribution method and equipment
US20140153580A1 (en) * 2013-02-15 2014-06-05 Comtech Ef Data Corp. Reference encoding and decoding for improving network header compression throughput for noisy channels
CN103888364A (en) * 2012-12-24 2014-06-25 华为技术有限公司 Message shunting method and device
WO2016093756A1 (en) * 2014-12-12 2016-06-16 Telefonaktiebolaget Lm Ericsson (Publ) Out of sequence delivery of an sdu in a radio device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1451217A (en) * 1999-11-17 2003-10-22 诺基亚有限公司 Data transmission
CN1855878A (en) * 2005-04-28 2006-11-01 华为技术有限公司 Voice transmission based on transmission control protocol
KR20050088942A (en) * 2005-07-19 2005-09-07 한국정보통신대학교 산학협력단 Method for providing efficient loss recovery of packet transmission in wireless network system
WO2008134897A1 (en) * 2007-05-08 2008-11-13 Technologies Ezoom Exponentiel Inc. Method and system for quality service enhancement in networks for media streaming
CN102594694A (en) * 2012-03-06 2012-07-18 北京中创信测科技股份有限公司 Data distribution method and equipment
CN103888364A (en) * 2012-12-24 2014-06-25 华为技术有限公司 Message shunting method and device
US20140153580A1 (en) * 2013-02-15 2014-06-05 Comtech Ef Data Corp. Reference encoding and decoding for improving network header compression throughput for noisy channels
WO2016093756A1 (en) * 2014-12-12 2016-06-16 Telefonaktiebolaget Lm Ericsson (Publ) Out of sequence delivery of an sdu in a radio device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109428801A (en) * 2017-08-23 2019-03-05 北京华为数字技术有限公司 File transmitting method and device
WO2022111471A1 (en) * 2020-11-30 2022-06-02 华为技术有限公司 Communication method and devices

Also Published As

Publication number Publication date
CN106230619B (en) 2019-12-17

Similar Documents

Publication Publication Date Title
EP4032207B1 (en) State machine handling at a proxy node in an ethernet-based fronthaul network
US20170111832A1 (en) Method and apparatus for processing rlc/pdcp entities at a user equipment in a dual connectivity system
US20130272136A1 (en) Session-Aware GTPv1 Load Balancing
EP2515476A1 (en) Method for the interception of GTP-C messages
EP3364627B1 (en) Adaptive session intelligence extender
US11115849B2 (en) First unit, second unit and method
CN101145977B (en) A QoS monitoring system and its measuring method of IP data network
DE102005014451A1 (en) A method and apparatus for distributing signaling data for a parallel analysis
CN103095568A (en) System and method for achieving stacking of rack type switching devices
CN103973560A (en) Device and method for fault treatment of stack links in IRF (intelligent resilient framework) system
CN104283780B (en) The method and apparatus for establishing data transfer path
CN104954165B (en) A kind of method, equipment and the system of link analysis
CN102377640A (en) Message processing apparatus, message processing method and preprocessor
CN103260190A (en) Security audit system based on evolution grouping system network and security audit method of security audit system
CN106230619A (en) Data sending, receiving method and device, data transmission method and system
CN105227403A (en) A kind of OpenStack network flow monitoring method
CN110417687A (en) A kind of message sends and receives method and device
CN102918807B (en) Method and routing equipment for BFD session establishment
CN102857436B (en) Flow transmission method and flow transmission equipment based on IRF (intelligent resilient framework) network
CN105337781A (en) Network management system and method and network system
US20070198218A1 (en) Protocol analyser arrangement, analyser module, and method of managing resources
CN106559838B (en) business processing optimization method and device
KR101709922B1 (en) Method, system and computer readable medium for analysing application contents
CN103828302A (en) Diagnostic system
CN109587087A (en) A kind of message processing method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 410000 floor 5, building 101, No. 348, tongzipo West Road, high tech Development Zone, Changsha City, Hunan Province

Applicant after: HUNAN ZHIZHUO INNOVATION INFORMATION INDUSTRY CO.,LTD.

Address before: 410000 Hunan province Changsha Wenxuan High-tech Development Zone, Road No. 27 Building 5 layer Yuyuan Lu Valley venture 505.

Applicant before: HUNAN ZHIZHUO INNOVATION FINANCIAL ELECTRONICS CO.,LTD.

GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Data transmitting and receiving method and device, data transmitting method and system

Effective date of registration: 20210629

Granted publication date: 20191217

Pledgee: Huarong Xiangjiang Bank Co.,Ltd. Xiangjiang New Area Branch

Pledgor: HUNAN ZHIZHUO INNOVATION INFORMATION INDUSTRY Co.,Ltd.

Registration number: Y2021430000026

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20220714

Granted publication date: 20191217

Pledgee: Huarong Xiangjiang Bank Co.,Ltd. Xiangjiang New Area Branch

Pledgor: HUNAN ZHIZHUO INNOVATION INFORMATION INDUSTRY CO.,LTD.

Registration number: Y2021430000026

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Data sending and receiving method and device, data transmission method and system

Effective date of registration: 20220721

Granted publication date: 20191217

Pledgee: Huarong Xiangjiang Bank Co.,Ltd. Xiangjiang New Area Branch

Pledgor: HUNAN ZHIZHUO INNOVATION INFORMATION INDUSTRY CO.,LTD.

Registration number: Y2022430000060

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20230629

Granted publication date: 20191217

Pledgee: Huarong Xiangjiang Bank Co.,Ltd. Xiangjiang New Area Branch

Pledgor: HUNAN ZHIZHUO INNOVATION INFORMATION INDUSTRY CO.,LTD.

Registration number: Y2022430000060

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Data transmission and reception methods and devices, data transmission methods and systems

Effective date of registration: 20230705

Granted publication date: 20191217

Pledgee: Hunan Bank Co.,Ltd. Xiangjiang New Area Branch

Pledgor: HUNAN ZHIZHUO INNOVATION INFORMATION INDUSTRY CO.,LTD.

Registration number: Y2023430000019