CN117560368B - File transmission method and system based on multistage node network - Google Patents

File transmission method and system based on multistage node network Download PDF

Info

Publication number
CN117560368B
CN117560368B CN202410028939.2A CN202410028939A CN117560368B CN 117560368 B CN117560368 B CN 117560368B CN 202410028939 A CN202410028939 A CN 202410028939A CN 117560368 B CN117560368 B CN 117560368B
Authority
CN
China
Prior art keywords
node
file
stored
transmission chain
transmission
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
CN202410028939.2A
Other languages
Chinese (zh)
Other versions
CN117560368A (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.)
Beijing Huayuan Information Technology Co Ltd
Original Assignee
Beijing Huayuan 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 Beijing Huayuan Information Technology Co Ltd filed Critical Beijing Huayuan Information Technology Co Ltd
Priority to CN202410028939.2A priority Critical patent/CN117560368B/en
Publication of CN117560368A publication Critical patent/CN117560368A/en
Application granted granted Critical
Publication of CN117560368B publication Critical patent/CN117560368B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Abstract

The embodiment of the disclosure provides a file transmission method and a system based on a multi-level node network, which are applied to the technical field of data transmission. The method comprises the steps that a source node receives a file to be stored sent by a sending end and a transmission chain corresponding to the source node, and a corresponding multi-stage node network is determined according to the transmission chain; transmitting the file to be stored and a transmission chain corresponding to a current node of a multi-level node network to the current node; the current node receives a file to be stored sent by the source node and a transmission chain corresponding to the current node; if the existence of the lower node is determined according to the transmission chain corresponding to the current node, the received file to be stored and the transmission chain corresponding to the lower node are sent to the lower node; and if the lower node does not exist, the file to be stored is stored as the target node. In this way, the integrity of the file as it is transferred across nodes can be ensured.

Description

File transmission method and system based on multistage node network
Technical Field
The disclosure relates to the technical field of data transmission, in particular to a file transmission method and system based on a multi-level node network.
Background
Currently, there are two modes of file transfer systems for transferring files: the transmission mode of single-node transmission and multi-node transmission is suitable for transmitting files when the number of files is small, and the transmission mode of multi-node transmission is suitable for transmitting files when the number of files is large. However, in the prior art, when the file is transmitted by adopting the multi-node transmission mode, since direct communication cannot be performed between the source node and the destination node, communication needs to be performed by means of an intermediate node, but the integrity of the transmission data needs to be processed due to the intervention of the intermediate node.
Disclosure of Invention
The disclosure provides a file transmission method and system based on a multi-level node network.
According to a first aspect of the present disclosure, a method for file transfer based on a multi-level node network is provided. The method comprises the following steps:
the method comprises the steps that a source node receives a file to be stored sent by a sending end and a transmission chain corresponding to the source node, and a corresponding multi-stage node network is determined according to the transmission chain; transmitting the file to be stored through the multi-level node network;
wherein transmitting the file to be stored through the multi-level node network comprises: transmitting the file to be stored and a transmission chain corresponding to a current node of a multi-level node network to the current node;
the current node receives a file to be stored sent by the source node and a transmission chain corresponding to the current node; if the existence of the lower node is determined according to the transmission chain corresponding to the current node, the received file to be stored and the transmission chain corresponding to the lower node are sent to the lower node; and if the lower node does not exist, the file to be stored is stored as the target node.
Aspects and any one of the possible implementations as described above, further provides an implementation,
the transmission chain consists of route information of each subordinate node of the current node in the transmission path;
the transmission path is composed of all nodes passing between the source node and the destination node in order.
Aspects and any one of the possible implementations as described above, further provides an implementation,
the transmission chain corresponding to the current node comprises the route information of the current node;
the determining that the lower node exists according to the transmission chain corresponding to the current node comprises the following steps:
and determining whether a subordinate node exists according to the route information of the current node included in the transmission chain corresponding to the current node.
Aspects and any one of the possible implementations as described above, further provides an implementation,
the step of sending the received file to be stored and the transmission chain corresponding to the subordinate node comprises the following steps:
the current node deletes the self-routing information from the corresponding transmission chain to obtain the transmission chain corresponding to the lower node;
and determining the routing information of the lower node according to the transmission chain corresponding to the lower node, and sending the received file to be stored and the transmission chain corresponding to the lower node.
Aspects and any one of the possible implementations as described above, further provides an implementation,
the file to be stored further includes a corresponding storage number, and the storing the file to be stored includes:
carrying out file integrity check on the file to be stored according to the storage number and file check information received in advance;
and determining whether to store the file to be stored according to the integrity check result.
Aspects and any one of the possible implementations as described above, further provides an implementation,
the file verification information consists of a file size and a file number corresponding to the clip file;
the file size corresponds to the file number;
the fragment file is obtained by segmenting the file to be stored according to a preset segmentation size;
and the file number is obtained by sequencing and numbering the fragment files.
Aspects and any one of the possible implementations as described above, further provides an implementation,
the source node may receive a plurality of files to be stored simultaneously, and each file to be stored may correspond to a plurality of transmission chains.
According to a second aspect of the present disclosure, a file transfer system based on a multi-level node network is provided. The system comprises a transmitting end, a source node and a multi-level node network;
the transmitting end is used for transmitting the file to be stored and a transmission chain corresponding to the source node;
the source node is used for receiving the file to be stored sent by the sending end and a transmission chain corresponding to the source node, and determining a corresponding multi-stage node network according to the transmission chain;
the multi-stage node network is used for sending the file to be stored to a destination node according to a corresponding transmission chain, wherein the multi-stage node network comprises multi-stage nodes, and the multi-stage nodes communicate with each other in the following manner:
the current node receives a file to be stored sent by the source node and a transmission chain corresponding to the current node; if the existence of the lower node is determined according to the transmission chain corresponding to the current node, the received file to be stored and the transmission chain corresponding to the lower node are sent to the lower node; and if the lower node does not exist, the file to be stored is stored as the target node.
According to a third aspect of the present disclosure, an electronic device is provided. The electronic device includes: a memory and a processor, the memory having stored thereon a computer program, the processor implementing the method as described above when executing the program.
According to a fourth aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor implements a method according to the first aspect of the present disclosure.
The file transmission method and system based on the multi-level node network, provided by the embodiment of the disclosure, realize cross-node file transmission and file integrity verification through the multi-level node network, and ensure the file transmission integrity.
It should be understood that what is described in this summary is not intended to limit the critical or essential features of the embodiments of the disclosure nor to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The above and other features, advantages and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. For a better understanding of the present disclosure, and without limiting the disclosure thereto, the same or similar reference numerals denote the same or similar elements, wherein:
FIG. 1 illustrates a flow chart of a method of file transfer based on a multi-level node network in accordance with an embodiment of the present disclosure;
FIG. 2 illustrates a partial schematic diagram of a manager, source node, and multi-level node network, according to an embodiment of the present disclosure;
FIG. 3 illustrates a block diagram of a multi-level node network based file transfer system in accordance with an embodiment of the present disclosure;
fig. 4 illustrates a block diagram of an exemplary electronic device capable of implementing embodiments of the present disclosure.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are some embodiments of the present disclosure, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments in this disclosure without inventive faculty, are intended to be within the scope of this disclosure.
In addition, the term "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
In the present disclosure, under the condition that the multi-level nodes are connected, the download file is uploaded to the target node, and the start and suspension of the uploading task are supported and the integrity of the file is ensured.
Fig. 1 illustrates a flow chart of a multi-level node network based file transfer method 100 according to an embodiment of the present disclosure. The method 100 comprises the following steps:
step 110, a source node receives a file to be stored sent by a sending end and a transmission chain corresponding to the source node, and a corresponding multi-stage node network is determined according to the transmission chain; and transmitting the file to be stored through the multi-level node network.
In some embodiments, the sending end may be an administrator admin, and is responsible for receiving a file transmission instruction of a user, and establishing a file transmission task according to the file transmission instruction of the user. As shown in fig. 2, each agent represents a node, such as agent0 (source node), agent2, agent3, agent5, agent6 … …, each node joins his superordinate node to the current tree through tcp, admin is the manager, and all nodes can be managed. Wherein, the routing information corresponding to each of agent0, agent2, agent3, agent5, and agent6 is: 6464491017, 6445aa7cd3, 94f738f409, 583fhs4h4h, gjdet6ud3h. Suppose that it is now ready to upload a file a (user's file transfer instruction) to agent 3. Then a task needs to be established for this file transfer by the administrator admin, and a task id is allocated, so that when the source node receives multiple files to be stored (for example, file a, file B, file C, etc.) at the same time, even when, for example, file a is transferred to agent3 and agent5, that is, each file to be stored may correspond to multiple transfer chains, that is, each destination node to which each file to be stored needs to be transferred may have multiple destination links, each file transfer task may be accurately completed according to the corresponding relationship between the task id and the transfer chains. For example, the transmission chain for transmitting the file a to the agent3 is made up of the respective route information of all nodes passing between the transmission paths (from the source node to the destination node) of the agent0-agent2-agent3, and the transmission chain corresponding to the source node is: 6464491017-6445aa7cd3-94f738f409. And the state of the task is specified by the manager admin: start, in progress, pause, failure, success, etc., before starting transmission, the task state is designated as start, and agent3 is notified, agent3 also creates a task, and the task state is designated as start.
In some embodiments, forwarding through multiple nodes is required, so that file integrity is guaranteed in order to support file verification, and operations such as suspending and continuing file transfer tasks are also required for specific reasons. Therefore, before the file transmission work starts, admin obtains the size of the file by reading the file information of the file to be transmitted, segments the file to be transmitted according to the preset segment size to obtain segment files, sequences and numbers the segment files to obtain file numbers, and the file size of each segment of the segment files form file verification information, and the file verification information and the corresponding task id are sent to a destination node along with the first transmission of the file to be transmitted, so that the destination node can conveniently store the file verification information and then finish the file integrity verification work. For example, the file a is segmented into a clip file 1, a clip file 2, a clip file 3, and a clip file 4, and the file numbers and the file sizes respectively corresponding to the clip files are: 1-X1,2-X2,3-X3,4-X4. The file verification information may be sent to the destination node before the file starts to be transmitted.
In some embodiments, the source node receives the file to be transmitted (e.g., clip files 1-4) sent by the sender, and the transmission chain 6464491017-6445aa7cd3-94f738f409 corresponding to the source node. After deleting own routing information from the transmission chain, the source node finds that the transmission chain has the routing information and determines that the source node is not the destination node, and then forwards the received file to be transmitted and the transmission chain deleted with the own routing information to the multi-stage node network, and the multi-stage node network completes the transmission of the file. The transmission chain is: 6445aa7cd3-94f738f409. The source node extracts the routing information in the transmission chain 6445aa7cd3-94f738f 409: 6445aa7cd3, and completing the forwarding of the file to be transmitted and the modified transmission chain according to the extracted routing information.
The multi-level node network includes multi-level nodes, and the multi-level nodes communicate through the following step 120:
step 120, the current node receives the file to be stored sent by the source node and the transmission chain corresponding to the current node; if the existence of the lower node is determined according to the transmission chain corresponding to the current node, the received file to be stored and the transmission chain corresponding to the lower node are sent to the lower node; and if the lower node does not exist, the file to be stored is stored as the target node.
In some embodiments, a current node (e.g., agent 2) receives a file to be stored sent by a source node and a transmission chain corresponding to the current node: 6445aa7cd3-94f738f409, after deleting the own routing information from the transmission chain, finding that the transmission chain has the routing information 94f738f409, and determining that the transmission chain is not the destination node, then forwarding the received file to be transmitted and the transmission chain with the own routing information deleted to the subordinate node. And the subordinate node receives the file to be stored sent by the current node and a transmission chain corresponding to the subordinate node to further determine whether the file is a destination node or not, if not, further forwarding is performed, and therefore, the file to be stored is sent to the destination node.
In some embodiments, if the current node deletes the own routing information from the transmission chain and finds that there is no routing information, then it can determine that the current node is the destination node, then acquire corresponding file verification information according to the file number of the file to be stored, verify the integrity of the file, if it finds that the file size of a certain segment file is inconsistent with the file verification information, it indicates that the segment file has a problem of deletion in the transmission process, at this time, the segment file is not stored, but the file number of the segment file with the deletion is returned to admin, the admin determines that the corresponding segment file is further transmitted after determining that the corresponding segment file is further transmitted according to the received file number until the source node returns to the file number to be empty, then the whole file transmission task is deemed to be completed, the state of the task is modified to be finished, and the destination node is notified of modifying the task state. If a certain clip file is checked to be correct, the clip file is stored to a corresponding position according to the file number. Therefore, smooth progress of file verification work in cross-node transmission of files when a plurality of nodes exist is supported, the integrity of the files is ensured, and the defect of file deletion caused by file transmission in a streaming mode is overcome. For example, agent3 receives clip files 1-4, corresponding file sizes are: x1 ', X2', X3 ', X4', then, will: when X1 ', X2 ', X3 ', and X4 ' are compared with X1, X2, X3, and X4, respectively, and X3 ' is found to be less than X3, then agent3 needs to return file number 3 to agent2 at the previous level, and does not store clip file 3, and if a plurality of file transfer tasks are performed, it is also necessary to transmit together with task ids. So that the last node agent2 of the agent3 returns the information to the last node of the agent2, and the information is transferred layer by layer until the information is transferred to the admin. It should be noted that, when the destination node performs the file integrity check, there may be more than one missing segment file, that is, a plurality of missing segment files, which is not limited by the above example. Such a miss may be that the corresponding clip file is not received at all, i.e., the corresponding file size is 0, or the file size is smaller than the corresponding file size in the file verification information, etc.
Based on the foregoing embodiment, the method of still another embodiment provided in the present disclosure further includes: pausing and resuming file transfer tasks.
In some embodiments, it is also desirable to pause and continue file transfers for specific reasons. For example, when the manager needs to pause a certain file transfer task first, admin will send a message to the destination node, inform of pause, and stop sending, and set the task state to the pause state. The target node also enters a verification step after receiving the message, checks the currently received clip file, saves the file numbers which are not received and are unqualified in verification, does not inform admin, and records the state as pause.
In some embodiments, when the manager needs to resume the resume transmission of a suspended file transfer task, the admin sends a message to the destination node informing the destination node of the resume, and the destination node sends the file number that is not transmitted to the admin to enter "admin start sending" to start to resume execution of the task. Therefore, the flexible control and switching of the state of the file transmission task can be realized.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present disclosure is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present disclosure. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all alternative embodiments, and that the acts and modules referred to are not necessarily required by the present disclosure.
The foregoing is a description of method embodiments, and the following further describes the aspects of the disclosure with reference to system embodiments.
Fig. 3 illustrates a block diagram of a multi-level node network based file transfer system 300 in accordance with an embodiment of the present disclosure. As shown in fig. 3, the system 300 includes:
the system includes a sender 310, a source node 320, and a multi-level node network 330;
the transmitting end 310 is configured to transmit a file to be stored and a transmission chain corresponding to the source node 320;
the source node 320 is configured to receive a file to be stored sent by the sending end 310 and a transmission chain corresponding to the source node 320, and determine a corresponding multi-level node network 330 according to the transmission chain;
the multi-level node network 330 is configured to send the file to be stored to a destination node according to a corresponding transmission chain, where the multi-level node network 330 includes multi-level nodes, and the multi-level nodes communicate with each other by:
the current node receives a file to be stored sent by the source node and a transmission chain corresponding to the current node; if the existence of the lower node is determined according to the transmission chain corresponding to the current node, the received file to be stored and the transmission chain corresponding to the lower node are sent to the lower node; and if the lower node does not exist, the file to be stored is stored as the target node.
It will be clear to those skilled in the art that, for convenience and brevity of description, reference may be made to the corresponding process in the foregoing method embodiment for the specific working process of the described system, which is not described herein again.
According to an embodiment of the disclosure, the disclosure further provides an electronic device, a readable storage medium.
Fig. 4 shows a schematic block diagram of an electronic device 400 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
The electronic device 400 includes a computing unit 401 that can perform various suitable actions and processes according to a computer program stored in a ROM402 or a computer program loaded from a storage unit 408 into a RAM 403. In the RAM403, various programs and data required for the operation of the electronic device 400 may also be stored. The computing unit 401, ROM402, and RAM403 are connected to each other by a bus 404. An I/O interface 405 is also connected to bus 404.
Various components in electronic device 400 are connected to I/O interface 405, including: an input unit 406 such as a keyboard, a mouse, etc.; an output unit 407 such as various types of displays, speakers, and the like; a storage unit 408, such as a magnetic disk, optical disk, etc.; and a communication unit 409 such as a network card, modem, wireless communication transceiver, etc. The communication unit 409 allows the electronic device 400 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The computing unit 401 may be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 401 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 401 performs the respective methods and processes described above, for example, a file transfer method based on a multi-level node network. For example, in some embodiments, the multi-level node network based file transfer method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 408. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 400 via the ROM402 and/or the communication unit 409. When the computer program is loaded into RAM403 and executed by computing unit 401, one or more steps of the above-described multi-level node network based file transfer method may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the multi-level node network based file transfer method in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed aspects are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (7)

1. A method for file transfer based on a multi-level node network, comprising:
the method comprises the steps that a source node receives a file to be stored sent by a sending end and a transmission chain corresponding to the source node, and a corresponding multi-stage node network is determined according to the transmission chain; transmitting the file to be stored through the multi-level node network; the transmission chain consists of route information of each subordinate node of the current node in the transmission path; the transmission path is composed of all nodes passing between the source node and the destination node in sequence; under the condition that each file to be stored corresponds to a plurality of transmission chains, namely a plurality of destination nodes needing to be transmitted of each file to be stored, according to the corresponding relation between the task id and the transmission chains, each file transmission task is completed;
wherein transmitting the file to be stored through the multi-level node network comprises: transmitting the file to be stored and a transmission chain corresponding to a current node of a multi-level node network to the current node;
the current node receives a file to be stored sent by the source node and a transmission chain corresponding to the current node; if the existence of the lower node is determined according to the transmission chain corresponding to the current node, the received file to be stored and the transmission chain corresponding to the lower node are sent to the lower node; if the lower node does not exist, the file to be stored is stored as a target node; the transmission chain corresponding to the current node comprises the route information of the current node; the determining that the lower node exists according to the transmission chain corresponding to the current node comprises the following steps: determining whether a subordinate node exists according to the route information of the current node included in the transmission chain corresponding to the current node; the step of sending the received file to be stored and the transmission chain corresponding to the subordinate node comprises the following steps: the current node deletes the self-routing information from the corresponding transmission chain to obtain the transmission chain corresponding to the lower node; and determining the routing information of the lower node according to the transmission chain corresponding to the lower node, and sending the received file to be stored and the transmission chain corresponding to the lower node.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the file to be stored further includes a corresponding storage number, and the storing the file to be stored includes:
carrying out file integrity check on the file to be stored according to the storage number and file check information received in advance;
and determining whether to store the file to be stored according to the integrity check result.
3. The method of claim 2, wherein the step of determining the position of the substrate comprises,
the file verification information consists of a file size and a file number corresponding to the clip file;
the file size corresponds to the file number;
the fragment file is obtained by segmenting the file to be stored according to a preset segmentation size;
and the file number is obtained by sequencing and numbering the fragment files.
4. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the source node may receive a plurality of files to be stored simultaneously, and each file to be stored may correspond to a plurality of transmission chains.
5. A file transmission system based on a multi-level node network is characterized in that,
the system comprises a transmitting end, a source node and a multi-level node network;
the transmitting end is used for transmitting the file to be stored and a transmission chain corresponding to the source node;
the source node is used for receiving the file to be stored sent by the sending end and a transmission chain corresponding to the source node, and determining a corresponding multi-stage node network according to the transmission chain; the transmission chain consists of route information of each subordinate node of the current node in the transmission path; the transmission path is composed of all nodes passing between the source node and the destination node in sequence; under the condition that each file to be stored corresponds to a plurality of transmission chains, namely a plurality of destination nodes needing to be transmitted of each file to be stored, according to the corresponding relation between the task id and the transmission chains, each file transmission task is completed;
the multi-stage node network is used for sending the file to be stored to a destination node according to a corresponding transmission chain, wherein the multi-stage node network comprises multi-stage nodes, and the multi-stage nodes communicate with each other in the following manner:
the current node receives a file to be stored sent by the source node and a transmission chain corresponding to the current node; if the existence of the lower node is determined according to the transmission chain corresponding to the current node, the received file to be stored and the transmission chain corresponding to the lower node are sent to the lower node; if the lower node does not exist, the file to be stored is stored as a target node; the transmission chain corresponding to the current node comprises the route information of the current node; the determining that the lower node exists according to the transmission chain corresponding to the current node comprises the following steps: determining whether a subordinate node exists according to the route information of the current node included in the transmission chain corresponding to the current node; the step of sending the received file to be stored and the transmission chain corresponding to the subordinate node comprises the following steps: the current node deletes the self-routing information from the corresponding transmission chain to obtain the transmission chain corresponding to the lower node; and determining the routing information of the lower node according to the transmission chain corresponding to the lower node, and sending the received file to be stored and the transmission chain corresponding to the lower node.
6. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4.
7. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-4.
CN202410028939.2A 2024-01-09 2024-01-09 File transmission method and system based on multistage node network Active CN117560368B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410028939.2A CN117560368B (en) 2024-01-09 2024-01-09 File transmission method and system based on multistage node network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410028939.2A CN117560368B (en) 2024-01-09 2024-01-09 File transmission method and system based on multistage node network

Publications (2)

Publication Number Publication Date
CN117560368A CN117560368A (en) 2024-02-13
CN117560368B true CN117560368B (en) 2024-04-12

Family

ID=89821885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410028939.2A Active CN117560368B (en) 2024-01-09 2024-01-09 File transmission method and system based on multistage node network

Country Status (1)

Country Link
CN (1) CN117560368B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5142531A (en) * 1989-05-18 1992-08-25 British Telecommunications Public Limited Company Data communications network
CN115941596A (en) * 2022-11-10 2023-04-07 东莞市速控达新能源照明有限公司 Multi-stage wireless routing addressing algorithm
CN116347557A (en) * 2023-01-31 2023-06-27 航天科工空间工程网络技术发展(杭州)有限公司 Low orbit satellite network routing method, control device and computer readable storage medium
CN116471283A (en) * 2023-06-20 2023-07-21 北京中宏立达科技发展有限公司 File transmission method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092719B (en) * 2013-12-17 2015-10-07 深圳市腾讯计算机系统有限公司 Document transmission method, device and distributed cluster file system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5142531A (en) * 1989-05-18 1992-08-25 British Telecommunications Public Limited Company Data communications network
CN115941596A (en) * 2022-11-10 2023-04-07 东莞市速控达新能源照明有限公司 Multi-stage wireless routing addressing algorithm
CN116347557A (en) * 2023-01-31 2023-06-27 航天科工空间工程网络技术发展(杭州)有限公司 Low orbit satellite network routing method, control device and computer readable storage medium
CN116471283A (en) * 2023-06-20 2023-07-21 北京中宏立达科技发展有限公司 File transmission method

Also Published As

Publication number Publication date
CN117560368A (en) 2024-02-13

Similar Documents

Publication Publication Date Title
CN105471760A (en) Routing method, load balancing device and data communication system
US11314545B2 (en) Predicting transaction outcome based on artifacts in a transaction processing environment
US10986188B2 (en) Handling multi-pipe connections
CN113961510B (en) File processing method, device, equipment and storage medium
CN112540805B (en) Integrated item packaging method, integrated item packaging device, integrated item packaging apparatus, integrated item packaging device, integrated item packaging storage medium, and integrated item packaging program product
CN117560368B (en) File transmission method and system based on multistage node network
CN115514718B (en) Data interaction method, control layer and equipment based on data transmission system
CN114327819B (en) Task management method, device, equipment and storage medium
CN113541987A (en) Method and device for updating configuration data
CN113703946B (en) Application recovery method and device, electronic equipment and computer readable storage medium
CN113641688B (en) Node updating method, related device and computer program product
CN113742075B (en) Task processing method, device and system based on cloud distributed system
CN104426704A (en) Integration network device and service integration method thereof
CN116418600B (en) Node security operation and maintenance method, device, equipment and storage medium
CN117917882A (en) Message processing method, device, equipment and computer readable storage medium
CN111258954B (en) Data migration method, device, equipment and storage medium
CN116627933A (en) Mirror image warehouse migration method and device
CN108769098B (en) Method, device and system for establishing network connection of distributed storage system
CN113612848B (en) Internet of things data receiving method, internet of things platform and Internet of things system
CN114579520B (en) Mirror image data processing method, mirror image data loading method and device
CN115118654B (en) Data forwarding method, system, device and program product under virtual network
CN113032512B (en) Road network data updating method, device, equipment, storage medium and product
CN117424899A (en) Method, device, equipment and storage medium for offline multi-level nodes
CN116319615A (en) Interaction method and device based on JSbridge, electronic equipment and storage medium
CN117240596A (en) Identity authentication method, device and equipment for adding new node into multi-stage node

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