A method and device for sending configuration information

By using the first and second type of function calls between the main control board and the business board in a box-type device, the process of issuing configuration information is simplified, and the configuration information transmission complexity and low development efficiency in a box-type device are solved. The problem of development efficiency has been improved.

CN114327681BActive Publication Date: 2024-11-22HANGZHOU DPTECH INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111656425.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2024-11-22
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

In frame-based devices, the process of issuing configuration information is cumbersome, resulting in low development efficiency, and business modules need to consider the details of data transmission between the core and the user state.

Method used

The configuration information is written to the main control board kernel through the first type of function on the main control board, and periodically traverse the main control board kernel, and the configuration information is sent to the target business board. The second type of function in the target business board will be configured Information is written to the service board core, simplifying the transmission process of configuration information.

Benefits of technology

It reduces the complexity of the business module implementation code, improves development efficiency, and prevents users from considering the logical details of the configuration information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114327681B_ABST
    Figure CN114327681B_ABST
Patent Text Reader

Abstract

The present specification provides a method and device for sending configuration information, which are applied to a frame-type device; wherein the frame-type device includes at least one main control board and at least one business board; a first type of function for writing configuration information to be sent to the business board into the main control board kernel is run on the main control board, and a second type of function for sending configuration information to the business board kernel is run on the business board; the method includes: obtaining configuration information to be sent from the main control board to a target business board, and using the configuration information as a calling parameter to initiate a function call for the first type of function to write the configuration information into the main control board kernel; periodically traversing the main control board kernel, and sending the configuration information in the main control board kernel to the target business board; and initiating a function call for the second type of function based on the configuration information to write the configuration information into the target business board kernel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method and device for sending configuration information. Background Art

[0002] A frame device usually includes multiple boards. For example, the boards in a frame device usually include a main control board, a standby main control board, and a service board, etc. Among them, the service board is a board that implements various network services, security services, and application functions; the main control board is used to configure and manage the entire frame device, and to process some complex services; the standby main control board is a backup device for the main control board, and saves the same configuration as the main control board. When the main control board fails, the frame device automatically switches the standby main control board to the main control board to take over the work of the original main control board.

[0003] In actual applications, the main control board needs to send configuration information and other data to the standby main control board or business board according to actual conditions, so as to achieve management of the frame-type equipment. However, the process of sending configuration information is cumbersome, so how to simplify the process of sending configuration information is an urgent problem to be solved in this field. Summary of the invention

[0004] According to a first aspect of an embodiment of the present specification, a method for sending configuration information is provided, which is applied to a frame-type device; wherein the frame-type device includes at least one main control board and at least one service board; a first type of function for writing configuration information to be sent to the service board into a main control board kernel is run on the main control board, and a second type of function for sending configuration information to the service board kernel is run on the service board; the method includes:

[0005] Acquire configuration information to be sent by the main control board to the target service board, and use the configuration information as a call parameter to initiate a function call for the first type of function, so as to write the configuration information into the main control board kernel;

[0006] Periodically traverse the main control board kernel and send the configuration information in the main control board kernel to the target service board;

[0007] A function call for the second type of function is initiated based on the configuration information to write the configuration information into the target service board kernel.

[0008] In one embodiment of the present specification, a service process for sending the configuration information to the target service board is run on the main control board;

[0009] Acquiring configuration information to be sent by the main control board to the target service board, and using the configuration information as a call parameter to initiate a function call for the first type of function to write the configuration information into the main control board kernel, including:

[0010] The service process obtains the configuration information to be sent by the main control board to the target service board, and uses the configuration information as a calling parameter;

[0011] In response to the calling parameter, the business process initiates a function call for the first type of function to write the configuration information into a queue for storing configuration information in the kernel of the main control board.

[0012] In one embodiment of the present specification, the configuration information includes the function type and function name information of the second type of function, the slot number and type information of the business board or a combination thereof; the calling parameters include the configuration information and the process number of the business process.

[0013] In one embodiment of the present specification, in response to the call parameter, the service process initiates a function call for the first type of function to write the configuration information into a queue for storing configuration information in the kernel of the main control board, including:

[0014] In response to the calling parameters, the business process initiates a function call for the first type of function, and determines the node in the queue for storing the configuration information based on the function name information of the second type of function in the configuration information and the process number of the business process, so as to write the configuration information into the node of the queue for storing configuration information in the kernel of the main control board.

[0015] In one embodiment of the present specification, the target service board runs a server process for executing a function call for the second type of function; the main control board runs a client process for initiating a function call for the second type of function and a plurality of channel threads for sending data to the service board;

[0016] The sending the configuration information in the kernel of the main control board to the target service board includes:

[0017] A target channel thread is determined from the multiple channel threads based on the configuration information, and the configuration information in the main control board kernel is sent to a target service board through the target channel thread.

[0018] In one embodiment of the present specification, the channel thread stores the creation information of the channel thread;

[0019] The determining a target channel thread from the plurality of channel threads based on the configuration information comprises:

[0020] The configuration information is matched with the creation information of the multiple channel threads to determine a target channel thread.

[0021] In one embodiment of the present specification, the first type of function is a user state function; and the second type of function is a kernel state function.

[0022] According to a second aspect of an embodiment of the present specification, a storage medium is provided, which is applied to a frame device; wherein the frame device includes at least one main control board and at least one service board; a first type of function for writing configuration information to be sent to the service board into a main control board kernel is run on the main control board, and a second type of function for sending configuration information to the service board kernel is run on the service board; the storage medium stores computer instructions, which, when executed by a processor, implement the steps of the method described below:

[0023] Acquire configuration information to be sent by the main control board to the target service board, and use the configuration information as a call parameter to initiate a function call for the first type of function, so as to write the configuration information into the main control board kernel;

[0024] Periodically traverse the main control board kernel and send the configuration information in the main control board kernel to the target service board;

[0025] A function call for the second type of function is initiated based on the configuration information to write the configuration information into the target service board kernel.

[0026] According to a third aspect of an embodiment of this specification, a device for issuing configuration information is provided, including:

[0027] The first type of function calling module is used to obtain the configuration information to be sent by the main control board to the target service board, and use the configuration information as a calling parameter to initiate a function call for the first type of function to write the configuration information into the main control board kernel;

[0028] An information transmission module, used for periodically traversing the main control board kernel and sending the configuration information in the main control board kernel to a target service board;

[0029] The second type of function calling module is used to initiate a function call for the second type of function based on the configuration information to write the configuration information into the target service board kernel.

[0030] According to a fourth aspect of an embodiment of the present specification, a computing device is provided, which is used in a frame device; wherein the frame device includes at least one main control board and at least one service board; a first type of function for writing configuration information to be sent to the service board into a main control board kernel is run on the main control board, and a second type of function for sending configuration information to the service board kernel is run on the service board; the processor implements the following method by running the executable instruction:

[0031] Acquire configuration information to be sent by the main control board to the target service board, and use the configuration information as a call parameter to initiate a function call for the first type of function, so as to write the configuration information into the main control board kernel;

[0032] Periodically traverse the main control board kernel and send the configuration information in the main control board kernel to the target service board;

[0033] A function call for the second type of function is initiated based on the configuration information to write the configuration information into the target service board kernel.

[0034] The technical solutions provided by the embodiments of this specification may have the following beneficial effects:

[0035] In the embodiments of this specification, by calling the above-mentioned first and second type functions, the configuration information is sent to the target business board, so that the user does not need to consider the details related to how to send data to the kernel's sending logic, which can reduce the complexity of the code and improve development efficiency.

[0036] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and, together with the description, serve to explain the principles of the specification.

[0038] Figure 1 It is a schematic diagram of sending configuration information according to an exemplary embodiment of this specification.

[0039] Figure 2 The flowchart of a method for issuing configuration information is shown in this specification according to an exemplary embodiment.

[0040] Figure 3 It is a schematic diagram of sending configuration information according to an exemplary embodiment of this specification.

[0041] Figure 4 It is a block diagram of a device for issuing configuration information according to an exemplary embodiment of the present specification.

[0042] Figure 5 This specification is a hardware architecture diagram of a computing device according to an exemplary embodiment. DETAILED DESCRIPTION

[0043] The principles and spirit of this specification will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement this specification, and are not intended to limit the scope of this specification in any way. On the contrary, these embodiments are provided to make this specification more thorough and complete, and to fully convey the scope of this specification to those skilled in the art.

[0044] Those skilled in the art know that the embodiments of this specification can be implemented as a system, device, equipment, method or computer program product. Therefore, this specification can be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.

[0045] According to the implementation manner of this specification, a method, medium, apparatus and computing device for sending configuration information are proposed.

[0046] In this specification, it should be understood that the terms involved represent. In addition, any number of elements in the drawings is for illustration rather than limitation, and any naming is only for distinction and does not have any limiting meaning.

[0047] The principles and spirit of the present specification are explained in detail below with reference to several representative implementations of the present specification.

[0048] Application Scenario Overview

[0049] See also Figure 1 , Figure 1 This is a schematic diagram of a process for sending configuration information shown in this specification.

[0050] like Figure 1 As shown, the frame device can be equipped with at least one main control board and at least one service board. The main control board includes a user state function Ufunc1 for interacting with service module developers, a kernel state function Kfunc1 for sending a message containing configuration information to the kernel, a message queue MQ, an MCH channel for putting the message sent by Kfunc1 into the message queue MQ, and a message thread send_thread.

[0051] Corresponding to the above-mentioned main control board, the business board includes a message receiving queue BQ, a BCH channel that receives messages sent by the message sending thread send_thread and puts them into the message receiving queue BQ, a message receiving thread recv_thread, and a business board kernel state function Kfunc2 that sends configuration information according to the configuration information in the message.

[0052] According to the above scheme, the business developers need to first implement the user-state functions, kernel-state functions, channels and threads for sending and receiving messages in the main control board and the business board, and then determine the message containing the configuration information through Ufunc1 and send it to Kfunc1; Kfunc1 assembles and translates the message according to the format requirements of the MCH channel to ensure that the byte order of the message is correct, and stores the assembled and translated message in the message sending queue MQ; if the message sending queue is full, the message is discarded; the message sending thread polls to check whether the message sending queue MQ is empty. If MQ is not empty, the message is taken out from the message sending queue MQ and sent to the BCH channel of the target business board; after the BCH channel of the target business board receives the message, it first stores the message in the message receiving queue BQ; the message receiving thread recv_thread polls the message receiving queue BQ. If the queue BQ is not empty, the message is taken out, and the business board kernel state function Kfunc2 is called according to the configuration information contained in the message to send the configuration operation.

[0053] exist Figure 1 In the scheme shown, the implementation of function functions involves highly complex and error-prone issues such as the byte order, organization form, total length and message format of the message; the message transmission path in this scheme is lengthy, and business developers are required to implement function functions in user mode and kernel mode respectively, so the development efficiency is low. SUMMARY OF THE INVENTION

[0055] As mentioned above, when using Figure 1 In the scenario shown, the user state functions, kernel state functions, channels, and message sending and receiving threads of the main control board and the business board are first implemented, and then the configuration information is sent down through a lengthy path, which usually leads to low development efficiency.

[0056] In view of this, this specification provides a method in which the configuration information is written into the main control board kernel through the first type of function running on the main control board, the main control board kernel then sends the configuration information to the target business board, and the second type of function running in the target business board writes the configuration information into the target business board.

[0057] The core technical concept of this manual is:

[0058] The frame-type device can automatically write the configuration information into the kernel of the main control board by calling the first type of function of the main control board and send it to the target business board, and then call the second type of function in the target business board to store the configuration information into the kernel of the target business board. This solution allows users to avoid having to consider details such as how to send the configuration information to the kernel and how to send data from the kernel to the business board, thereby reducing the complexity of the business module implementation code and improving development efficiency.

[0059] In this way, the frame device calls the first and second functions to send the configuration information to the target business board, so that the developers of the business module do not need to consider details such as how to send data to the kernel, which can reduce the complexity of the code and improve development efficiency.

[0060] Exemplary Methods

[0061] The technical concept of this specification will be described in detail through specific embodiments. Next, the embodiments of this specification will be described in detail.

[0062] like Figure 2 As shown, Figure 2 This is a flow chart of a method for sending configuration information according to an exemplary embodiment of the present specification. The method is applied to a frame-type device.

[0063] The frame device may include at least one main control board and at least one service board; the main control board may run a first type of function for writing configuration information to be sent to the service board into the main control board kernel, and the service board may run a second type of function for sending configuration information to the service board kernel; the steps include:

[0064] Step 202, obtaining configuration information to be sent by the main control board to the target service board, and using the configuration information as a call parameter to initiate a function call for the first type of function, so as to write the configuration information into the kernel of the main control board;

[0065] The above-mentioned frame device can be a device that deploys a main control board, a business board, and a standby main control board; for example, in one example, the main control board in the frame device can send configuration information to the business board, or, in the event of a failure of the main control board, the standby main control board can send configuration information to the business board; in another example, the main control board in the frame device can send configuration information to the standby main control board.

[0066] The above configuration information may include one or a combination of the function type and function name information of the second type of function, the slot number and type information of the service board; and may also be identification information of the configuration information determined based on the configuration information. Function types include but are not limited to blocking, non-blocking, important, unimportant, etc. The identification information of the configuration information may be determined based on other information, for example, the identification information of the configuration information may be determined based on the function name information of the second type of function, or the board slot number information of the service board.

[0067] After obtaining the configuration information to be sent from the main control board to the target service board, the configuration information can be used as a calling parameter to initiate a function call for the first type of function to write the configuration information into the main control board kernel.

[0068] In one example, the kernel of the main control board may also store function return values ​​corresponding to the configuration information. It may be determined whether there is a return value after calling the first type of function based on the configuration information, and whether there is a return value may be derived from the function type in the configuration information. For example, when the function type of the second type of function in the configuration information is blocking, there is a return value, and when the function type is non-blocking, there is no return value. If there is a return value, the return value may be obtained from the kernel, and the return value may be sent to the target service board together with the configuration information.

[0069] In one embodiment shown, a service process for sending configuration information to a target service board can be run on the main control board, and the call parameters can include the configuration information and the process number of the service process. After the service process obtains the configuration information to be sent to the target service board by the main control board, the configuration information can be used as a call parameter to initiate a function call for the first type of function to write the configuration information into a queue for storing configuration messages in the kernel of the main control board. The queue is a storage space and has multiple implementation methods, which are not limited in this specification. For example, a stack, a linked list, etc. can be used.

[0070] In this case, the business process can call the first type of function to store the configuration message in the queue in the kernel of the main control board.

[0071] In one embodiment shown, in response to a call parameter, a business process can initiate a function call for a first type of function. The business process can generate identification information of the configuration information based on the function name of the second type of function, and determine the node of the configuration information queue based on the identification information of the configuration information and the process number of the business process to write the configuration information to the node of the queue in the kernel of the main control board. This can avoid a business process sending configuration information to multiple business boards, and can also avoid multiple business processes sending configuration information to the same business board.

[0072] Step 204, periodically traverse the main control board kernel, and send the configuration information in the main control board kernel to the target service board;

[0073] The target business board runs a server process for executing a function call for the second type of function; the main control board runs a client process for initiating a function call for the second type of function and multiple channel threads for sending data to the business board

[0074] The main control board may run a client process for initiating a function call for the second type of function and a plurality of channel threads for sending data to the business board, and the target business board may run a server process for executing a function call for the second type of function. The client process periodically traverses the queue in the kernel of the main control board to determine whether there is configuration information to be sent in the node of the configuration information queue, and if so, sends the configuration information to the target business board.

[0075] The client process on the main control board and the server process on the business board can communicate through channel threads, and the channel threads can be created in advance.

[0076] In an embodiment shown, the main control board and the business board can be connected through multiple channel threads, and the target channel thread among the multiple channel threads can be determined based on the configuration information, and the configuration information in the queue node in the main control board kernel is sent to the target business board. Among them, the channel thread can save the creation information generated when the channel thread is created, and the creation information can be one or a combination of the connection information, runnable status information, creation tag information, and channel thread type information of the channel thread. The channel thread type can correspond to the type of configuration information, including but not limited to blocking, non-blocking, important, unimportant, etc.

[0077] In another embodiment shown, the client process may match the configuration information with the creation information of multiple channel threads, determine the target channel thread, and send the configuration information to the target service board through the target channel thread.

[0078] In one example, the main control board can use the same channel thread to communicate with the blocking channel thread in the business board, and can use the channel thread corresponding to each business board to communicate with the non-blocking channel thread of each business board; important channels can run in CPUs with fewer processes, so that the configuration information can be sent to the business board and get a timely response, and non-important channels can run in CPUs with more processes, so as not to occupy the CPU resources of important processes. For example, the client process matches the function type in the configuration information with the channel type. If the function type is non-blocking, the channel thread with the non-blocking type is determined as the target channel thread through matching.

[0079] In another example, if the target channel thread is not found in the existing channel threads, the channel thread type may be determined according to the matching result and the channel thread may be created, and the creation information of the channel thread may be saved.

[0080] Step 206: Initiate a function call for the second type of function based on the configuration information to write the configuration information into the target service board kernel.

[0081] The service board may run a server process that communicates with the client process in the main control board. The server process may initiate a function call for the second type of function based on the configuration information to write the configuration information into the target service board kernel.

[0082] In another embodiment shown, the first type of function may be a user state function, and the second type of function may be a kernel state function.

[0083] like Figure 3 As shown, Figure 3 A schematic diagram of sending configuration information according to a specific embodiment of this specification.

[0084] The business process in the main control board obtains the configuration information to be sent to the business board, which includes the function type and function name information of the second-class function, the slot number and type information of the business board, etc.; obtains the process number of the business process; and generates identification information of the configuration information based on the configuration information. The above configuration information, the process number of the business process and the identification information of the configuration information are used as call parameters to initiate a call to the first-class function. The first-class function jointly determines the node FQ1 on the queue in the kernel of the main control board to store the configuration information based on the identification information of the configuration information and the process number of the business process, and stores the configuration information on the node.

[0085] The client process in the main control board periodically traverses each node on the queue in the kernel of the main control board to determine whether there is configuration information to be sent in the nodes of the queue. If so, the client process can match the configuration information with the creation information of multiple pre-created channel threads, determine the target channel thread, send the configuration information to the target business board through the target channel thread, and initiate a function call for the second type of function. Assuming that the function type contained in the configuration information in FQ1 is blocking, the blocking channel thread T1 in the main control board can be used as the target channel thread; assuming that the function type contained in the configuration information in FQ2 is non-blocking, the channel threads in the main control board that correspond to each business board individually and the non-blocking channel threads of each business board can be used as the target channel threads, such as the B1T2 channel thread corresponding to the T2 channel thread in business board B1, or the B2T2 channel thread corresponding to the T2 channel thread in business board B2.

[0086] The server process running in the service board can execute a function call for the second type of function based on the configuration information to write the configuration information into the target service board kernel.

[0087] In an exemplary embodiment of the present specification, a device for delivering configuration information is provided.

[0088] like Figure 4 As shown, Figure 4This is a block diagram of a device for sending configuration information according to an exemplary embodiment of the present specification, and the device is applied to a frame device; wherein the frame device includes at least one main control board and at least one service board; a first type of function for writing configuration information to be sent to the service board into the main control board kernel is run on the main control board, and a second type of function for sending configuration information to the service board kernel is run on the service board; the device includes:

[0089] The first type function calling module 402 is used to obtain the configuration information to be sent by the main control board to the target service board, and use the configuration information as a calling parameter to initiate a function call for the first type function to write the configuration information into the main control board kernel;

[0090] The information transmission module 404 is used to periodically traverse the main control board kernel and send the configuration information in the main control board kernel to the target service board;

[0091] The second type function calling module 406 is used to initiate a function call for the second type function based on the configuration information to write the configuration information into the target service board kernel.

[0092] In an exemplary embodiment of the present specification, a computing device capable of implementing the above method is also provided.

[0093] The embodiments of the device for sending configuration information in this specification can be applied to computer devices, such as servers or terminal devices. The device embodiments can be implemented by software, hardware, or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor where the configuration information is sent to read the corresponding computer program instructions in the non-volatile memory into the memory and run them. From the hardware level, if Figure 5 As shown in the figure, it is a hardware structure diagram of the computer device where the device for sending configuration information in the embodiment of this specification is located, except Figure 5In addition to the processor 510, memory 530, network interface 520, and non-volatile memory 540 shown, the server or electronic device where the device 531 is located in the embodiment may also include other hardware, usually according to the actual function of the computer device, which will not be described in detail. Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of this specification can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a U disk, a mobile hard disk, etc.) or on a network, including a number of instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of this specification.

[0094] In the exemplary embodiments of this specification, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of this specification is stored. In some possible embodiments, various aspects of this specification can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of this specification described in the above "Exemplary Method" section of this specification.

[0095] The program product for implementing the above method according to the embodiment of the present specification may adopt a portable compact disk read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present specification is not limited thereto, and in this document, a readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device.

[0096] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0097] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0098] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0099] Program code for performing the operations of the present specification may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0100] Those skilled in the art will readily appreciate other embodiments of the present specification after considering the specification and practicing the specifications disclosed herein. The present specification is intended to cover any variations, uses, or adaptations of the present specification that follow the general principles of the present specification and include common knowledge or customary technical means in the art that are not disclosed in the present specification. The description and embodiments are to be regarded as exemplary only, and the true scope and spirit of the present specification is indicated by the claims.

[0101] It should be noted that, although several units / modules or subunits / modules of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of this specification, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.

[0102] In addition, although the operations of the method of the present specification are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0103] Although the spirit and principle of this specification have been described with reference to several specific embodiments, it should be understood that this specification is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and this division is only for the convenience of expression. This specification is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims.

Claims

1. A method for sending configuration information, applied to a frame-type device; wherein: The frame device includes at least one main control board and at least one service board; the main control board runs a first type of function for writing configuration information to be sent to the service board into the main control board kernel, and the service board runs a second type of function for sending configuration information to the service board kernel; including: Acquire configuration information to be sent by the main control board to the target service board, and use the configuration information as a call parameter to initiate a function call for the first type of function, so as to write the configuration information into the main control board kernel; Periodically traverse the main control board kernel and send the configuration information in the main control board kernel to the target service board; A function call for the second type of function is initiated based on the configuration information to write the configuration information into the target service board kernel.

2. According to the method of claim 1, a service process for sending the configuration information to the target service board is run on the main control board; Acquiring configuration information to be sent by the main control board to the target service board, and using the configuration information as a call parameter to initiate a function call for the first type of function to write the configuration information into the main control board kernel, including: The service process obtains the configuration information to be sent by the main control board to the target service board, and uses the configuration information as a calling parameter; In response to the calling parameter, the business process initiates a function call for the first type of function to write the configuration information into a queue for storing configuration information in the kernel of the main control board.

3. According to the method described in claim 2, the configuration information includes one or a combination of the function type and function name information of the second type of function, the slot number and type information of the business board; the calling parameters include the configuration information and the process number of the business process.

4. The method according to claim 3, wherein in response to the call parameter, the service process initiates a function call for the first class function to write the configuration information into a queue for storing configuration information in the main control board kernel, comprising: In response to the calling parameters, the business process initiates a function call for the first type of function, and determines the node in the queue for storing the configuration information based on the function name information of the second type of function in the configuration information and the process number of the business process, so as to write the configuration information into the node of the queue for storing configuration information in the kernel of the main control board.

5. According to the method of claim 1, the target service board runs a server process for executing a function call for the second type of function; the main control board runs a client process for initiating a function call for the second type of function and a plurality of channel threads for sending data to the service board; The sending the configuration information in the kernel of the main control board to the target service board includes: A target channel thread is determined from the multiple channel threads based on the configuration information, and the configuration information in the main control board kernel is sent to a target service board through the target channel thread.

6. The method according to claim 5, wherein the channel thread stores the creation information of the channel thread; The determining a target channel thread from the plurality of channel threads based on the configuration information comprises: The configuration information is matched with the creation information of the multiple channel threads to determine a target channel thread.

7. According to the method of claim 1, the first type of function is a user state function; the second type of function is a kernel state function.

8. A device for sending configuration information, applied to a frame-type device; wherein: The frame device includes at least one main control board and at least one service board; the main control board runs a first type of function for writing configuration information to be sent to the service board into the main control board kernel, and the service board runs a second type of function for sending configuration information to the service board kernel; including: The first type of function calling module is used to obtain the configuration information to be sent by the main control board to the target service board, and use the configuration information as a calling parameter to initiate a function call for the first type of function to write the configuration information into the main control board kernel; An information transmission module, used for periodically traversing the main control board kernel and sending the configuration information in the main control board kernel to a target service board; The second type of function calling module is used to initiate a function call for the second type of function based on the configuration information to write the configuration information into the target service board kernel.

9. A storage medium having computer instructions stored thereon, which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 7.

10. A computing device comprising: processor; a memory for storing processor-executable instructions; The processor implements the method according to any one of claims 1 to 7 by running the executable instructions.