CN108566387A - Method, equipment and the system of data distribution are carried out based on udp protocol - Google Patents

Method, equipment and the system of data distribution are carried out based on udp protocol Download PDF

Info

Publication number
CN108566387A
CN108566387A CN201810256473.6A CN201810256473A CN108566387A CN 108566387 A CN108566387 A CN 108566387A CN 201810256473 A CN201810256473 A CN 201810256473A CN 108566387 A CN108566387 A CN 108566387A
Authority
CN
China
Prior art keywords
datagram
packet
information
sending
network address
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
CN201810256473.6A
Other languages
Chinese (zh)
Other versions
CN108566387B (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201810256473.6A priority Critical patent/CN108566387B/en
Publication of CN108566387A publication Critical patent/CN108566387A/en
Application granted granted Critical
Publication of CN108566387B publication Critical patent/CN108566387B/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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/256NAT traversal

Landscapes

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

Abstract

The present invention provides a kind of method, equipment and systems carrying out data distribution based on udp protocol, are related to technical field of data transmission.The method includes sending devices to be packaged into the datagram based on udp protocol by data information to be sent, and datagram is grouped sequence;Datagram after packet sequencing is carried out IP to network address translation apparatus and port is replaced, and the datagram after displacement is transmitted by network;Network address translation discharge device receives the datagram, each receiving device is transmitted to after the datagram is replicated.The present invention is based on the transmission that udp protocol realizes packet datagrams to realize the distribution of batch documents high speed and fast retransmission mechanism, reduce public network expense by parameter configuration dynamic regulation transmission rate.

Description

Method, equipment and the system of data distribution are carried out based on udp protocol
Technical field
The present invention is concretely a kind of side carrying out data distribution based on udp protocol about technical field of data transmission Method, network address translation discharge device, based on udp protocol carry out data distribution system, computer equipment and computer can Read storage medium.
Background technology
Background that this section is intended to provide an explanation of the embodiments of the present invention set forth in the claims or context.Herein Description recognizes it is the prior art not because not being included in this part.
With the development of Internet technology, the quantity of the network terminal is in the trend that accelerates, to internet protocol address The demand of (Internet Protocol Address, abbreviation IP address) acutely increases, this forces people and large organization, public affairs Department is increasingly dependent on network address translation (Network Address Translation, abbreviation NAT) technology.One data Packet inevitably carries out one or many NAT in the transmission of network Shangdi and passes through.It is most that NAT passes through (NAT Traversal) Number requires that there are one public servers, and by all data of this Server Relay, this just brings public network bandwidth The problem of expense.In large enterprise, transmits and distribute with often wanting trans-regional, across a network carry out high-volume data, network Long Fat Net (Long Fat Network, abbreviation LFN refer to the prodigious network of bandwidth-delay product) environment that delay issue causes (such as Fig. 1) unavoidably, problem becomes apparent.
It solves the problems, such as bandwidth cost, first has to awareness network transport protocol.Most common reliable transport protocol is transmission Control protocol (Transmission Control Protocol, abbreviation Transmission Control Protocol), but Transmission Control Protocol needs to establish by connection In the stage, packet header is complicated, overhead is big, such as detects that Network status is bad or has the case where packet loss that can reduce transmission window Mouthful, and after transmission window reduction, can not restore in the short time, these all cause transmission speed certain restriction, also right More stringent requirements are proposed for the software and hardware resources of system.And the control option of udp protocol (User Datagram Protocol) It is less, thus have the advantages that processing speed is fast, delay is small, data transmission efficiency is high in data transmission procedure, but UDP is reported Text equally exists the shortcomings that not providing data packet grouping, assembling such as and cannot being ranked up to data packet, that is to say, that works as report Text is that can not learn its whether safe and complete arrival after sending, since udp protocol does not have Reliability Assurance, sequence guarantee and stream Control field etc. is measured, therefore reliability is poor.
Therefore, a kind of new scheme how is provided, it is this field skill urgently to be resolved hurrily that can solve above-mentioned technical problem Art problem.
Invention content
In view of this, the present invention provides a kind of method, network address translations point carrying out data distribution based on udp protocol It sends out equipment, carry out system, computer equipment and the computer readable storage medium of data distribution based on udp protocol, be based on UDP The transmission of protocol realization packet datagrams is realized batch documents high speed and is distributed by parameter configuration dynamic regulation transmission rate And fast retransmission mechanism, reduce public network expense.
It is an object of the invention to provide a kind of method carrying out data distribution based on udp protocol, the method packets It includes:
Data information to be sent is packaged into the datagram based on udp protocol by sending device, and datagram is divided Group sequence;
Datagram after packet sequencing is carried out IP to network address translation apparatus and port is replaced, by the datagram after displacement It is transmitted by network;
Network address translation discharge device receives the datagram, each is transmitted to after the datagram is replicated Receiving device.
It is an object of the invention to provide a kind of system carrying out data distribution based on udp protocol, the system packets Include sending device, network address translation apparatus, network address translation discharge device and multiple receiving devices;
The sending device, for data information to be sent to be packaged into the datagram based on udp protocol, and by data Report is grouped sequence;
The network address translation apparatus will be replaced for the datagram after packet sequencing to be carried out IP and port displacement Datagram afterwards is transmitted by network;
The network address translation discharge device is passed for receiving the datagram after being replicated the datagram Transport to each receiving device.
It is an object of the invention to provide a kind of computer equipments, including be adapted for carrying out the processor of each instruction with And storage device, the storage device are stored with a plurality of instruction, described instruction is suitable for being loaded by processor and executing one kind being based on The method that udp protocol carries out data distribution.
It is an object of the invention to provide a kind of computer readable storage mediums, are stored with computer program, described Computer program is used to execute a kind of method carrying out data distribution based on udp protocol.
It is an object of the invention to provide a kind of network address translation discharge devices, including routing meter apparatus, reception Device, queue container device, packet replication device, address converting device and sending device, wherein the reception device is used for Receive a datagram;
Otherwise the queue container device is sent for being loaded into the datagram when capacity of queue's device is vacant Queue congestion information is to the sending device;
The routing meter apparatus, for when the forwarding identifier in the datagram is not 0, sending instruction information to institute Packet replication device is stated, otherwise sends distribution information to the sending device;
The sending device, for being distributed the datagram according to the distribution information;
The packet replication device for carrying out packet replication operation according to the instruction information, and obtained datagram is sent out It send to described address conversion equipment;
Described address conversion equipment, after the datagram for being operated to packet replication carries out address conversion, via described Sending device is distributed.
The beneficial effects of the present invention are, provide it is a kind of based on udp protocol carry out data distribution method, be based on UDP Agreement carries out system, computer equipment and the computer readable storage medium of data distribution, can complete docking message in-coming part Confirm, realizes that the functions such as unordered rearrangement, packet loss repeating transmission, data packet verification, flow control, combining network address conversion distribution are set It is standby, can be realized under distributed network NAT pass through with high speed data distribution, packet loss quick repeats, overcome network bandwidth to limit. Suitable for cross-node, trans-regional, across a network data transmission and distribution scene, public network expense is greatly saved.Pass through ginseng Number adjustment, this method can be flexibly adapted to various network environments, and can automatic adjusument transmission rate at work.
For the above and other objects, features and advantages of the present invention can be clearer and more comprehensible, preferred embodiment cited below particularly, And coordinate institute's accompanying drawings, it is described in detail below.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is Long Fat Net schematic diagram in the prior art;
Fig. 2 is a kind of structure diagram carrying out data distribution systems based on udp protocol provided in an embodiment of the present invention;
Fig. 3 is a kind of structure diagram of sending device provided in an embodiment of the present invention;
Fig. 4 is a kind of structure diagram of network address translation discharge device provided in an embodiment of the present invention;
Fig. 5 is a kind of structure diagram of receiving device provided in an embodiment of the present invention;
Fig. 6 is a kind of flow chart of method carrying out data distribution based on udp protocol provided in an embodiment of the present invention;
Fig. 7 is the improved structure figure for the datagram based on udp protocol that the present invention uses;
Fig. 8 is the flow diagram of datagram transmission in specific embodiment provided by the invention;
Fig. 9 is that transmission success feeds back message flow diagram in specific embodiment provided by the invention;
Figure 10 is that unsuccessfully feedback message flow diagram is transmitted in specific embodiment provided by the invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Art technology technical staff knows, embodiments of the present invention can be implemented as a kind of system, device, method or Computer program product.Therefore, disclose can be with specific implementation is as follows, i.e., by the present invention:Complete hardware, complete software The form that (including firmware, resident software, microcode etc.) or hardware and software combine.
Below with reference to several representative embodiments of the present invention, the principle and spirit of the invention are illustrated in detail.
An embodiment of the present invention provides a kind of system carrying out data distribution based on udp protocol, Fig. 2 is the structure of the system Schematic diagram, referring to Fig. 2, system provided by the invention includes sending device 001, network address translation apparatus 003, network address Convert discharge device 004 and multiple receiving devices 006.
Referring to Fig. 2, in specific Organization Chart shown in Fig. 2,003 shape of sending device 001 and network address translation apparatus At signalling of bouquet 002, one or more receiving devices 006 and the composition of network address translation discharge device 004 receive cluster.
The sending device 001, for data information to be sent to be packaged into the datagram based on udp protocol, and will Datagram is grouped sequence;
The network address translation apparatus 003 will be set for the datagram after packet sequencing to be carried out IP and port displacement Datagram after changing is transmitted by network 007, and network 007 is such as:Internet Internet.
The network address translation discharge device 004, for receiving the datagram, after the datagram is replicated It is transmitted to each receiving device 006.
Sending device 001, network address translation discharge device 004 and 006 three parts of receiving device in Fig. 2 are this hair Bright original creation.For the more distribution scene of the hair from a sending device to multiple receiving device transmission datas, sending device Respectively configured with network address translation discharge device a set of, receiving unit can dispose more sets (configuration dNAT N sets are assumed in Fig. 2), Often set receiving device (i.e. 1~N of receiving device) can be deployed in single computer unit or different equipment.
The data information to be transmitted is packaged into the datagram based on udp protocol by user by sending device, and will be counted It is sent out after being grouped sequence according to report, sending device can control transmission rate in a preferred embodiment;Data are subject to network It is by network address translation discharge device, datagram is fast after location conversion equipment carries out after IP and port displacement through network transmission More parts of system is replied immediately, according to the distribution policy appointed in advance, is quickly and accurately transferred to each receiving device, and ensure each Receiving device all completely obtains data.
In a kind of embodiment provided by the invention, sending device includes datagram labelling apparatus 101 and datagram Sending device 103.
The datagram labelling apparatus 101, for the pseudo- stem of stem addition in the datagram for being packaged into udp protocol, mark Note forwarding identifier, source IP address, target ip address, packet number and sequence number;
Specifically, according to the improved datagram structure (such as Fig. 7) based on udp protocol provided by the invention, data bid quotation Remember that device 101 needs that the pseudo- stem of stem addition of ground datagram will be cut by udp protocol, successively label forwarding identifier Did 401, source IP address SIP 402, target ip address TIP 403, packet number GN 404, sequence number SN 405, meaning is successively such as Under:
A) forwarding identifier Did:Datagram forwarding mark is carried out as network address translation discharge device addressing routing table The judgment value of forwarding.When Did numerical value is 0, expression is forwarded to Public IP and corresponds to all Internal IP address;When When Did numerical value is non-zero, expression is forwarded to the Internal IP address that Public IP and Did are determined jointly, otherwise abandons;
B) source IP address SIP:Mark data report sends address;
C) target ip address TIP:Mark data report receives address (Public IP);
D) packet number GN:Packet number effect is that the datagram after a batch label is combined as an entirety to handle, number Sending successfully confirmation according to report and remove is carried out in the form of datagram group.GN values are a bytes, when mark value reaches maximum value When, it puts in order and starts for 1 again, a is natural number, be can freely adjust;
E) sequence number SN:Datagram in one datagram group is ranked up by sequence number when acting on, and combines GN unique Some a certain range of datagram is identified, SN values are b bytes, SN value maximum value Z, as one of transmission window regulatory factor, b For natural number, can freely adjust.
The datagram sending device 103, for being sent after being grouped sequence to the datagram.
Fig. 3 is a kind of sending device structure diagram provided in an embodiment of the present invention, referring to Fig. 3, in the reality of the present invention It applies in mode, the sending device further includes datagram retransmission apparatus 104 and datagram waiting device 102.
The datagram waiting device 102, for the datagram after packet sequencing to be carried out buffer-stored;
The datagram retransmission apparatus 104, the repeating transmission feedback sent for receiving the network address translation diostribution device Information, obtains out datagram corresponding with the repeating transmission feedback information from the datagram sending device 103, retransmit with The corresponding datagram of the repeating transmission feedback information.
In this embodiment, datagram waiting device 102 receives the datagram after data markers device 101 marks, and Enter the buffer-stored before datagram sending device 103 as datagram.Datagram retransmission apparatus 104 receives network address translation The repeating transmission feedback information of discharge device obtains datagram retransmission from datagram sending device 103.
In a kind of embodiment of the application, the datagram sending device 103 is additionally operable to receive the network address The queue congestion information that discharge device is sent is converted, is adjusted according to the queue congestion information and sends the window factor to control transmission Rate.Datagram sending device 103 is the transmission window of datagram, sends the datagram group quantity maximum value that window may store For S, as sending one of window regulatory factor.The size for sending window is W, indicates a number of datagram sending device 103 According to traffic volume, W=S × Z.
The transmission workflow of brief description sending device.
Initialization data report marks pseudo- stem;
To datagram packet, sequence, the queue congestion information adjustment according to network address translation discharge device sends window Factor Z value;
Datagram is loaded into datagram waiting device 102;
Scan data report sending device 103 judges whether transmission window is vacant.If it is not, waiting for.If so, will Datagram is loaded into datagram sending device 103;
Data carry out IP subject to export direction network address conversion device 003 and port is replaced, and are passed by common network It send to network address translation discharge device.
The repeating transmission workflow of brief description sending device.
The queue congestion information that network address translation discharge device is sent is transferred to datagram retransmission apparatus 104;
Datagram retransmission apparatus 104 determines the datagram retransmitted by GN, SN information in queue congestion information, is filled from sending Set obtain the datagram retransmitted.
Fig. 4 is a kind of structure diagram of network address translation discharge device provided in an embodiment of the present invention, referring to Fig. 4, In one embodiment of the invention, the network address translation discharge device includes routing meter apparatus 201, reception device 202, queue container device 204, packet replication device 205, address converting device 206, sending device 207, wherein:
Wherein, the reception device 202, for receiving the datagram;
Otherwise the queue container device 204 is sent out for being loaded into the datagram when capacity of queue's device is vacant Send queue congestion information to the sending device;
The routing meter apparatus 201, for when the forwarding identifier in the datagram is not 0, sending instruction information To the packet replication device, distribution information is otherwise sent to the sending device.
The sending device 207, for being distributed the datagram according to the distribution information;
The packet replication device 205, for carrying out packet replication operation, and the datagram that will be obtained according to the instruction information It is sent to described address conversion equipment;
Described address conversion equipment 206, after the datagram for being operated to packet replication carries out address conversion, via institute Sending device is stated to be distributed.
In a kind of embodiment of the application, the reception device is additionally operable to receive the weight that the receiving device is sent Send out feedback information;
The queue container device works as judgement for judging that the corresponding datagram of the repeating transmission feedback information whether there is When to be, the datagram is sent to the receiving device by the sending device, otherwise by the sending device to institute It states sending device and sends repeating transmission feedback information.
In a kind of embodiment of the application, the network address translation discharge device further includes statistic device 203.
In the present invention, routing meter apparatus 201 mainly stores the information of address conversion of public network and Intranet.With normal routing table Difference, routing meter apparatus of the invention are supported the same datagram by setting up forwarding identifier Did fields to multiple receptions What equipment was forwarded distributes support more one turn.After datagram reaches queue container device 204, routing meter apparatus 201 can logarithm It is scanned according to breath of notifying and is matched according to forwarding identifier Did fields, with configuration information, according to matching result Packet replication information and packet header addresses modification information are generated, packet replication information is passed into packet replication device 205, while will packet head Portion address modification information passes to address converting device 206.
Reception device 202 is responsible for receiving the feedback information of the datagram message and Intranet that are transmitted in public network, and conduct The buffer-stored of queue container device 204.Statistic device 203 obtains Intranet from reception device 202 and receives feedback message, to receiving Device 202 receives information and is counted, and judges whether datagram receives success, and feed back information to queue container device 204 With sending device 1.Storage device of the queue container device 204 as datagram in network address translation discharge device, for packet Reproducing unit provides source data report, and data source is provided for datagram quick repeats.Certain datagram is detained in queue container device 204 Time removes the datagram when being more than threshold value M values.The packet replication information that packet replication device 205 is provided according to routing meter apparatus 201, Datagram is obtained from queue container device 204 and is replicated, and the datagram after duplication is passed into address converting device 206.Address converting device 206 is according to the packet header addresses modification information that provides of routing meter apparatus 201 to coming from packet replication device 205 datagram header address information is modified, and transformed datagram is passed to sending device 207.Sending device 207 are responsible for being distributed the datagram from address converting device 206.
The distribution workflow of brief description network address translation discharge device.
Datagram enters the reception device 202 of Way in network address translation diostribution device 4;
Scan queue case 204 judges whether queue container device 204 is vacant.If it is not, waiting for team Preamble data in row case 204 calls the score and distributes into removing, time-out is removed or retransmits removing, and queue congestion information is sent out Transmission unit is given, adjustment sends window W.If so, datagram is loaded into queue container device 204;
Scanning routing meter apparatus 201 judges that IP in datagram, port and routing iinformation whether there is.If it is not, Datagram message mistake abandons, transmission failure;If so, judge whether Did is 0, if it is 0, then datagram need to be distributed to institute There is reception device 6, carries out packet replication according to routing 201 given information of meter apparatus into packet replication device 205, datagram enters ground Location conversion equipment 206 carries out address conversion, and datagram enters sending device 207 and is distributed to receiving device.If Did is not 0, Datagram enters sending device 207 and is distributed to receiving device.
The feedback operation flow of network address translation discharge device is described in detail as follows:
1), certain datagram group receives successfully
Network address translation discharge device receive arbitrary receiving device feedback all datagrams of certain packet number receive at Work(message, network address translation discharge device forward the packet out to sending device;
Sending device receives feedback message, and the datagram sending device 103 of sending device removes this group of datagram message, It sends successfully.
2), certain datagram receives successfully
Network address translation discharge device receives the data feedback device of certain receiving device (being named as α receiving units) Certain datagram of 304 feedbacks receives successfully message, and network address translation discharge device is forwarded the packet out to sending device, sent Equipment receives feedback message, and the datagram sending device 103 of sending device is removed this group of datagram message, sent successfully.
The statistics feedback information of statistic device 203 of network address translation discharge device, datagram statistics reception success value+ 1;
It is completed when all receiving units feed back the datagram transmission, queue container device 204 removes the datagram and system Count information.
3), certain datagram reception failure
Network address translation discharge device receives the data feedback device of certain receiving device (being named as β receiving units) The retransmission data of 304 feedbacks reports the request of a;
Network address translation discharge device judges that the datagram whether there is in queue container device 204, if so, network Address conversion discharge device retransmits the datagram to β reception devices 6,;If not provided, network address translation discharge device will be retransmitted Message transmissions are fed back to sending device, and remove the datagram statistical information, and sending device retransmits the number to the reception cluster 005 According to report, the datagram is removed when certain datagram residence time is more than threshold value M values in queue container device 204.
Fig. 5 is a kind of structure diagram of receiving device provided in an embodiment of the present invention, referring to Fig. 5, the receiving device Including datagram reception device 301, datagram identification device 302, datagram storage device 303 and datagram feedback device 304,
Wherein, the datagram reception device, for receiving the datagram;
The datagram identification device, for according to the datagram packet number and sequence number carry out sort out sequence it is whole Reason sends here information to the datagram feedback device when the corresponding datagram of the packet number is here, and will be described point The good corresponding datagram of group is stored to the datagram storage device.
That is, the datagram reception device 301 of the application is responsible for receiving the datagram come in automatic network, and pass to data Report identification device 302, the buffer-stored as datagram identification device 302.Datagram identification device 302 is received from datagram and is filled Datagram is obtained in setting 301, according to GN, SN information block of datagram, sequence, subsequent datagrams is waited for arrive at, until grouping All datagrams are here to enter datagram storage device 303;Or packet datagrams are not here, and the residence time is more than threshold value N values, Inspection lacks datagram a, sends time-out information to datagram feedback device 304, datagram storage device 303 works as A grouped datas When report arrives at complete, A is grouped all datagrams and enters 303 waiting upper layer of datagram storage device from datagram identification device 302 Using acquisition.What the responsible reception datagram reception device 301 of datagram feedback device 303 and datagram identification device 302 were fed back Information is received, and generates message and feeds back to sender.
The reception workflow of brief description receiving device.
The datagram reception device 301 of receiving device receives datagram, and datagram is passed to datagram identification device 302 arrange according to the sequence of GN, SN information categorization;
When all datagrams of packet number are here, datagram identification device 302 sends the here letter of all datagrams of packet number It ceases to datagram feedback device 304, here datagram enters datagram storage device 303, receives successfully.
The present invention also provides a kind of computer equipments, including are adapted for carrying out the processor and storage device of each instruction, The storage device is stored with a plurality of instruction, and described instruction is suitable for being loaded and being executed by processor:
Data information to be sent is packaged into the datagram based on udp protocol by sending device, and datagram is divided Group sequence;
Datagram after packet sequencing is carried out IP to network address translation apparatus and port is replaced, by the datagram after displacement It is transmitted by network;
Network address translation discharge device receives the datagram, each is transmitted to after the datagram is replicated Receiving device.
The present invention also provides a kind of computer readable storage mediums, are stored with computer program, the computer program For executing:
Data information to be sent is packaged into the datagram based on udp protocol by sending device, and datagram is divided Group sequence;
Datagram after packet sequencing is carried out IP to network address translation apparatus and port is replaced, by the datagram after displacement It is transmitted by network;
Network address translation discharge device receives the datagram, each is transmitted to after the datagram is replicated Receiving device.
As above it is a kind of system, network address translation point carrying out data distribution based on udp protocol provided by the invention Equipment, computer equipment and computer readable storage medium are sent out, the confirmation of docking message in-coming part can be completed, is realized unordered heavy The functions such as row, packet loss repeating transmission, data packet verification, flow control, combining network address convert discharge device, can be in distributed network Under network realize NAT pass through with high speed data distribution, packet loss quick repeats, overcome network bandwidth to limit.Suitable for cross-node, across ground Area, the data transmission of across a network and distribution scene, greatly save public network expense.By parameter adjustment, this method can It is flexibly adapted to various network environments, and can automatic adjusument transmission rate at work.
In addition, although being referred to several unit modules of system in above-detailed, it is this to divide only simultaneously Non-imposed.In fact, according to the embodiment of the present invention, the feature and function of two or more above-described units can To embody in a unit.Equally, the feature and function of an above-described unit can also be further divided by Multiple units embody.Terms used above " module " and " unit ", can be realize predetermined function software and/or Hardware.Although module described in following embodiment is preferably realized with software, the group of hardware or software and hardware The realization of conjunction is also that may and be contemplated.
After describing the system for carrying out data distribution based on udp protocol of exemplary embodiment of the invention, connect down Come, the method for exemplary embodiment of the invention is introduced in refer to the attached drawing.The implementation of this method may refer to above-mentioned entirety Implementation, overlaps will not be repeated.
Fig. 6 is a kind of flow chart of method carrying out data distribution based on udp protocol provided in an embodiment of the present invention, please be joined Fig. 6 is read, this method includes:
S101:Data information to be sent is packaged into the datagram based on udp protocol by sending device, and by datagram into Row packet sequencing.
In one embodiment of the invention, sending device is added pseudo- in the stem for the datagram for being packaged into udp protocol Stem, label forwarding identifier, source IP address, target ip address, packet number and sequence number.
S102:Datagram after packet sequencing is carried out IP to network address translation apparatus and port is replaced, after displacement Datagram is transmitted by network.
S103:Network address translation discharge device receives the datagram, is transmitted to after the datagram is replicated Each receiving device.
In one embodiment of the invention, this method further includes:
Sending device receives the queue congestion information that the network address translation discharge device is sent, and is gathered around according to the queue It fills in information adjustment and sends the window factor to control transmission rate.
In a kind of embodiment of invention, this method further includes:
Sending device receives the repeating transmission feedback information of network address translation discharge device, obtains datagram and retransmits.
In one embodiment of the invention, this method further includes:
Network address translation discharge device receives the repeating transmission feedback information that the receiving device is sent;
Judge that the corresponding datagram of the repeating transmission feedback information whether there is, when being judged as YES, to the receiving device The datagram is sent, is otherwise sent to the sending device and retransmits feedback information.
In one embodiment of the invention, this method further includes:Receiving device receives the datagram;
Packet number and sequence number according to the datagram carry out sorting out sequence arrangement, when the corresponding number of the packet number When according to reporting for work neat, here information is sent, and the good corresponding datagram of the grouping is stored.
A kind of method carrying out data distribution based on udp protocol proposed by the present invention, grouped data is realized based on udp protocol The transmission of report, and datagram confirmation and retransmission mechanism are realized by serial number error correction and verification scheme, pass through parameter configuration dynamic and adjusts Transmission rate is saved, address converting device is improved and realizes the distribution of batch documents high speed and fast retransmission mechanism, reduce public network and open Pin.
The technology of the present invention is discussed in detail in conjunction with the attached drawing of the present invention below by specific embodiment provided by the invention Scheme.Fig. 8 is the flow diagram of datagram transmission in specific embodiment provided by the invention, referring to Fig. 8, datagram transmission Flow includes:
S501:Initialization data report marks pseudo- stem, goes to step S502;
S502:To datagram packet, sequence, window factor Z value is sent according to the adjustment of dNAT feedback informations, is gone to step S503;
S503:Datagram is loaded into datagram waiting device 102, goes to step S504;
S504:Scan data report sending device 103 judges whether transmission window is vacant.If it is not, waiting for.If Have, goes to step S505;
S505:Datagram is loaded into datagram sending device 103, goes to step S506;
S506:Data carry out IP subject to export direction network address conversion device 003 and port is replaced, and pass through common network Network is sent to network address translation discharge device;
S507:Datagram enters the reception device 202 of Way in network address translation discharge device 4;
S508:Scan queue case 204 judges whether queue container device 204 is vacant.If it is not, S509 is gone to step, and queue congestion information is sent to transmission unit, adjustment sends window W.If so, going to step S510;
S509:Preamble data in waiting list case 204 calls the score and distributes into removing, time-out is removed or it is clear to retransmit It removes;
S510:Datagram is loaded into queue container device 204;
S511:Scanning routing meter apparatus 201, judges that IP in datagram, port and routing iinformation whether there is.If not yet Have, then goes to step S512;If so, going to step S513;
S512:Datagram message mistake abandons, transmission failure.
S513:Judge whether dID is 0, if so, going to step S514;If it is not, then going to step S516;
S514:Datagram need to be distributed to all reception devices 6, into packet replication device 205 according to 201 institute of routing meter apparatus Packet replication is carried out to information, goes to step S515;
S515:Datagram enters address converting device 206 and carries out address conversion, goes to step S516;
S516:Datagram enters sending device 207 and is distributed to reception device 6.
S517:Receiving unit datagram reception device 301 receives datagram, and datagram is passed to datagram identification dress It sets 302 to arrange according to the sequence of GN, SN information categorization, goes to step S518;
S518:Judge whether all datagrams of packet number are here.If it is not, going to step S517;If so, going to step S519;
S519:Datagram identification device 302 sends the here information of all datagrams of packet number and gives datagram feedback device 304, here datagram enters datagram storage device 303, receives successfully.
Fig. 9 is that transmission success feeds back message flow diagram in specific embodiment provided by the invention, referring to Fig. 9, passing It is defeated successfully feedback message flow include:
S601:Arbitrary receiving device is successfully received the datagram a of the grouping;
S602:Judge whether the grouped data is here, when being judged as YES, executes step S603, it is no to then follow the steps S602;
S603:The receiving device is transmitted the grouping;
S604:Network address translation discharge device receives certain point that arbitrary receiving device data feedback device 301 is fed back All datagrams of group number receive successfully message, go to step S605;
S605:DNAT is forwarded the packet out to sending device, goes to step S606;
S606:Sending device receives feedback message, and the datagram sending device 103 of sending device removes this group of datagram Information is sent successfully.
Certain datagram receives successfully:
S607:Data feedback device feeds back datagram transmission success;
S608:Network address translation discharge device receives certain receiving device (being named as α receiving units) data feedback dress Certain datagram for setting 304 feedbacks receives successfully message, goes to step S605;
S609:Statistic device 203 counts feedback information, and datagram statistics receives success value+1, goes to step S610;
S610:Judge whether that all receiving devices feed back datagram transmission completion, if so, going to step S611;Such as Fruit is no, then goes to step S601;
S611:Queue container device 204 removes the datagram and statistical information.
Figure 10 unsuccessfully feeds back message flow diagram to be transmitted in specific embodiment provided by the invention, referring to Fig. 10, Certain datagram reception failure, unsuccessfully feedback message flow includes for transmission:
S701:Certain packet datagrams is not here in the data identification means of arbitrary receiving device, and the residence time is more than threshold Value N values, inspection lack datagram a;
S702:Data feedback device feedback request retransmission data reports a;
S703:Network address translation discharge device receives the data feedback of certain receiving device (being named as β receiving units) The retransmission data that device 304 is fed back reports the request of a;
S704:Network address translation discharge device judges that the datagram whether there is in queue container device 204, if Have, goes to step S705;If it is not, going to step S706;
S705:Network address translation discharge device retransmits the datagram to β reception devices 6.
S706:Network address translation discharge device will retransmit feedback message transmissions to sending device, and remove the datagram Statistical information goes to step S707;
S707:Sending device retransmits the datagram to the reception cluster 005.
S708:The datagram is removed when certain datagram residence time is more than threshold value M values in queue container device 204.
In conclusion the present invention provides a kind of method, network address translations point carrying out data distribution based on udp protocol It sends out equipment, carry out system, computer equipment and the computer readable storage medium of data distribution based on udp protocol, it is proposed that The transmission of packet datagrams is realized based on udp protocol, and datagram confirmation is realized by serial number error correction and verification scheme and is retransmitted Mechanism improves address converting device and realizes batch documents high speed distribution and quickly by parameter configuration dynamic regulation transmission rate Retransmission mechanism reduces public network expense.Specifically, the invention can obtain following benefit:
1. compared to traditional data ways of distribution, it is significantly reduced public network expense, realizes Fast retransmission function, needle Efficiency is greatly improved to large enterprise's across a network cluster, trans-regional large-scale data distribution;
2. compare conventional TCP protocols, overcome under Long Fat Net environment bandwidth limitation, improve network transmission efficiency and Overhead;Compared to udp protocol, packet loss substantially reduces, and accuracy and TCP are equally matched;
3. realizing the security isolation of procotol level, organization internal network security has been ensured.
It is improvement on hardware (for example, to diode, crystal that the improvement of one technology, which can be distinguished clearly, Pipe, switch etc. circuit structures improvement) or software on improvement (improvement for method flow).However, with technology The improvement of development, current many method flows can be considered as directly improving for hardware circuit.Designer is almost All corresponding hardware circuit is obtained by the way that improved method flow to be programmed into hardware circuit.Therefore, it cannot be said that one The improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device (Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate Array, FPGA)) just It is such a integrated circuit, logic function determines device programming by user.It is voluntarily programmed Lai one by designer Dedicated integrated circuit is designed without asking chip maker and made to a digital display circuit " integrated " on a piece of PLD Chip.Moreover, nowadays, substitution manually makes IC chip, and " logic compiler (logic is also used in this programming instead mostly Compiler) " software realizes that when it writes with program development software compiler used is similar, and before compiling Also handy specific programming language is write for source code, this is referred to as hardware description language (Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kinds, such as ABEL (Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、 CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language) etc., VHDL (Very-High-Speed Integrated Circuit are most generally used at present Hardware Description Language) and Verilog2.Those skilled in the art also will be apparent to the skilled artisan that only needs will be square Method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages, so that it may to be readily available reality The now hardware circuit of the logical method flow.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can Read medium, logic gate, switch, application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), the form of programmable logic controller (PLC) and embedded microcontroller, the example of controller includes but not limited to following microcontroller Device:ARC625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, are deposited Memory controller is also implemented as a part for the control logic of memory.
It is also known in the art that other than realizing controller in a manner of pure computer readable program code, it is complete Entirely can by by method and step carry out programming in logic come so that controller with logic gate, switch, application-specific integrated circuit, programmable The form of logic controller and embedded microcontroller etc. realizes identical function.Therefore this controller is considered one kind Hardware component, and the structure that the device for realizing various functions for including in it can also be considered as in hardware component.Or Even, can will be considered as realizing the device of various functions either the software module of implementation method can be Hardware Subdivision again Structure in part.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit is realized can in the same or multiple software and or hardware when application.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can It is realized by the mode of software plus required general hardware platform.Based on this understanding, the technical solution essence of the application On in other words the part that contributes to existing technology can be expressed in the form of software products, the computer software product It can be stored in a storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are used so that a computer system (can be personal computer, server either network system etc.) executes the certain of each embodiment of the application or embodiment Method described in part.
Each embodiment in this specification is described in a progressive manner, identical similar portion between each embodiment Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to embodiment of the method Part explanation.
The application can be used in numerous general or special purpose computing system environments or configuration.Such as:Personal computer, clothes Business device computer, hand system or portable system, plate system, multicomputer system, microprocessor-based system, set Top box, programmable consumer electronics system, network PC, minicomputer, mainframe computer including any of the above system or system Distributed computing environment etc..
The application can describe in the general context of computer-executable instructions executed by a computer, such as program Module.Usually, program module includes routines performing specific tasks or implementing specific abstract data types, program, object, group Part, data structure etc..The application can also be put into practice in a distributed computing environment, in these distributed computing environments, by Task is executed by the connected teleprocessing system of communication network.In a distributed computing environment, program module can be with In the local and remote computer storage media including storage system.
Although depicting the application by embodiment, it will be appreciated by the skilled addressee that the application there are many deformation and Variation is without departing from spirit herein, it is desirable to which the attached claims include these deformations and change without departing from the application's Spirit.

Claims (10)

1. a kind of system carrying out data distribution based on udp protocol, which is characterized in that the system comprises sending device, networks Address-translating device, network address translation discharge device and multiple receiving devices,
The sending device, for data information to be sent to be packaged into the datagram based on udp protocol, and by datagram into Row packet sequencing;
The network address translation apparatus, for the datagram after packet sequencing to be carried out IP and port displacement, after displacement Datagram is transmitted by network;
The network address translation discharge device is transmitted to for receiving the datagram after being replicated the datagram Each receiving device.
2. system according to claim 1, which is characterized in that the sending device includes datagram labelling apparatus and number According to report sending device,
The datagram labelling apparatus, for the pseudo- stem of stem addition in the datagram for being packaged into udp protocol, label forwarding mark Know symbol, source IP address, target ip address, packet number and sequence number;
The datagram sending device, for being sent after being grouped sequence to the datagram.
3. system according to claim 2, which is characterized in that the sending device further include datagram retransmission apparatus and Datagram waiting device,
The datagram waiting device, for the datagram after packet sequencing to be carried out buffer-stored;
The datagram retransmission apparatus, the repeating transmission feedback information sent for receiving the network address translation diostribution device, from Datagram corresponding with the repeating transmission feedback information is obtained out in the datagram sending device, is retransmitted and is retransmitted instead with described The corresponding datagram of feedforward information.
4. system according to claim 2, which is characterized in that the datagram sending device is additionally operable to receive the net The queue congestion information that network address conversion discharge device is sent adjusts according to the queue congestion information and sends the window factor to control Transmission rate processed.
5. system according to claim 2, which is characterized in that the network address translation discharge device includes routing table dress It sets, reception device, queue container device, packet replication device, address converting device and sending device,
Wherein, the reception device, for receiving the datagram;
The queue container device, for being loaded into the datagram when capacity of queue's device is vacant, otherwise transmit queue Congestion information is to the sending device;
The routing meter apparatus, for when the forwarding identifier in the datagram is not 0, sending instruction information to the packet Otherwise reproducing unit sends distribution information to the sending device;
The sending device, for being distributed the datagram according to the distribution information;
The packet replication device for carrying out packet replication operation according to the instruction information, and obtained datagram is sent to Described address conversion equipment;
Described address conversion equipment, after the datagram for being operated to packet replication carries out address conversion, via the transmission Device is distributed.
6. system according to claim 5, which is characterized in that the receiving device includes datagram reception device, data Identification device, datagram storage device and datagram feedback device are reported,
Wherein, the datagram reception device, for receiving the datagram;
The datagram identification device, for according to the datagram packet number and sequence number carry out sort out sequence arrange, When the corresponding datagram of the packet number is here, here information is sent to the datagram feedback device, and by the grouping Good corresponding datagram is stored to the datagram storage device.
7. a kind of network address translation discharge device, which is characterized in that including routing meter apparatus, reception device, queue container dress It sets, packet replication device, address converting device and sending device,
Wherein, the reception device, for receiving a datagram;
The queue container device, for being loaded into the datagram when capacity of queue's device is vacant, otherwise transmit queue Congestion information is to the sending device;
The routing meter apparatus, for when the forwarding identifier in the datagram is not 0, sending instruction information to the packet Otherwise reproducing unit sends distribution information to the sending device;
The sending device, for being distributed the datagram according to the distribution information;
The packet replication device for carrying out packet replication operation according to the instruction information, and obtained datagram is sent to Described address conversion equipment;
Described address conversion equipment, after the datagram for being operated to packet replication carries out address conversion, via the transmission Device is distributed.
8. a kind of method carrying out data distribution based on udp protocol, which is characterized in that the method includes:
Data information to be sent is packaged into the datagram based on udp protocol by sending device, and datagram is grouped row Sequence;
Datagram after packet sequencing is carried out IP to network address translation apparatus and port is replaced, and the datagram after displacement is passed through Network is transmitted;
Network address translation discharge device receives the datagram, each reception is transmitted to after the datagram is replicated Equipment.
9. a kind of computer equipment, which is characterized in that the computing device includes:It is adapted for carrying out the processor of each instruction and deposits Equipment is stored up, the storage device is stored with a plurality of instruction, and described instruction is suitable for being loaded by processor and being executed such as claim 8 institute The method that data distribution is carried out based on udp protocol stated.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program are used to execute the method for carrying out data distribution based on udp protocol as claimed in claim 8.
CN201810256473.6A 2018-03-27 2018-03-27 Method, equipment and system for data distribution based on UDP protocol Active CN108566387B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810256473.6A CN108566387B (en) 2018-03-27 2018-03-27 Method, equipment and system for data distribution based on UDP protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810256473.6A CN108566387B (en) 2018-03-27 2018-03-27 Method, equipment and system for data distribution based on UDP protocol

Publications (2)

Publication Number Publication Date
CN108566387A true CN108566387A (en) 2018-09-21
CN108566387B CN108566387B (en) 2021-08-20

Family

ID=63533319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810256473.6A Active CN108566387B (en) 2018-03-27 2018-03-27 Method, equipment and system for data distribution based on UDP protocol

Country Status (1)

Country Link
CN (1) CN108566387B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783250A (en) * 2018-12-18 2019-05-21 中兴通讯股份有限公司 A kind of message forwarding method and the network equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101374141A (en) * 2007-08-23 2009-02-25 浙江省电信有限公司 TCP NAT crossing method base on PCP protocol
CN101834700A (en) * 2010-05-12 2010-09-15 北京邮电大学 Unidirectional reliable transmission method and transceiving device based on data packets
CN101990241A (en) * 2009-08-06 2011-03-23 中兴通讯股份有限公司 Packet data transmission system and method
CN102301737A (en) * 2009-01-13 2011-12-28 阿尔卡特朗讯公司 Method And Device For Ensuring Reliability During Transmission Of Television Data In A Television System Based On Internet Protocol
US9094230B1 (en) * 2008-07-09 2015-07-28 Google Inc. Network transfer protocol
WO2016133374A1 (en) * 2015-02-17 2016-08-25 싸이퍼롬, 인코퍼레이티드 Method of selecting uterine contraction inhibiting agent based on protein damage information on each individual to prevent side effects of uterine contraction inhibiting agent
CN106465068A (en) * 2014-05-15 2017-02-22 高通股份有限公司 Method, apparatuses and computer program product for transmitting received EMBMS multicast data over unicast transmission

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101374141A (en) * 2007-08-23 2009-02-25 浙江省电信有限公司 TCP NAT crossing method base on PCP protocol
US9094230B1 (en) * 2008-07-09 2015-07-28 Google Inc. Network transfer protocol
CN102301737A (en) * 2009-01-13 2011-12-28 阿尔卡特朗讯公司 Method And Device For Ensuring Reliability During Transmission Of Television Data In A Television System Based On Internet Protocol
CN101990241A (en) * 2009-08-06 2011-03-23 中兴通讯股份有限公司 Packet data transmission system and method
CN101834700A (en) * 2010-05-12 2010-09-15 北京邮电大学 Unidirectional reliable transmission method and transceiving device based on data packets
CN106465068A (en) * 2014-05-15 2017-02-22 高通股份有限公司 Method, apparatuses and computer program product for transmitting received EMBMS multicast data over unicast transmission
WO2016133374A1 (en) * 2015-02-17 2016-08-25 싸이퍼롬, 인코퍼레이티드 Method of selecting uterine contraction inhibiting agent based on protein damage information on each individual to prevent side effects of uterine contraction inhibiting agent

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
任雁: "《基于UDP的大文件传输可靠性应用研究》", 《网络安全》 *
张恺: "《基于UDP的可靠文件传输协议的设计与实现》", 《中国优秀硕士学位论文全文数据库(电子期刊)》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783250A (en) * 2018-12-18 2019-05-21 中兴通讯股份有限公司 A kind of message forwarding method and the network equipment
CN109783250B (en) * 2018-12-18 2021-04-09 中兴通讯股份有限公司 Message forwarding method and network equipment

Also Published As

Publication number Publication date
CN108566387B (en) 2021-08-20

Similar Documents

Publication Publication Date Title
CN1874321B (en) Transmission apparatus and transmission method
CN105553880B (en) Data processing method and device in a kind of software defined network
US7529855B2 (en) Dynamic modification of fragmentation size cluster communication parameter in clustered computer system
CN107070613B (en) Reliable data transmission method in distributed network environment
CN101277175A (en) Method and device for improving conversation starting protocol server performance
CN102710548A (en) Method and system for tracking operation of each email receiver over email
CN102332968A (en) Communication equipment, communication means and computer program
CN102035751A (en) Data transmission method and equipment
CN102859921A (en) System and method for achieving accelerated throughput
CN106062726A (en) Flow aware buffer management for data center switches
EP1708445A1 (en) Communication device and logical link abnormality detection method
CN105847139A (en) Data transmission method, apparatus and system
US11153221B2 (en) Methods, systems, and devices for classifying layer 4-level data from data queues
US11330035B2 (en) Method and server for HTTP protocol-based data request
CN108513268A (en) The processing method and SMS platform of short message exception
EP4193657A1 (en) Local and global quality of service shaper on ingress in a distributed system
CN103036775A (en) Information exchange device, system and method
DE60316419T2 (en) Serialization of a distributed application of a router
CN108566387A (en) Method, equipment and the system of data distribution are carried out based on udp protocol
CN102315918B (en) Method and device for intercommunicating TCP (Transmission Control Protocol) connection with SCTP (Stream Control Transmission Protocol) connection
CN106059964B (en) Message forwarding method and device
CN102368711A (en) Communication system facing parallel file system
CN106789878B (en) A kind of file towards large traffic environment also original system and method
CN105634894B (en) A kind of enhanced CAN bus data re-transmitting method and device
CN104184729A (en) Message processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant