CN116318554A - Network transmission method and device - Google Patents

Network transmission method and device Download PDF

Info

Publication number
CN116318554A
CN116318554A CN202310301078.6A CN202310301078A CN116318554A CN 116318554 A CN116318554 A CN 116318554A CN 202310301078 A CN202310301078 A CN 202310301078A CN 116318554 A CN116318554 A CN 116318554A
Authority
CN
China
Prior art keywords
target
transmission
transmission path
target message
bandwidth
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310301078.6A
Other languages
Chinese (zh)
Inventor
颜虹
袁福利
陈翔
任长雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202310301078.6A priority Critical patent/CN116318554A/en
Publication of CN116318554A publication Critical patent/CN116318554A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0015Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application provides a network transmission method and device, wherein the method comprises the following steps: receiving a target message sent by a source server, and determining a multi-item target transmission path of the target message through a target server address corresponding to the target message, wherein the target transmission path represents a transmission path of the target message from a relay server to a target server; determining the priority of a multi-label transmission path; and determining the transmission strategy of the target message according to the priority of the multi-entry target transmission path, the bandwidth required by the target message transmission and the residual bandwidth of the multi-entry target transmission path. According to the method and the device, the technical problem that the transmission efficiency is low due to the fact that the transmission strategy is determined only by means of the preset determined transmission path priority in the network transmission process is solved.

Description

Network transmission method and device
Technical Field
The embodiment of the application relates to the technical field of network transmission, in particular to a network transmission method and device.
Background
In the related art, the static route does not need to exchange a routing protocol, the routing protocol does not occupy network bandwidth, the security of the network is high, and for medium-sized and small-sized network topologies or network topologies with relatively fixed topologies, people use the common static route. And after the static route configuration at present, the service flow is forwarded according to the configured route, whether the forwarding process is smooth is not concerned, and the forwarding path cannot be automatically adjusted according to the network condition when the packet loss condition exists.
Disclosure of Invention
The embodiment of the application provides a network transmission method and device, which at least solve the technical problem of low transmission efficiency caused by determining a transmission strategy only by means of a preset determined transmission path priority in the network transmission process.
According to an embodiment of the present application, there is provided a network transmission method, including: receiving a target message sent by a source server, and determining a multi-item target transmission path of the target message through a target server address corresponding to the target message, wherein the target transmission path represents a transmission path of the target message from a relay server to a target server; determining the priority of a multi-label transmission path; and determining the transmission strategy of the target message according to the priority of the multi-entry target transmission path, the bandwidth required by the target message transmission and the residual bandwidth of the multi-entry target transmission path.
In one exemplary embodiment, determining a transmission policy of a target packet according to a priority of a multi-label transmission path, a bandwidth required for transmission of the target packet, and a remaining bandwidth of the multi-label transmission path includes: under the condition that the priority of the multi-label transmission paths is the same, determining a first transmission strategy of the target message based on the bandwidth required by the target message transmission and the residual bandwidth of the multi-label transmission paths; and under the condition that the priorities of the multi-entry target transmission paths are different, determining a second transmission strategy of the target message based on the priorities of the multi-entry target transmission paths, the bandwidth required by the target message transmission and the residual bandwidth of the multi-entry target transmission paths.
In one exemplary embodiment, determining a first transmission policy for a target message based on a bandwidth required for transmission of the target message and a remaining bandwidth of a multi-label transmission path includes: comparing the bandwidth required by the target message transmission with the residual bandwidths of the multiple target transmission paths, and counting a first comparison result; a first transmission policy is determined based on the first comparison result.
In one exemplary embodiment, determining a first transmission policy based on the first comparison result includes: determining a first transmission strategy to evenly distribute the target message to the multi-item target transmission paths and send the target message to a target server under the condition that the first comparison result indicates that the bandwidth required by the target message transmission is smaller than the residual bandwidth of each item target transmission path in the multi-item target transmission paths; determining a first transmission strategy to select a target transmission path with the largest residual bandwidth from the multi-item target transmission paths to send the target message under the condition that the first comparison result indicates that the bandwidth required for transmitting the target message is larger than the residual bandwidth of a first number of target transmission paths in the multi-item target transmission paths and smaller than the residual bandwidth of a second number of target transmission paths; and under the condition that the first comparison result indicates that the bandwidth required by the target message is larger than the residual bandwidth of each target transmission path in the multi-target transmission path, determining a first transmission strategy to distribute the bandwidth required by the target message transmission according to the ratio between the residual bandwidths of each target transmission path in the multi-target transmission path so as to send the target message.
In one exemplary embodiment, determining the second transmission policy of the target message based on the priority of the multi-label transmission path, the bandwidth required for transmission of the target message, and the remaining bandwidth of the multi-label transmission path includes: comparing the bandwidth required by the target message transmission with the residual bandwidths of the multiple target transmission paths, and counting a second comparison result; and determining a second transmission strategy based on the second comparison result and the priority of the multi-label transmission path.
In an exemplary embodiment, determining the second transmission policy based on the second comparison result and the priority of the multi-label transmission path includes: determining a second transmission strategy to select a target transmission path with highest priority from the multi-item target transmission paths to send the target message under the condition that the second comparison result indicates that the bandwidth required for transmitting the target message is smaller than the residual bandwidth of each item target transmission path in the multi-item target transmission paths; determining a second transmission strategy to select a target transmission path with the largest residual bandwidth from the multi-item target transmission paths to send the target message under the condition that the second comparison result indicates that the bandwidth required by the target message transmission is larger than the residual bandwidth of the target transmission path with the higher priority than the preset level in the multi-item target transmission path and smaller than the residual bandwidth of the target transmission path with the lower priority than the preset level in the multi-item target transmission path; and under the condition that the second comparison result indicates that the bandwidth required by the target message is larger than the residual bandwidth of each target transmission path in the multi-target transmission path, determining a second transmission strategy to distribute the bandwidth required by the target message according to the ratio between the residual bandwidths of each target transmission path in the multi-target transmission path.
In one exemplary embodiment, after determining the transmission policy of the target packet according to the priority of the multi-label transmission path, the bandwidth required for transmission of the target packet, and the remaining bandwidth of the multi-label transmission path, the method includes: and acquiring the transmission rate of the target message according to a preset acquisition period, and re-determining the transmission strategy of the target message under the condition that the transmission rate of the target message is lower than the preset transmission rate.
According to another embodiment of the present application, there is provided a network transmission apparatus including: the receiving module is used for receiving the target message sent by the source server and determining a multi-item-destination transmission path of the target message through a target server address corresponding to the target message, wherein the target transmission path represents a transmission path of the target message from the relay server to the target server; the determining module is used for determining the priority of the multi-label transmission path; and the transmission module is used for determining the transmission strategy of the target message according to the priority of the multi-entry target transmission path, the bandwidth required by the target message transmission and the residual bandwidth of the multi-entry target transmission path.
According to a further embodiment of the present application, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the present application, there is also provided an electronic device comprising a memory, in which a computer program is stored, and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the method and the device for transmitting the target message, the transmission strategy of the target message is determined according to the priority of the multi-item target transmission path, the bandwidth required by the target message transmission and the residual bandwidth of the multi-item target transmission path, so that the transmission path of the target message can be flexibly adjusted, and the effect of flexibly adjusting the transmission path in the network transmission process to provide transmission efficiency is achieved.
Drawings
Fig. 1 is a hardware configuration block diagram of a computer terminal of a network transmission method according to an embodiment of the present application;
fig. 2 is a flow chart of a network transmission method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a network topology according to an embodiment of the present application;
fig. 4 is a block diagram of a network transmission apparatus according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a computer terminal or similar computing device. Taking the example of running on a computer terminal, fig. 1 is a block diagram of a hardware structure of a computer terminal of a network transmission method according to an embodiment of the present application. As shown in fig. 1, the computer terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the computer terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the configuration shown in fig. 1 is merely illustrative and is not intended to limit the configuration of the computer terminal described above. For example, the computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a network transmission method in the embodiment of the present application, and the processor 102 executes the computer program stored in the memory 104, thereby performing various functional applications and data processing, that is, implementing the method described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the computer terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In this embodiment, a network transmission method running on the computer terminal is provided, and fig. 2 is a flowchart according to an embodiment of the present application, as shown in fig. 2, where the flowchart includes the following steps:
step S202, receiving a target message sent by a source server, and determining a multi-item-destination transmission path of the target message through a target server address corresponding to the target message, wherein the target transmission path represents a transmission path of the target message from a relay server to a target server;
step S204, determining the priority of a multi-label transmission path;
step S206, determining the transmission strategy of the target message according to the priority of the multi-label transmission path, the bandwidth required by the target message transmission and the residual bandwidth of the multi-label transmission path.
In the network transmission process, the relay server receives the target message sent by the source server, and the relay server passes through the transceiver device in the target transmission path, for example: the switch forwards to the target server.
In step S204, the priority of the multi-label transmission path, in an alternative manner, to a network segment of an entry, for example: in the case of a target server with multiple static routes, the conventional static path selection scheme:
1. the static route to an entry can be set with its priority and label value, the priority typically being the preferred criterion for static route. The configuration of the priority is generally based on the link bandwidth and the hop count to the destination network segment;
2. routes of the same priority as the plurality of static routes to the destination network segment, referred to as equivalent routes, the equivalent routes evenly distributing bandwidth to the destination network segment;
3. when the priorities of the static routes to the destination network segment are different, called non-equivalent routes, a route with a high priority is selected in the related art, and a route with a low priority is activated only in the case that the route with the high priority fails.
It can be understood that the priority configuration parameter of the static route is considered in the conventional static route selection scheme, and in the case of the configured static route, the target packet does not switch the forwarding path any more, and does not consider the actual traffic situation in the network. When the selected static route path is just occupied by other business to cause congestion, the unselected static route link has residual bandwidth, thus the packet loss caused by unreasonable forwarding route selection is liable to cause the technical problem of low transmission efficiency.
According to the method, the final transmission path is comprehensively determined according to the residual bandwidth in the actual transmission path, the bandwidth required by the target message transmission and the priorities of the transmission paths, so that the network bandwidth is more fully utilized, and the transmission efficiency is improved.
It should be noted that in step 206, the transmission policy of the target packet is used to determine transmission rules, for example: selecting a proper path from a plurality of target transmission paths to transmit a target message, and the like.
According to the method and the device for transmitting the target message, the transmission strategy of the target message is determined according to the priority of the multi-item target transmission path, the bandwidth required by the target message transmission and the residual bandwidth of the multi-item target transmission path, so that the transmission path of the target message can be flexibly adjusted, and the effect of flexibly adjusting the transmission path in the network transmission process to provide transmission efficiency is achieved.
Steps S202 to S206 are specifically described below by way of examples.
In step S206, the transmission policy of the target message is determined by the following method, which specifically includes: determining a first transmission strategy of the target message based on the bandwidth required by the target message transmission and the residual bandwidth of the multi-label transmission path under the condition that the priorities of the multi-label transmission paths are the same; and under the condition that the priorities of the multi-entry target transmission paths are different, determining a second transmission strategy of the target message based on the priorities of the multi-entry target transmission paths, the bandwidth required by the target message transmission and the residual bandwidth of the multi-entry target transmission paths.
In the first case (the priority of the multi-label transmission paths is the same), it means that the multi-label transmission paths (static routes) are equivalent, and in the second case (the priority of the multi-label transmission paths is different), it means that the multi-label transmission paths (static routes) are non-equivalent.
In the first case, only the first transmission strategy of the target message is determined according to the bandwidth required by the transmission of the target message and the residual bandwidth of the multi-entry transmission path; in the second case, a second transmission policy of the target packet needs to be determined based on the priority of the multi-label transmission path, the bandwidth required for transmission of the target packet, and the remaining bandwidth of the multi-label transmission path.
The steps specifically include: comparing the bandwidth required by the target message transmission with the residual bandwidth of the multi-item target transmission path, and counting a first comparison result; determining the first transmission strategy based on the first comparison result; comparing the bandwidth required by the target message transmission with the residual bandwidth of the multi-item target transmission path, and counting a second comparison result; and determining the second transmission strategy based on the second comparison result and the priority of the multi-label transmission path.
It can be appreciated that the first comparison result and the second comparison result are both used to indicate the comparison result of the bandwidth required for the transmission of the target message and the remaining bandwidth of the multi-target transmission path.
In an optional manner, when the first comparison result indicates that the bandwidth required for transmitting the target message is smaller than the remaining bandwidth of each target transmission path in the multi-target transmission path, determining the first transmission policy to evenly distribute the target message to the multi-target transmission path and send the target message to a target server; determining the first transmission strategy to select a target transmission path with the largest residual bandwidth from the multi-item target transmission paths to send the target message under the condition that the first comparison result indicates that the bandwidth required for transmitting the target message is larger than the residual bandwidth of a first number of target transmission paths in the multi-item target transmission paths and smaller than the residual bandwidth of a second number of target transmission paths; and under the condition that the first comparison result indicates that the bandwidth required by the target message is larger than the residual bandwidth of each target transmission path in the multi-target transmission path, determining the first transmission strategy to distribute the bandwidth required by the target message transmission according to the ratio of the residual bandwidths of each target transmission path in the multi-target transmission path so as to send the target message.
In another optional manner, when the second comparison result indicates that the bandwidth required for transmitting the target packet is smaller than the remaining bandwidth of each target transmission path in the multi-target transmission paths, determining the second transmission policy to select a target transmission path with the highest priority from the multi-target transmission paths to transmit the target packet; determining that the second transmission strategy is to select a target transmission path with the largest residual bandwidth from the multi-item target transmission paths to transmit the target message under the condition that the second comparison result indicates that the bandwidth required for transmitting the target message is larger than the residual bandwidth of the target transmission path with the higher priority than the preset level in the multi-item target transmission paths and smaller than the residual bandwidth of the target transmission path with the lower priority than the preset level in the multi-item target transmission paths; and under the condition that the second comparison result indicates that the bandwidth required by the target message is larger than the residual bandwidth of each target transmission path in the multi-target transmission path, determining the second transmission strategy to distribute the bandwidth required by the target message according to the ratio of the residual bandwidths of each target transmission path in the multi-target transmission path.
After determining the transmission strategy of the target message according to the priority of the multi-item target transmission path, the bandwidth required by the target message transmission and the residual bandwidth of the multi-item target transmission path, the transmission rate of the target message can be acquired according to a preset acquisition period, and the transmission strategy of the target message is redetermined under the condition that the transmission rate of the target message is lower than the preset transmission rate.
Specifically, when a path selected by the residual bandwidth mode before has congestion, the residual bandwidths of a plurality of target paths need to be checked again, and the forwarding paths are reselected, so that the specific transmission strategy is consistent with the method and is not repeated herein.
In some embodiments of the present application, in the case of an equal cost path:
case 1: the required rate (bandwidth) of the data message (target message) to be forwarded is smaller (smaller than the residual bandwidth of each link of the equivalent path), and then the data message to be forwarded is equally divided on each equivalent path according to the equivalent path forwarding principle.
Case 2: the data message rate to be forwarded is larger (the data message rate is larger than the residual bandwidth of some equivalent paths but smaller than the bandwidth of some equivalent links), then a link with the largest residual bandwidth path is selected, and the rest paths can not be used for forwarding the service.
Case 3: the data message to be forwarded has a very high rate, or the residual bandwidth of all forwarding paths is not much. (greater than the residual bandwidth of all equivalent links), then the message forwarding rate is proportionally distributed according to the ratio of the residual bandwidth of the links.
Case 4: when there is a link congestion in the path previously selected by the residual bandwidth method, the residual bandwidth of the link needs to be checked again at this time, and the forwarding path is reselected (rerouting continues with reference to cases 1, 2 and 3).
In some embodiments of the present application, the non-equivalent routing case:
case 5: the data message rate required to be forwarded is smaller (smaller than the residual bandwidth of each link), and then the path with the highest priority is selected for the target message required to be forwarded according to the static route selection principle.
Case 6: the data message rate to be forwarded is larger (larger than the residual bandwidth of the high-priority path but smaller than the residual bandwidth of some low-priority links), then a link with the largest residual bandwidth path is selected at this time, and the rest paths can not be used for forwarding the service.
Case 7: the data message to be forwarded has a very high rate, or the residual bandwidth of all forwarding paths is not much. (greater than the residual bandwidth of all links), then the message forwarding rate is proportionally distributed according to the ratio of the residual bandwidth of the links.
Case 8: when a path selected by the residual bandwidth mode forwards for a period of time, if a link congestion occurs, the residual bandwidth of the link needs to be checked again at the moment, and a forwarding path is reselected (rerouting continues to refer to cases 5, 6 and 7); if no link congestion condition occurs, the path previously selected by the residual bandwidth mode is kept.
Fig. 3 shows a schematic diagram of a network topology, as shown in fig. 3, where a plurality of virtual machines VM1, VM2 … VM31, a plurality of relay servers and a plurality of switches are respectively configured in different network segments.
In an exemplary embodiment, after the target message is sent to the relay server TOR1 by VM1, the static routing table is checked on TOR1, and paths to the target network segment are TOR1- > SW1 and TOR1- > SW2. Since the bandwidths of TOR1 to SW1 and TOR1 to SW2 are both 40G, the priorities of both routes are set to be the same, for example, 1, and at this time, the two static routes TOR1- > SW1 and TOR1- > SW2 are equivalent routes. However, the optimal route forwarded from VM1 to VM21 also needs to be calculated by judging the traffic on the actual network, for example: VM1 through VM21 require 10Gbps bandwidth, the TOR1- > SW1 path is now already occupied by other traffic for 38Gbps (40G-38G=2G remaining), and the TOR1- > SW2 path is not occupied by any other traffic (40 Gbps remaining). Then the routing scheme in case 2 of the equivalent routing is adopted at this time, and the path TOR1- > SW2 is selected as the optimal path for forwarding the traffic. After a period of time, if other traffic of the path TOR1- > SW2 increases to affect the traffic forwarding from VM1 to VM21, then actively checking the bandwidth surplus condition of the path TOR1- > SW1, for example, when the bandwidth surplus condition of 4Gbps is left, and allocating the traffic from VM1 to VM21 to the path TOR1- > SW 1.
In one exemplary embodiment, VM21 to VM1 forwarding flow: after the message is forwarded to TOR2 by VM21, the static routing table is checked on TOR2, and the paths of the checked destination network segments are TOR2- > SW1 and TOR2- > SW2. Since the bandwidths of TOR2 to SW1 and TOR2 to SW2 are 40G and 100G, respectively, the priority settings for setting the two routes are different, for example, TOR2 to SW1 are set to 3, TOR2 to SW2 are set to 1, and at this time, the two static routes TOR2- > SW1 and TOR2- > SW2 are non-equivalent static routes. However, the optimal route forwarded by VM21 to VM1 also requires determining the traffic on the actual network to calculate:
for example, VM21 to VM1 requires 10Gbps bandwidth, the TOR2- > SW1 path is now already occupied 34Gbps by other traffic (40G-34 G=6G remaining), and the TOR2- > SW2 path is occupied 96G by other traffic (100G-96 G=4G remaining). Then according to the non-equivalent path case 3 (divided according to the ratio of the residual bandwidths), the residual bandwidths are 3:2 at the moment, and the forwarding rate of the path TOR2- > SW1 is selected to be [ 3/(3+2) ]x10g=6g at the moment. At this time, TOR2- > SW1 is selected and this path forwards [ 2/(3+2) ], 10g=4g. After a period of time, if other services of the TOR2- > SW1 path are increased, and service forwarding from the VM21 to the VM1 is affected, at this time, the bandwidth residual condition of the TOR2- > SW2 path is actively checked, and the forwarding path is reselected according to the residual bandwidth condition.
Fig. 4 is a block diagram of a network transmission method apparatus according to an embodiment of the present application, as shown in fig. 4, including: a receiving module 40, configured to receive a target packet sent by a source server, and determine a multi-entry destination transmission path of the target packet according to a destination server address corresponding to the target packet, where the destination transmission path represents a transmission path of the target packet from a relay server to the destination server; a determining module 42, configured to determine a priority of the multi-label transmission path; and a transmission module 44, configured to determine a transmission policy of the target packet according to the priority of the multi-label transmission path, the bandwidth required for transmitting the target packet, and the remaining bandwidth of the multi-label transmission path.
A transmission module 44 comprising: a policy sub-module;
a policy sub-module, configured to determine, when priorities of the multiple-entry transmission paths are the same, a first transmission policy of the target packet based on a bandwidth required for transmission of the target packet and a remaining bandwidth of the multiple-entry transmission path; and under the condition that the priorities of the multi-entry target transmission paths are different, determining a second transmission strategy of the target message based on the priorities of the multi-entry target transmission paths, the bandwidth required by the target message transmission and the residual bandwidth of the multi-entry target transmission paths.
A policy sub-module comprising: a first policy unit and a second policy unit;
the first strategy unit is used for comparing the bandwidth required by the target message transmission with the residual bandwidth of the multi-item target transmission path and counting a first comparison result; and determining the first transmission strategy based on the first comparison result.
A first policy unit comprising: a first policy subunit and a second policy subunit;
a first policy subunit, configured to determine, when the first comparison result indicates that the bandwidth required for transmitting the target packet is smaller than the remaining bandwidth of each target transmission path in the multiple target transmission path, that the first transmission policy is to evenly distribute the target packet to the multiple target transmission paths and send the target packet to a target server; determining the first transmission strategy to select a target transmission path with the largest residual bandwidth from the multi-item target transmission paths to send the target message under the condition that the first comparison result indicates that the bandwidth required for transmitting the target message is larger than the residual bandwidth of a first number of target transmission paths in the multi-item target transmission paths and smaller than the residual bandwidth of a second number of target transmission paths; and under the condition that the first comparison result indicates that the bandwidth required by the target message is larger than the residual bandwidth of each target transmission path in the multi-target transmission path, determining the first transmission strategy to distribute the bandwidth required by the target message transmission according to the ratio of the residual bandwidths of each target transmission path in the multi-target transmission path so as to send the target message.
The second policy unit is used for comparing the bandwidth required by the target message transmission with the residual bandwidth of the multi-item target transmission path and counting a second comparison result; and determining the second transmission strategy based on the second comparison result and the priority of the multi-label transmission path.
A second policy subunit, configured to determine, when the second comparison result indicates that the bandwidth required for transmitting the target packet is smaller than the remaining bandwidth of each target transmission path in the multiple target transmission paths, that the second transmission policy is to select a target transmission path with the highest priority from the multiple target transmission paths to transmit the target packet; determining that the second transmission strategy is to select a target transmission path with the largest residual bandwidth from the multi-item target transmission paths to transmit the target message under the condition that the second comparison result indicates that the bandwidth required for transmitting the target message is larger than the residual bandwidth of the target transmission path with the higher priority than the preset level in the multi-item target transmission paths and smaller than the residual bandwidth of the target transmission path with the lower priority than the preset level in the multi-item target transmission paths; and under the condition that the second comparison result indicates that the bandwidth required by the target message is larger than the residual bandwidth of each target transmission path in the multi-target transmission path, determining the second transmission strategy to distribute the bandwidth required by the target message according to the ratio of the residual bandwidths of each target transmission path in the multi-target transmission path.
The transmission module 44 further includes: adjusting the sub-module;
and the adjustment sub-module is used for acquiring the transmission rate of the target message according to a preset acquisition period, and re-determining the transmission strategy of the target message under the condition that the transmission rate of the target message is lower than the preset transmission rate.
According to the network transmission device, the transmission strategy of the target message is determined according to the priority of the multi-item target transmission path, the bandwidth required by the target message transmission and the residual bandwidth of the multi-item target transmission path, so that the transmission path of the target message can be flexibly adjusted, and the effect of flexibly adjusting the transmission path in the network transmission process to provide transmission efficiency is achieved.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the above network transmission method when run.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
Embodiments of the present application also provide a computer device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the computer device may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application should be included in the protection scope of the present application.

Claims (10)

1. A network transmission method, comprising:
receiving a target message sent by a source server, and determining a multi-item-destination transmission path of the target message through a target server address corresponding to the target message, wherein the target transmission path represents a transmission path between the target message and a relay server;
determining the priority of the multi-label transmission path;
and determining the transmission strategy of the target message according to the priority of the multi-label transmission path, the bandwidth required by the target message transmission and the residual bandwidth of the multi-label transmission path.
2. The method of claim 1, wherein determining the transmission policy of the target message based on the priority of the multi-label transmission path, the bandwidth required for transmission of the target message, and the remaining bandwidth of the multi-label transmission path comprises:
determining a first transmission strategy of the target message based on the bandwidth required by the target message transmission and the residual bandwidth of the multi-label transmission path under the condition that the priorities of the multi-label transmission paths are the same;
and under the condition that the priorities of the multi-entry target transmission paths are different, determining a second transmission strategy of the target message based on the priorities of the multi-entry target transmission paths, the bandwidth required by the target message transmission and the residual bandwidth of the multi-entry target transmission paths.
3. The method of claim 2, wherein determining the first transmission policy for the target message based on the bandwidth required for transmission of the target message and the remaining bandwidth of the multi-label transmission path comprises:
comparing the bandwidth required by the target message transmission with the residual bandwidth of the multi-item target transmission path, and counting a first comparison result;
and determining the first transmission strategy based on the first comparison result.
4. The method of claim 3, wherein determining the first transmission policy based on the first comparison result comprises:
determining the first transmission strategy to distribute the target message to the multi-item target transmission path evenly and send the target message to a target server under the condition that the first comparison result indicates that the bandwidth required by the target message transmission is smaller than the residual bandwidth of each item target transmission path in the multi-item target transmission path;
determining the first transmission strategy to select a target transmission path with the largest residual bandwidth from the multi-item target transmission paths to send the target message under the condition that the first comparison result indicates that the bandwidth required for transmitting the target message is larger than the residual bandwidth of a first number of target transmission paths in the multi-item target transmission paths and smaller than the residual bandwidth of a second number of target transmission paths;
and under the condition that the first comparison result indicates that the bandwidth required by the target message is larger than the residual bandwidth of each target transmission path in the multi-target transmission path, determining the first transmission strategy to distribute the bandwidth required by the target message transmission according to the ratio of the residual bandwidths of each target transmission path in the multi-target transmission path so as to send the target message.
5. The method of claim 2, wherein determining the second transmission policy for the target message based on the priority of the multi-label transmission path, the bandwidth required for transmission of the target message, and the remaining bandwidth of the multi-label transmission path comprises:
comparing the bandwidth required by the target message transmission with the residual bandwidth of the multi-item target transmission path, and counting a second comparison result;
and determining the second transmission strategy based on the second comparison result and the priority of the multi-label transmission path.
6. The method of claim 5, wherein determining the second transmission policy based on the second comparison and the priority of the multi-label transmission path comprises:
determining the second transmission strategy to select a target transmission path with highest priority from the multi-item target transmission paths to send the target message under the condition that the second comparison result indicates that the bandwidth required for transmitting the target message is smaller than the residual bandwidth of each item target transmission path in the multi-item target transmission paths;
determining that the second transmission strategy is to select a target transmission path with the largest residual bandwidth from the multi-item target transmission paths to transmit the target message under the condition that the second comparison result indicates that the bandwidth required for transmitting the target message is larger than the residual bandwidth of the target transmission path with the higher priority than the preset level in the multi-item target transmission paths and smaller than the residual bandwidth of the target transmission path with the lower priority than the preset level in the multi-item target transmission paths;
and under the condition that the second comparison result indicates that the bandwidth required by the target message is larger than the residual bandwidth of each target transmission path in the multi-target transmission path, determining the second transmission strategy to distribute the bandwidth required by the target message according to the ratio of the residual bandwidths of each target transmission path in the multi-target transmission path.
7. The method according to claim 1, comprising, after determining the transmission policy of the target message according to the priority of the multi-label transmission path, the bandwidth required for the target message transmission, and the remaining bandwidth of the multi-label transmission path:
and acquiring the transmission rate of the target message according to a preset acquisition period, and re-determining the transmission strategy of the target message under the condition that the transmission rate of the target message is lower than the preset transmission rate.
8. A network transmission method apparatus, comprising:
the receiving module is used for receiving a target message sent by a source server and determining a multi-item target transmission path of the target message through a target server address corresponding to the target message, wherein the target transmission path represents a transmission path of the target message from a relay server to the target server;
a determining module, configured to determine a priority of the multi-label transmission path;
and the transmission module is used for determining the transmission strategy of the target message according to the priority of the multi-entry target transmission path, the bandwidth required by the target message transmission and the residual bandwidth of the multi-entry target transmission path.
9. An electronic device comprising a memory and a processor for running a computer program, wherein the device in which the processor is located performs the network transmission method according to any one of claims 1 to 7 by running the computer program.
10. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored computer program, wherein the device in which the computer readable storage medium is located performs the network transmission method according to any one of claims 1 to 7 by running the computer program.
CN202310301078.6A 2023-03-24 2023-03-24 Network transmission method and device Pending CN116318554A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310301078.6A CN116318554A (en) 2023-03-24 2023-03-24 Network transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310301078.6A CN116318554A (en) 2023-03-24 2023-03-24 Network transmission method and device

Publications (1)

Publication Number Publication Date
CN116318554A true CN116318554A (en) 2023-06-23

Family

ID=86795768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310301078.6A Pending CN116318554A (en) 2023-03-24 2023-03-24 Network transmission method and device

Country Status (1)

Country Link
CN (1) CN116318554A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117041106A (en) * 2023-08-28 2023-11-10 河北润博星原科技发展有限公司 Monitoring equipment operation and maintenance management system and method based on Internet of things

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117041106A (en) * 2023-08-28 2023-11-10 河北润博星原科技发展有限公司 Monitoring equipment operation and maintenance management system and method based on Internet of things
CN117041106B (en) * 2023-08-28 2024-02-27 河北润博星原科技发展有限公司 Monitoring equipment operation and maintenance management system and method based on Internet of things

Similar Documents

Publication Publication Date Title
CN106998302B (en) Service flow distribution method and device
CN102771094B (en) Distributed routing framework
CN102763380B (en) For the system and method for routing packets
EP3146682B1 (en) Method and system for managing flows in a network
US20170118108A1 (en) Real Time Priority Selection Engine for Improved Burst Tolerance
CN102792644B (en) For the system and method for routing packets
US7177268B2 (en) Packet distributing device
EP2702731A1 (en) Hierarchical profiled scheduling and shaping
CN112152935B (en) Method and device for determining transmission path
WO2016194089A1 (en) Communication network, communication network management method and management system
CN104995884A (en) Distributed switchless interconnect
JP2017063388A (en) Band control device and band control system
US20170222953A1 (en) User packet forwarding control method and processing node
CN116318554A (en) Network transmission method and device
US20220200901A1 (en) Communications Method and Related Device
CN112152933B (en) Method and device for sending flow
CN113938955B (en) Data transmission method, device, equipment and system
US20200036642A1 (en) System and method for reactive path selection
US20210306267A1 (en) Optimized network latency using in-band telemetry
CN110365580B (en) Service quality scheduling method and device, electronic equipment and computer readable storage medium
CN106209634B (en) Learning method and device of address mapping relation
EP3672171A1 (en) Message transmission method and device
CN116582493A (en) Data center network link selection method and device and electronic equipment
CN111464443A (en) Message forwarding method, device, equipment and storage medium based on service function chain
CN112838992A (en) Message scheduling method and network equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination