[go: up one dir, main page]

CN109688204B - File downloading method, node and terminal based on NDN (named data networking) - Google Patents

File downloading method, node and terminal based on NDN (named data networking) Download PDF

Info

Publication number
CN109688204B
CN109688204B CN201811481869.7A CN201811481869A CN109688204B CN 109688204 B CN109688204 B CN 109688204B CN 201811481869 A CN201811481869 A CN 201811481869A CN 109688204 B CN109688204 B CN 109688204B
Authority
CN
China
Prior art keywords
file
file fragment
ndn
information
ndn node
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.)
Active
Application number
CN201811481869.7A
Other languages
Chinese (zh)
Other versions
CN109688204A (en
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.)
Guoshujilian Shanghai Technology Co ltd
Original Assignee
Quantum Cloud Future Beijing 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 Quantum Cloud Future Beijing Information Technology Co ltd filed Critical Quantum Cloud Future Beijing Information Technology Co ltd
Priority to CN201811481869.7A priority Critical patent/CN109688204B/en
Publication of CN109688204A publication Critical patent/CN109688204A/en
Application granted granted Critical
Publication of CN109688204B publication Critical patent/CN109688204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a file downloading method, a node and a terminal based on an NDN (named data networking). The file downloading method belongs to the technical field of electronic communication. The file downloading method comprises the steps that a first NDN node receives a file fragment downloading request from a second NDN node or a requester terminal, wherein the file fragment downloading request comprises a file fragment identifier; when the first NDN node stores the file fragment corresponding to the file fragment identifier, the first NDN node sends the file fragment corresponding to the file fragment identifier to the second NDN node or the requester terminal; and when the first NDN node does not store the file fragment corresponding to the file fragment identifier, the first NDN node sends the file fragment downloading request to a third NDN node or a file server. The embodiment of the invention has the advantage of relieving the service pressure of the file server.

Description

File downloading method, node and terminal based on NDN (named data networking)
Technical Field
The embodiment of the invention relates to the technical field of electronic communication, in particular to a file downloading method, a node and a terminal based on an NDN (named data network).
Background
In the prior art, when a file is downloaded, a connection is generally established with a server first, the file is downloaded from the server, and the intermediate network device only forwards a network message of the downloaded file, that is, all downloading needs to be performed by a centralized server to provide a downloading service.
The downloading mode in the prior art brings great service pressure to the centralized server. Especially for downloading very large files, the requirements on the centralized server are high.
Named Data Networking (NDN) provides a Data-based architecture, with Data as an entity in the network and a "name" as the unique identifier for the Data. NDN defines two formats of data, one for sending requests, which may be referred to as "Interest packets"; the other is data containing content, which may be referred to as a "data packet". Data in each format uses a name as a unique identifier, for example: the name of the interest packet is used for uniquely identifying the request of the interest packet for acquiring the content, and the name of the data packet is used for uniquely identifying the content loaded by the data packet.
Disclosure of Invention
Therefore, embodiments of the present invention provide a file downloading method, apparatus, node, terminal and storage medium based on an NDN network, so as to solve the problem in the prior art that server pressure is large because each downloading requires access to a centralized server.
In order to achieve the above object, an embodiment of the present invention provides the following:
in a first aspect of embodiments of the present invention, a file downloading method based on an NDN network is provided, including: the method comprises the steps that a first NDN node receives a file fragment downloading request from a second NDN node or a requester terminal, wherein the file fragment downloading request comprises a file fragment identifier; when the first NDN node stores the file fragment corresponding to the file fragment identifier, the first NDN node sends the file fragment corresponding to the file fragment identifier to the second NDN node or the requester terminal; when the first NDN node does not store the file fragment corresponding to the file fragment identifier, the first NDN node sends the file fragment downloading request to a third NDN node or a file server; when the first NDN node receives the file fragment downloading request from the second NDN node, the file fragment downloading request is information received by the second NDN node from the requester terminal, and the second NDN node does not store the file fragment corresponding to the file fragment identifier.
In an embodiment of the present invention, when the first NDN node does not store the file fragment corresponding to the file fragment identifier, after the first NDN node sends the file fragment identifier to a third NDN node or a file server, the file downloading method further includes: the first NDN node receives a file fragment corresponding to the file fragment identifier from the third NDN node or the file server; and the first NDN node sends the file fragment corresponding to the file fragment identifier to the second NDN node or the requester terminal.
In another embodiment of the present invention, the file fragment identifier is information received by the requester terminal from the file server; and the file fragment corresponding to the file fragment identification is the file fragment obtained by the file server fragment processing.
In a second aspect of embodiments of the present invention, there is provided a file downloading method based on an NDN network, including: a requester terminal sends a file fragment downloading request to a first NDN node or a second NDN node, wherein the file fragment downloading request comprises a file fragment identifier; when the requester terminal sends a file fragment downloading request to a second NDN node and when the second NDN node does not store a file fragment corresponding to the file fragment identifier, the second NDN node is used for sending the file fragment downloading request to a first NDN node; when the first NDN node stores the file fragment corresponding to the file fragment identifier, the requester terminal receives the file fragment corresponding to the file fragment identifier from the first NDN node; and when the first NDN node does not store the file fragment corresponding to the file fragment identifier, the first NDN node is used for sending the file fragment downloading request to a third NDN node or a file server.
In an embodiment of the present invention, when the first NDN node does not store a file fragment corresponding to the file fragment identifier, and the requester terminal sends a file fragment download request to the first NDN node, the requester terminal receives the file fragment corresponding to the file identifier from the first NDN node, where the file fragment corresponding to the file identifier is information received by the first NDN node from the third NDN node or the file server; when the first NDN node does not store the file fragment corresponding to the file fragment identifier, the requester terminal sends a file fragment downloading request to a second NDN node, and the second NDN node does not store the file fragment corresponding to the file fragment identifier, the requester terminal receives the file fragment corresponding to the file identifier from the second NDN node, and the file fragment corresponding to the file identifier is the information which is received by the first NDN node from the third NDN node or the file server and is forwarded to the second NDN node by the first NDN node.
In a third aspect of embodiments of the present invention, there is provided a file downloading apparatus based on an NDN network, including: a first receiving unit, configured to receive a file fragment downloading request from a second NDN node or a requester terminal, where the file fragment downloading request includes a file fragment identifier; a first sending unit, configured to send, to the second NDN node or the requester terminal, a file fragment corresponding to the file fragment identifier when the first NDN node stores the file fragment corresponding to the file fragment identifier; the first sending unit is further configured to send the file fragment downloading request to a third NDN node or a file server when the first NDN node does not store the file fragment corresponding to the file fragment identifier; when the first receiving unit receives the file fragment downloading request from the second NDN node, the file fragment downloading request is information received by the second NDN node from the requester terminal, and the second NDN node does not store the file fragment corresponding to the file fragment identifier.
In a fourth aspect of embodiments of the present invention, there is provided a file downloading apparatus based on an NDN network, including: a second sending unit, configured to send a file fragment downloading request to the first NDN node or the second NDN node, where the file fragment downloading request includes a file fragment identifier; when the second sending unit sends a file fragment downloading request to a second NDN node and when the second NDN node does not store a file fragment corresponding to the file fragment identifier, the second NDN node is configured to send the file fragment downloading request to a first NDN node; a second receiving unit, configured to receive, from the first NDN node, a file fragment corresponding to the file fragment identifier when the first NDN node stores the file fragment corresponding to the file fragment identifier; and when the first NDN node does not store the file fragment corresponding to the file fragment identifier, the first NDN node is used for sending the file fragment downloading request to a third NDN node or a file server.
In a fifth aspect of an embodiment of the present invention, there is provided an NDN node comprising a first processor and a first memory; wherein the first memory stores code; the first processor executes the code for performing the file download method of the first aspect.
In a sixth aspect of embodiments of the present invention, there is provided a terminal comprising a second processor and a second memory; wherein the second memory stores code; the second processor executes the code for performing the file download method of the second aspect.
In a seventh aspect of embodiments of the present invention, there is provided a computer-readable storage medium storing a program, the program including instructions that, when executed by a computer, cause the computer to perform the file download method of the first aspect or the file download method of the second aspect.
According to the embodiment of the present invention, the NDN network-based downloading method, apparatus, node, terminal, and storage medium provided in the embodiments of the present invention have the following advantages: the file fragments are tried to be downloaded from one NDN node, and when the NDN node does not store the file fragments, the file fragments are tried to be downloaded from other NDN nodes, so that the file server does not need to process each downloading, and the service pressure of the file server is relieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It should be apparent that the drawings in the following description are merely exemplary, and that other embodiments can be derived from the drawings provided by those of ordinary skill in the art without inventive effort.
Fig. 1 is a flowchart of a file downloading method based on an NDN network according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a file downloading device based on an NDN network according to another embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a file downloading device based on an NDN network according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of an NDN node according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to another embodiment of the present invention.
In the figure: 21. the device comprises a first receiving unit, 22, a first sending unit, 31, a second sending unit, 32, a second receiving unit, 41, a first processor, 42, a first memory, 51, a second processor and 52, and a second memory.
Detailed Description
The present invention is described in terms of particular embodiments, other advantages and features of the invention will become apparent to those skilled in the art from the following disclosure, and it is to be understood that the described embodiments are merely exemplary of the invention and that it is not intended to limit the invention to the particular embodiments disclosed. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The NDN network-based file downloading method provided by the embodiment of the invention is applicable to a framework comprising a plurality of NDN nodes, and at least one node in the plurality of NDN nodes can be a file server. One or more of the plurality of NDN nodes may be a requester terminal. The requester terminal is a terminal used by the user to download the file.
The following specifically describes the embodiments of the present invention.
Example 1
The embodiment provides a file downloading method based on an NDN (named data networking), and the execution main body of the method is an NDN node in the NDN. Referring to fig. 1, the file downloading method includes the following steps.
Step 11, the first NDN node receives a file fragment downloading request from the second NDN node or the requester terminal, where the file fragment downloading request includes a file fragment identifier.
A file fragment download request comprises a file fragment identifier, which is used to identify a file fragment, i.e. a file fragment download request is used to request to download a file fragment.
The file fragment identification is information received by the requester terminal from the file server; and the file fragment corresponding to the file fragment identification is the file fragment obtained by the file server fragment processing.
The file server can fragment and encrypt the issued file. The fragmentation processing may perform fragmentation according to a preset fragmentation algorithm, where the preset algorithm may be a fragmentation algorithm in the prior art, for example, a 100MB file may be divided into 10 file fragments, and each file fragment is 10 MB. The file server generates a unique file identifier in the whole NDN for each file fragment.
The file server may send the name of the file (the name of a file is unique throughout the NDN network to identify a unique file) and/or the file fragment identification to the requestor terminal. When the file server only sends the name of the file to the requester terminal, the requester terminal may request the file server for the file fragment identifier of the file fragment corresponding to the file according to the name of the file.
Specifically, the file server may send interest package request information, which includes information of the file, subscriber identification. The subscriber identification may identify the corresponding subscriber as a requestor requesting to download the file. The interest package request information is information sent by the file server and used for requesting the subscriber to send the interest package. The information of the file may include a name of the file and/or a file fragment identification of a file fragment of the file.
The subscriber identification is a unique identification code in the NDN network for uniquely identifying the subscriber.
Before sending the interest package request information, the file server acquires the information of the file and the subscriber information; and generating the subscriber identification according to the information of the file and the subscriber information. In this example, one or some subscribers subscribe to content of some aspect, and when publishing a file, the file server obtains information of the published file and information of the subscribers, so that the subscribers who subscribe to the file, or subscribers who are interested in the file, can be obtained, and further, the subscribers of the subscribers can be identified.
The generating of the subscriber identity according to the information of the file and the subscriber information comprises generating the subscriber identity according to the information of the file, the subscriber information and reference information, wherein the reference information comprises publisher information and/or random values; the information of the file may further include any one or more of: file name, md5 value, storage path, URL, publisher, time of publication of the file. The file name, md5 value, storage path, URL, publisher, publication time, etc. of the file may be used to determine the published file.
After the interest packet request information is transmitted, transmitting the interest packet request information when acknowledgement information is not received within a preset time after the interest packet request information is transmitted. In this example, when the terminal of the subscriber receives the interest package request information, the terminal feeds back confirmation information to the file server to indicate that the interest package request information is received. If the file server does not receive the confirmation information within the preset time, the subscriber can be considered to not receive the interest package request information, the interest package request information fails to be sent, and then the interest package request information is sent again. The preset time may be a time preset by a manager, or a time set by the file server according to an evaluation result to evaluate the NDN network status. The evaluation of the NDN network condition may also refer to a network evaluation method in the prior art, which is not described herein again.
When the file information in the interest package request information includes only the name of the file, after the interest package request information is sent, the file server may receive an interest package from a terminal used by a subscriber, where the interest package is information sent by the subscriber corresponding to the subscriber identifier according to the information of the file. The interest package is used for requesting a file fragment identifier of a file fragment corresponding to the name of the file.
That is, in the present embodiment, the interest packet is not transmitted when the interest packet request information is not received, and the interest packet is transmitted only when the interest packet request information is received.
The interest package request message includes the subscriber identity, so the interest package request message is forwarded to the terminal used by the subscriber in the NDN network.
And after receiving the interest package, the file server sends a data package to the subscriber, wherein the data package comprises a file fragment identifier.
After a subscriber acquires all file fragment identifiers of a file, if the subscriber wants to download the file, the subscriber can send a file fragment downloading request to the NDN node, wherein the file fragment downloading request comprises the file fragment identifiers. In this case, the subscriber may be a requester, and a terminal used by the subscriber is referred to as a requester terminal.
When a file is requested to be downloaded, a requester terminal needs to send a file fragment download request of all file fragments of the file to an NDN node in an NDN network.
The requester terminal may send a file fragment download request for all file fragments of the file to one NDN node.
The requester terminal may also send file fragment download requests for all file fragments of the file to different NDN nodes, and the number of file fragment download requests received by one NDN node is not limited. For example, a file has 10 file fragments, and accordingly 10 file fragment download requests need to be sent, and the requester terminal may send 10 file fragment download requests to 10 NDN nodes, that is, each NDN node receives 1 file fragment download request. For another example, a file has 10 file fragments, and correspondingly 10 file fragment download requests need to be sent, and the requester terminal may send the 10 file fragment download requests to 5 NDN nodes, that is, each NDN node receives 2 file fragment download requests. For another example, a file has 10 file fragments, and correspondingly 10 file fragment download requests need to be sent, and the requester terminal may send the 10 file fragment download requests to 5 NDN nodes, where one NDN node receives 6 file fragment download requests, and the other four NDN nodes respectively receive one file fragment download request.
Step 12, when the first NDN node stores the file fragment corresponding to the file fragment identifier, the first NDN node sends the file fragment corresponding to the file fragment identifier to the second NDN node or the requester terminal; and when the first NDN node does not store the file fragment corresponding to the file fragment identifier, the first NDN node sends the file fragment downloading request to a third NDN node or a file server.
When the first NDN node receives the file fragment downloading request from the second NDN node, the file fragment downloading request is information received by the second NDN node from the requester terminal, and the second NDN node does not store the file fragment corresponding to the file fragment identifier.
When the first NDN node does not store the file fragment corresponding to the file fragment identifier, after the first NDN node sends the file fragment identifier to a third NDN node or a file server, the file downloading method further includes: the first NDN node receives a file fragment corresponding to the file fragment identifier from the third NDN node or the file server; and the first NDN node sends the file fragment corresponding to the file fragment identifier to the second NDN node or the requester terminal.
For example, if the second NDN node receives a file fragment download request from the requester terminal, and searches whether the file fragment is cached according to a file fragment identifier therein, if the file fragment is cached, the file fragment is sent to the requester terminal, and if the file fragment is not cached, the file fragment download request is forwarded to other NDN nodes, and if the file fragment download request is forwarded to the first NDN node, the first NDN node repeats the operation of the second NDN node, and if the first NDN node does not cache the secondary file fragment, the first NDN node forwards the file fragment download request to a third NDN node or a file server.
When the first NDN node forwards the file fragment download request to the file server, the file server necessarily contains all file fragments of a file issued by the file server, so the file server can respond to the file fragment download request forwarded by the first NDN node and send the corresponding file fragments to the first NDN node (the first NDN node is a file fragment requester of the file server), after obtaining the file fragments, the first NDN node sends the file fragments to the second NDN node (the second NDN node is a file fragment requester of the first NDN node) (each NDN node can record who has requested what file fragments from itself), and the second NDN node sends the file fragments to a requester terminal.
When the first NDN node forwards the file fragment download request to a third NDN node, the third NDN node repeats the operations of the first node. When requesting a file fragment, the transmission path of the file fragment is also as described above.
All NDN nodes on the transmission path of the file fragment cache the file fragment, and when the requester terminal requests the file fragment from any NDN node, the NDN node can directly respond to the requester terminal and send the file fragment to the requester terminal.
It should be noted that, in this embodiment, the file cache is a file storage method.
The downloading method based on the NDN network provided by the embodiment of the invention has the following advantages: the file fragments are tried to be downloaded from one NDN node, and when the NDN node does not store the file fragments, the file fragments are tried to be downloaded from other NDN nodes, so that the file server does not need to process each downloading, and the service pressure of the file server is relieved.
Example 2
The embodiment provides a file downloading method based on an NDN (named data networking), and the execution main body of the file downloading method is a requester terminal. The file downloading method comprises the following steps: a requester terminal sends a file fragment downloading request to a first NDN node or a second NDN node, wherein the file fragment downloading request comprises a file fragment identifier; when the requester terminal sends a file fragment downloading request to a second NDN node and when the second NDN node does not store a file fragment corresponding to the file fragment identifier, the second NDN node is used for sending the file fragment downloading request to a first NDN node; when the first NDN node stores the file fragment corresponding to the file fragment identifier, the requester terminal receives the file fragment corresponding to the file fragment identifier from the first NDN node; and when the first NDN node does not store the file fragment corresponding to the file fragment identifier, the first NDN node is used for sending the file fragment downloading request to a third NDN node or a file server.
In an example, when the first NDN node does not store a file fragment corresponding to the file fragment identifier and the requester terminal sends a file fragment download request to the first NDN node, the requester terminal receives the file fragment corresponding to the file identifier from the first NDN node, where the file fragment corresponding to the file identifier is information received by the first NDN node from the third NDN node or the file server; when the first NDN node does not store the file fragment corresponding to the file fragment identifier, the requester terminal sends a file fragment downloading request to a second NDN node, and the second NDN node does not store the file fragment corresponding to the file fragment identifier, the requester terminal receives the file fragment corresponding to the file identifier from the second NDN node, and the file fragment corresponding to the file identifier is the information which is received by the first NDN node from the third NDN node or the file server and is forwarded to the second NDN node by the first NDN node.
The file downloading method provided in this embodiment may be implemented by referring to the content described in embodiment 1, and details are not described here.
The file downloading method based on the NDN network provided by the embodiment has the following advantages: the file fragments are tried to be downloaded from one NDN node, and when the NDN node does not store the file fragments, the file fragments are tried to be downloaded from other NDN nodes, so that the file server does not need to process each downloading, and the service pressure of the file server is relieved.
Example 3
The present embodiment provides a file downloading device based on an NDN network, as shown in fig. 2, including:
a first receiving unit 21, configured to receive a file fragment downloading request from a second NDN node or a requester terminal, where the file fragment downloading request includes a file fragment identifier;
a first sending unit 22, configured to send, to the second NDN node or the requester terminal, a file fragment corresponding to the file fragment identifier when the first NDN node stores the file fragment corresponding to the file fragment identifier;
the first sending unit 22 is further configured to send the file fragment downloading request to a third NDN node or a file server when the first NDN node does not store the file fragment corresponding to the file fragment identifier;
when the first receiving unit 21 receives the file fragment downloading request from the second NDN node, the file fragment downloading request is information received by the second NDN node from the requester terminal, and the second NDN node does not store the file fragment corresponding to the file fragment identifier.
The functions of each functional unit of the file downloading device based on the NDN network provided in this embodiment may be implemented by referring to the contents described in embodiment 1, and are not described herein again.
The file downloading device based on the NDN network provided by this embodiment has the following advantages: the file fragments are tried to be downloaded from one NDN node, and when the NDN node does not store the file fragments, the file fragments are tried to be downloaded from other NDN nodes, so that the file server does not need to process each downloading, and the service pressure of the file server is relieved.
Example 4
The present embodiment provides a file downloading device based on an NDN network, as shown in fig. 3, including:
a second sending unit 31, configured to send a file fragment downloading request to the first NDN node or the second NDN node, where the file fragment downloading request includes a file fragment identifier;
when the second sending unit 31 sends a file fragment downloading request to a second NDN node, and when the second NDN node does not store a file fragment corresponding to the file fragment identifier, the second NDN node is configured to send the file fragment downloading request to a first NDN node;
a second receiving unit 32, configured to receive, from the first NDN node, a file fragment corresponding to the file fragment identifier when the first NDN node stores the file fragment corresponding to the file fragment identifier;
and when the first NDN node does not store the file fragment corresponding to the file fragment identifier, the first NDN node is used for sending the file fragment downloading request to a third NDN node or a file server.
The functions of each functional unit of the file downloading device based on the NDN network provided in this embodiment may be implemented by referring to the contents described in embodiment 1 and embodiment 2, which are not described herein again.
The file downloading device based on the NDN network provided by this embodiment has the following advantages: the file fragments are tried to be downloaded from one NDN node, and when the NDN node does not store the file fragments, the file fragments are tried to be downloaded from other NDN nodes, so that the file server does not need to process each downloading, and the service pressure of the file server is relieved.
Example 5
The present embodiment provides an NDN node, as shown in fig. 4, including a first processor 41 and a first memory 42; wherein,
the first memory 42 stores code;
the first processor 41 executes the codes for performing the file download method described in embodiment 1.
The NDN node provided by this embodiment has the following advantages: the file fragments are tried to be downloaded from one NDN node, and when the NDN node does not store the file fragments, the file fragments are tried to be downloaded from other NDN nodes, so that the file server does not need to process each downloading, and the service pressure of the file server is relieved.
Example 6
The present embodiment provides a terminal, as shown in fig. 5, including a second processor 51 and a second memory 52; wherein,
the second memory 52 stores code;
the second processor 51 executes the codes for performing the file download method described in embodiment 1.
The terminal provided by the embodiment has the following advantages: the file fragments are tried to be downloaded from one NDN node, and when the NDN node does not store the file fragments, the file fragments are tried to be downloaded from other NDN nodes, so that the file server does not need to process each downloading, and the service pressure of the file server is relieved.
Example 7
The present embodiment provides a computer-readable storage medium storing a program including instructions that, when executed by a computer, cause the computer to execute the file download method described in embodiment 1 or the file download method described in embodiment 2.
The computer-readable storage medium storing the program provided by the present embodiment has the following advantages: the file fragments are tried to be downloaded from one NDN node, and when the NDN node does not store the file fragments, the file fragments are tried to be downloaded from other NDN nodes, so that the file server does not need to process each downloading, and the service pressure of the file server is relieved.
Although the invention has been described in detail above with reference to a general description and specific examples, it will be apparent to one skilled in the art that modifications or improvements may be made thereto based on the invention. Accordingly, such modifications and improvements are intended to be within the scope of the invention as claimed.

Claims (7)

1. A file downloading method based on an NDN (named data networking) network is characterized by comprising the following steps:
the method comprises the steps that a first NDN node receives a file fragment downloading request from a second NDN node or a requester terminal, wherein the file fragment downloading request comprises a file fragment identifier;
a file fragment downloading request comprises a file fragment identifier, and one file fragment identifier is used for identifying one file fragment, namely one file fragment downloading request is used for requesting to download one file fragment;
the file fragment identification is information received by the requester terminal from a file server; the file fragment corresponding to the file fragment identification is a file fragment obtained by file server fragment processing;
the file server sends the name of the file and/or the file fragment identifier to the requester terminal, and when the file server only sends the name of the file to the requester terminal, the requester terminal can request the file fragment identifier of the file fragment corresponding to the file from the file server according to the name of the file;
before sending interest package request information, a file server acquires information of the file and subscriber information; generating the subscriber identification according to the information of the file and the subscriber information; generating a subscriber identity according to the information of the file and the subscriber information comprises generating the subscriber identity according to the information of the file, the subscriber information and reference information, wherein the reference information comprises publisher information and/or random values;
after the interest packet request information is transmitted, transmitting the interest packet request information when acknowledgement information is not received within a preset time after the interest packet request information is transmitted; when the file information in the interest package request information only comprises the name of a file, after the interest package request information is sent, the file server receives an interest package from a terminal used by a subscriber, wherein the interest package is information sent by the subscriber corresponding to the subscriber identification according to the information of the file, and the interest package is used for requesting the file fragment identification of the file fragment corresponding to the name of the file;
when the first NDN node stores the file fragment corresponding to the file fragment identifier, the first NDN node sends the file fragment corresponding to the file fragment identifier to the second NDN node or the requester terminal;
when the first NDN node does not store the file fragment corresponding to the file fragment identifier, the first NDN node sends the file fragment downloading request to a third NDN node or a file server;
when the first NDN node receives the file fragment downloading request from the second NDN node, the file fragment downloading request is information received by the second NDN node from the requester terminal, and the second NDN node does not store the file fragment corresponding to the file fragment identifier.
2. The method of claim 1, wherein when the first NDN node does not store a file fragment corresponding to the file fragment identifier, after the first NDN node sends the file fragment identifier to a third NDN node or a file server, the method further comprises:
the first NDN node receives a file fragment corresponding to the file fragment identifier from the third NDN node or the file server;
and the first NDN node sends the file fragment corresponding to the file fragment identifier to the second NDN node or the requester terminal.
3. A file downloading method based on an NDN (named data networking) network is characterized by comprising the following steps:
a requester terminal sends a file fragment downloading request to a first NDN node or a second NDN node, wherein the file fragment downloading request comprises a file fragment identifier;
a file fragment downloading request comprises a file fragment identifier, and one file fragment identifier is used for identifying one file fragment, namely one file fragment downloading request is used for requesting to download one file fragment;
the file fragment identification is information received by the requester terminal from a file server; the file fragment corresponding to the file fragment identification is a file fragment obtained by file server fragment processing;
the file server sends the name of the file and/or the file fragment identifier to the requester terminal, and when the file server only sends the name of the file to the requester terminal, the requester terminal can request the file fragment identifier of the file fragment corresponding to the file from the file server according to the name of the file;
before sending interest package request information, a file server acquires information of the file and subscriber information; generating the subscriber identification according to the information of the file and the subscriber information; generating a subscriber identity according to the information of the file and the subscriber information comprises generating the subscriber identity according to the information of the file, the subscriber information and reference information, wherein the reference information comprises publisher information and/or random values;
after the interest packet request information is transmitted, transmitting the interest packet request information when acknowledgement information is not received within a preset time after the interest packet request information is transmitted; when the file information in the interest package request information only comprises the name of a file, after the interest package request information is sent, the file server receives an interest package from a terminal used by a subscriber, wherein the interest package is information sent by the subscriber corresponding to the subscriber identification according to the information of the file, and the interest package is used for requesting the file fragment identification of the file fragment corresponding to the name of the file;
when the requester terminal sends a file fragment downloading request to a second NDN node and when the second NDN node does not store a file fragment corresponding to the file fragment identifier, the second NDN node is used for sending the file fragment downloading request to a first NDN node;
when the first NDN node stores the file fragment corresponding to the file fragment identifier, the requester terminal receives the file fragment corresponding to the file fragment identifier from the first NDN node;
and when the first NDN node does not store the file fragment corresponding to the file fragment identifier, the first NDN node is used for sending the file fragment downloading request to a third NDN node or a file server.
4. The method according to claim 3, wherein when the first NDN node does not store the file fragment corresponding to the file fragment identifier and the requester terminal sends a file fragment download request to the first NDN node, the requester terminal receives the file fragment corresponding to the file identifier from the first NDN node, where the file fragment corresponding to the file identifier is information received by the first NDN node from the third NDN node or the file server;
when the first NDN node does not store the file fragment corresponding to the file fragment identifier, the requester terminal sends a file fragment downloading request to a second NDN node, and the second NDN node does not store the file fragment corresponding to the file fragment identifier, the requester terminal receives the file fragment corresponding to the file identifier from the second NDN node, and the file fragment corresponding to the file identifier is the information which is received by the first NDN node from the third NDN node or the file server and is forwarded to the second NDN node by the first NDN node.
5. An NDN node, comprising a first processor and a first memory; wherein,
the first memory stores code;
the first processor executes the code for performing the file download method of any of claims 1-2.
6. A terminal comprising a second processor and a second memory; wherein,
the second memory stores code;
the second processor executes the code for performing the file download method of any one of claims 3-4.
7. A computer-readable storage medium storing a program, the program comprising instructions that, when executed by a computer, cause the computer to perform the file download method of any one of claims 1 to 2 or the file download method of any one of claims 3 to 4.
CN201811481869.7A 2018-12-05 2018-12-05 File downloading method, node and terminal based on NDN (named data networking) Active CN109688204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811481869.7A CN109688204B (en) 2018-12-05 2018-12-05 File downloading method, node and terminal based on NDN (named data networking)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811481869.7A CN109688204B (en) 2018-12-05 2018-12-05 File downloading method, node and terminal based on NDN (named data networking)

Publications (2)

Publication Number Publication Date
CN109688204A CN109688204A (en) 2019-04-26
CN109688204B true CN109688204B (en) 2022-01-04

Family

ID=66186463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811481869.7A Active CN109688204B (en) 2018-12-05 2018-12-05 File downloading method, node and terminal based on NDN (named data networking)

Country Status (1)

Country Link
CN (1) CN109688204B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822270B (en) * 2021-01-07 2022-12-23 广州虎牙科技有限公司 Network system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626397A (en) * 2008-07-11 2010-01-13 宝利微电子系统控股公司 System for downloading files based on Bittorrent protocol
CN103248695A (en) * 2013-05-07 2013-08-14 北京奇虎科技有限公司 File downloading method and system and server node in CDN
CN103780482A (en) * 2012-10-22 2014-05-07 华为技术有限公司 Content obtaining method and user equipment and cache node
EP2894870A1 (en) * 2014-01-10 2015-07-15 Thomson Licensing Method for downloading, at a client terminal, an upcoming sequence of segments of a multimedia content, and corresponding terminal
CN106331117A (en) * 2016-08-26 2017-01-11 中国科学技术大学 A method of data transmission
CN106993054A (en) * 2017-05-05 2017-07-28 腾讯科技(深圳)有限公司 Document distribution method, node and system
CN107277092A (en) * 2016-04-08 2017-10-20 北京优朋普乐科技有限公司 Content distributing network and its data download method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626397A (en) * 2008-07-11 2010-01-13 宝利微电子系统控股公司 System for downloading files based on Bittorrent protocol
CN103780482A (en) * 2012-10-22 2014-05-07 华为技术有限公司 Content obtaining method and user equipment and cache node
CN103248695A (en) * 2013-05-07 2013-08-14 北京奇虎科技有限公司 File downloading method and system and server node in CDN
EP2894870A1 (en) * 2014-01-10 2015-07-15 Thomson Licensing Method for downloading, at a client terminal, an upcoming sequence of segments of a multimedia content, and corresponding terminal
CN107277092A (en) * 2016-04-08 2017-10-20 北京优朋普乐科技有限公司 Content distributing network and its data download method
CN106331117A (en) * 2016-08-26 2017-01-11 中国科学技术大学 A method of data transmission
CN106993054A (en) * 2017-05-05 2017-07-28 腾讯科技(深圳)有限公司 Document distribution method, node and system

Also Published As

Publication number Publication date
CN109688204A (en) 2019-04-26

Similar Documents

Publication Publication Date Title
US8719332B2 (en) Method and system for content categorization
US20190222656A1 (en) Communication Method and Apparatus
CN113452780B (en) Access request processing method, device, equipment and medium for client
CN108494755B (en) Method and device for transmitting Application Programming Interface (API) request
JP5416135B2 (en) Method, apparatus and system for realizing fingerprint technology
CN109688204B (en) File downloading method, node and terminal based on NDN (named data networking)
US20150095496A1 (en) System, method and medium for information processing
CN113315689B (en) Information processing method, system, electronic device and readable storage medium
CN111064729B (en) Message processing method and device, storage medium and electronic device
US6263001B1 (en) Packet data communication protocol with reduced acknowledgements in a client/server computing system
CN113254203B (en) Service degradation processing method and device
CN114189384B (en) Service processing method, device, equipment and storage medium
CN114363902B (en) 5G private network service security assurance method, device, equipment and storage medium
CN113596105B (en) Content acquisition method, edge node and computer readable storage medium
CN113553206B (en) Data event execution method and device, electronic equipment and computer readable medium
CN110865845B (en) Method for improving interface access efficiency and storage medium
CN111404979B (en) Method and device for processing service request and computer readable storage medium
CN113691614B (en) Information processing method and device
CN115665042B (en) Data processing method, device, user plane functional entity and storage medium
CN110855785B (en) Data processing method and device
CN109587225A (en) Information push method, device, server, network node based on NDN network
US7904506B2 (en) Context information management system
CN118364016A (en) Interface caching method and device
CN118301133A (en) Real-time communication method, device, equipment and readable storage medium
CN108769106A (en) Using the acquisition methods of packet name, the transmission method and terminal device of data packet

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230506

Address after: 230071 Comprehensive Building 3-2985, No. 55 Science Avenue, High tech Zone, Shushan District, Hefei City, Anhui Province

Patentee after: Hefei Kelast Network Technology Co.,Ltd.

Address before: 100021 6235, 6th floor, jinyayuan crossing building, YunhuiLi, Haidian District, Beijing

Patentee before: QUANTUM CLOUD FUTURE (BEIJING) INFORMATION TECHNOLOGY CO.,LTD.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231117

Address after: 201208, Zone C, 3rd Floor, No. 5, Lane 255, Dongyu Road, China (Shanghai) Pilot Free Trade Zone, Pudong New Area, Shanghai

Patentee after: Guoshujilian (Shanghai) Technology Co.,Ltd.

Address before: 230071 Comprehensive Building 3-2985, No. 55 Science Avenue, High tech Zone, Shushan District, Hefei City, Anhui Province

Patentee before: Hefei Kelast Network Technology Co.,Ltd.

TR01 Transfer of patent right