[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN118869564A - Message transmission method, device, equipment and computer readable storage medium - Google Patents

Message transmission method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN118869564A
CN118869564A CN202310467879.XA CN202310467879A CN118869564A CN 118869564 A CN118869564 A CN 118869564A CN 202310467879 A CN202310467879 A CN 202310467879A CN 118869564 A CN118869564 A CN 118869564A
Authority
CN
China
Prior art keywords
link
message
transmission
bandwidth
demand
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
CN202310467879.XA
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.)
Beijing Huawei Digital Technologies Co Ltd
Original Assignee
Beijing Huawei Digital Technologies 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 Beijing Huawei Digital Technologies Co Ltd filed Critical Beijing Huawei Digital Technologies Co Ltd
Priority to CN202310467879.XA priority Critical patent/CN118869564A/en
Publication of CN118869564A publication Critical patent/CN118869564A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a message transmission method, a message transmission device, message transmission equipment and a computer readable storage medium, and belongs to the technical field of communication. The method comprises the following steps: acquiring the bandwidth demand of a first link, wherein the first link meets the transmission demands of a first message and a second message, the bandwidth demand is the bandwidth of the first link for transmitting the first message, and the transmission demand of the first message is higher than the transmission demand of the second message; determining a transmission weight corresponding to the first link according to the bandwidth demand, wherein the transmission weight indicates the flow of the second message transmitted by the first link under the condition that the bandwidth demand is met; and transmitting the second message according to the transmission weight through the first link. The transmission weight corresponding to the first link is flexibly adjusted according to the bandwidth demand of the first link so as to clearly determine the flow of the transmitted second message, and the second message is transmitted by reasonably utilizing the first link under the condition of ensuring the transmission demand of the first message, so that the message transmission process is more accurate.

Description

Message transmission method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for packet transmission.
Background
In a network topology, there may be multiple links between two devices that are used to forward a message. The plurality of links may be used to transmit messages, the transmitted messages including a first message and a second message, the transmission requirement of the first message being higher than the transmission requirement of the second message. Therefore, how to transmit the message becomes a problem to be solved.
Disclosure of Invention
The application provides a message transmission method, a device, equipment and a computer readable storage medium, which are used for transmitting messages, and the technical scheme is as follows:
in a first aspect, a method for transmitting a message is provided, where the method includes: acquiring the bandwidth demand of a first link, wherein the first link meets the transmission demands of a first message and a second message, the bandwidth demand is the bandwidth of the first link for transmitting the first message, and the transmission demand of the first message is higher than the transmission demand of the second message; determining a transmission weight corresponding to the first link according to the bandwidth demand, wherein the transmission weight indicates the flow of the second message transmitted by the first link under the condition that the bandwidth demand is met; and transmitting the second message according to the transmission weight through the first link.
According to the bandwidth demand of the first link, the transmission weight corresponding to the first link is flexibly adjusted, and the flow of the second message transmitted is definitely determined according to the transmission weight, so that the bandwidth required by the first message transmitted in the first link is deducted in the process of determining the flow of the second message, the occupied bandwidth of the second message in the first link is reduced, the second message is transmitted by reasonably utilizing the first link under the condition that the transmission task of the first message is met, the message transmission process is more accurate, and the reliable transmission of the first message is ensured.
In one possible implementation manner, determining the transmission weight corresponding to the first link according to the bandwidth requirement includes: acquiring the total bandwidth of a second link, wherein the second link and the first link are links between transmission equipment for transmitting a first message and a second message, and the second link meets the transmission requirement of the second message and does not meet the transmission requirement of the first message; and determining the transmission weight according to the total bandwidth and the bandwidth demand of the second link. The second message can be transmitted because the second link meets the transmission requirement of the second message, and the transmission capacities of a plurality of links connected with the transmission equipment for transmitting the second message can be determined according to the total bandwidth and the bandwidth requirement of the second message, so that the transmission weights of the first links are determined by combining the transmission capacities of the plurality of links, and the reasonable distribution of the transmission tasks of the second message is realized.
In one possible implementation, determining the transmission weight according to the total bandwidth and the bandwidth requirement of the second link includes: determining the residual bandwidth of the first link according to the bandwidth demand; adding the residual bandwidth of the first link and the total bandwidth of the second link, and obtaining a bandwidth sum according to the adding result; and determining the transmission weight according to the ratio of the residual bandwidth to the bandwidth sum of the first link. The remaining bandwidth of the first link indicates a transmission capability of the first link to transmit the second message, and the accuracy of the transmission weights determined according to the transmission capability of the first link and the transmission capability of the plurality of links of the transmission device is high.
In one possible implementation manner, the adding the remaining bandwidth of the first link to the total bandwidth of the second link, and obtaining the bandwidth sum according to the adding result, further includes: determining a reference weight corresponding to the second link according to the ratio of the total bandwidth and the sum of bandwidths of the second link; and transmitting a second message according to the reference weight through a second link. The bandwidth sum calculated in the process of determining the transmission weight can also be used for determining the reference weight of the second link, and the utilization rate of the bandwidth sum is high. And, the bandwidth requirement of the first link also affects the flow of the second message transmitted by the second link, and the first link and the second link both transmit the second message according to the corresponding weight, so as to realize the equal cost multi-path routing (weight equal cost multi-path, WECMP) according to the weight.
In one possible implementation manner, after determining the transmission weight corresponding to the first link according to the bandwidth requirement, the method further includes: and updating the transmission weight of the first link according to the change condition of the bandwidth used by the first link. Along with the change of the bandwidth used by the first link, the transmission weight of the first link can be flexibly updated, and the transmission of the second message can be adjusted in time according to the condition of the first link for transmitting the first message, so that the flexibility is high.
In one possible implementation, the first message includes a link identifier, and acquiring the bandwidth requirement of the first link includes: and under the condition that the link identifier included in the first message is the link identifier of the first link, determining the bandwidth demand according to the bandwidth used by the first link for transmitting the first message. The bandwidth demand can be determined by counting the bandwidth used by the first message transmitted by the current first link, and the determination process of the bandwidth demand is simple and easy to realize.
In one possible implementation, obtaining the bandwidth requirement of the first link includes: and receiving the bandwidth used by the first link for transmitting the first message and sent by the transmission equipment, and determining the bandwidth demand according to the bandwidth used by the first link for transmitting the first message, wherein the transmission equipment is connected with the first link. The device for executing the message transmission method provided by the application can be transmission equipment or control equipment connected with the transmission equipment, and has high universality. And the process of acquiring the bandwidth demand by the transmission equipment or the control equipment is simple and easy to realize.
In a second aspect, a message transmission apparatus is provided, including: the acquisition module is used for acquiring the bandwidth demand of the first link, wherein the first link meets the transmission demand of the first message and the second message, the bandwidth demand is the bandwidth of the first link for transmitting the first message, and the transmission demand of the first message is higher than the transmission demand of the second message; the determining module is used for determining the transmission weight corresponding to the first link according to the bandwidth demand, and the transmission weight indicates the flow of the second message to be transmitted when the first link meets the bandwidth demand; and the transmission module is used for transmitting the second message through the first link according to the transmission weight.
In one possible implementation manner, the determining module is configured to obtain a total bandwidth of a second link, where the second link and the first link are links between transmission devices that transmit the first message and the second message, and the second link meets a transmission requirement of the second message and does not meet a transmission requirement of the first message; and determining the transmission weight according to the total bandwidth and the bandwidth demand of the second link.
In one possible implementation, the determining module is configured to determine a remaining bandwidth of the first link according to the bandwidth requirement; adding the residual bandwidth of the first link and the total bandwidth of the second link, and obtaining a bandwidth sum according to the adding result; and determining the transmission weight according to the ratio of the residual bandwidth and the bandwidth sum of the first link.
In one possible implementation manner, the determining module is further configured to determine a reference weight corresponding to the second link according to a ratio of a total bandwidth and a sum of bandwidths of the second link; and the transmission module is also used for transmitting a second message through a second link according to the reference weight.
In a possible implementation manner, the determining module is further configured to update the transmission weight of the first link according to a change condition of the bandwidth used by the first link.
In one possible implementation manner, the first message includes a link identifier, and the obtaining module is configured to determine, when the link identifier included in the first message is the link identifier of the first link, a bandwidth requirement according to a bandwidth used for transmitting the first message by the first link.
In one possible implementation manner, the acquiring module is configured to receive a bandwidth used by the first link for transmitting the first packet, where the bandwidth is sent by the transmitting device, and determine the bandwidth requirement according to the bandwidth used by the first link for transmitting the first packet, where the transmitting device is connected to the first link.
In a third aspect, a message transmission device is provided, the device including a processor; the processor is configured to load and execute at least one instruction to cause the message transmission device to implement the first aspect or the message transmission method in any one of the possible implementation manners of the first aspect.
In one possible implementation, the apparatus further includes a memory coupled to the processor, the memory for storing at least one instruction.
In a fourth aspect, a computer readable storage medium is provided, in which at least one instruction is stored, the instruction being loaded and executed by a processor to implement the method of message transmission in the first aspect or any one of the possible implementation manners of the first aspect.
In a fifth aspect, there is provided a computer program (product) comprising computer programs/instructions which are executed by a processor to cause the computer to implement the method of message transmission of the first aspect or any one of the possible implementations of the first aspect.
In a sixth aspect, there is provided a communication apparatus comprising: a transceiver, a memory, and a processor. Wherein the transceiver, the memory and the processor are in communication with each other via an internal connection path, the memory being for storing instructions, the processor being for executing the instructions stored by the memory to control the transceiver to receive signals and to control the transceiver to transmit signals, and when the processor executes the instructions stored by the memory, to cause the processor to perform the method of the first aspect or any one of the possible implementation manners of the first aspect.
Optionally, the processor is one or more and the memory is one or more.
Alternatively, the memory may be integrated with the processor or the memory may be separate from the processor.
In a specific implementation process, the memory may be a non-transient (non-transitory) memory, for example, a Read Only Memory (ROM), which may be integrated on the same chip as the processor, or may be separately disposed on different chips.
In a seventh aspect, there is provided a chip comprising a processor for calling from a memory and executing program instructions or code stored in the memory, such that a communication device on which the chip is mounted performs the method of the above aspects.
In an eighth aspect, there is provided another chip comprising: the input interface, the output interface, the processor and the memory are connected through an internal connection path, the processor is used for executing codes in the memory, and when the codes are executed, the processor is used for executing the method in each aspect.
It should be appreciated that, the technical solutions of the second aspect to the eighth aspect and the corresponding possible implementation manners of the present application may refer to the technical effects of the first aspect and the corresponding possible implementation manners of the first aspect, which are not described herein.
Drawings
FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application;
FIG. 2 is a schematic diagram of another implementation environment provided by an embodiment of the present application;
fig. 3 is a flowchart of a message transmission method according to an embodiment of the present application;
Fig. 4 is a network topology diagram according to an embodiment of the present application;
fig. 5 is another network topology provided in an embodiment of the present application;
Fig. 6 is a network topology diagram according to an embodiment of the present application;
FIG. 7 is a diagram of a message structure according to an embodiment of the present application;
FIG. 8 is a diagram of another message structure according to an embodiment of the present application;
FIG. 9 is a diagram of another message structure according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a message transmission device according to an embodiment of the present application;
Fig. 11 is a schematic structural diagram of a network device according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of another network device according to an embodiment of the present application.
Detailed Description
The terminology used in the description of the embodiments of the application herein is for the purpose of describing particular embodiments of the application only and is not intended to be limiting of the application. For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
In equal cost multi-path (ECMP), multiple links may be connected between two transmission devices, and the transmission devices may use the multiple links to share the transmission of the message in the process of transmitting the message, so as to increase the transmission bandwidth and improve the transmission efficiency. The transmitted message comprises a first message and a second message, and the transmission requirement of the first message is higher than that of the second message. The multiple links connected between the two transmission devices all meet the transmission requirement of the second message, and can transmit the second message, but only part of the links meet the transmission requirement of the first message, so how to transmit the message becomes a problem to be solved.
In the related art, since the multiple links can meet the transmission requirement of the second message, the multiple links share the transmission of the second message in an equally-divided manner. The transmission mode can lead to the fact that the links capable of transmitting the first messages transmit too many second messages, the links capable of transmitting the first messages are occupied too much, and the transmission of the first messages cannot be guaranteed and is easy to influence. Based on the above, the embodiment of the application provides a message transmission method.
Fig. 1 is a schematic diagram illustrating an implementation environment of a message transmission method according to an embodiment of the present application. The implementation environment includes a plurality of transmission devices. And a plurality of links, namely a first link and a second link, are connected between any two transmission devices in the plurality of transmission devices. The link connection in fig. 1 is intended to illustrate a connection relationship between transmission devices, and is not used to define a connection manner of the transmission devices, and the link connected between the transmission devices may be established by a wired or wireless network, that is, the link connection in fig. 1 is not used to define an actual physical connection between the transmission devices. In addition, the number of transmission apparatuses included in the network topology may be 8 transmission apparatuses of the transmission apparatus 1 to the transmission apparatus 8 shown in fig. 1, or may be other numbers. Moreover, the number of links connected between different transmission devices may be the same as shown in fig. 1 or may be different.
The embodiment of the application is not limited to the network device for executing the message transmission method, and the network device may be a transmission device configured on a forwarding path. Taking the first link through which the message is transmitted as an example of the first link between the transmission device 1 and the transmission device 2 in fig. 1, the network device is the transmission device 1 or the transmission device 2. Alternatively, the network device may be connected to the transmission device instead of being arranged on the forwarding path. For example, as shown in fig. 2, the control device 01 and the transmission device establish a communication connection by way of a wired or wireless network, and the control device 01 can interact with the transmission device to implement management of a link connected with the transmission device. The transmission devices to which the control device 01 is connected may be part of the transmission devices shown in fig. 2, for example, the transmission device 1, the transmission device 2, and the transmission device 4, or may be all the transmission devices in the network topology.
In addition, the control device 01 and the transmission device may independently execute the message transmission method provided by the embodiment of the present application, or may interactively execute the message transmission method provided by the embodiment of the present application. For example, after determining the bandwidth demand of the first link, the control device 01 issues the bandwidth demand of the first link to the transmission device, and the transmission device determines the transmission weight of the first link according to the received bandwidth demand, and transmits the second message through the first link according to the transmission weight.
Alternatively, the transmission device in fig. 1 and 2 may be a Router (RT), or may be other devices with packet forwarding capability, such as a switch and Gateway (GW), etc. The control device 01 in fig. 2 may be any device having data processing capabilities, and may be a server, for example a central server, an edge server, or a local server in a local data center. The server can be a physical server, and can also be a cloud server for providing cloud computing service in a cloud scene. In some embodiments, the control device 01 may also be a terminal device such as a desktop, notebook, or smart phone.
The flow chart of the message transmission method provided by the embodiment of the application is shown in fig. 3, and comprises S301-S303.
S301, obtaining the bandwidth demand of a first link, wherein the first link meets the transmission demands of a first message and a second message, the bandwidth demand is the bandwidth of the first link for transmitting the first message, and the transmission demand of the first message is higher than the transmission demand of the second message.
Illustratively, the first link refers to a link with high transmission performance. The transmission performance of the link can be determined according to transmission parameters such as time delay, bandwidth, packet loss rate and the like. For example, when the time required for end-to-end transmission through one link is less than 20 milliseconds, it is determined that the transmission performance of the link is high, belonging to the first link. When the bandwidth of one link is higher than 40 gigabytes (G), it is determined that the transmission performance of the link is high, belonging to the first link. Or when the packet loss rate of one link is lower than 0.5%, determining that the transmission performance of the link is high, and belonging to the first link.
Based on high transmission performance, the first link can meet the transmission requirements of the first message and the second message. The first message and the second message may be any type of message, including but not limited to a game message, a video message, a picture message, and the like. The message types of the first message and the second message may be the same or different. The transmission requirement of the first message is higher than that of the second message. The transmission requirement of the message can be determined according to a service level agreement (SERVICE LEVEL AGREEMENT, SLA) of the message, and when the transmission delay specified in the SLA of a certain message is smaller than a first threshold value, the transmission requirement of the message is determined to be high, and the message belongs to the first message. Otherwise, determining that the transmission requirement of the message is low, and the message belongs to the second message.
Because the link in the network capable of meeting the transmission requirement of the first message is the first link, that is, the link carrying the first message is the first link. For example, as shown in fig. 4, the first links connecting between different transmission devices may be considered as being integrated in a single network plane, which is used for carrying the transmission of the first message. When the transmission requirement of the first message exists, path calculation is directly carried out according to the integrated network plane, and a transmission path formed by a first link with high transmission performance is planned on the network plane. And because the first message has high requirements for network quality assurance and low transmission fault tolerance, even if the first link can meet the transmission requirement of the second message, the transmission of the second message is carried out, and the transmission of the first message is also required to be guaranteed preferentially. Based on the priority guarantee requirement, the network device for executing the message transmission method obtains the bandwidth requirement of the first link, where the bandwidth requirement is the bandwidth of the first link for transmitting the first message.
The embodiment of the application does not limit the time for the network equipment to acquire the bandwidth demand of the first link, and can be after receiving the demand of transmitting the second message. For example, the network device acquires a transmission path of a second message to be transmitted, and counts a bandwidth demand of a first link corresponding to the transmission path of the second message. The first link corresponding to the transmission path refers to a first link connected between transmission devices included in the transmission path. As shown in fig. 5, the transmission path of the second packet is transmission device 1-transmission device 2-transmission device 3-transmission device 4, and the first links corresponding to the transmission path are the first link 1 connected between the transmission device 1 and the transmission device 2, the first link 2 connected between the transmission device 2 and the transmission device 3, and the first link 3 connected between the transmission device 3 and the transmission device 4, respectively. The network device executes the message transmission method provided by the embodiment of the application and starts to determine the bandwidth demand of the first link corresponding to the transmission path.
Alternatively, the network device may determine the bandwidth requirements of each first link managed before receiving the requirement for transmitting the second message. For example, as shown in fig. 6, link a in fig. 6 is a first link, and the network device obtains a bandwidth requirement of 5 gigabytes (G) of the first link. And determining the transmission weight of each first link according to the bandwidth demand of the first link so as to directly transmit the second message according to the transmission weight of the first link under the condition that the second message needs to be transmitted, thereby improving the transmission efficiency of the second message.
In one possible scenario, the bandwidth requirement of the first link indicates a bandwidth size reserved for the first message in the first link, which reserved bandwidth size may be a fixed value set empirically. Taking a flexible algorithm (flex-algorithm, flex-algo) as an example, the first link belongs to a link used for transmitting a message of flex-algo in a circuit topology defined by the flex-algo algorithm. In the road calculation scene, the first message is a message of flex-algo. Empirically, a bandwidth of 2 gigabytes (G) exists in the first link for a packet of fixed transmission flex-algo, then the bandwidth requirement of the first link is 2G.
In another possible scenario, the bandwidth size reserved for the first link may also be determined according to the message prediction result. The network equipment determines the corresponding relation between the historical flow of the first message and the transmission moment according to the historical transmission condition of the first message; determining the flow of the first message according to the corresponding relation between the current moment and the historical flow and the transmission moment of the first message; and determining the bandwidth demand according to the flow size of the first message. Taking 9-day as an operation peak period of an entertainment application program, taking a service corresponding to a first message as an example of the entertainment application program, determining that a first message can generate a flow burst at 9-day according to a historical transmission condition of the first message, predicting that the flow of the first message at 9-day is likely to be 100 gigabytes (G), determining that a first link needs to reserve 90% of bandwidth for transmitting the first message according to the predicted flow of the first message, and determining that the bandwidth demand of the first link is 90% multiplied by the total bandwidth of 10G=9G.
The bandwidth requirement of the first message may also be determined based on the bandwidth currently used by the first link to transmit the first message. Since the different network devices acquire the bandwidths used by the first link to transmit the first message currently, the acquisition modes of the control device in the two cases will be described respectively.
In the first acquisition mode, when the network device is a transmission device connected with the first link, the transmission device determines the bandwidth demand according to the bandwidth used by the first link to transmit the first message when the link identifier included in the first message is the first link.
In one possible implementation manner, after receiving the message to be transmitted, the transmitting device needs to determine whether the message to be transmitted is the first message, and then determine the bandwidth demand according to the bandwidth used by the first link to transmit the first message if the message to be transmitted is the first message. The process of determining whether the message to be transmitted is the first message is, for example, that the transmitting device parses the message to be transmitted, and determines whether the message to be transmitted is the first message according to fields that can identify service information, such as DIFFERENTIATED SERVICES code-point (DSCP), flow label (flow label), five-tuple, and the like, included in the message to be transmitted.
Fig. 7 and 8 show fields carrying identifiable service information in a message to be transmitted, and fig. 7 shows a message to be transmitted belonging to internet protocol 4 th edition (internet protocol version, ipv 4), where the message to be transmitted includes a version (version) field, a header length (HEAD LENGTH) field, a type of service (ToS) field, a total length of data (total length) field, and the like. The ToS field includes a DSCP field byte, and bits 0 to 5, which are the lower 6 bits in the DSCP field byte, are used to distinguish service code points DSCP. Bits 0-2, which are the lower 3 bits, are class selection code points (class selector code point, CSCP), representing a class of DSCP used to identify traffic information. Bits 6 and 7, which are the upper 2 bits, are reserved bits.
Fig. 8 shows a message to be transmitted belonging to IPv6, where the message to be transmitted includes a version (version) field, a traffic class (TRAFFIC CLASS, TC) field, a Flow Label (FL) field, and a payload length (payload length) field. There are two fields related to quality of service (quality of service, qoS) that can be used to identify the traffic information of the message to be transmitted, the TC field and the FL field, respectively. The TC field has 8 bits, has the same function as the ToS field of the message to be transmitted, which belongs to IPv4 and is shown in fig. 7, and is used for identifying the service information of the message to be transmitted; the FL field has 20 bits for identifying messages for the same service. The FL field, together with the source address and destination address, uniquely identifies a service message. According to the TC field and the FL field, after determining the service information of the message to be transmitted, the transmission device determines that the message to be transmitted is the first message under the condition that the service information is the service information corresponding to the first message.
After determining that the received message to be transmitted is the first message, the transmission device further determines a first link to which the first message needs to be transmitted. For example, one transmission device may be connected to a plurality of first links. Taking the transmission device 1 shown in fig. 5 as an example, a first link is connected between the transmission device 1 and the transmission device 2, and a first link is also connected between the transmission device 1 and the transmission device 5. Therefore, after receiving the first message to be transmitted, the transmission device 1 analyzes the received first message, and obtains the link identifier carried in the first message to determine the transmission link of the first message. The link identification may be a device identification of a next hop device of the first message, an address of a next hop device. The transmission device determines the next hop device to be sent to according to the link identification, so as to determine a first link for transmitting the first message, and statistics the bandwidth used by the first link for transmitting the first message. The statistics process is, for example, that since the first messages of the same service have the same FL field, the traffic of the first message can be counted according to the FL field, so as to determine the bandwidth used by the first link for transmitting the first message.
Taking the Slice service scenario as an example, the link identifier of the first message is a Slice identity number (SLICE IDENTITY documents, slice ID). Such as the message structure of the first message shown in fig. 9, which includes an internet protocol version 6 (internet protocol version, IPv 6) message header, a hop-by-hop header (hop-by-hop header), a segment routing header (segment routing header, SRH) and an IPv6 payload. The hop-by-hop header includes a plurality of fields as shown in fig. 9, and the plurality of fields include a Slice ID field. And because the interfaces of different first links on the transmission equipment are different, the transmission equipment searches FlexE interfaces of the corresponding slicing resources of the next-hop equipment according to the Slice ID field, and the determination of the transmission link of the first message is completed. When the determined transmission link is the first link which is currently counting the bandwidth demand, the transmission equipment can count the flow of the first message carrying the Slice ID in real time according to the Slice ID field, so that the bandwidth used by the first link for transmitting the first message carrying the Slice ID is obtained.
The bandwidth requirement can be determined according to the bandwidth used by the first link to transmit the first message no matter what mode the transmission device determines the bandwidth of the first link to transmit the first message. Optionally, the transmission device uses the bandwidth used by the first link to transmit the first message as the bandwidth requirement. For example, if the bandwidth used for transmitting the first message by the first link is 2G, the bandwidth requirement of the first link is 2G. Or the transmission equipment combines the reserved bandwidth on the basis of the bandwidth used by the first link for transmitting the first message, and determines the bandwidth demand. Continuing taking the bandwidth used by the first link to transmit the first message as 2G as an example, setting the reserved bandwidth of the first link to be 1G based on experience, and then setting the bandwidth requirement of the first link to be 2+1=3 gigabytes (G). By setting the reserved bandwidth, the transmission bandwidth is reserved for the first message to be transmitted later on the basis of the occupied bandwidth of the first message, so that the normal transmission of the first message to be transmitted later is ensured.
And in the second acquisition mode, under the condition that the network equipment is control equipment connected with the transmission equipment, receiving the bandwidth used by the first link transmitted by the transmission equipment for transmitting the first message, and determining the bandwidth demand according to the bandwidth used by the first link for transmitting the first message.
In one possible case, the control device is configured to perform calculation of the transmission path according to the operation condition of each link to which the transmission device is connected. Therefore, the transmission device can report the bandwidth usage of each connected link including the first link to the control device in real time, and the control device obtains the operation condition of each link according to the received bandwidth usage of each link. The process of the transmission device counting the bandwidth used by the first link to transmit the first message is similar to the process of the transmission device counting the bandwidth used by the first link to transmit the first message in the first acquisition mode, and reference may be made to the related description, which is not repeated here.
The control device may also determine, for example, a bandwidth used by the first link to transmit the first message according to a result of the routing of the first message. According to the source port and the destination port of the first message, the control device calculates a first link which the first message needs to pass through by a route, and determines the bandwidth used by the first link which needs to pass through according to the route calculation result. For example, the control device calculates an end-to-end segment routing IPv 6Policy (segment routing IPv Policy, SRv Policy) path for the first packet a on the network plane of the first link integration as a transmission device 1-transmission device 2-transmission device 3-transmission device 4, and determines that the first link between the transmission devices corresponding to the first packet a is occupied by 5G bandwidth according to the path calculation result. The control device may then determine the bandwidth requirement according to the bandwidth used by the first link to transmit the first message, and optionally, the process of determining the bandwidth requirement according to the bandwidth used by the first link to transmit the first message by the control device is similar to the process of determining the bandwidth requirement according to the bandwidth used by the first link by the transmission device in the first acquisition mode, which will be described with reference to the related description and will not be repeated here.
S302, determining a transmission weight corresponding to the first link according to the bandwidth demand, wherein the transmission weight indicates the flow size of the second message to be transmitted when the first link meets the bandwidth demand.
Optionally, the process of determining the transmission weight by the network device includes: acquiring the total bandwidth of a second link, wherein the second link and the first link are links between transmission equipment for transmitting a first message and a second message, and the second link meets the transmission requirement of the second message and does not meet the transmission requirement of the first message; and determining the transmission weight according to the total bandwidth and the bandwidth demand of the second link.
Referring to fig. 5, the two transmission devices are further connected to a second link on the basis of the connection of the first link, and the transmission performance of the second link is lower than that of the first link. Similar to the determination process of the transmission performance of the first link, the transmission performance of the second link may also be determined according to transmission parameters such as delay, bandwidth, packet loss rate, and the like. When the time required for realizing the end-to-end transmission through one link is not less than 20 milliseconds, the transmission performance of the link is determined to be low, and the link belongs to a second link. When the bandwidth of one link is not higher than 40G, the transmission performance of the link is determined to be low, and the link belongs to a second link. Or when the packet loss rate of one link is not lower than 0.5%, determining that the transmission performance of the link is high, and belonging to the second link.
Based on the low transmission performance, the second link can only meet the transmission requirement of the second message and is responsible for message transmission of the second link. The network device obtains a total amount of bandwidth of the second link. Since the total bandwidth of the second link belongs to the configuration information of the second link, the total bandwidth in the configuration information of the second link is set and stored in the storage space during the process of establishing the second link. The network device may obtain the configuration information of the second link by accessing the storage space, to obtain the total bandwidth of the second link.
Illustratively, after the network device obtains the total bandwidth of the second link, the network device may determine the transmission weight according to the total bandwidth of the second link and the bandwidth requirement of the first link, where the determining process includes: determining the residual bandwidth of the first link according to the bandwidth demand; adding the residual bandwidth of the first link and the total bandwidth of the second link, and obtaining a bandwidth sum according to the adding result; and determining the transmission weight according to the ratio of the residual bandwidth to the bandwidth sum of the first link.
In one possible implementation, the network device obtains a total amount of bandwidth of the first link, subtracts the bandwidth demand from the total amount of bandwidth of the first link, and uses the resultant difference as the remaining bandwidth of the first link. The process of obtaining the total bandwidth of the first link is similar to the process of obtaining the total bandwidth of the second link, and reference is made to the related description, which is not repeated here. Taking the total bandwidth of the first link as 10G and the bandwidth demand as 3G as an example, the determined residual bandwidth of the first link is 10-3=7g.
The remaining bandwidth over the first link indicates a bandwidth size by which the first link can transmit the second message. Alternatively, the network device may choose to determine the remaining bandwidth based on the bandwidth demand, or may choose to directly determine the remaining bandwidth of the first link. The bandwidth size for transmitting the second message in the first link is determined empirically, resulting in a remaining bandwidth of the first link. For example, the existence of 5G bandwidth in the first link is specified based on experience for fixed transmission of the second message, thereby directly determining that the remaining bandwidth of the first link is 5G.
Regardless of the manner in which the network device obtains the remaining bandwidth of the first link, the remaining bandwidth of the first link and the total amount of bandwidth of the second link may be added to obtain a bandwidth sum. The bandwidth and the overall transmission capacity of the transmission device for transmitting the second message are reflected. The network device then divides the remaining bandwidth by the sum of bandwidths, and takes the divided ratio as a transmission weight. Continuing taking the remaining bandwidth of the first link as 7G as an example, the total bandwidth of the two second links connected by the transmission device 1 in fig. 5 is 10G, and the sum of bandwidths is 7+10+10=27G, and the calculated transmission weight is 7/27.
And determining the transmission weight according to the residual bandwidth of the first link, and reasonably distributing the flow carried by the first link in the second message transmission process according to the transmission capacity of the first link so as to avoid abusing and wasting the transmission capacity of the first link caused by excessively using the high-performance first link to transmit the second message with low transmission requirement, so that the task distribution of the first link and the second link is more reasonable. Further, the transmission weight of the first link may be a value that is continuously changed with the bandwidth demand of the first link. That is, in one possible scenario, the network device may update the transmission weight of the first link according to the change of the bandwidth used by the first link.
The process of updating the transmission weight of the first link may be similar to the process of determining the transmission weight in the above embodiment, and may be determined according to the bandwidth used for transmitting the first packet. For example, the first link further transmits the first packet B on the basis of transmitting the first packet a using the 2G bandwidth, and the bandwidth occupied by the first packet B is 5G, so that the bandwidth change condition used by the first link is changed to 2+5=7g, and the network device updates the bandwidth requirement of the first link to 7G. The remaining bandwidth of the first link is 3G, and the transmission weight is determined to be 3/(3+10+10) =3/23.
In another possible case, the transmission weight of the first link may be determined to be 0 based on the change in the bandwidth used by the first link satisfying the condition for limiting transmission. Wherein the condition that the change condition of the bandwidth used by the first link satisfies the transmission restriction may be that the remaining amount of the bandwidth of the first link is smaller than an empirically set bandwidth threshold. The fact that the bandwidth remaining amount of the first link is smaller than the bandwidth threshold value indicates that the amount of messages which can be transmitted by the first link is smaller, and if the first link is used for transmitting the second message, the first link cannot transmit the first message in time when the first message needs to be transmitted. Therefore, the transmission weight of the first link is set to be 0, so that the first link does not need to bear the message transmission of the second message, and the limited bandwidth is used for guaranteeing the message transmission of the first message.
Alternatively, the first link satisfying the limited transmission condition may further be that the transmission level of the first message currently transmitted by the first link is higher than a reference level set based on experience. The transmission level can be determined according to SLA and the like, and the first link stops transmitting the second message due to the fact that the transmission level of the first message to be transmitted by the first link is high and the tolerance of faults in the transmission process is low, so that smooth execution of the first message transmission is guaranteed.
S303, transmitting the second message through the first link according to the transmission weight.
The network device determines the transmission weight according to any mode, and controls the first link to transmit the second message according to the transmission weight. The proportion of the flow of the second message transmitted by the first link in the total amount of the second message is the same as the transmission weight. The network device may be a transmission device or a control device independent of the transmission device, and the processes of transmitting the second message by the network device through the first link under different conditions are different, and then the processes of controlling the message transmission by the network device under different conditions are respectively illustrated.
In the first transmission mode, when the network device is the control device, the network device sends the transmission weight to the transmission device connected with the first link, and the transmission device is used for transmitting the second message according to the transmission weight through the first link.
Optionally, a communication connection is established between the control device and the transmission device, based on the communication connection, the control device may send transmission information including transmission weights to the transmission device, and after the transmission device receives the transmission information, the transmission device reads the transmission weights in the transmission information, and groups the received second message according to the transmission weights, so as to obtain the first packet. Taking 27G as a second message to be transmitted and 7/27 as an example, the flow size of the second message included in the first packet is 7G. After the transmission equipment finishes grouping, the transmission equipment sends a second message included in the first grouping to the transmission equipment of the opposite terminal through the first link, and the second message is transmitted according to the transmission weight. For example, as shown in fig. 5, the bold straight line is the second message included in the first packet.
And in the second transmission mode, under the condition that the network equipment is the transmission equipment, the transmission equipment carries out grouping on the received second message according to the transmission weight to obtain a first grouping, and the first grouping is transmitted through a first link.
The transmission device, after calculating the transmission weight, groups the second packet according to the transmission weight to obtain the first packet. The process of the transmission device grouping the second message is similar to the process of the transmission device grouping the second message in the first transmission mode, the process of the transmission device transmitting the first packet through the first link is similar to the process of the transmission device transmitting the first packet through the first link in the first transmission mode, and reference is made to the related description, and the description is omitted here.
In one possible case, the network device may further determine a reference weight corresponding to the second link according to a ratio of the total bandwidth and the sum bandwidth of the second link; and transmitting a second message according to the reference weight through a second link. The second link cannot bear the transmission of the first message and is only used for transmitting the second message. Therefore, the reference weight of the second link can be determined according to the total bandwidth of the second link without considering the transmission bandwidth of the first message in the second link. And dividing the total bandwidth of the second link by the sum of the bandwidths, and taking the ratio obtained by the division as a reference weight. Continuing to take the second link shown in fig. 5 as an example, the total bandwidth of the two second links connected to the transmission device 1 is 10G, and the sum of the bandwidths is 27G calculated in the foregoing embodiment, so that the reference weights of the two second links connected to the transmission device 1 are 10/27.
Optionally, the process of transmitting the second message through the second link according to the reference weight is similar to the process of transmitting the second message through the first link according to the transmission weight in the above embodiment, and the network device may group the second message according to the reference weight to obtain a second packet, and transmit the second message included in the second packet through the second link. Continuing to take the total message amount of the second message to be transmitted as 27G as an example, the two second links respectively transmit the messages of 27×10/27=10g. The process of the network device transmitting the second message over the second link is similar to the process of transmitting the second message over the first link, for example, the bolded curve in fig. 5 is the second message included in the second packet transmitted by the second link.
Furthermore, the first link and the second link in the embodiments of the present application are intended to distinguish links with different transmission performance, and are not intended to limit the number of links connected between two transmission devices. For example, the first link connected between two transmission devices may be one or more of fig. 6, and the second link connected may be two or more of fig. 6. The transmission weight may be expressed as a fraction in the above embodiment or may be expressed as other expression. Taking the remaining bandwidth of the first link as 8G and the total bandwidth of the two second links as 10G as an example, the transmission weight of the first link may be further expressed as 8:10:10. taking the remaining bandwidth of the first link as 7G and the total bandwidth of the two second links as 10G as an example, the transmission weight of the first link may be further expressed as 7:10:10.
In addition, since the process of controlling the different first links and second links to transmit the second message is similar, in the process of introducing the message transmission method, the embodiment of the application is temporarily described by taking the first link and the second link connected by one of the transmission devices on the transmission path of the second message as an example. The method is not used for limiting the number of transmission devices to which the message transmission method provided by the embodiment of the application is applicable. For example, as shown in fig. 6, where link a represents a first link, link B and link C represent second links, the bandwidth requirement of each first link and the total bandwidth of each second link may be determined according to the method provided by the embodiment of the present application, so as to obtain the weight corresponding to each link in the network topology map.
In summary, according to the message transmission method provided by the embodiment of the application, the transmission weight corresponding to the first link is flexibly adjusted according to the bandwidth demand of the first link, so that the flow size of the second message transmitted by the first link is defined according to the transmission weight, the bandwidth occupied by the second message on the first link is reduced, the second message is transmitted by reasonably utilizing the first link under the condition that the transmission task of the first message is satisfied, the abuse of the first link is avoided, and the transmission process of the second message is more accurate. And after the transmission weight is determined, the transmission weight of the first link is updated in time according to the change condition of the bandwidth used by the first link, so that the real-time performance is good, and the accuracy of the transmission weight is high.
The above describes a message transmission method according to the embodiment of the present application, and the embodiment of the present application further provides a message transmission device corresponding to the above method. Fig. 10 is a schematic structural diagram of a message transmission device according to an embodiment of the present application. The message transmission apparatus shown in fig. 10 is capable of performing all or part of the operations shown in fig. 3 described above based on the following modules shown in fig. 10. It should be understood that the apparatus may include additional modules than those shown or omit some of the modules shown therein, and embodiments of the present application are not limited in this respect. As shown in fig. 10, the apparatus includes:
the obtaining module 1001 is configured to obtain a bandwidth requirement of a first link, where the first link meets a transmission requirement of a first packet and a second packet, and the bandwidth requirement is a bandwidth of the first link for transmitting the first packet, and the transmission requirement of the first packet is higher than the transmission requirement of the second packet;
a determining module 1002, configured to determine a transmission weight corresponding to the first link according to the bandwidth demand, where the transmission weight indicates a flow size of the second packet when the first link meets the bandwidth demand;
and a transmission module 1003, configured to transmit the second message according to the transmission weight through the first link.
In a possible implementation manner, the determining module 1002 is configured to obtain a total bandwidth of a second link, where the second link and the first link are links between transmission devices that transmit the first message and the second message, and the second link meets a transmission requirement of the second message and does not meet the transmission requirement of the first message; and determining the transmission weight according to the total bandwidth and the bandwidth demand of the second link.
In one possible implementation, the determining module 1002 is configured to determine a remaining bandwidth of the first link according to the bandwidth requirement; adding the residual bandwidth of the first link and the total bandwidth of the second link, and obtaining a bandwidth sum according to the adding result; and determining the transmission weight according to the ratio of the residual bandwidth and the bandwidth sum of the first link.
In a possible implementation manner, the determining module 1002 is further configured to determine a reference weight corresponding to the second link according to a ratio of a total bandwidth and a sum of bandwidths of the second link; the transmission module 1003 is further configured to transmit a second message according to the reference weight through the second link.
In a possible implementation manner, the determining module 1002 is further configured to update the transmission weight of the first link according to a change situation of the bandwidth used by the first link.
In one possible implementation, the first packet includes a link identifier, and the obtaining module 1001 is configured to determine, when the link identifier included in the first packet is the link identifier of the first link, a bandwidth requirement according to a bandwidth used for transmitting the first packet by the first link.
In one possible implementation manner, the obtaining module 1001 is configured to receive a bandwidth used by a first link to transmit a first packet sent by a transmission device, determine a bandwidth requirement according to the bandwidth used by the first link to transmit the first packet, and connect the transmission device with the first link.
The device flexibly adjusts the transmission weight corresponding to the first link according to the bandwidth demand of the first link, and definitely transmits the flow of the second message according to the transmission weight, so that the bandwidth required by the first message transmitted in the first link is deducted in the process of determining the flow of the second message, the occupied bandwidth of the second message in the first link is reduced, the second message is transmitted by reasonably utilizing the first link under the condition of meeting the transmission task of the first message, the message transmission process is more accurate, and the reliable transmission of the first message is ensured.
Referring to fig. 11, fig. 11 is a schematic diagram illustrating a configuration of a network device 1100 according to an exemplary embodiment of the present application. The network device 1100 shown in fig. 11 is configured to perform the operations related to the packet transmission method shown in fig. 3. The network device 1100 is, for example, a switch, router, etc., and the network device 1100 may be implemented by a general bus architecture.
As shown in fig. 11, the network device 1100 includes at least one processor 1101, a memory 1103, and at least one communication interface 1104.
The processor 1101 is, for example, a general purpose central processing unit (central processing unit, CPU), digital signal processor (DIGITAL SIGNAL processor, DSP), network processor (network processer, NP), graphics processor (graphics processing unit, GPU), neural-network processor (neural-network processing units, NPU), data processing unit (data processing unit, DPU), microprocessor, or one or more integrated circuits for implementing aspects of the present application. For example, the processor 1101 includes an application-specific integrated circuit (ASIC), a programmable logic device (programmable logic device, PLD) or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. PLDs are, for example, complex programmable logic devices (complex programmable logic device, CPLD), field-programmable gate arrays (FPGAs), general-purpose array logic (GENERIC ARRAY logic, GAL), or any combination thereof. Which may implement or perform the various logical blocks, modules, and circuits described in connection with the disclosure of embodiments of the application. A processor may also be a combination of computing functions, including for example, one or more microprocessor combinations, a combination of DSPs and microprocessors, and the like.
Optionally, the network device 1100 also includes a bus. A bus is used to transfer information between the components of the network device 1100. The bus may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, or the like. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one thick line is shown in FIG. 11, but not only one bus or one type of bus.
The Memory 1103 is, for example, but not limited to, a read-only Memory (ROM) or other type of static storage device that can store static information and instructions, as well as a random access Memory (random access Memory, RAM) or other type of dynamic storage device that can store information and instructions, as well as an electrically erasable programmable read-only Memory (ELECTRICALLY ERASABLE PROGRAMMABLE READ-only Memory, EEPROM), compact disc (compact disc read-only Memory) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media, or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 1103 is, for example, independent and connected to the processor 1101 through a bus. The memory 1103 may also be integrated with the processor 1101.
The communication interface 1104 uses any transceiver-like device for communicating with other devices or communication networks, which may be ethernet, radio Access Network (RAN) or wireless local area network (wireless local area networks, WLAN), etc. Communication interface 1104 may include a wired communication interface and may also include a wireless communication interface. In particular, the communication interface 1104 may be an Ethernet interface, a fast Ethernet (FAST ETHERNET, FE) interface, a gigabit Ethernet (gigabit Ethernet, GE) interface, an asynchronous transfer mode (asynchronous transfer mode, ATM) interface, a wireless local area network (wireless local area networks, WLAN) interface, a cellular network communication interface, or a combination thereof. The ethernet interface may be an optical interface, an electrical interface, or a combination thereof. In embodiments of the present application, communication interface 1104 may be used for network device 1100 to communicate with other devices.
In a particular implementation, the processor 1101 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG. 11, as an embodiment. Each of these processors may be a single-core (single-CPU) processor or may be a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In a particular implementation, as one embodiment, the network device 1100 may include multiple processors, such as processor 1101 and processor 1105 shown in FIG. 11. Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In a specific implementation, the network device 1100 may also include output devices and input devices, as one embodiment. The output device communicates with the processor 1101 and may display information in a variety of ways. For example, the output device may be a Liquid Crystal Display (LCD) CRYSTAL DISPLAY, a Light Emitting Diode (LED) display device, a Cathode Ray Tube (CRT) display device, a projector (projector), or the like. The input device(s) is in communication with the processor 1101 and may receive user input in a variety of ways. For example, the input device may be a mouse, a keyboard, a touch screen device, a sensing device, or the like.
In some embodiments, the memory 1103 is used to store program code 1110 for performing aspects of the present application, and the processor 1101 may execute the program code 1110 stored in the memory 1103. That is, the network device 1100 may implement the method for transmitting a message provided by the method embodiment through the processor 1101 and the program code 1110 in the memory 1103. One or more software modules may be included in program code 1110. Optionally, the processor 1101 itself may store program code or instructions to perform the inventive arrangements.
In a specific embodiment, the network device 1100 of the embodiment of the present application may correspond to the computing device of each of the method embodiments described above.
The steps of the message transmission method shown in fig. 3 are implemented by an integrated logic circuit of hardware or an instruction in software form in a processor of the network device 1100. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads information in the memory, and in combination with its hardware, performs the steps of the above method, which will not be described in detail here to avoid repetition.
Fig. 12 is a schematic structural diagram of another network device provided in an embodiment of the present application, where the network device is, for example, a server, and the server may include one or more processors 1201 and one or more memories 1202, where the one or more memories 1202 store at least one computer program, and the at least one computer program is loaded and executed by the one or more processors 1201, so that the server implements the packet transmission method provided in the foregoing method embodiments. The processor 1201 is, for example, a central processing unit (central processing units, CPU). Of course, the network device may also have a wired or wireless network interface, a keyboard, an input/output interface, and other components for implementing the functions of the device, which are not described herein.
The embodiment of the application also provides a communication device, which comprises: a transceiver, a memory, and a processor. The transceiver, the memory and the processor are in communication with each other through an internal connection path, the memory is used for storing instructions, the processor is used for executing the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals, and when the processor executes the instructions stored in the memory, the processor is caused to execute a message transmission method.
It is to be appreciated that the processor described above may be a CPU, but may also be other general purpose processors, DSP, ASIC, FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or any conventional processor or the like. It is noted that the processor may be a processor supporting an advanced reduced instruction set machine (ADVANCED RISC MACHINES, ARM) architecture.
Further, in an alternative embodiment, the memory may include read only memory and random access memory, and provide instructions and data to the processor. The memory may also include non-volatile random access memory. For example, the memory may also store information of the device type.
The memory may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile memory may be ROM, programmable ROM (PROM), erasable programmable ROM (erasable PROM), EEPROM, or flash memory, among others. The volatile memory may be RAM, which acts as external cache. By way of example, and not limitation, many forms of RAM are available. For example, static random access memory (STATIC RAM, SRAM), dynamic random access memory (dynamic random access memory, DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate synchronous dynamic random access memory (double DATA RATE SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (ENHANCED SDRAM, ESDRAM), synchronous link dynamic random access memory (SYNCHLINK DRAM, SLDRAM), and direct memory bus random access memory (direct rambus RAM, DR RAM).
The embodiment of the application also provides a message transmission device, which comprises a processor, wherein the processor is used for loading and running at least one instruction so as to enable the message transmission device to realize the message transmission method provided by the embodiment of the application. Optionally, the device further comprises a memory coupled to the processor, the memory for storing at least one instruction.
The embodiment of the application also provides a computer readable storage medium, wherein at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor, so that the computer realizes the message transmission method according to any one of the above.
The present application also provides a computer program (product) which, when executed by a computer, can cause a processor or a computer to perform the respective steps and/or flows corresponding to the above-described method embodiments.
The embodiment of the application also provides a chip, which comprises a processor and is used for calling and running the instructions stored in the memory from the memory, so that the communication equipment provided with the chip executes the message transmission method.
The embodiment of the application also provides another chip, which comprises: the device comprises an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected through an internal connection path, the processor is used for executing codes in the memory, and when the codes are executed, the processor is used for executing the message transmission method according to any one of the above.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. 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, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk Solid STATE DISK), etc.
It should be noted that, the information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data for analysis, stored data, presented data, etc.), and signals related to the present application are all authorized by the user or are fully authorized by the parties, and the collection, use, and processing of the related data is required to comply with the relevant laws and regulations and standards of the relevant countries and regions. For example, the bandwidth requirements and the like involved in the present application are all obtained under the condition of sufficient authority.
Those of ordinary skill in the art will appreciate that the various method steps and modules described in connection with the embodiments disclosed herein may be implemented as software, hardware, firmware, or any combination thereof, and that the steps and components of the various embodiments have been generally described in terms of functionality in the foregoing description to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Those of ordinary skill in the art may implement the described functionality using different approaches for each particular application, but such implementation is not considered to be beyond the scope of the present application.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the above storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer program instructions. By way of example, the methods of embodiments of the present application may be described in the context of machine-executable instructions, such as program modules, being included in devices on a real or virtual processor of a target. Generally, program modules include routines, programs, libraries, objects, classes, components, data structures, etc. that perform particular tasks or implement particular abstract data types. In various embodiments, the functionality of the program modules may be combined or split between described program modules. Machine-executable instructions for program modules may be executed within local or distributed devices. In a distributed device, program modules may be located in both local and remote memory storage media.
Computer program code for carrying out methods of embodiments of the present application may be written in one or more programming languages. These computer program code may be provided to a processor of a general purpose computer, special purpose computer, or other programmable message transmission apparatus such that the program code, when executed by the computer or other programmable message transmission apparatus, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the computer, partly on the computer, as a stand-alone software package, partly on the computer and partly on a remote computer or entirely on the remote computer or server.
In the context of embodiments of the present application, computer program code or related data may be carried by any suitable carrier to enable an apparatus, device or processor to perform the various processes and operations described above. Examples of carriers include signals, computer readable media, and the like.
Examples of signals may include electrical, optical, radio, acoustical or other form of propagated signals, such as carrier waves, infrared signals, etc.
A machine-readable medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination thereof. More detailed examples of a machine-readable storage medium include an electrical connection with one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical storage device, a magnetic storage device, or any suitable combination thereof.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system, apparatus and module may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the above-described device embodiments are merely illustrative, e.g., the division of the modules is merely a logical function division, and there may be additional divisions of actual implementation, e.g., multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices, or modules, or may be an electrical, mechanical, or other form of connection.
The modules illustrated as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the embodiment of the application.
In addition, each functional module in the embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method in the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The terms "first," "second," and the like in this disclosure are used for distinguishing between similar elements or items having substantially the same function and function, and it should be understood that there is no logical or chronological dependency between the terms "first," "second," and "n," and that there is no limitation on the amount and order of execution. It will be further understood that, although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another element. For example, a first image may be referred to as a second image, and similarly, a second image may be referred to as a first image, without departing from the scope of the various described examples. The first image and the second image may both be images, and in some cases may be separate and distinct images.
It should also be understood that, in the embodiments of the present application, the sequence number of each process does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiments of the present application.
The term "at least one" in the present application means one or more, and the term "plurality" in the present application means two or more, for example, a plurality of second messages means two or more second messages. The terms "system" and "network" are often used interchangeably herein.
It is to be understood that the terminology used in the description of the various examples described herein is for the purpose of describing particular examples only and is not intended to be limiting. As used in the description of the various described examples and in the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It will also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. The term "and/or" is an association relationship describing an associated object, and means that there may be three relationships, for example, a and/or B, and may mean: a exists alone, A and B exist together, and B exists alone. In the present application, the character "/" generally indicates that the front and rear related objects are an or relationship.
It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the terms "if" and "if" may be interpreted to mean "when" ("white" or "upon") or "in response to a determination" or "in response to detection. Similarly, the phrase "if determined" or "if [ a stated condition or event ] is detected" may be interpreted to mean "upon determination" or "in response to determination" or "upon detection of [ a stated condition or event ] or" in response to detection of [ a stated condition or event ] "depending on the context.
It should be appreciated that determining B from a does not mean determining B from a alone, but may also determine B from a and/or other information.
It should be further appreciated that reference throughout this specification to "one embodiment," "an embodiment," "one possible implementation" means that a particular feature, structure, or characteristic described in connection with the embodiment or implementation is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment," "one possible implementation" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

Claims (17)

1. A method for transmitting a message, the method comprising:
Acquiring the bandwidth demand of a first link, wherein the first link meets the transmission demands of a first message and a second message, the bandwidth demand is the bandwidth of the first link for transmitting the first message, and the transmission demand of the first message is higher than the transmission demand of the second message;
determining a transmission weight corresponding to the first link according to the bandwidth demand, wherein the transmission weight indicates the flow size of the second message transmitted by the first link under the condition that the bandwidth demand is met;
and transmitting the second message through the first link according to the transmission weight.
2. The method of claim 1, wherein the determining the transmission weight corresponding to the first link according to the bandwidth requirement comprises:
Acquiring the total bandwidth of a second link, wherein the second link and the first link are links between transmission devices for transmitting the first message and the second message, and the second link meets the transmission requirement of the second message and does not meet the transmission requirement of the first message;
And determining the transmission weight according to the total bandwidth of the second link and the bandwidth demand.
3. The method of claim 2, wherein said determining said transmission weight based on a total amount of bandwidth of said second link and said bandwidth demand comprises:
determining the residual bandwidth of the first link according to the bandwidth demand;
adding the residual bandwidth of the first link and the total bandwidth of the second link, and obtaining a bandwidth sum according to the adding result;
And determining the transmission weight according to the ratio of the residual bandwidth of the first link to the sum of the bandwidths.
4. A method according to claim 3, wherein said adding the remaining bandwidth of the first link to the total bandwidth of the second link, and obtaining the bandwidth sum based on the addition result, further comprises:
Determining a reference weight corresponding to the second link according to the ratio of the total bandwidth of the second link to the sum of bandwidths;
and transmitting the second message through the second link according to the reference weight.
5. The method according to any one of claims 1-4, wherein after determining the transmission weight corresponding to the first link according to the bandwidth requirement, further comprising:
and updating the transmission weight of the first link according to the change condition of the bandwidth used by the first link.
6. The method according to any one of claims 1-5, wherein the first message includes a link identification, and the obtaining the bandwidth requirement of the first link includes:
And under the condition that the link identifier included in the first message is the link identifier of the first link, determining the bandwidth demand according to the bandwidth used by the first link for transmitting the first message.
7. The method according to any one of claims 1-5, wherein said obtaining the bandwidth requirement of the first link comprises:
and receiving the bandwidth used by the first link for transmitting the first message and sent by the transmission equipment, determining the bandwidth demand according to the bandwidth used by the first link for transmitting the first message, and connecting the transmission equipment with the first link.
8. A message transmission apparatus, the apparatus comprising:
the system comprises an acquisition module, a transmission module and a transmission module, wherein the acquisition module is used for acquiring the bandwidth demand of a first link, the first link meets the transmission demands of a first message and a second message, the bandwidth demand is the bandwidth of the first link for transmitting the first message, and the transmission demand of the first message is higher than the transmission demand of the second message;
A determining module, configured to determine a transmission weight corresponding to the first link according to the bandwidth demand, where the transmission weight indicates a traffic size of the second packet transmitted by the first link when the first link meets the bandwidth demand;
And the transmission module is used for transmitting the second message through the first link according to the transmission weight.
9. The apparatus of claim 8, wherein the determining module is configured to obtain a total bandwidth of a second link, the second link and the first link being links between transmission devices that transmit the first message and the second message, the second link meeting transmission requirements of the second message and not meeting transmission requirements of the first message; and determining the transmission weight according to the total bandwidth of the second link and the bandwidth demand.
10. The apparatus of claim 9, wherein the means for determining is configured to determine a remaining bandwidth of the first link based on the bandwidth demand; adding the residual bandwidth of the first link and the total bandwidth of the second link, and obtaining a bandwidth sum according to the adding result; and determining the transmission weight according to the ratio of the residual bandwidth of the first link to the sum of the bandwidths.
11. The apparatus of claim 10, wherein the determining module is further configured to determine a reference weight corresponding to the second link according to a ratio of a total bandwidth of the second link to the sum of bandwidths; the transmission module is further configured to transmit the second packet according to the reference weight through the second link.
12. The apparatus according to any of claims 8-11, wherein the determining module is further configured to update the transmission weight of the first link according to a change in a bandwidth used by the first link.
13. The apparatus according to any one of claims 8-12, wherein the first message includes a link identifier, and the obtaining module is configured to determine the bandwidth requirement according to a bandwidth used for transmitting the first message by the first link if the link identifier included in the first message is the link identifier of the first link.
14. The apparatus according to any one of claims 8-12, wherein the obtaining module is configured to receive a bandwidth used by the first link to transmit the first message, where the bandwidth is sent by a transmitting device, and determine the bandwidth requirement according to the bandwidth used by the first link to transmit the first message, where the transmitting device is connected to the first link.
15. A message transmission device, characterized in that it comprises a processor that loads and executes at least one instruction to cause the message transmission device to implement the message transmission method according to any of claims 1-7.
16. The apparatus of claim 15, further comprising a memory coupled to the processor, the memory having the at least one instruction stored therein.
17. A computer readable storage medium having stored therein at least one instruction that is loaded and executed by a processor to implement the message transmission method of any of claims 1-7.
CN202310467879.XA 2023-04-27 2023-04-27 Message transmission method, device, equipment and computer readable storage medium Pending CN118869564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310467879.XA CN118869564A (en) 2023-04-27 2023-04-27 Message transmission method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310467879.XA CN118869564A (en) 2023-04-27 2023-04-27 Message transmission method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN118869564A true CN118869564A (en) 2024-10-29

Family

ID=93166029

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310467879.XA Pending CN118869564A (en) 2023-04-27 2023-04-27 Message transmission method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN118869564A (en)

Similar Documents

Publication Publication Date Title
CN108390820B (en) Load balancing method, equipment and system
US9185047B2 (en) Hierarchical profiled scheduling and shaping
KR102640600B1 (en) Method for forwarding packet in hybrid network, device, and system
US20220052951A1 (en) Congestion Information Collection Method and System, Related Device, and Computer Storage Medium
US11258717B2 (en) Method for sending service packet, network device, and system
CN112039796B (en) Data packet transmission method and device, storage medium and electronic equipment
KR20220062355A (en) Method, apparatus and system for determining bandwidth required for data stream transmission
US12120586B2 (en) Systems and methods for distributed charging in digital telecommunications networks
JP2023511918A (en) SERVICE LEVEL ADJUSTMENT METHOD AND APPARATUS, DEVICE AND STORAGE MEDIUM
CN115622952A (en) Resource scheduling method, device, equipment and computer readable storage medium
EP4398544A1 (en) Network congestion control method and related apparatus
CN111740922B (en) Data transmission method, device, electronic equipment and medium
CN114553792B (en) Scheduling parameter adjusting method, device, equipment and computer readable storage medium
CN118869564A (en) Message transmission method, device, equipment and computer readable storage medium
CN113765796B (en) Flow forwarding control method and device
CN113453285B (en) Resource adjusting method, device and storage medium
CN116962161A (en) Path detection method, device, system and computer readable storage medium
CN116828024A (en) Service connection identification method, device, system and storage medium
CN116800675A (en) Flow control method, device, equipment and computer readable storage medium
CN114448903A (en) Message processing method, device and communication equipment
CN118368263A (en) Message processing method, device, equipment and computer readable storage medium
CN116366552A (en) Data storage method, device, equipment and computer readable storage medium
CN109729018B (en) Burst size determining method based on flow shaping and related equipment
CN116938832A (en) Message transmission method, device, equipment and computer readable storage medium
CN115834491A (en) Message processing method, stream specification transmission method, device, system and storage medium

Legal Events

Date Code Title Description
PB01 Publication