Movatterモバイル変換


[0]ホーム

URL:


CN109818710A - A data transmission method and corresponding device - Google Patents

A data transmission method and corresponding device
Download PDF

Info

Publication number
CN109818710A
CN109818710ACN201711166540.7ACN201711166540ACN109818710ACN 109818710 ACN109818710 ACN 109818710ACN 201711166540 ACN201711166540 ACN 201711166540ACN 109818710 ACN109818710 ACN 109818710A
Authority
CN
China
Prior art keywords
data packet
data
electronic equipment
packet
transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711166540.7A
Other languages
Chinese (zh)
Inventor
陈凯
陈娴
缪云海
蔡洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology 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 China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co LtdfiledCriticalChina Mobile Communications Group Co Ltd
Priority to CN201711166540.7ApriorityCriticalpatent/CN109818710A/en
Publication of CN109818710ApublicationCriticalpatent/CN109818710A/en
Pendinglegal-statusCriticalCurrent

Links

Landscapes

Abstract

The embodiment of the present invention provides a kind of data transmission method and corresponding intrument, to solve the technical issues of data transfer mode in the prior art cannot be considered in terms of the real-time and stability of data transmission.The method is applied to the first electronic equipment, it include: before sending any non-bursty data packet to the second electronic equipment, judge in data packet queue to be sent with the presence or absence of burst data packet, wherein, second electronic equipment is that the receiving device for having data transmission channel is established with the first electric room, burst data packet is the default data packet with priority processing permission, and non-bursty data packet is other data packets in addition to burst data packet;If, then stop to send any non-bursty data packet, and there are all receiving devices of data transmission channel to send burst data packet to establishing with the first electronic equipment, after sending burst data packet, restarts to the second electronic equipment and send any non-bursty data packet.

Description

A kind of data transmission method and corresponding intrument
Technical field
The present invention relates to realm information technical field more particularly to a kind of data transmission methods and corresponding intrument.
Background technique
In a network environment, real-time information exchange mainly has unloading and directly transmits two ways.
As shown in Figure 1, unloading mode is by the information between the Middleware implementations equipment A and equipment B such as database, textData are stored in middleware by transmitting, equipment A, and equipment B extracts data from middleware.However, limited by performance of middle piece,When data transmission frequencies are higher, equipment A and equipment B are easy to appear deadlock to the access of middleware, not can guarantee data transmittingThe real-time of process.
As shown in Fig. 2, directly transmit in mode, equipment A directly sends data to equipment B, do not need by middleware intoRow unloading avoids the deadlock situation in unloading mode.However, directly being sent out when data volume is larger or transmission time slice is smallerThe phenomenon that packet loss is easy to appear in mode is sent, important data are easy to lose in directly transmitting mode, and stability is poor.
As it can be seen that lacking a kind of real-time that not only can guarantee data transmission in the prior art, but also it can guarantee the steady of data transmissionQualitative data transfer mode.
Summary of the invention
The embodiment of the present invention provides a kind of data transmission method and corresponding intrument, passes to solve data in the prior artDefeated mode cannot be considered in terms of the technical issues of real-time and stability.
In a first aspect, providing a kind of data transmission method, it is applied to the first electronic equipment, comprising:
Before sending any non-bursty data packet to the second electronic equipment, judge be in data packet queue to be sentNo there are burst data packets, wherein second electronic equipment is to have data transmission with first electric room foundationThe receiving device in channel, the burst data packet are the default data packet with priority processing permission, the non suddenData packet is other data packets in addition to burst data packet;
If so, stopping to send any non-bursty data packet, and there is number to first electronic equipment foundationThe burst data packet is sent according to all receiving devices of transmission channel, after sending the burst data packet, weightNewly start to second electronic equipment and sends any non-bursty data packet.
In one possible implementation, any non-bursty data packet is being sent to second electronic equipmentBefore, the method also includes:
Judge determining to after second electronic equipment transmission any non-bursty data packet, if new to receiveTo the data packet from second electronic equipment;
If so, terminating to send any non-bursty data packet, and handle the data packet newly received.
In one possible implementation, the data packet newly received is handled, comprising:
Judge the type of the data packet newly received;
If the type of the data packet newly received is response data packet, the number with second electronic equipment is disconnectedAccording to transmission channel, wherein response data packet characterization present data transmission process terminates;
If the type of the data packet newly received is data request packet, it is determined that the second electronic equipment of Xiang Suoshu is sentThe requested data of data packet newly received.
In one possible implementation, any non-bursty data packet is being sent to second electronic equipmentBefore, the method also includes:
Judge the residual time length T in present data transmission periodTHWhether preset duration threshold value is greater than, wherein the current numberBe the first electronic equipment according to transmission cycle it is to handle the first data request packet and the data transfer cycle that distributes, sends described anyThe task of non-bursty data packet generates, data the processing of first data request packet based on first electronic equipmentThe duration of transmission cycle is fixed;
If it has not, then terminating to send any non-bursty data packet.
In one possible implementation, the residual time length TTHIt is determined by formula:
Wherein, TTRIndicate the duration of data transfer cycle, TwaitIt indicates to set in the present data transmission period to the second electronicsPreparation send the waiting time before first data packet, and n indicates that having transmitted to the second electronics in the present data transmission period setsThe quantity of standby data packet,Indicate duration consumed by i-th of data packet in n data packet of transmission.
Second aspect provides a kind of data transmission set, including first judgment module and processing module, in which:
The first judgment module is used for: before sending any non-bursty data packet to the second electronic equipment, judgementIt whether there is burst data packet in data packet queue to be sent, wherein second electronic equipment is to pass with the dataThe receiving device for having data transmission channel is established between transfer device, the burst data packet is default with priority processing permissionData packet, the non-bursty data packet is other data packets in addition to burst data packet;
The processing module is used for: when the first judgment module is judged as YES, stopping to send described any non-burstProperty data packet, and there are all receiving devices of data transmission channel to send the burst to establishing with the data transmission setProperty data packet, after sending the burst data packet, restart sent to second electronic equipment it is described any non-Burst data packet.
In one possible implementation, the data transmission set further includes the second judgment module, in which:
Second judgment module is used for: to second electronic equipment send any non-bursty data packet itBefore, judge determining to after second electronic equipment transmission any non-bursty data packet, if newly receive andFrom the data packet of second electronic equipment;
The processing module is also used to: when second judgment module is judged as YES, terminating to send described any non-prominentHair property data packet, and handle the data packet newly received.
In one possible implementation, the processing module is used for:
Judge the type of the data packet newly received;
If the type of the data packet newly received is response data packet, the number with second electronic equipment is disconnectedAccording to transmission channel, wherein response data packet characterization present data transmission process terminates;
If the type of the data packet newly received is data request packet, it is determined that the second electronic equipment of Xiang Suoshu is sentThe requested data of data packet newly received.
In one possible implementation, the data transmission set further includes third judgment module, in which:
The third judgment module is used for: to second electronic equipment send any non-bursty data packet itBefore, judge the residual time length T in present data transmission periodTHWhether preset duration threshold value is greater than, wherein the present data transmissionPeriod is that the data transmission set is the data transfer cycle for handling the first data request packet and distributing, and is sent described any non-Transmission device generates the processing of first data request packet to the task of burst data packet based on the data, and data passThe duration in defeated period is fixed;
The processing module is also used to: when the third judgment module is judged as NO, terminating to send described any non-prominentHair property data packet.
In one possible implementation, the residual time length TTHIt is determined by formula:
Wherein, TTRIndicate the duration of data transfer cycle, TwaitIt indicates to set in the present data transmission period to the second electronicsPreparation send the waiting time before first data packet, and n indicates that having transmitted to the second electronics in the present data transmission period setsThe quantity of standby data packet,Indicate duration consumed by i-th of data packet in n data packet of transmission.
The third aspect, provides a kind of equipment, and the equipment includes:
At least one processor, and
The memory being connect at least one described processor;
Wherein, the memory is stored with the instruction that can be executed by least one described processor, described at least oneThe instruction that device is stored by executing the memory is managed, method as described in relation to the first aspect is executed.
Fourth aspect provides a kind of computer readable storage medium, comprising:
The computer-readable recording medium storage has computer instruction, when the computer instruction is run on computersWhen, so that computer executes method described in first aspect.
In the embodiment of the present invention, before sending any non-bursty data packet to the second electronic equipment, judge to be sentData packet queue in whether there is burst data packet, wherein the second electronic equipment be with the first electric room foundation haveThe receiving device of data transmission channel, if so, stop to send any non-bursty data packet, and to the first electronic equipmentEstablishing has all receiving devices of data transmission channel to send burst data packet, after sending burst data packet, weightNewly start to the second electronic equipment and sends any non-bursty data packet.
In such a way that the first electronic equipment directly sends data packet to the second electronic equipment, it can guarantee that the first electronics is setThe real-time of the standby transmission of the data between the second electronic equipment.Meanwhile all judging before sending any non-bursty data packetWith the presence or absence of burst data packet to be sent, burst data packet is then sent if it exists, ensure that burst data packet canSent in time, avoid because volume of transmitted data is big or transmission time slice is short and the feelings that cause burst data coating to abandonCondition improves the stability of data transmission.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show belowThere is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only thisInventive embodiments for those of ordinary skill in the art without creative efforts, can also be according to mentioningThe attached drawing of confession obtains other attached drawings.
Fig. 1 is the schematic diagram of unloading interactive mode in information exchange;
Fig. 2 is the schematic diagram that interactive mode is directly transmitted in information exchange;
Fig. 3 is the schematic diagram of sudden information of embodiment of the present invention scheduling process;
Fig. 4 is a kind of flow diagram of information transferring method in the embodiment of the present invention;
Fig. 5 is a kind of structural block diagram of information transmission equipment in the embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present inventionIn attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment isA part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the artEvery other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
In addition, the terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates may existThree kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.SeparatelyOutside, character "/" herein typicallys represent the relationship that forward-backward correlation object is a kind of "or" in the case where not illustrating.
Embodiment one
The embodiment of the present invention provides a kind of information transferring method, and this method can be applied to the first electronic equipment.Wherein,One electronic equipment can be real-time monitoring equipment, server, mobile phone, tablet computer, PC, laptop, wearableElectronic equipment etc. has the electronic equipment of information transfer capability.
First electronic equipment can carry out data transmission simultaneously with one or more electronic equipments, and the second electronic equipment can be withIt is any one electronic equipment carried out data transmission with the first electronic equipment.
Information transferring method in the embodiment of the present invention for ease of understanding, can be by the first electronics in the embodiment of the present inventionEquipment is interpreted as server-side, and the electronic equipment carried out data transmission with electronics (such as the second electronic equipment) is interpreted as client.
In the specific implementation process, the information transferring method in the embodiment of the present invention can be to configure real-time Data TransmissionThe mode of agreement is realized.It may include having data packet format definition part and data packet tune in real-time Data Transmission agreementSpend Rule section.
First part: data packet format definition
Data packet format definition part can define data request packet, general data packet, end of data packet, sudden numberAccording to the format of the data packets such as packet, response data packet.
A kind of feasible definition mode introduced below:
1, data request packet
Data request packet issues server-side by client, sends data to client for request server.Data request packetThe information contained has data request packet packet mark, the type of requested data, the length of data request packet, the title of requested dataLength, the title of requested data, check value, etc..
For example, the format of data request packet can be as shown in table 1:
Table 1
Wherein:
ENQ: it indicates the packet mark of data request packet, occupies 2 bytes, value can be set as 0x05;
Type: it indicates the type of data request packet requested data, occupies 2 bytes, value interval can be 0 to 2m-1Between hexadecimal number, m is nonnegative integer;
Size: indicating the length of data request packet requested data, occupies 4 bytes;
NameLength: indicating the Name Length of data request packet requested data, occupies 1 byte;
Name: indicating the title of data request packet requested data, occupies length by the filename length of requested dataIt determines;
Verification: occupying 1 byte specifically can be since ENQ for verifying data request packet to institute before check bitThere is the XOR operation result of byte.
2, general data packet
General data packet is the data packet with regular length that server-side is sent to client, and packet length can be fixed as1028 byte lengths.The information that general data packet includes have general data packet mark, wire data type, data packet serial number,Data Data, check value, etc..
For example, the format of common request packet can be as shown in table 2:
Table 2
Wherein:
STX: it indicates the packet mark of general data packet, occupies 2 bytes, value can be set as 0x02;
Number: it indicates serial number of the current data packet in entire transmission process, occupies 1 byte;
Data: for the specific data content of general data packet transmission, 1024 bytes are occupied;
Verification: occupying 1 byte specifically can be since STX for verifying common request packet to institute before check bitThere is the XOR operation result of byte.
3, end of data packet
End of data packet is the last one data packet that server-side is sent to client in a data transmission procedure, packet lengthDegree is not fixed, and the information that end of data packet includes has packet mark, the end of data packet length, data Data, school of end of data packetTest value, etc..
For example, the format of end of data packet can be as shown in table 3:
Table 3
Wherein:
ETX: it indicates the packet mark of end of data packet, occupies 2 bytes, value can be set as 0x03;
Length: it indicates the length of data packet transmission data, occupies 2 bytes.
Data: indicating the specific data content of end of data packet transmission, and length is determined by the length of the specific data transmitted;
Verification: occupying 1 byte specifically can be since ETX for verifying data end packet to institute before check bitThere is the XOR operation result of byte.
4, burst data packet
Burst data packet, which is server-side, sends sudden information (such as fault message, alarm signal, control letter to clientNumber etc.) data packet, packet length is not fixed, and the information that burst data packet includes has the packet mark of burst data packet, burstThe length of property data packet, data Data, check value.
For example, the format of burst data packet can be as shown in table 4:
Table 4
Wherein:
BEL: it indicates the packet mark of burst data packet, occupies 2 bytes, value can be set as 0x07;
Length: it indicates the length of burst data packet transmission data, occupies 2 bytes;
Data: indicating the specific data content of burst data packet transmission, and length is determined by the specific data content transmitted.
Verification: occupying 1 byte, for verifying burst data packet, specifically can be since BEL to before check bitThe XOR operation result of all bytes.
5, response data packet
Response data packet is the data packet that client is sent to server-side, can be with for indicating data end of transmissionClosing transmission channel.It may include the packet mark of response data packet in response data packet.
For example, the format of response data packet can be as shown in table 5:
Table 5
Wherein:
ETO: it indicates the packet mark of response data packet, occupies 2 bytes, value can be set as 0x04.
It should be noted that above-mentioned " server-side " and " client " be to the role of equipment in transmission of data packets intoCapable description, rather than be the restriction to functions of the equipments.In different transmission processes, role's same equipment can change,I.e. an equipment is either server-side, is also possible to client.
Second part: data packet dispatching rule
In data transmission procedure, sudden information exists on a small quantity, generation time is random, usual sudden information data volumeIt is less and stringenter to transmission deadline requirement, it, must be preferential with highest although the frequency that this category information occurs is lowerGrade processing.
In the embodiment of the present invention, the sending method of broadcast type is used for the sudden information generated in server-side, will be dashed forwardPhotos and sending messages are pushed to each client established with server-side and have data transmission channel.
Fig. 3 is referred to, Fig. 3 show the schematic diagram of sudden information scheduling process in present invention implementation.At server-sideDuring managing non sudden information, if server-side produces sudden information, transmission is interrupted for carrying non sudden letterThe non-bursty data packet of breath, then the burst data packet for carrying sudden information is transmitted, it is passed in burst data packetAfter the completion of defeated, transmission non-bursty data packet is returned.
Illustrate with the detailed process carried out data transmission between the first electronic equipment and the second electronic equipment belowIt is bright.
It, can be in the first electronic equipment and the second electricity after first electronic equipment receives the connection request of the second electronic equipmentData transmission channel is established between sub- equipment.For example, data transmission channel can be transmission control protocol(Transmission Control Protocol, TCP) data transmission channel, is also possible to User Datagram Protocol (UserDatagram Protocol, UDP) data transmission channel, etc..
Second electronic equipment sends the first data request packet to the first electronic equipment by established data transmission channel.
After first electronic equipment receives the first data request packet, data transmission is distributed for the first data request packet of processingPeriod, wherein the duration of data transfer cycle is fixed, and T can be usedTHIt indicates, the processing of the first data request packet is needed at thisIt is carried out in data transfer cycle.
First electronic equipment handles the process of the first data request packet, i.e., sends the first request of data to the second electronic equipmentWrap the process of the data of request.To realize this process, the first electronic equipment to the transmission of the second electronic equipment by that can carryThe data packet of specific data content, the requested data of i.e. the first data request packet of entrained specific data content.Wherein, whenThe requested data volume of first data request packet is larger, when can not be carried by a data packet, so that it may to the first request of dataRequested data are wrapped to be split, it is multiple from multiple data packet shareds to the task of the second electronic equipment dataData packet forms queue, is successively transmitted to the second electronic equipment.
In the embodiment of the present invention, the data packet for handling data request packet and generating is usually non-bursty data packet, such asFor general data packet, end of data packet, etc..
Fig. 4 is referred to, Fig. 4 show a kind of flow chart of data transmission method in the embodiment of the present invention.Including:
Step 401: before sending any non-bursty data packet to the second electronic equipment, judging data packet to be sentIt whether there is burst data packet in queue, wherein the second electronic equipment is to have data transmission with the foundation of the first electric roomThe receiving device in channel, burst data packet are the default data packet with priority processing permission, and non-bursty data packet isOther data packets in addition to burst data packet.
Step 402: if so, stopping to send any non-bursty data packet, and having number to the foundation of the first electronic equipmentAccording to transmission channel all receiving devices send burst data packet, after sending burst data packet, restart toSecond electronic equipment sends any non-bursty data packet.
In the embodiment of the present invention, after generating burst information in the first electronic equipment, the prominent of sudden information can will be carriedData packet queue to be transmitted is added in hair property data packet.First electronic equipment is before sending any non-bursty data packet, allIt can check in data packet queue to be sent with the presence or absence of burst data packet.
If checking there are when burst data packet in data packet queue to be transmitted, the first electronic equipment can stop to sendAny non-bursty data packet, and there are all receiving devices of data transmission channel to send to establishing with the first electronic equipmentBurst data packet.That is, the first electronic equipment is being checked there are when burst data packet, can immediately broadcast type toAll receiving devices push burst data packet for having data transmission channel is established, so that burst data packet can be eachReceiving device receives in time.
If checking there is no burst data packet, the first electronic equipment can continue to send any non sudden numberAccording to the task of packet.
In a kind of possible embodiment, before sending any non-bursty data packet to the second electronic equipment, theOne electronic equipment can also judge determining to after any non-bursty data packet of the second electronic equipment transmission, if new to receiveTo the data packet from the second electronic equipment, if so, terminating to send any non-bursty data packet, and handles and newly receiveData packet.
It in the embodiment of the present invention, determines to the second electronic equipment and sends any non-bursty data packet, that is, indicate that determination connectsGet off to need the data packet transmitted to be any non-bursty data packet.And actually send any non-bursty data packet itBefore, the first electronic equipment can also check whether newly to receive the data packet from the second electronic equipment.If checking presenceThe data packet newly received, then the first electronic equipment can terminate to send any non-bursty data packet, and start to process newThe data packet received.
In data transmission procedure, the second electronic equipment as receiving end can be to the first electronic equipment as transmitting terminalTwo kinds of data packet is sent, one is response data packet, the second is new data request packet.The processing of first electronic equipment is newWhen the data packet received, the type of the data packet newly received can be first determined whether, and then according to different type of data packetExecute corresponding operation:
If judging, the data packet newly received is response data packet, and the first electronic equipment can disconnect and the second electronicsThe data transmission channel of equipment;
If the data packet newly received is new data request packet, the first electronic equipment is determined to be sent out to the second electronic equipmentSend the data packet newly received requested data.
And before sending the requested any non-bursty data packet of data packet newly received to the second electronic equipment,First electronic equipment equally will do it the judgement for whether meeting transmission condition, that is, judge whether there is burst data packet, ifData packet, etc. is newly received from the second electronic equipment.
In a kind of possible embodiment, before sending any non-bursty data packet to the second electronic equipment, theOne electronic equipment may determine that the residual time length T in present data transmission periodTHWhether preset duration threshold value is greater than, wherein currentData transfer cycle is that the first electronic equipment is the data transfer cycle for handling the first data request packet and distributing, and is sent any non-The task of burst data packet generates the processing of the first data request packet based on the first electronic equipment, data transfer cycleDuration is fixed, if residual time length TTHNo more than preset duration threshold value, then terminate to send any non-bursty data packet.
In the embodiment of the present invention, in real-time Data Transmission agreement can with the fixation duration of configuration data transmission cycle, withAnd configuration preset duration threshold value.First electronic equipment is that each data request packet distributes a data transfer cycle, data request packetRequested data need to complete transmission in data transfer cycle.And before sending non-bursty data packet every time, all canJudge residual time length TTHWhether preset duration threshold value is greater than, if being not more than preset duration threshold value, then it represents that residual time length TTHNothingMethod completes the transmission of a non-bursty data packet, and the first electronic equipment then terminates to send any non-bursty data packet.
Wherein, the duration for sending burst data packet can equally occupy the duration in current data transfer cycle.AlsoIt is to say, the data packet sent in a data transfer cycle both may include non-bursty data packet, also may include suddenData packet.
In the specific implementation process, the fixation duration of data transfer cycle can use TTRIt indicates, TTRSpecific value canTo configure according to actual needs, the embodiment of the present invention is with no restrictions.And the value of preset duration threshold value equally can be according to realityIt needs to configure, such as is configured according to the data transmission bauds of network, the value of certain preset duration threshold value also can be set as 0.
In a kind of possible embodiment, residual time length TTHIt can be determined by following formula:
Wherein, TTRIndicate the duration of data transfer cycle, TwaitIt indicates to set in the present data transmission period to the second electronicsPreparation send the waiting time before first data packet, and n indicates that having transmitted to the second electronics in the present data transmission period setsThe quantity of standby data packet,Indicate duration consumed by i-th of data packet in n data packet of transmission.
In specific data transmission procedure, the first electronic equipment can be using above-mentioned all Rule of judgment to non-burstWhether property data packet, which meets transmission condition, is judged, naturally it is also possible to part therein only be selected to be judged.If passing through choosingAfter fixed Rule of judgment is judged, the transmission flow of non-bursty data packet is not finished, then the first electronic equipment is executed toTwo electronic equipments send the operation of the non-bursty data packet.
In the embodiment of the present invention, the second electronic equipment as receiving end can execute such as during information is transmittedLower step:
(1) request is initiated the connection to the first electronic equipment, creates data packet transmission channel;
(2) judge whether to receive new data packet, if receiving new data packet, enter step (3), otherwise afterContinuous obstruction waits new data packet;
(3) type for the data packet that judgement receives then enters step (4), if it is general if it is burst data packetLogical data packet, then enter step (5), otherwise enter step (6);
(4) burst data packet is received, subsequently into step (2);
(5) general data packet is received, subsequently into step (2);
(6) end of data packet is received, judges whether to need to send new data request packet to the first electronic equipment, if neededIt wants, then enters step (7), otherwise enter step (8);
(7) new data request packet is sent to the first electronic equipment, subsequently into step (2);
(8) judge whether to need to send response data packet to the first electronic equipment, if it is desired, it then enters step (9), it is noThen enter step (2).
(9) new response data packet is sent to the first electronic equipment, then terminates process.
Embodiment two
Based on the same inventive concept, the embodiment of the present invention provides a kind of data transmission set, which can be withIt is the first electronic equipment in embodiment one.Understand and explain embodiment one, two in content when, can mutually referring to drawWith.The data transmission set includes including at least first judgment module 501 and processing module 502, in which:
First judgment module 501 is used for: before sending any non-bursty data packet to the second electronic equipment, judge toIt whether there is burst data packet in the data packet queue of transmission, wherein the second electronic equipment is to build between data transmission setThe vertical receiving device for having data transmission channel, burst data packet is the default data packet with priority processing permission, non-prominentHair property data packet is other data packets in addition to burst data packet;
Processing module 502 is used for: when first judgment module 501 is judged as YES, stopping to send any non-bursty dataPacket, and there are all receiving devices of data transmission channel to send burst data packet to establishing with data transmission set, it is sending outAfter sending burst data packet, restarts to the second electronic equipment and send any non-bursty data packet.
In a kind of possible embodiment, equipment further includes the second judgment module 503, in which:
Second judgment module 503 is used for: before sending any non-bursty data packet to the second electronic equipment, being judgedIt determines after sending any non-bursty data packet to the second electronic equipment, if newly receive the number from the second electronic equipmentAccording to packet;
Processing module 502 is also used to: when the second judgment module 503 is judged as YES, terminating to send any non sudden numberAccording to packet, and handle the data packet newly received.
In a kind of possible embodiment, processing module 502 is used for:
Judge the type of the data packet newly received;
If the type of the data packet newly received is response data packet, disconnect logical with the transmission of the data of the second electronic equipmentRoad, wherein response data packet characterization present data transmission process terminates;
If the type of the data packet newly received is data request packet, it is determined that newly received to the transmission of the second electronic equipmentThe requested data of data packet.
In a kind of possible embodiment, equipment further includes third judgment module 504, in which:
Third judgment module 504 is used for: before sending any non-bursty data packet to the second electronic equipment, judgement is worked asThe residual time length T of preceding data transfer cycleTHWhether preset duration threshold value is greater than, wherein the present data transmission period is that data passTransfer device is the data transfer cycle for handling the first data request packet and distributing, and sends the task base of any non-bursty data packetThe processing of the first data request packet is generated in data transmission set, the duration of data transfer cycle is fixed;
Processing module 502 is also used to: when third judgment module 504 is judged as NO, terminating to send any non sudden numberAccording to packet.
In a kind of possible embodiment, residual time length TTHIt is determined by formula:
Wherein, TTRIndicate the duration of data transfer cycle, TwaitIt indicates to set in the present data transmission period to the second electronicsPreparation send the waiting time before first data packet, and n indicates that having transmitted to the second electronics in the present data transmission period setsThe quantity of standby data packet,Indicate duration consumed by i-th of data packet in n data packet of transmission.
Embodiment three
Based on the same inventive concept, the embodiment of the present invention provides a kind of equipment, comprising:
At least one processor, and
The memory being connect at least one processor;
Wherein, memory is stored with the instruction that can be executed by least one processor, at least one processor passes through executionThe instruction of memory storage, executes the method as described in embodiment one.
Example IV
Based on the same inventive concept, the embodiment of the present invention provides a kind of computer readable storage medium, this is computer-readableStorage medium is stored with computer instruction, when computer instruction is run on computers, so that computer executes embodiment oneThe method.
In the specific implementation process, computer readable storage medium includes: general serial bus USB(Universal Serial Bus flash drive, USB), mobile hard disk, read-only memory (Read-Only Memory,ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. are various can store programThe storage medium of code.
Above-mentioned one or more technical solutions, at least exist it is following the utility model has the advantages that
In the embodiment of the present invention, before sending any non-bursty data packet to the second electronic equipment, judge to be sentData packet queue in whether there is burst data packet, wherein the second electronic equipment be with the first electric room foundation haveThe receiving device of data transmission channel, if so, stop to send any non-bursty data packet, and to the first electronic equipmentEstablishing has all receiving devices of data transmission channel to send burst data packet, after sending burst data packet, weightNewly start to the second electronic equipment and sends any non-bursty data packet.
In such a way that the first electronic equipment directly sends data packet to the second electronic equipment, it can guarantee that the first electronics is setThe real-time of the standby transmission of the data between the second electronic equipment.Meanwhile all judging before sending any non-bursty data packetWith the presence or absence of burst data packet to be sent, burst data packet is then sent if it exists, ensure that burst data packet canSent in time, avoid because volume of transmitted data is big or transmission time slice is short and the feelings that cause burst data coating to abandonCondition improves the stability of data transmission.
Further, before sending any non-bursty data packet to second electronic equipment, judge whetherThe data packet from the second electronic equipment newly is received, the up-to-date information from receiving end can be handled, in time with receiving endThe Newest Directive executes operation, avoids executing unnecessary operation, ensure that the efficiency of data transmission.
Further, before sending any non-bursty data packet to the second electronic equipment, residual time length TTHIt is whether bigIn preset duration threshold value, if being not more than, terminate to send any non-bursty data packet.By to residual time length TTHJudgement,It can be in residual time length TTHWhen no more than preset duration threshold value, next data transfer cycle, improve data transfer are timely enteredEfficiency.
The apparatus embodiments described above are merely exemplary, wherein units/modules as illustrated by the separation memberIt may or may not be physically separated, the component shown as units/modules may or may not bePhysical unit/module, it can it is in one place, or may be distributed in multiple network unit/modules.It can basisIt is actual to need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Ordinary skill peopleMember is without paying creative labor, it can understands and implements.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment canIt realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, onStating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, shouldComputer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingersIt enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementationMethod described in certain parts of example or embodiment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;AlthoughPresent invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be usedTo modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit andRange.

Claims (12)

CN201711166540.7A2017-11-212017-11-21 A data transmission method and corresponding devicePendingCN109818710A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201711166540.7ACN109818710A (en)2017-11-212017-11-21 A data transmission method and corresponding device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201711166540.7ACN109818710A (en)2017-11-212017-11-21 A data transmission method and corresponding device

Publications (1)

Publication NumberPublication Date
CN109818710Atrue CN109818710A (en)2019-05-28

Family

ID=66600400

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201711166540.7APendingCN109818710A (en)2017-11-212017-11-21 A data transmission method and corresponding device

Country Status (1)

CountryLink
CN (1)CN109818710A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112242053A (en)*2020-10-162021-01-19中国飞机强度研究所Multi-type test data optimized transmission system and method
CN112333674A (en)*2020-10-302021-02-05展讯半导体(成都)有限公司Data transmission method, device and equipment
CN112967430A (en)*2021-03-222021-06-15深圳指芯物联技术有限公司Intelligent lock communication system and safety communication method
CN113573366A (en)*2020-04-282021-10-29华为技术有限公司 Data transmission method, and related equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1705295A (en)*2004-05-292005-12-07华为技术有限公司Packet transmission system having priority and method therefor
CN101043438A (en)*2006-03-242007-09-26华为技术有限公司System and method for transmitting data packet
CN101193054A (en)*2006-11-282008-06-04华为技术有限公司 A method and system for sending data, node device and coordination device
CN101489105A (en)*2008-01-172009-07-22日本电气株式会社Content delivering system, relaying apparatus, user terminal and content delivering method
CN104935456A (en)*2015-04-082015-09-23泰邦泰平科技(北京)有限公司Alarm message transmission and processing method of communication network alarm system
CN105450785A (en)*2016-01-262016-03-30青岛海信电器股份有限公司File transmission method and device
US20160315870A1 (en)*2015-04-222016-10-27Accedian Networks Inc.Preemptive packet transmission
CN106302180A (en)*2015-05-152017-01-04中兴通讯股份有限公司The method of a kind of preferential transmission/reception HELLO message and routing device
CN107258076A (en)*2015-02-262017-10-17西门子公司 Data Transmission in Communication Networks

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1705295A (en)*2004-05-292005-12-07华为技术有限公司Packet transmission system having priority and method therefor
CN101043438A (en)*2006-03-242007-09-26华为技术有限公司System and method for transmitting data packet
CN101193054A (en)*2006-11-282008-06-04华为技术有限公司 A method and system for sending data, node device and coordination device
CN101489105A (en)*2008-01-172009-07-22日本电气株式会社Content delivering system, relaying apparatus, user terminal and content delivering method
CN107258076A (en)*2015-02-262017-10-17西门子公司 Data Transmission in Communication Networks
CN104935456A (en)*2015-04-082015-09-23泰邦泰平科技(北京)有限公司Alarm message transmission and processing method of communication network alarm system
US20160315870A1 (en)*2015-04-222016-10-27Accedian Networks Inc.Preemptive packet transmission
CN106302180A (en)*2015-05-152017-01-04中兴通讯股份有限公司The method of a kind of preferential transmission/reception HELLO message and routing device
CN105450785A (en)*2016-01-262016-03-30青岛海信电器股份有限公司File transmission method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113573366A (en)*2020-04-282021-10-29华为技术有限公司 Data transmission method, and related equipment
EP4132086A4 (en)*2020-04-282023-10-11Huawei Technologies Co., Ltd. DATA TRANSMISSION METHOD AND ASSOCIATED DEVICE
US12432158B2 (en)2020-04-282025-09-30Huawei Technologies Co., Ltd.Data transmission method and related device
CN112242053A (en)*2020-10-162021-01-19中国飞机强度研究所Multi-type test data optimized transmission system and method
CN112333674A (en)*2020-10-302021-02-05展讯半导体(成都)有限公司Data transmission method, device and equipment
CN112333674B (en)*2020-10-302022-06-24展讯半导体(成都)有限公司Data transmission method, device and equipment
CN112967430A (en)*2021-03-222021-06-15深圳指芯物联技术有限公司Intelligent lock communication system and safety communication method
CN112967430B (en)*2021-03-222023-01-10深圳指芯物联技术有限公司Intelligent lock communication system and safety communication method

Similar Documents

PublicationPublication DateTitle
EP4234060B1 (en)Service processing method and apparatus, and storage medium
CN105337961B (en)The method and server communicated with client
CN109818710A (en) A data transmission method and corresponding device
WO2018126853A1 (en)Data transmission method and apparatus
CN102763373B (en)The method and apparatus using the service of local network devices based on remote access
CN112039722B (en) A kind of MQTT protocol simulation method and simulation device
CN111831513B (en)Log query method, device, electronic equipment and storage medium
US9197490B2 (en)System and method for providing remote management of a switching device
US9900375B2 (en)Server-processor hybrid system for processing data
CN108650667B (en)Terminal scheduling method and device
CN105657000A (en)Message transmission method and device
EP2755363A1 (en)Data-fast-distribution method and device
CN102904959A (en)Network accelerating method and gateway
CN108810170A (en)resource allocation method and system
CN104932941A (en)Distributed message processing system and device and method thereof
CN113965628B (en)Message scheduling method, server and storage medium
KR101663412B1 (en)Method for Defining Quality of Things based on DDS in Internet of Things
CN110336888A (en) A server allocation method, device, system and medium
US20090132582A1 (en)Processor-server hybrid system for processing data
CN104486443B (en)Message push system and its method
KR20160000544A (en)Method and apparatus for determining service quality profile on data distribution service
CN109729016A (en)A kind of file transmitting method, equipment and computer readable storage medium
CN108234595A (en)Log transmission method and system
CN117651078A (en)Data transmission method and device, electronic equipment and storage medium
CN101276289B (en) The method of communication between user and multi-core in Linux system

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20190528


[8]ページ先頭

©2009-2025 Movatter.jp