File transferring method and apparatus

A transmission method and file transmission technology, applied in electrical components, network traffic/resource management, wireless communication, etc., can solve the problems of high failure rate of file transmission and insufficient utilization of network resources, and achieve the effect of improving the success rate and efficiency

Active Publication Date: 2014-12-03
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a file transmission method, which aims to solve the problems of high file transmission failure rate and insufficient network resource utilization existing in the existing file transmission method

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
  • File transferring method and apparatus
  • File transferring method and apparatus
  • File transferring method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] figure 1 The implementation process of the file transmission method provided by the embodiment of the present invention is shown, and the details are as follows:

[0028] S101. Detect the network type connected to the mobile terminal.

[0029] The types of networks that the mobile terminal can connect to include but are not limited to Wi-Fi networks, mobile networks, and the like. The mobile network includes but not limited to the second generation mobile communication network (Second Generation, 2G), the general packet radio network (General Packet Radio Service, GPRS), the third generation mobile communication network (Third-generation, 3G) and so on.

[0030] When the mobile terminal needs to perform file transfer, the type of the network to which the mobile terminal is currently connected is detected.

[0031] S102. Determine the size of each subsequent data segment according to the network type and the transmission status of the previously transmitted data segmen...

Embodiment 2

[0048] figure 2 The specific process of determining the size of the first data fragment as the first initial value or the second initial value provided by the embodiment of the present invention is shown, and the details are as follows:

[0049] S201, judging whether the type of network connected to the mobile terminal is a Wi-Fi network, if yes, skip to S202, otherwise, skip to S203.

[0050] S202, the size S of the first data fragment 1 determined as the first initial value.

[0051] S203, the size S of the first data fragment 1 determined as the second initial value.

[0052] S204, judging whether the total size of the files to be transferred is less than the small data transfer threshold, if yes, jump to S205, otherwise the size of the first data fragment is S 1 Make sure the process is over.

[0053] S205, when the network type is a Wi-Fi network, adjust the size of the first data fragment to the product of the first initial value and the small data growth multiple,...

Embodiment 3

[0056] image 3 The specific process of determining the size of the first data fragment as the first initial value or the second initial value provided by another embodiment of the present invention is shown, and the details are as follows:

[0057] S301, judging whether the type of network connected to the mobile terminal is a Wi-Fi network, if yes, jump to S302, otherwise, jump to S303.

[0058] S302, the size S of the first data fragment 1 determined as the first initial value.

[0059] S303, the size S of the first data fragment 1 determined as the second initial value.

[0060] S304, judging whether the total size of the files to be transferred is smaller than the small data transmission threshold, if yes, jump to S305, otherwise, jump to S306.

[0061] S305, when the network type is a Wi-Fi network, adjust the size of the first data fragment to the product of the first initial value and the small data growth multiple, and when the network type is other networks, adju...

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

The invention belongs to information processing field and provides a file transferring method and apparatus. The method comprises steps of: detecting the type of a network connected with a mobile terminal; and determining the size of each posterior data fragment according to the type of the network and a transferring state of the data fragments transferred ahead, and performing fragment transfer on a file to be transferred according to the size of each data fragment. The file transferring method and apparatus may dynamically adjust the size of each data fragment in a file transferring process according to the type of the network connected with the mobile terminal in order that file transfer may adapt to networks with different types, performs file transfer by fully utilizing the resources of the networks with different types, and improves the success rate and efficiency of file transfer.

Description

technical field [0001] The invention belongs to the field of information processing, in particular to a file transmission method and device. Background technique [0002] With the application of intelligent operating systems in mobile terminals, mobile terminals can provide users with more and more functional applications, bringing great convenience to users' work and life. For example, the application of file transfer through mobile terminals has become more and more extensive. [0003] In the prior art, there are two ways to transfer files through mobile terminals. One is not to fragment the file to be transferred, but to encapsulate the entire file to be transferred into an upper-layer data packet for transmission. When the file is large, the file transmission failure rate is high, and the resulting transmission cost and retransmission cost are relatively high. The other is to divide the file to be transferred into data fragments of a fixed size, and encapsulate each da...

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
IPC IPC(8): H04W28/16
Inventor廖海珍廖志
OwnerTENCENT TECH (SHENZHEN) CO LTD