File transmission method and device for multi-level file exchange system

By using tree data model and topological encoding in a multi-level file exchange system, the problems of transmission path errors and inefficiency are solved, and more efficient file transfer is achieved.

CN118694760BActive Publication Date: 2024-12-06BEIJING TAIJI INFORMATION SYST TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411171254.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-12-06
Estimated Expiration
2044-08-26

AI Technical Summary

Technical Problem

In traditional multi-level file exchange systems, file transfer paths are prone to addressing errors, resulting in inefficiency and excessive resource consumption.

Method used

Using a tree data model, a unique encoding is generated for each node through topological encoding, a transmission path is determined, and a central node is set to improve file transfer efficiency and performance.

Benefits of technology

Quickly locate target nodes through topological encoding, reduce transmission delay and resource consumption, and improve file transfer efficiency and performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694760B_ABST
    Figure CN118694760B_ABST
Patent Text Reader

Abstract

The present invention proposes a file transmission method and device for a multi-level file exchange system, which relates to the technical field of network communication. A tree data model of a transmission network of a multi-level file of a file exchange system is constructed according to a tree topology structure; a unique topology code is generated for each node according to the position and level of each node in the tree data model; multiple central nodes are set according to the number and weight of each network node in the transmission network to serve as file receiving nodes in the transmission network, and the file receiving nodes are registered with the file exchange nodes in the tree data model; based on comparing the topology code of the target node to which the file needs to be transmitted with the topology code of the file exchange node, the node transmission path of the file in the tree data model is determined, and the file is transmitted to the target node based on the transmission path. Thus, based on the topology code of each node in the tree data model, the efficiency and performance of file transmission are improved, and transmission delay and resource consumption are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network communication technology, and in particular to a file transmission method and device for a multi-level file exchange system. Background Art

[0002] In traditional file exchange systems, files need to be transmitted and processed at multiple levels, so it is necessary to determine the correct path and address to ensure that the file can be quickly and accurately transmitted to the target location. In the related art, addressing and parsing are performed for each node and level in each transmission path to determine the specific address and identifier of each node. The transmission path is prone to addressing errors and the file transmission efficiency is low. Therefore, a more reliable file transmission method for a multi-level file exchange system is urgently needed. Summary of the invention

[0003] The present invention aims to solve one of the technical problems in the related art at least to a certain extent.

[0004] To this end, the first purpose of the present invention is to propose a file transmission method for a multi-level file exchange system, based on the topological coding of each node in a tree data model, to improve the efficiency and performance of file transmission and reduce transmission delay and resource consumption.

[0005] A second objective of the present invention is to provide a file transmission device for a multi-level file exchange system.

[0006] A third objective of the present invention is to provide an electronic device.

[0007] A fourth object of the present invention is to provide a non-transitory computer-readable storage medium storing computer instructions.

[0008] To achieve the above-mentioned purpose, a first embodiment of the present invention provides a file transmission method of a multi-level file exchange system, the method comprising:

[0009] A tree data model of a transmission network of a multi-level file of a file exchange system is constructed according to a tree topology structure, wherein the hierarchical relationship and connection mode between nodes in the tree data model are determined by network nodes of the transmission network;

[0010] Generate a unique topological code for each node based on its location and level;

[0011] According to the number and weight of each network node in the transmission network, a plurality of central nodes are set to serve as file receiving nodes in the transmission network, and the file receiving nodes are registered to the file exchange nodes in the tree data model;

[0012] Based on comparing the topological coding of the target node to which the file needs to be transmitted with the topological coding of the file exchange node, the node transmission path of the file in the tree data model is determined, and based on the transmission path, the file is transmitted to the target node.

[0013] To achieve the above-mentioned purpose, a second embodiment of the present invention provides a file transmission device of a multi-level file exchange system, the device comprising:

[0014] A construction module, used to construct a tree data model of a transmission network of a multi-level file of a file exchange system according to a tree topology structure, wherein the hierarchical relationship and connection mode between nodes in the tree data model are determined by network nodes of the transmission network;

[0015] A generation module is used to generate a unique topological code for each node according to the position and level of each node;

[0016] A registration module, used to set a plurality of central nodes according to the number and weight of each network node in the transmission network to serve as file receiving nodes in the transmission network, and register the file receiving nodes with the file exchange nodes in the tree data model;

[0017] The transmission module is used to determine the node transmission path of the file in the tree data model based on comparing the topological coding of the target node to which the file needs to be transmitted with the topological coding of the file exchange node, and transmit the file to the target node based on the transmission path.

[0018] To achieve the above-mentioned purpose, the third aspect of the present invention proposes an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in the first aspect.

[0019] In order to achieve the above-mentioned purpose, the fourth aspect of the present invention proposes a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are used to enable the computer to execute the method described in the first aspect.

[0020] The file transmission method, device, electronic device and storage medium of the multi-level file exchange system provided by the embodiment of the present invention construct a tree data model of the transmission network of the multi-level file of the file exchange system according to the tree topology structure; generate a unique topology code for each node according to the position and level of each node in the tree data model; set multiple central nodes according to the number and weight of each network node in the transmission network to serve as file receiving nodes in the transmission network, and register the file receiving nodes to the file exchange nodes in the tree data model; determine the node transmission path of the file in the tree data model based on the comparison of the topology code of the target node to which the file needs to be transmitted and the topology code of the file exchange node, and transmit the file to the target node based on the transmission path. Therefore, based on the topology code of each node in the tree data model, the efficiency and performance of file transmission are improved, and the transmission delay and resource consumption are reduced.

[0021] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0023] Figure 1 A schematic diagram of a flow chart of a file transmission method of a multi-level file exchange system provided by an embodiment of the present invention;

[0024] Figure 2 A structure and coding diagram of a tree data model provided by an embodiment of the present invention;

[0025] Figure 3 A schematic diagram of the structure of a file transmission device of a multi-level file exchange system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0026] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0027] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in the present invention are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions.

[0028] The following describes a file transmission method and device of a multi-level file exchange system according to an embodiment of the present invention with reference to the accompanying drawings.

[0029] Figure 1 The present invention provides a flowchart of a file transmission method of a multi-level file exchange system.

[0030] like Figure 1 As shown, the method comprises the following steps:

[0031] Step 101, constructing a tree data model of a transmission network of a multi-level file in a file exchange system according to a tree topology structure, wherein the hierarchical relationship and connection mode between nodes in the tree data model are determined by network nodes of the transmission network.

[0032] In some embodiments, a tree data model and the hierarchical relationship and connection mode between nodes in the tree data model may be constructed according to the hierarchical relationship and connection mode between network nodes of the transmission network.

[0033] Step 102: Generate a unique topology code for each node according to the position and level of each node.

[0034] In some embodiments, the encoding format of the topology encoding includes encoding length 22 character symbols.

[0035] Furthermore, the encoding format of the topological code encodes the first 19 bits, and each three bits represent a level number, wherein not all zeros in each level represent nodes at this level, and each level can identify up to 999 different nodes.

[0036] Furthermore, if the last two digits of the encoding format of the topological encoding are not 0, it indicates that the node at this level is the last node.

[0037] Therefore, by setting the unique topological coding of the nodes, the relevance and distinction between the nodes are ensured, and this topological coding method can occupy the least storage space and does not need to synchronize the transmission addresses of all topological files, thus achieving better benefits in storage space and topological space.

[0038] In addition, the topological coding in the tree data model is generated based on the position of the node in the tree or the relationship with the parent node. This coding method is relatively simple and intuitive, easy to implement and understand, and there will be no repeated node topological coding, thus avoiding confusion or ambiguity.

[0039] Step 103, multiple central nodes are set according to the number and weight of each network node in the transmission network to serve as file receiving nodes in the transmission network, and the file receiving nodes are registered with the file exchange nodes in the tree data model.

[0040] Optionally, the file receiving nodes are each responsible for some of the receivers in the network.

[0041] In some embodiments, when registering a file receiving node to a file exchange node in a tree data model, the priority of the file exchange node may also be set, thereby giving priority to processing files to be transmitted.

[0042] Step 104, based on comparing the topological code of the target node to which the file needs to be transmitted with the topological code of the file exchange node, determine the node transmission path of the file in the tree data model, and transmit the file to the target node based on the transmission path.

[0043] In some embodiments, the file exchange node in the tree topology structure can be quickly located using its topology coding. By comparing the topology coding of the target node with the topology coding of the current file exchange node, it can be determined whether to locate the target node upward or downward.

[0044] Furthermore, this embodiment also provides a tree data model structure and coding diagram, such as Figure 2 As shown, when the target node (A) is the last node, the upper-level node of the target node is found according to the topological coding of each node, and the topological coding information is sent to the upper-level node; when the target node (B) is an intermediate node, the topological coding of each node is used according to the string matching algorithm, and the topological coding information is sent to the next-level node if it matches. Therefore, using this topological coding system, a multi-level structural relationship of devices in a limited range is constructed, which can quickly describe the topological relationship of the transmission network and is easy to encode and parse in file transmission. It is a topological solution for restricted environments.

[0045] In addition, if Figure 2 As shown, the topological code: 001.000.000.000.000.00 indicates that it is the top-level node with a sequence number of 1; 001.001.000.000.000.00 indicates that it is a second-level node with a sequence number of 1, and its upper-level node is numbered 001.000.000.000.000.00; 001.001.001.000.000.00 indicates that it is a third-level node; 001.001.001.000.000.01 indicates that it is an end node at the third level with a sequence number of 1.

[0046] In summary, the file exchange node level and whether the file exchange node is the last node can be directly identified through topological coding. The last node can automatically address and find the sending route according to the topological coding of the target node, and can effectively determine whether the target node and the file exchange node belong to the same exchange domain. Therefore, by comparing the topological coding of the target node and the topological coding of the file exchange node, the transmission path of traversing the tree data model can be effectively determined, nodes of different levels in the tree data model can be processed, and fast navigation and retrieval between different levels can be supported, thereby improving retrieval efficiency.

[0047] The file transmission method of the multi-level file exchange system of the embodiment of the present invention constructs a tree data model of the transmission network of the multi-level file of the file exchange system according to the tree topology structure; generates a unique topology code for each node according to the position and level of each node in the tree data model; sets multiple central nodes according to the number and weight of each network node in the transmission network to serve as file receiving nodes in the transmission network, and registers the file receiving nodes to the file exchange nodes in the tree data model; determines the node transmission path of the file in the tree data model by comparing the topology code of the target node to which the file needs to be transmitted with the topology code of the file exchange node, and transmits the file to the target node based on the transmission path. Thus, based on the topology code of each node in the tree data model, the efficiency and performance of file transmission are improved, and transmission delay and resource consumption are reduced.

[0048] In order to implement the above embodiment, the present invention also provides a file transmission device for a multi-level file exchange system.

[0049] Figure 3 A schematic diagram of the structure of a file transmission device of a multi-level file exchange system provided by an embodiment of the present invention.

[0050] like Figure 3 As shown, the file transmission device 30 of the multi-level file exchange system includes: a construction module 31, a generation module 32, a registration module 33 and a transmission module 34.

[0051] A construction module 31 is used to construct a tree data model of a transmission network of a multi-level file of a file exchange system according to a tree topology structure, wherein the hierarchical relationship and connection mode between nodes in the tree data model are determined by network nodes of the transmission network;

[0052] A generating module 32, for generating a unique topological code for each node according to the position and level of each node;

[0053] A registration module 33, used to set a plurality of central nodes according to the number and weight of each network node in the transmission network to serve as file receiving nodes in the transmission network, and register the file receiving nodes with the file exchange nodes in the tree data model;

[0054] The transmission module 34 is used to determine the node transmission path of the file in the tree data model by comparing the topological coding of the target node to which the file needs to be transmitted with the topological coding of the file exchange node, and transmit the file to the target node based on the transmission path.

[0055] Furthermore, in a possible implementation manner of an embodiment of the present invention, the encoding format of the topology encoding includes an encoding length of 22 character symbols.

[0056] Furthermore, in a possible implementation method of an embodiment of the present invention, the first 19 bits are encoded in the encoding format of the topology code, and each three bits represent a level number, wherein not all zeros in each level represent nodes at this level, and each level can identify up to 999 different nodes.

[0057] Furthermore, in a possible implementation manner of the embodiment of the present invention, if the last two digits of the encoding format of the topology encoding are not 0, it indicates that the node at this level is the last node.

[0058] Furthermore, in a possible implementation of the embodiment of the present invention, the device further includes:

[0059] A first sending module is used to find the upper-level node of the target node according to the topological coding of each node when the target node is a last-level node, and send the topological coding information to the upper-level node;

[0060] The second sending module is used to send the topology coding information to the next level node according to the string matching algorithm based on the topology coding of each node when the target node is an intermediate node.

[0061] The file transmission device of the multi-level file exchange system of the embodiment of the present invention constructs a tree data model of the transmission network of the multi-level file of the file exchange system according to the tree topology structure; generates a unique topology code for each node according to the position and level of each node in the tree data model; sets multiple central nodes according to the number and weight of each network node in the transmission network to serve as file receiving nodes in the transmission network, and registers the file receiving nodes to the file exchange nodes in the tree data model; determines the node transmission path of the file in the tree data model by comparing the topology code of the target node to which the file needs to be transmitted with the topology code of the file exchange node, and transmits the file to the target node based on the transmission path. Thus, based on the topology code of each node in the tree data model, the efficiency and performance of file transmission are improved, and transmission delay and resource consumption are reduced.

[0062] In order to implement the above embodiment, the present invention further provides an electronic device, including:

[0063] at least one processor; and

[0064] a memory communicatively connected to the at least one processor; wherein,

[0065] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the aforementioned method.

[0066] In order to implement the above embodiment, the present invention further proposes a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are used to enable the computer to execute the above method.

[0067] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0068] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0069] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.

[0070] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0071] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0072] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0073] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0074] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

Claims

1. A file transmission method for a multi-level file exchange system, characterized in that: The method comprises: A tree data model of a transmission network of a multi-level file of a file exchange system is constructed according to a tree topology structure, wherein the hierarchical relationship and connection mode between nodes in the tree data model are determined by network nodes of the transmission network; Generate a unique topological code for each node based on its location and level; According to the number and weight of each network node in the transmission network, a plurality of central nodes are set to serve as file receiving nodes in the transmission network, and the file receiving nodes are registered with the file exchange nodes in the tree data model; Determine a node transmission path of the file in a tree data model by comparing the topological code of the target node to which the file is to be transmitted with the topological code of the file exchange node, and transmit the file to the target node based on the transmission path; The encoding format of the topological encoding includes a code length of 22 character symbols; The encoding format of the topology encoding encodes the first 19 bits, and each three bits represent a level number, wherein not all zeros in each level represent nodes at this level, and each level can identify up to 999 different nodes; If the last two digits of the encoding format of the topology encoding are not 0, it means that the node at this level is the last node; The method further comprises: When the target node is the last node, find the node of the previous level of the target node according to the topological code of each node, and send the topological code information to the node of the previous level; When the target node is an intermediate node, the topology coding of each node is used according to the string matching algorithm. If there is a match, the topology coding information is sent to the next level node.

2. A file transmission device for a multi-level file exchange system, characterized in that: The device comprises: A construction module, used to construct a tree data model of a transmission network of a multi-level file of a file exchange system according to a tree topology structure, wherein the hierarchical relationship and connection mode between nodes in the tree data model are determined by network nodes of the transmission network; A generation module is used to generate a unique topological code for each node according to the position and level of each node; A registration module, used to set a plurality of central nodes according to the number and weight of each network node in the transmission network to serve as file receiving nodes in the transmission network, and register the file receiving nodes with the file exchange nodes in the tree data model; A transmission module, configured to determine a node transmission path of the file in a tree data model by comparing a topological code of a target node to which the file is to be transmitted with a topological code of a file exchange node, and transmit the file to the target node based on the transmission path; The encoding format of the topological encoding includes a code length of 22 character symbols; The encoding format of the topology encoding encodes the first 19 bits, and each three bits represent a level number, wherein not all zeros in each level represent nodes at this level, and each level can identify up to 999 different nodes; If the last two digits of the encoding format of the topology encoding are not 0, it means that the node at this level is the last node; The device also includes: A first sending module is used to find the upper-level node of the target node according to the topological coding of each node when the target node is a last-level node, and send the topological coding information to the upper-level node; The second sending module is used to send the topology coding information to the next level node according to the string matching algorithm based on the topology coding of each node when the target node is an intermediate node.

3. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, wherein the instructions are executed by the at least one processor so as to enable the at least one processor to perform the method of claim 1 .

4. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to claim 1.

Citation Information

Patent Citations

  • Chip positioning method and debugging message transmission method in software debugging system

    CN111966595A

  • File transmission method based on link quality prediction and network coding

    CN116455894A