Data transmission method and system, electronic equipment and storage medium

By aggregating links on the visual network network device and the server side and combining the bandwidth of multiple physical interfaces, the shortcomings of traditional low-end routers under high bandwidth requirements are solved, and efficient and reliable data transmission is achieved.

CN119697096APending Publication Date: 2025-03-25VISIONVERA INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411627942.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

Traditional low-end video network routers seem to be incompetent in application scenarios with high bandwidth requirements. The single-port rate is generally 1Gbps, making it difficult to support high-definition or ultra-high-definition video transmission and parallel transmission of multiple video streams.

Method used

Through link aggregation technology, multiple physical interfaces are selected on the network device side and the server side, and added to the link aggregation group to form a link aggregation interface, thereby realizing bandwidth superposition of multiple physical interfaces.

Benefits of technology

It has achieved the breakthrough of the bandwidth limitation of a single physical interface, meets the needs of high-bandwidth services, reduces the cost of hardware upgrades, and improves the reliability and load balancing of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119697096A_ABST
    Figure CN119697096A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data transmission method and system, and the method comprises the steps: responding to a link aggregation operation, and respectively selecting a plurality of physical interfaces at a network equipment side and a server side; adding the plurality of physical interfaces to a link aggregation group to obtain a link aggregation interface; acquiring data to be transmitted from the network equipment side and / or the server side; and transmitting the data between the server side and the network equipment side through the link aggregation interface. According to the embodiment of the invention, the bandwidth can be increased on the existing low-end network equipment through link aggregation, and equipment with higher specifications does not need to be replaced, so that the hardware upgrading cost is reduced, and the method is particularly suitable for a cost-sensitive scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network technology, and in particular to a data transmission method, a data transmission system, an electronic device and a computer-readable storage medium. Background Art

[0002] With the rapid development of the Internet and the Internet of Things, video networking technology (visual networking) has been widely used in security monitoring, intelligent transportation, smart cities and other fields. Visual networking devices connect cameras, sensors and other terminal devices through the network to collect and transmit video streams and data streams, thereby supporting data analysis, real-time monitoring and decision-making. However, with the improvement of video resolution and the increase in multi-sensor fusion applications, the bandwidth demand for a single visual networking port is increasing, causing traditional low-end routers to be unable to cope with certain application scenarios.

[0003] At present, the single-port rate of most low-end visual networking routers is generally 1Gbps, which is difficult to support higher bandwidth requirements. In some business scenarios with high bandwidth requirements, such as HD or ultra-HD (4K, 8K) video transmission, multi-channel video stream parallel transmission, and some bandwidth-intensive data applications (such as artificial intelligence data analysis, real-time data stream processing, etc.), the single-port rate of 1Gbps can no longer meet actual needs. Therefore, it is urgent to increase the bandwidth of visual networking ports.

[0004] A common solution is to upgrade to higher-specification network equipment, such as visual networking routers or switches that support 5Gbps, 10Gbps or even higher rates. However, this hardware upgrade solution is often expensive and requires major infrastructure changes, making it difficult to meet the needs of cost-sensitive application scenarios. Summary of the invention

[0005] In view of the above problems, embodiments of the present invention are proposed to provide a data transmission method, a data transmission system, an electronic device and a computer-readable storage medium that overcome the above problems or at least partially solve the above problems.

[0006] In order to solve the above problem, an embodiment of the present invention discloses a data transmission method, which includes:

[0007] In response to the link aggregation operation, selecting a plurality of physical interfaces on the network device side and the server side respectively;

[0008] Adding a plurality of the physical interfaces to a link aggregation group to obtain a link aggregation interface;

[0009] Acquire data to be transmitted from the network device side and / or the server side;

[0010] The data is transmitted between the server side and the network device side through the link aggregation interface.

[0011] Optionally, after adding the plurality of physical interfaces to the link aggregation group, the method further comprises:

[0012] A securely authenticated media access control address is configured for the link aggregation interface, so that the link aggregation interface securely accesses the network environment where the network device side and the server side are located by using the media access control address.

[0013] Optionally, transmitting the data between the server side and the network device side through the link aggregation interface includes:

[0014] Performing bandwidth detection and / or delay detection on each of the physical interfaces in the link aggregation interface;

[0015] Calculating a health score of each of the physical interfaces based on the detection results of the bandwidth detection and / or the delay detection;

[0016] Setting a respective data transmission weight for each of the physical interfaces according to the health score;

[0017] The data is transmitted to the server side and / or the network device side between the multiple physical interfaces of the link aggregation interface according to the data transmission weight.

[0018] Optionally, after setting a respective data transmission weight for each of the physical interfaces according to the health score, the method further includes:

[0019] Detecting a packet loss rate of each of the physical interfaces;

[0020] When the packet loss rate of the first physical interface is greater than a packet loss rate threshold, the data transmission weight of the first physical interface is reduced, and the data transmission weights of other physical interfaces in the link aggregation interface where the first physical interface is located are increased.

[0021] Optionally, after adding the plurality of physical interfaces to a link aggregation group to obtain a link aggregation interface, the method further includes:

[0022] Monitoring the load data of each of the physical interfaces in real time;

[0023] When the load data of the second physical interface is greater than a load threshold, the data transmission weight of the second physical interface is reduced, and the data transmission weights of other physical interfaces in the link aggregation interface where the second physical interface is located are increased.

[0024] Optionally, transmitting the data between the server side and the network device side through the link aggregation interface includes:

[0025] The type of business analyzing the data;

[0026] Allocating the data to the physical interface in the link aggregation interface corresponding to the service type;

[0027] The data is transmitted between the server side and the network device side through the allocated physical interface.

[0028] Optionally, after adding the plurality of physical interfaces to a link aggregation group to obtain a link aggregation interface, the method further includes:

[0029] Setting a master role or a backup role for each of the physical interfaces;

[0030] When a failure is detected in a third physical interface in a primary role, the data allocated to the third physical interface is switched to a fourth physical interface in a backup role corresponding to the third physical interface;

[0031] When it is detected that the third physical interface recovers from the failure, the data allocated to the fourth physical interface is switched to the third physical interface.

[0032] The embodiment of the present invention further discloses a data transmission system, the system comprising:

[0033] A physical interface selection module, configured to select a plurality of physical interfaces on the network device side and the server side respectively in response to the link aggregation operation;

[0034] An aggregation interface determination module, used to add a plurality of the physical interfaces to a link aggregation group to obtain a link aggregation interface;

[0035] A data acquisition module, used to acquire data to be transmitted from the network device side and / or the server side;

[0036] A data transmission module is used to transmit the data between the server side and the network device side through the link aggregation interface.

[0037] Optionally, the system further comprises:

[0038] The address configuration module is used to configure a security-authenticated media access control address for the link aggregation interface after the aggregation interface determination module adds multiple physical interfaces to the link aggregation group, so that the link aggregation interface can securely access the network environment where the network device side and the server side are located using the media access control address.

[0039] Optionally, the data transmission module includes:

[0040] A physical interface detection module, used to perform bandwidth detection and / or delay detection on each of the physical interfaces in the link aggregation interface;

[0041] A health calculation module, used to calculate the health score of each of the physical interfaces based on the detection results of the bandwidth detection and / or the delay detection;

[0042] A weight setting module, used to set a respective data transmission weight for each of the physical interfaces according to the health score;

[0043] A data forwarding module is used to transmit the data to the server side and / or the network device side between the multiple physical interfaces of the link aggregation interface according to the data transmission weight.

[0044] Optionally, the system further comprises:

[0045] A packet loss rate detection module, configured to detect the packet loss rate of each of the physical interfaces after the weight setting module sets a respective data transmission weight for each of the physical interfaces according to the health score;

[0046] A weight adjustment module is used to reduce the data transmission weight of the first physical interface and increase the data transmission weights of other physical interfaces in the link aggregation interface where the first physical interface is located when the packet loss rate of the first physical interface is greater than the packet loss rate threshold.

[0047] Optionally, the system further comprises:

[0048] A load data monitoring module, configured to monitor the load data of each of the physical interfaces in real time after the aggregation interface determination module adds the plurality of physical interfaces to the link aggregation group to obtain the link aggregation interface;

[0049] The weight adjustment module is also used to reduce the data transmission weight of the second physical interface when the load data of the second physical interface is greater than the load threshold, and to increase the data transmission weights of other physical interfaces in the link aggregation interface where the second physical interface is located.

[0050] Optionally, the data transmission module includes:

[0051] A business type analysis module, used to analyze the business type of the data;

[0052] A data distribution module, used to distribute the data to the physical interface corresponding to the service type in the link aggregation interface;

[0053] A data distribution transmission module is used to transmit the data between the server side and the network device side through the allocated physical interface.

[0054] Optionally, the system further comprises:

[0055] An interface role setting module, configured to set a master role or a backup role for each of the physical interfaces after the aggregation interface determination module adds the plurality of physical interfaces to the link aggregation group to obtain a link aggregation interface;

[0056] A data switching module, configured to switch the data allocated to the third physical interface to a fourth physical interface in a backup role corresponding to the third physical interface when a failure of the third physical interface in a primary role is detected;

[0057] The data switching module is further configured to switch the data allocated to the fourth physical interface to the third physical interface when it is detected that the third physical interface has recovered from a failure.

[0058] An embodiment of the present invention further discloses an electronic device, comprising: one or more processors; and one or more machine-readable media storing instructions thereon, which, when executed by the one or more processors, enable the electronic device to execute the data transmission method described above.

[0059] The embodiment of the present invention further discloses a computer-readable storage medium, wherein the computer program stored in the storage medium enables a processor to execute the data transmission method as described above.

[0060] The embodiments of the present invention include the following advantages:

[0061] The data transmission solution provided by the embodiment of the present invention selects multiple physical interfaces on the network device side and the server side respectively in response to the link aggregation operation, and then adds the multiple physical interfaces to the link aggregation group to obtain the link aggregation interface. When the data to be transmitted is obtained from the network device side and / or the server side, the data is transmitted between the server side and the network device side through the link aggregation interface.

[0062] The embodiment of the present invention combines multiple physical interfaces into a link aggregation group so that the total bandwidth of multiple physical interfaces can be superimposed (for example, the aggregation of four 1Gbps physical interfaces can provide 4Gbps bandwidth), thereby breaking through the bandwidth limitation of a single physical interface and meeting the needs of high-bandwidth services. Compared with the transmission rate limitation of a single physical interface, the link aggregation solution is more economical and efficient, avoiding the high cost of upgrading to high-bandwidth equipment alone. In link aggregation mode, multiple physical interfaces are transmitted as a logical interface. If one of the physical interfaces fails, the link aggregation mechanism can automatically switch the traffic to other normal physical interfaces to ensure uninterrupted data transmission. The reliability of data transmission is significantly improved, especially suitable for scenarios with high reliability requirements. Link aggregation can disperse data traffic to multiple physical interfaces, reduce the load pressure of a single physical interface through distributed transmission, and achieve load balancing. Through link aggregation, bandwidth can be increased on existing low-end network devices without replacing higher-specification devices, thereby reducing hardware upgrade costs, which is especially suitable for cost-sensitive scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 is a flowchart of a data transmission method according to an embodiment of the present invention;

[0064] Figure 2 is a schematic diagram of link aggregation between a visual networking router and a visual networking server according to an embodiment of the present invention;

[0065] Figure 3 It is a flow chart of a solution for improving the bandwidth of a visual network port according to an embodiment of the present invention;

[0066] Figure 4 It is a structural block diagram of a data transmission system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0067] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0068] The data transmission scheme proposed in the embodiment of the present invention realizes bandwidth superposition of multiple physical interfaces between the network device side and the server side through link aggregation technology to meet the needs of high-bandwidth data transmission. Specifically, the scheme selects multiple physical interfaces on the network device side and the server side respectively, and adds these physical interfaces to the link aggregation group to form a link aggregation interface. During data transmission, the link aggregation interface is responsible for dispersing data traffic on multiple physical interfaces, thereby increasing the total bandwidth. This scheme not only improves the data transmission rate, but also enhances the reliability of the transmission link: if a physical interface fails, the data can be automatically switched to other physical interfaces to ensure the continuity of data transmission. In addition, the load balancing mechanism of link aggregation can optimize resource utilization and avoid the bandwidth bottleneck of a single physical interface. This scheme provides a more efficient and economical bandwidth improvement scheme without significantly increasing hardware costs.

[0069] Reference Figure 1 , shows a flowchart of the steps of a data transmission method according to an embodiment of the present invention. The data transmission method can be applied to a data transmission system, referred to as a system for short. The data transmission method can specifically include the following steps:

[0070] Step 101 , in response to a link aggregation operation, multiple physical interfaces are selected on a network device side and a server side respectively.

[0071] In an embodiment of the present invention, the data transmission system needs to select multiple physical interfaces on the network device side (such as switches, routers) and the server side (such as data center servers) respectively to implement the basic preparations for link aggregation. A physical interface generally refers to a physical network port on a device, such as an Ethernet interface, whose bandwidth may be 1Gbps, 10Gbps, etc. Link aggregation is a network technology that combines multiple physical interfaces into a logical interface by using them simultaneously, thereby achieving bandwidth superposition and link redundancy. The response of the link aggregation operation means that the system has confirmed the network interfaces that need to be aggregated according to demand to meet the bandwidth requirements of the data traffic.

[0072] For example, suppose an enterprise's data center needs to transmit a large-capacity high-definition video stream to an external monitoring system, and the bandwidth of a single 1Gbps physical interface cannot meet the transmission requirements of the high-definition video stream. In this case, multiple 1Gbps physical interfaces can be selected to increase the transmission bandwidth through link aggregation. On the network device side, for example, 4 1Gbps physical interfaces are selected on the switch, and the corresponding 4 1Gbps physical interfaces are also selected on the server side. In this way, the system can combine the 4 physical interfaces into a logical interface with a bandwidth of 4Gbps through link aggregation technology, thereby improving the overall bandwidth. The selection of physical interfaces in this process requires technicians to make reasonable arrangements according to the actual traffic requirements and the number and location of the physical interfaces of the equipment during configuration, and ensure that the physical interfaces of both devices match to achieve the peer structure required for link aggregation.

[0073] Step 102: Add multiple physical interfaces to a link aggregation group to obtain a link aggregation interface.

[0074] In an embodiment of the present invention, after completing the selection of physical interfaces, it is necessary to add these physical interfaces to a link aggregation group to form a logical link aggregation interface. A link aggregation group is usually composed of multiple physical interfaces working in parallel and can be logically regarded as a single high-bandwidth interface. The link aggregation interface can distribute the load when transmitting data, so that data traffic can be shared by multiple physical interfaces instead of relying solely on the bandwidth of a single physical interface. Therefore, by adding physical interfaces to a link aggregation group, the bandwidth resources of each physical interface can be fully utilized to improve the overall transmission capacity.

[0075] For example, suppose a video server needs to send high-definition streaming media to multiple terminals, but due to the large amount of data and the real-time requirements of streaming media transmission, a single physical interface of 1Gbps is no longer sufficient to support it. Therefore, the four selected 1Gbps physical interfaces on the server can be configured as a link aggregation group. Specifically, the network administrator creates a link aggregation group in the configuration interface of the network device and server, and adds these physical interfaces to the link aggregation group one by one to form a 4Gbps link aggregation interface. After the configuration is completed, the link aggregation group will be presented in the form of a logical interface, that is, the data traffic between the server and the network device can be distributed and transmitted between these physical interfaces according to the load balancing mechanism of the link aggregation. The entire operation ensures that the bandwidth is increased while simplifying the complexity of bandwidth management in the system.

[0076] Step 103: Acquire data to be transmitted from the network device side and / or the server side.

[0077] In an embodiment of the present invention, after forming a link aggregation interface, the data transmission system needs to obtain the data to be transmitted on the network device side and / or the server side so as to transmit it through the link aggregation interface. The process of data acquisition usually involves collecting the required content from various applications or data sources, such as video streams, real-time monitoring data, file data, etc. The system can pre-store these data to be transmitted through buffers, data pools, etc. to ensure that they can be transmitted quickly when needed. In addition, the data acquisition process also needs to consider the data type and transmission requirements, such as the real-time nature and priority of the transmitted data, so as to schedule the data flow according to different needs.

[0078] For example, in a company, its server may be connected to multiple high-definition real-time video streams from surveillance cameras. These video streams will first be captured by the server-side application, stored in the buffer, and the priority of each video stream will be marked so that critical data can be transmitted first when bandwidth is tight.

[0079] Step 104: Transmit data between the server side and the network device side through the link aggregation interface.

[0080] In an embodiment of the present invention, the system realizes efficient data transmission between the server side and the network device side through the link aggregation interface created above. The link aggregation interface disperses the data traffic to each physical interface for transmission, thereby realizing bandwidth superposition. When transmitting data, the link aggregation interface can automatically distribute the traffic to each physical interface based on the load balancing algorithm to achieve the effect of load balancing. At the same time, in the event of a physical interface failure, the link aggregation interface can automatically switch the traffic to ensure the continuity and reliability of data transmission.

[0081] For example, in an intelligent transportation system, the monitoring server needs to transmit a large amount of real-time video data to the data center for analysis. Through the link aggregation interface, the monitoring server can distribute multiple video streams to multiple 1Gbps physical interfaces for parallel transmission. For example, the server can distribute video data to different physical interfaces according to the source address hash of the video stream, thereby avoiding congestion problems on a single physical interface. If a physical interface fails, the link aggregation interface will automatically switch the traffic to other physical interfaces to continue data transmission without interrupting video monitoring.

[0082] The data transmission solution provided by the embodiment of the present invention selects multiple physical interfaces on the network device side and the server side respectively in response to the link aggregation operation, and then adds the multiple physical interfaces to the link aggregation group to obtain the link aggregation interface. When the data to be transmitted is obtained from the network device side and / or the server side, the data is transmitted between the server side and the network device side through the link aggregation interface.

[0083] The embodiment of the present invention combines multiple physical interfaces into a link aggregation group so that the total bandwidth of multiple physical interfaces can be superimposed (for example, the aggregation of four 1Gbps physical interfaces can provide 4Gbps bandwidth), thereby breaking through the bandwidth limitation of a single physical interface and meeting the needs of high-bandwidth services. Compared with the transmission rate limitation of a single physical interface, the link aggregation solution is more economical and efficient, avoiding the high cost of upgrading to high-bandwidth equipment alone. In link aggregation mode, multiple physical interfaces are transmitted as a logical interface. If one of the physical interfaces fails, the link aggregation mechanism can automatically switch the traffic to other normal physical interfaces to ensure uninterrupted data transmission. The reliability of data transmission is significantly improved, especially suitable for scenarios with high reliability requirements. Link aggregation can disperse data traffic to multiple physical interfaces, reduce the load pressure of a single physical interface through distributed transmission, and achieve load balancing. Through link aggregation, bandwidth can be increased on existing low-end network devices without replacing higher-specification devices, thereby reducing hardware upgrade costs, which is especially suitable for cost-sensitive scenarios.

[0084] In an exemplary embodiment of the present invention, after adding multiple physical interfaces to a link aggregation group, an implementation method is: configure a securely authenticated Media Access Control (MAC) address for the link aggregation interface, so that the link aggregation interface can securely access the network environment where the network device side and the server side are located using the MAC address. In this implementation, in order to improve the security of the link aggregation interface and the reliability of network access, the link aggregation interface is configured with a securely authenticated MAC address. In ordinary link aggregation, the link aggregation interface usually uses a default generated or randomly assigned MAC address. However, since the link aggregation interface combines multiple physical interfaces into one logical interface, data will be transmitted in a dispersed manner on different physical interfaces. Therefore, if the MAC address of the link aggregation interface is not securely authenticated, it may bring security risks and increase the risk of data leakage and unauthorized access in the network. In addition, a MAC address that has not been securely authenticated may cause address conflicts between network management and equipment, resulting in unstable data transmission.

[0085] Therefore, in this implementation, the MAC address of the link aggregation interface needs to undergo security authentication. The security authentication process is usually configured by a system administrator or a security program to ensure that the MAC address is unique and complies with the security policy requirements of the network. For example, an administrator can select a MAC address that has been encrypted and authenticated, or generate a MAC address that complies with the security standards of the network environment through a network security platform, so that the link aggregation interface can be securely accessed on the network device side and the server side to prevent data packets from being intercepted or tampered with during transmission. At the same time, security authentication may also include binding a MAC address to a specific physical location, device, or permission to ensure that the link aggregation interface only allows authorized network access.

[0086] For example, suppose an enterprise's data center is using link aggregation to transmit sensitive customer data streams. In order to prevent data from being maliciously intercepted during transmission, the enterprise's network administrator decides to assign a securely authenticated MAC address to the link aggregation interface. The MAC address is first registered on the network security management platform, which ensures the uniqueness and legitimacy of the address through encryption and verification. The administrator then configures the authenticated MAC address to the link aggregation interface, so that the data will carry the securely authenticated MAC address when it is transmitted, preventing unauthorized devices from joining the link aggregation network or eavesdropping on or interfering with the transmitted data. At the same time, since each physical interface shares this authenticated MAC address, the security of data transmission is guaranteed.

[0087] The embodiment of the present invention improves the security of the entire link aggregation network and reduces the risk of data interception and tampering by configuring a securely authenticated MAC address for the link aggregation interface. The MAC address authentication process ensures the uniqueness and reliability of the MAC address, so that the link aggregation interface can only transmit data between the server and the network device through a trusted path. It effectively prevents unauthorized devices from accessing the link aggregation network, thereby reducing the possibility of network attacks. Secondly, the authenticated MAC address makes the identification of the link aggregation interface in the network clearer, avoiding the problem of data packet loss or transmission interruption caused by address conflicts. It not only improves the stability of data transmission, but also enables network administrators to more efficiently manage and monitor the use of link aggregation interfaces. In addition, the securely authenticated MAC address configuration can also enhance the traceability of the link aggregation interface, allowing administrators to track and analyze the flow of data when necessary, so as to facilitate the discovery of potential network security risks.

[0088] In an exemplary embodiment of the present invention, an implementation method for transmitting data between a server side and a network device side via a link aggregation interface is as follows: performing bandwidth detection and / or delay detection on each physical interface in the link aggregation interface; calculating a health score for each physical interface based on the detection results of the bandwidth detection and / or delay detection; setting a respective data transmission weight for each physical interface according to the health score; and transmitting data to the server side and / or the network device side between multiple physical interfaces of the link aggregation interface according to the data transmission weight.

[0089] For example, a company is transmitting high-definition video streams to a data center through a link aggregation interface. The link aggregation interface includes four physical interfaces, each supporting a transmission bandwidth of 1 Gbps. The system first detects the bandwidth and latency of these four physical interfaces. Assume that the detection results are as follows: Interface A's bandwidth is close to full load and the latency is large; Interfaces B and C are at medium load, with good bandwidth and latency performance; Interface D has low bandwidth utilization and the lowest latency. Based on these detection data, the system assigns a health score to each physical interface. For example, Interface D has the highest health, followed by Interfaces B and C, and Interface A has the lowest health. Based on the health score, the system assigns the highest transmission weight to Interface D, followed by Interfaces B and C, while Interface A has the lowest weight. This means that data will be preferentially allocated to Interface D for transmission, and then allocated to other interfaces one by one according to the weight. In this way, when the system transmits the high-definition video data stream to the data center, interfaces in good condition are preferentially used to transmit most of the data, ensuring fast and stable data transmission.

[0090] The embodiment of the present invention can understand the transmission status of each physical interface in real time through bandwidth and delay detection, and allocate data transmission weights according to health. Physical interfaces with high health can undertake more data transmission tasks, while physical interfaces with low health can undertake fewer tasks, thereby realizing dynamic allocation of resources and maximizing bandwidth utilization. This weight allocation strategy allows the link aggregation interface to not only increase the bandwidth, but also optimize the load distribution of different interfaces. Since physical interfaces with higher health usually have lower latency and better transmission performance, data congestion is effectively avoided. The high-weight allocation strategy will cause the system to transmit most of the data on physical interfaces with low latency and high health, reducing the proportion of data transmitted on physical interfaces with poor status, thereby improving the stability and fluency of data transmission.

[0091] In an exemplary embodiment of the present invention, after setting the respective data transmission weight for each physical interface according to the health score, an implementation method is: detecting the packet loss rate of each physical interface; when the packet loss rate of the first physical interface is greater than the packet loss rate threshold, reducing the data transmission weight of the first physical interface, and increasing the data transmission weights of other physical interfaces in the link aggregation interface where the first physical interface is located. In this implementation method, in order to further optimize the reliability and efficiency of data transmission, on the basis of having set the data transmission weight for each physical interface, the system will continuously monitor the packet loss rate of each physical interface. The packet loss rate refers to the proportion of data packets lost due to network or device reasons during the data transmission process, which is a key indicator for measuring the quality of network transmission. When the packet loss rate of a physical interface exceeds the safety threshold (i.e., the packet loss rate threshold) set by the system, the system will automatically reduce the data transmission weight of the physical interface, reduce the amount of data passing through the physical interface, and instead allocate more data transmission tasks to other physical interfaces in the link aggregation interface with lower packet loss rates and more stable transmission.

[0092] Suppose a company transmits real-time transaction data to the data center of the headquarters through a link aggregation interface. The link aggregation interface includes four physical interfaces (interfaces A, B, C, and D). The system has set the initial transmission weights of these four physical interfaces according to the health scores at the beginning of configuration. As the amount of transaction data transmission increases, the system continuously detects the packet loss rate of each physical interface. If after a period of time, the system finds that the packet loss rate of interface A reaches 5%, and the system preset packet loss rate threshold is 3%, then the packet loss rate of interface A has exceeded the threshold. To ensure the integrity of the data, the system will automatically reduce the data transmission weight of interface A, for example, from the original 40% to 20%, and assign the reduced transmission tasks to interfaces B, C, and D with lower packet loss rates. In this way, more data will be transmitted through interfaces with better status, avoiding data loss caused by the high packet loss rate of interface A. Over time, if the packet loss rate of interface A returns to within the safety threshold, the system can also dynamically increase its weight to achieve reasonable redistribution of data traffic.

[0093] The embodiment of the present invention reduces the risk of data loss by detecting the packet loss rate and dynamically adjusting the weight. When the network condition is poor or a physical interface is overloaded, the packet loss rate tends to increase. By detecting the packet loss rate and reducing the transmission weight of the physical interface, the system can effectively transfer the data to other physical interfaces with lower packet loss rates for transmission, thereby ensuring high data reliability and reducing the loss of data packets during transmission. In a dynamic network environment, the packet loss rate may fluctuate due to network congestion, line interference or equipment abnormality. Respond quickly to changes in the network environment and continuously adjust the transmission weight of the physical interface. When the network environment deteriorates, the system can quickly reduce the burden of the physical interface with a high packet loss rate, and preferentially transmit the data to the physical interface with a low packet loss rate, ensuring the continuity and high quality of data transmission. At the same time, when the physical interface returns to normal, the system can also dynamically adjust the weight to optimize resource utilization and fully adapt to complex network conditions.

[0094] In an exemplary embodiment of the present invention, after adding multiple physical interfaces to a link aggregation group to obtain a link aggregation interface, an implementation method is: real-time monitoring of the load data of each physical interface; when the load data of the second physical interface is greater than the load threshold, reducing the data transmission weight of the second physical interface, and increasing the data transmission weights of other physical interfaces in the link aggregation interface where the second physical interface is located. In this implementation, by real-time monitoring of the load data of each physical interface in the link aggregation interface, the data transmission tasks can be effectively balanced and the network resource utilization can be optimized. During the operation of the link aggregation interface, the load situation of each physical interface may change with the increase or decrease of the amount of data. In order to avoid transmission delays and instability caused by excessive load on a certain physical interface, the system sets a load threshold. When the load data of a physical interface exceeds this load threshold, the system will automatically reduce the transmission weight of the physical interface and transfer its load to other physical interfaces in the link aggregation interface to ensure the stability and efficiency of the overall transmission.

[0095] Assume that a company is using a link aggregation interface to transmit order data from a distributed warehouse system to the data center at the headquarters. The link aggregation interface includes four physical interfaces (A, B, C, and D). Initially, the system sets the transmission weight of each physical interface to a relatively average value, for example, each interface is assigned 25% of the transmission task. However, with the surge in order data, the load of interface B gradually increases, even reaching 70% bandwidth utilization, while the load threshold set by the system is 60%. At this time, the system detects that the load data of interface B exceeds the load threshold, and automatically reduces the transmission weight of interface B, thereby reducing its data transmission tasks. At the same time, the system will allocate the reduced load of interface B to interfaces A, C, and D with lower loads, so that they can take on more transmission tasks. In this way, the load of interface B is reduced to a reasonable range, and there will no longer be delays or transmission interruptions caused by overload. At the same time, the entire link aggregation interface can still meet the data transmission needs and keep the overall data flow smooth.

[0096] The embodiment of the present invention can effectively prevent the problem of unstable data transmission caused by overload of a single physical interface by real-time monitoring of the load data of the physical interface and timely adjusting the transmission weight. After reducing the transmission weight of the overloaded physical interface, the transmission task is dispersed to other physical interfaces, ensuring that each physical interface in the link aggregation interface can work under a reasonable load, thereby improving the stability of the overall transmission. Through reasonable allocation of transmission weights, the bandwidth resources of the link aggregation interface can be fully utilized to improve data transmission efficiency. Ensure that bandwidth resources are maximized and reduce the pressure on high-load physical interfaces.

[0097] In an exemplary embodiment of the present invention, an implementation method of transmitting data between the server side and the network device side through the link aggregation interface is: analyzing the service type of the data; assigning the data to the physical interface corresponding to the service type in the link aggregation interface; and transmitting the data between the server side and the network device side through the assigned physical interface. In this implementation, each physical interface can be responsible for data transmission of a specific service type according to its characteristics and advantages, thereby achieving more efficient and targeted resource allocation and data transmission. Different service types have different requirements for transmission speed, stability, latency, etc.

[0098] Assume that a company has four physical interfaces in the link aggregation interface when transmitting data, and each physical interface has different bandwidth and latency characteristics. The company transmits different types of data from the server to the data center at the headquarters through the link aggregation interface. These data include real-time order data, user information, inventory update information, and product images. Through the analysis of business types, the system knows that real-time order data has high requirements for low latency, user information requires a physical interface with high stability but low bandwidth requirements, inventory information has a large amount of data but is not sensitive to latency, and image transmission requires high bandwidth but low latency requirements. Based on these requirements, the system allocates real-time order data to physical interface A with low latency, user information to physical interface B with high stability, inventory data to physical interface C, and image data to physical interface D with high bandwidth. Through this targeted allocation, all data can be transmitted through the appropriate physical interface according to business needs, ensuring the efficiency and stability of the overall transmission.

[0099] The embodiments of the present invention can better meet the special requirements of different data for transmission conditions by allocating data to the most suitable physical interface according to the service type. For data with low latency requirements, it is allocated to the physical interface with low latency to avoid processing lags caused by latency; for data with high bandwidth requirements, physical interfaces with larger bandwidth are used first to avoid the impact of bandwidth limitations on transmission speed. Such refined allocation greatly improves the efficiency and accuracy of data transmission.

[0100] In an exemplary embodiment of the present invention, after adding multiple physical interfaces to a link aggregation group to obtain a link aggregation interface, an implementation method is: setting a master role or a backup role for each physical interface; when a failure is detected in the third physical interface in the master role, the data assigned to the third physical interface is switched to the fourth physical interface in the backup role corresponding to the third physical interface; when the failure recovery of the third physical interface is detected, the data assigned to the fourth physical interface is switched to the third physical interface. In this implementation, the fault recovery mechanism of data transmission is realized by setting a master and backup role for each physical interface in the link aggregation interface, that is, each physical interface is assigned a master role or a backup role, and when the physical interface in the master role fails, the system can quickly switch the data transmission task to the corresponding physical interface in the backup role. The data transmission has higher fault tolerance and stability, ensuring that the system can still maintain stable and efficient operation when a network failure occurs. In particular, for some application scenarios with high stability requirements, such as financial transactions, medical data transmission or video conferencing systems, the master and backup role switching mechanism can effectively avoid data interruption or transmission quality degradation caused by single interface failure.

[0101] Suppose a company is transmitting monitoring data from the operating room to the data center for real-time analysis through a link aggregation interface. Four physical interfaces (A, B, C, and D) are configured in the link aggregation interface, and the role of each physical interface is configured as follows: A and B are the primary roles, and C and D are the backup roles, paired with the corresponding primary roles. For example, the backup interface of interface A is C, and the backup interface of interface B is D. Under normal circumstances, interfaces A and B are responsible for the main data transmission tasks, while interfaces C and D are in the backup state. When the system detects that interface A has a fault and data transmission is interrupted, the system will quickly switch the transmission task of interface A to interface C so that the data flow will not be interrupted due to the fault of interface A. Interface C assumes the data transmission task of interface A, so that the overall operation of the system remains stable. When the fault of interface A is repaired, the system will switch the data transmission task from interface C back to interface A again. In this way, interface A is restored to the primary interface, and interface C returns to the backup state.

[0102] The master-slave role mechanism in the embodiment of the present invention ensures that when a single physical interface fails, the system can immediately switch to the backup interface to ensure the continuity of data transmission. Especially in important data transmission scenarios, such as real-time medical monitoring or financial transaction data transmission, data interruption may lead to serious consequences. Through the master-slave switching mechanism, it is ensured that data transmission can continue even if the main interface fails, thereby greatly improving the reliability of the system and the continuity of data transmission. Compared with traditional single-path transmission, when the main interface fails, manual intervention is required to restore data transmission. The master-slave switching mechanism realizes automatic switching of faults, so that data transmission can be quickly restored within milliseconds. The reduction of fault recovery time is very critical for delay-sensitive applications, which helps to reduce data transmission delays and transmission interruptions caused by faults, thereby improving the real-time performance and response speed of the system. In a complex network environment, equipment failures and transmission anomalies often occur. Through the setting of the master-slave interface, when the main interface fails, the system can automatically switch to the backup interface. This dual protection mechanism effectively enhances the fault tolerance of the system and avoids the overall transmission collapse caused by the failure of a single interface. When the main interface is restored, the system can automatically switch the data back to the main interface, so that the backup interface returns to the backup state. Always maintaining the role allocation and load balancing of each physical interface can not only achieve rapid response to faults, but also restore the original load distribution immediately after the fault is eliminated, avoiding the waste of interface resources.

[0103] It should be noted that the first physical interface, the second physical interface, the third physical interface and the fourth physical interface mentioned in the embodiment of the present invention may be the same or different. Moreover, the number of physical interfaces selected on the network device side and the number of physical interfaces selected on the server side may be the same or different.

[0104] Based on the above description of a data transmission method embodiment, a solution for improving the bandwidth of a visual network port is introduced below. The solution for improving the bandwidth of a visual network port involves a visual network router (V2V Router) and a visual network server (V2V Server). Figure 2 , showing a schematic diagram of link aggregation between a visual networking router and a visual networking server according to an embodiment of the present invention.

[0105] Several physical links between the visual network router and the visual network server are aggregated to form a logical link. By aggregating several physical links into one logical link, the bandwidth of the logical link can be the sum of the bandwidths of the several physical links, thereby increasing the data transmission bandwidth between the visual network router and the visual network server.

[0106] Reference Figure 3 , showing a flow chart of a solution for improving the bandwidth of a visual network port according to an embodiment of the present invention.

[0107] Select two or more physical interfaces on the V2V Router and V2V Server to add to the link aggregation group and generate corresponding link aggregation interfaces.

[0108] For example, add two physical interfaces to a link aggregation group. Both the V2V Router and the V2V Server are configured according to the following command):

[0109] Create dynamic link aggregation group 1 and enable Link Aggregation Control Protocol (LACP):

[0110] interface Bridge-Aggregation 1#Create and enter the Bridge-Aggregation 1 interface to configure aggregation link group 1

[0111] port link-type trunk#Set the link type of the aggregation link group to trunk mode (trunk mode)

[0112] port trunk permit vlan all#Allow all virtual LANs (VLANs) to pass through this aggregate link

[0113] link-aggregation mode dynamic#Set link aggregation mode to dynamic (enable LACP)

[0114] Add physical interface 1 and physical interface 2 to link aggregation group 1:

[0115] interface Ethernet 0 / 0 / 1#Enter the configuration mode of Ethernet 0 / 0 / 1 physical port

[0116] port link-aggregation group 1#Add Ethernet 0 / 0 / 1 physical port to link aggregation group 1

[0117] quit#Exit the configuration mode of Ethernet 0 / 0 / 1 port

[0118] interface Ethernet 0 / 0 / 2#Enter the configuration mode of Ethernet 0 / 0 / 2 physical port

[0119] port link-aggregation group 1#Add Ethernet 0 / 0 / 2 physical port to link aggregation group 1

[0120] Then, configure the MAC address of the link aggregation interface on the V2V Router and V2V Server as the visual network access MAC address, thereby realizing the visual network access and data forwarding of the router and server.

[0121] The bandwidth of the video networking port of the V2V Router and V2V Server is the sum of the bandwidths of each physical interface, thereby increasing the available video networking bandwidth of the video networking router.

[0122] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0123] Reference Figure 4 , shows a structural block diagram of a data transmission system according to an embodiment of the present invention. The data transmission system may specifically include the following modules.

[0124] A physical interface selection module 41, configured to select a plurality of physical interfaces on the network device side and the server side respectively in response to the link aggregation operation;

[0125] An aggregation interface determination module 42, configured to add a plurality of the physical interfaces to a link aggregation group to obtain a link aggregation interface;

[0126] A data acquisition module 43, used to acquire data to be transmitted from the network device side and / or the server side;

[0127] The data transmission module 44 is used to transmit the data between the server side and the network device side through the link aggregation interface.

[0128] In an exemplary embodiment of the present invention, the system further comprises:

[0129] The address configuration module is used to configure a security-authenticated media access control address for the link aggregation interface after the aggregation interface determination module 42 adds multiple physical interfaces to the link aggregation group, so that the link aggregation interface can securely access the network environment where the network device side and the server side are located using the media access control address.

[0130] In an exemplary embodiment of the present invention, the data transmission module 44 includes:

[0131] A physical interface detection module, used to perform bandwidth detection and / or delay detection on each of the physical interfaces in the link aggregation interface;

[0132] A health calculation module, used to calculate the health score of each of the physical interfaces based on the detection results of the bandwidth detection and / or the delay detection;

[0133] A weight setting module, used to set a respective data transmission weight for each of the physical interfaces according to the health score;

[0134] A data forwarding module is used to transmit the data to the server side and / or the network device side between the multiple physical interfaces of the link aggregation interface according to the data transmission weight.

[0135] In an exemplary embodiment of the present invention, the system further comprises:

[0136] A packet loss rate detection module, configured to detect the packet loss rate of each of the physical interfaces after the weight setting module sets a respective data transmission weight for each of the physical interfaces according to the health score;

[0137] A weight adjustment module is used to reduce the data transmission weight of the first physical interface and increase the data transmission weights of other physical interfaces in the link aggregation interface where the first physical interface is located when the packet loss rate of the first physical interface is greater than the packet loss rate threshold.

[0138] In an exemplary embodiment of the present invention, the system further comprises:

[0139] A load data monitoring module, configured to monitor the load data of each of the physical interfaces in real time after the aggregation interface determination module 42 adds the plurality of physical interfaces to the link aggregation group to obtain the link aggregation interface;

[0140] The weight adjustment module is also used to reduce the data transmission weight of the second physical interface when the load data of the second physical interface is greater than the load threshold, and to increase the data transmission weights of other physical interfaces in the link aggregation interface where the second physical interface is located.

[0141] In an exemplary embodiment of the present invention, the data transmission module 44 includes:

[0142] A business type analysis module, used to analyze the business type of the data;

[0143] A data distribution module, used to distribute the data to the physical interface corresponding to the service type in the link aggregation interface;

[0144] A data distribution and transmission module is used to transmit the data between the server side and the network device side through the allocated physical interface.

[0145] In an exemplary embodiment of the present invention, the system further comprises:

[0146] An interface role setting module, configured to set a master role or a backup role for each of the physical interfaces after the aggregation interface determination module 42 adds the plurality of physical interfaces to the link aggregation group to obtain a link aggregation interface;

[0147] A data switching module, configured to switch the data allocated to the third physical interface to a fourth physical interface in a backup role corresponding to the third physical interface when a failure of the third physical interface in a primary role is detected;

[0148] The data switching module is further configured to switch the data allocated to the fourth physical interface to the third physical interface when it is detected that the third physical interface has recovered from a failure.

[0149] As for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0150] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0151] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0152] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0153] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0154] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0155] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0156] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0157] The data transmission method and the data transmission system provided by the present invention are introduced in detail above. The principle and implementation mode of the present invention are explained by using specific examples in this article. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation mode and the scope of application. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A data transmission method, characterized in that: The method comprises: In response to the link aggregation operation, selecting a plurality of physical interfaces on the network device side and the server side respectively; Adding a plurality of the physical interfaces to a link aggregation group to obtain a link aggregation interface; Acquire data to be transmitted from the network device side and / or the server side; The data is transmitted between the server side and the network device side through the link aggregation interface.

2. The method according to claim 1, characterized in that After adding the plurality of physical interfaces to the link aggregation group, the method further comprises: A securely authenticated media access control address is configured for the link aggregation interface, so that the link aggregation interface securely accesses the network environment where the network device side and the server side are located by using the media access control address.

3. The method according to claim 1, characterized in that The transmitting the data between the server side and the network device side through the link aggregation interface includes: Performing bandwidth detection and / or delay detection on each of the physical interfaces in the link aggregation interface; Calculating a health score of each of the physical interfaces based on the detection results of the bandwidth detection and / or the delay detection; Setting a respective data transmission weight for each of the physical interfaces according to the health score; The data is transmitted to the server side and / or the network device side between the multiple physical interfaces of the link aggregation interface according to the data transmission weight.

4. The method according to claim 3, characterized in that After setting a respective data transmission weight for each of the physical interfaces according to the health score, the method further includes: Detecting a packet loss rate of each of the physical interfaces; When the packet loss rate of the first physical interface is greater than a packet loss rate threshold, the data transmission weight of the first physical interface is reduced, and the data transmission weights of other physical interfaces in the link aggregation interface where the first physical interface is located are increased.

5. The method according to claim 3, characterized in that: After adding the plurality of physical interfaces to the link aggregation group to obtain the link aggregation interface, the method further includes: Monitoring the load data of each of the physical interfaces in real time; When the load data of the second physical interface is greater than a load threshold, the data transmission weight of the second physical interface is reduced, and the data transmission weights of other physical interfaces in the link aggregation interface where the second physical interface is located are increased.

6. The method according to claim 1, characterized in that The transmitting the data between the server side and the network device side through the link aggregation interface includes: The type of business analyzing the data; Allocating the data to the physical interface corresponding to the service type in the link aggregation interface; The data is transmitted between the server side and the network device side through the allocated physical interface.

7. The method according to claim 1, characterized in that After adding the plurality of physical interfaces to the link aggregation group to obtain the link aggregation interface, the method further includes: Setting a master role or a backup role for each of the physical interfaces; When a failure is detected in a third physical interface in a primary role, the data allocated to the third physical interface is switched to a fourth physical interface in a backup role corresponding to the third physical interface; When it is detected that the third physical interface recovers from the failure, the data allocated to the fourth physical interface is switched to the third physical interface.

8. A data transmission system, characterized in that: The system comprises: A physical interface selection module, configured to select a plurality of physical interfaces on the network device side and the server side respectively in response to the link aggregation operation; An aggregation interface determination module, used to add a plurality of the physical interfaces to a link aggregation group to obtain a link aggregation interface; A data acquisition module, used to acquire data to be transmitted from the network device side and / or the server side; A data transmission module is used to transmit the data between the server side and the network device side through the link aggregation interface.

9. An electronic device, characterized in that: include: one or more processors; and One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, enable the electronic device to perform the data transmission method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer program stored therein enables the processor to execute the data transmission method as claimed in any one of claims 1 to 7.