Unlock instant, AI-driven research and patent intelligence for your innovation.

Windowless randomly-selectable file transmission method based on UDP protocol

A technology of random selection and file transmission, applied in the field of UDP transmission, it can solve the problems of incomplete files and waste of resources, and achieve the effect of improving transmission speed and reducing waste of resources.

Inactive Publication Date: 2020-12-11
浙江鸿城科技有限责任公司
View PDF7 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

User Datagram Protocol (UDP, User Datagram Protocol), also known as User Datagram Protocol, is a connectionless transport layer protocol in the OSI (Open Systems Interconnection) reference model, which can greatly provide network transmission Speed; but because the UDP protocol is not connection-oriented and out-of-order, it may not be received due to network packet loss and other reasons, resulting in incomplete files, so it is necessary to verify the file to ensure the integrity of the transmitted file; and multi-threaded repeated slices are repeated Sending file fragments also wastes resources

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Windowless randomly-selectable file transmission method based on UDP protocol
  • Windowless randomly-selectable file transmission method based on UDP protocol
  • Windowless randomly-selectable file transmission method based on UDP protocol

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] Embodiments of the present invention are described in further detail below in conjunction with the accompanying drawings:

[0042] Such as Figure 1-3 Shown, a kind of file transfer method based on UDP protocol windowless can be randomly selected, the method comprises the following steps:

[0043] Step S1, the server reads the file data, sends the file size information to the client, and the client establishes a corresponding buffer area to receive the file;

[0044] Step S2, the server divides the file into a corresponding number of data packets according to the number of transmission threads, and marks the data packets, and the server sends the data packets and the data packet annotation information to the client based on the UDP protocol multi-threaded simultaneously.

[0045] Further, the step S2 includes:

[0046] Step S2-1, the server side reads the file, enables multi-threading and numbers the threads;

[0047] Step S2-2, the thread reads the cutting file data...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A windowless randomly-selectable file transmission method based on a UDP protocol comprises the following steps that a server divides a file into a corresponding number of data packets according to the number of transmission threads, marks the data packets, and sends the data packets and data packet marking information to a client in a multi-thread mode based on the UDP protocol; the client receives the data packet and the data packet marking information, checks whether the data packet is an effective data packet or not, checks whether the data packet is a received data packet or not, checks in a file cache region and writes the data into a corresponding position; a timer is started, the client checks the receiving condition of the file cache region , counts the packet loss data position,and sends the packet loss data position to the server to request the corresponding data packet; and the server retrieves the corresponding data packet and the data packet marking information accordingto the request of the client side and sends the data packets and the data packet marking information to the client, verification is carried out in the file cache region to ensure the accuracy of filetransmission, and the file is divided into the corresponding number of data packets for transmission according to the number of transmission threads. The transmission speed is improved, and resourcewaste is reduced.

Description

technical field [0001] The invention relates to the technical field of UDP transmission, in particular to a file transmission method based on the UDP protocol, which is windowless and can be randomly selected. Background technique [0002] In file transfer, the sliding window protocol is usually used. The sliding window protocol needs to wait for the confirmation information of each data segment from the peer one by one. Before receiving the confirmation information, the window determines the maximum amount of data that the sender can send. The sliding window protocol must consider the problem of out-of-order data generated by multi-threading in multi-threaded programming. User Datagram Protocol (UDP, User Datagram Protocol), also known as User Datagram Protocol, is a connectionless transport layer protocol in the OSI (Open Systems Interconnection) reference model, which can greatly provide network transmission Speed; but because the UDP protocol is not connection-oriented ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/06H04L29/08G06F9/50G06F16/172
CPCH04L67/06H04L69/164G06F16/172G06F9/5027G06F2209/5018H04L67/568
Inventor 吴宗鸿
Owner 浙江鸿城科技有限责任公司