CN109617945A - Sending method, sending device, electronic equipment and the readable medium of file transmission - Google Patents
Sending method, sending device, electronic equipment and the readable medium of file transmission Download PDFInfo
- Publication number
- CN109617945A CN109617945A CN201811302049.7A CN201811302049A CN109617945A CN 109617945 A CN109617945 A CN 109617945A CN 201811302049 A CN201811302049 A CN 201811302049A CN 109617945 A CN109617945 A CN 109617945A
- Authority
- CN
- China
- Prior art keywords
- data packet
- transmit queue
- packet
- confirmation signal
- multiple data
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/1607—Details of the supervisory signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/29—Flow control; Congestion control using a combination of thresholds
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/34—Flow control; Congestion control ensuring sequence integrity, e.g. using sequence numbers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
Abstract
Disclose sending method, sending device, electronic equipment and the computer-readable medium of a kind of file transmission.Described sender method includes: by file declustering to be sent into multiple data packets, and storage splits serial number in each data packet;Transmit queue is written into the multiple data packet;The multiple data packet is successively read and sent from the transmit queue, and is stored and sent sequence number in each data packet;Confirmation signal is received, and corresponding data packet is deleted from the transmit queue according to the confirmation signal, receiving end issues a confirmation signal after often receiving a data packet.The application controls according to message queue during transmitting file and sends repetition transmission data packet, to improve the reliability of file transmission.
Description
Technical field
This application involves streaming media transmission technique field, in particular to a kind of sending method of file transmission, sending device,
Electronic equipment and computer-readable medium.
Background technique
With the continuous development of science and technology, the degree of every profession and trade informationization generally improves, and data file is between networks
Transmission it is also more and more.
In order to guarantee that data file can be quick, stable transmit, current file transmission is torn open in conjunction with file mostly
The technology of dividing, by file declustering at multiple data packets, and is carried out in a manner of multithreading breakpoint transmission, so that it is guaranteed that the transmission of file has
There is robustness.
But the configuration of the server due to executing file transmission task is not quite similar, and the network rings of each transmission node
Border is also different, is good or bad, and especially when server configuration is lower, network speed is slow or unstable, data packet is being passed
Still the case where will appear transmission failure during defeated, so that the success rate of file transmission can be reduced to a certain extent.
In internet communication, packet loss and Bandwidth-Constrained are generally existing.It is how reliable and efficient especially under weak net environment
File transmission is carried out, service quality is most important to being promoted, such as in short video field, the success that the data packet of short-sighted frequency uploads
The experience and retention of rate and high efficiency strong influence user.
Summary of the invention
In view of the above problems, the sending method for being designed to provide a kind of file transmission of the application, for reducing text
Packet loss in part transmission process improves the reliability of file transmission.
To achieve the above object, according to the embodiment of the present application in a first aspect, provide a kind of sending method of file transmission,
Include:
By file declustering to be sent at multiple data packets, and storage splits serial number in each data packet;
Transmit queue is written into the multiple data packet;
The multiple data packet is successively read and sent from the transmit queue, and is stored and sent in each data packet
Serial number;
Confirmation signal is received, and corresponding data packet is deleted from the transmit queue according to the confirmation signal, is received
End issues a confirmation signal after often receiving a data packet.
Optionally, described to include: by the multiple data packet write-in transmit queue
If the bag data amount of the multiple data packet is equal to or less than the length of the transmit queue, will be the multiple
Data packet is sequentially written in transmit queue;
If the packet quantity of the multiple data packet is greater than the length of the transmit queue, partial data packet is successively write
Enter to after transmit queue, for remainder, when the transmit queue has a data coating to delete, from remainder according to
One data packet of secondary reading is written in transmit queue.
Optionally, the multiple data packet is read and sent using the first process or thread, and in each data packet memory
Storage sends sequence number, and receives confirmation signal using the second process or thread, and according to the confirmation signal from the transmit queue
Delete corresponding data packet.
Optionally, the transmit queue is directed toward using the first pointer in first thread or process, the second thread or into
The transmit queue is directed toward using the second pointer in journey.
Optionally, further includes: receive the packet loss that the transmitting terminal is sent.
Optionally, further includes: transmission rate is adjusted according to the packet loss.
Optionally, adjusting transmission rate according to the packet loss includes:
When the packet loss is less than default lowest threshold, increases and send code rate;
When the packet loss is greater than default max-thresholds, reduces and send code rate;
When the packet loss therebetween when, keep send code rate it is constant.
Optionally, the initial value to send sequence number is 0, and when sending a data packet every time, described send sequence number adds 1.
According to a second aspect of the embodiments of the present invention, a kind of sending device of file transmission is provided, comprising:
File declustering module is used for file declustering to be sent into multiple data packets, and stores and tear open in each data packet
Divide serial number;
Data packet writing module, for transmit queue to be written in the multiple data packet;
Packet sending module is successively read from the transmit queue and sends the multiple data packet, and each
Storage sends sequence number in data packet;
Confirmation signal receiving module, for receiving confirmation signal;
Data packet removing module, for deleting corresponding data packet from the transmit queue according to the confirmation signal,
Wherein receiving end issues a confirmation signal after often receiving a data packet.
Optionally, the data packet writing module includes:
If the bag data amount of the multiple data packet is equal to or less than the length of the transmit queue, will be the multiple
Data packet is sequentially written in transmit queue;
If the packet quantity of the multiple data packet is greater than the length of the transmit queue, partial data packet is successively write
Enter to after transmit queue, for remainder, when the transmit queue has a data coating to delete, from remainder according to
One data packet of secondary reading is written in transmit queue.
According to a third aspect of the embodiments of the present invention, a kind of electronic equipment is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to executing sending method described in above-mentioned any one.
According to a fourth aspect of the embodiments of the present invention, a kind of non-transitorycomputer readable storage medium, the meter are provided
Calculation machine readable storage medium storing program for executing is stored with computer instruction, and the computer instruction, which is performed, realizes hair described in any of the above embodiments
Delivery method.
The sending method that the embodiment of the present application uses can include the following benefits: write the data packet to message queue
In, data packet is read and sent from message queue, and the data packet for receiving confirmation signal is deleted from message queue, due to
The data packet for sending failure not will receive confirmation signal, so that the data packet for sending failure, which can rest on, waits weight in message queue
New to send, by repeatedly sending, all data packets can all reach receiving end, so that it is guaranteed that being still able to maintain under weak net environment
Biggish transmittability and transmission reliability.
Detailed description of the invention
By referring to the drawings to the description of the embodiment of the present application, the above-mentioned and other purposes of the application, feature and
Advantage will be apparent from, in the accompanying drawings:
Fig. 1 shows the C/S model of present specification Transmission system;
Fig. 2 a shows the flow chart of the sending method of the file transmission of one embodiment of the application;
Fig. 2 b shows the flow chart of the reception hold-carrying of the file transmission of one embodiment of the application;
Fig. 3 shows the flow chart of the sending method of the file transmission of one embodiment of the application;
Fig. 4 shows the schematic diagram of transmit queue in the embodiment of the present application;
Fig. 5 shows the flow chart that the transmitting terminal that file transmits in the embodiment of the present application sends code rate decision;
Fig. 6 shows the flow chart of the reception hold-carrying of the file transmission of one embodiment of the application;
Fig. 7 shows the structure chart of the sending device of the file transmission of the embodiment of the present application;
Fig. 8 is a kind of block diagram of the device of sending method for executing file transmission shown according to an exemplary embodiment;
Fig. 9 is a kind of block diagram of the device of sending method for executing file transmission shown according to an exemplary embodiment.
Specific embodiment
The application is described below based on embodiment, but the application is not restricted to these embodiments.Under
Text is detailed to describe some specific detail sections in the datail description of the application.Do not have for a person skilled in the art
The application can also be understood completely in the description of these detail sections.In order to avoid obscuring the essence of the application, well known method, mistake
Journey, process do not describe in detail.In addition attached drawing is not necessarily drawn to scale.
With reference to the accompanying drawings and examples, the specific embodiment of the application is described in further detail.
It is as shown in Figure 1 the C/S model 10 of the document transmission system of the embodiment of the present application, i.e. client/server model,
It is generally made of computer platform, the network platform and database platform, can be divided into transmitting terminal 101, receiving end by its effect
103 and connection network 102.Transmitting terminal 101 is client (Client), is that an operation sends letter to server on a client
Breath, and receive the applet of server info.Receiving end 103 is server (Server), is in response to client request
And handled.Connecting network 102 has been network, including local area network, internet of connection function etc..
The namely client of transmitting terminal 101, can be split to sent file data, by the data packet after fractionation according to
It is secondary to be sent to server.The sending method of client is illustratively described below with reference to Fig. 2 a
Fig. 2 a shows the flow chart of the sending method of the file transmission of one embodiment of the application, specifically includes following step
Suddenly.
In step s 201, by file declustering to be sent at multiple data packets, and storage splits sequence in each data packet
Number.
In step S202, transmit queue is written into multiple data packets.
In step S203, multiple data packets are successively read and sent from transmit queue, and in each data packet memory
Storage sends sequence number.
In step S204, confirmation signal is received, and corresponding number is deleted from the transmit queue according to confirmation signal
According to packet.
The type and size of file to be sent do not limit.By file declustering to be sent at multiple data packets, each data
Packet size can be equal or different.When fractionation, the fractionation serial number of data packet is stored in each data packet, it is written convenient for subsequent splicing
Part.
Transmit queue is the queue of the data packet of the energy area definition quantity of pre-generatmg.Each of queue element is exactly
One data packet.When initial, since the data packet for splitting serial number 0, it is sequentially filled transmit queue according to serial number is split, each
The size of data packet is sp, and until transmit queue is full of or the end of file, the maximum length of queue is q_max.When transmission, from hair
It send and is successively read data packet in queue, and sent, while the confirmation message of received data packet, the confirmation message of data packet is
The expression that receiving end is sent receives the confirmation message of data packet, often receives a confirmation message, will be corresponding from transmit queue
Data packet is deleted.
The namely server-side of receiving end 103 receives the data packet that client is sent and returns to confirmation signal.When receiving
After some data packets, it is spliced into file.The reception hold-carrying of server is illustratively described below with reference to Fig. 2 b
Fig. 2 b shows the flow chart of the reception hold-carrying of the file transmission of one embodiment of the application.Specifically include following step
Suddenly.
In step S201 ', received data packet.
In step S202 ', according to sending sequence number in data packet, confirmation signal is sent.
In step S203 ', according to the fractionation serial number in data packet, it is spliced into file.
Receiving end received data packet sends sequence number and splits serial number in read data packet, is spliced into according to serial number is split
File.
The sending method that the embodiment of the present application uses writes the data packet in message queue, reads simultaneously from message queue
Data packet is sent, and the data packet for receiving confirmation signal is deleted from message queue, the data packet due to sending failure will not
Confirmation signal is received, is retransmitted so that the data packet for sending failure can rest on to wait in message queue, by repeatedly sending,
All data packets can all reach receiving end, so that it is guaranteed that being still able to maintain transmission reliability under weak net environment.
Fig. 3 shows the flow chart of the transmitting terminal of the file transmission of one embodiment of the application, specifically includes following steps.
In step S301, queue is filled, the data packet of file to be sent is sequentially filled transmit queue.
In step s 302, judge whether queue is full of or the end of file.If so, thening follow the steps S303, otherwise hold
Row step S301.
In step S303, data packet is successively sent.
In step s 304, confirmation signal is received.
In step S305, the data packet is deleted.
In step S306, remaining data packet is judged whether there is.It is no to then follow the steps if it is execution step S307
S308。
In step S307, queue head is inserted into new data packet.
In step S308, judge whether to be sent.If it is, process terminates, if not, thening follow the steps
S303。
The present embodiment is illustrated below with reference to Fig. 4.Fig. 4 is the schematic diagram of a transmit queue.
According to step S301, the data packet of file to be sent is sequentially filled in transmit queue, there are three types of possible feelings
Condition: 1) quantity of the data packet of file to be sent is equal to the maximum length of transmit queue, then data packet is just full of transmit queue;
2) quantity of the data packet of file to be sent is less than the maximum length of transmit queue, then after data packet is all filled into transmit queue,
There are also remaining for transmit queue;3) quantity of the data packet of file to be sent is greater than transmit queue, then after transmit queue fills up, also
Remaining data packet.For 3) the case where, need for remaining data packet to be temporarily stored in one caching in.According to step S303 according to
The secondary read data packet from transmit queue simultaneously sends data packet.Confirmation signal is received according to step S304, and from transmit queue
Delete corresponding data packet.Sending data packet and receiving confirmation signal is parallel execution of steps.Optionally, step S303 is first
It is executed in thread or process, step S304-307 is executed in the second process or thread.Further illustrate this simultaneously below with reference to Fig. 4
Row process.It sends sequence number and uses N_send table, for N_send since 1, P_send is a pointer for being directed toward transmit queue, P_
Recv is another pointer for being directed toward transmit queue, and first thread or process use p_send to be moved to rear of queue from queue heads,
One data packet of every direction, reads and sends the data packet, correspondingly, N_send then adds 1, and the second thread or process are constantly in
Reception state receives confirmation signal, is directed toward transmit queue using p_recv according to confirmation signal, often receives a confirmation letter
Number, corresponding data packet is deleted.After a data packet is deleted, if at this moment there are also remaining data packets, from remaining data
The head that a new data packet is filled into transmit queue is taken out in packet, so that the data packet number of hold queue is constant, if
There is no remaining data packet, then as data packet is deleted from transmit queue, the data packet number in transmit queue is gradually decreased.
Also, when P_send is moved to rear of queue, returns to queue heads accent and sent.Assuming that there is a data packet such as N_send
Confirmation signal never is received for 5 data packet, then the data packet will not be deleted, and can remain stored in transmit queue
In, when from the beginning P_send is moved to the data packet again, the data packet is sent again.It, can by repeatedly such processing
Ensure that all data packets receive confirmation signal, i.e., all data packets all receiving ends receive, and by from transmit queue
It deletes.
To sum up, the present embodiment passes through the control to transmit queue, it is ensured that all data packets are able to send successfully, to mention
The high reliability of file transmission.
Fig. 5 shows the flow chart that the transmitting terminal that file transmits in the embodiment of the present application sends code rate decision.It specifically includes
Following steps.
In step S501, initialization code rate is r0,
In step S502, judge whether packet loss p < p_low is true, is to then follow the steps S503, it is no to then follow the steps
S504。
In step S503, increases and send code rate as r_opt=r_opt* (1+alpha).
In step S504, judge whether packet loss p > p_high is true, is to then follow the steps S505, it is no to then follow the steps
S506。
In step S505, reducing and sending code rate is r_opt=r_opt* (1-beta).
In step S506, sends code rate and remain unchanged.
In above-mentioned steps, r0 is the transmission code rate of initialization, i.e. the initial rate of client transmission data packet, and p is service
The practical packet loss of real-time statistics is held, p_low is pre-set minimum packet loss threshold value, such as can be set to 0.1, p_
High is pre-set highest packet loss threshold value, such as can be set to 0.3, and r_opt is the best transmission speed of client,
Alpha > 0, such as it is set as 0.2, beta > 0, such as it is set as 0.2.
By the practical packet loss p and maximum packet loss p_high pre-set and minimum in above-mentioned steps S502, S504
Packet loss p_low be compared, step S503, S505, S506 are adjusted actual transmission speed according to comparison result,
Ensure there is higher transmission code rate again while guaranteeing lower packet loss.
The step of above-mentioned code rate decision, client and server is needed to cooperate jointly.For example, server calculates packet loss
Rate judges according to packet loss, and judging result is sent to client, and client is according to judging result, and adjustment sends speed in time
Rate, and send code rate and receive code rate and meet following formula:
R_opt=max (r_opt, r_recv* (1+theta)),
Wherein theta > beta, recommendation 0.25.Entire transmission process is set to keep suitable packet loss and transmission rate.
R_recv indicates to receive code rate, equal to the number of characters received divided by the time.
In the above-described embodiments, packet loss p calculation are as follows: within a certain period of time, such as 1s, statistics actually receive data
The quantity x of packet, maximum send sequence number seq_max, and minimum sends sequence number seq_min, packet loss p=1-x/ (seq_max-seq_
min)。
Fig. 6 shows the flow chart of the reception hold-carrying of the file transmission of one embodiment of the application.Specifically includes the following steps:
Step S601: received data packet receives the data packet sent from client.
Step S602: returning to confirmation signal, as soon as every reception data packet, returns to a confirmation signal to client.
Step S603: the data packet received is sorted according to serial number is split, and splices composing document by serial number is split.
Step S604: statistics packet loss, according to sending sequence number for practical received data packet and data packet, calculating is transmitted across
Packet loss in journey.
Step S605: the practical receiving velocity of statistics, according to the actual quantity of the data packet received in the unit time, statistics
Practical receiving velocity in transmission process.
In the step of above-mentioned file reception, other than the data packet received is spliced composing document, it is also necessary to unite
Packet loss is counted, the use in order to client to sending in code rate decision to packet loss.
It should be understood that above-mentioned client sends data packet, server received data packet, server is received within a certain period of time
To data packet number need not be equal to the data packet number of transmission, may be because of a variety of causes because in transmission process
Lead to packet loss phenomenon, therefore carries out sending code rate decision by calculating packet loss.For example, server statistics were once lost every 5 seconds
Packet rate simultaneously sends packet loss to client, and client adjusts transmission code rate next time according to packet loss.For another example each P_
When send is directed toward team's head of transmit queue, primary transmission code rate is adjusted.
Fig. 7 shows the structure chart of the sending device of the file transmission of the embodiment of the present application.Sending device 700 includes text
Part splits module 701, data packet writing module 702, packet sending module 703, confirmation signal receiving module 704 and data packet
Removing module 705.
File declustering module 701 is for storing file declustering to be sent at multiple data packets, and in each data packet
Split serial number.
Data packet writing module 702 is used to multiple data packets transmit queue is written.
Packet sending module 703 is successively read from transmit queue and sends multiple data packets, and in each data packet
Interior storage sends sequence number.
Confirmation signal receiving module 704 is for receiving confirmation signal.
Data packet removing module 705 from transmit queue for deleting corresponding data packet, receiving end according to confirmation signal
A confirmation signal is issued after often receiving a data packet.
A fractionation serial number is stored in the sending device of the present embodiment, in each data packet and is sent sequence number.Split sequence
Number be used for position of the identification data packet in original, data packet is spliced into file convenient for subsequent.It sends sequence number for identifying
The transmission sequence of data packet, is used for subsequent calculating packet loss.And if be noted that before and after a data packet by transmission two
It is secondary, then first time send sequence number with it is secondary send sequence number it is not identical.When data packet is identified, just by the data packet
Deleted from queue, and be inserted into new data packet in queue head, maintain queue length remain unchanged, until queue be full of or text
Part terminates.
It is controlled by transmit queue and sends data packet, guarantee that the data packet being finally only received just can be from transmit queue
Middle deletion realizes data packet retransmission mechanism, to realize the robustness of file transmission.
Each of transmit queue element is a data packet, and safeguards two pointers in a device, and a pointer refers to
To the data packet for currently needing to send.Every to have sent a data packet, pointer moves forward to next data packet, every movement one
Secondary, sending sequence number for data packet adds 1, when pointer reaches rear of queue, pointer is directed toward queue head, at this point, the hair of data packet
It send serial number to be equal to sending sequence number for last round of tail of the queue and adds 1.Another pointer is for deleting data packet, according to the confirmation letter received
It number is directed toward and deletes data packet.Pointer is one of programming language data type.
It further include the adjustment to code rate is sent in above-mentioned sending device.Specifically, data first are sent according to initial bit rate
It is compared with pre-set highest, minimum packet loss threshold value, leads to by packet, the packet loss of timing receipt server feedback
Cross comparison result and adjust the transmission code rate of client in real time, guarantee in entire transmission process, all have lower packet loss and
Higher transmission code rate.
In above-mentioned transmission process, confirmation signal is confirmation character, and in data communication, the one of transmitting terminal is issued in receiving end
Kind transmission class control character indicates that the data sent have confirmed that reception is errorless.In the embodiment of the present application, no matter client is received
Confirmation signal is confiscated, pointer can be moved to next data packet, send next data packet.Without sending successfully number
It being stayed in transmit queue according to Bao Zehui, the next round after waiting pointer poll is sent, when being sent again, the fractionation of the data packet
Serial number is constant, sends sequence number, and can change.
Sending device provided in this embodiment reads and is sent from message queue data packet, and will receive confirmation signal
Data packet deleted from message queue, due to send failure data packet not will receive confirmation signal so that send failure
Data packet can be rested on to wait in message queue and be retransmitted, and by repeatedly sending, all data packets can all reach receiving end, from
And ensure under weak net environment, still it is able to maintain biggish transmittability and transmission reliability.
Fig. 8 is a kind of frame of sending device 1200 for above-mentioned sending method shown according to an exemplary embodiment
Figure.For example, sending device 1200 can be mobile phone, computer, digital broadcasting terminal, messaging device, game control
Platform, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig. 8, device 1200 may include following one or more components: processing component 1202, memory 1204, electricity
Power component 1206, multimedia component 1208, audio component 1210, the interface 1212 of input/output (I/O), sensor module
1214 and communication component 1216.
The integrated operation of the usual control device 1200 of processing component 1202, such as with display, telephone call, data communication,
Camera operation and record operate associated operation.Processing component 1202 may include one or more processors 1220 to execute
Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1202 may include one or more moulds
Block, convenient for the interaction between processing component 1202 and other assemblies.For example, processing component 1202 may include multi-media module,
To facilitate the interaction between multimedia component 1208 and processing component 1202.
Memory 1204 is configured as storing various types of data to support the operation in equipment 1200.These data
Example includes the instruction of any application or method for operating on device 1200, contact data, telephone book data,
Message, picture, video etc..Memory 1204 can by any kind of volatibility or non-volatile memory device or they
Combination realizes that, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable
Programmable read only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, quick flashing
Memory, disk or CD.
Power supply module 1206 provides electric power for the various assemblies of device 1200.Power supply module 1206 may include power management
System, one or more power supplys and other with for device 1200 generate, manage, and distribute the associated component of electric power.
Multimedia component 1208 includes the screen of one output interface of offer between described device 1200 and user.?
In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel,
Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes
Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic
The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more
Media component 1208 includes a front camera and/or rear camera.When equipment 1200 is in operation mode, as shot mould
When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting
Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1210 is configured as output and/or input audio signal.For example, audio component 1210 includes one
Microphone (MIC), when device 1200 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone
It is configured as receiving external audio signal.The received audio signal can be further stored in memory 1204 or via logical
Believe that component 1216 is sent.In some embodiments, audio component 1210 further includes a loudspeaker, is used for output audio signal.
I/O interface 1212 provides interface, above-mentioned peripheral interface module between processing component 1202 and peripheral interface module
It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, enable button and
Locking press button.
Sensor module 1214 includes one or more sensors, and the state for providing various aspects for device 1200 is commented
Estimate.For example, sensor module 1214 can detecte the state that opens/closes of equipment 1200, the relative positioning of component, such as institute
The display and keypad that component is device 1200 are stated, sensor module 1214 can be with detection device 1200 or device 1200
The position change of one component, the existence or non-existence that user contacts with device 1200,1200 orientation of device or acceleration/deceleration
With the temperature change of device 1200.Sensor module 1214 may include proximity sensor, be configured to not any
It is detected the presence of nearby objects when physical contact.Sensor module 1214 can also include optical sensor, such as CMOS or ccd image
Sensor, for being used in imaging applications.In some embodiments, which can also include that acceleration passes
Sensor, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1216 is configured to facilitate the communication of wired or wireless way between device 1200 and other equipment.Dress
The wireless network based on communication standard, such as WiFi can be accessed by setting 1200, carrier network (such as 2G, 3G, 4G or 5G) or it
Combination.In one exemplary embodiment, communication component 1216 receives via broadcast channel and comes from external broadcasting management system
The broadcast singal or broadcast related information of system.In one exemplary embodiment, the communication component 1216 further includes that near field is logical
(NFC) module is believed, to promote short range communication.For example, radio frequency identification (RFID) technology, infrared data association can be based in NFC module
Meeting (IrDA) technology, ultra wide band (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1200 can be by one or more application specific integrated circuit (ASIC), number
Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 1204 of instruction, above-metioned instruction can be executed by the processor 1220 of device 1200 to complete the above method.Example
Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft
Disk and optical data storage devices etc..
Fig. 9 is a kind of frame of sending device 13 00 for above-mentioned sending method shown according to an exemplary embodiment
Figure.For example, device 1300 may be provided as a server.Referring to Fig. 9, device 1300 includes processing component 1322, into one
Step includes one or more processors, and the memory resource as representated by memory 1332, and being used to store can be by processing group
The instruction of the execution of part 1322, such as application program.The application program stored in memory 1332 may include one or one
Each above corresponds to the module of one group of instruction.In addition, processing component 1322 is configured as executing instruction, it is above-mentioned to execute
Information list display methods method.
Device 1300 can also include that a power supply module 1326 be configured as the power management of executive device 1300, and one
Wired or wireless network interface 1350 is configured as device 1300 being connected to network and input and output (I/O) interface
1358.Device 1300 can be operated based on the operating system for being stored in memory 1332, such as Windows ServerTM, Mac
OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the application
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the application, these modifications, purposes or
Person's adaptive change follows the general principle of the application and including the undocumented common knowledge in the art of the application
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the application are by following
Claim is pointed out.
It should be understood that the application is not limited to the precise structure that has been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.Scope of the present application is only limited by the accompanying claims.
Claims (10)
1. a kind of sending method of file transmission characterized by comprising
By file declustering to be sent at multiple data packets, and storage splits serial number in each data packet;
Transmit queue is written into the multiple data packet;
The multiple data packet is successively read and sent from the transmit queue, and storage sends sequence in each data packet
Number;
Confirmation signal is received, and corresponding data packet is deleted from the transmit queue according to the confirmation signal, wherein is received
End issues a confirmation signal after often receiving a data packet.
2. sending method according to claim 1, which is characterized in that described that transmit queue is written in the multiple data packet
Include:
If the bag data amount of the multiple data packet is equal to or less than the length of the transmit queue, by the multiple data
Packet is sequentially written in transmit queue;
If the packet quantity of the multiple data packet is greater than the length of the transmit queue, partial data packet is sequentially written in
After transmit queue, remainder is successively read when the transmit queue has a data coating to delete from remainder
A data packet is taken to be written in transmit queue.
3. sending method according to claim 1, which is characterized in that read and sent described using the first process or thread
Multiple data packets, and store and send sequence number in each data packet, using the second process or thread reception confirmation signal, and according to
The confirmation signal deletes corresponding data packet from the transmit queue.
4. sending method according to claim 1, which is characterized in that further include: receive the packet loss that the transmitting terminal is sent
Rate, and transmission rate is adjusted according to the packet loss.
5. sending method according to claim 4, which is characterized in that adjusting transmission rate according to the packet loss includes:
When the packet loss is less than default lowest threshold, increases and send code rate;
When the packet loss is greater than default max-thresholds, reduces and send code rate;
When the packet loss therebetween when, keep send code rate it is constant.
6. sending method according to claim 1, which is characterized in that when sending a data packet every time, the transmission sequence
Number plus 1.
7. a kind of sending device of file transmission characterized by comprising
File declustering module, for storage to split sequence at multiple data packets, and in each data packet by file declustering to be sent
Number;
Data packet writing module, for transmit queue to be written in the multiple data packet;
Packet sending module is successively read from the transmit queue and sends the multiple data packet, and in each data
Storage sends sequence number in packet;
Confirmation signal receiving module, for receiving confirmation signal;
Data packet removing module, for deleting corresponding data packet from the transmit queue according to the confirmation signal, wherein
Receiving end issues a confirmation signal after often receiving a data packet.
8. sending device according to claim 7, which is characterized in that the data packet writing module includes:
If the bag data amount of the multiple data packet is equal to or less than the length of the transmit queue, by the multiple data
Packet is sequentially written in transmit queue;
If the packet quantity of the multiple data packet is greater than the length of the transmit queue, partial data packet is sequentially written in
After transmit queue, remainder is successively read when the transmit queue has a data coating to delete from remainder
A data packet is taken to be written in transmit queue.
9. a kind of electronic equipment characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to executing sending method described in the claims 1-6 any one.
10. a kind of non-transitorycomputer readable storage medium, which is characterized in that the computer-readable recording medium storage has
Computer instruction, the computer instruction are performed realization such as sending method as claimed in any one of claims 1 to 6.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811302049.7A CN109617945A (en) | 2018-11-02 | 2018-11-02 | Sending method, sending device, electronic equipment and the readable medium of file transmission |
PCT/CN2019/102993 WO2020088064A1 (en) | 2018-11-02 | 2019-08-28 | File sending method and sending apparatus, electronic device, and readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811302049.7A CN109617945A (en) | 2018-11-02 | 2018-11-02 | Sending method, sending device, electronic equipment and the readable medium of file transmission |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109617945A true CN109617945A (en) | 2019-04-12 |
Family
ID=66002274
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811302049.7A Pending CN109617945A (en) | 2018-11-02 | 2018-11-02 | Sending method, sending device, electronic equipment and the readable medium of file transmission |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109617945A (en) |
WO (1) | WO2020088064A1 (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111107165A (en) * | 2019-12-30 | 2020-05-05 | 深圳市其乐游戏科技有限公司 | Disconnection reconnection method, disconnection reconnection device and computer readable storage medium |
WO2020088064A1 (en) * | 2018-11-02 | 2020-05-07 | 北京达佳互联信息技术有限公司 | File sending method and sending apparatus, electronic device, and readable medium |
CN111147540A (en) * | 2019-11-18 | 2020-05-12 | 深圳市元征科技股份有限公司 | File transmission method, device, equipment and storage medium |
CN111885564A (en) * | 2020-07-03 | 2020-11-03 | 海尔优家智能科技(北京)有限公司 | Data transmission method, equipment upgrading method and computer readable storage medium |
CN112398744A (en) * | 2019-08-16 | 2021-02-23 | 阿里巴巴集团控股有限公司 | Network communication method and device and electronic equipment |
CN114363370A (en) * | 2021-12-29 | 2022-04-15 | 中汽创智科技有限公司 | Vehicle-mounted equipment communication method, device and system and vehicle |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1981470A (en) * | 2004-05-05 | 2007-06-13 | 高通股份有限公司 | Methods and apparatus for optimum file transfers in a time-varying network environment |
US20150334488A1 (en) * | 2014-05-14 | 2015-11-19 | Samsung Electronics Co., Ltd. | Method and apparatus for communicating audio data |
CN106790653A (en) * | 2017-01-17 | 2017-05-31 | 上海泓智信息科技有限公司 | Document transmission processing method and device |
CN107580233A (en) * | 2017-08-21 | 2018-01-12 | 武汉斗鱼网络科技有限公司 | A kind of method, apparatus and computer equipment for transmitting data |
CN108306715A (en) * | 2017-01-11 | 2018-07-20 | 深圳市首欣通达科技有限公司 | A kind of method and system carrying out long file transmission based on Big Dipper generation satellite short message communication function |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102137027B (en) * | 2011-05-03 | 2013-07-31 | 厦门市美亚柏科信息股份有限公司 | Reliable data transmission method and device thereof |
CN104660308A (en) * | 2015-01-26 | 2015-05-27 | 武汉健坤科技有限公司 | File transfer method and file transfer system based on Bluetooth low power consumption technology |
CN107623545A (en) * | 2016-07-15 | 2018-01-23 | 中国人民解放军信息工程大学 | Document transmission method and device |
CN106331106B (en) * | 2016-08-25 | 2019-07-05 | 广州小百合信息技术有限公司 | Information issuing method and system |
CN109617945A (en) * | 2018-11-02 | 2019-04-12 | 北京达佳互联信息技术有限公司 | Sending method, sending device, electronic equipment and the readable medium of file transmission |
-
2018
- 2018-11-02 CN CN201811302049.7A patent/CN109617945A/en active Pending
-
2019
- 2019-08-28 WO PCT/CN2019/102993 patent/WO2020088064A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1981470A (en) * | 2004-05-05 | 2007-06-13 | 高通股份有限公司 | Methods and apparatus for optimum file transfers in a time-varying network environment |
US20150334488A1 (en) * | 2014-05-14 | 2015-11-19 | Samsung Electronics Co., Ltd. | Method and apparatus for communicating audio data |
CN108306715A (en) * | 2017-01-11 | 2018-07-20 | 深圳市首欣通达科技有限公司 | A kind of method and system carrying out long file transmission based on Big Dipper generation satellite short message communication function |
CN106790653A (en) * | 2017-01-17 | 2017-05-31 | 上海泓智信息科技有限公司 | Document transmission processing method and device |
CN107580233A (en) * | 2017-08-21 | 2018-01-12 | 武汉斗鱼网络科技有限公司 | A kind of method, apparatus and computer equipment for transmitting data |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020088064A1 (en) * | 2018-11-02 | 2020-05-07 | 北京达佳互联信息技术有限公司 | File sending method and sending apparatus, electronic device, and readable medium |
CN112398744A (en) * | 2019-08-16 | 2021-02-23 | 阿里巴巴集团控股有限公司 | Network communication method and device and electronic equipment |
CN111147540A (en) * | 2019-11-18 | 2020-05-12 | 深圳市元征科技股份有限公司 | File transmission method, device, equipment and storage medium |
CN111147540B (en) * | 2019-11-18 | 2022-09-16 | 深圳市元征科技股份有限公司 | File transmission method, device, equipment and storage medium |
CN111107165A (en) * | 2019-12-30 | 2020-05-05 | 深圳市其乐游戏科技有限公司 | Disconnection reconnection method, disconnection reconnection device and computer readable storage medium |
CN111885564A (en) * | 2020-07-03 | 2020-11-03 | 海尔优家智能科技(北京)有限公司 | Data transmission method, equipment upgrading method and computer readable storage medium |
CN111885564B (en) * | 2020-07-03 | 2024-03-22 | 海尔优家智能科技(北京)有限公司 | Data transmission method, equipment upgrading method and computer readable storage medium |
CN114363370A (en) * | 2021-12-29 | 2022-04-15 | 中汽创智科技有限公司 | Vehicle-mounted equipment communication method, device and system and vehicle |
CN114363370B (en) * | 2021-12-29 | 2023-12-26 | 中汽创智科技有限公司 | Vehicle-mounted device communication method, device and system and vehicle |
Also Published As
Publication number | Publication date |
---|---|
WO2020088064A1 (en) | 2020-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109617945A (en) | Sending method, sending device, electronic equipment and the readable medium of file transmission | |
US10205907B2 (en) | System and method for providing co-delivery of content | |
KR101459862B1 (en) | Remote communication system and method | |
WO2020134559A1 (en) | Data transmission method and apparatus, terminal device, and storage medium | |
WO2015050924A2 (en) | Image with audio conversation system and method | |
US20220291897A1 (en) | Method and device for playing voice, electronic device, and storage medium | |
JP2017504921A (en) | Instant messaging method, apparatus, program, and recording medium | |
CN109245997B (en) | Voice message playing method and device | |
CN105376144B (en) | Information processing method and device | |
CN108401479B (en) | Data transmission method and device, receiving end equipment and sending end equipment | |
US20210256057A1 (en) | Method for playing audio, device, terminal, server and storage medium | |
WO2021046674A1 (en) | Data processing method and apparatus, and electronic device and computer readable storage medium | |
US20150092006A1 (en) | Image with audio conversation system and method utilizing a wearable mobile device | |
WO2020088059A1 (en) | Video playback method, video playback apparatus, electronic device, and storage medium | |
CN109714415A (en) | Data processing method and device | |
CN109429568A (en) | A kind of method and device of reporting buffer status report | |
WO2023029846A1 (en) | Multimedia resource uploading method and apparatus, electronic device, and readable storage medium | |
CN112565876B (en) | Screen projection method, device, equipment, system and storage medium | |
US11665586B2 (en) | Method and apparatus for data transmission, electronic device and computer readable storage medium | |
WO2023226717A1 (en) | File transmission method, file transmission apparatus, server and storage medium | |
CN105391620B (en) | Information cuing method and device | |
CN106888150B (en) | Instant message processing method and device | |
CN102780687A (en) | System and method for real-time transmission of multimedia messages | |
US20230132664A1 (en) | Visual interaction method and device | |
CN113473215B (en) | Screen recording method, device, terminal and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190412 |