A scheduling normalization management method and device for a multi-agent security forwarding module

By adopting the scheduling normalization management method of the multi-agent secure forwarding module in the frame device to handle the data transmission between channels and modules in the frame device, the problem of complexity of data transmission between different channels and modules is solved, and the data efficiency is improved. Synchronization performance and system stability.

CN118400449BActive Publication Date: 2024-08-23HANGZHOU DPTECH TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410850906.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-08-23
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

Data transmission between different channels and business modules in frame-type devices requires multi-level caches for data format conversion, resulting in high system overhead, high maintenance difficulty, and poor stability.

Method used

Using the scheduling normalization management method of the multi-agent secure forwarding module, the message header is generated by setting the channel protocol, and data is processed and sent according to the channel type, inter-chassis device ID and board ID, including fragmentation and aggregation and reassembly processing. And sorted according to forwarding priority.

Benefits of technology

It improves the performance of data synchronization and interaction between frames and boards, reduces maintenance difficulty and cost, and enhances system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118400449B
    Figure CN118400449B
Patent Text Reader

Abstract

The present application provides a scheduling normalization management method and device for a multi-subject security forwarding module, which is applied to a frame-type device, and its main control board and business board are provided with multiple business modules. The business module sends the message to be sent to the corresponding communication channel according to the business requirements and the set channel protocol. The communication channel includes the main control, inter-frame and inter-board channels. The communication channel fragments and / or aggregates and reorganizes the message to be sent; and the communication channel parses the received message according to the set channel protocol, obtains the target parameters and module type parameters, splits and / or aggregates and reorganizes the received message according to the target parameters, and sends the processed message to the corresponding business module according to the module type parameters. By normalizing the protocols used by different types of communication channels, the data synchronization interaction performance between frames and boards is improved, the maintenance difficulty and cost of each component in the frame-type device are reduced, and the stability of the system is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a scheduling normalization management method and device for a multi-agent secure forwarding module. Background Art

[0002] Frame devices are increasingly being used due to their high performance and powerful computing capabilities. They include main control boards and service boards. The main control board is used to control the normal operation of the device, uniformly manage the configuration and status display of all boards, and uniformly store the configuration files of the device. The service board is used to implement various network services, security services, and application functions. Multiple frame devices can be virtualized into one logical device based on the virtual switching matrix VSM (Virtual Switching Matrix). The main control board and the service board communicate through the inter-board channel, the two main control boards communicate through the main control channel, and the frame devices communicate through the inter-frame channel.

[0003] In the related art, the inter-frame channels, inter-board channels and main control channels are all independent channels, and different channels use different data formats. Therefore, when transmitting data between different channels or business modules, multi-level cache is required to convert the data format, resulting in large system overhead and high maintenance difficulty and cost of each channel and business module, and poor stability of the entire system. Summary of the invention

[0004] In view of this, the present application provides a scheduling normalization management method and device for a multi-agent secure forwarding module to address the deficiencies in the related art.

[0005] In a first aspect of the present application, a scheduling normalization management method for a multi-agent security forwarding module is provided, which is applied to a frame-type device, wherein the frame-type device includes a main control board and a service board, and multiple service modules are arranged on the main control board and the service board, including:

[0006] The service module generates a header of a message to be sent according to service requirements and a set channel protocol, wherein the set channel protocol at least includes a channel type, an inter-chassis device ID, and a board ID;

[0007] According to the channel type in the header, the message to be sent is sent to a corresponding communication channel, wherein the communication channel includes a main control channel, an inter-frame channel, and an inter-board channel;

[0008] After receiving the message to be sent on the corresponding communication channel, processing the message to be sent according to the length of the message to be sent and the maximum transmission unit of the channel, the processing includes at least one of fragmentation processing and aggregation and reassembly processing;

[0009] The communication channel sends the processed message according to the inter-chassis device ID, board ID and destination MAC indicated by the header.

[0010] According to an embodiment of the present invention, the setting channel protocol further includes forwarding priority; the communication channel sends the processed message according to the inter-chassis device ID, board ID and destination MAC indicated by the header, including:

[0011] The communication channel sends the processed message according to the forwarding priority indicated by the header.

[0012] According to an embodiment of the present invention, the fragmentation processing of the message to be sent according to the length of the message to be sent and the maximum transmission unit of the channel includes:

[0013] When it is determined that the length of the message to be sent is greater than the maximum transmission unit of the channel, fragment the message to be sent, and determine whether the fragmented message obtained after the fragmentation is the last fragmented message of the message to be sent;

[0014] If the obtained fragment message is not the last fragment message of the data to be sent, determining that the fragment message is the processed message;

[0015] If the obtained fragment message is the last fragment message of the data to be sent, and the length of the fragment message is less than a preset value, the fragment message is cached in the message buffer corresponding to the communication channel, and the messages in the message buffer are aggregated and reassembled.

[0016] According to an embodiment of the present invention, the aggregation and reassembly processing of the message to be sent according to the length of the message to be sent and the maximum transmission unit of the channel includes:

[0017] When it is determined that the length of the message to be sent is less than a preset value, the message to be sent is cached in a message buffer corresponding to the communication channel, and aggregation and reassembly processing is performed on the messages in the message buffer.

[0018] In a second aspect of the present application, a scheduling normalization management method for a multi-agent security forwarding module is provided, which is applied to a frame-type device, wherein the frame-type device includes a main control board and a service board, and the main control board and the service board are both provided with multiple service modules, including:

[0019] After receiving the message, the communication channel parses the header of the message according to the set channel protocol to obtain the target parameter and the module type parameter. The target parameter is used to characterize that the message has been aggregated, reassembled or fragmented. The communication channel includes a main control channel, an inter-frame channel and an inter-board channel.

[0020] Processing the message according to the target parameter, wherein the processing includes at least one of splitting processing and converging and reassembling processing;

[0021] According to the module type parameter, the processed message is sent to the corresponding service module.

[0022] According to one embodiment of the present invention, the method further comprises:

[0023] Parsing the header of the message according to the set channel protocol to obtain a forwarding priority parameter;

[0024] The messages are cached in a packet receiving queue of the communication channel and sorted according to the forwarding priority parameter.

[0025] According to an embodiment of the present invention, the aggregation and reassembly processing of the message according to the target parameter includes:

[0026] If the target parameter indicates that the message has been fragmented, the message is cached in a message buffer corresponding to the communication channel, and the messages in the message buffer are aggregated and reassembled.

[0027] According to an embodiment of the present invention, the splitting of the message according to the target parameter includes:

[0028] If the target parameter indicates that the message has been aggregated and reassembled, splitting the message;

[0029] In the case where it is determined that the obtained split message is not a fragmented message, determining that the split message is the processed message;

[0030] When it is determined that the obtained split message is a fragmented message, the fragmented message is cached in a message buffer corresponding to the communication channel, and the messages in the message buffer are aggregated and reassembled.

[0031] In a third aspect of the present application, a scheduling normalization management of a multi-agent security forwarding module is provided, which is applied to a frame-type device, wherein the frame-type device includes a main control board and a service board, and multiple service modules are arranged on the main control board and the service board, including:

[0032] A first processing unit, configured for the service module to generate a header of a message to be sent according to service requirements and a set channel protocol, wherein the set channel protocol at least includes a channel type, an inter-chassis device ID, and a board ID;

[0033] A first sending unit, configured to send the message to be sent to a corresponding communication channel according to the channel type in the header, wherein the communication channel includes a main control channel, an inter-frame channel, and an inter-board channel;

[0034] A second processing unit is used to process the message to be sent according to the length of the message to be sent and the maximum transmission unit of the channel after receiving the message to be sent on the corresponding communication channel, wherein the processing includes at least one of fragmentation processing and aggregation and reassembly processing;

[0035] The second sending unit is used for the communication channel to send the processed message according to the inter-frame device ID, board ID and destination MAC indicated by the header.

[0036] In a fourth aspect of the present application, a scheduling normalization management device for a multi-agent security forwarding module is provided, which is applied to a frame-type device, wherein the frame-type device includes a main control board and a service board, and the main control board and the service board are both provided with multiple service modules, including:

[0037] A parsing unit, configured to parse the header of a message according to a set channel protocol after receiving the message, and obtain a target parameter and a module type parameter, wherein the target parameter is used to characterize that the message has been aggregated, reassembled or fragmented, and the communication channel includes a master control channel, an inter-frame channel, and an inter-board channel;

[0038] A processing unit, configured to process the message according to the target parameter, wherein the processing includes at least one of splitting processing and aggregation and reassembly processing;

[0039] The sending unit is used to send the processed message to the corresponding service module according to the module type parameter.

[0040] In a fifth aspect of the present application, an electronic device is provided, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor is used to execute the machine executable instructions to implement the steps of the method proposed in the above embodiment.

[0041] In a sixth aspect of the present application, a machine-readable storage medium is provided, wherein the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are executed by a processor, the steps of the method proposed in the above embodiment are implemented.

[0042] In a seventh aspect of the present application, a computer program product is provided, comprising a computer program / instruction, which, when executed by a processor, implements the steps of the method proposed in the above-mentioned embodiment.

[0043] It can be seen from the above technical solution that the header of the message to be sent is generated by the service module according to the service requirements and the set channel protocol, and the message to be sent is sent to the corresponding communication channel according to the channel type in the header. The communication channel includes the main control channel, the inter-frame channel and the inter-board channel. After the corresponding communication channel receives the message to be sent, according to the length of the message to be sent and the maximum transmission unit of the channel, the processing includes at least one of the fragmentation processing and the aggregation and reorganization processing, and according to the inter-frame device ID, board ID and destination MAC indicated by the header, the processed message is sent. And, after receiving the message through the communication channel, the header of the message is parsed according to the set channel protocol to obtain the target parameters and module type parameters. According to the target parameters, the processing includes at least one of the splitting processing and the aggregation and reorganization processing, and according to the module type parameter, the processed message is sent to the corresponding service module. The embodiment of the present application realizes a multi-channel design of a frame-type device, and performs a normalized design on the protocols used by different types of communication channels, including the protocol itself, the message sending process and the message receiving process, as well as the fragmentation and aggregation hybrid processing, thereby improving the data synchronization interaction performance between frames and boards, reducing the maintenance difficulty and cost of each component in the frame-type device, and increasing the stability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 is a schematic diagram of the structure of an exemplary frame device provided in an embodiment of the present application;

[0045] Figure 2 It is a flow chart of a data sending method in a scheduling normalization management method of a multi-agent security forwarding module provided in an embodiment of the present application;

[0046] Figure 3 It is a flow chart of a method for processing a message through a communication channel provided in an embodiment of the present application;

[0047] Figure 4 It is a flow chart of a data receiving method in a scheduling normalization management method of a multi-agent security forwarding module provided in an embodiment of the present application;

[0048] Figure 5 It is a flow chart of a method for processing a message according to a target parameter through a communication channel provided in an embodiment of the present application;

[0049] Figure 6 It is a structural diagram of a data sending device in a scheduling normalization management device of a multi-agent security forwarding module provided in an embodiment of the present application;

[0050] Figure 7It is a structural diagram of a data sending device in a scheduling normalization management device of a multi-agent security forwarding module provided in an embodiment of the present application;

[0051] Figure 8 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0053] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0054] In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present application and to make the above-mentioned purposes, features and advantages of the embodiments of the present application more obvious and understandable, the technical solutions in the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings.

[0055] Frame devices are increasingly being used due to their high performance and powerful computing capabilities. Frame devices include main control boards and service boards. The main control boards and service boards communicate through inter-board channels, the two main control boards communicate through the main control channels, and the frame devices communicate through inter-frame channels. In related technologies, the inter-frame channels, inter-board channels, and main control channels involved in frame devices are all independent channels, and different channels use different data formats. Therefore, when transmitting data between different channels or service modules, multi-level caches are required to convert data formats, resulting in large system overhead, high difficulty and cost in maintaining each channel and service module, and poor stability of the entire system.

[0056] In view of this, the present application provides a scheduling normalization management method for a multi-subject security forwarding module, which is applied to a frame-type device, wherein the frame-type device includes a main control board and a service board, and multiple service modules are arranged on the main control board and the service board.

[0057] like Figure 1 As shown, Figure 1This is a schematic diagram of an exemplary frame device of the present application, which shows two frame devices, namely frame device 1 and frame device 2. An inter-frame channel is established between frame device 1 and frame device 2 through a cascade port, and frame device 1 and frame device 2 communicate through the inter-frame channel.

[0058] Through the inter-frame channel, synchronization of configuration information, forwarding table items, security policies and other data between different frame devices can be achieved. For example, the main control board 1 in frame device 1 can synchronize its stored configuration information, forwarding table items, security policies and other data to the main control board in frame device 2 through the inter-frame channel.

[0059] Through the inter-frame channel, data can also be forwarded across frames. For example, after a service module in frame device 1 processes the received message, it dispatches the processed message to a service module in frame device 2 through the inter-frame channel, and the message is further processed and forwarded by the service module.

[0060] Figure 1 In the figure, the frame device 1 includes two main control boards and n service boards, each service board includes n service modules, and each main control board also includes multiple service modules (not shown in the figure).

[0061] For example, the service modules running on the service board are usually function-level service modules, which are used to implement various network services, security services and application functions, such as routing modules, switching modules, firewall modules, intrusion prevention system IPS (Intrusion Prevention System) modules, etc. The service modules running on the main control board are usually system-level service modules, which are used to implement functions such as controlling the normal operation of the frame-type equipment, uniformly managing the configuration delivery and status display of all boards, and uniformly storing the configuration files of the frame-type equipment, such as configuration management modules, performance management modules, and security policy management modules.

[0062] Figure 1 In the example, the main control board 1 and the main control board 2 communicate through the main control channel, through which the configuration information, forwarding table items, security policies and other data between different main control boards can be synchronized. The main control board 1 communicates with each business board through the inter-board channel. Through the inter-board channel, the main control board can send configuration information, forwarding table items, security policies and other data to the business board, so that the business board can process the business independently. The business board can also send information such as running status, business logs, and local traffic to the main control board.

[0063] See also Figure 2 , is a flow chart of a scheduling normalization management method for a multi-agent security forwarding module provided in an embodiment of the present application. Specifically, Figure 2The flowchart of the data sending method in the management method may include the following steps:

[0064] Step 201: The service module generates a header of a message to be sent according to service requirements and a set channel protocol, wherein the set channel protocol at least includes a channel type, an inter-chassis device ID, and a board ID.

[0065] Exemplarily, the above-mentioned business module may be a business module on a main control board, or may be a business module on a business board.

[0066] Exemplarily, the setting channel protocol at least includes a channel type, an inter-frame device ID, and a board ID. The above channel type is used to characterize the communication channel to which the data needs to be sent, and the communication channel to which the data needs to be sent can be one or more of a master channel, an inter-frame channel, and an inter-board channel. Specifically, the above channel type parameter can be obtained according to a preset algorithm. For example, if data needs to be sent to a master channel and an inter-frame channel, an offset characterizing the master channel and the inter-frame channel can be obtained according to a preset algorithm, and the offset is the parameter value of the above channel type parameter. The above channel type parameter can also be a U8 type field, the first bit of the field is used to identify the master channel, the second bit is used to identify the inter-frame channel, and the third bit is used to identify the inter-board channel.

[0067] In some embodiments, the service module may obtain field information for setting the channel protocol from the system configuration or protocol document, including fields such as channel type, inter-chassis device ID, and board ID.

[0068] The service module creates a header structure of a message to be sent according to the field information of the above-mentioned set channel protocol.

[0069] The service module determines the parameter values ​​of the channel type, inter-chassis device ID, board ID and other fields according to the service requirements, and fills the above parameter values ​​into the fields corresponding to the above header structure to generate the header of the message to be sent.

[0070] Specifically, the business module can determine the destination of data forwarding or data synchronization according to its business needs, and then retrieve relevant parameter values ​​from the system configuration database, configuration file or policy according to the destination of data forwarding or data synchronization, such as destination MAC, communication channel, inter-frame device ID, board ID, etc.

[0071] In some embodiments, after the business module generates the header of the message to be sent according to the business requirements and the set channel protocol, it can perform data assembly processing, that is, according to the set channel protocol, the business information generated by the business module after business processing is assembled with the header of the above-mentioned message to be sent to combine into a complete message to be sent.

[0072] Step 202: according to the channel type in the header, the message to be sent is sent to the corresponding communication channel, wherein the communication channel includes a master control channel, an inter-frame channel, and an inter-board channel. In an embodiment of the present application, in order to determine the communication channel for sending the message to be sent, the service module can parse the header of the message to be sent, obtain the channel type parameter in the header, and thereby determine to send the message to be sent to the communication channel corresponding to the channel type parameter.

[0073] Step 203: After receiving the message to be sent on the corresponding communication channel, the message to be sent is processed according to the length of the message to be sent and the maximum transmission unit of the channel, and the processing includes at least one of fragmentation processing and aggregation and reassembly processing.

[0074] After the communication channel specified by the channel type parameter in the header receives the message from the business module, based on the data length of the message to be sent, data with a large amount of data can be fragmented, or fragmented and aggregated and reassembled, and data with a small amount of data can be aggregated and reassembled, thereby reducing channel packet queue congestion and improving data synchronization performance.

[0075] Step 204: The communication channel sends the processed message according to the inter-chassis device ID, board ID and destination MAC indicated in the header.

[0076] After completing the fragmentation or aggregation and reassembly processing of the message, the communication channel sends the message according to the destination address of the message, including the inter-frame device ID, board ID and destination MAC address, thereby realizing the data sending process in the scheduling normalization management of the multi-agent security forwarding module.

[0077] In the disclosed embodiment, the header of the message to be sent is generated by the service module according to the service requirements and the set channel protocol, and the message to be sent is sent to the corresponding communication channel according to the channel type in the header, and the communication channel includes the master control channel, the inter-frame channel and the inter-board channel. After the corresponding communication channel receives the message to be sent, according to the length of the message to be sent and the maximum transmission unit of the channel, the processing includes at least one of fragmentation processing and aggregation and reorganization processing, and the processed message is sent according to the inter-frame device ID, board ID and destination MAC indicated by the header. The embodiment of the present application realizes the multi-channel design of the frame device, and normalizes the design of the protocols used by different types of communication channels, including the protocol itself, the message sending process and the message receiving process, as well as the fragmentation and aggregation hybrid processing, which improves the data synchronization interaction performance between frames and boards, reduces the maintenance difficulty and cost of each component in the frame device, and increases the stability of the system.

[0078] In some embodiments, the set channel protocol also includes forwarding priority. The forwarding priority is set for different business modules, among which the system-level data has the highest priority. Here, the system-level business module usually refers to the business module running on the main control board, such as the configuration management module, the performance management module, the security policy management module, etc.; and the security business is also classified and graded. For high-level security business, the forwarding priority of the message is also correspondingly higher. For example, the forwarding priority of security business such as the firewall module, the intrusion detection system IDS (Intrusion Detection System) module, the IPS module, the distributed denial of service attack DDos (Distributed Denial of Service) defense module is higher.

[0079] After processing the message to be sent, the communication channel sends the processed message according to the forwarding priority indicated in the header.

[0080] When channel resources are scarce, by setting forwarding priorities, priority processing of systems and important services under mixed data can be achieved.

[0081] In some embodiments, when it is determined that the length of the message to be sent is greater than the maximum determined transmission unit of the channel, that is, the amount of data that the service module needs to send is large, the message to be sent is fragmented, and it is determined whether the fragmented message obtained after the fragmentation is the last fragmented message of the message to be sent; if the obtained fragmented message is not the last fragmented message of the data to be sent, it is determined that the fragmented message is the processed message;

[0082] If the obtained fragment message is the last fragment message of the data to be sent, and the length of the fragment message is less than a preset value, the fragment message is cached in the message buffer corresponding to the communication channel, and the messages in the message buffer are aggregated and reassembled.

[0083] When it is determined that the length of the message to be sent is less than a preset value, that is, the amount of data that the business module needs to send is small, the message to be sent is cached in the message buffer corresponding to the communication channel, and the messages in the message buffer are aggregated and reassembled.

[0084] In some embodiments, during the process of fragmenting a message, fragmentation information may be added to the obtained fragmented messages. The fragmentation information may include: message ID, number of messages, message length, check code, etc.

[0085] Among them, the message ID is used to record the fragment message in the original message. It is used for fragmentation recording. For example, if the data of the fragment message is located at the 5th position in the original data, the message ID is 5; the number of messages is used to record the number of fragment messages split from the original message; the message length is used to record the length of the data segment carried by the fragment message; the check code is used to distinguish whether the fragment message is obtained by splitting the same original message. The check codes of the fragment messages obtained by splitting the same original message are the same.

[0086] In some embodiments, the messages in the message buffer may be aggregated and reassembled in the following manner.

[0087] The messages in the message buffer are transformed into a convergence block, which includes a convergence block header and convergence block data. The multiple convergence blocks formed by the multiple messages are placed in a convergence block queue in order. When the convergence block queue meets the preset conditions, the convergence reorganization process is considered to be completed. As an example, the above preset condition may be that the sum of the data size of the convergence block queue and the data size of the convergence block to be placed is greater than a preset value. When the convergence block queue meets this condition, the above convergence block to be placed is no longer placed in the convergence block queue, and the convergence block queue processing is considered to be completed. Of course, the above preset conditions can also be to meet the time threshold, the message number threshold, the transmission window limit, etc., and the embodiments of the present application do not specifically limit this.

[0088] In some embodiments, messages sent to the same service module can be aggregated. In this case, the aggregation block header may include information such as the module type, aggregation block ID, data size and check code of the aggregation block, where the module type is used to indicate the service module to which the aggregation block queue belongs.

[0089] Figure 3 A flow chart of a method for processing a message through a communication channel is shown.

[0090] like Figure 3 As shown, first, the communication channel receives the message from the business module. In the embodiment of the present application, when the business module needs to send data (message) to the other end, there is no need to pay attention to whether the size of the data exceeds the MTU (Maximum Transmission Unit) of the channel interface. It only needs to transmit the data to the communication channel of the specified type. After receiving the data, the communication channel will automatically process the data.

[0091] Specifically, the communication channel calculates the number of messages that need to be sent according to the size of the data that the business module needs to send and the maximum M bytes (MTU) of the data carried by the channel message. Specifically, the size of the data that needs to be sent is divided by the MTU, and the number of messages that need to be sent is calculated by rounding up. If the number of messages calculated is 1, it means that the module sends small data, and enters the small packet determination process, that is, it determines whether the size of the data is less than the set ratio of the channel length limit. The above-mentioned setting ratio can be 20%, 30%, etc., and its specific value can be set according to actual needs. The embodiment of the present application does not specifically limit this. If it is less than the set ratio of the channel length limit, the data is aggregated with other data, and then the aggregated message is sent, wherein the length of the above-mentioned aggregated message needs to be less than the MTU of the channel interface; if it is not less than the setting comparison of the channel length limit, it is considered that the packet is a normal packet and is sent directly. When the number of messages obtained is greater than 1, it means that the amount of data that the business module needs to send is large, and at this time, the data needs to be split and assembled into fragmented messages. And perform fragment tail packet judgment on the obtained fragment message. If the obtained fragment message is the last fragment message of the data, perform small packet judgment. The small packet judgment here is consistent with the previous part and will not be repeated here. If the obtained fragment message is not the last fragment message of the data, send the fragment message.

[0092] In the embodiment of the present application, large packets of data are segmented and cut according to the length of data to be sent in the communication channel, and small packets of data are aggregated and reassembled. Since small packets of data may come from different business modules, this method can reduce the congestion of the channel packet sending queue and improve data synchronization performance.

[0093] In some embodiments, a channel protocol normalization design is performed for the master control channel, the inter-board channel, and the inter-frame channel. The specific protocol format of the set channel protocol may be as follows:

[0094] Table 1

[0095]

[0096] Among them, the destination MAC, source MAC, and protocol type fields are standard fields of Ethernet messages and will not be described here. The following is an explanation of the unique fields in this protocol:

[0097] VSM ID: identifies the inter-chassis device ID;

[0098] Board ID: identifies the main control board or service board ID. The board ID is unique. When a board is inserted into a slot of a chassis device, the board will be assigned a specific board ID according to the slot position. The board ID will not be repeated in the entire device.

[0099] Forwarding priority ID: Initialize and set according to module business;

[0100] Channel types: 1. Main control channel; 2. Inter-frame channel; 3. Inter-board channel;

[0101] Channel-specific information header: channel-related information, at least carrying aggregation and fragmentation marks;

[0102] Module type: indicates the business module to which the message belongs. The communication channel can send the processed message to the corresponding business module according to the module type;

[0103] Message ID: used to record the fragment number of the message in the original message, for fragmentation recording. For example, if the data of the fragment message is located at the 5th position in the original data, the message ID is 5;

[0104] Number of messages: used to record the number of fragmented messages split from the original message;

[0105] Message length: used to record the length of the data segment carried by the fragment message;

[0106] Check code: used to distinguish whether the fragmented message is obtained by splitting the same original message. The check codes of the fragmented messages obtained by splitting the same original message are the same;

[0107] Module data segment: used to carry the business information of each module.

[0108] See also Figure 4 , is a flow chart of another method for normalizing the scheduling of a multi-agent security forwarding module provided in an embodiment of the present application. Specifically, Figure 4 The flowchart of the data receiving method in the management method may include the following steps:

[0109] Step 401: After receiving the message, the communication channel parses the header of the message according to the set channel protocol to obtain target parameters and module type parameters. The target parameters are used to characterize whether the message has been aggregated, reassembled or fragmented. The communication channel includes a master control channel, an inter-frame channel and an inter-board channel.

[0110] After receiving the message, the interface of the communication channel puts the message into the packet receiving queue. The above communication channels include the main control channel, the inter-board channel and the inter-frame channel.

[0111] In the embodiment of the present application, the header of the message has a target parameter indicating whether the message has been aggregated, reassembled or fragmented (see the format of the set channel protocol shown in Table 1). The communication channel parses the header of the received message according to the set channel protocol to determine whether the message has been aggregated, reassembled or fragmented.

[0112] Step 402: Process the message according to the target parameter, wherein the processing includes at least one of splitting processing and aggregation and reassembly processing.

[0113] If the target parameter indicates that the message has been aggregated and reassembled, the communication channel splits the message, or splits and aggregates and reassembles it to obtain the initial message; if the target parameter indicates that the message has been fragmented, the message will be aggregated and reassembled with other fragmented messages belonging to the same initial message.

[0114] Step 403: Send the processed message to the corresponding service module according to the module type parameter.

[0115] In an embodiment of the present application, after receiving a message through a communication channel, the header of the message is parsed according to the set channel protocol to obtain target parameters and module type parameters. According to the target parameters, the processing includes at least one of splitting processing and aggregation and reassembly processing. According to the module type parameters, the processed message is sent to the corresponding business module. The embodiment of the present application implements a multi-channel design of a frame device, and normalizes the design of the protocols used by different types of communication channels, including the protocol itself, the message sending process and the message receiving process, as well as the fragmentation and aggregation hybrid processing, which improves the data synchronization interaction performance between frames and boards, reduces the maintenance difficulty and cost of each component in the frame device, and increases the stability of the system.

[0116] In some embodiments, the header of the message can be parsed according to the set channel protocol to obtain the forwarding priority parameter, the message is cached in the packet receiving queue of the communication channel, and sorted according to the forwarding priority parameter. For the setting of the forwarding priority, please refer to the above description, which will not be repeated here.

[0117] The communication channel forwards the messages in the packet receiving queue according to the forwarding priority order, which can ensure that important services are forwarded first and receive priority processing.

[0118] In some embodiments, the message may be aggregated and reassembled according to the following method:

[0119] If the target parameter indicates that the message has been fragmented, the message is cached in the message buffer corresponding to the communication channel, and the messages in the message buffer are aggregated and reassembled. That is, by arranging the fragmented messages in the message buffer, the fragmented messages belonging to the same initial message are aggregated and reassembled, which is equivalent to restoring the initial message.

[0120] In some embodiments, the message may be split and processed according to the following methods:

[0121] If the target parameter indicates that the message has been aggregated and reassembled, the message is split, that is, the aggregated and reassembled message is restored to multiple original messages. If it is determined that the original message (split message) is not a fragmented message, the split message is sent to the corresponding service module.

[0122] When it is determined that the split message is a fragmented message, the fragmented message is cached in the message buffer corresponding to the communication channel, and the messages in the message buffer are aggregated and reassembled, that is, the fragmented messages belonging to the same initial message are aggregated and reassembled, which is equivalent to restoring the initial message.

[0123] In some embodiments, for the messages cached in the message buffer, the fragmented messages belonging to the same initial message can be determined based on the message ID, number of messages, message length, check code and other information of the message, and then aggregated and reassembled.

[0124] Figure 5 A flow chart of a method for a communication channel to process a message according to target parameters is shown.

[0125] like Figure 5 As shown, when the communication channel receives a message to be sent to the business module, it enters the channel processing flow, and the processing unit in the communication channel splits or aggregates and reassembles the message by judging the message type. Specifically, if it is an ordinary message, the message is directly sent to the corresponding business module; if it is a fragmented message, the original message node of the message is searched in the message buffer to see if it exists. The existence of the node indicates that the fragmented message of the business module has been received before, and the data segment in the fragmented message is assembled with the message data segment on the node. After the assembly is completed, check whether the fragmented message is received in full. If it is received in full, the entire data is sent to the corresponding business module for processing; if the fragmented message is not received in full, it is only necessary to wait for the subsequent fragmented message; if it is an aggregated and reassembled message, the message is split. For the split message, it is determined whether it is a fragment tail packet. If so, the aggregation and reassembly process as described above is performed. If it is not a fragment tail packet, the split message is distributed to the corresponding business module for processing.

[0126] The above content describes the method provided by the present application. The following describes the device provided by the present application:

[0127] See also Figure 6 , which is a structural diagram of a data sending device in a scheduling normalization management device of a multi-agent secure forwarding module provided in an embodiment of the present application.

[0128] like Figure 6 As shown, the device may include:

[0129] The first processing unit 601 is used for the service module to generate a header of a message to be sent according to the service requirements and the set channel protocol, wherein the set channel protocol at least includes a channel type, an inter-chassis device ID, and a board ID;

[0130] The first sending unit 602 is used to send the message to be sent to a corresponding communication channel according to the channel type in the header, where the communication channel includes a main control channel, an inter-frame channel, and an inter-board channel;

[0131] The second processing unit 603 is used to process the message to be sent according to the length of the message to be sent and the maximum transmission unit of the channel after receiving the message to be sent on the corresponding communication channel, wherein the processing includes at least one of fragmentation processing and aggregation and reassembly processing;

[0132] The second sending unit 604 is used for the communication channel to send the processed message according to the inter-chassis device ID, board ID and destination MAC indicated by the header.

[0133] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0134] See also Figure 7 , which is a structural diagram of a data sending device in a scheduling normalization management device of a multi-agent secure forwarding module provided in an embodiment of the present application.

[0135] like Figure 7 As shown, the device may include:

[0136] The parsing unit 701 is used for parsing the header of the message according to the set channel protocol after receiving the message, and obtaining the target parameter and the module type parameter, wherein the target parameter is used to indicate that the message has been aggregated, reassembled or fragmented, and the communication channel includes the main control channel, the inter-chassis channel and the inter-board channel;

[0137] A processing unit 702, configured to process the message according to the target parameter, wherein the processing includes at least one of a splitting process and a converging and reassembling process;

[0138] The sending unit 703 is used to send the processed message to the corresponding service module according to the module type parameter.

[0139] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0140] The present application embodiment also provides a hardware structure. Figure 8 , Figure 8This is a structural diagram of an electronic device provided in an embodiment of the present application. Figure 8 As shown, the hardware structure may include: a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions that can be executed by the processor; the processor is used to execute the machine-executable instructions to implement the method disclosed in the above example of this application.

[0141] Based on the same application concept as the above method, an embodiment of the present application also provides a machine-readable storage medium, on which a number of computer instructions are stored. When the computer instructions are executed by a processor, the method disclosed in the above example of the present application can be implemented.

[0142] Exemplarily, the above-mentioned machine-readable storage medium can be any electronic, magnetic, optical or other physical storage device, which can contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium can be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as optical disk, DVD, etc.), or similar storage medium, or a combination thereof.

[0143] It should be noted that, in this article, relational terms such as target and target 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 terms "comprise", "include" or any other variants thereof are 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. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0144] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A scheduling normalization management method for a multi-agent security forwarding module, characterized in that: Applied to a frame-type device, the frame-type device includes a main control board and a service board, and multiple service modules are arranged on the main control board and the service board. The method includes: The service module generates a header of a message to be sent according to service requirements and a set channel protocol, wherein the set channel protocol at least includes a channel type, an inter-chassis device ID, and a board ID; According to the channel type in the header, the message to be sent is sent to a corresponding communication channel, wherein the communication channel includes a main control channel, an inter-frame channel, and an inter-board channel; After receiving the message to be sent on the corresponding communication channel, processing the message to be sent according to the length of the message to be sent and the maximum transmission unit of the channel, the processing includes at least one of fragmentation processing and aggregation and reassembly processing; The communication channel sends the processed message according to the inter-chassis device ID, board ID and destination MAC indicated by the header.

2. The method according to claim 1, characterized in that The setting channel protocol also includes a forwarding priority; the communication channel sends the processed message according to the inter-chassis device ID, board ID and destination MAC indicated by the header, including: The communication channel sends the processed message according to the forwarding priority indicated by the header.

3. The method according to claim 1, characterized in that The fragmenting of the message to be sent according to the length of the message to be sent and the maximum transmission unit of the channel includes: When it is determined that the length of the message to be sent is greater than the maximum transmission unit of the channel, fragment the message to be sent, and determine whether the fragmented message obtained after the fragmentation is the last fragmented message of the message to be sent; If the obtained fragment message is not the last fragment message of the message to be sent, determining that the fragment message is the processed message; If the obtained fragment message is the last fragment message of the message to be sent, and the length of the fragment message is less than a preset value, the fragment message is cached in the message buffer corresponding to the communication channel, and the messages in the message buffer are aggregated and reassembled.

4. The method according to claim 1, characterized in that: The step of aggregating and reassembling the messages to be sent according to the length of the messages to be sent and the maximum transmission unit of the channel includes: When it is determined that the length of the message to be sent is less than a preset value, the message to be sent is cached in a message buffer corresponding to the communication channel, and aggregation and reassembly processing is performed on the messages in the message buffer.

5. A scheduling normalization management method for a multi-agent security forwarding module, characterized in that: Applied to a frame-type device, the frame-type device includes a main control board and a service board, and multiple service modules are arranged on the main control board and the service board. The method includes: After receiving the message, the communication channel parses the header of the message according to the set channel protocol to obtain the target parameter and the module type parameter, wherein the target parameter is used to characterize that the message has been aggregated, reassembled or fragmented. The communication channel includes a master control channel, an inter-chassis channel and an inter-board channel. The set channel protocol includes at least a channel type, an inter-chassis device ID and a board ID. Processing the message according to the target parameter, wherein the processing includes at least one of splitting processing and converging and reassembling processing; According to the module type parameter, the processed message is sent to the corresponding service module.

6. The method according to claim 5, characterized in that The method further includes: Parsing the header of the message according to the set channel protocol to obtain a forwarding priority parameter; The messages are cached in a packet receiving queue of the communication channel and sorted according to the forwarding priority parameter.

7. The method according to claim 5, characterized in that The processing of the message according to the target parameter includes: If the target parameter indicates that the message has been fragmented, the message is cached in a message buffer corresponding to the communication channel, and the messages in the message buffer are aggregated and reassembled.

8. The method according to claim 5, characterized in that The processing of the message according to the target parameter includes: If the target parameter indicates that the message has been aggregated and reassembled, splitting the message; In the case where it is determined that the split message is not a fragmented message, determining that the split message is the processed message; When it is determined that the split message is a fragmented message, the fragmented message is cached in a message buffer corresponding to the communication channel, and the messages in the message buffer are aggregated and reassembled.

9. A scheduling normalization management device for a multi-agent secure forwarding module, characterized in that: Applied to a frame-type device, the frame-type device includes a main control board and a service board, and multiple service modules are arranged on the main control board and the service board. The device includes: A first processing unit, configured for the service module to generate a header of a message to be sent according to service requirements and a set channel protocol, wherein the set channel protocol at least includes a channel type, an inter-chassis device ID, and a board ID; A first sending unit, configured to send the message to be sent to a corresponding communication channel according to the channel type in the header, wherein the communication channel includes a main control channel, an inter-frame channel, and an inter-board channel; A second processing unit is used to process the message to be sent according to the length of the message to be sent and the maximum transmission unit of the channel after receiving the message to be sent on the corresponding communication channel, wherein the processing includes at least one of fragmentation processing and aggregation and reassembly processing; The second sending unit is used for the communication channel to send the processed message according to the inter-frame device ID, board ID and destination MAC indicated by the header.

10. A scheduling normalization management device for a multi-agent secure forwarding module, characterized in that: Applied to a frame-type device, the frame-type device includes a main control board and a service board, and multiple service modules are arranged on the main control board and the service board. The device includes: The parsing unit is used for parsing the header of the message according to the set channel protocol after the communication channel receives the message, and obtaining the target parameter and the module type parameter, wherein the target parameter is used to characterize that the message has been reassembled or fragmented after aggregation, the communication channel includes the main control channel, the inter-frame channel and the inter-board channel, and the set channel protocol at least includes the channel type, the inter-frame device ID and the board ID; A processing unit, configured to process the message according to the target parameter, wherein the processing includes at least one of splitting processing and aggregation and reassembly processing; The sending unit is used to send the processed message to the corresponding service module according to the module type parameter.

11. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor is used to execute the machine executable instructions to implement the method according to any one of claims 1 to 4, or any one of claims 5 to 8.

12. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are executed by a processor, the method according to any one of claims 1 to 4, or any one of 5 to 8 is implemented.

13. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the method described in any one of claims 1 to 4 or any one of claims 5 to 8 are implemented.