Message transmission method and device, computer equipment and storage medium

By flexibly configuring packet transmission method that suppresses threshold parameters in industrial PON systems, the EtherCAT packet loss problem caused by fixed parameters is solved, and the real-time data transmission capability of the network is improved.

CN119814668APending Publication Date: 2025-04-11CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

When existing industrial PON systems carry converged services, the fixedly set low suppression threshold parameters cause frequent packet loss of EtherCAT type packets, affecting real-time data transmission.

Method used

A message transmission method that can flexibly configure suppression threshold parameters is provided. By obtaining the message types and characteristics of the message to be transmitted, the suppression threshold parameters of the OLT device are dynamically adjusted to meet the transmission requirements of different types of messages.

Benefits of technology

It effectively avoids packet loss of EtherCAT type packets, so that the industrial PON network can stably carry high-frequency EtherCAT type packet transmission while ensuring network security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119814668A_ABST
    Figure CN119814668A_ABST
Patent Text Reader

Abstract

The invention discloses a message transmission method and device, computer equipment and a storage medium. Belongs to the technical field of optical network communication. The method specifically comprises the following steps: acquiring a message type of a to-be-transmitted message; and under the condition that the message type is the target type, obtaining the message characteristics of the to-be-transmitted message. And determining a target suppression threshold parameter of the OLT equipment according to the message characteristics of the to-be-transmitted message. And transmitting the to-be-transmitted message based on the target suppression threshold parameter. Compared with a traditional method that a fixed suppression threshold parameter is adopted, and packet loss is prone to occurring when the OLT equipment transmits the EtherCAT type message, the suppression threshold parameter of the OLT equipment can be flexibly determined according to the message characteristics, the packet loss situation can be effectively avoided when the EtherCAT type message is transmitted, the network security of an industrial PON network is guaranteed, and the network performance of the OLT equipment is improved. And transmission of the EtherCAT type message can be carried and transmitted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of optical network communication technology, and in particular to a message transmission method, device, computer equipment and storage medium. Background Art

[0002] Industrial PON (Passive Optical Network) systems have the advantages of high bandwidth, long-distance transmission, and anti-electromagnetic interference. They support single-fiber point-to-multipoint applications. In addition to carrying industrial automation and intelligent manufacturing applications, they can also simultaneously transmit converged business applications such as the Internet, voice, and video to meet the diverse business needs of factory users. When existing industrial PON systems carry converged services, they usually follow the security configuration mode under the Internet and set a fixed lower broadcast / multicast suppression threshold parameter on the OLT (optical line terminal) device to limit broadcast / multicast network message attacks or unnecessary access messages.

[0003] EtherCAT is a real-time Ethernet communication protocol commonly used in the field of industrial automation. Some EtherCAT type messages have the characteristics of periodic communication. Such EtherCAT type messages are relatively high-frequency small packets, which are mainly used for process data transmission such as industrial equipment control and EtherCAT master-slave equipment synchronization. They have high real-time requirements and are highly sensitive to link delay and packet loss.

[0004] When industrial PON sets a fixed suppression threshold parameter with a low parameter value, packet loss will be performed when the threshold is exceeded. Although network security is guaranteed, when carrying EtherCAT type messages, high-frequency EtherCAT type messages will be lost, seriously affecting message transmission. Summary of the invention

[0005] Based on this, it is necessary to provide a message transmission method, device, computer equipment and storage medium that can flexibly configure suppression threshold parameters in order to solve the above technical problems.

[0006] In a first aspect, the present application provides a message transmission method, which is applied to an OLT device, and the method includes:

[0007] Get the message type of the message to be transmitted;

[0008] When the message type is the target type, obtaining message characteristics of the message to be transmitted;

[0009] Determine the target suppression threshold parameter of the OLT device according to the message characteristics of the message to be transmitted;

[0010] Based on the target suppression threshold parameter, the message to be transmitted is transmitted.

[0011] In one embodiment, obtaining a message feature of a message to be transmitted includes:

[0012] Get the source address of the message to be transmitted;

[0013] When the source device pointed to by the source address is a whitelist device, a message feature of the message to be transmitted is obtained.

[0014] In one embodiment, determining a target suppression threshold parameter of an OLT device according to a message feature of a message to be transmitted includes:

[0015] According to the message characteristics of the message to be transmitted, the current suppression threshold parameter of the OLT device is adjusted to obtain the target suppression threshold parameter.

[0016] In one of the embodiments, according to the message characteristics of the message to be transmitted, the current suppression threshold parameter of the OLT device is adjusted to obtain the target suppression threshold parameter, including:

[0017] According to the message characteristics of the message to be transmitted and the message forwarding capability of the ONU device associated with the OLT device, the current suppression threshold parameter of the OLT device is adjusted to obtain the target suppression threshold parameter.

[0018] In one of the embodiments, according to the message characteristics of the message to be transmitted and the message forwarding capability of the ONU device associated with the OLT device, the current suppression threshold parameter of the OLT device is adjusted to obtain the target suppression threshold parameter, including:

[0019] According to the message characteristics of the message to be transmitted and the message forwarding capability of the ONU device associated with the OLT device, the current suppression threshold parameter of the OLT device is adjusted to obtain a first suppression threshold parameter;

[0020] According to the suppression threshold parameter adjustment record in a preset historical period, the first suppression threshold parameter is adjusted to obtain a target suppression threshold parameter.

[0021] In one of the embodiments, the message characteristics include at least one of message data payload, transmission frequency and transmission rate.

[0022] In one embodiment, after transmitting the message to be transmitted based on the target suppression threshold parameter, the method further includes:

[0023] After detecting that the transmission of the message to be transmitted is completed, obtaining the preset recovery time;

[0024] After the preset recovery time, the target suppression threshold parameter is restored to the current suppression threshold parameter.

[0025] In a second aspect, the present application provides a message transmission device, which is configured in an OLT device, and the method includes:

[0026] A first acquisition module, used to acquire the message type of the message to be transmitted;

[0027] A second acquisition module, used to acquire the message characteristics of the message to be transmitted when the message type is the target type;

[0028] A first determination module, used to determine a target suppression threshold parameter of the OLT device according to a message feature of the message to be transmitted;

[0029] The transmission module is used to transmit the message to be transmitted based on the target suppression threshold parameter.

[0030] In a third aspect, the present application further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:

[0031] Get the message type of the message to be transmitted;

[0032] When the message type is the target type, obtaining message characteristics of the message to be transmitted;

[0033] Determine the target suppression threshold parameter of the OLT device according to the message characteristics of the message to be transmitted;

[0034] Based on the target suppression threshold parameter, the message to be transmitted is transmitted.

[0035] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0036] Get the message type of the message to be transmitted;

[0037] When the message type is the target type, obtaining message characteristics of the message to be transmitted;

[0038] Determine the target suppression threshold parameter of the OLT device according to the message characteristics of the message to be transmitted;

[0039] Based on the target suppression threshold parameter, the message to be transmitted is transmitted.

[0040] In a fifth aspect, the present application further provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0041] Get the message type of the message to be transmitted;

[0042] When the message type is the target type, obtaining message characteristics of the message to be transmitted;

[0043] Determine the target suppression threshold parameter of the OLT device according to the message characteristics of the message to be transmitted;

[0044] Based on the target suppression threshold parameter, the message to be transmitted is transmitted.

[0045] The above-mentioned message transmission method, device, computer equipment and storage medium obtain the message type of the message to be transmitted. When the message type is a target type, the message characteristics of the message to be transmitted are obtained. According to the message characteristics of the message to be transmitted, the target suppression threshold parameter of the OLT device is determined. Based on the target suppression threshold parameter, the message to be transmitted is transmitted. The present application can obtain the message type of the message to be transmitted. When the message type is a target type (for example, an EtherCAT type message), the message characteristics of the message to be transmitted can be obtained, and the target suppression threshold parameter of the OLT device can be flexibly determined according to the message characteristics of the message to be transmitted. Based on the target suppression threshold parameter, the message to be transmitted is transmitted. Compared with the traditional method of using fixed suppression threshold parameters, when the OLT device transmits EtherCAT type messages, packet loss is prone to occur. The present application can flexibly determine the suppression threshold parameter of the OLT device according to the message characteristics, which can effectively avoid the occurrence of packet loss when transmitting EtherCAT type messages, so that the industrial PON network can carry the transmission of EtherCAT type messages while ensuring network security. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 An application environment diagram of a message transmission method provided in this embodiment;

[0047] Figure 2 A schematic diagram of a flow chart of a first message transmission method provided in this embodiment;

[0048] Figure 3 A schematic diagram of a process for obtaining message features of a message to be transmitted provided in this embodiment;

[0049] Figure 4 A schematic diagram of a process for determining target suppression threshold parameters provided in this embodiment;

[0050] Figure 5 A schematic diagram of a flow chart of a second message transmission method provided in this embodiment;

[0051] Figure 6 A schematic diagram of a flow chart of a third message transmission method provided in this embodiment;

[0052] Figure 7 A structural block diagram of a message transmission device provided in this embodiment;

[0053] Figure 8 This is a diagram of the internal structure of the computer device provided in this 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] The message transmission method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the OLT device receives the message to be transmitted sent by the EtherCAT master station or the Internet server. The OLT device obtains the message type of the message to be transmitted. When the message type is a target type (for example, an EtherCAT type), the message characteristics of the message to be transmitted are obtained. The OLT device determines the target suppression threshold parameter of the OLT device based on the message characteristics of the message to be transmitted. Based on the target suppression threshold parameter, the OLT device transmits the message to be transmitted, that is, transmits the message to be transmitted to the EtherCAT slave station or industrial terminal through the ONU device.

[0056] Among them, OLT (optical line terminal) is the terminal equipment that users use to connect to the optical fiber trunk line.

[0057] ONU (Optical Network Unit) equipment refers to the user-side equipment in the optical fiber communication network. ONU equipment works in conjunction with OLT equipment. OLT equipment is located at the center of the industrial PON network and is responsible for sending the messages to be transmitted to the ONU equipment.

[0058] EtherCAT is a real-time Ethernet communication protocol that combines standard Ethernet technology with real-time control requirements and is widely used in the field of industrial automation. It adopts a master-slave architecture, where the master station is responsible for sending and receiving data, and the slave station performs specific control tasks. Data is transmitted cyclically between the master station and the slave station, and high-speed data exchange is achieved through an efficient frame structure and processing mechanism.

[0059] In one embodiment, Figure 2 is a flow chart of a message transmission method provided according to an embodiment of the present application, in which the method is applied to Figure 1 Taking the OLT device in the example as an example, the method includes the following steps:

[0060] S201: Obtain the message type of the message to be transmitted.

[0061] Among them, the message to be transmitted refers to the message that needs to be broadcast or multicast. In this application, the message to be transmitted can refer to the message that is continuously transmitted, not to a specific message.

[0062] As an optional implementation of the embodiment of the present application, a source device that generates the message to be transmitted is obtained, and a message type of the message to be transmitted is determined according to a device type of the source device.

[0063] Another optional implementation of the embodiment of the present application is to parse the message to be transmitted to obtain the message header of the message to be transmitted, and determine the message type of the message to be transmitted according to the field content in the message header. Specifically, the message type of the message to be transmitted is determined according to the frame type in the message header of the message to be transmitted (as shown in Table 1).

[0064] Table 1

[0065]

[0066] S202: When the message type is a target type, obtain a message feature of the message to be transmitted.

[0067] The target type refers to a pre-specified type. It should be noted that the target type of the present application mainly refers to the EtherCAT type, but is not limited to the EtherCAT type. The present application does not limit the specific type of the target type. The message feature refers to the relevant features of the message to be transmitted.

[0068] Exemplarily, as shown in Table 1 above, if the frame type in the message header (as shown in Table 1) of the message to be transmitted is "0x88A4", it indicates that the message type of the message to be transmitted is an EtherCAT type.

[0069] Optionally, the message characteristics in the present application include but are not limited to at least one of message data payload, transmission frequency and transmission rate. In addition, the message characteristics may also include source address, destination address, protocol port number, etc. It should be noted that the message data payload may be the average value of the data payload of each message to be transmitted.

[0070] Optionally, in this embodiment, an analysis module may be pre-configured in the OLT device, and the message characteristics of the message to be transmitted may be obtained based on the analysis module. Among them, the analysis module may obtain the message to be transmitted through the OLT device uplink port and the PON port, and start monitoring the message to be transmitted, and then obtain the message characteristics of the message to be transmitted. Specifically, the security management module in the OLT device may use a mirroring method to mirror the uplink and downlink messages through the OLT device uplink port and the PON port to the analysis module, so that the analysis module obtains the message to be transmitted and monitors the message to be transmitted. Optionally, the analysis module in this embodiment may be configured on the smart board of the OLT device.

[0071] S203: Determine a target suppression threshold parameter of the OLT device according to the message characteristics of the message to be transmitted.

[0072] Among them, the suppression threshold parameter refers to the threshold used to limit broadcast or multicast traffic; these parameters are set to prevent network congestion and improve network performance. The suppression threshold parameters of traditional OLT devices are fixed values ​​with low values. The processing method for broadcast or multicast messages generally adopts one-way over-threshold discard, which can be used to limit broadcast network message attacks or unnecessary access messages, but also makes the industrial PON network unable to transmit high-frequency EtherCAT type messages. The target suppression threshold parameter refers to the suppression threshold parameter that needs to be specified for the OLT device.

[0073] As an optional implementation of the embodiment of the present application, a target suppression threshold parameter of the OLT device is determined according to a transmission frequency and a message data payload in message characteristics of the message to be transmitted.

[0074] As another optional implementation of the embodiment of the present application, the message features of the message to be transmitted are input into an intelligent analysis tool, and the intelligent analysis tool outputs the target suppression threshold parameter of the OLT device. The intelligent analysis tool can be a trained neural network model.

[0075] S204: Transmit the message to be transmitted based on the target suppression threshold parameter.

[0076] Optionally, in this embodiment, after the target suppression threshold parameter is configured in the OLT device, the message to be transmitted is transmitted normally under the target suppression threshold parameter.

[0077] The above-mentioned message transmission method obtains the message type of the message to be transmitted. When the message type is a target type, the message characteristics of the message to be transmitted are obtained. According to the message characteristics of the message to be transmitted, the target suppression threshold parameter of the OLT device is determined. Based on the target suppression threshold parameter, the message to be transmitted is transmitted. The present application can obtain the message type of the message to be transmitted. When the message type is a target type (for example, an EtherCAT type message), the message characteristics of the message to be transmitted can be obtained, and the target suppression threshold parameter of the OLT device can be flexibly determined according to the message characteristics of the message to be transmitted. Based on the target suppression threshold parameter, the message to be transmitted is transmitted. Compared with the traditional method of using fixed suppression threshold parameters, when the OLT device transmits EtherCAT type messages, packet loss is prone to occur. The present application can flexibly determine the suppression threshold parameter of the OLT device according to the message characteristics, which can effectively avoid the occurrence of packet loss when transmitting EtherCAT type messages, so that the industrial PON network can carry the transmission of EtherCAT type messages while ensuring network security.

[0078] In one embodiment, to increase network security, such as Figure 3 As shown, an optional implementation of obtaining the message feature of the message to be transmitted in S201 includes:

[0079] S301, obtaining the source address of the message to be transmitted.

[0080] The source address refers to the MAC (Media Access Control) address of the source device that generates the message to be transmitted.

[0081] As an optional implementation of the embodiment of the present application, a source device that generates a message to be transmitted is obtained, and a device MAC address of the source device is determined to obtain the source address of the message to be transmitted.

[0082] As another optional implementation of the embodiment of the present application, the message to be transmitted is parsed to obtain the message header of the message to be transmitted, and the source address of the message to be transmitted is obtained according to the field content in the message header. Specifically, the source address of the message to be transmitted is determined according to the source address in the message header of the message to be transmitted (as shown in Table 1).

[0083] S302: When the source device pointed to by the source address is a whitelist device, obtain a message feature of the message to be transmitted.

[0084] Optionally, in this embodiment, before executing the message transmission method of the present application, during the online link establishment and activation process of the OUN device, it is necessary to report the message forwarding capability and its own MAC address to the OLT device. The OLT device includes this information of the ONU, and adds the MAC address of each ONU device to the whitelist, and the device corresponding to the MAC address in the whitelist is used as the whitelist device.

[0085] Optionally, in this embodiment, the source address is matched with each MAC address in the whitelist. If the match is successful, it indicates that the source device pointed to by the source address is a whitelist device. On this basis, the message characteristics of the message to be transmitted are obtained.

[0086] In this embodiment, the source address of the message to be transmitted is obtained. When the source device pointed to by the source address is a whitelist device, the message characteristics of the message to be transmitted are obtained. In this embodiment, the judgment process of the whitelist device is added, and the message characteristics are obtained only for the message to be transmitted generated by the whitelist device, which not only reduces unnecessary resource waste, but also improves network security.

[0087] In one embodiment, in order to more accurately determine the target suppression threshold parameter, such as Figure 4 As shown, an optional implementation of S203 includes:

[0088] S401, adjusting the current suppression threshold parameter of the OLT device according to the message characteristics of the message to be transmitted to obtain a target suppression threshold parameter.

[0089] The current suppression threshold parameter refers to the suppression threshold parameter currently being used by the OLT device, which is generally an initial suppression threshold parameter set manually or by a machine.

[0090] Optionally, in the present embodiment, each ONU device needs to upload its own message forwarding capability to the OLT device during the initial online link establishment and activation process. Specifically, the message forwarding capability of the device can be uploaded to the OLT device through the OMCI extended protocol or the extended OAM protocol. Taking the OMCI protocol as an example, the ONU ME capability set field can be extended, and an ONU Packet forwarding capability field can be added under the existing ONU capability ME field. Under the newly added field, the message forwarding capability of the ONU device under broadcast, multicast, and unicast can be reported. For example, each packet length occupies 3 bytes (24 bits) and the value can be:

[0091]

[0092] It should be noted that the message transmission method of the present application is mainly used when the type of message to be transmitted is a broadcast message. Therefore, the message forwarding capability mainly refers to the broadcast message forwarding capability.

[0093] As an optional implementation of the embodiment of the present application, according to the message characteristics of the message to be transmitted and the message forwarding capability of the ONU device associated with the OLT device, the current suppression threshold parameter of the OLT device is adjusted to obtain the target suppression threshold parameter. The message forwarding capability refers to the ability of the ONU device to forward broadcast or multicast messages.

[0094] Specifically, according to the message characteristics of the message to be transmitted (for example, message data payload, transmission frequency and transmission rate, etc.), determine the initial suppression threshold parameter (the setting requirement of the initial suppression threshold parameter is that the message to be transmitted can be transmitted normally without packet loss). Obtain the broadcast message forwarding capability of the OUN device associated with the OLT message. According to the initial suppression threshold parameter and the broadcast message forwarding capability of the OUN device associated with the OLT message, obtain the target suppression threshold parameter. For example, the target suppression threshold parameter is required to be 70%, 80%, 90%, etc. of the broadcast message forwarding capability of the ONU device. It should be noted that the target suppression threshold parameter can be repeatedly optimized and corrected to finally obtain the optimal target suppression threshold parameter.

[0095] As another optional implementation of the embodiment of the present application, according to the message characteristics of the message to be transmitted and the message forwarding capability of the ONU device associated with the OLT device, the current suppression threshold parameter of the OLT device is adjusted to obtain the first suppression threshold parameter. According to the suppression threshold parameter adjustment record in the preset historical period, the first suppression threshold parameter is adjusted to obtain the target suppression threshold parameter.

[0096] It should be noted that, in this embodiment, according to the message characteristics of the message to be transmitted and the message forwarding capability of the ONU device associated with the OLT device, the current suppression threshold parameter of the OLT device is adjusted to obtain the specific method of the first suppression threshold parameter. The method for determining the target suppression threshold parameter in the previous embodiment can be referred to, and will not be repeated here.

[0097] In this embodiment, the first suppression threshold parameter is adjusted according to the suppression threshold parameter adjustment record in a preset historical period to obtain the target suppression threshold parameter. The preset historical period can be the previous day, the previous week, the previous month, etc. Specifically, the predicted suppression threshold parameter can be determined according to the suppression threshold parameter adjustment record in the preset historical period in combination with the intelligent analysis model. Based on the predicted suppression threshold parameter, the first suppression threshold parameter is adjusted to obtain the target suppression threshold parameter. For example, the average of the predicted suppression threshold parameter and the first suppression threshold parameter is used as the target suppression threshold parameter.

[0098] Since message transmission has certain regularity, when determining the target suppression threshold parameter, the target suppression threshold parameter can be determined more efficiently and accurately according to the actual situation and historical data.

[0099] It should be noted that, in the present application, the target suppression threshold parameter of the OLT device can be determined based on the message characteristics of the message to be transmitted, and the analysis module in the above embodiment can be executed and processed. The analysis module feeds back the execution processing result to the security management module of the OLT device, and the security management module adjusts the current suppression threshold parameter of the OLT device according to the execution processing result of the analysis module to obtain the target suppression threshold parameter.

[0100] In this embodiment, according to the message characteristics of the message to be transmitted, the current suppression threshold parameter of the OLT device is adjusted to obtain the target suppression threshold parameter. In this embodiment, the current suppression threshold parameter can be dynamically adjusted according to the real-time transmission of the message to obtain the target suppression threshold parameter, which can be applied to the transmission of messages in various business scenarios, can realize the normal transmission of the message to be transmitted, and can effectively avoid the occurrence of packet loss.

[0101] In one embodiment, after transmitting the message to be transmitted based on the target suppression threshold parameter, such as Figure 5As shown, another optional implementation of a message transmission method includes:

[0102] S501, after detecting that the transmission of the message to be transmitted is completed, obtaining a preset recovery time.

[0103] The preset recovery time refers to the recovery time of the suppression threshold parameter of the OLT device, for example, 10S.

[0104] Optionally, in this embodiment, a preset recovery time is stored in the OLT device. After detecting that the transmission of the message to be transmitted is completed, the preset recovery time is obtained. Optionally, after detecting that the transmission of the message to be transmitted is completed, the analysis module in the OLT device sends a message transmission completion message to the security management module of the OLT device, and after receiving the message transmission completion message, the security management module obtains the preset recovery time.

[0105] S502: After a preset restoration time, the target suppression threshold parameter is restored to the current suppression threshold parameter.

[0106] Optionally, the security management module of the OLT device in this embodiment obtains the current duration, and after the current duration is equal to the preset recovery duration, restores the target suppression threshold parameter to the current suppression threshold parameter. The current duration refers to the duration from the current moment to the time when the message transmission end message is received.

[0107] In this embodiment, after detecting that the transmission of the message to be transmitted has ended, a preset recovery time is obtained. After the preset recovery time, the target suppression threshold parameter is restored to the current suppression threshold parameter. In this embodiment, after detecting that the transmission of the message to be transmitted has ended, the target suppression threshold parameter can also be restored to the current suppression threshold parameter after the preset recovery time, thereby realizing intelligent recovery of the suppression threshold parameter and ensuring network security.

[0108] In one embodiment, if Figure 6 As shown, another optional implementation of a message transmission method includes:

[0109] S601: Obtain the message type of the message to be transmitted.

[0110] S602: When the message type is a target type, obtain a source address of the message to be transmitted.

[0111] S603: When the source device pointed to by the source address is a whitelist device, obtain a message feature of the message to be transmitted, wherein the message feature includes at least one of a message data payload, a transmission frequency, and a transmission rate.

[0112] S604: According to the message characteristics of the message to be transmitted and the message forwarding capability of the ONU device associated with the OLT device, adjust the current suppression threshold parameter of the OLT device to obtain a first suppression threshold parameter.

[0113] S605: Adjust the first suppression threshold parameter according to the suppression threshold parameter adjustment record in a preset historical period to obtain a target suppression threshold parameter.

[0114] S606: Transmit the message to be transmitted based on the target suppression threshold parameter.

[0115] S607: After detecting that the transmission of the message to be transmitted is completed, obtain a preset recovery time.

[0116] S608: After a preset restoration time, the target suppression threshold parameter is restored to the current suppression threshold parameter.

[0117] In this embodiment, the message type of the message to be transmitted is obtained. When the message type is a target type, the message characteristics of the message to be transmitted are obtained. According to the message characteristics of the message to be transmitted, the target suppression threshold parameter of the OLT device is determined. Based on the target suppression threshold parameter, the message to be transmitted is transmitted. The present application can obtain the message type of the message to be transmitted. When the message type is a target type (for example, an EtherCAT type message), the message characteristics of the message to be transmitted can be obtained, and the target suppression threshold parameter of the OLT device can be flexibly determined according to the message characteristics of the message to be transmitted. Based on the target suppression threshold parameter, the message to be transmitted is transmitted. Compared with the traditional method of using fixed suppression threshold parameters, when the OLT device transmits EtherCAT type messages, packet loss is prone to occur. The present application can flexibly determine the suppression threshold parameter of the OLT device according to the message characteristics, which can effectively avoid the occurrence of packet loss when transmitting EtherCAT type messages, so that the industrial PON network can carry the transmission of EtherCAT type messages while ensuring network security.

[0118] It should be understood that, although the steps in the flowcharts involved in the above 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 is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may 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 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.

[0119] 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.

[0120] In one embodiment, by Figure 7 FIG. 2 shows a structural block diagram of a message transmission device in an embodiment. Figure 7 As shown, a message transmission device 1 is provided, the device comprising: a first acquisition module 10, a second acquisition module 20, a first determination module 30 and a transmission module 40, wherein:

[0121] A first acquisition module 10, used to acquire the message type of the message to be transmitted;

[0122] A second acquisition module 20, used to acquire the message characteristics of the message to be transmitted when the message type is the target type;

[0123] A first determination module 30, configured to determine a target suppression threshold parameter of the OLT device according to a message feature of the message to be transmitted;

[0124] The transmission module 40 is used to transmit the message to be transmitted based on the target suppression threshold parameter.

[0125] The above-mentioned message transmission device obtains the message type of the message to be transmitted. When the message type is a target type, the message characteristics of the message to be transmitted are obtained. According to the message characteristics of the message to be transmitted, the target suppression threshold parameter of the OLT device is determined. Based on the target suppression threshold parameter, the message to be transmitted is transmitted. The present application can obtain the message type of the message to be transmitted. When the message type is a target type (for example, an EtherCAT type message), the message characteristics of the message to be transmitted can be obtained, and the target suppression threshold parameter of the OLT device can be flexibly determined according to the message characteristics of the message to be transmitted. Based on the target suppression threshold parameter, the message to be transmitted is transmitted. Compared with the traditional method of using fixed suppression threshold parameters, when the OLT device transmits EtherCAT type messages, packet loss is prone to occur. The present application can flexibly determine the suppression threshold parameter of the OLT device according to the message characteristics, which can effectively avoid packet loss when transmitting EtherCAT type messages, so that the industrial PON network can carry the transmission of EtherCAT type messages while ensuring network security.

[0126] In one embodiment, the Figure 7 The second acquisition module 20 is further specifically used for:

[0127] Get the source address of the message to be transmitted;

[0128] When the source device pointed to by the source address is a whitelist device, a message feature of the message to be transmitted is obtained.

[0129] In one embodiment, the Figure 7 The first determining module 30 is further specifically used for:

[0130] According to the message characteristics of the message to be transmitted, the current suppression threshold parameter of the OLT device is adjusted to obtain the target suppression threshold parameter.

[0131] In one embodiment, the Figure 7 The first determining module 30 is further specifically used for:

[0132] According to the message characteristics of the message to be transmitted and the message forwarding capability of the ONU device associated with the OLT device, the current suppression threshold parameter of the OLT device is adjusted to obtain the target suppression threshold parameter.

[0133] In one embodiment, the Figure 7 The first determining module 30 is further specifically used for:

[0134] According to the message characteristics of the message to be transmitted and the message forwarding capability of the ONU device associated with the OLT device, the current suppression threshold parameter of the OLT device is adjusted to obtain a first suppression threshold parameter;

[0135] According to the suppression threshold parameter adjustment record in a preset historical period, the first suppression threshold parameter is adjusted to obtain a target suppression threshold parameter.

[0136] In one of the embodiments, the message characteristics include at least one of message data payload, transmission frequency and transmission rate.

[0137] In one embodiment, the Figure 7 The message transmission device 1 further comprises:

[0138] A third acquisition module is used to acquire a preset recovery time after detecting that the transmission of the message to be transmitted is completed;

[0139] The second determining module is used to restore the target suppression threshold parameter to the current suppression threshold parameter after a preset restoration time.

[0140] Each module in the above-mentioned message transmission device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules 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 the operations corresponding to each of the above modules.

[0141] In one embodiment, a computer device is provided. The computer device may be a platform side, and its internal structure diagram may be as shown in FIG. Figure 8 As shown. The computer device includes a processor, a memory and a network interface 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, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store information related to suppression threshold parameters. The network interface of the computer device is used to communicate with an external user side through a network connection. When the computer program is executed by the processor, a message transmission method is implemented.

[0142] Those skilled in the art will understand that Figure 8 The structure shown in the figure is merely a block diagram of a portion 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. Specifically, the 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.

[0143] 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:

[0144] Get the message type of the message to be transmitted;

[0145] When the message type is the target type, obtaining message characteristics of the message to be transmitted;

[0146] Determine the target suppression threshold parameter of the OLT device according to the message characteristics of the message to be transmitted;

[0147] Based on the target suppression threshold parameter, the message to be transmitted is transmitted.

[0148] In one embodiment, when the processor executes the computer program, the following steps are further implemented: obtaining a message feature of the message to be transmitted includes:

[0149] Get the source address of the message to be transmitted;

[0150] When the source device pointed to by the source address is a whitelist device, a message feature of the message to be transmitted is obtained.

[0151] In one embodiment, when the processor executes the computer program, the following steps are further implemented: determining a target suppression threshold parameter of the OLT device according to the message characteristics of the message to be transmitted, including:

[0152] According to the message characteristics of the message to be transmitted, the current suppression threshold parameter of the OLT device is adjusted to obtain the target suppression threshold parameter.

[0153] In one embodiment, when the processor executes the computer program, the following steps are further implemented: according to the message characteristics of the message to be transmitted, the current suppression threshold parameter of the OLT device is adjusted to obtain the target suppression threshold parameter, including:

[0154] According to the message characteristics of the message to be transmitted and the message forwarding capability of the ONU device associated with the OLT device, the current suppression threshold parameter of the OLT device is adjusted to obtain the target suppression threshold parameter.

[0155] In one embodiment, when the processor executes the computer program, the following steps are further implemented: according to the message characteristics of the message to be transmitted and the message forwarding capability of the ONU device associated with the OLT device, the current suppression threshold parameter of the OLT device is adjusted to obtain the target suppression threshold parameter, including:

[0156] According to the message characteristics of the message to be transmitted and the message forwarding capability of the ONU device associated with the OLT device, the current suppression threshold parameter of the OLT device is adjusted to obtain a first suppression threshold parameter;

[0157] According to the suppression threshold parameter adjustment record in a preset historical period, the first suppression threshold parameter is adjusted to obtain a target suppression threshold parameter.

[0158] In one embodiment, when the processor executes the computer program, the following steps are further implemented: the message characteristics include at least one of the message data payload, transmission frequency and transmission rate.

[0159] In one embodiment, when the processor executes the computer program, the following steps are further implemented: after transmitting the message to be transmitted based on the target suppression threshold parameter, the method further includes:

[0160] After detecting that the transmission of the message to be transmitted is completed, obtaining the preset recovery time;

[0161] After the preset recovery time, the target suppression threshold parameter is restored to the current suppression threshold parameter.

[0162] 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:

[0163] Get the message type of the message to be transmitted;

[0164] When the message type is the target type, obtaining message characteristics of the message to be transmitted;

[0165] Determine the target suppression threshold parameter of the OLT device according to the message characteristics of the message to be transmitted;

[0166] Based on the target suppression threshold parameter, the message to be transmitted is transmitted.

[0167] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: obtaining message features of the message to be transmitted includes:

[0168] Get the source address of the message to be transmitted;

[0169] When the source device pointed to by the source address is a whitelist device, a message feature of the message to be transmitted is obtained.

[0170] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining a target suppression threshold parameter of the OLT device according to the message characteristics of the message to be transmitted, including:

[0171] According to the message characteristics of the message to be transmitted, the current suppression threshold parameter of the OLT device is adjusted to obtain the target suppression threshold parameter.

[0172] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: according to the message characteristics of the message to be transmitted, the current suppression threshold parameter of the OLT device is adjusted to obtain the target suppression threshold parameter, including:

[0173] According to the message characteristics of the message to be transmitted and the message forwarding capability of the ONU device associated with the OLT device, the current suppression threshold parameter of the OLT device is adjusted to obtain the target suppression threshold parameter.

[0174] In one of the embodiments, according to the message characteristics of the message to be transmitted and the message forwarding capability of the ONU device associated with the OLT device, the current suppression threshold parameter of the OLT device is adjusted to obtain the target suppression threshold parameter, including:

[0175] According to the message characteristics of the message to be transmitted and the message forwarding capability of the ONU device associated with the OLT device, the current suppression threshold parameter of the OLT device is adjusted to obtain a first suppression threshold parameter;

[0176] According to the suppression threshold parameter adjustment record in a preset historical period, the first suppression threshold parameter is adjusted to obtain a target suppression threshold parameter.

[0177] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the message characteristics include at least one of the message data payload, transmission frequency and transmission rate.

[0178] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: after transmitting the message to be transmitted based on the target suppression threshold parameter, the method further includes:

[0179] After detecting that the transmission of the message to be transmitted is completed, obtaining the preset recovery time;

[0180] After the preset recovery time, the target suppression threshold parameter is restored to the current suppression threshold parameter.

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

[0182] Get the message type of the message to be transmitted;

[0183] When the message type is the target type, obtaining message characteristics of the message to be transmitted;

[0184] Determine the target suppression threshold parameter of the OLT device according to the message characteristics of the message to be transmitted;

[0185] Based on the target suppression threshold parameter, the message to be transmitted is transmitted.

[0186] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: obtaining message features of the message to be transmitted includes:

[0187] Get the source address of the message to be transmitted;

[0188] When the source device pointed to by the source address is a whitelist device, a message feature of the message to be transmitted is obtained.

[0189] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: determining a target suppression threshold parameter of the OLT device according to the message characteristics of the message to be transmitted, including:

[0190] According to the message characteristics of the message to be transmitted, the current suppression threshold parameter of the OLT device is adjusted to obtain the target suppression threshold parameter.

[0191] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: according to the message characteristics of the message to be transmitted, the current suppression threshold parameter of the OLT device is adjusted to obtain the target suppression threshold parameter, including:

[0192] According to the message characteristics of the message to be transmitted and the message forwarding capability of the ONU device associated with the OLT device, the current suppression threshold parameter of the OLT device is adjusted to obtain the target suppression threshold parameter.

[0193] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: according to the message characteristics of the message to be transmitted and the message forwarding capability of the ONU device associated with the OLT device, the current suppression threshold parameter of the OLT device is adjusted to obtain the target suppression threshold parameter, including:

[0194] According to the message characteristics of the message to be transmitted and the message forwarding capability of the ONU device associated with the OLT device, the current suppression threshold parameter of the OLT device is adjusted to obtain a first suppression threshold parameter;

[0195] According to the suppression threshold parameter adjustment record in a preset historical period, the first suppression threshold parameter is adjusted to obtain a target suppression threshold parameter.

[0196] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the message characteristics include at least one of the message data payload, transmission frequency and transmission rate.

[0197] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: after transmitting the message to be transmitted based on the target suppression threshold parameter, the method further includes:

[0198] After detecting that the transmission of the message to be transmitted is completed, obtaining the preset recovery time;

[0199] After the preset recovery time, the target suppression threshold parameter is restored to the current suppression threshold parameter.

[0200] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments 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.

[0201] The technical features of the above embodiments may be arbitrarily combined. 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.

[0202] The above 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 an optical cable terminal OLT device, the method comprises: Get the message type of the message to be transmitted; When the message type is a target type, obtaining a message feature of the message to be transmitted; Determining a target suppression threshold parameter of the OLT device according to the message characteristics of the message to be transmitted; The message to be transmitted is transmitted based on the target suppression threshold parameter.

2. The method according to claim 1, characterized in that The acquiring the message feature of the message to be transmitted includes: Obtaining the source address of the message to be transmitted; In a case where the source device pointed to by the source address is a whitelist device, a message feature of the message to be transmitted is obtained.

3. The method according to claim 1, characterized in that The determining, according to the message characteristics of the message to be transmitted, a target suppression threshold parameter of the OLT device includes: According to the message characteristics of the message to be transmitted, the current suppression threshold parameter of the OLT device is adjusted to obtain the target suppression threshold parameter.

4. The method according to claim 3, characterized in that The step of adjusting the current suppression threshold parameter of the OLT device according to the message characteristics of the message to be transmitted to obtain the target suppression threshold parameter includes: According to the message characteristics of the message to be transmitted and the message forwarding capability of the optical network unit ONU device associated with the OLT device, the current suppression threshold parameter of the OLT device is adjusted to obtain the target suppression threshold parameter.

5. The method according to claim 4, characterized in that The adjusting the current suppression threshold parameter of the OLT device according to the message characteristics of the message to be transmitted and the message forwarding capability of the ONU device associated with the OLT device to obtain the target suppression threshold parameter includes: According to the message characteristics of the message to be transmitted and the message forwarding capability of the ONU device associated with the OLT device, adjusting the current suppression threshold parameter of the OLT device to obtain a first suppression threshold parameter; The first suppression threshold parameter is adjusted according to the suppression threshold parameter adjustment record in a preset historical period to obtain the target suppression threshold parameter.

6. The method according to any one of claims 1 to 5, characterized in that: The message characteristics include at least one of message data payload, transmission frequency and transmission rate.

7. The method according to claim 3, characterized in that After transmitting the message to be transmitted based on the target suppression threshold parameter, the method further includes: After detecting that the transmission of the message to be transmitted is completed, obtaining a preset recovery time; After the preset restoration time, the target suppression threshold parameter is restored to the current suppression threshold parameter.

8. A message transmission device, characterized in that: Configured in an OLT device, the method comprises: A first acquisition module, used to acquire the message type of the message to be transmitted; A second acquisition module, used for acquiring the message characteristics of the message to be transmitted when the message type is a target type; A first determination module, configured to determine a target suppression threshold parameter of an OLT device according to a message feature of the message to be transmitted; A transmission module is used to transmit the message to be transmitted based on the target suppression threshold parameter.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

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.

11. A computer program product, comprising a computer program, 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.