CN116264571A - File restoration method, device, equipment and computer readable storage medium - Google Patents

File restoration method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN116264571A
CN116264571A CN202211135550.5A CN202211135550A CN116264571A CN 116264571 A CN116264571 A CN 116264571A CN 202211135550 A CN202211135550 A CN 202211135550A CN 116264571 A CN116264571 A CN 116264571A
Authority
CN
China
Prior art keywords
message
control plane
flow
analysis
file
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.)
Pending
Application number
CN202211135550.5A
Other languages
Chinese (zh)
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.)
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software 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 China Mobile Communications Group Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202211135550.5A priority Critical patent/CN116264571A/en
Publication of CN116264571A publication Critical patent/CN116264571A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The embodiment of the invention relates to the technical field of computer communication, and discloses a file restoring method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: receiving an original code stream; separating the original code stream into data face flow messages and control face flow messages; distributing the control plane flow messages to an analysis group network card queue, and distributing the data plane flow messages to a forwarding group network card queue; analyzing the control plane flow message in the analysis group network card queue to obtain a control plane analysis message; forwarding the data plane flow messages in the forwarding group network card queue to a restoration server for file restoration processing to obtain restored data plane messages; and carrying out association storage on the control plane analysis message and the restored data plane message to obtain a restored file. Through the mode, the embodiment of the invention completely isolates the forwarding service and the analysis service, and improves the forwarding throughput and the flow analysis capability of the analysis server on the data.

Description

File restoration method, device, equipment and computer readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of computer communication, in particular to a file restoring method, a file restoring device, file restoring equipment and a computer readable storage medium.
Background
The DPI (deep packet inspection) device generally supports a function of restoring an uploaded and downloaded file or an attachment carried in a mail by a user, and at present, a typical method is that an parsing server in the DPI device needs to be responsible for the functions of message parsing, protocol identification and file restoration.
In carrying out embodiments of the present invention, the inventors found that: in the existing design, the resolving, identifying and restoring functions in the resolving server are tightly coupled together, so that the performance and efficiency of the equipment are seriously affected.
Disclosure of Invention
In view of the above problems, embodiments of the present invention provide a method, an apparatus, a device, and a computer storage medium for file restoration, which overcome the technical problem of low processing efficiency of file restoration in the prior art.
According to an aspect of an embodiment of the present invention, there is provided a file restoring method, including:
receiving an original code stream;
separating the original code stream into a data plane flow message and a control plane flow message with file key field information;
distributing the control plane flow message to an analysis group network card queue, and distributing the data plane flow message to a forwarding group network card queue;
Analyzing the control plane flow message in the analysis group network card queue to obtain a control plane analysis message;
forwarding the data surface flow message in the forwarding group network card queue to a restoration server for file restoration processing to obtain a restored data surface message;
and carrying out association storage on the control plane analysis message and the restored data plane message to obtain a restored file.
In an optional manner, before the control plane traffic packet is allocated to the parsing group network card queue and the data plane traffic packet is allocated to the forwarding group network card queue, the method further includes:
configuring a network card RSS and a Flow Director;
the distributing the control plane flow message to the analysis group network card queue and the data plane flow message to the forwarding group network card queue includes:
distributing control surface Flow messages with file key field information to the analysis group network card queue through the Flow Director;
and distributing the data surface flow message to the forwarding group network card queue through the RSS.
In an optional manner, the forwarding, by the forwarding group network card queue, the data plane flow packet to a restoration server for file restoration processing to obtain a restored data plane packet includes:
Determining the service class of the data plane flow message;
and according to the service class of the data surface flow message and a preset forwarding priority rule, forwarding the data surface flow message with high priority to the restoration server.
In an optional manner, the parsing the control plane flow message through the parsing group network card queue to obtain a control plane parsing message includes:
determining the service class of the control plane flow message;
and according to the service class of the control plane flow message and a preset analysis priority rule, carrying out service analysis on the control plane flow message with high priority.
In an optional manner, after the determining the traffic class of the control plane traffic packet, the method further includes:
and distributing different bandwidths to the control plane traffic messages with different priority levels according to the service types of the control plane traffic messages and a preset analysis priority rule, wherein the lower the priority level is, the smaller the bandwidth is, and the speed limit is carried out on the control plane traffic messages with low priority level.
In an optional manner, after the parsing the control plane flow packet through the parsing group network card queue to obtain the control plane parsing packet, the method further includes:
Storing the control plane analysis message through a block chain;
and performing association storage on the control plane analysis message and the restored data plane message to obtain a restored file, wherein the method comprises the following steps: determining whether a control plane analysis message matched with the restored data plane message is acquired;
and if the matched control plane analysis message is acquired, storing the matched control plane analysis message and the corresponding restored data plane message in a blockchain in a correlated manner to obtain a restored file.
In an alternative manner, after the recovering the restored file, the method further includes:
receiving a query request;
accessing the blockchain;
acquiring the restored file;
if the restored file is successfully obtained, writing the file access record in the form of a block.
According to another aspect of the embodiment of the present invention, there is provided a file restoring apparatus, including: the system comprises an analysis server, a flow analysis module, a flow forwarding module, a file restoration module and an associated storage module;
the analysis server is used for receiving an original code stream, distributing control plane flow messages with file key field information in the original code stream to the flow analysis module, and distributing data plane flow messages of the original code stream to the flow forwarding module;
The flow analysis module is used for receiving the control plane flow message and analyzing the control plane flow message to obtain a control plane analysis message;
the flow forwarding module is used for receiving the data plane flow message and forwarding the data plane flow message to the file restoring module;
the file restoration module is used for receiving the data surface flow message, and carrying out file restoration processing on the data surface flow message to obtain a restored data surface message;
and the association storage module is used for carrying out association storage on the control plane analysis message and the restored data plane message to obtain a restored file.
According to another aspect of the embodiment of the present invention, there is provided a file restoring apparatus including: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the steps of the file restoring method.
According to yet another aspect of the embodiments of the present invention, there is provided a computer readable storage medium having at least one executable instruction stored therein, the executable instruction causing the processor to perform the steps of a file restore method as described above.
The embodiment of the invention decouples the transfer and analysis functions in the file restoring process by utilizing the RSS and Flow Director characteristics of the network card and the affinity of the CPU, reduces the cost of software for filtering the message, fundamentally achieves the purpose of treating the business by the business and improves the throughput capacity of the analysis server.
Furthermore, the network card multi-queue technology is combined with the flow category quality of service (QoS), so that the processing priority of the data flow types sensitive to delay in the whole flow is higher than that of the data flow insensitive to delay, and the flow analysis capability in the file restoration process is improved.
Further, by setting the blockchain and utilizing the non-falsifiability of the blockchain, the security of file data of the storage module is ensured, so that the security of the file restoring system is improved, and meanwhile, the information record of the upper application system access file is stored in the blockchain, so that the information of the upper application system access file is ensured to be searchable, the aim of tracking and tracing is achieved, and the security of the upper application system access file can be effectively monitored.
The foregoing description is only an overview of the technical solutions of the embodiments of the present invention, and may be implemented according to the content of the specification, so that the technical means of the embodiments of the present invention can be more clearly understood, and the following specific embodiments of the present invention are given for clarity and understanding.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 shows a flow chart of a file restore method provided by an embodiment of the invention;
FIG. 2 is a schematic diagram illustrating parsing and forwarding of an original code stream according to an embodiment of the present invention
FIG. 3 shows a flowchart of a method for querying a restored file according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a file restoring apparatus according to an embodiment of the present invention;
fig. 5 shows a schematic structural diagram of a file restoring apparatus according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Next, the nouns are explained first:
RSS (Receive Side Scaling) is a network card driving technique that enables efficient distribution of received messages among multiple CPUs under a multiprocessor system.
The Flow Director technique is a technique of assigning a packet to a specific queue according to the exact matching of its fields.
Fig. 1 shows a flowchart of an embodiment of a file restoring method according to the present invention, where the method is applied to a computing device, and the device may be a computer device, such as a personal computer, a tablet computer, a server device, an intelligent terminal, or the like. As shown in fig. 1, the method comprises the steps of:
step 110: an original code stream is received.
The original code stream in the embodiment of the invention refers to a decrypted code stream, and all code streams are assumed to be a complete and legal string of binary streams. The receiving the original code stream may specifically be: and receiving an original code stream from the user side, wherein the original code stream is hashed according to five-tuple of the traffic, namely a source IP (Internet Protocol) address, a source port, a destination IP address, a destination port and a transport layer protocol through an LB (Load Balance) cluster system, and uniformly forwarding the traffic to each analysis server.
Step 120: and separating the original code stream into a data surface flow message and a control surface flow message with file key field information.
The method for separating the original code stream into a data plane flow message and a control plane flow message with file key field information specifically can be as follows: the analysis server initializes the network card configuration, sets the functions of the network card RSS and the Flow Director according to the corresponding configuration information, and the Flow of analysis and forwarding of the original code stream is shown in fig. 2.
After the analysis server receives the original code stream, the RSS network card calculates the original code stream according to a first preset keyword through a hash function to obtain a hash value corresponding to the first preset keyword, and then the hash value and a preset hash value and queue corresponding table determine a data surface flow message to obtain a corresponding forwarding network card queue, wherein the first preset keyword can be set as a quadruple of the data stream: a source ip address, a destination ip address, a source port and a destination port; after receiving the original code stream, the Flow Director network card queries a preset Flow Director table according to a second preset keyword, and after matching, the Flow Director network card distributes control surface Flow messages according to action processing in the table entry to obtain a corresponding analysis network card queue, wherein the second preset keyword can be set as a quadruple of the data stream: source ip address, destination ip address, source port, destination port.
Step 130: and distributing the control plane flow message to an analysis group network card queue, and distributing the data plane flow message to a forwarding group network card queue.
The analysis group network card queue and the forwarding group network card queue are the receiving and transmitting packet queues of the analysis server, the analysis server sets the receiving and transmitting packet queue information of the network card, the analysis group network card queue and the forwarding group network card queue are logically set, the ratio of the number of the queues in the analysis and forwarding group network card queue is set according to the characteristics of service types, the reserved memory space of receiving and transmitting packets is set, and the size of the receiving and transmitting packet queue is set.
As shown in fig. 2, the parsing group network card queue is composed of more than one parsing network card queue, each queue binds a cpu core of a control plane, and cpu cores of all control planes form a control plane cpu core group; the forwarding group network card queues are composed of more than one forwarding network card queue, each queue is bound with a cpu core of a data plane, and the cpu cores of all the data planes form a data plane cpu core group.
The control plane flow message is distributed to an analysis group network card queue, which may specifically be: and equalizing the data surface flow message to a forwarding group network card queue by using the RSS load.
The data plane flow message is distributed to a forwarding group network card queue, which may specifically be: and distributing the control surface Flow message with the file key field information to a designated analysis group network card queue by using a Flow Director.
Step 140: analyzing the control plane flow message in the analysis group network card queue to obtain a control plane analysis message; and forwarding the data surface flow message in the forwarding group network card queue to a restoration server for file restoration processing to obtain a restored data surface message.
In the embodiment of the present invention, the control plane flow message in the parsing group network card queue is parsed to obtain a control plane parsing message, which may specifically be: the cpu of the control plane checks the control plane flow message of the corresponding analysis network card queue to analyze and process to obtain the corresponding control plane analysis message.
The data plane flow message in the forwarding group network card queue is forwarded to a restoration server for file restoration processing, and the restored data plane message is obtained specifically as follows: the cpu of the data plane checks the control plane flow message of the corresponding forwarding network card queue to perform forwarding processing, and after file restoration is performed by the restoration server, the restored data plane message is obtained.
In some embodiments of the present invention, forwarding the data plane traffic packet in the forwarding group network card queue to a restoration server for file restoration processing to obtain a restored data plane packet, which may specifically further include: the data surface flow message is essentially a type of data flow, and is forwarded to a restoration server for file restoration processing to obtain a restored data surface message, wherein the restoration of the data flow to an original format is included.
The control plane parsing message may specifically include: the detailed information of the text file or the detailed information of the audio-video file. The detailed information of the text file or the detailed information of the audio/video file may include a file name, a file type, and a file size, respectively.
The restored data plane message may specifically include: a restored text file or an audiovisual file body.
In some embodiments of the present invention, parsing the control plane flow message in the parsing group network card queue to obtain a control plane parsing message, further includes:
step 1411: and determining the service class of the data plane flow message. The analysis server distributes different service quality (QoS) to the forwarding group network card queues, the network card divides the data flow into a certain service class according to the priority field, and different priority levels are assigned to different service classes.
Step 1412: and according to the service class of the data surface flow message and a preset forwarding priority rule, forwarding the data surface flow message with high priority to the restoration server.
In some embodiments of the present invention, forwarding the data plane traffic packet in the forwarding group network card queue to a restoration server for file restoration processing to obtain a restored data plane packet, further including:
step 1421: and determining the service class of the control plane flow message. The analysis server distributes different service quality (QoS) to the analysis group network card queues, the network card divides the data flow into a certain service class according to the priority field, and different priority levels are assigned for different service classes.
Step 1422: and according to the service class of the control plane flow message and a preset analysis priority rule, carrying out service analysis on the control plane flow message with high priority.
Specifically, according to the service class of the control plane traffic message and a preset analysis priority rule, different bandwidths are allocated to the control plane traffic messages with different priority levels, the lower the priority is, the smaller the bandwidth is, the speed limit is carried out on the control plane traffic message with low priority, and the service analysis is carried out on the control plane traffic message with high priority.
Step 150: and storing the control plane analysis message and the restored data plane message in a correlated way to obtain a restored file.
In one embodiment of the present invention, the parsing of the message by the blockchain storage control plane may specifically be: the information storage module stores the control plane analysis message; the restored file is stored through the blockchain, which can be specifically: the file storage module stores the restored file.
The method comprises the steps of performing association storage on a control plane analysis message and a restored data plane message to obtain a restored file, and further comprises the following steps: determining whether a control plane analysis message matched with the restored data plane message is acquired; if the matched control plane analysis message is obtained, the matched control plane analysis message and the corresponding restored data plane message are stored in a blockchain in an associated mode, a restored file is obtained, periodic verification is carried out according to the corresponding control plane analysis message in the storage module, and when the end of file restoration processing is confirmed, the file is stored in the blockchain storage module; and if the matched control plane analysis message cannot be acquired, temporarily caching the data plane message, periodically removing the storage module to acquire the matched control plane analysis message, and discarding the data plane message and emptying the cache after the matched control plane analysis message is not successfully acquired after a specified period.
In some embodiments of the invention, the user may query for the restored file stored by the blockchain. Specifically, as shown in fig. 3, after step 150, the method further includes:
step 151: a query request input by a user is received. The query request refers to a query request of a user for a target file, where the target file is a restored file. The receiving of the query request may specifically be: and the user operates an upper-layer application system of the blockchain to provide a query request for the restored file.
Step 152: and accessing the block chain to inquire the target file. After receiving the user query request, the upper layer application system searches the restored file in the blockchain.
Step 153: if the restored file is successfully queried, writing the file access record in the form of a block.
If the restored file is successfully obtained, writing the file access record in the form of a block, which specifically may be: if the restored file is successfully obtained, writing the file access record in the block chain storage module in the form of a block, storing the block into the access record storage module, adding the block into the block chain of the node, and updating a control surface analysis message corresponding to the restored file in the file storage module by the node.
The embodiment of the invention decouples the transfer and analysis functions in the file restoring process by utilizing the RSS and Flow Director characteristics of the network card and the affinity of the CPU, reduces the cost of software for filtering the message, fundamentally achieves the purpose of treating the business by the business and improves the throughput capacity of the analysis server.
Furthermore, the network card multi-queue technology is combined with the flow category quality of service (QoS), so that the processing priority of the data flow types sensitive to delay in the whole flow is higher than that of the data flow insensitive to delay, and the flow analysis capability in the file restoration process is improved.
Further, by setting the blockchain and utilizing the non-falsifiability of the blockchain, the security of file data of the storage module is ensured, so that the security of the file restoring system is improved, and meanwhile, the information record of the upper application system access file is stored in the blockchain, so that the information of the upper application system access file is ensured to be searchable, the aim of tracking and tracing is achieved, and the security of the upper application system access file can be effectively monitored.
Fig. 4 shows a schematic structural diagram of an embodiment of the file restoring apparatus of the present invention. As shown in fig. 4, the apparatus 200 includes: the system comprises a resolution server 210, a flow resolution module 220, a flow forwarding module 230, a file restore module 240 and an association storage module 250.
The parsing server 210 is configured to receive an original code stream, distribute a control plane flow message with file key field information in the original code stream to a flow parsing module, and distribute a data plane flow message of the original code stream to a flow forwarding module.
The flow analysis module 220 is configured to receive the control plane flow message, and analyze the control plane flow message to obtain a control plane analysis message.
The flow forwarding module 230 is configured to receive the data plane flow packet and forward the data plane flow packet to the file restore module.
The file restoration module 240 is configured to receive a data plane flow packet, and perform file restoration processing on the data plane flow packet to obtain a restored data plane packet.
The association storage module 250 is configured to store the control plane analysis message and the restored data plane message in association to obtain a restored file.
In an optional manner, the distributing the control plane traffic packet with the file key field information in the original code stream to the traffic analysis module and the distributing the data plane traffic packet in the original code stream to the traffic forwarding module further includes: the analysis server configures a network card RSS and a Flow Director; the distributing the control plane flow message with the file key field information in the original code stream to the flow analysis module, and distributing the data plane flow message of the original code stream to the flow forwarding module includes: distributing control plane Flow messages with file key field information to the Flow analysis module through the Flow Director; and distributing the data plane flow message to the flow forwarding module through the RSS.
In an alternative manner, the flow resolution module 220 is specifically configured to: determining the service class of the control plane flow message; and according to the service class of the control plane flow message and a preset analysis priority rule, carrying out service analysis on the control plane flow message with high priority to obtain a control plane analysis message.
In an optional manner, the determining the service class of the control plane flow packet may specifically be: the analysis server distributes different service quality (QoS) to the analysis group network card queues, the network card divides the data flow into a certain service class according to the priority field, and different priority levels are assigned for different service classes.
In an optional manner, the performing service analysis on the control plane traffic message with high priority according to the service class of the control plane traffic message and a preset analysis priority rule may specifically be: and according to the service types of the control plane flow messages and preset analysis priority rules, allocating different bandwidths to the control plane flow messages with different priority levels, wherein the lower the priority is, the smaller the bandwidth is, limiting the speed of the control plane flow messages with low priority, and carrying out service analysis on the control plane flow messages with high priority.
In an alternative manner, the traffic forwarding module 230 is specifically configured to: determining the service class of the data plane flow message; and according to the service class of the data surface flow message and a preset forwarding priority rule, forwarding the data surface flow message with high priority to the file restoration module.
In an optional manner, the determining the service class of the data plane traffic packet may specifically be: the analysis server distributes different service quality (QoS) to the network card queues of the forwarding group, the network card divides the data flow into a certain service class according to the priority field, and different priority levels are assigned to different service classes.
In an alternative manner, the file restore module 240 is specifically configured to: and receiving the data surface flow message, and performing file restoration processing on the data surface flow message to obtain a restored data surface message.
In an alternative manner, the association storage module 250 is specifically configured to: determining whether a control plane analysis message matched with the restored data plane message is acquired; and if the matched control plane analysis message is obtained, carrying out association storage on the matched control plane analysis message and the corresponding restored data plane message to obtain a restored file.
In an alternative, the apparatus further comprises: and a query module. The query module is specifically used for: receiving a query request; accessing the blockchain; acquiring the restored file; if the restored file is successfully obtained, writing the file access record in the form of a block.
It should be noted that, the file restoring apparatus provided in the embodiment of the present invention is an apparatus capable of executing the file restoring method, and all embodiments of the file restoring method are applicable to the apparatus, and the same or similar beneficial effects can be achieved.
According to the file restoration method, the file restoration device and the file restoration system, the file restoration process is decoupled from the transfer and analysis functions by utilizing the RSS and Flow Director characteristics of the network card and the affinity of the CPU, so that the cost of software for filtering the messages is reduced, the purpose of treating the business is fundamentally achieved, and the throughput capacity of an analysis server is improved; and secondly, the network card multi-queue technology combines the traffic class quality of service (QoS), ensures that the processing priority of the data traffic types sensitive to delay in the whole flow is higher than that of the data traffic insensitive to delay, and improves the forwarding throughput and the traffic analysis capability of the data in the file restoring process.
FIG. 5 is a schematic structural diagram of an embodiment of the file restore device of the present invention, which is not limited to the specific implementation of the file restore device.
As shown in fig. 5, the file restoring apparatus may include: a processor 402, a communication interface (Communications Interface) 404, a memory 406, and a communication bus 408.
Wherein: processor 402, communication interface 404, and memory 406 communicate with each other via communication bus 408. A communication interface 404 for communicating with network elements of other devices, such as clients or other servers. The processor 402 is configured to execute the program 410, and may specifically perform the file restore method in any of the above-described method embodiments.
In particular, program 410 may include program code including computer-operating instructions.
The processor 402 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors included in the file restore device may be the same type of processor, such as one or more CPUs; but may also be different types of processors such as one or more CPUs and one or more ASICs.
Memory 406 for storing programs 410. Memory 406 may comprise high-speed RAM memory or may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
Program 410 may be specifically invoked by processor 402 to cause an electronic device to:
receiving an original code stream;
separating the original code stream into a data plane flow message and a control plane flow message with file key field information;
distributing the control plane flow message to an analysis group network card queue, and distributing the data plane flow message to a forwarding group network card queue;
analyzing the control plane flow message in the analysis group network card queue to obtain a control plane analysis message;
forwarding the data surface flow message in the forwarding group network card queue to a restoration server for file restoration processing to obtain a restored data surface message;
and carrying out association storage on the control plane analysis message and the restored data plane message to obtain a restored file.
In an optional manner, before the control plane traffic packet is allocated to the parsing group network card queue and the data plane traffic packet is allocated to the forwarding group network card queue, the method further includes:
Configuring a network card RSS and a Flow Director;
the distributing the control plane flow message to the analysis group network card queue and the data plane flow message to the forwarding group network card queue includes:
distributing control surface Flow messages with file key field information to the analysis group network card queue through the Flow Director;
and distributing the data surface flow message to the forwarding group network card queue through the RSS.
In an optional manner, the forwarding, by the forwarding group network card queue, the data plane flow packet to a restoration server for file restoration processing to obtain a restored data plane packet includes:
determining the service class of the data plane flow message;
and according to the service class of the data surface flow message and a preset forwarding priority rule, forwarding the data surface flow message with high priority to the restoration server.
In an optional manner, the parsing the control plane flow message through the parsing group network card queue to obtain a control plane parsing message includes:
determining the service class of the control plane flow message;
and according to the service class of the control plane flow message and a preset analysis priority rule, carrying out service analysis on the control plane flow message with high priority.
In an optional manner, after the determining the traffic class of the control plane traffic packet, the method further includes:
and distributing different bandwidths to the control plane traffic messages with different priority levels according to the service types of the control plane traffic messages and a preset analysis priority rule, wherein the lower the priority level is, the smaller the bandwidth is, and the speed limit is carried out on the control plane traffic messages with low priority level.
In an optional manner, after the parsing the control plane flow packet through the parsing group network card queue to obtain the control plane parsing packet, the method further includes:
storing the control plane analysis message through a block chain;
and performing association storage on the control plane analysis message and the restored data plane message to obtain a restored file, wherein the method comprises the following steps: determining whether a control plane analysis message matched with the restored data plane message is acquired;
and if the matched control plane analysis message is acquired, storing the matched control plane analysis message and the corresponding restored data plane message in a blockchain in a correlated manner to obtain a restored file.
In an alternative manner, after the recovering the restored file, the method further includes:
Receiving a query request;
accessing the blockchain;
acquiring the restored file;
if the restored file is successfully obtained, writing the file access record in the form of a block.
The embodiment of the invention decouples the transfer and analysis functions in the file restoring process by utilizing the RSS and Flow Director characteristics of the network card and the affinity of the CPU, reduces the cost of software for filtering the message, fundamentally achieves the purpose of treating the business by the business and improves the throughput capacity of the analysis server.
Furthermore, the network card multi-queue technology is combined with the flow category quality of service (QoS), so that the processing priority of the data flow types sensitive to delay in the whole flow is higher than that of the data flow insensitive to delay, and the flow analysis capability in the file restoration process is improved.
Further, by setting the blockchain and utilizing the non-falsifiability of the blockchain, the security of file data of the storage module is ensured, so that the security of the file restoring system is improved, and meanwhile, the information record of the upper application system access file is stored in the blockchain, so that the information of the upper application system access file is ensured to be searchable, the aim of tracking and tracing is achieved, and the security of the upper application system access file can be effectively monitored.
The embodiment of the invention provides a computer readable storage medium, which stores at least one executable instruction, and when the executable instruction runs on electronic equipment, the electronic equipment is caused to execute the file restoring method in any of the method embodiments.
The executable instructions may be particularly useful for causing an electronic device to:
receiving an original code stream;
separating the original code stream into a data plane flow message and a control plane flow message with file key field information;
distributing the control plane flow message to an analysis group network card queue, and distributing the data plane flow message to a forwarding group network card queue;
analyzing the control plane flow message in the analysis group network card queue to obtain a control plane analysis message;
forwarding the data surface flow message in the forwarding group network card queue to a restoration server for file restoration processing to obtain a restored data surface message;
and carrying out association storage on the control plane analysis message and the restored data plane message to obtain a restored file.
In an optional manner, before the control plane traffic packet is allocated to the parsing group network card queue and the data plane traffic packet is allocated to the forwarding group network card queue, the method further includes:
Configuring a network card RSS and a Flow Director;
the distributing the control plane flow message to the analysis group network card queue and the data plane flow message to the forwarding group network card queue includes:
distributing control surface Flow messages with file key field information to the analysis group network card queue through the Flow Director;
and distributing the data surface flow message to the forwarding group network card queue through the RSS.
In an optional manner, the forwarding, by the forwarding group network card queue, the data plane flow packet to a restoration server for file restoration processing to obtain a restored data plane packet includes:
determining the service class of the data plane flow message;
and according to the service class of the data surface flow message and a preset forwarding priority rule, forwarding the data surface flow message with high priority to the restoration server.
In an optional manner, the parsing the control plane flow message through the parsing group network card queue to obtain a control plane parsing message includes:
determining the service class of the control plane flow message;
and according to the service class of the control plane flow message and a preset analysis priority rule, carrying out service analysis on the control plane flow message with high priority.
In an optional manner, after the determining the traffic class of the control plane traffic packet, the method further includes:
and distributing different bandwidths to the control plane traffic messages with different priority levels according to the service types of the control plane traffic messages and a preset analysis priority rule, wherein the lower the priority level is, the smaller the bandwidth is, and the speed limit is carried out on the control plane traffic messages with low priority level.
In an optional manner, after the parsing the control plane flow packet through the parsing group network card queue to obtain the control plane parsing packet, the method further includes:
storing the control plane analysis message through a block chain;
and performing association storage on the control plane analysis message and the restored data plane message to obtain a restored file, wherein the method comprises the following steps: determining whether a control plane analysis message matched with the restored data plane message is acquired;
and if the matched control plane analysis message is acquired, storing the matched control plane analysis message and the corresponding restored data plane message in a blockchain in a correlated manner to obtain a restored file.
In an alternative manner, after the recovering the restored file, the method further includes:
Receiving a query request;
accessing the blockchain;
acquiring the restored file;
if the restored file is successfully obtained, writing the file access record in the form of a block.
The embodiment of the invention provides a file restoring device which is used for executing the file restoring method.
The embodiment of the invention provides a file restoration computer program, which can be called by a processor to enable an electronic device to execute the file restoration method in any of the method embodiments.
An embodiment of the present invention provides a computer program product comprising a computer program stored on a computer readable storage medium, the computer program comprising program instructions which, when run on a computer, cause the computer to perform the file restoration method of any of the method embodiments described above.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with the teachings herein. The required structure for a construction of such a system is apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the above description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specifically stated.

Claims (10)

1. A method of file restoration, the method comprising:
receiving an original code stream;
separating the original code stream into a data plane flow message and a control plane flow message with file key field information;
Distributing the control plane flow message to an analysis group network card queue, and distributing the data plane flow message to a forwarding group network card queue;
analyzing the control plane flow message in the analysis group network card queue to obtain a control plane analysis message;
forwarding the data surface flow message in the forwarding group network card queue to a restoration server for file restoration processing to obtain a restored data surface message;
and carrying out association storage on the control plane analysis message and the restored data plane message to obtain a restored file.
2. The method of claim 1, wherein the distributing the control plane traffic message to the parse group network card queue and the data plane traffic message to the forwarding group network card queue are preceded by the method further comprising:
configuring a network card RSS and a Flow Director;
the distributing the control plane flow message to the analysis group network card queue and the data plane flow message to the forwarding group network card queue includes:
distributing control surface Flow messages with file key field information to the analysis group network card queue through the Flow Director;
And distributing the data surface flow message to the forwarding group network card queue through the RSS.
3. The method of claim 1, wherein the forwarding the data plane traffic message to the restore server through the forwarding group network card queue to perform file restore processing to obtain a restored data plane message includes:
determining the service class of the data plane flow message;
and according to the service class of the data surface flow message and a preset forwarding priority rule, forwarding the data surface flow message with high priority to the restoration server.
4. The method of claim 1, wherein the parsing the control plane traffic message through the parsing group network card queue to obtain a control plane parsed message comprises:
determining the service class of the control plane flow message;
and according to the service class of the control plane flow message and a preset analysis priority rule, carrying out service analysis on the control plane flow message with high priority.
5. The method of claim 4, wherein after determining the traffic class of the control plane traffic message, the method further comprises:
And allocating different bandwidths to the control plane traffic messages with different priority levels according to the service types of the control plane traffic messages and a preset analysis priority rule, wherein the lower the priority level is, the smaller the bandwidth is so as to limit the speed of the control plane traffic messages with low priority level.
6. The method of claim 1, wherein after the parsing the control plane traffic message by parsing the group network card queue to obtain a control plane parsed message, the method further comprises:
storing the control plane analysis message through a block chain;
and performing association storage on the control plane analysis message and the restored data plane message to obtain a restored file, wherein the method comprises the following steps:
determining whether a control plane analysis message matched with the restored data plane message is acquired;
and if the matched control plane analysis message is acquired, storing the matched control plane analysis message and the corresponding restored data plane message in a blockchain in a correlated manner to obtain a restored file.
7. The method of claim 6, wherein after the recovering the restored file, the method further comprises:
Receiving a query request;
accessing the blockchain;
acquiring the restored file;
if the restored file is successfully obtained, writing the file access record in the form of a block.
8. A document reproduction apparatus, the apparatus comprising: the system comprises an analysis server, a flow analysis module, a flow forwarding module, a file restoration module and an associated storage module;
the analysis server is used for receiving an original code stream, distributing control plane flow messages with file key field information in the original code stream to the flow analysis module, and distributing data plane flow messages of the original code stream to the flow forwarding module;
the flow analysis module is used for receiving the control plane flow message and analyzing the control plane flow message to obtain a control plane analysis message;
the flow forwarding module is used for receiving the data plane flow message and forwarding the data plane flow message to the file restoring module;
the file restoration module is used for receiving the data surface flow message, and carrying out file restoration processing on the data surface flow message to obtain a restored data surface message;
And the association storage module is used for carrying out association storage on the control plane analysis message and the restored data plane message to obtain a restored file.
9. A document restoring apparatus comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to perform the steps of the file restore method according to any one of claims 1-7.
10. A computer readable storage medium having stored therein at least one executable instruction for causing a processor to perform the steps of the file restore method according to any one of claims 1-7.
CN202211135550.5A 2022-09-19 2022-09-19 File restoration method, device, equipment and computer readable storage medium Pending CN116264571A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211135550.5A CN116264571A (en) 2022-09-19 2022-09-19 File restoration method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211135550.5A CN116264571A (en) 2022-09-19 2022-09-19 File restoration method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN116264571A true CN116264571A (en) 2023-06-16

Family

ID=86722734

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211135550.5A Pending CN116264571A (en) 2022-09-19 2022-09-19 File restoration method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116264571A (en)

Similar Documents

Publication Publication Date Title
US7257633B2 (en) Dynamic allocation of a pool of threads
US10530691B2 (en) Method and system for managing data traffic in a computing network
US8681819B2 (en) Programmable multifield parser packet
US20200228433A1 (en) Computer-readable recording medium including monitoring program, programmable device, and monitoring method
US20020080789A1 (en) Switch-based network processor
US9356844B2 (en) Efficient application recognition in network traffic
US8121148B2 (en) Protocol stack using shared memory
US6604147B1 (en) Scalable IP edge router
US7079501B2 (en) Method and system for efficiently delivering content to multiple requesters
US9910687B2 (en) Data flow affinity for heterogenous virtual machines
US8539089B2 (en) System and method for vertical perimeter protection
CN113891396B (en) Data packet processing method and device, computer equipment and storage medium
CN113315706B (en) Private cloud flow control method, device and system
US8566833B1 (en) Combined network and application processing in a multiprocessing environment
US7159111B1 (en) Isolation of communication contexts to facilitate communication of data
US20060206453A1 (en) Dynamically Sizing Buffers to Optimal Size in Network Layers When Supporting Data Transfers Related to Database Applications
CN109617833B (en) NAT data auditing method and system of multi-thread user mode network protocol stack system
CN116264571A (en) File restoration method, device, equipment and computer readable storage medium
US7675920B1 (en) Method and apparatus for processing network traffic associated with specific protocols
KR20200080416A (en) Data processing apparatus for mobile edge computing
US8819107B2 (en) Relay apparatus, recording medium storing a relay program, and a relay method
CN110852391A (en) Ethernet message classification method and device based on multiple classifiers
CN117440053B (en) Multistage cross die access method and system
CN111625701B (en) Searching method, searching device, server and storage medium
US7568013B1 (en) Multiple message send routine for network packets

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