Data transmission method and device, computer equipment and storage medium

By extracting and encapsulating the original traffic cache information of service packets in the network security serial connection device, and forwarding it to the second line side, the problem of internal traffic congestion and high packet loss rate caused by flow control packet transmission is solved, and the problem of high packet loss rate is achieved. Lower bandwidth consumption and higher transmission stability.

CN118540276APending Publication Date: 2024-08-23深圳市恒扬数据股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410797942.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

When the existing network security serial connection equipment is running in series on the existing network, the bandwidth is occupied by the transmission of flow control packets, causing traffic congestion within the equipment and increasing the packet loss rate of service packets.

Method used

By receiving the processing mark information of service packets on the system side, the original traffic cache information is extracted for packet encapsulation and forwarded to the preset second line side, thereby reducing the amount of data transmitted and reducing traffic congestion and packet loss rate within the device. .

Benefits of technology

It effectively reduces the bandwidth consumption from the system side to the line side, reduces traffic bursts within the device, greatly reduces the packet loss rate, and saves costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540276A
    Figure CN118540276A
Patent Text Reader

Abstract

The invention provides a data transmission method and device, computer equipment and a storage medium. The method comprises the following steps: when a system side receives a service message which is transmitted on a first line side and is forwarded by a preset complete machine switching network, obtaining processing mark information of the service message; performing corresponding processing on the service message based on the processing mark information to obtain a specified service message; extracting original traffic cache information in the specified service message; performing message packaging on the original traffic cache information to obtain a corresponding target service message; and forwarding the target service message to a preset second line side based on the complete machine switching network. According to the invention, the bandwidth consumption from the system side to the line side is reduced by reducing the flow forwarded from the system side to the line side, so that the flow burst in the equipment can be effectively reduced, and the packet loss rate of the message is greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Messages are the medium for information exchange between network devices. As data transmission services become more and more abundant, the transmission of data messages between different devices has become more and more complex. The stability and reliability of data transmission between networks is particularly important. In the related technology, the sudden packet loss during the serial operation of network security cascade devices in the existing network is a common problem known in the industry. Since the network security cascade devices need to converge and re-load balance the existing network traffic, the problem of forwarding multi-port traffic to one port traffic during the reinjection process makes the sudden packet loss extremely obvious. At present, in order to reduce the packet loss rate, the existing network security cascade devices mainly reduce the packet loss rate through traffic caching at the interface card and flow control message transmission within the entire device. For the method of reducing the packet loss rate by transmitting flow control messages within the entire device, since the transmission of traffic congestion information between boards in the device through flow control messages itself requires bandwidth, under the condition of congestion, the transmission of flow control information further increases the traffic congestion inside the device, thereby increasing the packet loss rate of the service message. Summary of the invention

[0003] The main purpose of the present invention is to provide a data transmission method, device, computer equipment and storage medium, which aims to solve the problem that during the serial operation of existing network security serial devices in the existing network, the method of reducing the packet loss rate by using flow control message transmission within the entire device is solved. Since the transmission of traffic congestion information between boards in the device through flow control messages itself requires bandwidth, under congestion conditions, the transmission of flow control information further increases the traffic congestion inside the device, thereby increasing the packet loss rate of business messages.

[0004] To achieve the above object, the present invention provides a data transmission method, the method comprising:

[0005] When receiving, on the system side, a service message sent on the first line side and forwarded by a preset whole-machine switching network, obtaining processing mark information of the service message;

[0006] Perform corresponding processing on the service message based on the processing mark information to obtain a specified service message;

[0007] Extracting original traffic cache information from the specified service message;

[0008] Encapsulating the original traffic cache information into a message to obtain a corresponding target service message;

[0009] Based on the whole machine switching network, the target service message is forwarded to a preset second line side.

[0010] Optionally, the step of performing corresponding processing on the service message based on the processing mark information to obtain a specified service message includes:

[0011] Performing content analysis on the processing mark information to determine whether the processing mark information is a compressed message;

[0012] If the processing mark information is a compressed message, decompress the service message to obtain a processed first service message;

[0013] Using the first service message as the designated service message;

[0014] If the processing mark information is not a compressed message, the service message is used as the designated service message.

[0015] Optionally, when the system side receives a service message sent on the first line side and forwarded by a preset whole-machine switching network, after the step of obtaining processing mark information of the service message, the method further includes:

[0016] When an original service message containing service traffic to be forwarded is received on the first line side, cache marking processing is performed on the original service message based on a preset cache marking module to obtain a corresponding second service message;

[0017] Compressing the second service message based on a preset target compression algorithm to obtain a corresponding third service message;

[0018] Determining the service message from the second service message and the third service message based on a preset screening rule;

[0019] Based on the whole machine switching network, the service message is forwarded to the system side.

[0020] Optionally, the step of performing cache marking processing on the original service message based on a preset cache marking module to obtain a corresponding second service message includes:

[0021] Get the preset information type;

[0022] Based on the information type, obtaining cache marking information matching the original service message;

[0023] Based on the cache marking module, the cache marking information is marked into the original service message to obtain the second service message.

[0024] Optionally, before the step of compressing the second service message based on a preset target compression algorithm to obtain a corresponding third service message, the method further includes:

[0025] Get multiple preset compression algorithms;

[0026] Generating the algorithm processing efficiency of each compression algorithm based on preset algorithm test data;

[0027] Filter out a first compression algorithm whose algorithm processing efficiency is greater than a preset efficiency threshold from all the compression algorithms;

[0028] Obtaining the publication time information, algorithm usage evaluation data and the processing efficiency of the specified algorithm of each of the first compression algorithms;

[0029] The target compression algorithm is determined from all the first compression algorithms based on the publication time information of each of the first compression algorithms, the algorithm usage evaluation data, and the processing efficiency of the designated algorithm.

[0030] Optionally, the step of determining the target compression algorithm from all the first compression algorithms based on the publication time information of each of the first compression algorithms, algorithm usage evaluation data, and designated algorithm processing efficiency includes:

[0031] Get the current time;

[0032] Based on the current time and the publication time information of each of the first compression algorithms, calculate the publication time of each of the first compression algorithms;

[0033] Obtaining a first preset weight corresponding to the published time, obtaining a second preset weight corresponding to the algorithm processing efficiency, and obtaining a third preset weight corresponding to the algorithm usage evaluation data;

[0034] Based on the first preset weight, the second preset weight, and the third preset weight, the published time of each of the first compression algorithms, the processing efficiency of the specified algorithm, and the algorithm usage evaluation data are calculated and processed to obtain an algorithm processing score of each of the first compression algorithms;

[0035] Selecting a second compression algorithm with the highest algorithm processing score from all the first compression algorithms;

[0036] The target compression algorithm is determined based on the second compression algorithm.

[0037] Optionally, the step of determining the service message from the second service message and the third service message based on a preset screening rule includes:

[0038] Acquire a first data volume of the second service message; and,

[0039] Acquire a second data volume of the third service message;

[0040] Determining whether the first data amount is greater than the second data amount;

[0041] If the first data amount is greater than the second data amount, the third service message is used as the service message; otherwise, the second service message is used as the service message.

[0042] In addition, to achieve the above object, the present invention further provides a data transmission device, the data transmission device comprising:

[0043] A first acquisition module, configured to acquire processing mark information of a service message when a service message sent on a first line side and forwarded by a preset whole-machine switching network is received on a system side;

[0044] A first processing module, configured to perform corresponding processing on the service message based on the processing mark information to obtain a specified service message;

[0045] An extraction module, used to extract the original traffic cache information in the specified service message;

[0046] A second processing module is used to encapsulate the original traffic cache information into a message to obtain a corresponding target service message;

[0047] The first forwarding module is used to forward the target service message to a preset second line side based on the whole machine switching network.

[0048] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:

[0049] The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any one of the data transmission methods proposed in the embodiments of the present application are implemented.

[0050] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:

[0051] The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of any one of the data transmission methods proposed in the embodiments of the present application are implemented.

[0052] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0053] The present invention provides a data transmission method, device, computer equipment and storage medium, the method comprising: when receiving a service message sent on a first line side forwarded by a preset whole machine switching network on the system side, obtaining the processing mark information of the service message; performing corresponding processing on the service message based on the processing mark information to obtain a designated service message; extracting the original flow cache information in the designated service message; performing message encapsulation on the original flow cache information to obtain a corresponding target service message; forwarding the target service message to a preset second line side based on the whole machine switching network. When receiving a service message sent on a first line side forwarded by a preset whole machine switching network on the system side, the application performs corresponding processing on the service message based on the acquired processing mark information of the service message to obtain a designated service message, and then extracts the original flow cache information in the designated service message and performs message encapsulation on the original flow cache information to obtain a target service message, and then forwards the target service message to a preset second line side based on the whole machine switching network. The present application only forwards message information instead of the message itself during the forwarding process from the system side to the line side, and discards the message itself, thereby effectively reducing the amount of transmitted data. By reducing the size of the traffic forwarded from the system side to the line side, the bandwidth consumption from the system side to the line side is reduced, thereby effectively reducing the traffic bursts inside the device and greatly reducing the packet loss rate of the message. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. 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.

[0055] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;

[0056] Figure 2 is a flow chart of a data transmission method provided by an embodiment of the present invention;

[0057] Figure 3 is a structural schematic diagram of an embodiment of a data transmission device according to the present application;

[0058] Figure 4 This is a basic structural block diagram of the computer device in this embodiment. DETAILED DESCRIPTION

[0059] The data transmission method provided by the embodiment of the present invention is applied to a data transmission device. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" in the specification and claims of the present application and the above-mentioned drawings and any variations thereof are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0060] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0061] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0062] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0063] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social online platform software, etc.

[0064] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) players, laptop computers and desktop computers, etc.

[0065] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .

[0066] It should be noted that the data transmission method provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the data transmission device is generally arranged in the server / terminal device.

[0067] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0068] Messages are the medium for information exchange between network devices. As data transmission services become more and more abundant, the transmission of data messages between different devices has become more and more complex. The stability and reliability of data transmission between networks is particularly important. In the related technology, the sudden packet loss during the serial operation of network security cascade devices in the existing network is a common problem known in the industry. Since the network security cascade devices need to converge and re-load balance the existing network traffic, the problem of forwarding multi-port traffic to one port traffic during the reinjection process makes the sudden packet loss extremely obvious. At present, in order to reduce the packet loss rate, the existing network security cascade devices mainly reduce the packet loss rate through traffic caching at the interface card and flow control message transmission within the entire device. For the method of reducing the packet loss rate by transmitting flow control messages within the entire device, since the transmission of traffic congestion information between boards in the device through flow control messages itself requires bandwidth, under the condition of congestion, the transmission of flow control information further increases the traffic congestion inside the device, thereby increasing the packet loss rate of the service message.

[0069] Continue to refer Figure 2 , shows a flow chart of an embodiment of the data transmission method proposed in the present application. The embodiment of the present application can acquire and process relevant data based on artificial intelligence technology.

[0070] The data transmission method provided by the embodiment of the present invention comprises the following steps:

[0071] S210, when the system side receives a service message sent on the first line side and forwarded by a preset whole-machine switching network, obtain processing mark information of the service message.

[0072] In this step, the present invention can be applied to the business scenario where a sudden packet loss occurs during the serial operation of the network security serial connection device in the network, and the execution subject of the present invention can be a network security serial connection device. Based on the use of the network security serial connection device, the existing network devices of the operator are not directly interconnected, and the traffic is interconnected through the network security serial connection device. The network security serial connection device forwards the existing network traffic from the system side interface to the network security analysis server through internal aggregation, load balancing and other processing. After the network analysis server analyzes, the traffic is injected back into the network security serial connection device, and then the network security serial connection device injects the traffic back into the operator's line. Among them, the network security serial connection device may include a line side serial connection line card, a device internal traffic exchange card, and a system side output and traffic injection interface card. The line side serial connection line card is used to complete the aggregation, business processing, and load balancing calculation of the line side traffic. The internal traffic exchange card of the device can also be called a whole machine switching network, which is used to complete the function of internal traffic exchange of the whole machine. Specifically, the sudden packet loss during the serial operation of the network security serial connection device in the network mainly occurs on the path from the input direction of the system side to the sending direction of the line side, that is, in the direction of forwarding from the system side to the line side. The system side includes system side input and system side output. Usually, the system side input is injected by multiple system side servers. Since server processing will introduce traffic bursts, and multiple servers are connected at the same time, the system side traffic is aggregated on the system side service board and forwarded to the switch card through the internal 100G interface. Multiple 100G interfaces will appear in the device at the same time to send in the direction of one line card. For example, two 100G ports send traffic to one 100G at the same time, resulting in burst packet loss.

[0073] S220: Perform corresponding processing on the service message based on the processing mark information to obtain a designated service message.

[0074] In this step, the implementation process of performing corresponding processing on the service message based on the processing mark information to obtain the specified service message will be further described in detail in the subsequent specific embodiments of this application, and will not be elaborated on here. Among them, the processing flow of performing corresponding processing on the service message based on the processing mark information to obtain the specified service message is the processing step flow executed in the direction of the system side output.

[0075] S230: extracting original traffic cache information from the designated service message.

[0076] In this step, when the system side receives the designated service message for injection, the pre-built message cache information extraction module can be called to extract the original traffic cache information in the designated service message through the message cache information extraction module, and the message itself can be discarded, thereby effectively reducing the amount of message data transmitted in the whole machine switch. Among them, a cache marking module is pre-built on the system side, which is a functional module that records the cache information of the message, such as the cache address and message length, and marks it in the message.

[0077] S240, encapsulating the original traffic cache information into a message to obtain a corresponding target service message.

[0078] In this step, by encapsulating the original traffic cache information, multiple traffic cache information can be selected to be encapsulated into one message for forwarding. Among them, the number of original traffic cache information only needs 4 to 8 bytes, while the information of the original business message may be 64 to 1518 bytes, or longer. By encapsulating the original traffic cache information into a message to obtain the corresponding target business message, and then forwarding the target business message, the amount of message data transmitted in the whole machine exchange is reduced to 1.56% of the flow of the original business message (if the average packet length is 512 bytes, the original traffic cache information is calculated as 8 bytes), so that the amount of data transmitted internally is reduced by two orders of magnitude, and the packet loss rate of the message can also be greatly reduced. In addition, the second line side is the line sending side. In addition, the above-mentioned extraction of the original traffic cache information in the specified business message, and the process of encapsulating the original traffic cache information into a message to obtain the corresponding target business message is a process of processing steps executed in the direction of the system side input.

[0079] S250: forwarding the target service message to a preset second line side based on the whole machine switching network.

[0080] In this step, by encapsulating the original traffic cache information into a message to obtain the corresponding target service message, bandwidth can be further saved. Since the whole machine switching network only forwards the message information but not the message itself when forwarding the message in the sending direction of the line side, that is, forwarding the target service message to the preset second line side, and discards the message itself, the congestion level when forwarding from multiple ports to one line port is greatly reduced, thereby effectively reducing the amount of transmitted data, reducing the burst of internal traffic of the device, and reducing the packet loss rate of the message.

[0081] In an embodiment of the present invention, when a service message sent on a first line side and forwarded by a preset whole-machine switching network is received on the system side, the processing tag information of the service message is first obtained; then, the service message is processed accordingly based on the processing tag information to obtain a designated service message; then, the original traffic cache information in the designated service message is extracted; subsequently, the original traffic cache information is message encapsulated to obtain a corresponding target service message; finally, based on the whole-machine switching network, the target service message is forwarded to the preset second line side. In the present application, when a service message sent on a first line side and forwarded by a preset whole-machine switching network is received on the system side, the service message is processed accordingly based on the acquired processing tag information of the service message to obtain a designated service message, and then, the original traffic cache information in the designated service message is extracted and the original traffic cache information is message encapsulated to obtain a target service message, and subsequently, the target service message is forwarded to the preset second line side based on the whole-machine switching network. The present application only forwards message information instead of the message itself during the forwarding process from the system side to the line side, and discards the message itself, thereby effectively reducing the amount of transmitted data. By reducing the size of the traffic forwarded from the system side to the line side, the bandwidth consumption from the system side to the line side is reduced, thereby effectively reducing the traffic bursts inside the device and greatly reducing the packet loss rate of the message.

[0082] Optionally, in other embodiments, for existing devices, the method of reducing the packet loss rate by using traffic caching at the interface card requires a large-capacity memory. For the current large-flow interfaces such as 100GE, not only a large-capacity memory but also a large-bandwidth memory is required, which greatly increases the cost of the device. Based on the method adopted by the present application to reduce the size of the traffic forwarded from the system side to the line side, the bandwidth consumption of the system side after sending (to) the line side is reduced, thereby greatly reducing the processing method of packet loss, the function of the traffic caching module in the input direction of the system side can be omitted, thereby saving costs.

[0083] Optionally, the step of performing corresponding processing on the service message based on the processing mark information to obtain a specified service message includes:

[0084] Content analysis is performed on the processing mark information to determine whether the processing mark information is a compressed message.

[0085] In this step, the content of the processing mark information can be extracted and analyzed to determine whether the processing mark information is a compressed message, wherein the content of the processing mark information is a compressed message or a non-compressed message.

[0086] If the processing mark information is a compressed message, the service message is decompressed to obtain a processed first service message.

[0087] In this step, if the processing mark information is identified as a compressed message, it indicates that the service message received by the current system side and forwarded by the whole machine switching network is a service message obtained by compressing the original service message to be forwarded on the first line side, and then the service message will be intelligently decompressed to obtain the restored original service message with complete service flow data. Among them, an adapted decompression tool can be used to decompress the service message to obtain the processed first service message.

[0088] The first service message is used as the designated service message.

[0089] In this step, after the first service message is obtained, the first service message is directly used as the above-mentioned designated service message.

[0090] If the processing mark information is not a compressed message, the service message is used as the designated service message.

[0091] In this step, if the processing mark information is not a compressed message, the content corresponding to the processing mark information is a non-compressed message, which means that the service message received by the current system side and forwarded by the whole machine switching network is the original service message that has been compressed and has complete service flow data. In this case, the decompression process will be intelligently skipped, and the service message will be directly used as the designated service message.

[0092] In this embodiment, by performing content analysis on the processing mark information, it is determined whether the processing mark information is a compressed message; if the processing mark information is a compressed message, the service message is decompressed to obtain the first processed service message; the first service message is subsequently used as the designated service message; and if the processing mark information is not a compressed message, the service message is used as the designated service message. The present application performs content analysis on the processing mark information of the acquired service message, and then performs corresponding processing on the service message according to the obtained content analysis result to obtain the designated service message, that is, when the processing mark information is a compressed message, the service message is intelligently decompressed, and the first processed service message is used as the above-mentioned designated service message, and when the processing mark information is not a compressed message, the service message is intelligently directly used as the designated service message, which effectively improves the processing adaptability of the corresponding processing of the service message based on the processing mark information, and ensures the data accuracy of the obtained designated service message.

[0093] Optionally, when the system side receives a service message sent on the first line side and forwarded by a preset whole-machine switching network, after the step of obtaining processing mark information of the service message, the method further includes:

[0094] When the first line side receives an original service message containing service traffic to be forwarded, a cache marking process is performed on the original service message based on a preset cache marking module to obtain a corresponding second service message.

[0095] In this step, the above-mentioned specific implementation process of performing cache marking processing on the original business message based on the preset cache marking module to obtain the corresponding second business message will be further described in detail in the subsequent specific embodiments of this application, and will not be elaborated on here.

[0096] The second service message is compressed based on a preset target compression algorithm to obtain a corresponding third service message.

[0097] In this step, the target compression algorithm can be obtained by screening from a variety of compression algorithms. The specific screening process of the target compression algorithm will be described in further detail in the subsequent specific embodiments of this application, and will not be elaborated on here. Among them, when forwarding traffic from the line side to the system side, there is also a situation where traffic from multiple line side ports is forwarded to the system side. By deploying a compression algorithm to compress the message data before forwarding it to the whole machine switching network on the system side, the amount of data forwarded by the message can be reduced, thereby reducing traffic bursts and reducing packet loss rates.

[0098] The service message is determined from the second service message and the third service message based on a preset screening rule.

[0099] In this step, the content of the above-mentioned screening rules may specifically include: since data compression cannot guarantee that the amount of data after compression is smaller than that before compression, the amount of data of the compressed message is compared with the amount of data of the message before compression, and the message with the smaller amount of data after compression is used as the service message finally screened. In addition, after determining that the service message screened is the third service message after compression, the corresponding original message is discarded, and the compressed third service message is forwarded, and the third service message is marked as a compressed message.

[0100] Based on the whole machine switching network, the service message is forwarded to the system side.

[0101] In this step, after the service message is determined from the second service message and the third service message based on the preset screening rule, the data transmission processing of forwarding the service message to the system side can be further completed through the whole machine switching network. By compressing the original service message containing service traffic to be forwarded received by the first line side and then forwarding it, the forwarded data traffic can be effectively reduced, the amount of data exchanged internally can be reduced, and the burst packet loss rate of the service message can be reduced.

[0102] In this embodiment, when the first line side receives the original service message containing service traffic to be forwarded, the original service message is cached and marked based on a preset cache marking module to obtain a corresponding second service message; then the second service message is compressed based on a preset target compression algorithm to obtain a corresponding third service message; then the service message is determined from the second service message and the third service message based on a preset screening rule; and subsequently, the service message is forwarded to the system side based on the whole machine switching network. When the first line side receives the original service message containing service traffic to be forwarded, the application performs cache marking on the original service message to obtain a second service message, and then forwards the service message obtained after the second service message is compressed by the target compression algorithm and after the message is screened by the screening rule, which can effectively reduce the forwarded data traffic, reduce the amount of internally exchanged data, and thus reduce the burst packet loss rate of the service message.

[0103] Optionally, the step of performing cache marking processing on the original service message based on a preset cache marking module to obtain a corresponding second service message includes:

[0104] Gets the preset information type.

[0105] In this step, the above information types may at least include the cache address and message length of the service message.

[0106] Based on the information type, cache marking information matching the original service message is acquired.

[0107] In this step, the cache mark information matching the original service message includes the cache address information of the original service message and the message length information of the original service message.

[0108] Based on the cache marking module, the cache marking information is marked into the original service message to obtain the second service message.

[0109] In this step, the cache marking module is a pre-built functional module that records the cache address and message length of the message and marks it in the message. The cache address information of the original business message and the message length information of the original business message are cached by using the cache marking module, and the cache address information of the original business message and the message length information of the original business message can be used to restore the corresponding original business message later, thereby ensuring the traceability of the original business message.

[0110] In this embodiment, by obtaining a preset information type; then based on the information type, obtaining cache tag information matching the original business message; and subsequently based on the cache tag module, marking the cache tag information into the original business message, the second business message is obtained. Based on the use of information type and cache tag module, the present application can realize fast and intelligent marking of the cache tag information into the original business message, so as to complete the cache tag processing of the original business message, thereby improving the generation efficiency of the second business message.

[0111] Optionally, before the step of compressing the second service message based on a preset target compression algorithm to obtain a corresponding third service message, the method further includes:

[0112] Get multiple preset compression algorithms.

[0113] In this step, the above compression algorithm specifically refers to a lossless compression algorithm, which may at least include differential coding, RLE, Huffman coding, LZW coding, arithmetic coding and other algorithms.

[0114] The algorithm processing efficiency of each compression algorithm is generated based on preset algorithm test data.

[0115] In this step, the algorithm test data may be pre-collected message data for algorithm testing of various compression algorithms. The message data may be compressed using various compression algorithms, and the compression processing time taken by various compression algorithms to compress the message data is recorded. Subsequently, the algorithm processing efficiency of each compression algorithm is calculated by using the calculation method of algorithm processing efficiency = 1 / compression processing time.

[0116] A first compression algorithm whose algorithm processing efficiency is greater than a preset efficiency threshold is selected from all the compression algorithms.

[0117] In this step, there is no specific limitation on the value of the efficiency threshold, which can be set according to the actual optimal algorithm screening requirements.

[0118] The publication time information, algorithm usage evaluation data and the processing efficiency of the specified algorithm of each of the first compression algorithms are obtained.

[0119] In this step, the publication time information of each first compression algorithm can be obtained by consulting the first publication date information of each first compression algorithm. In addition, the algorithm user data of each first compression algorithm can be consulted to obtain the algorithm usage evaluation data of each first compression algorithm from the algorithm user data. The algorithm user data at least includes the algorithm usage evaluation score of each first compression algorithm issued by the algorithm user.

[0120] The target compression algorithm is determined from all the first compression algorithms based on the publication time information of each of the first compression algorithms, the algorithm usage evaluation data, and the processing efficiency of the designated algorithm.

[0121] In this step, based on the publication time information of each of the first compression algorithms, algorithm usage evaluation data and the processing efficiency of the specified algorithm, the specific implementation process of the target compression algorithm is determined from all the first compression algorithms. This application will provide further detailed descriptions of this in subsequent specific embodiments and will not be elaborated on here.

[0122] In this embodiment, a plurality of preset compression algorithms are obtained; then the algorithm processing efficiency of each compression algorithm is generated based on preset algorithm test data; then the first compression algorithm whose algorithm processing efficiency is greater than the preset efficiency threshold is screened out from all the compression algorithms; subsequently, the publication time information, algorithm usage evaluation data and the specified algorithm processing efficiency of each of the first compression algorithms are obtained; finally, based on the publication time information, algorithm usage evaluation data and the specified algorithm processing efficiency of each of the first compression algorithms, the target compression algorithm is determined from all the first compression algorithms. This application first generates the algorithm processing efficiency of each compression algorithm based on preset algorithm test data, and uses the algorithm processing efficiency to perform a preliminary screening of all compression algorithms to obtain the first compression algorithm, so that only the first compression algorithm obtained needs to be analyzed and processed to obtain the target compression algorithm, thereby eliminating the need to analyze and process all compression algorithms, which is beneficial to reducing the processing workload of screening the target compression algorithm and improving the generation efficiency of the target compression algorithm. In addition, by analyzing and processing the publication time information, algorithm usage evaluation data and designated algorithm processing efficiency of various first compression algorithms, the final target compression algorithm for compressing the second business message is determined from multiple first compression algorithms based on the obtained analysis results, thereby improving the accuracy and intelligence of determining the target compression algorithm.

[0123] Optionally, the step of determining the target compression algorithm from all the first compression algorithms based on the publication time information of each of the first compression algorithms, algorithm usage evaluation data, and designated algorithm processing efficiency includes:

[0124] Get the current time.

[0125] In this step, the above current time may specifically refer to the current year information.

[0126] Based on the current time and the publication time information of each of the first compression algorithms, the publication time of each of the first compression algorithms is calculated.

[0127] In this step, the publication time information may specifically refer to the first publication year of each first compression algorithm, and the publication time of each first compression algorithm can be obtained by calculating the difference between the current information and the first publication year of each first compression algorithm, wherein the calculation unit of the publication time is year.

[0128] A first preset weight corresponding to the published time is obtained, a second preset weight corresponding to the algorithm processing efficiency is obtained, and a third preset weight corresponding to the algorithm usage evaluation data is obtained.

[0129] In this step, there is no specific limitation on the values ​​of the first preset weight, the second preset weight and the third preset weight, and they can be set according to actual usage requirements.

[0130] Based on the first preset weight, the second preset weight and the third preset weight, the published time of each of the first compression algorithms, the designated algorithm processing efficiency and the algorithm usage evaluation data are calculated and processed to obtain the algorithm processing score of each of the first compression algorithms.

[0131] In this step, the algorithm processing score of each of the first compression algorithms can be calculated based on the formula s=x*(100 / a)+y*b+z*c, where s is the algorithm processing score, x is the published time, a is the first preset weight, y is the specified algorithm processing efficiency, b is the second preset weight, z is the algorithm usage evaluation data, and c is the third preset weight.

[0132] A second compression algorithm with the highest algorithm processing score is selected from all the first compression algorithms.

[0133] In this step, numerical comparison may be performed on the calculated algorithm processing scores of the first compression algorithms, and then the second compression algorithm with the highest algorithm processing score may be screened out from all the first compression algorithms according to the obtained numerical comparison result.

[0134] The target compression algorithm is determined based on the second compression algorithm.

[0135] In this step, the number of second compression algorithms is obtained. If the number is 1, the second compression algorithm is directly used as the target compression algorithm. If the number is greater than 1, the algorithm usage frequency of each of the second compression algorithms is obtained, and then the algorithm with the highest algorithm usage frequency among the second compression algorithms is screened out as the above-mentioned target compression algorithm.

[0136] In this embodiment, the current time is obtained; then based on the current time and the publication time information of each of the first compression algorithms, the published time of each of the first compression algorithms is calculated; then the first preset weight corresponding to the published time is obtained, the second preset weight corresponding to the algorithm processing efficiency is obtained, and the third preset weight corresponding to the algorithm usage evaluation data is obtained; subsequently, the published time of each of the first compression algorithms, the specified algorithm processing efficiency and the algorithm usage evaluation data are calculated and processed based on the first preset weight, the second preset weight and the third preset weight to obtain the algorithm processing score of each of the first compression algorithms; finally, the second compression algorithm with the highest algorithm processing score is selected from all the first compression algorithms, and the target compression algorithm is determined based on the second compression algorithm. The present application calculates the published time of each of the first compression algorithms based on the acquired current time and the publication time information of each of the first compression algorithms, and then uses preset weights to analyze and process the published time of the first compression algorithm, the specified algorithm processing efficiency, and the algorithm usage evaluation data, and then determines a target compression algorithm from a plurality of first compression algorithms based on the obtained analysis results. Since the obtained target compression algorithm has a shorter publication time, a higher algorithm processing efficiency, and a higher algorithm usage evaluation, the accuracy of determining the target compression algorithm is effectively improved, and the subsequent use of the target compression algorithm for compression processing of business reports can obtain a better compression effect.

[0137] Optionally, the step of determining the service message from the second service message and the third service message based on a preset screening rule includes:

[0138] Obtain a first data volume of the second service message.

[0139] In this step, the first data volume corresponding to the second service message may be queried by performing data volume analysis on the second service message.

[0140] Obtain a second data volume of the third service message.

[0141] In this step, the second data volume corresponding to the second service message can be queried by analyzing the data volume of the third service message.

[0142] Determining whether the first data amount is greater than the second data amount;

[0143] In this step, the first data volume is compared with the second data volume to obtain a comparison result of the data volume comparison between the two, wherein the comparison result includes that the first data volume is larger than the second data volume, or the second data volume is larger than the first data volume.

[0144] If the first data amount is greater than the second data amount, the third service message is used as the service message; otherwise, the second service message is used as the service message.

[0145] In this step, if the first data volume is greater than the second data volume, it indicates that the data volume of the third service message obtained by compressing the second service message is less than the data volume of the original second service message. At this time, by using the third service message with a smaller data volume obtained after compression for subsequent forwarding processing and discarding the original second service message, the forwarded data flow can be effectively reduced and burst packet loss can be reduced. If the second data volume is greater than the first data volume, it indicates that the data volume of the third service message obtained by compressing the second service message is greater than the data volume of the original second service message. At this time, by directly using the second service message with a smaller data volume that has not been compressed for subsequent forwarding processing, the forwarded data flow can also be reduced and burst packet loss can be reduced.

[0146] In this embodiment, by obtaining the first data volume of the second business message; and obtaining the second data volume of the third business message; and subsequently determining whether the first data volume is greater than the second data volume; if the first data volume is greater than the second data volume, the third business message is used as the business message, otherwise the second business message is used as the business message. Before using the whole machine switching network to forward the business message to the system side, the present application will intelligently compress the second business message to be forwarded to obtain the third business message, and then compare the data volume of the second business message and the third business message before and after compression, and will finally select the business message with a smaller data volume for forwarding according to the comparison result, thereby effectively reducing the forwarded data traffic, reducing the amount of internally exchanged data, and reducing the burst packet loss rate of the business message.

[0147] Further references Figure 3 , as a response to the above Figure 2 In order to realize the method shown in the figure, the present application provides an embodiment of a data transmission device 300, and the device embodiment is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0148] An embodiment of the present invention provides a data transmission device 300, the data transmission device 300 comprising:

[0149] A first acquisition module 310 is used to acquire processing mark information of a service message when a service message sent on a first line side and forwarded by a preset whole-machine switching network is received on a system side;

[0150] A first processing module 320, configured to perform corresponding processing on the service message based on the processing mark information to obtain a specified service message;

[0151] An extraction module 330, configured to extract original traffic cache information from the specified service message;

[0152] The second processing module 340 is used to encapsulate the original traffic cache information into a message to obtain a corresponding target service message;

[0153] The first forwarding module 350 is used to forward the target service message to a preset second line side based on the whole machine switching network.

[0154] Optionally, the first processing module 320 includes:

[0155] A first judgment submodule, used for performing content analysis on the processing mark information to determine whether the processing mark information is a compressed message;

[0156] A compression submodule, configured to decompress the service message if the processing mark information is a compressed message, to obtain a processed first service message;

[0157] A first determining submodule, configured to use the first service message as the designated service message;

[0158] The second determining submodule is used to use the service message as the designated service message if the processing mark information is not a compressed message.

[0159] Optionally, the data transmission device 300 further includes:

[0160] A third processing module, configured to, when receiving an original service message containing service traffic to be forwarded on the first line side, perform cache marking processing on the original service message based on a preset cache marking module to obtain a corresponding second service message;

[0161] A compression module, used to compress the second service message based on a preset target compression algorithm to obtain a corresponding third service message;

[0162] A first determining module, configured to determine the service message from the second service message and the third service message based on a preset screening rule;

[0163] The second forwarding module is used to forward the service message to the system side based on the whole machine switching network.

[0164] Optionally, the third processing module includes:

[0165] A first acquisition submodule is used to acquire a preset information type;

[0166] A second acquisition submodule, configured to acquire cache tag information matching the original service message based on the information type;

[0167] A marking submodule is used to mark the cache marking information into the original service message based on the cache marking module to obtain the second service message.

[0168] Optionally, the data transmission device 300 further includes:

[0169] A second acquisition module is used to acquire a plurality of preset compression algorithms;

[0170] A generating module, used for generating the algorithm processing efficiency of each compression algorithm based on preset algorithm test data;

[0171] A screening module, used for screening out a first compression algorithm whose algorithm processing efficiency is greater than a preset efficiency threshold from all the compression algorithms;

[0172] A third acquisition module is used to obtain the publication time information, algorithm usage evaluation data and the processing efficiency of the specified algorithm of each of the first compression algorithms;

[0173] The second determination module is used to determine the target compression algorithm from all the first compression algorithms based on the publication time information of each of the first compression algorithms, algorithm usage evaluation data and the processing efficiency of the designated algorithm.

[0174] Optionally, the second determining module includes:

[0175] The third acquisition submodule is used to obtain the current time;

[0176] A first calculation submodule, configured to calculate the published time of each of the first compression algorithms based on the current time and the published time information of each of the first compression algorithms;

[0177] A fourth acquisition submodule, used to acquire a first preset weight corresponding to the published time, acquire a second preset weight corresponding to the algorithm processing efficiency, and acquire a third preset weight corresponding to the algorithm usage evaluation data;

[0178] a second calculation submodule, configured to calculate and process the published time of each of the first compression algorithms, the processing efficiency of the specified algorithm, and the algorithm usage evaluation data based on the first preset weight, the second preset weight, and the third preset weight, to obtain an algorithm processing score of each of the first compression algorithms;

[0179] A screening submodule, used for screening out a second compression algorithm having the highest algorithm processing score from all the first compression algorithms;

[0180] The third determination submodule is used to determine the target compression algorithm based on the second compression algorithm.

[0181] Optionally, the first determining module includes:

[0182] a fifth acquisition submodule, configured to acquire a first data volume of the second service message; and

[0183] A sixth acquisition submodule, used to acquire a second data volume of the third service message;

[0184] A second judgment submodule, used to judge whether the first data amount is greater than the second data amount;

[0185] The fourth determination submodule is used to use the third business message as the business message if the first data amount is greater than the second data amount, and otherwise use the second business message as the business message.

[0186] To solve the above technical problems, the present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.

[0187] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components 41-43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.

[0188] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0189] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk equipped on the computer device 4, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as the program code of the data transmission method, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.

[0190] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run the program code stored in the memory 41 or process data, such as running the program code of the data transmission method.

[0191] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.

[0192] The present application also provides another implementation, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores the application crash processing program, and the application crash processing program can be executed by at least one processor to enable the at least one processor to perform the steps of the data transmission method as described above.

[0193] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware online platform, and of course, by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0194] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0195] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.

Claims

1. A data transmission method, characterized in that: include: When receiving, on the system side, a service message sent on the first line side and forwarded by a preset whole-machine switching network, obtaining processing mark information of the service message; Perform corresponding processing on the service message based on the processing mark information to obtain a specified service message; Extracting original traffic cache information from the specified service message; Encapsulating the original traffic cache information into a message to obtain a corresponding target service message; Based on the whole machine switching network, the target service message is forwarded to a preset second line side.

2. The method according to claim 1, characterized in that The step of performing corresponding processing on the service message based on the processing mark information to obtain a specified service message includes: Performing content analysis on the processing mark information to determine whether the processing mark information is a compressed message; If the processing mark information is a compressed message, decompress the service message to obtain a processed first service message; Using the first service message as the designated service message; If the processing mark information is not a compressed message, the service message is used as the designated service message.

3. The method according to claim 1, characterized in that After the step of obtaining the processing mark information of the service message when the system side receives the service message sent on the first line side and forwarded by the preset whole machine switching network, the method further includes: When an original service message containing service traffic to be forwarded is received on the first line side, cache marking processing is performed on the original service message based on a preset cache marking module to obtain a corresponding second service message; Compressing the second service message based on a preset target compression algorithm to obtain a corresponding third service message; Determining the service message from the second service message and the third service message based on a preset screening rule; Based on the whole machine switching network, the service message is forwarded to the system side.

4. The method according to claim 3, characterized in that The step of performing cache marking processing on the original service message based on the preset cache marking module to obtain the corresponding second service message includes: Get the preset information type; Based on the information type, obtaining cache marking information matching the original service message; Based on the cache marking module, the cache marking information is marked into the original service message to obtain the second service message.

5. The method according to claim 3, characterized in that: Before the step of compressing the second service message based on a preset target compression algorithm to obtain a corresponding third service message, the method further includes: Get multiple preset compression algorithms; Generating the algorithm processing efficiency of each compression algorithm based on preset algorithm test data; Filter out a first compression algorithm whose algorithm processing efficiency is greater than a preset efficiency threshold from all the compression algorithms; Obtaining the publication time information, algorithm usage evaluation data and the processing efficiency of the specified algorithm of each of the first compression algorithms; The target compression algorithm is determined from all the first compression algorithms based on the publication time information of each of the first compression algorithms, the algorithm usage evaluation data, and the processing efficiency of the designated algorithm.

6. The method according to claim 5, characterized in that The step of determining the target compression algorithm from all the first compression algorithms based on the publication time information of each of the first compression algorithms, the algorithm usage evaluation data, and the processing efficiency of the designated algorithm comprises: Get the current time; Based on the current time and the publication time information of each of the first compression algorithms, calculate the publication time of each of the first compression algorithms; Obtaining a first preset weight corresponding to the published time, obtaining a second preset weight corresponding to the algorithm processing efficiency, and obtaining a third preset weight corresponding to the algorithm usage evaluation data; Based on the first preset weight, the second preset weight, and the third preset weight, the published time of each of the first compression algorithms, the processing efficiency of the specified algorithm, and the algorithm usage evaluation data are calculated and processed to obtain an algorithm processing score of each of the first compression algorithms; Selecting a second compression algorithm with the highest algorithm processing score from all the first compression algorithms; The target compression algorithm is determined based on the second compression algorithm.

7. The method according to claim 3, characterized in that The step of determining the service message from the second service message and the third service message based on a preset screening rule includes: Acquire a first data volume of the second service message; and, Acquire a second data volume of the third service message; Determining whether the first data amount is greater than the second data amount; If the first data amount is greater than the second data amount, the third service message is used as the service message; otherwise, the second service message is used as the service message.

8. A data transmission device, characterized in that: include: A first acquisition module, configured to acquire processing mark information of a service message when a service message sent on a first line side and forwarded by a preset whole-machine switching network is received on a system side; A first processing module, configured to perform corresponding processing on the service message based on the processing mark information to obtain a specified service message; An extraction module, used to extract the original traffic cache information in the specified service message; A second processing module is used to encapsulate the original traffic cache information into a message to obtain a corresponding target service message; The first forwarding module is used to forward the target service message to a preset second line side based on the whole machine switching network.

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

10. 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, the steps of the data transmission method according to any one of claims 1 to 7 are implemented.