Link service data distribution method and device, equipment and storage medium
By calculating the remaining bandwidth of each link and dynamically adjusting the service data allocation, the problem that traditional policy routing cannot be adjusted according to bandwidth changes is solved, and the flexibility of network resource utilization and service data allocation is improved.
Patent Information
- Application Number
- CN202411539093.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-01-07
AI Technical Summary
Traditional policy routing cannot adjust service data allocation according to bandwidth changes of each link, resulting in improper allocation of network resources and waste of bandwidth.
By obtaining the total bandwidth and used bandwidth of each link, calculating the remaining bandwidth, determining the amount of service data to be allocated based on the remaining bandwidth, dynamically adjusting the allocation method of service data to ensure full utilization of network resources.
It realizes dynamic adjustment of service data allocation according to the bandwidth changes of each link, avoids bandwidth waste caused by improper resource allocation, and improves the utilization rate of overall network resources and the flexibility of service data allocation.
Smart Images

Figure CN119276794A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of link service data allocation, and in particular to a link service data allocation method, device, equipment and storage medium. Background Art
[0002] With the rapid development of the Internet and enterprise networks, data traffic continues to increase, and a single link often cannot meet the requirements of high bandwidth and low latency.
[0003] In order to avoid the network availability risk caused by single line failure and solve the network access problem caused by insufficient network bandwidth, users often rent multiple lines. Faced with the situation of multiple lines, users need to be able to reasonably use the functions of multiple lines, not only to avoid wasting line resources, but also to improve the quality of network services. Although traditional policy routing can solve this problem to a certain extent, traditional policy routing is complex to use and the service data allocation method is fixed. For example, the bandwidth of one of the two links is 1000M and the bandwidth of the other link is 500M. The service data will always be transmitted on the two links according to the above bandwidth ratio, and it cannot dynamically adapt to changes in the network structure. When the traffic in one or several lines suddenly increases, the traditional service data balancing method based on the size of the bandwidth cannot adjust the service data allocated to each link according to the change of the bandwidth of each link.
[0004] Therefore, the inability of traditional policy routing to adjust the service data allocated to each link according to the change of the bandwidth of each link is an urgent problem to be solved. Summary of the invention
[0005] In view of this, the purpose of the present application is to provide a link service data distribution method, the load balancing device includes a forwarding module and a control module, and the method includes: The forwarding module obtains the total bandwidth of each link and the used bandwidth of each link at the i-th moment; The forwarding module sends the total bandwidth of each link and the used bandwidth of each link at the i-th moment to the control module; The control module calculates the remaining bandwidth of each link at the i-th moment according to the total bandwidth of each link and the used bandwidth of each link at the i-th moment; The control module determines the amount of service data to be allocated corresponding to the remaining bandwidth of each link at the i-th moment; The control module sends the data volume of the service data to be allocated for each link at the i-th moment to the forwarding module; The forwarding module sends service data corresponding to the data volume of the service data to be allocated on each link at the i-th moment to each link.
[0006] Preferably, the control module calculates the remaining bandwidth of each link at the i-th moment according to the total bandwidth of each link and the used bandwidth of each link at the i-th moment, comprising: The calculation formula for the remaining bandwidth of each link at the i-th moment is as follows:
[0007] in, is the remaining bandwidth of each link at the i-th moment, is the total bandwidth of each link, is the used bandwidth of each link at the i-th moment.
[0008] Preferably, the load balancing device further includes a timing module, and the method further includes: The timing module sends a startup information collection instruction to the forwarding module every preset time period; If the forwarding module receives the startup information collection instruction, the forwarding module obtains the total bandwidth of each link and the used bandwidth of each link at the i-th moment according to the startup information collection instruction.
[0009] Preferably, the method further comprises: If the forwarding module does not receive the startup information collection instruction, the forwarding module sends a communication failure alarm to the control module.
[0010] Preferably, the load balancing device further includes a display, and the method further includes: The control module sends the remaining bandwidth of each link at the i-th moment to the display; The display visualizes the remaining bandwidth of each link at the i-th moment.
[0011] Preferably, the method further comprises: The control module sends the data volume of the service data to be allocated of each link at the i-th moment to the display; The display visually displays the data volume of the service data to be allocated for each link at the i-th moment.
[0012] The link service data allocation method provided by this application brings the following beneficial effects: The present application provides a link service data allocation method, in which the control module calculates the remaining bandwidth of each link at the i-th moment according to the total bandwidth of each link and the used bandwidth of each link at the i-th moment, so as to determine the data volume of the service data to be allocated corresponding to the remaining bandwidth of each link at the i-th moment. And the control module sends the data volume of the service data to be allocated of each link at the i-th moment to the forwarding module, so that the forwarding module sends the service data corresponding to the data volume of the service data to be allocated of each link at the i-th moment to each link. The method can allocate service data to each link at any time according to the bandwidth change of each link, ensure that network resources are fully utilized, avoid bandwidth waste caused by improper resource allocation, and thus improve the utilization rate of overall network resources.
[0013] In a second aspect, the present application also provides a link service data distribution device, the device comprising a forwarding module and a control module; The forwarding module is used to obtain the total bandwidth of each link and the used bandwidth of each link at the i-th moment; The forwarding module is further used to send the total bandwidth of each link and the used bandwidth of each link at the i-th moment to the control module; The control module is used to calculate the remaining bandwidth of each link at the i-th moment according to the total bandwidth of each link and the used bandwidth of each link at the i-th moment; The control module is further used to determine the data volume of the service data to be allocated corresponding to the remaining bandwidth of each link at the i-th moment, and send the data volume of the service data to be allocated for each link at the i-th moment to the forwarding module; The forwarding module is further used to send service data corresponding to the data volume of the service data to be allocated on each link at the i-th moment to each link.
[0014] Preferably, the control module is specifically used to obtain the remaining bandwidth of each link at the i-th moment according to the following formula:
[0015] in, is the remaining bandwidth of each link at the i-th moment, is the total bandwidth of each link, is the used bandwidth of each link at the i-th moment.
[0016] Preferably, the device further comprises a timing module, the timing module being configured to send a startup information collection instruction to the forwarding module every preset time period; The forwarding module is further configured to obtain the total bandwidth of each link and the used bandwidth of each link at the i-th moment according to the startup information collection instruction if the forwarding module receives the startup information collection instruction.
[0017] Preferably, the forwarding module is further configured to send a communication failure alarm to the control module if the forwarding module does not receive the startup information collection instruction.
[0018] Preferably, the device further comprises a display; The control module is further configured to send the remaining bandwidth of each link at the i-th moment to the display; The display is used to visually display the remaining bandwidth of each link at the i-th moment.
[0019] Preferably, the control module is used to send the data volume of the service data to be allocated for each link at the i-th moment to the display; The display is also used to visually display the data volume of the service data to be allocated for each link at the i-th moment.
[0020] The link service data allocation device provided in the embodiment of the present application has the same technical features as the link service data allocation method provided in the above embodiment, so it can also solve the same technical problems and achieve the same technical effects.
[0021] In a third aspect, the present application provides a computing device, including a memory and a processor; One or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the computing device executes the method as described in any one of the first aspects.
[0022] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method as described in any one of the first aspects.
[0023] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application are realized and obtained by the structures particularly pointed out in the description and the drawings.
[0024] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0026] Figure 1 A schematic diagram of a link service data allocation method provided in an embodiment of the present application; Figure 2 A schematic diagram of the structure of a link service data distribution device provided in an embodiment of the present application; Figure 3 A schematic diagram of the structure of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0028] To facilitate understanding of this embodiment, the embodiments of the present application are described in detail below.
[0029] The embodiment of the present application provides a link service data distribution method, the load balancing device includes a forwarding module and a control module, such as Figure 1 As shown, Figure 1 A flow chart of a link service data allocation method provided in an embodiment of the present application. The method comprises the following steps: S101, a forwarding module obtains the total bandwidth of each link and the used bandwidth of each link at the i-th moment.
[0030] Specifically, the forwarding module is the core of the load balancing device, which can monitor the data transmission of each link in real time, that is, obtain the total bandwidth of each link and the used bandwidth of each link at the i-th moment. The bandwidth of each link can be changed. As the flow of business data required between communication devices increases, the bandwidth of each link will also increase to support the increase in the amount of business data.
[0031] S102: The forwarding module sends the total bandwidth of each link and the used bandwidth of each link at the i-th moment to the control module.
[0032] Specifically, the control module is the application layer of the load balancing device, which can control the forwarding module to adjust the data transmission of each link in real time. The control module obtains the total bandwidth of each link and the used bandwidth of each link at the i-th moment from the forwarding module, so as to calculate the remaining bandwidth of each link in real time.
[0033] S103: The control module calculates the remaining bandwidth of each link at the i-th moment according to the total bandwidth of each link and the used bandwidth of each link at the i-th moment.
[0034] Specifically, the calculation formula for the remaining bandwidth of each link at the i-th moment is as follows:
[0035] in, is the remaining bandwidth of each link at the i-th moment, is the total bandwidth of each link, is the used bandwidth of each link at the i-th moment.
[0036] With such configuration, the control module calculates the remaining bandwidth of each link at the i-th moment, so as to subsequently determine the amount of service data to be allocated to each link in real time, thereby improving the real-time performance and flexibility of service data allocation.
[0037] S104: The control module determines the amount of service data to be allocated corresponding to the remaining bandwidth of each link at the i-th moment.
[0038] Specifically, the control module obtains the remaining bandwidth of each link by precise calculation, and the amount of service data to be allocated determined thereby has high accuracy, which can better grasp the specific situation of service data to be allocated on each link, and lays a good foundation for the subsequent forwarding module to allocate service data.
[0039] S105 , the control module sends the data volume of the service data to be allocated on each link at the i-th moment to the forwarding module.
[0040] Specifically, since the distribution of service data is directly performed by the forwarding module, the control module needs to send the data volume of service data to be distributed on each link at the i-th moment to the forwarding module so that the forwarding module can distribute the service data in a timely manner.
[0041] S106: The forwarding module sends service data corresponding to the data volume of the service data to be allocated on each link at the i-th moment to each link.
[0042] Specifically, the forwarding module can allocate the service data in real time according to the instruction sent by the control module. The bandwidth occupied by the data volume of the service data to be allocated on each link at the i-th moment is the remaining bandwidth of each link at the i-th moment.
[0043] Such a setting can ensure that network resources are fully utilized, avoid bandwidth waste due to improper resource allocation, and thus improve the overall network resource utilization.
[0044] The present application provides a link service data allocation method, in which the control module calculates the remaining bandwidth of each link at the i-th moment according to the total bandwidth of each link and the used bandwidth of each link at the i-th moment, and determines the data volume of the service data to be allocated corresponding to the remaining bandwidth of each link at the i-th moment. And the control module sends the data volume of the service data to be allocated of each link at the i-th moment to the forwarding module, so that the forwarding module sends the service data corresponding to the data volume of the service data to be allocated of each link at the i-th moment to each link. The method can allocate service data to each link at any time according to the bandwidth change of each link. Compared with the fixed service data allocation method in the prior art, the method can dynamically adapt to the changes in the network structure, that is, when the traffic in one or several links suddenly increases, the service data allocated to each link is adjusted according to the change in the bandwidth of each link (remaining bandwidth). The method can ensure that network resources are fully utilized, avoid bandwidth waste caused by improper resource allocation, thereby improving the utilization rate of the overall network resources, improving the flexibility of service data allocation, adapting to various complex environments, and ensuring the continuity and stability of service data transmission. In addition, the distribution process of business data in this method does not require human intervention, which greatly saves manpower.
[0045] In one embodiment, the load balancing device also includes a timing module, which sends a startup information collection instruction to the forwarding module every preset time period; if the forwarding module receives the startup information collection instruction, the total bandwidth of each link and the used bandwidth of each link at the i-th moment are obtained according to the startup information collection instruction; if the forwarding module does not receive the startup information collection instruction, a communication failure alarm is sent to the control module.
[0046] Specifically, since the bandwidth of each link may change at any time, in order to allow the forwarding module to accurately and timely obtain the total bandwidth of each link and the used bandwidth of each link each time the bandwidth of the link changes, the timing module will send a startup information collection instruction to the forwarding module every preset time period to instruct the forwarding module to start the acquisition of the total bandwidth of each link and the used bandwidth of each link. If the forwarding module receives the startup information collection instruction, it means that the bandwidth of the link is changing at this time, and the forwarding module needs to start the acquisition work; if the forwarding module does not receive the startup information collection instruction, it means that the bandwidth of the link has not changed at this time, and the forwarding module does not need to start the acquisition work. Among them, the above-mentioned preset time period is equal to the interval time of the link bandwidth change.
[0047] In this mode, the timing module automatically sends the startup information collection instruction without manual intervention, which improves the automation level of network monitoring. After receiving the startup information collection instruction, the forwarding module automatically obtains the total bandwidth and used bandwidth of each link without manual query, which further improves the efficiency of network management.
[0048] In one implementation, the load balancing device further includes a display, and the control module sends the remaining bandwidth of each link at the i-th moment to the display; the display visually displays the remaining bandwidth of each link at the i-th moment.
[0049] Specifically, through visualization, network administrators or relevant personnel can intuitively see the remaining bandwidth of each link at the i-th moment, without the need to interpret complex numbers or charts. In a complex network environment, staff can quickly identify links with relatively tight bandwidth resources and links with relatively abundant bandwidth resources, and promptly allocate business data to links with relatively abundant bandwidth resources. Once it is found that the remaining bandwidth of a link is insufficient, relevant personnel can immediately expand or optimize the link with insufficient bandwidth to avoid network congestion and performance degradation.
[0050] In this way, the visual display can reflect the remaining bandwidth of the link in real time, so that relevant personnel can grasp the dynamic changes of network resources at any time, which helps network administrators or relevant personnel to better grasp the dynamic changes of network resources and optimize network performance.
[0051] In one implementation, the control module sends the data volume of the service data to be allocated for each link at the i-th moment to the display; the display visually displays the data volume of the service data to be allocated for each link at the i-th moment.
[0052] Specifically, the display intuitively presents the amount of service data to be allocated for each link at the i-th moment in the form of charts, graphs or animations, so that the network administrator or relevant personnel can understand the data flow in the network at a glance. The display can update the amount of service data to be allocated for each link in real time, ensuring that the network administrator or relevant personnel can grasp the data flow status in the network at any time.
[0053] In this way, the visual display makes the data volume information of complex business data easy to understand, without the need for tedious data analysis and interpretation, and lowers the threshold for understanding. The staff can optimize the bandwidth resources of the link according to the data volume of the business data to be allocated on each link at the i-th moment displayed on the display, so as to ensure the stability and efficiency of the network.
[0054] Based on the above method embodiment, the present application embodiment also provides a link service data distribution device, such as Figure 2 As shown, Figure 2 A schematic diagram of the structure of a link service data distribution device provided in an embodiment of the present application. The device includes: a forwarding module 21 and a control module 22. The functions of each module are as follows: The forwarding module 21 is used to obtain the total bandwidth of each link and the used bandwidth of each link at the i-th moment; The forwarding module 21 is further used to send the total bandwidth of each link and the used bandwidth of each link at the i-th moment to the control module; The control module 22 is used to calculate the remaining bandwidth of each link at the i-th moment according to the total bandwidth of each link and the used bandwidth of each link at the i-th moment; The control module 22 is further used to determine the amount of service data to be allocated on each link at the i-th moment corresponding to the remaining bandwidth of each link at the i-th moment, and send the amount of service data to be allocated on each link at the i-th moment to the forwarding module; The forwarding module 21 is further configured to send service data corresponding to the data volume of the service data to be allocated on each link at the i-th moment to each link.
[0055] Preferably, the control module 22 is specifically configured to obtain the remaining bandwidth of each link at the i-th moment according to the following formula:
[0056] in, is the remaining bandwidth of each link at the i-th moment, is the total bandwidth of each link, is the used bandwidth of each link at the i-th moment.
[0057] Preferably, the device further comprises a timing module (not shown in the figure), the timing module being used to send a startup information collection instruction to the forwarding module every preset time period; The forwarding module 21 is further configured to obtain the total bandwidth of each link and the used bandwidth of each link at the i-th moment according to the startup information collection instruction if the forwarding module receives the startup information collection instruction.
[0058] Preferably, the forwarding module 21 is further configured to send a communication failure alarm to the control module if the forwarding module does not receive the instruction to start information collection.
[0059] Preferably, the device further comprises a display (not shown in the figure); The control module 22 is further configured to send the remaining bandwidth of each link at the i-th moment to the display; The display is used to visualize the remaining bandwidth of each link at the i-th moment.
[0060] Preferably, the control module 22 is used to send the data volume of the service data to be allocated for each link at the i-th moment to the display; The display is also used to visually display the data volume of the service data to be allocated for each link at the i-th moment.
[0061] The link service data allocation device provided in the embodiment of the present application has the same technical features as the link service data allocation method provided in the above embodiment, so it can also solve the same technical problems and achieve the same technical effects.
[0062] The present application also provides a computing device. Figure 3 As shown, this figure is a schematic diagram of a computing device provided in an embodiment of the present application, and the computing device 400 includes a bus 401, a processor 402, a communication interface 403 and a memory 404. The processor 402, the memory 404 and the communication interface 403 communicate with each other through the bus 401.
[0063] The bus 401 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0064] The processor 402 may be any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0065] The communication interface 403 is used for communicating with the outside. The memory 404 may include a volatile memory, such as a random access memory (RAM). The memory 404 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid state drive (SSD).
[0066] The memory 404 stores executable codes, and the processor 402 executes the executable codes to perform the aforementioned link service data allocation method.
[0067] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the above-mentioned link service data allocation method.
[0068] The embodiment of the present application further provides a computer program product, which includes one or more computer instructions. When the computer instructions are loaded and executed on a computing device, the process or function described in the embodiment of the present application is generated in whole or in part.
[0069] The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer or data center to another website, computer or data center via wired (e.g., coaxial cable, optical fiber) or wireless (e.g., infrared, wireless, microwave, etc.) means.
[0070] When the computer program product is executed by a computer, the computer executes any of the aforementioned link service data allocation methods. The computer program product may be a software installation package, and when any of the aforementioned link service data allocation methods is needed, the computer program product may be downloaded and executed on a computer.
[0071] The descriptions of the processes or structures corresponding to the above-mentioned figures have different emphases. For parts that are not described in detail in a certain process or structure, please refer to the relevant descriptions of other processes or structures.
[0072] The above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application.
Claims
1. A link service data allocation method, characterized in that: The load balancing device includes a forwarding module and a control module, and the method includes: The forwarding module obtains the total bandwidth of each link and the used bandwidth of each link at the i-th moment; The forwarding module sends the total bandwidth of each link and the used bandwidth of each link at the i-th moment to the control module; The control module calculates the remaining bandwidth of each link at the i-th moment according to the total bandwidth of each link and the used bandwidth of each link at the i-th moment; The control module determines the amount of service data to be allocated corresponding to the remaining bandwidth of each link at the i-th moment; The control module sends the data volume of the service data to be allocated for each link at the i-th moment to the forwarding module; The forwarding module sends service data corresponding to the data volume of the service data to be allocated on each link at the i-th moment to each link.
2. The link service data allocation method according to claim 1, characterized in that: The control module calculates the remaining bandwidth of each link at the i-th moment according to the total bandwidth of each link and the used bandwidth of each link at the i-th moment, comprising: The calculation formula for the remaining bandwidth of each link at the i-th moment is as follows: in, is the remaining bandwidth of each link at the i-th moment, is the total bandwidth of each link, is the used bandwidth of each link at the i-th moment.
3. The link service data allocation method according to claim 1, characterized in that: The load balancing device further includes a timing module, and the method further includes: The timing module sends a startup information collection instruction to the forwarding module every preset time period; If the forwarding module receives the startup information collection instruction, the forwarding module obtains the total bandwidth of each link and the used bandwidth of each link at the i-th moment according to the startup information collection instruction.
4. The link service data allocation method according to claim 3, characterized in that: The method further comprises: If the forwarding module does not receive the startup information collection instruction, the forwarding module sends a communication failure alarm to the control module.
5. The link service data allocation method according to claim 1, characterized in that: The load balancing device further includes a display, and the method further includes: The control module sends the remaining bandwidth of each link at the i-th moment to the display; The display visualizes the remaining bandwidth of each link at the i-th moment.
6. The link service data allocation method according to claim 5, characterized in that: The method further comprises: The control module sends the data volume of the service data to be allocated of each link at the i-th moment to the display; The display visually displays the data volume of the service data to be allocated for each link at the i-th moment.
7. A link service data distribution device, characterized in that: The device comprises a forwarding module and a control module; The forwarding module is used to obtain the total bandwidth of each link and the used bandwidth of each link at the i-th moment; The forwarding module is further used to send the total bandwidth of each link and the used bandwidth of each link at the i-th moment to the control module; The control module is used to calculate the remaining bandwidth of each link at the i-th moment according to the total bandwidth of each link and the used bandwidth of each link at the i-th moment; The control module is further used to determine the data volume of the service data to be allocated corresponding to the remaining bandwidth of each link at the i-th moment, and send the data volume of the service data to be allocated for each link at the i-th moment to the forwarding module; The forwarding module is further used to send service data corresponding to the data volume of the service data to be allocated on each link at the i-th moment to each link.
8. A computing device, characterized in that including memory and processor; One or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the computing device executes the method as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method according to any one of claims 1 to 6.
10. A computer program product, characterized in that The computer program product comprises one or more computer instructions. When the computer instructions are executed by a computer, the computer performs the method according to any one of claims 1 to 6.