F-stack operation and maintenance tool execution method and device, equipment and medium
By using the ring queue mechanism in the F-stack protocol stack to receive and process multiple operation and maintenance tool requests, the problem of insufficient concurrent execution capabilities of the F-stack user-state protocol stack in a multi-person operation and maintenance environment is solved, and work efficiency is improved.
Patent Information
- Application Number
- CN202410967399.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-11-22
AI Technical Summary
The F-stack user-state protocol stack may affect the normal operation of the protocol stack when used by multi-person operation and maintenance tools, and traditional tools cannot support concurrent execution of operation and maintenance tools, affecting work efficiency.
The user's multiple operation and maintenance tool execution requests are received through the first ring queue, and the user uses the F-stack protocol stack to process and create a second ring queue. The response result is sent to the user, so as to realize the concurrent execution of multiple operation and maintenance tools.
It realizes concurrent execution of multiple operation and maintenance tools, improves user work efficiency, and solves the problem that traditional tools cannot support concurrent execution.
Smart Images

Figure CN119011676A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to an F-stack operation and maintenance tool execution method, device, equipment and medium. Background Art
[0002] F-stack is a high-performance user-mode network solution designed by integrating the network protocol stacks of DPDK and FreeBSD systems. It not only improves the network packet processing capabilities, but also provides an application-layer network programming interface. Users can switch existing apps to this user-mode protocol stack at a minimal cost, and it is very convenient to deploy in any Linux environment. Since F-stack is a user-mode protocol stack, traditional kernel network-related configuration and debugging tools are no longer available, and only some operation and maintenance tool sets developed for it can be used. However, these tool sets were not designed with concurrency in mind, which may affect the normal operation of the protocol stack when multiple people are using the protocol stack operation and maintenance tools.
[0003] In related technologies, F-stack is usually deployed on servers as a high-performance user-mode protocol stack. Some network services such as nginx are also running on the servers, which are adapted based on the POSIX API network programming interface provided by F-stack. Usually, the server provides an operating environment for applications. In order to ensure the stable operation of online programs, operation and maintenance personnel will set account access rights or physical access restrictions for such important resources. For example, the server can only be accessed through a jump server, and only one user is allowed to log in to the jump server at the same time, that is, only one operation and maintenance tool can be executed at a time in a multi-user environment, and concurrent execution of operation and maintenance tools is not supported. Summary of the invention
[0004] In order to solve the above technical problems, the present disclosure provides an F-stack operation and maintenance tool execution method, device, equipment and medium.
[0005] In a first aspect, the present disclosure provides an F-stack operation and maintenance tool execution method, comprising:
[0006] Receiving multiple operation and maintenance tool execution requests from the user through the first ring queue;
[0007] Acquire and process the plurality of operation and maintenance tool execution requests in the first ring queue through the F-stack protocol stack to obtain a plurality of corresponding response results;
[0008] Creating a corresponding second ring queue according to each operation and maintenance tool execution request through the F-stack protocol stack, and sending the plurality of response results to the corresponding second ring queue;
[0009] The plurality of response results are sent to the user through the second ring queue, so that the user executes the corresponding operation and maintenance tool.
[0010] In a second aspect, the present disclosure provides an F-stack operation and maintenance tool execution device, including:
[0011] A request receiving module, used for receiving multiple operation and maintenance tool execution requests from users through a first ring queue;
[0012] A request processing module, used for acquiring and processing the plurality of operation and maintenance tool execution requests in the first ring queue through the F-stack protocol stack, and obtaining a plurality of corresponding response results;
[0013] A first sending module, configured to create a corresponding second ring queue according to each operation and maintenance tool execution request through the F-stack protocol stack, and send the plurality of response results to the corresponding second ring queue;
[0014] The second sending module is used to send the multiple response results to the user through the second ring queue, so that the user executes the corresponding operation and maintenance tool.
[0015] In a third aspect, the present disclosure provides an F-stack operation and maintenance tool execution device, including:
[0016] processor;
[0017] A memory for storing executable instructions;
[0018] The processor is used to read executable instructions from the memory and execute the executable instructions to implement the F-stack operation and maintenance tool execution method of the first aspect.
[0019] In a fourth aspect, the present disclosure provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor implements the F-stack operation and maintenance tool execution method of the first aspect.
[0020] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0021] The F-stack operation and maintenance tool execution method, apparatus, device and medium of the embodiments of the present disclosure can receive multiple operation and maintenance tool execution requests from the user through a first circular queue, then obtain and process the multiple operation and maintenance tool execution requests in the first circular queue through the F-stack protocol stack to obtain corresponding multiple response results, and then create a corresponding second circular queue according to each operation and maintenance tool execution request through the F-stack protocol stack, and send the multiple response results to the corresponding second circular queue, and finally send the multiple response results to the user through the second circular queue, so that the user executes the corresponding operation and maintenance tool. Thus, the corresponding second circular queue is created according to different operation and maintenance tool execution requests through the F-stack protocol stack, thereby realizing concurrent execution of multiple operation and maintenance tools and improving user work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0023] Figure 1 A flowchart of an F-stack operation and maintenance tool execution method provided in an embodiment of the present disclosure;
[0024] Figure 2 A flowchart of another F-stack operation and maintenance tool execution method provided in an embodiment of the present disclosure;
[0025] Figure 3 A code schematic diagram of a verification method provided by an embodiment of the present disclosure;
[0026] Figure 4 A schematic diagram of the structure of an F-stack operation and maintenance tool execution device provided in an embodiment of the present disclosure;
[0027] Figure 5 A schematic diagram of the structure of an F-stack operation and maintenance tool execution device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0029] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0030] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0031] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0032] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0033] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0034] In order to solve the above problems, the present disclosure provides an F-stack operation and maintenance tool execution method, device, equipment and medium. Figures 1 to 3 The F-stack operation and maintenance tool execution method provided in the embodiment of the present disclosure is described in detail.
[0035] Figure 1 A flow chart of an F-stack operation and maintenance tool execution method provided by an embodiment of the present disclosure is shown.
[0036] In the embodiment of the present disclosure, the F-stack operation and maintenance tool execution method may be executed by an electronic device, wherein the electronic device may include but is not limited to devices such as computer devices, cloud servers or cloud server clusters.
[0037] like Figure 1 As shown, the F-stack operation and maintenance tool execution method may include the following steps.
[0038] S110. Receive multiple operation and maintenance tool execution requests from the user through the first ring queue.
[0039] In an embodiment of the present disclosure, the electronic device may receive multiple operation and maintenance tool execution requests from the user through a first ring queue.
[0040] Optionally, the first ring queue may be a lock-free ring queue (rte_ring).
[0041] Optionally, the operation and maintenance tool execution request may be a user request to execute an operation and maintenance tool. For example, the operation and maintenance tool may be ff_arp, ff_ifconfig, ff_traffic, etc.
[0042] Specifically, when a user wants to execute a certain operation and maintenance tool, he can initiate a corresponding operation and maintenance tool execution request. The user can also execute multiple operation and maintenance tools concurrently at the same time, and send multiple operation and maintenance tool execution requests to the first ring queue (rte_ring0). The first ring queue (rte_ring0) can receive and save multiple operation and maintenance tool execution requests sent by the user.
[0043] S120. Acquire and process the plurality of operation and maintenance tool execution requests in the first ring queue through the F-stack protocol stack to obtain a plurality of corresponding response results.
[0044] In an embodiment of the present disclosure, the electronic device can obtain and process multiple operation and maintenance tool execution requests in the first ring queue through the F-stack protocol stack to obtain corresponding multiple response results.
[0045] Optionally, the F-stack protocol stack is a high-performance user-mode network solution designed by integrating the network protocol stack of DPDK and FreeBSD system. It improves the network packet processing capability and also provides the network programming interface of the application layer. The F-stack protocol stack provides multiple supporting operation and maintenance tools. The F-stack protocol stack can communicate with multiple operation and maintenance tools through a lock-free ring queue (rte_ring).
[0046] Optionally, the response result may be a result obtained after the F-stack protocol stack processes different requests.
[0047] Specifically, the electronic device can obtain multiple operation and maintenance tool execution requests sent by the first ring queue through the F-stack protocol stack, and process the multiple operation and maintenance tool execution requests respectively, so as to obtain corresponding multiple response results.
[0048] S130. Create a corresponding second ring queue according to each operation and maintenance tool execution request through the F-stack protocol stack, and send the multiple response results to the corresponding second ring queue.
[0049] In an embodiment of the present disclosure, the electronic device can create a corresponding second ring queue according to each operation and maintenance tool execution request through the F-stack protocol stack, and send multiple response results to the corresponding second ring queue.
[0050] Optionally, the second ring queue may be a lock-free ring queue (rte_ring) created according to an operation and maintenance tool execution request. The first ring queue may have a multi-producer single-consumer attribute, and the second ring queue may have a single-producer single-consumer attribute.
[0051] Specifically, the electronic device processes multiple operation and maintenance tool execution requests through the F-stack protocol stack to obtain corresponding multiple response results, then creates a corresponding second ring queue according to the multiple operation and maintenance tool execution requests through the F-stack protocol stack, and sends the multiple response results to the corresponding second ring queue.
[0052] S140. Send the plurality of response results to the user through the second ring queue, so that the user executes a corresponding operation and maintenance tool.
[0053] In an embodiment of the present disclosure, the electronic device may send the plurality of response results to the user through the second ring queue, so that the user executes the corresponding operation and maintenance tool.
[0054] Specifically, after the electronic device sends the multiple response results to the corresponding second ring queues through the F-stack protocol stack, it can send the multiple response results to the user through multiple second ring queues respectively, and the user can execute the corresponding operation and maintenance tool according to the response results.
[0055] Therefore, in the embodiment of the present disclosure, it is possible to receive multiple operation and maintenance tool execution requests from the user through the first circular queue, and then obtain and process the multiple operation and maintenance tool execution requests in the first circular queue through the F-stack protocol stack to obtain corresponding multiple response results, and then create a corresponding second circular queue according to each operation and maintenance tool execution request through the F-stack protocol stack, and send the multiple response results to the corresponding second circular queue, and finally send the multiple response results to the user through the second circular queue, so that the user executes the corresponding operation and maintenance tool. Thus, the corresponding second circular queue is created according to different operation and maintenance tool execution requests through the F-stack protocol stack, thereby realizing concurrent execution of multiple operation and maintenance tools and improving user work efficiency.
[0056] Optionally, S120 may specifically include: obtaining the multiple operation and maintenance tool execution requests in the first ring queue through the F-stack protocol stack, and determining the type tags of the multiple operation and maintenance tool execution requests; processing the multiple operation and maintenance tool execution requests according to the type tags to obtain corresponding multiple response results.
[0057] In an embodiment of the present disclosure, the electronic device may obtain the plurality of operation and maintenance tool execution requests in the first ring queue through the F-stack protocol stack, and determine the type tags of the plurality of operation and maintenance tool execution requests.
[0058] Optionally, the type tag may be used to characterize the type of operation and maintenance tool corresponding to the operation and maintenance tool execution request. For example, the operation and maintenance tool may be ff_arp, ff_ifconfig, ff_traffic, etc.
[0059] Specifically, the electronic device can obtain multiple operation and maintenance tool execution requests in the first ring queue (rte_ring0) through the F-stack protocol stack, and determine the type tags of the multiple operation and maintenance tool execution requests. For example, it is determined according to the type tag that the operation and maintenance tool corresponding to the operation and maintenance tool execution request belongs to one of ff_arp, ff_ifconfig, ff_traffic, etc.
[0060] Furthermore, the electronic device may process multiple operation and maintenance tool execution requests according to the type tag to obtain corresponding multiple response results.
[0061] Specifically, the electronic device can process multiple operation and maintenance tool execution requests according to the type tag, for example, process different types of operation and maintenance tools such as ff_arp, ff_ifconfig, ff_traffic, etc. respectively, and obtain corresponding multiple response results.
[0062] Optionally, the operation and maintenance tool execution request may include process ID information and timestamp information, wherein the process ID information (pid) may be the process ID corresponding to the operation and maintenance tool execution request process; and the timestamp information may be a timestamp converted into nanoseconds.
[0063] Optionally, S130 may specifically include: creating, by the F-stack protocol stack, the corresponding second ring queue having a preset naming format according to the process number information and the timestamp information.
[0064] Optionally, the preset naming format may be a pre-set format for naming the second ring queue. For example, the preset naming format may be rte_ring_pid(x)_time(x).
[0065] Specifically, the electronic device can create a corresponding second ring queue according to the execution request of the operation and maintenance tool through the F-stack protocol stack, that is, it can create a corresponding second ring queue with a preset naming format according to the process number information (pid) and the timestamp information (time). For example, the second ring queue is created according to the process number information pid1 and the timestamp information time1, and the corresponding name is rte_ring_pid(1)_time(1).
[0066] Therefore, by creating the second circular queue through a preset naming format, the user can accurately find the second circular queue corresponding to the operation and maintenance tool according to the naming, obtain the correct result, realize the concurrent execution of multiple operation and maintenance tools, and improve the user's work efficiency.
[0067] Optionally, after S130, the F-stack operation and maintenance tool execution method may further include: detecting the usage time of the second ring queue; and recycling the second ring queue after the usage time exceeds a preset time.
[0068] In the embodiment of the present disclosure, the electronic device may detect the usage time of the second ring queue.
[0069] Furthermore, after the usage time exceeds a preset time, the second ring queue is recycled.
[0070] Optionally, the preset time may be a pre-set time. For example, the preset time may be about 1 second, which may be adjusted according to actual conditions and is not limited here.
[0071] Specifically, the electronic device can detect the usage time of the second ring queue. When the second ring queue (rte_ring_pid(x)_time(x)) is used through the F-stack operation and maintenance tool, the usage time at this time will be updated. After determining that the usage time exceeds the preset time (1s), it means that it has been correctly processed, and the occupied resources of the second ring queue (rte_ring_pid(x)_time(x)) will be reclaimed.
[0072] Optionally, S140 may specifically include: sending the plurality of response results to the user through the second ring queue having the preset naming format, so that the user executes a corresponding operation and maintenance tool.
[0073] Specifically, the electronic device can send multiple response results to the user through the second ring queue having the preset naming format, for example, sending the corresponding response result to user 1 through the second ring queue named rte_ring_pid(1)_time(1), and sending the corresponding response result to user 2 through the second ring queue named rte_ring_pid(2)_time(2).
[0074] In this way, different or the same operation and maintenance tools can be executed concurrently.
[0075] Figure 2 A flowchart of another F-stack operation and maintenance tool execution method provided by an embodiment of the present disclosure is shown.
[0076] like Figure 2 As shown, the electronic device first initializes the F-stack protocol stack, determines the first ring queue rte_ring0, and receives multiple operation and maintenance tool execution requests of the user through the first ring queue rte_ring0, wherein user 1 sends an operation and maintenance tool execution request 1 of the operation and maintenance tool ff_ifconfig eth1 including process number information pid1 and timestamp information time1; user 2 sends an operation and maintenance tool execution request 2 of the operation and maintenance tool ff_ifconfig eth2 including process number information pid2 and timestamp information time2. Then, the electronic device can process the network data packet through the F-stack protocol stack, obtain the operation and maintenance tool execution request to be processed from the first ring queue rte_ring0, and create a corresponding second ring queue, namely rte_ring_pid(1)_time(1) and rte_ring_pid(2)_time(2), and send the corresponding response result to the corresponding second ring queue. The electronic device can also detect the usage time of the second ring queue. After the usage time exceeds the preset time, the occupied resources of the second ring queue are recovered, and then user 1 can obtain the operation and maintenance tool ff_ifconfig in the second ring queue rte_ring_pid(1)_time(1). For the response result corresponding to eth1, user 2 can obtain the response result corresponding to the operation and maintenance tool ff_ifconfig eth2 in the second ring queue rte_ring_pid(2)_time(2).
[0077] Figure 3 A code schematic diagram of a verification method provided by an embodiment of the present disclosure is shown.
[0078] like Figure 3As shown, the electronic device can verify the execution method of the above-mentioned F-stack operation and maintenance tool, open more than one terminal in the form of a script to simulate the situation where multiple users send requests at the same time, and the three terminals run different or the same operation and maintenance tools, for example: for iin{1..999}; do. / ifconfig vfus-0; done, for iin{1..999}; do. / ifconfig vfus-1; done, for iin{1..999}; do. / traffic; done, and obtain the corresponding results, so that different or the same operation and maintenance tools can be executed concurrently.
[0079] Figure 4 A schematic diagram of the structure of an F-stack operation and maintenance tool execution device provided in an embodiment of the present disclosure is shown.
[0080] like Figure 4 As shown, the F-stack operation and maintenance tool execution device 400 may include a request receiving module 410 , a request processing module 420 , a first sending module 430 and a second sending module 440 .
[0081] The request receiving module 410 may be configured to receive multiple operation and maintenance tool execution requests from a user through a first ring queue.
[0082] The request processing module 420 can be used to obtain and process multiple operation and maintenance tool execution requests in the first ring queue through the F-stack protocol stack to obtain corresponding multiple response results.
[0083] The first sending module 430 can be used to create a corresponding second ring queue according to each operation and maintenance tool execution request through the F-stack protocol stack, and send the multiple response results to the corresponding second ring queue.
[0084] The second sending module 440 can be used to send the multiple response results to the user through the second ring queue, so that the user executes the corresponding operation and maintenance tool.
[0085] Therefore, in the embodiment of the present disclosure, it is possible to receive multiple operation and maintenance tool execution requests from the user through the first circular queue, and then obtain and process the multiple operation and maintenance tool execution requests in the first circular queue through the F-stack protocol stack to obtain corresponding multiple response results, and then create a corresponding second circular queue according to each operation and maintenance tool execution request through the F-stack protocol stack, and send the multiple response results to the corresponding second circular queue, and finally send the multiple response results to the user through the second circular queue, so that the user executes the corresponding operation and maintenance tool. Thus, the corresponding second circular queue is created according to different operation and maintenance tool execution requests through the F-stack protocol stack, thereby realizing concurrent execution of multiple operation and maintenance tools and improving user work efficiency.
[0086] In some embodiments of the present disclosure, the first circular queue has a multi-producer single-consumer attribute, and the second circular queue has a single-producer single-consumer attribute.
[0087] In some embodiments of the present disclosure, the operation and maintenance tool execution request includes process number information and timestamp information.
[0088] In some embodiments of the present disclosure, the request processing module 420 may specifically include a request acquisition unit and a request processing unit.
[0089] The request acquisition unit may be configured to acquire the plurality of operation and maintenance tool execution requests in the first ring queue through the F-stack protocol stack, and determine type tags of the plurality of operation and maintenance tool execution requests.
[0090] The request processing unit can be used to process multiple operation and maintenance tool execution requests according to the type tag to obtain corresponding multiple response results.
[0091] In some embodiments of the present disclosure, the first sending module 430 may specifically include a queue creating unit.
[0092] The queue creation unit may be configured to create the corresponding second ring queue having a preset naming format according to the process number information and the timestamp information through the F-stack protocol stack.
[0093] In some embodiments of the present disclosure, the F-stack operation and maintenance tool execution device 400 may further include a time detection module and a queue recovery module.
[0094] The time detection module can be used to detect the usage time of the second ring queue after the F-stack protocol stack creates a corresponding second ring queue according to each operation and maintenance tool execution request and sends multiple response results to the corresponding second ring queue.
[0095] The queue recycling module can be used to recycle the second ring queue after the usage time exceeds a preset time.
[0096] In some embodiments of the present disclosure, the second sending module 440 may be specifically configured to send the plurality of response results to the user via the second ring queue having the preset naming format, so that the user executes the corresponding operation and maintenance tool.
[0097] It should be noted that Figure 4 The F-stack operation and maintenance tool execution device 400 shown can execute Figures 1 to 3 The various steps in the method embodiment shown in the figure are implemented Figures 1 to 3 The various processes and effects in the method embodiment shown are not described in detail here.
[0098] Figure 5 A schematic diagram of the structure of an F-stack operation and maintenance tool execution device provided in an embodiment of the present disclosure is shown.
[0099] In some embodiments of the present disclosure, Figure 5 The F-stack operation and maintenance tool execution device shown may be an electronic device. Specifically, the electronic device may include but is not limited to devices such as computer devices, cloud servers or cloud server clusters.
[0100] like Figure 5 As shown, the F-stack operation and maintenance tool execution device may include a processor 501 and a memory 502 storing computer program instructions.
[0101] Specifically, the processor 501 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0102] The memory 502 may include a large capacity memory for information or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 502 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 502 may be inside or outside the integrated gateway device. In a particular embodiment, the memory 502 is a non-volatile solid-state memory. In a particular embodiment, the memory 502 includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (Electrically Erasable Programmable ROM, EEPROM), an electrically rewritable ROM (EAROM) or a flash memory, or a combination of two or more of these.
[0103] The processor 501 reads and executes the computer program instructions stored in the memory 502 to execute the steps of the F-stack operation and maintenance tool execution method provided in the embodiment of the present disclosure.
[0104] In one example, the F-stack operation and maintenance tool execution device may further include a transceiver 503 and a bus 504. Figure 5 As shown, the processor 501, the memory 502 and the transceiver 503 are connected via a bus 504 and communicate with each other.
[0105] The bus 504 includes hardware, software, or both. For example, but not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, the bus 504 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
[0106] The embodiments of the present disclosure also provide a computer-readable storage medium, which may store a computer program. When the computer program is executed by a processor, the processor implements the F-stack operation and maintenance tool execution method provided by the embodiments of the present disclosure.
[0107] The above-mentioned storage medium may, for example, include a memory 502 of computer program instructions, and the above-mentioned instructions may be executed by a processor 501 of the F-stack operation and maintenance tool execution device to complete the F-stack operation and maintenance tool execution method provided in the embodiment of the present disclosure. Optionally, the storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a ROM, a random access memory (Random Access Memory, RAM), a compact disc read-only memory (Compact Disc ROM, CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0108] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising" is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0109] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for executing an F-stack operation and maintenance tool, It is characterized in that include: Receiving multiple operation and maintenance tool execution requests from the user through the first ring queue; Acquire and process the plurality of operation and maintenance tool execution requests in the first ring queue through the F-stack protocol stack to obtain a plurality of corresponding response results; Creating a corresponding second ring queue according to each operation and maintenance tool execution request through the F-stack protocol stack, and sending the plurality of response results to the corresponding second ring queue; The plurality of response results are sent to the user through the second ring queue, so that the user executes the corresponding operation and maintenance tool.
2. The method according to claim 1, It is characterized in that The first ring queue has a multi-producer single-consumer attribute, and the second ring queue has a single-producer single-consumer attribute.
3. The method according to claim 1, It is characterized in that The operation and maintenance tool execution request includes process number information and timestamp information.
4. The method according to claim 1, It is characterized in that The acquiring and processing the plurality of operation and maintenance tool execution requests in the first ring queue through the F-stack protocol stack to obtain the corresponding plurality of response results includes: Acquire the plurality of operation and maintenance tool execution requests in the first ring queue through the F-stack protocol stack, and determine type tags of the plurality of operation and maintenance tool execution requests; The plurality of operation and maintenance tool execution requests are processed according to the type tag to obtain corresponding plurality of response results.
5. The method according to claim 3, It is characterized in that The creating a corresponding second ring queue according to each operation and maintenance tool execution request through the F-stack protocol stack includes: The corresponding second ring queue with a preset naming format is created according to the process number information and the timestamp information through the F-stack protocol stack.
6. The method according to claim 1, It is characterized in that After creating a corresponding second ring queue according to each of the operation and maintenance tool execution requests through the F-stack protocol stack, and sending a plurality of the response results to the corresponding second ring queue, the method further includes: Detecting the usage time of the second ring queue; After the usage time exceeds a preset time, the second ring queue is recycled.
7. The method according to claim 5, It is characterized in that Sending the plurality of response results to the user through the second ring queue so that the user executes a corresponding operation and maintenance tool includes: The plurality of response results are sent to the user via the second ring queue having the preset naming format, so that the user executes the corresponding operation and maintenance tool.
8. An F-stack operation and maintenance tool execution device, It is characterized in that include: A request receiving module, used for receiving multiple operation and maintenance tool execution requests from users through a first ring queue; A request processing module, used for acquiring and processing the plurality of operation and maintenance tool execution requests in the first ring queue through the F-stack protocol stack, and obtaining a plurality of corresponding response results; A first sending module, configured to create a corresponding second ring queue according to each operation and maintenance tool execution request through the F-stack protocol stack, and send the plurality of response results to the corresponding second ring queue; The second sending module is used to send the multiple response results to the user through the second ring queue, so that the user executes the corresponding operation and maintenance tool.
9. An F-stack operation and maintenance tool execution device, It is characterized in that include: processor; A memory for storing executable instructions; The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the F-stack operation and maintenance tool execution method described in any one of claims 1 to 7.
10. A non-volatile computer-readable storage medium, It is characterized in that The storage medium stores a computer program, and when the computer program is executed by the processor, the processor implements the F-stack operation and maintenance tool execution method described in any one of claims 1 to 7.
