Method and System for Supporting Hybrid Layout

By adopting a hybrid layout method in a distributed file system and using static and dynamic layout tables, the problem of low file storage and access efficiency in airborne scenarios is solved, the certainty and flexibility of file access are achieved, and the high reliability of the system is improved.

CN114443607BActive Publication Date: 2025-05-30XIAN AVIATION COMPUTING TECH RES INST OF AVIATION IND CORP OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111636649.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2025-05-30
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

The existing distributed file system cannot effectively ensure the certainty of storage, access and maintenance of application files of different security levels in airborne scenarios, resulting in low file storage or reading efficiency.

Method used

Using a method that supports hybrid layout, static layout tables and dynamic layout tables are created through the interaction of multiple file servers and file information servers to achieve deterministic and flexible access to files.

Benefits of technology

In complex airborne scenarios, this method ensures the certainty and flexibility of file access through static and dynamic layout strategies, solves the problem of inconsistency between file information server metadata and file server files, and improves the high reliability of the distributed file system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114443607B_ABST
    Figure CN114443607B_ABST
Patent Text Reader

Abstract

The method for supporting hybrid layout of the present invention belongs to the technical field of computer system software, and relates to a method for implementing an airborne distributed file system that supports hybrid layout. On the basis of existing technologies, a method for implementing an airborne distributed file system that supports hybrid layout is proposed. When determining the distribution of file copies, the file information server supports both static file layout strategies and dynamic file layout strategies. Static file layout ensures the certainty of file access through static layout files, and dynamic file layout ensures the flexibility of file access through dynamically generated layout files.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of network communication technologies, and particularly relates to a method and system for supporting hybrid layout. Background Art

[0002] The diversity, complexity, and collaboration of aviation missions result in a large amount of business data generated by avionics systems. The new generation of distributed avionics systems adopts the design concepts of distribution, integration, and modularization. Existing commercial distributed file systems cannot ensure the certainty of file storage, access, and maintenance for applications with different security levels in the airborne scenario, so an improved solution is proposed. Summary of the Invention

[0003] The purpose of the present invention is to provide a method for supporting hybrid layout, so as to solve the technical problem that the existing methods have low efficiency in file storage or reading. The technical solutions of this case have many technical beneficial effects, as introduced below:

[0004] Provide a method for supporting hybrid layout, which is applicable to the storage of airborne files. Multiple file servers are used to store files. Multiple file servers interact with a file information server, and each file server interacts with a client. The method includes:

[0005] Obtain the names of each file stored in multiple file servers in the current time period, and create a static layout table in the file information server. The static layout table stores the names of all files, that is, the first name;

[0006] The file information server stores a static layout table and a dynamic layout table;

[0007] Obtain multiple files and file names newly added by multiple clients, and determine whether the newly added multiple file names are the same as some names of the first name. If so, feedback the address information of the files stored in the static layout table. If not, the newly added multiple files are randomly allocated and stored in one or more of the multiple file servers through the file information server, and the names of the newly added multiple files are stored in the dynamic layout table to form a second name;

[0008] Obtain a restart signal of the file information server, and store the second name in the static layout table.

[0009] Compared with the prior art, the technical solutions provided by the present invention include the following beneficial effects:

[0010] In the method provided in this case, when the file information server determines the distribution of file copies, it supports both the static file layout strategy and the dynamic file layout strategy. The static file layout ensures the certainty of file access through the static layout file, and the dynamic file layout ensures the flexibility of file access through the dynamically generated layout file. Brief Description of the Drawings

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0012] Figure 1 It is a framework schematic diagram of the method of the present invention;

[0013] Figure 2 It is a schematic diagram of file deletion for the method of the present invention. Detailed Embodiments

[0014] The following uses specific specific examples to illustrate the embodiments of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. The present invention can also be implemented or applied through other different specific embodiments. The details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, without conflict, the following embodiments and the features in the embodiments can be combined with each other. Based on the embodiments in the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.

[0015] It should be noted that the following describes various aspects of the embodiments within the scope of the appended claims. It should be obvious that the aspects described herein can be embodied in a wide variety of forms, and any specific structure and / or function described herein is illustrative only. Based on the present invention, those skilled in the art should understand that one aspect described herein can be implemented independently of any other aspect, and these aspects can be combined in various ways in two or more of them. For example, any number of aspects described herein can be used to implement the device and / or practice the method. In addition, this device and / or this method can be implemented using other structures and / or functions in addition to one or more of the aspects described herein.

[0016] It should also be noted that the diagrams provided in the following embodiments only illustrate the basic concept of the present invention in a schematic manner. The diagrams only show the components related to the present invention, rather than being drawn according to the number, shape, and size of the components in actual implementation. The types, quantities, and proportions of the components in actual implementation can be arbitrarily changed, and the component layout type may also be more complex.

[0017] In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, those skilled in the art will understand that the aspects can be practiced without these specific details. To enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the drawings and specific embodiments. The terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the present invention, unless otherwise specified, the meaning of "a plurality" is two or more.

[0018] As Figure 1 shown, the method supporting hybrid layout is applicable to the storage of airborne documents. Multiple file servers are used to store files, and multiple file servers interact with the file information server. Each file server interacts with the client. The method includes:

[0019] Obtain the names of each file stored in multiple file servers in the current time period, and create a static layout table in the file information server. The static layout table stores the names of all files, that is, the first name;

[0020] The file information server stores a static layout table and a dynamic layout table;

[0021] Obtain multiple newly added files and file names of multiple clients, and determine whether the newly added multiple file names are the same as some of the first names. If so, feedback the address information of the files stored in the static layout table. If not, the newly added multiple files are randomly allocated and stored in one or more of the multiple file servers by the file information server, and the names of the newly added multiple files are stored in the dynamic layout table to form the second name;

[0022] Obtain the restart signal of the file information server, and store the second name in the static layout table.

[0023] When determining the distribution of file copies, the file information server supports both static file layout strategies and dynamic file layout strategies. The static file layout ensures the determinacy of file access through a static layout file, and the dynamic file layout ensures the flexibility of file access through dynamically generated layout files. For the situation where the metadata of the file information server and the files of the file server are inconsistent in the complex airborne scenario, the fault detection module maintains the consistency of the metadata to ensure the high reliability of the distributed file system.

[0024] As a specific implementation provided in this case, as Figure 2 shown, it also includes the deletion of files. The method for deleting files includes:

[0025] When the file information server sends a file deletion instruction, obtain the name and storage address of the file to be deleted, and store them in the dynamic layout table to form a third name and generate a first deletion mark, that is, generate a log;

[0026] Execute the deletion instruction of the file server. The file information server generates a file directory tree based on the static layout table and the dynamic layout table, and deletes the leaf node with the name of the deleted file in the file directory tree;

[0027] When obtaining the request from the client for the file access address, judge whether the file name of the access address is in the leaf node of the file directory tree. If so, feedback the current storage address of the access address; if not, feedback no signal or information.

[0028] As a specific implementation provided in this case, the method for storing the second name in the static layout table includes:

[0029] Obtain the restart signal of the file information server, store the second name in the static layout table, and store the third name in the static layout table.

[0030] Secondly, a system supporting hybrid layout is provided, which is applicable to the storage of airborne files. Multiple file servers are used to store files. The multiple file servers interact with the file information server, and each file server interacts with the client. The file information server stores a static layout table and a dynamic layout table. The system includes:

[0031] An acquisition module, which is used to acquire the names of the files stored by multiple file servers in the current time period, and create a static layout table in the file information server. The static layout table stores the names of all files, that is, the first name;

[0032] A calculation module is used to obtain multiple files and file names newly added by multiple clients, and determine whether there are any identical parts between the multiple newly added file names and a partial name of a first name. If so, it feeds back the address information of the stored files in the static layout table. If not, the multiple newly added files are randomly allocated and stored in one or more of multiple file servers by a file information server, and the names of the multiple newly added files are stored in a dynamic layout table to form a second name.

[0033] Obtain a restart signal of the file information server, and store the second name in the static layout table.

[0034] As a specific implementation provided in this case, the calculation module also includes file deletion. It is further used to, when the file information server sends a file deletion instruction, obtain the name of the file to be deleted and its storage address, and store them in the dynamic layout table to form a third name, and generate a first deletion mark.

[0035] Execute the deletion instruction of the file server. The file information server generates a file directory tree based on the static layout table and the dynamic layout table, and deletes the leaf node of the name of the deleted file in the file directory tree.

[0036] When receiving a request from a client for the access address of a file, determine whether the file name of the access address is a leaf node in the file directory tree. If so, feed back the current storage address of the access address. If not, feed back no signal or information.

[0037] As a specific implementation provided in this case, the calculation module is further used to

[0038] Obtain a restart signal of the file information server, store the second name in the static layout table, and store the third name in the static layout table.

[0039] Embodiment

[0040] (1) Typical operating environment

[0041] A distributed integrated modular avionics platform includes five physical nodes: N1, N2, N3, C1, and C2. The underlying layer uses an FC network for communication, the local file system uses FAT32, and the interface of the local file system uses a POSIX interface.

[0042] (2) Configuration data design generation and deployment

[0043] The distributed file system includes node N1 as the file information server, nodes N2 and N3 as file servers, and nodes C1 and C2 as client nodes.

[0044] Initialize the static layout table layout.conf in the file information server N1 as follows:

[0045] \data\101.bin:N2:N3

[0046] \data\102.bin:N2:N3

[0047] \data\103.bin:N2:

[0048] \data\201.bin:N3

[0049] \data\202.bin:N2:N3

[0050] \data\203.bin:N3

[0051] For each row in the table, with the semicolon as the delimiter for the file, the first column represents the file path, and the subsequent second and third columns represent the file distribution locations. The corresponding files in the layout table are stored in servers N2 and N3 respectively.

[0052] (3) Application effects

[0053] a. After the integrated modular avionics platform is started, the static layout module of the file information server loads the static layout file layout.conf, establishes a connection with the file server, completes the initialization of the file information server, and starts accepting access requests from the client.

[0054] b. File servers N2 and N3 and client nodes C1 and C2 request dynamic layout changes as needed, as follows:

[0055] 1. The user manually adds file 104.bin to file server N2;

[0056] 2. The user manually deletes file 103.bin from file server N2;

[0057] 3. Client C1 requests to add file 204.bin;

[0058] 4. Client C2 requests to delete file 101.bin.

[0059] c. The dynamic layout module processes dynamic layout requests according to the queue and persists the final layout modification result to local dynamic.dat, as shown in the following table:

[0060] +N2:\data\104.bin

[0061] -N2:\data\103.bin

[0062] +N3:\data\204.bin

[0063] +N2:\data\204.bin

[0064] -N2:\data\101.bin

[0065] -N3:\data\101.bin

[0066] d. When the file information server restarts again, the two tables are merged to generate the following layout table in memory:

[0067] \data\102.bin:N2:N3

[0068] \data\104.bin:N2:

[0069] \data\201.bin:N3

[0070] \data\202.bin:N2:N3

[0071] \data\203.bin:N3

[0072] \data\204.bin:N2:N3

[0073] e. When the client accesses the file 204.bin, the file information server returns the final address \data\204.bin:N2:N3

[0074] The above has introduced the product provided by the present invention in detail. Specific examples are used in this article to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the core idea of the present invention. It should be noted that for those of ordinary skill in the art in this technical field, without departing from the principle of the invention, several improvements and modifications can be made to the invention, and these improvements and modifications also fall within the protection scope of the invention claims.

Claims

1. A method for supporting hybrid layout, applicable to the storage of airborne files, Characterized in that, Multiple file servers are used to store files. The multiple file servers interact with the file information server, and each file server interacts with the client. The method includes: Obtain the names of each file stored in multiple file servers in the current time period, and create a static layout table in the file information server. The static layout table stores the names of all files, that is, the first name; The file information server stores a static layout table and a dynamic layout table; Obtain multiple files and file names newly added by multiple clients, and determine whether the newly added multiple file names are the same as some names of the first name. If so, feedback the address information of the files stored in the static layout table. If not, the newly added multiple files are randomly allocated and stored in one or more of the multiple file servers by the file information server, and the names of the newly added multiple files are stored in the dynamic layout table to form the second name; Obtain the restart signal of the file information server, and store the second name in the static layout table; It also includes the deletion of files. The method for deleting files includes, When the file information server sends a file deletion instruction, obtain the name and storage address of the deleted file, and store them in the dynamic layout table to form the third name, and generate a first deletion mark; execute the deletion instruction of the file server. The file information server generates a file directory tree according to the static layout table and the dynamic layout table, and deletes the leaf nodes of the deleted file name in the file directory tree; when obtaining the request of the client to access the file address, determine whether the file name of the access file address is in the leaf nodes of the file directory tree. If so, feedback the current storage address of the access file address. If not, feedback no signal or information.

2. The method according to claim 1, Characterized in that, The method for storing the second name in the static layout table includes: Obtain the restart signal of the file information server, store the second name in the static layout table, and store the third name in the static layout table.

3. A system for supporting hybrid layout, applicable to the storage of airborne files, Characterized in that, Multiple file servers are used to store files. The multiple file servers interact with the file information server, and each file server interacts with the client. The file information server stores a static layout table and a dynamic layout table. The system includes: An acquisition module, which is used to obtain the names of each file stored in multiple file servers in the current time period, and create a static layout table in the file information server. The static layout table stores the names of all files, that is, the first name; A calculation module, which is used to obtain multiple files and file names newly added by multiple clients, and determine whether any of the newly added file names is the same as a partial name of the first name. If so, it feeds back the address information of the file stored in the static layout table. If not, the newly added multiple files are randomly allocated and stored in one or more of the multiple file servers by the file information server, and the names of the newly added multiple files are stored in the dynamic layout table to form a second name, and for file deletion. Among them, when the file information server sends a file deletion instruction, it obtains the name and storage address of the deleted file and stores them in the dynamic layout table to form a third name, and generates a first deletion mark; executes the deletion instruction of the file server, and the file information server generates a file directory tree according to the static layout table and the dynamic layout table, and deletes the leaf node of the deleted file name in the file directory tree; when obtaining a request from a client for the access file address, it determines whether the file name of the access file address is a leaf node in the file directory tree. If so, it feeds back the current storage address of the access file address. If not, it feeds back no signal or information; Obtain the restart signal of the file information server, and store the second name in the static layout table.

4. The system according to claim 3, characterized in that, the calculation module is further configured to obtain the restart signal of the file information server, store the second name in the static layout table, and store the third name in the static layout table.

Citation Information

Patent Citations

  • Cluster file system and file service method thereof

    CN102158546A

  • Computer network system for exchanging and sharing distributed big data in real time

    CN107800787A