Network transmission optimization method and device, computer equipment and storage medium
By obtaining traffic and network feature data in a containerized environment in real time, and dynamically adjusting communication tunnels using the tunnel type selection model, the network resource waste and performance bottlenecks caused by static configuration are solved, and efficient adaptation and performance improvement to the dynamic network environment are achieved.
Patent Information
- Application Number
- CN202510626435.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-14
- Publication Date
- 2025-08-08
AI Technical Summary
In a containerized environment, the existing network transmission methods are based on static configuration and manual intervention, making it difficult to cope with the dynamic changes in medical services, resulting in resource waste and performance bottlenecks.
By obtaining traffic characteristic data and network characteristic data in real time, using the trained tunnel type selection model to dynamically adjust the communication tunnel, real-time dynamic optimization and adjustment of the communication tunnel.
It improves the adaptability to dynamically changing network environments, improves network transmission performance, and reduces manual intervention and resource waste.
Smart Images

Figure CN120455204A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network technology, and in particular to a network transmission optimization method, device, computer equipment and storage medium. Background Art
[0002] In the healthcare information technology sector, with the widespread adoption of containerization and cloud-native architectures, data exchange within hospitals and across institutions is becoming increasingly frequent, for example, in scenarios such as electronic medical record sharing, medical image transmission, and remote consultations. In containerized environments (such as Kubernetes-based container orchestration platforms), application services are typically divided into multiple lightweight, dynamically schedulable environments (e.g., pods in the Kubernetes platform). Communication tunneling is a common network transmission method. For example, using tunneling protocols such as IPIP or VXLAN (Virtual Extensible Local Area Network), traffic from healthcare environments (such as edge computing nodes, medical devices, or containerized microservices) is encrypted and transmitted to a central gateway node. This conceals the true communication address, prevents sensitive data (such as patient privacy information) from being eavesdropped or tampered with during transmission, and thus improves network security. However, existing tunneling-based network transmission methods typically rely on static tunnel configuration and manual intervention. This static configuration approach is often inadequate to the dynamic and changing healthcare network environment, and manual maintenance is costly, which can lead to wasted network resources and performance bottlenecks.
[0003] Therefore, in a containerized environment, how to achieve dynamic adjustment of network transmission methods has become an urgent problem to be solved. Summary of the Invention
[0004] Embodiments of the present invention provide a network transmission optimization method, apparatus, computer equipment, and storage medium to solve the problem of how to dynamically adjust the network transmission mode in a containerized environment.
[0005] A network transmission optimization method, comprising: Real-time acquisition of traffic characteristic data transmitted using an initial communication tunnel between a source environment unit and a target environment unit deployed in a containerized environment, as well as network characteristic data of the initial communication tunnel, wherein the source environment unit and the target environment unit each include at least one container; Inputting the traffic characteristic data and the network characteristic data into a trained tunnel type selection model to obtain a tunnel type selection result, and updating the initial communication tunnel according to the tunnel type selection result to obtain an updated communication tunnel; Collect performance data of the updated communication tunnel. When it is detected that the performance data does not meet the preset conditions, use the updated communication tunnel as the initial communication tunnel and return to execute the step of real-time acquisition of traffic characteristic data transmitted using the initial communication tunnel between the source environment unit and the target environment unit deployed in the containerized environment until the transmission between the source environment unit and the target environment unit is completed.
[0006] A network transmission optimization device, comprising: A data acquisition module is configured to acquire, in real time, traffic characteristic data transmitted via an initial communication tunnel between a source environment unit and a target environment unit deployed in a containerized environment, as well as network characteristic data of the initial communication tunnel, wherein the source environment unit and the target environment unit each include at least one container; an optimization selection module, configured to input the traffic characteristic data and the network characteristic data into a trained tunnel type selection model to obtain a tunnel type selection result, and update the initial communication tunnel according to the tunnel type selection result to obtain an updated communication tunnel; A loop module is used to collect performance data of the updated communication tunnel. When it is detected that the performance data does not meet the preset conditions, the updated communication tunnel is used as the initial communication tunnel, and the step of obtaining in real time the traffic characteristic data transmitted using the initial communication tunnel between the source environment unit and the target environment unit deployed in the containerized environment is returned to until the transmission between the source environment unit and the target environment unit is completed.
[0007] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the network transmission optimization method is implemented.
[0008] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the network transmission optimization method is implemented.
[0009] The above-mentioned network transmission optimization method, device, computer equipment and storage medium obtain in real time the traffic characteristic data transmitted using the initial communication tunnel between the source environment unit and the target environment unit deployed in the containerized environment, as well as the network characteristic data of the initial communication tunnel, and input the traffic characteristic data and the network characteristic data into the trained tunnel type selection model to obtain the tunnel type selection result. According to the tunnel type selection result, the initial communication tunnel is updated to obtain an updated communication tunnel, and the performance data of the updated communication tunnel is collected. If it is detected that the performance data does not meet the preset conditions, the updated communication tunnel is used as the initial communication tunnel, and the step of real-time acquisition is returned to be executed until the transmission between the source environment unit and the target environment unit is completed.
[0010] Among them, through the trained tunnel type selection model, the tunnel type selection and adjustment are carried out based on the real-time traffic characteristic data and network characteristic data of the initial communication tunnel transmitted between the source environment unit and the target environment unit, thereby realizing real-time dynamic optimization and adjustment of the communication tunnel, improving the adaptability to the dynamically changing network environment, and thus improving the performance of network transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0012] Figure 1 This is a schematic diagram of an application environment of a network transmission optimization method according to an embodiment of the present invention; Figure 2 is a flow chart of a network transmission optimization method according to an embodiment of the present invention; Figure 3 is another flow chart of a network transmission optimization method according to an embodiment of the present invention; Figure 4 is another flow chart of a network transmission optimization method according to an embodiment of the present invention; Figure 5 is a schematic diagram of a network transmission optimization device according to an embodiment of the present invention; Figure 6 FIG. 1 is a schematic diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0013] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0014] The network transmission optimization method provided by the embodiment of the present invention can be applied as follows: Figure 1 Specifically, the network transmission optimization method is applied in a network transmission optimization system, which includes the following: Figure 1The client and server shown communicate over the network, solving the problem of dynamically adjusting network transmission methods in a containerized environment. The client, also known as the user end, is the program that corresponds to the server and provides local services to clients. The client can be installed on, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The server can be implemented as a standalone server or a server cluster consisting of multiple servers.
[0015] In one embodiment, if Figure 2 As shown, a network transmission optimization method is provided, which is applied in Figure 1 The server in the example is used as an example, and the steps are as follows: Step S201: acquiring in real time traffic characteristic data transmitted using an initial communication tunnel between a source environment unit and a target environment unit deployed in a containerized environment, as well as network characteristic data of the initial communication tunnel.
[0016] In this embodiment, the containerized environment may refer to a container orchestration and management platform. For example, the containerized environment may be a container orchestration platform based on Kubernetes. The environment unit may refer to the smallest deployable computing unit in the containerized environment, which is used to organize and manage one or more containers. For example, the environment unit may refer to a source environment unit, which may refer to a Pod in the Kubernetes platform.
[0017] The source environment unit may refer to the environment unit that initiates the network request, the target environment unit may refer to the environment unit that receives the network request, the source environment unit and the target environment unit each contain at least one container, the initial communication tunnel may refer to the communication tunnel used for data transmission between the source environment unit and the target environment unit obtained in real time, and the initial communication tunnel may be a communication tunnel between the source environment unit and the target environment unit based on manual configuration or the tunnel update mechanism of the present invention, the traffic characteristic data may refer to attribute data related to the data transmitted between the source environment unit and the target environment unit using the initial communication tunnel, and may include the type of traffic transmitted, the direction of traffic and the amount of data, etc., the network characteristic data may refer to indicator data that can characterize the performance of the initial communication tunnel, and may include bandwidth utilization, network delay and packet loss rate, etc.
[0018] Specifically, by calling a tool with a traffic monitoring function, the traffic characteristic data transmitted between the source environment unit and the target environment unit using the initial communication tunnel is obtained in real time, and by calling a tool with a network monitoring function, the network characteristic data of the initial communication tunnel is obtained in real time.
[0019] Step S202: input the traffic feature data and the network feature data into the trained tunnel type selection model to obtain a tunnel type selection result. According to the tunnel type selection result, the initial communication tunnel is updated to obtain an updated communication tunnel.
[0020] In this embodiment, the trained tunnel type selection model may refer to a neural network model that has been trained for tunnel type selection. The model has been trained through supervised learning or reinforcement learning of historical traffic feature data and historical network feature data, and can dynamically output the corresponding selected tunnel type. Updating the communication tunnel may refer to updating the initial communication tunnel based on the tunnel type selection result.
[0021] Specifically, the traffic feature data and network feature data are input into the trained tunnel type selection model. The model is used to extract and predict the input traffic feature data and network feature data to obtain the tunnel type selection result. According to the tunnel type selection result, the tunnel parameters of the initial communication tunnel are adjusted to obtain an updated communication tunnel.
[0022] Step S203: Collect and update the performance data of the communication tunnel. When it is detected that the performance data does not meet the preset conditions, use the updated communication tunnel as the initial communication tunnel and return to execute the step of real-time acquisition of traffic characteristic data transmitted using the initial communication tunnel between the source environment unit and the target environment unit deployed in the containerized environment until the transmission between the source environment unit and the target environment unit is completed.
[0023] In this embodiment, performance data may refer to indicator data that can characterize the performance of the updated communication tunnel, which may include network delay, bandwidth utilization and packet loss rate. The preset condition may refer to a pre-set condition for determining whether the performance of the updated communication tunnel meets the standard.
[0024] Specifically, after collecting the performance data of the updated communication tunnel, the network delay, bandwidth utilization and packet loss rate of the updated communication tunnel are monitored respectively. If the network delay is within the preset delay range, the bandwidth utilization is within the preset utilization range, and the packet loss rate is within the preset packet loss rate range, it is determined that the performance data meets the preset conditions and the tunnel update mechanism is not triggered further; if the network delay is not within the preset delay range, the bandwidth utilization is not within the preset utilization range, or the packet loss rate is not within the preset packet loss rate range, it is determined that the performance data does not meet the preset conditions, and the tunnel update mechanism is triggered further, with the updated communication tunnel as the initial communication tunnel, and the step of obtaining in real time the traffic characteristic data transmitted using the initial communication tunnel between the source environment unit and the target environment unit deployed in the containerized environment in step S201 is returned to execute until the transmission between the source environment unit and the target environment unit is completed.
[0025] Optionally, in the process of network transmission based on communication tunnels (such as IPIP tunnels and VXLAN tunnels, etc.), the encapsulation and decapsulation process of the transmitted data will introduce additional overhead, which will in turn lead to a decrease in network transmission performance. Therefore, smart network cards that support tunnel encapsulation and decapsulation can be deployed on the computer devices where the source environment unit and the target environment unit are located, respectively, so as to improve the efficiency of data transmission between the environment unit and the target environment unit using the initial communication tunnel or the updated communication tunnel through hardware acceleration, thereby improving the performance of network transmission.
[0026] For example, in an intelligent medical consultation system built on containerization technology, the source environment unit that provides image analysis services needs to transmit medical image data to the target environment unit that provides diagnostic report generation services. The source environment unit and the target environment unit initially use IPIP tunnels to transmit medical image data. After the traffic feature data and network feature data of the IPIP tunnel collected in real time between the source environment unit and the target environment unit are input into the trained tunnel type selection model, the tunnel type optimized by the model is obtained as VXLAN tunnel. The tunnel type specified in the tunnel configuration file is updated from IPIP tunnel to VXLAN tunnel. When the tunnel configuration file update is monitored, the network configuration is performed according to the updated tunnel configuration file, and the tunnel used between the source environment unit and the target environment unit is switched from IPIP tunnel to VXLAN tunnel. The performance indicators of the VXLAN tunnel are collected after the switch. When the performance indicators do not meet the preset conditions, the tunnel update mechanism is re-triggered.
[0027] In this embodiment, through the trained tunnel type selection model, the tunnel type selection and adjustment are performed based on the real-time acquired traffic characteristic data transmitted using the initial communication tunnel between the source environment unit and the target environment unit and the network characteristic data of the initial communication tunnel, thereby realizing real-time dynamic optimization and adjustment of the communication tunnel, improving the adaptability to the dynamically changing network environment, and thus improving the performance of network transmission.
[0028] In one embodiment, if Figure 3 As shown, a network transmission optimization method is provided. In the above step S202, the initial communication tunnel is updated according to the tunnel type selection result to obtain an updated communication tunnel, including the following steps: Step S301: Obtain an initial tunnel configuration file corresponding to the initial communication tunnel.
[0029] Step S302: According to the tunnel type selection result, the initial tunnel configuration file is updated to obtain an updated tunnel configuration file.
[0030] Step S303: updating the initial communication tunnel according to the updated tunnel configuration file to obtain an updated communication tunnel.
[0031] In this embodiment, the tunnel configuration file may refer to a file used to define and manage communication tunnel information, the initial tunnel configuration file may refer to a tunnel configuration file containing initial communication tunnel information, and the updated tunnel configuration file may refer to a tunnel configuration file that is updated based on the tunnel type selection result.
[0032] Specifically, before obtaining the initial tunnel configuration file, a tunnel configuration file for managing communication tunnel information can be defined through custom resources, and the tunnel type is specified in the tunnel configuration file as the type corresponding to the initial communication tunnel to obtain the initial tunnel configuration file. When the initial tunnel configuration file is updated according to the tunnel type selection result, the tunnel type in the initial tunnel configuration file is updated to the tunnel type corresponding to the tunnel type selection result to obtain an updated tunnel configuration file. After monitoring the change of the initial tunnel configuration file, the network configuration between the source environment unit and the target environment unit is updated according to the updated tunnel configuration file by calling a tool with network configuration function, and the initial communication tunnel is switched to the communication tunnel corresponding to the tunnel type selection result to obtain an updated communication tunnel.
[0033] In this embodiment, communication tunnel information is defined and managed based on a tunnel configuration file. Based on the tunnel type selection result, the tunnel configuration file is updated. Based on the updated tunnel configuration file, the network configuration is updated, switching the initial communication tunnel to the updated communication tunnel. This automatically achieves smooth tunnel switching, avoids manual intervention, reduces communication transmission interruption time, and thus improves network transmission performance.
[0034] In one embodiment, if Figure 4 As shown, a network transmission optimization method is provided, which further includes the following steps after obtaining the network characteristic data of the initial communication tunnel in real time in the above step S201: Step S401: Match corresponding tunnel type selection conditions according to network feature data.
[0035] Step S402: Obtain a tunnel type selection result based on the tunnel type selection condition and network characteristic data.
[0036] In this embodiment, the tunnel type selection condition may refer to a preset quantitative threshold rule, which may include a preset bandwidth threshold, a preset delay threshold, and a preset packet loss threshold.
[0037] Specifically, if the network characteristic data includes bandwidth utilization and network delay, the preset bandwidth threshold and the preset delay threshold are obtained. If the bandwidth utilization exceeds the preset bandwidth threshold and the network delay is lower than the preset delay threshold, the tunnel type selection result is determined to be the first tunnel type, wherein the first tunnel type is a VXLAN tunnel; if the bandwidth utilization does not exceed the preset bandwidth threshold and the network delay exceeds the preset delay threshold, the tunnel type selection result is determined to be the second tunnel type, wherein the second tunnel type is an IPIP tunnel.
[0038] If the network characteristic data includes a packet loss rate, a preset packet loss threshold is obtained. If the packet loss rate exceeds the preset packet loss threshold, the tunnel type selection result is determined to be a third tunnel type, wherein the third tunnel type is a GRE (Generic Routing Encapsulation) tunnel.
[0039] In this embodiment, the tunnel type is selected based on real-time network feature data (bandwidth utilization, network delay, and packet loss rate), as well as preset bandwidth thresholds, preset delay thresholds, and preset packet loss thresholds. When the delay is low and the bandwidth utilization is high, the tunnel is switched to the VXLAN tunnel; when the delay is high and the bandwidth utilization is low, the tunnel is switched to the IPIP tunnel; and when the packet loss rate is high, the tunnel is switched to the GRE tunnel. This implements real-time dynamic optimization and adjustment of the communication tunnel, improves the adaptability to the dynamically changing network environment, and thus improves the performance of network transmission.
[0040] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0041] In one embodiment, a network transmission optimization device is provided, which corresponds to the network transmission optimization method in the above embodiment. Figure 5 As shown, the network transmission optimization device includes a data acquisition module 51, an optimization selection module 52 and a circulation module 53. The functional modules are described in detail as follows: A data acquisition module 51 is configured to acquire, in real time, traffic characteristic data transmitted via an initial communication tunnel between a source environment unit and a target environment unit deployed in a containerized environment, as well as network characteristic data of the initial communication tunnel, wherein the source environment unit and the target environment unit each include at least one container. an optimization selection module 52, configured to input the traffic characteristic data and the network characteristic data into a trained tunnel type selection model to obtain a tunnel type selection result, and update the initial communication tunnel according to the tunnel type selection result to obtain an updated communication tunnel; The loop module 53 is used to collect the performance data of the updated communication tunnel. When it is detected that the performance data does not meet the preset conditions, the updated communication tunnel is used as the initial communication tunnel, and the step of obtaining the traffic characteristic data transmitted using the initial communication tunnel between the source environment unit and the target environment unit deployed in the containerized environment in real time is returned until the transmission between the source environment unit and the target environment unit is completed.
[0042] Optionally, the optimization selection module 52 includes: A configuration acquiring unit, configured to acquire an initial tunnel configuration file corresponding to the initial communication tunnel; a configuration updating unit, configured to update the initial tunnel configuration file according to the tunnel type selection result to obtain an updated tunnel configuration file; The tunnel updating unit is configured to update the initial communication tunnel according to the updated tunnel configuration file to obtain the updated communication tunnel.
[0043] Optionally, the network transmission optimization device further includes: a performance monitoring module, configured to monitor the network delay, bandwidth utilization, and packet loss rate of the update communication tunnel, respectively, and determine that the performance data satisfies the preset conditions if the network delay is within a preset delay range, the bandwidth utilization is within a preset utilization range, and the packet loss rate is within a preset packet loss rate range; The performance judgment module is configured to determine that the performance data does not meet the preset condition if the network delay is not within the preset delay range, the bandwidth utilization is not within the preset utilization range, or the packet loss rate is not within the preset packet loss rate range.
[0044] Optionally, the network transmission optimization device further includes: A condition matching module, configured to match corresponding tunnel type selection conditions according to the network feature data; A condition decision module is used to obtain the tunnel type selection result according to the tunnel type selection condition and the network characteristic data.
[0045] Optionally, the condition matching module includes: A first condition acquisition unit, configured to acquire a preset bandwidth threshold and a preset delay threshold if the network characteristic data includes bandwidth utilization and network delay; The condition decision module includes: a first decision unit, configured to determine that the tunnel type selection result is a first tunnel type if the bandwidth utilization exceeds the preset bandwidth threshold and the network delay is lower than the preset delay threshold; The second decision unit is configured to determine that the tunnel type selection result is the second tunnel type if the bandwidth utilization does not exceed the preset bandwidth threshold and the network delay exceeds the preset delay threshold.
[0046] Optionally, the condition matching module further includes: A second condition acquisition unit, configured to acquire a preset packet loss threshold if the network characteristic data includes a packet loss rate; The condition decision module further includes: The third decision unit is configured to determine that the tunnel type selection result is a third tunnel type if the packet loss rate exceeds the preset packet loss threshold.
[0047] For the specific definition of the network transmission optimization device, please refer to the definition of the network transmission optimization method above, which will not be repeated here. The various modules in the above-mentioned network transmission optimization device can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0048] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, a network interface, and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store traffic characteristic data and network characteristic data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a network transmission optimization method is implemented.
[0049] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the network transmission optimization method in the above embodiment is implemented, for example Figure 2 S201-S203 shown, or Figures 3 and 4 Alternatively, when the processor executes the computer program, the functions of each module / unit in the embodiment of the network transmission optimization device are realized, for example Figure 5The functions of the data acquisition module 51 , the optimization selection module 52 and the circulation module 53 are not described here in detail to avoid repetition.
[0050] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the network transmission optimization method in the above embodiment is implemented, for example Figure 2 S201-S203 shown, or Figures 3 and 4 Alternatively, when the computer program is executed by the processor, the functions of each module / unit in the embodiment of the network transmission optimization device are realized, for example, Figure 5 The functions of the data acquisition module 51 , the optimization selection module 52 and the circulation module 53 are not described here in detail to avoid repetition.
[0051] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0052] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0053] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should all be included in the scope of protection of the present invention.
Claims
1. A network transmission optimization method, characterized in that: include: Real-time acquisition of traffic characteristic data transmitted using an initial communication tunnel between a source environment unit and a target environment unit deployed in a containerized environment, as well as network characteristic data of the initial communication tunnel, wherein the source environment unit and the target environment unit each include at least one container; Inputting the traffic characteristic data and the network characteristic data into a trained tunnel type selection model to obtain a tunnel type selection result, and updating the initial communication tunnel according to the tunnel type selection result to obtain an updated communication tunnel; Collect performance data of the updated communication tunnel. When it is detected that the performance data does not meet the preset conditions, use the updated communication tunnel as the initial communication tunnel and return to execute the step of real-time acquisition of traffic characteristic data transmitted using the initial communication tunnel between the source environment unit and the target environment unit deployed in the containerized environment until the transmission between the source environment unit and the target environment unit is completed.
2. The network transmission optimization method according to claim 1, wherein: The updating of the initial communication tunnel according to the tunnel type selection result to obtain an updated communication tunnel includes: Obtaining an initial tunnel configuration file corresponding to the initial communication tunnel; updating the initial tunnel configuration file according to the tunnel type selection result to obtain an updated tunnel configuration file; The initial communication tunnel is updated according to the updated tunnel configuration file to obtain the updated communication tunnel.
3. The network transmission optimization method according to claim 1, wherein: The performance data includes network delay, bandwidth utilization and packet loss rate. After collecting the performance data of the updated communication tunnel, the method further includes: monitoring the network delay, bandwidth utilization, and packet loss rate of the update communication tunnel respectively, and determining that the performance data satisfies the preset condition if the network delay is within a preset delay range, the bandwidth utilization is within a preset utilization range, and the packet loss rate is within a preset packet loss rate range; If the network delay is not within the preset delay range, the bandwidth utilization is not within the preset utilization range, or the packet loss rate is not within the preset packet loss rate range, it is determined that the performance data does not meet the preset condition.
4. The network transmission optimization method according to claim 1, wherein: After acquiring the network characteristic data of the initial communication tunnel in real time, the method further includes: Matching corresponding tunnel type selection conditions according to the network characteristic data; The tunnel type selection result is obtained through the tunnel type selection condition and according to the network characteristic data.
5. The network transmission optimization method according to claim 4, wherein: The matching of corresponding tunnel type selection conditions according to the network characteristic data includes: If the network characteristic data includes bandwidth utilization and network delay, obtaining a preset bandwidth threshold and a preset delay threshold; Obtaining the tunnel type selection result according to the tunnel type selection condition and the network characteristic data includes: If the bandwidth utilization exceeds the preset bandwidth threshold and the network delay is lower than the preset delay threshold, determining that the tunnel type selection result is the first tunnel type; If the bandwidth utilization does not exceed the preset bandwidth threshold, and the network delay exceeds the preset delay threshold, the tunnel type selection result is determined to be the second tunnel type.
6. The network transmission optimization method according to claim 4, wherein: The matching of corresponding tunnel type selection conditions according to the network characteristic data further includes: If the network characteristic data includes a packet loss rate, obtaining a preset packet loss threshold; The step of obtaining the tunnel type selection result according to the network characteristic data and the tunnel type selection condition further includes: If the packet loss rate exceeds the preset packet loss threshold, the tunnel type selection result is determined to be the third tunnel type.
7. A network transmission optimization device, characterized in that: include: A data acquisition module is configured to acquire, in real time, traffic characteristic data transmitted via an initial communication tunnel between a source environment unit and a target environment unit deployed in a containerized environment, as well as network characteristic data of the initial communication tunnel, wherein the source environment unit and the target environment unit each include at least one container; an optimization selection module, configured to input the traffic characteristic data and the network characteristic data into a trained tunnel type selection model to obtain a tunnel type selection result, and update the initial communication tunnel according to the tunnel type selection result to obtain an updated communication tunnel; A loop module is used to collect performance data of the updated communication tunnel. When it is detected that the performance data does not meet the preset conditions, the updated communication tunnel is used as the initial communication tunnel, and the step of obtaining in real time the traffic characteristic data transmitted using the initial communication tunnel between the source environment unit and the target environment unit deployed in the containerized environment is returned to until the transmission between the source environment unit and the target environment unit is completed.
8. The network transmission optimization device according to claim 7, wherein: The optimization selection module includes: A configuration acquiring unit, configured to acquire an initial tunnel configuration file corresponding to the initial communication tunnel; a configuration updating unit, configured to update the initial tunnel configuration file according to the tunnel type selection result to obtain an updated tunnel configuration file; The tunnel updating unit is configured to update the initial communication tunnel according to the updated tunnel configuration file to obtain the updated communication tunnel.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the network transmission optimization method according to any one of claims 1 to 6 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the network transmission optimization method according to any one of claims 1 to 6 is implemented.