Data transmission method, device, router, electronic device and storage medium

By analyzing the five-layer protocol of data packets and setting thresholds for link utilization, the problem of low transmission channel utilization caused by network traffic fluctuations is solved, and the effect of improving channel utilization and stability is achieved.

CN116155827BActive Publication Date: 2024-08-27CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310080056.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-17
Publication Date
2024-08-27
Estimated Expiration
2043-01-17

AI Technical Summary

Technical Problem

As network traffic increases and traffic types become more complex and diverse, fluctuations in business traffic rates have an impact on the stability of the transmission channel, resulting in low utilization of the transmission channel.

Method used

After receiving the data packet, it performs five-layer protocol analysis on it, determines the target network node, and sets a preset threshold based on the link utilization. Data packets that exceed the threshold are discarded, and data packets that do not exceed the threshold are discarded. Send to avoid excessive traffic impact on the transmission channel.

Benefits of technology

It improves the utilization rate of the transmission channel, avoids the impact of traffic fluctuations on the transmission channel, and enhances the stability of the channel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116155827B
    Figure CN116155827B
Patent Text Reader

Abstract

The present application provides a data transmission method, device, router, electronic device and storage medium. The method includes: receiving a data message; performing five-layer protocol analysis on the data message to determine the target network node of the data message; dropping the data message that exceeds a first preset threshold; and sending the data message that does not exceed the first preset threshold to the target network node. The method of the present application improves the utilization rate of the transmission channel.
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 data transmission method, device, router, electronic device and storage medium. Background Art

[0002] With the improvement of communication network facilities and the improvement of smart terminal manufacturing level, the scale of Internet users continues to grow and data transmission becomes more frequent.

[0003] Data transmission is the communication process of transmitting data from one place to another through a transmission channel. At present, during data transmission, after receiving the data to be transmitted, the routing device performs protocol analysis on the data to obtain the target network node, and then transmits the data to the target network node.

[0004] However, as network traffic has greatly increased and the protocol types of traffic have become complex, diverse and changing in real time, the fluctuation of business traffic rate has brought an impact on the stability of the transmission channel, resulting in low transmission channel utilization. Summary of the invention

[0005] The present application provides a data transmission method, device, router, electronic device and storage medium to solve the problem of low transmission channel utilization.

[0006] In a first aspect, the present application provides a data transmission method, comprising:

[0007] Receive data packets;

[0008] Perform five-layer protocol analysis on data messages to determine the target network node of the data message;

[0009] Dropping data packets exceeding a first preset threshold, where the first preset threshold is the number of data packets that can be received by the target network node;

[0010] The data message that does not exceed the first preset threshold is sent to the target network node.

[0011] Optionally, perform five-layer protocol parsing on the data message, including:

[0012] Perform protocol analysis on the physical layer, data link layer, network layer, transport layer and application layer of the data message.

[0013] Optionally, the method further comprises:

[0014] Perform five-layer protocol analysis on the data message to obtain the service type and / or priority information of the data message;

[0015] Dropping packets of data packets exceeding a first preset threshold includes:

[0016] Data packets exceeding a first preset threshold are discarded according to the service type and / or priority information.

[0017] Optionally, before discarding the data packets exceeding the first preset threshold, the method further includes:

[0018] Obtain link utilization of target network nodes;

[0019] A first preset threshold is determined according to the link utilization.

[0020] Optionally, the first preset threshold includes a fourth preset threshold, a fifth preset threshold and a sixth preset threshold, wherein the values ​​represented by the fourth preset threshold, the fifth preset threshold and the sixth preset threshold decrease in sequence;

[0021] Determining a first preset threshold according to the link utilization includes:

[0022] Determine the first preset threshold according to the second preset threshold and the third preset threshold of the link utilization, wherein the link utilization represented by the second preset threshold is lower than the link utilization represented by the third preset threshold;

[0023] When the link utilization is less than or equal to the second preset threshold, the first preset threshold is the fourth preset threshold;

[0024] When the link utilization is greater than the second preset threshold and less than the third preset threshold, the first preset threshold is the fifth preset threshold;

[0025] When the link utilization is greater than or equal to the third preset threshold, the first preset threshold is the sixth preset threshold.

[0026] Optionally, after receiving the data message, the method further includes:

[0027] Convert data messages from optical signals to electrical signals;

[0028] Before sending the data message that does not exceed the first preset threshold to the target network node, the method further includes:

[0029] The data message that does not exceed the first preset threshold value is converted from an electrical signal to an optical signal.

[0030] In a second aspect, the present application provides a data transmission device, including:

[0031] A receiving module, used for receiving data messages;

[0032] A determination module is used to perform five-layer protocol analysis on the data message and determine the target network node of the data message;

[0033] A processing module, configured to discard data packets exceeding a first preset threshold;

[0034] The sending module is used to send the data message that does not exceed the first preset threshold to the target network node.

[0035] In a third aspect, the present application provides a router, including:

[0036] A first network interface, used to receive data packets and convert the data packets from optical signals to electrical signals;

[0037] An identification chip is used to identify data messages and determine the target network node of the data message;

[0038] A main control chip, used for discarding data packets exceeding a first preset threshold;

[0039] The second network interface is used to convert the data message that does not exceed the first preset threshold from an electrical signal to an optical signal, and send it to a target network node.

[0040] In a fourth aspect, the present application provides an electronic device, including: a memory and a processor;

[0041] The memory is used to store computer programs; the processor is used to execute the computer programs stored in the memory to implement the data transmission method in the first aspect and any one of the embodiments of the first aspect.

[0042] In a fifth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the data transmission method in the first aspect and any one of the embodiments of the first aspect is implemented.

[0043] The data transmission method, device, router, electronic device and storage medium provided in the present application perform five-layer protocol parsing on the data message after receiving the data message to determine the target network node of the data message; then discard the data message that exceeds the first preset threshold, and send the data message that does not exceed the first preset threshold to the target network node, thereby achieving the effect of improving the utilization rate of the transmission channel. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0045] Figure 1 A schematic diagram of a data transmission scenario provided in an embodiment of the present application;

[0046] Figure 2A flowchart of a data transmission method provided in one embodiment of the present application;

[0047] Figure 3 A schematic diagram of the structure of a data transmission device provided in one embodiment of the present application;

[0048] Figure 4 A schematic diagram of the structure of a router provided in one embodiment of the present application;

[0049] Figure 5 A schematic diagram of the hardware structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0051] The terms "first", "second", "third", "fourth", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances. For example, without departing from the scope of this document, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.

[0052] The word "if" as used herein may be interpreted as "at" or "when" or "in response to determining," depending on the context.

[0053] Furthermore, as used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context indicates otherwise.

[0054] It should be further understood that the terms “comprises” and “includes” indicate the existence of features, steps, operations, elements, components, items, types, and / or groups, but do not exclude the existence, occurrence, or addition of one or more other features, steps, operations, elements, components, items, types, and / or groups.

[0055] With the improvement of communication network facilities and the improvement of smart terminal manufacturing level, the scale of Internet users continues to grow and data transmission in the network is becoming more frequent.

[0056] Data transmission refers to the communication process of transmitting data from one place to another through a transmission channel. As network traffic increases greatly, and the protocol types of traffic become complex and diverse and change in real time, the fluctuation of traffic rate has an impact on the stability of the transmission channel, resulting in low utilization of the transmission channel.

[0057] In view of the above problems, the present application proposes a data transmission method, device, router, electronic device and storage medium. After receiving a data message, the method performs a five-layer protocol analysis on the data message to determine the target network node of the data message; then the data message exceeding the first preset threshold is discarded, and the data message that does not exceed the first preset threshold is sent to the target network node. By shaping the traffic, the effect of improving the utilization rate of the transmission channel is achieved.

[0058] The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0059] Figure 1 A schematic diagram of a data transmission scenario provided by an embodiment of the present application is shown. Figure 1 As shown, after receiving the data, router 1 will first determine the target address or next hop address of the data, and then transmit the data through the transmission channel, or router 2 will continue to transmit the data. When the traffic rate fluctuates too much, it may cause an impact on the transmission channel, and the utilization rate of the transmission channel will be greatly reduced.

[0060] In this application, the electronic device is used as the execution subject to execute the data transmission method of the following embodiments. Specifically, the execution subject can be a hardware device of the electronic device, or a software application that implements the following embodiments in the electronic device, or a computer-readable storage medium installed with the software application that implements the following embodiments, or a code that implements the software application of the following embodiments.

[0061] Figure 2 FIG. 1 is a flow chart of a data transmission method provided by an embodiment of the present application. Figure 2 As shown, with the electronic device as the execution subject, the method of this embodiment may include the following steps:

[0062] S201, receiving a data message.

[0063] In this embodiment, the data message may be a service data message or a signaling interaction message, which is not limited in this embodiment.

[0064] S202: Perform five-layer protocol analysis on the data message to determine the target network node of the data message.

[0065] In this embodiment, the target network node is a network node that will receive the data message. Each data message has its corresponding target network node, and the target network nodes of different data messages may be the same or different.

[0066] Optionally, five-layer protocol parsing refers to protocol parsing of the physical layer, data link layer, network layer, transport layer and application layer, so as to obtain a target network node of the data message.

[0067] In addition, the five-layer protocol parsing can also obtain other data message information, such as transmission port, service type, etc., which can be understood by referring to the existing technology related to the five-layer protocol parsing, and will not be repeated here.

[0068] Based on the information obtained from the five-layer protocol analysis, it can be determined whether the data message to be transmitted is lost or not.

[0069] S203: discard data packets exceeding a first preset threshold, where the first preset threshold is the number of data packets that can be received by the target network node.

[0070] In this embodiment, a first preset threshold may be preset to limit the number of transmittable data packets.

[0071] In one example, the data message is parsed by the five-layer protocol to obtain the service type and / or priority information of the data message. In this example, the data message exceeding the first preset threshold can be discarded according to the service type and / or priority information.

[0072] For example, the service type of the data message includes service type A and service type B, and the data message of service type B and exceeding the first preset threshold can be set to be dropped as needed. For another example, the data message exceeding the first preset threshold and with a lower priority can be dropped. Here, high or low priority refers to data messages relative to each other, and the user can set it as needed.

[0073] Alternatively, the data packets of service type B include high-priority and low-priority packets, and among the data packets of service type B that exceed the first preset threshold, the low-priority packets are discarded.

[0074] In one example, setting the first preset threshold may be obtaining a link utilization rate of the target network node, and determining the first preset threshold rate according to the link utilization rate.

[0075] In this example, the link utilization of the target network node can represent its congestion state. The higher the link utilization, the more congested the link is, and the fewer data packets the target network node can receive.

[0076] The method of this example determines the first preset threshold according to the link utilization rate, so that the number of data packets sent to the target network node will not impact the transmission channel, and at the same time improves the utilization rate of the transmission channel.

[0077] Optionally, the first preset threshold includes a fourth preset threshold, a fifth preset threshold, and a sixth preset threshold, where the values represented by the fourth preset threshold, the fifth preset threshold, and the sixth preset threshold decrease in sequence.

[0078] Based on the above example, according to the link utilization rate, determine the first preset threshold. The specific implementation method can be: determine the first preset threshold according to the second preset threshold and the third preset threshold of the link utilization rate, where the link utilization rate represented by the second preset threshold is lower than the link utilization rate represented by the third preset threshold.

[0079] When the link utilization rate is less than or equal to the second preset threshold, the first preset threshold is the fourth preset threshold;

[0080] When the link utilization rate is greater than the second preset threshold and less than the third preset threshold, the first preset threshold is the fifth preset threshold;

[0081] When the link utilization rate is greater than or equal to the third preset threshold, the first preset threshold is the sixth preset threshold.

[0082] For example, the link utilization rates P are P1 and P2, and P1 < P2. The first preset threshold is N, and the fourth preset threshold, the fifth preset threshold, and the sixth preset threshold are N1, N2, and N3 respectively, and N1 > N2 > N3.

[0083] When P < P1, set N = N1; when P1 < P < P2, set N = N2; when P2 < P, set N = N3.

[0084] The method of this example sets thresholds for the link utilization rate, and sets different first preset thresholds for different link utilization rates, so that the transmission channel is not impacted by excessive traffic fluctuations and has a higher utilization rate at the same time.

[0085] S204. Send the data packets that do not exceed the first preset threshold to the target network node.

[0086] In this embodiment, in the process of sending the data packets that do not exceed the first preset threshold to the target network node, due to the small traffic fluctuations, it will not impact the transmission channel.

[0087] Optionally, if the data packet is converted from an optical signal to an electrical signal after receiving the data packet, then before sending, the data packets that do not exceed the first preset threshold are converted from an electrical signal to an optical signal. The optical and electrical conversion is for facilitating the internal signal processing of the device.

[0088] The data transmission method provided in the present application discards data packets that exceed a threshold value according to the number of data packets that can be received by the target network node, and transmits data packets that do not exceed the threshold value to the target network node, thereby avoiding the impact of excessive traffic on the transmission channel and improving the utilization rate of the transmission channel.

[0089] Figure 3 FIG. 1 is a schematic diagram showing the structure of a data transmission device provided by an embodiment of the present application. Figure 3 As shown, the data transmission device 30 of this embodiment is used to implement the operation corresponding to the electronic device in any of the above method embodiments. The data transmission device 30 of this embodiment includes:

[0090] Receiving module 301, used for receiving data message;

[0091] The determination module 302 is used to perform five-layer protocol analysis on the data message to determine the target network node of the data message;

[0092] The processing module 303 is used to discard data packets exceeding a first preset threshold;

[0093] The sending module 304 is configured to send the data message that does not exceed the first preset threshold to the target network node.

[0094] The data transmission device 30 provided in the embodiment of the present application can execute the above method embodiment. Its specific implementation principle and technical effects can be found in the above method embodiment, and this embodiment will not be repeated here.

[0095] Figure 4 A schematic diagram of the structure of a router provided in one embodiment of the present application. Figure 4 As shown, the router 40 of this embodiment is used to implement the operation corresponding to the electronic device in any of the above method embodiments. The router 40 of this embodiment may include:

[0096] The first network interface 401 is used to receive data packets and convert the data packets from optical signals to electrical signals;

[0097] Identification chip 402, used to identify the data message and determine the target network node of the data message;

[0098] The main control chip 403 is used to discard data packets exceeding a first preset threshold;

[0099] The second network interface 404 is used to convert the data message that does not exceed the first preset threshold from an electrical signal to an optical signal, and send it to the target network node.

[0100] The router 40 of this embodiment may further include: a switching chip 405 and a statistics chip 406. The switching chip 405 is used to forward signaling interaction and data messages in the router 40. The statistics chip 406 is used to package and send the identification results of the identification chip 402 and the data messages to the main control chip 403.

[0101] Specifically, the second end of the first network interface 401 is connected to the first end of the switching chip 405, and the third end of the switching chip 405 is connected to the third end of the main control chip 403. The routing table information of the main control chip is learned through signaling interaction, and a forwarding table is formed and stored, which can guide the specific forwarding of data.

[0102] The second end of the switching chip 405 is connected to the first end of the identification chip 402, and the switching chip 405 transmits the data message to the identification chip without changing the content of the data message.

[0103] The identification process of the identification chip 402 can be port identification, feature word identification, association identification and behavior identification, etc. Among them, port identification refers to some traditional network application protocols, which use fixed well-known ports for communication, so for this part of the protocol, port detection technology can be used for identification. Feature word identification refers to determining the protocol type by analyzing the specific fields and states of the application layer protocol. Association identification refers to parsing the negotiation message of the protocol, extracting and counting the traffic on the channel, and thus determining the protocol type. Behavior identification refers to a method of identifying protocols with ambiguous feature keywords through specific behavior analysis.

[0104] The second end of the identification chip 402 is connected to the first end of the statistics chip 406 , and the identification chip 402 transmits the data message and the identification result to the statistics chip 406 , and the content of the data message is not changed during the process.

[0105] The second end of the statistics chip 406 is connected to the first end of the main control chip 403 . The statistics chip 406 does not process the data message, but only sends the statistics content and the data message to the main control chip 403 .

[0106] Different from the traditional router device, the main control chip 403 of the router 40 of this embodiment can process the data message according to the demand, such as traffic shaping.

[0107] The main control chip 403 can selectively discard data packets through the token bucket technology, thereby achieving the effect of bandwidth control and traffic shaping. After setting the token bucket, only data packets that get the corresponding token can be transmitted, and data packets that do not get the token are discarded. The main control chip 403 can set the number of tokens N, and the size of N can be adjusted during the use of the router. N represents the number of messages that can pass through the chip smoothly without being discarded. The larger the N value, the more data packets are transmitted.

[0108] The first end of the second network interface 404 is connected to the second end of the main control chip 403. The second network interface 404 is mainly used to perform electrical-optical conversion on the data message and send the data message to the next hop device in the form of an optical signal.

[0109] The router 40 of this embodiment can eliminate the need to configure a dedicated traffic shaping device when performing traffic shaping, and the router 40 can be flexibly configured in the network, so that operators can flexibly build the network.

[0110] The router 40 provided in the embodiment of the present application can execute the above method embodiment. For details not yet completed, please refer to the specific implementation principles and technical effects described in the above method embodiment, which will not be repeated in this embodiment.

[0111] Figure 5 FIG. 1 shows a hardware structure diagram of an electronic device provided in an embodiment of the present application. Figure 5 As shown, the electronic device 50 is used to implement the operations corresponding to the electronic device in any of the above method embodiments. The electronic device 50 of this embodiment may include: a memory 501 and a processor 502.

[0112] The memory 501 is used to store computer programs. The memory 501 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (NVM), such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a disk or an optical disk.

[0113] The processor 502 is used to execute the computer program stored in the memory to implement the data transmission method in the above embodiment. For details, please refer to the relevant description in the above method embodiment. The processor 502 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the invention can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

[0114] Optionally, the memory 501 may be independent or integrated with the processor 502 .

[0115] When the memory 501 is a device independent of the processor 502, the electronic device 50 may further include a bus. The bus is used to connect the memory 501 and the processor 502. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0116] The electronic device 50 may further include a communication interface, which may be connected to the processor 502 via a bus. The processor 502 may control the communication interface to implement functions of receiving and sending signals.

[0117] The electronic device 50 provided in this embodiment can be used to execute the above-mentioned data transmission method, and its implementation method and technical effect are similar, which will not be described in detail in this embodiment.

[0118] The present application also provides a computer-readable storage medium, in which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, it is used to implement the methods provided in the various embodiments described above.

[0119] Among them, the computer-readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a computer-readable storage medium is coupled to a processor so that the processor can read information from the computer-readable storage medium and write information to the computer-readable storage medium. Of course, the computer-readable storage medium can also be a component of the processor. The processor and the computer-readable storage medium can be located in an application-specific integrated circuit (ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the computer-readable storage medium can also exist in a communication device as discrete components.

[0120] Specifically, the computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0121] The present application also provides a computer program product, which includes a computer program / instruction, and the computer program / instruction is stored in a computer-readable storage medium. At least one processor of the device can read the computer program / instruction from the computer-readable storage medium, and at least one processor executes the computer program / instruction so that the device implements the methods provided in the various embodiments described above.

[0122] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0123] Among them, each module can be physically separated, for example, installed in different locations of a device, or installed on different devices, or distributed on multiple network units, or distributed on multiple processors. Each module can also be integrated together, for example, installed in the same device, or integrated in a set of codes. Each module can exist in the form of hardware, or can also exist in the form of software, or can also be implemented in the form of software plus hardware. The present application can select some or all of the modules according to actual needs to achieve the purpose of the present embodiment.

[0124] It should be understood that, although the various steps in the flowcharts in the above-described embodiments are sequentially displayed according to the indications of the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and they can be executed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily to be carried out sequentially, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0125] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0126] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the above embodiments can still be modified, or some or all of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A data transmission method, characterized in that: The method comprises: Receive data packets; Performing five-layer protocol analysis on the data message to determine the target network node of the data message; Dropping the data packets exceeding a first preset threshold, where the first preset threshold is the number of data packets that can be received by the target network node; Sending the data message that does not exceed the first preset threshold to the target network node; Before discarding the data message exceeding the first preset threshold, the method further includes: Obtaining the link utilization of the target network node; Determining a first preset threshold value according to the link utilization; The first preset threshold includes a fourth preset threshold, a fifth preset threshold and a sixth preset threshold, wherein the values ​​represented by the fourth preset threshold, the fifth preset threshold and the sixth preset threshold decrease in sequence; The determining a first preset threshold according to the link utilization includes: Determine the first preset threshold according to a second preset threshold and a third preset threshold of the link utilization, wherein the link utilization represented by the second preset threshold is lower than the link utilization represented by the third preset threshold; When the link utilization is less than or equal to the second preset threshold, the first preset threshold is the fourth preset threshold; When the link utilization is greater than the second preset threshold and less than the third preset threshold, the first preset threshold is the fifth preset threshold; When the link utilization is greater than or equal to the third preset threshold, the first preset threshold is the sixth preset threshold.

2. The method according to claim 1, characterized in that The performing five-layer protocol parsing on the data message includes: The data message is subjected to protocol analysis at the physical layer, data link layer, network layer, transport layer and application layer.

3. The method according to claim 2, characterized in that The method further comprises: Performing five-layer protocol parsing on the data message to obtain service type and / or priority information of the data message; The step of discarding the data message exceeding the first preset threshold comprises: The data packets exceeding a first preset threshold are discarded according to the service type and / or priority information.

4. The method according to any one of claims 1 to 3, characterized in that: After receiving the data message, the method further includes: Converting the data message from an optical signal to an electrical signal; Before sending the data message that does not exceed the first preset threshold to the target network node, the method further includes: The data message that does not exceed the first preset threshold is converted from an electrical signal to an optical signal.

5. A data transmission device, characterized in that: include: A receiving module, used for receiving data messages; A determination module, used to perform five-layer protocol analysis on the data message to determine the target network node of the data message; A processing module, configured to discard the data packets exceeding a first preset threshold; A sending module, configured to send the data message that does not exceed the first preset threshold to the target network node; The processing module is configured to obtain the link utilization of the target network node before discarding the data message exceeding the first preset threshold; determine the first preset threshold according to the link utilization; the first preset threshold includes a fourth preset threshold, a fifth preset threshold and a sixth preset threshold, wherein the values ​​represented by the fourth preset threshold, the fifth preset threshold and the sixth preset threshold decrease in sequence; The processing module is specifically used to determine the first preset threshold value according to the second preset threshold value and the third preset threshold value of the link utilization, wherein the link utilization represented by the second preset threshold value is lower than the link utilization represented by the third preset threshold value; when the link utilization is less than or equal to the second preset threshold value, the first preset threshold value is the fourth preset threshold value; when the link utilization is greater than the second preset threshold value and less than the third preset threshold value, the first preset threshold value is the fifth preset threshold value; when the link utilization is greater than or equal to the third preset threshold value, the first preset threshold value is the sixth preset threshold value.

6. A router, characterized in that: include: A first network interface, used to receive a data message and convert the data message from an optical signal to an electrical signal; An identification chip, used to identify the data message and determine the target network node of the data message; A main control chip, used for discarding the data message exceeding a first preset threshold; a second network interface, configured to convert the data message that does not exceed the first preset threshold from an electrical signal to an optical signal, and send the optical signal to the target network node; The main control chip is used to obtain the link utilization of the target network node before discarding the data message exceeding the first preset threshold; determine the first preset threshold according to the link utilization; the first preset threshold includes a fourth preset threshold, a fifth preset threshold and a sixth preset threshold, wherein the values ​​represented by the fourth preset threshold, the fifth preset threshold and the sixth preset threshold decrease in sequence; The main control chip is specifically used to determine the first preset threshold value according to the second preset threshold value and the third preset threshold value of the link utilization, wherein the link utilization represented by the second preset threshold value is lower than the link utilization represented by the third preset threshold value; when the link utilization is less than or equal to the second preset threshold value, the first preset threshold value is the fourth preset threshold value; when the link utilization is greater than the second preset threshold value and less than the third preset threshold value, the first preset threshold value is the fifth preset threshold value; when the link utilization is greater than or equal to the third preset threshold value, the first preset threshold value is the sixth preset threshold value.

7. An electronic device, characterized in that: The device comprises: a memory and a processor; The memory is used to store computer programs; The processor is used to execute the computer program stored in the memory to implement the data transmission method according to any one of claims 1 to 4.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it is used to implement the data transmission method according to any one of claims 1 to 4.