Message transmission method and system, computer equipment and computer readable storage medium

By supporting the floating protocol in the message transmission method, generating reply messages containing fixed and floating data, the management program modification needs caused by the increase in the maximum number of nodes in the prior art are solved, and the effect of reducing manpower and material waste and improving message transmission efficiency is achieved.

CN119854253APending Publication Date: 2025-04-18DAWNING NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411836726.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-12
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

When the maximum number of nodes that need to be managed by the processing board increases, existing frame-type equipment management message communication requires the management program on the main control board and the processing board to be modified simultaneously, resulting in waste of manpower and material resources.

Method used

A message transmission method is provided, by receiving a request message and determining whether it supports a floating protocol, generating a reply message according to the floating protocol and the request message. The reply message includes fixed data and floating data, without the need to fix the message length, and adapts to changes in the content of different reply messages.

Benefits of technology

There is no need to modify the management program of the main control board and processing board, which reduces the workload of version management, reduces the waste of manpower and material resources, and improves the efficiency of message transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119854253A_ABST
    Figure CN119854253A_ABST
Patent Text Reader

Abstract

The invention relates to a message transmission method and system, computer equipment and a computer readable storage medium. The method comprises the following steps: receiving a first request message, and determining whether the first request message supports a floating protocol; under the condition that the first request message supports the floating protocol, determining a first reply message according to the floating protocol and the first request message; the first reply message comprises fixed data and floating data; and transmitting the first reply message to the main control board. According to the method, the length of the data packet in the first reply can float according to the content of the reply message, the management workload is not increased, and waste of manpower and material resources can be reduced.
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 message transmission method, system, computer device and computer-readable storage medium. Background Art

[0002] In the field of transport layer communication protocols, in terms of frame device management, in order to cope with similar messages returned by communications on different types of processing boards, the main control board needs to preset a fixed protocol based on the maximum number required on the processing board.

[0003] Existing frame-type equipment management message communication is mostly fixed packet length, and the messages are mainly non-priority messages, which can meet the acquisition of some fixed protocol information. However, when the maximum number of nodes that the processing board needs to manage increases, the entire protocol needs to be modified at the same time on the management program on the main control board and the management program on the processing board, which is a waste of manpower and material resources. Summary of the invention

[0004] Based on this, it is necessary to provide a message transmission method, system, computer device and computer-readable storage medium that can reduce the waste of manpower and material resources in order to address the above technical problems.

[0005] In a first aspect, the present application provides a message transmission method, which is applied to a processing board, and the method includes:

[0006] receiving a first request message, and determining whether the first request message supports a floating protocol;

[0007] In the case where the first request message supports the floating protocol, determining a first reply message according to the floating protocol and the first request message; the first reply message includes fixed data and floating data;

[0008] The first reply message is transmitted to the main control board.

[0009] In the above-mentioned implementation method, when the received first request message supports the floating protocol, the determined first reply message includes floating data, that is, the length of the data packet in the first reply message can float according to the content of the reply message. In this way, when multiple concurrent request messages are received and the content of the reply messages corresponding to the request messages fluctuates greatly, there is no need to modify the management program on the main control board and the management program on the processing board. Setting a fixed message length will not increase the workload of version management, can reduce the waste of manpower and material resources, reduce invalid message transmission, and improve the efficiency of message transmission.

[0010] In one embodiment, the first request message includes a message source, and determining the first reply message according to the floating protocol and the first request message includes:

[0011] Determine whether the first request message originates from a remote network management station according to the message source; if so, set the priority parameter of the first request message to a first value; if not, set the priority parameter of the first request message to a second value; the priority indicated by the first value is higher than the priority indicated by the second value;

[0012] The priority parameter value of the priority parameter is filled into the fixed data and combined with the floating data to generate the first reply message.

[0013] The method described in the above embodiment sets a high priority for the first request message sent by the remote network management station with higher delay requirements, and sets a low priority for the first request message sent by other servers with lower delay requirements, so as to facilitate the subsequent priority processing of the message corresponding to the remote network management station and timely reply to the message to the remote network management station, thereby avoiding the request timeout of the remote network management station.

[0014] In one embodiment, setting the priority parameter of the first request message to a first value includes:

[0015] Determining whether a second request message is received within a preset time, and if it is determined that the second request message is received within the preset time, determining whether the value of the priority parameter in the second request message is the first value; the request contents of the first request message and the second request message are the same;

[0016] If it is determined that the value of the priority parameter in the second request message is the first value, setting the priority parameter of the first request message to the second value, or discarding the first request message;

[0017] If it is determined that the second request message is not received within the preset time, the priority parameter of the first request message is set to the first value.

[0018] The method described in the above embodiment determines whether a second request message identical to the first request message is received, and if received, determines whether the value of the priority parameter of the second request message is the first value, which can avoid blocking of high-priority messages, thereby improving the efficiency of the message transmission method.

[0019] In a second aspect, the present application provides a message transmission method, which is applied to a main control board, and the method includes:

[0020] receiving a first reply message, and determining whether the first reply message supports the floating protocol;

[0021] In the case where the first reply message supports the floating protocol, the first reply message is processed based on the floating protocol, and the processed first reply message is transmitted to the target device; the first reply message includes fixed data and floating data.

[0022] The method described in the above embodiment includes floating data in the first reply message when the received first reply message supports the floating protocol. That is, the length of the data packet in the first reply message can float according to the content of the reply message. In this way, there is no need to modify the management program on the main control board and the management program on the processing board, which will not increase the management workload, can reduce the waste of manpower and material resources, and improve the efficiency of message transmission.

[0023] In one embodiment, processing the first reply message based on the floating protocol and transmitting the processed first reply message to the target device includes:

[0024] Parsing the first reply message based on the floating protocol, obtaining a priority parameter value in the first reply message, and adding the first reply message to the first message queue or the second message queue according to the priority parameter value; the priority of the first message queue is higher than the priority of the second message queue;

[0025] The to-be-processed reply message is obtained from the first message queue as the processed first reply message, and transmitted to the target device.

[0026] The method described in the above embodiment adds the first reply message to the first message queue and the second message queue with different priorities according to the priority parameter in the first reply message, so as to facilitate the subsequent direct acquisition of the pending reply message from the first message queue with high priority for processing. Compared with the traditional technology of adding the first reply message to a single message queue and processing the pending reply message on a first-come-first-served basis, it can avoid the request timeout of the target device, thereby improving the practicality of the message transmission method.

[0027] In one embodiment, transmitting the processed first reply message to the target device includes:

[0028] Parsing the processed first reply message to determine the total length of the processed first reply message;

[0029] The processed first reply message is verified according to the total length, and if the verification passes, the processed first reply message is transmitted to the target device.

[0030] The method described in the above embodiment verifies the processed first reply message before transmitting it to the target device, which can ensure the accuracy of the reply message transmitted to the target device, thereby improving the practicality of the message transmission method. In addition, when the target device is a remote network management station, the accuracy of the first reply message can be managed by verifying the processed first reply message, thereby improving the accuracy of the first reply message received by the remote network management station.

[0031] In one embodiment, parsing the processed first reply message to determine the total length of the processed first reply message includes:

[0032] Determine the length of the floating data according to the single data length of the floating data and the number of single data in the processed first reply message;

[0033] The total length of the processed first reply message is determined according to the length of the floating data, and the frame header, frame number, fixed data and check code in the processed first reply message.

[0034] The method described in the above embodiment determines the length of the floating data according to the single data length of the floating data and the number of single data in the processed first reply message; determines the total length of the processed first reply message according to the length of the floating data, and the frame header, frame number, fixed data and check code in the processed first reply message; this method of determining the total length of the processed first reply message is quick and easy to implement.

[0035] In the third aspect, the present application provides a message transmission system, including: a processing board and a main control board, the processing board is communicatively connected to the main control board, the processing board is used to execute the steps of the method described in the first aspect above, and the main control board is used to execute the steps of the method described in the first aspect above.

[0036] In a fourth aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the methods described in the first and second aspects above are implemented.

[0037] In a fifth aspect, the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the methods described in the first and second aspects above are implemented.

[0038] The above-mentioned message transmission method, system, computer device and computer-readable storage medium receive a first request message and determine that the first request message supports a floating protocol; determine a first reply message according to the floating protocol and the first request message; the first reply message includes fixed data and floating data; and transmit the first reply message to the main control board. In this embodiment, when the received first request message supports a floating protocol, the determined first reply message includes floating data, that is, the length of the data packet in the first reply message can float according to the content of the reply message, so that when multiple concurrent request messages are received and the content of the reply message corresponding to the request message fluctuates greatly, there is no need to modify the management program on the main control board and the management program on the processing board, and setting a fixed message length will not increase the management workload, can reduce the waste of manpower and material resources, reduce invalid message transmission, and improve the efficiency of message transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 A schematic diagram of message flow when a remote network management station sends a request in one embodiment;

[0040] Figure 2 A schematic diagram of the structure of a message transmission system in one embodiment;

[0041] Figure 3 A schematic diagram of a flow chart of a message transmission method in an embodiment;

[0042] Figure 4 A schematic diagram of a flow chart of a message transmission method in another embodiment;

[0043] Figure 5 A schematic diagram of a flow chart of a message transmission method in another embodiment;

[0044] Figure 6 A schematic diagram of a flow chart of a message transmission method in another embodiment;

[0045] Figure 7 A schematic diagram of a flow chart of a message transmission method in another embodiment;

[0046] Figure 8 A schematic diagram of a flow chart of a message transmission method in another embodiment;

[0047] Fig. 9 A schematic diagram of a flow chart of a message transmission method in another embodiment;

[0048] Fig.10 A schematic diagram of a flow chart of a message transmission method in another embodiment;

[0049] Fig.11 A schematic diagram of a flow chart of a message transmission method in another embodiment;

[0050] Fig.12 A schematic diagram of the overall processing flow of a frame-type device in an embodiment;

[0051] Fig.13 A schematic diagram of the structure of a message transmission device in one embodiment;

[0052] Fig.14 It is a structural schematic diagram of a message transmission device in another embodiment;

[0053] Fig.15 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0055] First, before specifically introducing the technical solutions of the embodiments disclosed in the present application, the background technology or technical evolution context based on the embodiments of the present application is introduced. In the field of transport layer communication protocols, frame devices are widely used for high scalability, high reliability and performance. Frame devices are network or communication devices with a frame structure, such as frame switches (main control boards) and frame servers (processing boards). In the frame device management method, in order to cope with the same type of messages returned by the communication on different types of processing boards, the main control board needs to preset a fixed protocol according to the maximum number required on the processing board. A fixed protocol refers to a protocol in which rules and processes are pre-determined in the fields of communication, computer networks, etc. The existing frame device management message communication is mostly fixed packet length, and the messages without priority are mainly used, which can meet the acquisition of some fixed protocol information, and under the conditions of few concurrent requests, controllable delay and simple message content, this communication method can meet the timely return of messages. However, under the request conditions of non-local network management stations (remote network management stations), the delay required by its communication network is self-aligned by the network management station, and the delay cannot be adjusted. In addition, since each processing board is managed by the main control board, there may be a large number of concurrent requests and heavy traffic in a short period of time, which may eventually lead to message return timeout and query failure of some network management stations with heavy traffic. Figure 1 The remote network management station 01 sends the request message to the main control board in the frame device 02 through the network, and the main control board distributes the request message to the corresponding processing board for processing.

[0056] In addition, a lot of communication traffic in the fixed protocol is invalid content. When the maximum number of nodes that a processing board needs to manage increases, the entire protocol needs to modify both the management program of the main control board and the management program on the processing board, which increases the management workload and wastes manpower and material resources. In response to this, the present application provides a message transmission method that does not require modification of the management program of the main control board and the management program on the processing board when the maximum number of nodes that a processing board needs to manage increases.

[0057] The message transmission method provided in this application can be applied to a message transmission system. The structure of the message transmission system is as follows: Figure 2 As shown, it includes a main control board 11 and at least one processing board 12, and the main control board 11 and the processing board 12 are in communication connection. The main control board 11 is used to receive a request message sent by a remote network management station and / or other server, and distribute the request message to the corresponding processing board 12 for processing. The processing board 12 feeds back a reply message to the main control board 11 based on the received request message, so that the main control board 11 transmits the reply message to the remote network management station and / or other server. The main control board 11 and the processing board can be a server or a host.

[0058] The technical solution of the present application and how the technical solution of the present application solves the technical problem are described in detail below with specific embodiments.

[0059] In one embodiment, Figure 3 As shown, a message transmission method is provided. This embodiment uses the method applied to a processing board in the above message transmission system as an example. In this embodiment, the method includes the following steps:

[0060] S301, receiving a first request message, and determining whether the first request message supports a floating protocol.

[0061] The first request message is received by the main control board from the remote network management station or other server and transmitted to the processing board. The first request message may include a message source and a message code. The message source is used to indicate the object to which the first request message is sent, which may be a remote network management station or other network device (server or host); the message code is used to indicate the specific content of the first request message.

[0062] Optionally, the Simple Network Management Protocol (SNMP) is used to query detailed port information on a frame-type device. After the main control board receives the first request message, the main control board management program carries the message source and message code (query port detailed information). The main control board management program transmits the first request message to the processing board, and the processing board receives the first request message.

[0063] After receiving the first request message, the processing board determines whether the first request message supports the floating protocol, that is, determines whether the length of the data packet of the first request message can float.

[0064] Optionally, the first request message includes a message code, which includes an identifier of whether the first request message supports the floating protocol. After receiving the first request message, the processing board obtains the message code in the first request message and determines whether the first request message supports the floating protocol according to the corresponding identifier in the message code.

[0065] S302: When the first request message supports the floating protocol, determine a first reply message according to the floating protocol and the first request message; the first reply message includes fixed data and floating data.

[0066] If the processing board determines whether the first request message supports the floating protocol by judging whether the first request message supports the floating protocol, the first reply message is determined according to the floating protocol and the first request message. That is to say, when the first request message supports the floating protocol, the processing board determines the reply message corresponding to the first request message, and constructs a data packet corresponding to the reply message based on the floating protocol to obtain the first reply message. The first reply message includes fixed data and floating data, wherein the fixed data refers to data of a fixed length in the first reply message, and the floating data refers to data in the first reply message whose data length varies with different request messages.

[0067] Optionally, the first reply message also includes a frame header, a frame number, and a cyclic redundancy check code (CRC). The frame header contains the unique number of the processing board, usually 2 bytes; the frame number is determined according to the message code in the first request message, usually 2 bytes; the sum of the first to the last bit in the first reply message and the lower 16 bits are taken as the CRC.

[0068] If the processing board determines whether the first request message supports the floating protocol by judging whether the first request message supports the floating protocol, the processing board determines the first reply message according to the fixed protocol and the first request message. The first reply message determined according to the fixed protocol includes a frame header, a frame number, fixed data and CRC.

[0069] S303: Transmit the first reply message to the main control board.

[0070] After determining the first reply message, the processing board transmits the first reply message to the main control board, so that the main control board processes the first reply message and transmits the processed first reply message to the corresponding network device. If the first request message is sent by a remote network management device, the main control board transmits the processed first reply message to the remote network management device; if the first request message is sent by other network devices, the main control board transmits the processed first reply message to the remote network management device. This embodiment does not limit the main control board's processing of the first reply message, as long as its function can be achieved.

[0071] The message transmission method described in the above embodiment is applied to the processing board, by receiving a first request message, and determining that the first request message supports a floating protocol; determining a first reply message according to the floating protocol and the first request message; the first reply message includes fixed data and floating data; and transmitting the first reply message to the main control board. In this embodiment, when the received first request message supports a floating protocol, the determined first reply message includes floating data, that is, the length of the data packet in the first reply message can float according to the content of the reply message, so that when multiple concurrent request messages are received and the content of the reply message corresponding to the request message fluctuates greatly, there is no need to modify the management program on the main control board and the management program on the processing board, and setting a fixed message length will not increase the workload of version management, can reduce the waste of manpower and material resources, reduce invalid message transmission, and improve the efficiency of message transmission.

[0072] In addition, when the first request message does not support the floating protocol, the first reply message can also be determined according to the fixed protocol and the first request message. In this way, the method provided by the above embodiment is not only applicable to request messages that support the floating protocol, but also to request messages that do not support the floating protocol, which can improve the practicality of the message transmission method.

[0073] In one embodiment, the first request message includes a message source, and an implementation of the above S302 is provided, such as Figure 4 As shown, the above S302 "determine the first reply message according to the floating protocol and the first request message" includes:

[0074] S401, determining whether a first request message originates from a remote network management station according to a message source.

[0075] After receiving the first request message, the processing board obtains the message source in the first request message, and determines whether the first request message originates from the remote network management station according to the message source.

[0076] S402: If yes, set the priority parameter of the first request message to a first value.

[0077] If the processing board determines that the first request message comes from a remote network management station according to the message source of the first request message, the priority parameter of the first request message is set to a first value. The first value indicates that the priority of the first request message is higher. Optionally, the priority parameter of the first request message is set to 1.

[0078] S403: If not, set the priority parameter of the first request message to a second value; the priority represented by the first value is higher than the priority represented by the second value.

[0079] If the processing board determines that the first request message does not originate from the remote network management station according to the message source of the first request message, that is, the first request message originates from other servers, the priority parameter of the first request message is set to the second value. The second value indicates that the priority of the first request message is lower. The priority indicated by the first value is higher than the priority indicated by the second value. Optionally, the priority parameter of the first request message is set to 0.

[0080] S404, filling the priority parameter value of the priority parameter into the fixed data, and combining it with the floating data to generate a first reply message.

[0081] After determining the priority parameter value of the priority parameter of the first request message, the processing board adds the priority parameter value of the priority parameter of the first request message at the position corresponding to the priority in the fixed data while determining the first reply message based on the floating protocol and the first request message, and adds the content of the processing board's reply to the first request message to the floating data to generate a first reply message.

[0082] Optionally, the fill diagram corresponding to the floating protocol is as follows:

[0083]

[0084] When the processing board determines the first reply message based on the floating protocol and the first request message, the unique number of the processing board is filled into the frame header position, the frame number is filled according to the message code of the first request message, the priority parameter value is filled into the priority position in the fixed data, the fixed data in the first reply message is filled into the fixed-length content in the fixed-length part of the data, the floating data in the first reply message is filled into the floating data content, and the determined CRC check code is filled into the crc check code to generate the first reply message.

[0085] The message transmission method described in the above embodiment determines whether the first request message comes from the remote network management station according to the source of the message. If so, the priority parameter of the first request message is set to the first value, if not, the priority parameter of the first request message is set to the second value; the priority represented by the first value is higher than the priority represented by the second value; the priority parameter value of the priority parameter is filled into the fixed data, and the first reply message is generated in combination with the floating data. In this way, a high priority is set for the first request message sent by the remote network management station with a higher delay requirement, and a low priority is set for the first request message sent by other servers with a lower delay requirement, so as to facilitate the subsequent priority processing of the message corresponding to the remote network management station, and timely reply to the message to the remote network management station, so as to avoid the request timeout of the remote network management station.

[0086] In one embodiment, an implementation of the above S402 is provided, such as Figure 5 As shown, the above S402 "setting the priority parameter of the first request message to the first value" includes:

[0087] S501, determine whether a second request message is received within a preset time, and if it is determined that the second request message is received within the preset time, determine whether the value of the priority parameter in the second request message is a first value; the request contents of the first request message and the second request message are the same.

[0088] The preset time can be set by the user according to the actual scenario. The same request content of the first request message and the second request message means that the first request message and the second request message are sent by the same network device with the same request content. In other words, the same network device sends more than one request message for the same request within the preset time.

[0089] After receiving the first request message, the processing board determines whether the second request message is received within the preset time. If the processing board determines that the second request message is received within the preset time, it determines whether the value of the priority parameter in the received second request message is set to the first value.

[0090] S502: If it is determined that the value of the priority parameter in the second request message is the first value, the priority parameter of the first request message is set to the second value, or the first request message is discarded.

[0091] If the processing board determines that the value of the priority parameter in the received second request message is set to the first value, that is, the processing board has set the priority parameter in the second request message sent by the same network device to the first value, then the priority parameter of the first request message can be set to the second value, or the first request message can be directly discarded.

[0092] S503: If it is determined that the second request message is not received within the preset time, the priority parameter of the first request message is set to a first value.

[0093] If the processing board determines that the second request message is not received within the preset time, the priority parameter of the first request message is directly set to the first value.

[0094] The message transmission method described in the above embodiment, when determining the value of the priority parameter of the first request message, first determines whether the second request message is received within the preset time, and in the case where it is determined that the second request message is received, determines whether the priority parameter value in the second request message is the first value; if it is determined that the value of the priority parameter in the second request message is the first value, the priority parameter of the first request message is set to the second value, or the first request message is discarded; in the case where it is determined that the second request message is not received, the priority parameter of the first request message is set to the first value. In this way, it is determined whether the second request message identical to the first request message is received, and if it is received, it is determined whether the value of the priority parameter of the second request message is the first value, which can avoid blocking of high-priority messages, thereby improving the efficiency of the message transmission method.

[0095] In one embodiment, Figure 6 As shown, a message transmission method is provided. This embodiment takes the method applied to the main control board in the above message transmission system as an example. In this embodiment, the method includes the following steps:

[0096] S601, receiving a first reply message, and determining whether the first reply message supports a floating protocol.

[0097] After determining the first reply message, the processing board transmits the first reply message to the main control board. After receiving the first reply message, the main control board parses the first reply message to determine whether it supports the floating protocol. Specifically, the frame number includes an identifier of whether the first reply message supports the floating protocol. The processing board parses the first reply message, obtains the frame number in the first reply message, and determines whether the first reply message supports the floating protocol based on the frame number.

[0098] S602, when the first reply message supports the floating protocol, process the first reply message based on the floating protocol, and transmit the processed first reply message to the target device; the first reply message includes fixed data and floating data.

[0099] If the main control board determines whether the first reply message supports the floating protocol by judging whether the first reply message supports the floating protocol, the first reply message is processed based on the floating protocol, and the processed first reply message is transmitted to the target device. The target device may be a remote network management station or other network device. The target device has the same message source as the request message corresponding to the first reply message received by the main control board; if the message source of the request message corresponding to the first reply message received by the main control board is the remote network management station, the target device is the remote network management station; if the message source of the request message corresponding to the first reply message received by the main control board is other network devices, the target device is other network devices. The first reply message includes fixed data and floating data. The description of the first reply message can refer to the specific description in the above embodiment, which will not be repeated here. The processing of the first reply message based on the floating protocol may include parsing the first reply message, forwarding the first reply message, etc., which is not limited in this embodiment.

[0100] Optionally, if the main control board determines whether the first reply message supports the floating protocol and determines that the first reply message does not support the floating protocol, the first reply message is processed based on the fixed protocol and the processed first reply message is transmitted to the target device.

[0101] The message transmission method described in the above embodiment is applied to the main control board, by receiving the first reply message and determining whether the first reply message supports the floating protocol; if the first reply message supports the floating protocol, the first reply message is processed based on the floating protocol, and the processed first reply message is transmitted to the target device; the first reply message includes fixed data and floating data. In this embodiment, if the received first reply message supports the floating protocol, the first reply message includes floating data, that is, the length of the data packet in the first reply message can float according to the content of the reply message, so there is no need to modify the management program on the main control board and the management program on the processing board, which will not increase the management workload, can reduce the waste of manpower and material resources, and improve the efficiency of message transmission.

[0102] In addition, when the first reply message does not support the floating protocol, the first reply message can also be processed based on the fixed protocol, and the processed first reply message is transmitted to the target device. In this way, the method provided by the above embodiment is not only applicable to reply messages that support the floating protocol, but also to messages that do not support the floating protocol, which can improve the practicality of the message transmission method.

[0103] In one embodiment, an implementation of the above S602 is provided, such as Figure 7As shown, the above S602 "processing the first reply message based on the floating protocol and transmitting the processed first reply message to the target device" includes:

[0104] S701, parse the first reply message based on the floating protocol, obtain the priority parameter value in the first reply message, and add the first reply message to the first message queue or the second message queue according to the priority parameter value; the priority of the first message queue is higher than the priority of the second message queue.

[0105] When the main control board determines that the first reply message supports the floating protocol, it parses the first reply message based on the floating protocol and obtains the priority parameter value in the first reply message. Specifically, the content of the first 2 bytes of the fixed data in the first reply message is obtained. If the content of the first 2 bytes of the fixed data is the first value, it indicates that the priority of the first reply message is higher; if the content of the first 2 bytes of the fixed data is the second value, it indicates that the priority of the first reply message is lower.

[0106] The main control board adds the first reply message to the first message queue or the second message queue according to the obtained priority parameter value. If the main control board determines that the priority of the first reply message is higher according to the priority parameter value, the first reply message is added to the first message queue with a lower priority; if the main control board determines that the priority of the first reply message is lower according to the priority parameter value, the first reply message is added to the second message queue with a lower priority.

[0107] Optionally, the reply messages added to the first message queue and the second message queue may be sorted again according to the message source of the reply message. When taking out the reply messages to be processed from the first message queue and the second message queue, the reply messages with high priority in the first message queue will be taken out as the reply messages to be processed. If there is no first reply message in the first message queue, the reply messages with high priority in the second message queue will be taken out as the reply messages to be processed.

[0108] S702, obtaining a reply message to be processed from the first message queue as a processed first reply message, and transmitting it to a target device.

[0109] The priority of the first message queue is higher than that of the first message queue. Therefore, the main control board obtains the pending reply message from the first message queue first, and transmits the obtained pending reply message as the processed first reply message to the target device. The pending reply message and the first reply message may or may not be the same message.

[0110] Optionally, the multiple processing boards included in the frame device have different numbers of ports. Conventional query of port detailed information lacks the use scenario of querying detailed information of all ports at once, so it is usually in units of each port. In addition, since the port needs to ensure real-time performance, it is necessary to query the processing board in real time through the main control program of the main control board, which increases the time of the complete SNMP query process. Since the main control program on the main control board often has non-SNMP access requests from other management terminals, the messages returned by each processing board are directly added to a single message queue. According to the first-come-first-served principle, the SNMP query port detailed information process time may cause the remote network management station request to time out. According to the method provided in the above embodiment, the main control board will add the message to the first message queue or the second message queue according to the priority parameter value of the returned message (first reply message). For the first reply message with a high priority corresponding to the SNMP query port information of the remote network management station, the first reply message will be added to the first message queue, and the reply message to be processed will be obtained from the first message queue for subsequent processing, so as to avoid the remote network management station request timeout.

[0111] Optionally, determine the third reply message in the second message queue that has not been processed within the first preset time, modify the priority parameter of the third reply message to the first value, and add the third reply message to the first message queue. Determine the total time that the fourth reply message that has not been processed in the first message queue is added to the message queue; if the total time is greater than or equal to the second preset time, discard the unprocessed fourth reply message. The time when the unprocessed fourth reply message is added to the message queue includes the time when the unprocessed fourth reply message is added to the second message queue and the time when it is added to the first message queue.

[0112] The message transmission method described in the above embodiment parses the first reply message based on the floating protocol to obtain the priority parameter value in the first reply message; and adds the first reply message to the first message queue or the second message queue according to the priority parameter value; the priority of the first message queue is higher than the priority of the second message queue; and obtains the pending reply message from the first message queue as the processed first reply message and transmits it to the target device. In the embodiment, by adding the first reply message to the first message queue and the second message queue of different priorities according to the priority parameter in the first reply message, it is convenient to directly obtain the pending reply message from the first message queue with a high priority for processing. Compared with the traditional technology of adding the first reply message to a single message queue and processing the pending reply message on a first-come-first-served basis, it can avoid the request timeout of the target device, thereby improving the practicality of the message transmission method.

[0113] In one embodiment, an implementation of the above S602 is provided, such as Figure 8 As shown, the above S602 "transmitting the processed first reply message to the target device" includes:

[0114] S801, parse the processed first reply message to determine the total length of the processed first reply message.

[0115] After determining the processed first reply message, the main control board parses the processed first reply message to determine the total length of the processed first reply message, that is, the packet length of the data packet of the processed first reply message.

[0116] Optionally, when the first reply message supports a fixed protocol, after processing the first reply message based on the fixed protocol, the main control board can directly obtain the total length of the processed first reply message, that is, the fixed data packet length in the fixed protocol.

[0117] S802, verifying the processed first reply message according to the total length, and sending the processed first reply message to the target device if the verification passes.

[0118] After determining the total length of the processed first reply message, the main control board can obtain the check code in the processed first reply message according to the total length of the processed first reply message, and verify the processed first reply message according to the check code. Specifically, the check code is usually at the end of the packet of the processed first reply message, and the CRC check code of the last two bytes of the processed first reply message can be parsed according to the total length of the processed first reply message. If the main control board passes the check on the processed first reply message, the processed first reply message is transmitted to the target device; if the main control board fails the check on the processed first reply message, the processed first reply message is discarded.

[0119] The method described in the above embodiment parses the processed first reply message to determine the total length of the processed first reply message; verifies the processed first reply message according to the total length, and transmits the processed first reply message to the target device if the verification passes. In this way, before transmitting the processed first reply message to the target device, the processed first reply message is verified, which can ensure the accuracy of the reply message transmitted to the target device, thereby improving the practicality of the message transmission method.

[0120] In addition, when the target device is a remote network management station, the accuracy of the first reply message can be managed by verifying the processed first reply message, thereby improving the accuracy of the first reply message received by the remote network management station.

[0121] In one embodiment, an implementation of the above S801 is provided, such as Fig. 9 As shown, the above S801 "parse the processed first reply message to determine the total length of the processed first reply message" includes:

[0122] S901, determining the length of the floating data according to the single data length of the floating data and the number of single data in the processed first reply message.

[0123] The processed first reply message includes a frame header, a frame post, fixed data, floating data and a CRC check code, and the floating data includes a floating field and floating data content. After parsing the processed first reply message, the main control board can obtain the length of a single data in the floating field in the processed first reply message and the number of single data in the floating data content to determine the length of the floating data. Specifically, the product of the single data length and the number of single data is calculated to determine the length of the floating data.

[0124] S902, determining the total length of the processed first reply message according to the length of the floating data, and the frame header, frame number, fixed data and check code in the processed first reply message.

[0125] After determining the length of the floating data, the main control board calculates the sum of the length of the floating data, the frame header length, the frame number length, the fixed data length and the check code length to determine the total length of the processed first reply message.

[0126] The method described in the above embodiment determines the length of the floating data according to the length of the single data of the floating data and the number of the single data in the processed first reply message; and determines the total length of the processed first reply message according to the length of the floating data and the frame header, frame number, fixed data and check code in the processed first reply message. The method for determining the total length of the processed first reply message provided by this embodiment is quick and easy to implement.

[0127] Based on all the above embodiments, a message transmission method is also provided. The message transmission method is applied to a processing board, such as Fig.10 As shown, the method includes:

[0128] S1001, receiving a first request message sent by a target device transmitted by a main control board;

[0129] S1002, determining whether the first request message originates from a remote network management station according to a message source of the first request message;

[0130] S1003, if the message comes from a remote network management station, determining whether a second request message is received within a preset time; the request contents of the first request message and the second request message are the same;

[0131] S1004: If received, determine whether the value of the priority parameter in the second request message is the first value;

[0132] S1005. If it is the first value, or if it is not from the remote network management station, set the priority parameter of the first request message to a second value;

[0133] S1006: If not received, determine that the value of the priority parameter in the first request message is a first value;

[0134] S1007, determining whether the first request supports the floating protocol;

[0135] S1008, if supported, determining a first reply message based on the floating protocol and the first request message;

[0136] S1009, if not supported, determining a first reply message based on the fixed protocol and the first request message;

[0137] S1010, transmitting the first reply message to the main control board.

[0138] Based on all the above embodiments, a message transmission method is also provided. When the message transmission method is applied to a main control board, such as Fig.11 As shown, the method includes:

[0139] S1101, receiving a first reply message, parsing the first reply message, and determining a priority parameter value in the first reply message;

[0140] S1102, determining whether the first reply message has a high priority according to the priority parameter value;

[0141] S1103: If yes, add the first reply message to the first message queue;

[0142] S1104, if not, add the first reply message to the second message queue;

[0143] S1105, obtaining a reply message to be processed from the first message queue;

[0144] S1106, determining whether the reply message to be processed supports the floating protocol;

[0145] S1107, if yes, determine the length of the floating data according to the length of the single data of the floating data and the number of the single data in the reply message to be processed, and determine the total length of the reply message to be processed according to the length of the floating data, and the frame header, frame number, fixed data and check code in the message to be processed;

[0146] S1108, if not, obtain the total length of the reply message to be processed;

[0147] S1109, obtaining a verification code of the reply message to be processed according to the total length, and verifying the reply message to be processed;

[0148] S1110, if the verification passes, the data in the communication protocol is parsed and transmitted to the target device; if the verification fails, the reply message to be processed is discarded.

[0149] Optionally, based on the message transmission method provided in the embodiment of the present application, the overall processing flow of the frame device is as follows: Fig.12 As shown in the figure, nerconf is the Network Configuration Protocol, and clish is a command line interface shell.

[0150] The above steps are all explained in the previous instructions. Please refer to the previous instructions for details and will not be repeated here.

[0151] In one embodiment, based on all the above methods, a message transmission system is also provided, such as Figure 2 As shown, the message transmission system includes a main control board 11 and a processing board 12, and the main control board 11 and the processing board 12 are connected in communication. The description of the main control board 11 and the processing board 12 can be found in the aforementioned Figure 2 The description of the embodiment is not repeated here. The processing board 12 is used to execute the above Figure 3-Figure 5 For details, please refer to the above Figure 3-Figure 5 The description of the embodiment is not repeated here; the main control board 11 is used to execute the aforementioned Figure 6-Figure 9 Example, details of the previous parameters Figure 6-Figure 9 The description of the embodiments is not repeated here.

[0152] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0153] Based on the same inventive concept, the embodiment of the present application also provides a message transmission device for implementing the message transmission method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more message transmission device embodiments provided below can refer to the limitations on the message transmission method above, and will not be repeated here.

[0154] In one embodiment, Fig.13 As shown, a message transmission device 20 is provided, comprising: a first receiving module 21, a determining module 22 and a transmission module 23, wherein:

[0155] The first receiving module 21 is configured to receive a first request message and determine whether the first request message supports the floating protocol.

[0156] The determination module 22 is used to determine a first reply message according to the floating protocol and the first request message when the first request message supports the floating protocol; the first reply message includes fixed data and floating data.

[0157] The transmission module 23 is used to transmit the first reply message to the main control board.

[0158] In one embodiment, the determination module 22 includes a parameter setting unit and a generation unit. The parameter setting unit is used to determine whether the first request message originates from a remote network management station according to the message source, and if so, the priority parameter of the first request message is set to a first value, and if not, the priority parameter of the first request message is set to a second value; the priority represented by the first value is higher than the priority represented by the second value. The generation unit is used to fill the priority parameter value of the priority parameter into the fixed data, and combine it with the floating data to generate the first reply message.

[0159] In one embodiment, the parameter setting unit is specifically used to determine whether a second request message is received within a preset time, and if it is determined that the second request message is received within the preset time, determine whether the value of the priority parameter in the second request message is a first value; the request content of the first request message and the second request message is the same; if it is determined that the value of the priority parameter in the second request message is the first value, the priority parameter of the first request message is set to the second value, or the first request message is discarded; if it is determined that the second request message is not received within the preset time, the priority parameter of the first request message is set to the first value.

[0160] In one embodiment, Fig.14 As shown, a message transmission device 30 is provided, comprising: a second receiving module 31 and a processing module 32, wherein:

[0161] The second receiving module 31 is configured to receive the first reply message and determine whether the first reply message supports the floating protocol.

[0162] The processing module 32 is used to process the first reply message based on the floating protocol when the first reply message supports the floating protocol, and transmit the processed first reply message to the target device; the first reply message includes fixed data and floating data.

[0163] In one embodiment, the processing module 32 includes a parsing unit and a transmission unit. The parsing unit is used to parse the first reply message based on the floating protocol, obtain the priority parameter value in the first reply message, and add the first reply message to the first message queue or the second message queue according to the priority parameter value; the priority of the first message queue is higher than the priority of the second message queue. The transmission unit is used to obtain the reply message to be processed from the first message queue as the processed first reply message, and transmit it to the target device.

[0164] In one embodiment, the processing module 32 further includes a determination unit and a verification unit. The determination unit is used to parse the processed first reply message and determine the total length of the processed first reply message. The verification unit is used to verify the processed first reply message according to the total length, and if the verification passes, transmit the processed first reply message to the target device.

[0165] In one embodiment, the determination unit is specifically used to determine the length of the floating data based on the single data length of the floating data and the number of single data in the processed first reply message; and determine the total length of the processed first reply message based on the length of the floating data, and the frame header, frame number, fixed data and check code in the processed first reply message.

[0166] Each module in the above message transmission device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0167] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.15As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a message transmission method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse, etc.

[0168] Those skilled in the art will understand that Fig.15 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0169] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0170] receiving a first request message, and determining whether the first request message supports a floating protocol;

[0171] In the case where the first request message supports the floating protocol, determining a first reply message according to the floating protocol and the first request message; the first reply message includes fixed data and floating data;

[0172] The first reply message is transmitted to the main control board.

[0173] In one embodiment, when the processor executes the computer program, the following steps are also implemented: determining whether the first request message originates from a remote network management station based on the source of the message; if so, setting the priority parameter of the first request message to a first value; if not, setting the priority parameter of the first request message to a second value; the priority represented by the first value is higher than the priority represented by the second value; filling the priority parameter value of the priority parameter into the fixed data, and combining it with the floating data to generate a first reply message.

[0174] In one embodiment, when the processor executes the computer program, it also implements the following steps: determining whether a second request message is received within a preset time, and if it is determined that the second request message is received within the preset time, determining whether the value of the priority parameter in the second request message is a first value; the request content of the first request message and the second request message are the same; if it is determined that the value of the priority parameter in the second request message is the first value, setting the priority parameter of the first request message to the second value, or discarding the first request message; if it is determined that the second request message is not received within the preset time, setting the priority parameter of the first request message to the first value.

[0175] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0176] receiving a first reply message, and determining whether the first reply message supports the floating protocol;

[0177] In the case where the first reply message supports the floating protocol, the first reply message is processed based on the floating protocol, and the processed first reply message is transmitted to the target device; the first reply message includes fixed data and floating data.

[0178] In one embodiment, the processor also implements the following steps when executing the computer program: parsing the first reply message based on the floating protocol, obtaining the priority parameter value in the first reply message, and adding the first reply message to the first message queue or the second message queue according to the priority parameter value; the priority of the first message queue is higher than the priority of the second message queue; obtaining the reply message to be processed from the first message queue as the processed first reply message, and transmitting it to the target device.

[0179] In one embodiment, when the processor executes the computer program, the following steps are also implemented: parsing the processed first reply message to determine the total length of the processed first reply message; verifying the processed first reply message according to the total length, and if the verification passes, transmitting the processed first reply message to the target device.

[0180] In one embodiment, when the processor executes the computer program, it also implements the following steps: determining the length of the floating data based on the single data length of the floating data and the number of single data in the processed first reply message; determining the total length of the processed first reply message based on the length of the floating data, and the frame header, frame number, fixed data and check code in the processed first reply message.

[0181] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0182] receiving a first request message, and determining whether the first request message supports a floating protocol;

[0183] In the case where the first request message supports the floating protocol, determining a first reply message according to the floating protocol and the first request message; the first reply message includes fixed data and floating data;

[0184] The first reply message is transmitted to the main control board.

[0185] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining whether the first request message originates from a remote network management station based on the source of the message; if so, setting the priority parameter of the first request message to a first value; if not, setting the priority parameter of the first request message to a second value; the priority represented by the first value is higher than the priority represented by the second value; filling the priority parameter value of the priority parameter into the fixed data, and combining it with the floating data to generate a first reply message.

[0186] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining whether a second request message is received within a preset time, and if it is determined that the second request message is received within the preset time, determining whether the value of the priority parameter in the second request message is a first value; the request content of the first request message and the second request message is the same; if it is determined that the value of the priority parameter in the second request message is the first value, setting the priority parameter of the first request message to the second value, or discarding the first request message; if it is determined that the second request message is not received within the preset time, setting the priority parameter of the first request message to the first value.

[0187] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0188] receiving a first reply message, and determining whether the first reply message supports the floating protocol;

[0189] In the case where the first reply message supports the floating protocol, the first reply message is processed based on the floating protocol, and the processed first reply message is transmitted to the target device; the first reply message includes fixed data and floating data.

[0190] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: parsing the first reply message based on the floating protocol, obtaining the priority parameter value in the first reply message, and adding the first reply message to the first message queue or the second message queue according to the priority parameter value; the priority of the first message queue is higher than the priority of the second message queue; obtaining the reply message to be processed from the first message queue as the processed first reply message, and transmitting it to the target device.

[0191] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: parsing the processed first reply message to determine the total length of the processed first reply message; verifying the processed first reply message according to the total length, and if the verification passes, transmitting the processed first reply message to the target device.

[0192] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining the length of the floating data based on the single data length of the floating data and the number of single data in the processed first reply message; determining the total length of the processed first reply message based on the length of the floating data, and the frame header, frame number, fixed data and check code in the processed first reply message.

[0193] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0194] receiving a first request message, and determining whether the first request message supports a floating protocol;

[0195] In the case where the first request message supports the floating protocol, determining a first reply message according to the floating protocol and the first request message; the first reply message includes fixed data and floating data;

[0196] The first reply message is transmitted to the main control board.

[0197] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining whether the first request message originates from a remote network management station based on the source of the message; if so, setting the priority parameter of the first request message to a first value; if not, setting the priority parameter of the first request message to a second value; the priority represented by the first value is higher than the priority represented by the second value; filling the priority parameter value of the priority parameter into the fixed data, and combining it with the floating data to generate a first reply message.

[0198] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining whether a second request message is received within a preset time, and if it is determined that the second request message is received within the preset time, determining whether the value of the priority parameter in the second request message is a first value; the request content of the first request message and the second request message is the same; if it is determined that the value of the priority parameter in the second request message is the first value, setting the priority parameter of the first request message to the second value, or discarding the first request message; if it is determined that the second request message is not received within the preset time, setting the priority parameter of the first request message to the first value.

[0199] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0200] receiving a first reply message, and determining whether the first reply message supports the floating protocol;

[0201] In the case where the first reply message supports the floating protocol, the first reply message is processed based on the floating protocol, and the processed first reply message is transmitted to the target device; the first reply message includes fixed data and floating data.

[0202] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: parsing the first reply message based on the floating protocol, obtaining the priority parameter value in the first reply message, and adding the first reply message to the first message queue or the second message queue according to the priority parameter value; the priority of the first message queue is higher than the priority of the second message queue; obtaining the reply message to be processed from the first message queue as the processed first reply message, and transmitting it to the target device.

[0203] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: parsing the processed first reply message to determine the total length of the processed first reply message; verifying the processed first reply message according to the total length, and if the verification passes, transmitting the processed first reply message to the target device.

[0204] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining the length of the floating data based on the single data length of the floating data and the number of single data in the processed first reply message; determining the total length of the processed first reply message based on the length of the floating data, and the frame header, frame number, fixed data and check code in the processed first reply message.

[0205] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0206] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0207] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A message transmission method, characterized in that: Applied to a processing board, the method comprises: receiving a first request message, and determining whether the first request message supports a floating protocol; In the case where the first request message supports the floating protocol, determining a first reply message according to the floating protocol and the first request message; the first reply message includes fixed data and floating data; The first reply message is transmitted to the main control board.

2. The method according to claim 1, characterized in that The first request message includes a message source, and the determining the first reply message according to the floating protocol and the first request message includes: Determine whether the first request message originates from a remote network management station according to the message source; if so, set the priority parameter of the first request message to a first value; if not, set the priority parameter of the first request message to a second value; the priority indicated by the first value is higher than the priority indicated by the second value; The priority parameter value of the priority parameter is filled into the fixed data, and combined with the floating data to generate a first reply message.

3. The method according to claim 2, characterized in that The step of setting the priority parameter of the first request message to a first value includes: determining whether a second request message is received within a preset time, and if it is determined that the second request message is received within the preset time, determining whether the value of the priority parameter in the second request message is the first value; the request contents of the first request message and the second request message are the same; If it is determined that the value of the priority parameter in the second request message is the first value, setting the priority parameter of the first request message to the second value, or discarding the first request message; If it is determined that the second request message has not been received within the preset time, the priority parameter of the first request message is set to the first value.

4. A message transmission method, characterized in that: Applied to the main control board, the method includes: receiving a first reply message, and determining whether the first reply message supports a floating protocol; In the case where the first reply message supports the floating protocol, the first reply message is processed based on the floating protocol, and the processed first reply message is transmitted to the target device; the first reply message includes fixed data and floating data.

5. The method according to claim 4, characterized in that The processing of the first reply message based on the floating protocol and transmitting the processed first reply message to the target device includes: Parsing the first reply message based on the floating protocol, obtaining a priority parameter value in the first reply message, and adding the first reply message to a first message queue or a second message queue according to the priority parameter value; the priority of the first message queue is higher than the priority of the second message queue; The to-be-processed reply message is obtained from the first message queue as the processed first reply message, and transmitted to the target device.

6. The method according to claim 5, characterized in that The step of transmitting the processed first reply message to the target device includes: Parsing the processed first reply message to determine the total length of the processed first reply message; The processed first reply message is verified according to the total length, and if the verification passes, the processed first reply message is transmitted to the target device.

7. The method according to claim 6, characterized in that The parsing the processed first reply message to determine the total length of the processed first reply message includes: Determine the length of the floating data according to the single data length of the floating data and the number of single data in the processed first reply message; The total length of the processed first reply message is determined according to the length of the floating data, and the frame header, frame number, fixed data and check code in the processed first reply message.

8. A message transmission system, characterized in that: include: A processing board and a main control board, wherein the processing board is communicatively connected to the main control board, the processing board is used to execute the steps of the method as described in any one of claims 1 to 3, and the main control board is used to execute the steps of the method as described in any one of claims 4 to 7.

9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.