File distribution method and device, computer device and storage medium

A computer device and file storage technology, which is applied in the field of computer networks, can solve problems such as bandwidth consumption and traffic, and achieve the effect of saving bandwidth and traffic

Active Publication Date: 2022-04-01
SHENZHEN ONETHING TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The pressure on the first node to distribute the massive files to be distributed mainly comes from the fact that distributing the files to be distributed requires a large amount of bandwidth consumption of the first node and the bandwidth traffic between LANs in the cloud storage device group.

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 distribution method and device, computer device and storage medium
  • File distribution method and device, computer device and storage medium
  • File distribution method and device, computer device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0072] figure 1 It is a flow chart of the file distribution method provided by the embodiment of the present invention. The file distribution method is applied to a first node, and the first node is a server located in a cloud storage device group of a first local area network.

[0073] Referring to 1, the file distribution method specifically includes the following steps:

[0074] 101. Obtain the file to be distributed from the source site.

[0075] In a specific embodiment, said obtaining the file to be distributed from the source site includes:

[0076] Receiving a file storage request sent by the source station through HTTP (HyperText Transfer Protocol, Hypertext Transfer Protocol);

[0077] Establishing an HTTP connection with the source station in response to the file storage request;

[0078] The file to be distributed is received from the source site through the HTTP connection.

[0079] Specifically, after the source station generates the file to be distributed, ...

Embodiment 2

[0118] figure 2 A structural diagram of a preferred embodiment of a file distribution device provided in an embodiment of the present invention. The file distribution apparatus 10 is applied to a first node, and the first node is located in a first local area network.

[0119] Such as figure 2 As shown, the file distribution apparatus 10 may include: an acquiring unit 201 , a receiving unit 202 , a judging unit 203 , a first sending unit 204 , and a second sending unit 205 .

[0120] The obtaining unit 201 is configured to obtain the file to be distributed from the source site.

[0121] In a specific embodiment, said obtaining the file to be distributed from the source site includes:

[0122] Receiving a file storage request sent by the source station through HTTP (HyperText Transfer Protocol, Hypertext Transfer Protocol);

[0123] Establishing an HTTP connection with the source station in response to the file storage request;

[0124] The file to be distributed is rece...

Embodiment 3

[0164] This embodiment provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the steps in the above-mentioned file distribution method embodiment are implemented. The computer-readable storage medium applies For the first node, the first node is located in the first local area network, such as figure 1 101-105 shown:

[0165] 101. Obtain the file to be distributed from the source station;

[0166] 102. Receive a file request from a second node;

[0167] 103. Determine whether the second node is located in the first local area network according to the file request;

[0168] 104. If the second node is located in the first local area network, send the file to the second node using a local area network TCP transmission technology;

[0169] 105. If the second node is not located in the first local area network, send the file to the second node using a P2P tran...

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 present invention provides a method for distributing files, which is applied to a first node, and the first node is located in a first local area network. The method includes: obtaining a file to be distributed from a source station; receiving a file request from a second node; according to the file Request to judge whether the second node is located in the first local area network; if the second node is located in the first local area network, send the file to the second node by using TCP transmission technology of the local area network; if the second node is located in the first local area network If the node is not located in the first local area network, the file is sent to the second node using P2P transmission technology. The present invention also provides a file distribution device, a computer device and a computer-readable storage medium. The invention can distribute files between local area networks, saving the bandwidth flow of the first node and the bandwidth flow between the local area networks required for file distribution.

Description

technical field [0001] The present invention relates to the technical field of computer networks, in particular to a file distribution method and device, a computer device and a computer-readable storage medium. Background technique [0002] In order to ensure the security and reliability of the files to be distributed, the client or the cloud server needs to store the files to be distributed (such as video, audio, etc.) in a group of cloud storage devices. As a server in the cloud storage device group, the first node needs to distribute the file to be distributed to nodes in different local area networks in the cloud storage device group. With the exponential growth of the files to be distributed in the client or the cloud server, the pressure on the first node to distribute the massive files to be distributed increases accordingly. The distribution pressure of the first node on the massive files to be distributed mainly comes from the large consumption of bandwidth traffi...

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 Patents(China)
IPC IPC(8): H04L67/06H04L67/1074H04L67/02H04L69/163
CPCH04L67/06H04L67/1078H04L67/02H04L69/163
Inventor 邱志聪
Owner SHENZHEN ONETHING TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products