CN116633881A - Bandwidth control method, device, equipment and medium - Google Patents

Bandwidth control method, device, equipment and medium Download PDF

Info

Publication number
CN116633881A
CN116633881A CN202310653475.XA CN202310653475A CN116633881A CN 116633881 A CN116633881 A CN 116633881A CN 202310653475 A CN202310653475 A CN 202310653475A CN 116633881 A CN116633881 A CN 116633881A
Authority
CN
China
Prior art keywords
service data
network
service
server
network channel
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
CN202310653475.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.)
Softcom Power Information Technology Group Co ltd
Original Assignee
Softcom Power Information Technology Group 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 Softcom Power Information Technology Group Co ltd filed Critical Softcom Power Information Technology Group Co ltd
Priority to CN202310653475.XA priority Critical patent/CN116633881A/en
Publication of CN116633881A publication Critical patent/CN116633881A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/76Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions
    • H04L47/762Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions triggered by the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion

Landscapes

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

Abstract

The embodiment of the application discloses a bandwidth control method, a device, equipment and a medium. Wherein the method is performed by a client, the method comprising: generating a service data transmission request according to service association information of service data, and sending the service data transmission request to a server through a first network channel; the service end judges whether the network bandwidth of the service end meets the transmission requirement of the service data according to the service association information, and if not, the capacity of the network bandwidth of the service end is expanded; and transmitting the service data through the second network channel. According to the technical scheme, the network bandwidth can be expanded before the network congestion occurs, the problem of network congestion caused by sudden increase of service data is solved, and the use experience of a user is improved.

Description

Bandwidth control method, device, equipment and medium
Technical Field
The present application relates to the field of cloud transmission technologies, and in particular, to a method, an apparatus, a device, and a medium for controlling bandwidth.
Background
With the rapid growth of mobile internet services, various industries generate more and more service data, the service data are generally stored in a cloud end, and when the service data are transmitted to the cloud end, network congestion generally occurs.
At present, the main technical scheme for solving the network congestion is as follows: the minimum network bandwidth meeting daily service is purchased firstly, and the bandwidth is temporarily upgraded when capacity expansion is needed in the later period. However, the above technical solution is not timely enough for the network congestion, and the network congestion can be handled after the network congestion has occurred, which seriously affects the user experience.
Disclosure of Invention
The invention provides a bandwidth control method, a device, equipment and a medium, which are used for realizing automatic capacity expansion of network bandwidth before network congestion occurs, solving the problem of network congestion caused by suddenly increasing service data and improving the use experience of users.
According to an aspect of the present invention, there is provided a method of controlling bandwidth, the method being performed by a client, the method comprising:
generating a service data transmission request according to service association information of service data, and sending the service data transmission request to a server through a first network channel; the service end judges whether the network bandwidth of the service end meets the transmission requirement of the service data according to the service association information, and if not, the capacity of the network bandwidth of the service end is expanded;
And transmitting the service data through the second network channel.
According to another aspect of the present invention, there is provided a method for controlling bandwidth, the method being performed by a server, the method including:
receiving a service data transmission request sent by a client through a first network channel, and acquiring service association information through the service data transmission request;
if the network bandwidth of the server does not meet the transmission requirement of the service data according to the service association information, the network bandwidth of the server is expanded;
and based on the expanded network bandwidth of the server, transmitting service data through a second network channel.
According to an aspect of the present invention, there is provided a bandwidth control apparatus configured in a client, the apparatus comprising:
the service data transmission request sending module is used for generating a service data transmission request according to service association information of service data and sending the service data transmission request to the server through the first network channel; the service end judges whether the network bandwidth of the service end meets the transmission requirement of the service data according to the service association information, and if not, the capacity of the network bandwidth of the service end is expanded;
And the service data transmission module is used for transmitting service data through the second network channel.
According to another aspect of the present invention, there is provided a bandwidth control apparatus configured in a server, the apparatus including:
the service association information acquisition module is used for receiving a service data transmission request sent by the client through the first network channel and acquiring service association information through the service data transmission request;
the network bandwidth expansion module is used for expanding the network bandwidth of the server if the network bandwidth of the server is determined to not meet the transmission requirement of the service data according to the service association information;
and the service data transmission module is used for transmitting service data through the second network channel based on the expanded network bandwidth of the server.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the method for controlling bandwidth performed by the client in any of the embodiments of the present invention or to perform the method for controlling bandwidth performed by the server in any of the embodiments of the present invention.
According to another aspect of the present application, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement a method for controlling bandwidth performed by a client in any embodiment of the present application, or to implement a method for controlling bandwidth performed by a server in any embodiment of the present application.
The technical scheme of the embodiment of the application comprises the following steps: generating a service data transmission request according to service association information of service data, and sending the service data transmission request to a server through a first network channel; the service end judges whether the network bandwidth of the service end meets the transmission requirement of the service data according to the service association information, and if not, the capacity of the network bandwidth of the service end is expanded; and transmitting the service data through the second network channel. According to the technical scheme, the network bandwidth can be expanded before the network congestion occurs, the problem of network congestion caused by sudden increase of service data is solved, and the use experience of a user is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for controlling bandwidth performed by a client according to a first embodiment of the present application;
fig. 2 is a flowchart of a method for controlling bandwidth executed by a client according to a second embodiment of the present application;
fig. 3 is a flowchart of a method for controlling bandwidth executed by a server according to a third embodiment of the present application;
fig. 4 is a flowchart of a specific implementation of a bandwidth control method according to a fourth embodiment of the present application;
fig. 5 is a signaling diagram of a bandwidth control method according to a fourth embodiment of the present application;
fig. 6 is a specific exemplary diagram of a bandwidth control method according to a fourth embodiment of the present application;
fig. 7 is a schematic structural diagram of a bandwidth control device according to a fifth embodiment of the present application;
Fig. 8 is a schematic structural diagram of a bandwidth control device according to a sixth embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device implementing a bandwidth control method according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," "target," and the like in the description and claims of the present application and in the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a bandwidth control method provided in an embodiment of the present application, where the embodiment of the present application is applicable to a case where a client transmits service data to a server, the method may be performed by a bandwidth control device, where the bandwidth control device may be implemented in hardware and/or software, and the bandwidth control device may be configured in the client, where the client may be an electronic device with data processing capability. As shown in fig. 1, the method is performed by a client, and the method includes:
s110, generating a service data transmission request according to the service association information of the service data, and sending the service data transmission request to the server through the first network channel.
S110 is set in such a way, the server can judge whether the network bandwidth of the server meets the transmission requirement of service data according to the service association information, and if not, the capacity of the network bandwidth of the server is expanded.
The service data may be data that needs to be transmitted from the client to the server, the service data may be data generated by a user in a process of using the client, and exemplary service data may be video data, image data, a website, and the like, and in a specific scenario, the service data may be video data that needs to be stored in a cloud network disk. The service association information refers to association information of service data, including, but not limited to, a size of the service data, a transmission time of the service data, a maximum transmission time of the service data, an ID of the service data, a unique identifier of a client, and the like. The service data transmission request may be request information sent from the client to the server for characterizing that the client is ready to send service data to the server. The first network channel may be a network channel between the client and the server for transmitting the traffic data transmission request.
Specifically, if the control for sending the service data is detected to be triggered, extracting relevant information of the service data to obtain information such as the size of the service data, further determining service association information according to the transmission requirement (which can be input by a user or calibrated according to the relevant information of the service data in advance), generating a service data transmission request according to the service association information, and sending the service data transmission request to a server through a first network channel.
Further, after the service data transmission request is sent to the server through the first network channel, the server can extract service related information according to the service data transmission request, and then judge whether the network bandwidth of the server meets the transmission requirement according to the service related information sent by each client, if so, the transmission of the service data can be performed, and if not, the expansion of the network bandwidth of the server can be performed, and then the transmission of the service data is performed.
The scheme is that the client can send the service data transmission request to the server through the first network channel, and under the condition that the first network channel does not transmit service data, the capacity of the service data transmission request is usually small, and the first network channel is usually smooth, so that the server can timely receive the service data transmission request sent by the client, further, network congestion can be predicted in advance, and network capacity expansion processing is performed when the network is about to be congested.
S120, transmitting service data through the second network channel.
The second network channel may be a network channel between the client and the server for transmitting service data.
Specifically, if the information allowing the service data to be transmitted sent by the server side is received, the service data can be sent to the server side through the second network channel.
In the embodiment of the application, the service end can not influence the receiving of the service data transmission request due to the increase of the received service data by distinguishing the network channels for transmitting the service data and the service data transmission request, so that the network congestion can be predicted according to the service data transmission request, and the network bandwidth can be expanded before the network congestion occurs.
The technical scheme of the embodiment of the application comprises the following steps: generating a service data transmission request according to service association information of service data, and sending the service data transmission request to a server through a first network channel; the service end judges whether the network bandwidth of the service end meets the transmission requirement of the service data according to the service association information, and if not, the capacity of the network bandwidth of the service end is expanded; and transmitting the service data through the second network channel. According to the technical scheme, the network bandwidth can be expanded before the network congestion occurs, the problem of network congestion caused by sudden increase of service data is solved, and the use experience of a user is improved.
Example two
Fig. 2 is a flowchart of a bandwidth control method according to a second embodiment of the present application, where the embodiment of the present application is optimized based on the foregoing embodiment.
As shown in fig. 2, the method in the embodiment of the present application is executed by a client, and specifically includes the following steps:
s210, generating a service data transmission request according to the service association information of the service data, and sending the service data transmission request to the server through the first network channel.
S210 is set as such. The service end can judge whether the network bandwidth of the service end meets the transmission requirement of the service data according to the service association information, and if not, the network bandwidth of the service end is expanded.
And S220, if the transmission rate of the service data sent by the server is received, sending the service data to the server based on the transmission rate in the second network channel.
The service end determines the transmission rate applicable to the current network condition according to the real-time condition of the network, and the client end can send the service data to the service end according to the transmission rate so as to ensure that the network is not extremely jammed.
Specifically, if the transmission rate of the service data sent by the server is received, sending the service data to the server in the second network channel based on the transmission rate; if the transmission rate of the service data sent by the server is not received, the service data can be transmitted to the server through the second network channel according to the set transmission rate.
In the embodiment of the application, the service data transmission request is transmitted in the first network channel, and the service data is transmitted in the second network channel, so that the service data can be prevented from occupying the flow of the first network channel, the service data transmission request is influenced by the service end, and the specific way for distinguishing the two network channels can be as follows: setting a double network card at a server, wherein one network card is used for corresponding to a first network channel, and the other network card is used for corresponding to a second network channel; or, using a plurality of servers to respectively receive service data and service data transmission requests by different servers; it should be noted that, various ways of avoiding the first network channel and the second network channel from occupying the same IP can achieve the effect of distinguishing the network channels.
In an embodiment of the present application, optionally, a process of determining a first network channel and a second network channel includes: in each network channel, if the identifier of the network channel is matched with a first preset identifier, the network channel is used as a first network channel; and in each network channel, if the identifier of the network channel is matched with the second preset identifier, taking the network channel as a second network channel.
The first preset identifier and the second preset identifier may be two identifiers calibrated in advance, and the specific form of the identifier is not limited in the embodiment of the present application.
Specifically, in one implementation embodiment, each network channel has a corresponding identifier, a network channel matched with a first preset identifier in each identifier is used as a first network channel, and a network channel matched with a second preset identifier in each identifier is used as a second network channel. In another embodiment, in each network channel, the network channels that cannot be used as the first network channel and the second network channel have no identifier, so in each identifier, if the identifier matches with the first preset identifier, the channel is the first network channel, otherwise, the channel is the second network channel.
The scheme is set in such a way, and the first network channel and the second network channel can be rapidly distinguished.
In an embodiment of the present application, optionally, a process of determining a first network channel and a second network channel includes: determining a channel which does not transmit service data at the current moment in each network channel as a first network channel; and determining a channel which does not transmit the service data transmission request at the current moment in each network channel as a second network channel.
Specifically, the first network channel and the second network channel are not fixed network channels, and the first network channel and the second network channel can be determined according to the data information actually transmitted in each network channel. The method comprises the following steps: if no service data is transmitted in a certain network channel at the current moment, determining the network channel as a first network channel; and if the service data transmission request is not transmitted in a certain network channel at the current moment, determining the network channel as a second network channel.
In the embodiment of the present application, optionally, a channel which does not transmit service data at the current moment in each network channel is determined as a first network channel, including: if the transmission end identification of the service data is sent to the server before the current moment, determining that the transmission of the service data is completed at the current moment; and determining the channel in which the service data is transmitted at the current moment in each network channel as a first network channel.
Specifically, if the transmission end identifier corresponding to the service data in a certain network channel is sent to the server, which indicates that the service data in the channel is transmitted completely, the channel in which the transmission end identifier of each service data in each network channel is transmitted completely at the current moment can be determined as the first network channel.
Further, determining a channel which does not transmit a service data transmission request at the current moment in each network channel as a second network channel includes: if the transmission end identifier of the service data transmission request is sent to the server before the current moment, determining that the service data transmission request is transmitted at the current moment; and determining the channel in which the transmission of each service data transmission request is completed at the current moment in each network channel as a second network channel.
Similarly, if the transmission end identifier corresponding to the service data transmission request is sent to the server side in a certain network channel, which indicates that the service data transmission request in the channel is transmitted, the channel in which the transmission end identifier corresponding to each service data transmission request is transmitted at the current moment in each network channel can be determined as the second network channel.
The embodiment of the application can flexibly determine the first network channel and the second network channel, and fully utilize network resources. In addition, the embodiment of the application can send the service data to the server according to the transmission rate, and can further avoid the occurrence of network congestion.
Example III
Fig. 3 is a flowchart of a bandwidth control method provided in a third embodiment of the present application, where the embodiment of the present application is applicable to a case where a client transmits service data to a server, the method may be performed by a bandwidth control device, where the bandwidth control device may be implemented in a hardware and/or software form, and the bandwidth control device may be configured in a server, where the server may be an electronic device with data processing capability. As shown in fig. 3, the method is executed by a server, and the method includes:
S310, receiving a service data transmission request sent by a client through a first network channel, and acquiring service association information through the service data transmission request.
Specifically, if a service data transmission request sent by a client is received in the first network channel, information extraction is performed on the service data transmission request to obtain service association information, and after the service association information of each client is obtained, S320 may be executed.
And S320, if the network bandwidth of the server does not meet the transmission requirement of the service data according to the service association information, expanding the network bandwidth of the server.
The transmission requirement of the service data can be the bandwidth required by normal transmission of the service data, and the larger the network bandwidth of the service end is, the more the transmission requirement of the larger service data can be met.
Specifically, after obtaining service association information of a client, determining a preparation transmission rate of service data corresponding to the client, superposing the preparation transmission rates of the client to obtain a total transmission rate, judging whether the network bandwidth of a server meets the transmission requirement of the service data according to the total transmission rate, if not, indicating that network congestion is about to occur, and calling public cloud to expand the network bandwidth; if so, the expansion of the network bandwidth may not be performed.
Further, whether the network bandwidth of the server side meets the transmission requirement of the service data is judged according to the total transmission rate, which may be: if the network bandwidth of the server is smaller than the total transmission rate, determining that the network bandwidth of the server does not meet the transmission requirement of the service data; or if the network bandwidth of the server is smaller than the bandwidth requirement corresponding to the total transmission rate, determining that the network bandwidth of the server does not meet the transmission requirement of the service data.
Further, the capacity expansion of the network bandwidth of the server comprises: and calling a public cloud API to realize temporary capacity expansion of the network bandwidth of the server.
In the embodiment of the present application, optionally, the service association information includes a size of a service data capacity and a data transmission time; according to the service association information, determining that the network bandwidth of the server does not meet the transmission requirement of the service data comprises the following steps: determining a target transmission rate of the service data according to the size of the service data capacity and the data transmission time; if the sum of the target transmission rates of the service data of the clients is larger than the network bandwidth of the server, determining that the network bandwidth of the server does not meet the transmission requirement of the service data.
Specifically, in one possible embodiment, the service related information includes a size of a service data capacity and a data transmission time, and the size of the service data capacity is divided by the data transmission time to obtain a target transmission rate of the service data. In another possible embodiment, the service association information includes a size of a service data capacity and a maximum time of data transmission, and the size of the service data capacity is divided by the maximum time of data transmission to obtain the target transmission rate.
The scheme can accurately determine the target transmission rate required by transmitting the service data, and determine the condition that the sum of the target transmission rates of the service data of all clients is larger than the network bandwidth of the server as that the network bandwidth of the server does not meet the transmission requirement of the service data, thereby realizing accurate pre-judgment of network congestion.
In the embodiment of the present application, optionally, expanding the network bandwidth of the server includes: determining the target expansion capacity of the network bandwidth according to the target transmission rate of the service data of each client and the network bandwidth of the current server; and calling public cloud through an application programming interface based on the target capacity expansion, and expanding the network bandwidth of the server.
Specifically, the target transmission rate of the service data of each client reflects the network bandwidth required when the client sends the service data to the server, the current server network bandwidth is the network bandwidth that the current server can bear, according to the difference between the two, the capacity expansion requirement of the network bandwidth, namely the target capacity expansion, is determined, and then the public cloud is called through the application programming interface based on the target capacity expansion, so that the capacity expansion of the network bandwidth of the server is performed. For example, the current network bandwidth of the server may be subtracted from the sum of the target transmission rates of the service data of the clients to obtain the target expansion capacity.
S330, based on the expanded network bandwidth of the server, the service data is transmitted through the second network channel.
Specifically, after the network bandwidth of the server is expanded, the transmission requirement of the service data can be met, and further, the service data is transmitted in the second network channel.
In the embodiment of the present application, optionally, based on the expanded network bandwidth of the server, the service data transmission task is executed, including: determining the transmission rate of the service data according to the expanded network bandwidth of the service end, the size of the service data capacity, the data transmission time and the service grade; and sending the transmission rate to the client so that the client sends the service data to the server according to the transmission rate.
The size of the service data capacity and the data transmission time may be obtained from the service association information. The service class may be obtained from service association information on the one hand, and may be a class of clients calibrated in advance as the service class on the other hand.
Specifically, the transmission rate of the service data corresponding to each client can be adaptively determined according to the expanded network bandwidth of the service end, the size of the service data capacity, the data transmission time and the service level. For example, if the service levels are the same, the transmission rate required by the client may be calculated according to the size of the service data capacity and the data transmission time, and if the expanded network bandwidth of the server may meet the data transmission requirements of each client, the transmission rate required by the client is taken as the transmission rate of the service data.
According to the embodiment of the application, the service data transmission rate is sent to the client, so that when the client sends the service data to the server, the data transmission is carried out at the transmission rate, the uploading of the service data is orderly standardized, and the occurrence of network congestion can be avoided.
In an embodiment of the present application, optionally, the method further includes: and if the network bandwidth of the server reaches the expansion upper limit, executing the service data transmission task in a current limiting and/or queuing mode.
Specifically, when the bandwidth expansion of the network at the server side is performed, an upper expansion limit may be set, where the upper expansion limit may be determined according to expansion cost, or may be determined according to an upper limit of the bandwidth of the operator. Furthermore, if the network bandwidth of the server reaches the capacity expansion upper limit, a flow limiting and/or queuing scheme can be formulated through the grade of the service data transmission request of the client, and the service data transmission task is executed in a flow limiting and/or queuing mode, so that the service with shorter time consumption is preferentially carried out, the service with longer time consumption is carried out, and the flow limitation can also be carried out.
According to the technical scheme provided by the embodiment of the application, the service data transmission request is received through the first network channel, and the service data is transmitted through the second network channel, so that the service end can not influence the receiving of the service data transmission request due to the service data congestion when receiving the service data transmission request, further whether the network congestion occurs can be pre-judged in advance, and if the network congestion occurs, the network bandwidth of the service end can be expanded to avoid the network congestion.
Example IV
Fig. 4 is a flowchart of a specific implementation of a bandwidth control method according to the fourth embodiment of the present application, and fig. 5 is a signaling diagram of a bandwidth control method according to the fourth embodiment of the present application. On the basis of the above embodiments, a preferred embodiment is provided.
As shown in fig. 4, the method of this embodiment specifically includes the following steps:
s410, the client generates a service data transmission request according to the service association information of the service data, and sends the service data transmission request to the server through the first network channel.
S420, the server receives the service data transmission request sent by the client through the first network channel, and obtains service association information through the service data transmission request.
And S430, if the server determines that the network bandwidth of the server does not meet the transmission requirement of the service data according to the service association information, expanding the network bandwidth of the server.
S440, between the client and the server, based on the expanded network bandwidth of the server, the transmission of the service data is performed through the second network channel.
The embodiment of the application has the same beneficial effects as the embodiment.
In a specific embodiment, as shown in fig. 6, a client sends a service data transmission request to a network control unit in a server through a first network channel, the network control unit predicts whether network congestion occurs according to service association information extracted from the service data transmission request, and if so, invokes a public cloud API to expand the network bandwidth of the server, and sends a service data transmission rate and a service data transmission time to the client through the first network channel. Further, the service processing units in the client and the server transmit service data through the second network channel.
Example five
Fig. 7 is a schematic structural diagram of a bandwidth control device provided in a fifth embodiment of the present application, where the device may be configured in a client, and may execute the bandwidth control method performed by the client provided in any embodiment of the present application, and the bandwidth control device has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 7, the apparatus includes:
a service data transmission request sending module 510, configured to generate a service data transmission request according to service association information of service data, and send the service data transmission request to a server through a first network channel; the service end judges whether the network bandwidth of the service end meets the transmission requirement of the service data according to the service association information, and if not, the capacity of the network bandwidth of the service end is expanded;
the service data transmission module 520 is configured to transmit service data through the second network channel.
Optionally, the apparatus further includes an identification matching module, which includes:
the first preset identification matching unit is used for taking the network channel as a first network channel if the identification of the network channel is matched with the first preset identification in each network channel;
And the second preset identifier matching unit is used for taking the network channel as a second network channel if the identifier of the network channel is matched with the second preset identifier in each network channel.
Optionally, the apparatus further includes a network channel determining module, which includes:
the first network channel determining unit is used for determining a channel which does not transmit service data at the current moment in all the network channels as a first network channel;
and the second network channel determining unit is used for determining a channel which does not transmit the service data transmission request at the current moment in all the network channels as a second network channel.
Optionally, the first network channel determining unit includes:
a service data determining subunit, configured to determine that the service data is transmitted at the current time if the transmission end identifier of the service data is sent to the server before the current time;
the first network channel determining subunit is used for determining a channel in which all service data are transmitted at the current moment in all network channels as a first network channel;
a second network channel determination unit comprising:
if the transmission end identifier of the service data transmission request is sent to the server before the current moment, determining that the service data transmission request is transmitted at the current moment;
And determining the channel in which the transmission of each service data transmission request is completed at the current moment in each network channel as a second network channel.
Optionally, the service data transmission module 520 includes:
and the service data transmission unit is used for transmitting the service data to the server on the basis of the transmission rate in the second network channel if the transmission rate of the service data transmitted by the server is received.
The bandwidth control device provided by the embodiment of the application can execute the bandwidth control method executed by the client provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method.
Example six
Fig. 8 is a schematic structural diagram of a bandwidth control device according to a sixth embodiment of the present application, where the device is configured in a server, and the device may execute the bandwidth control method executed by the server according to any embodiment of the present application, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 8, the apparatus includes:
the service association information obtaining module 610 is configured to receive a service data transmission request sent by a client through a first network channel, and obtain service association information through the service data transmission request;
The network bandwidth expansion module 620 is configured to expand the network bandwidth of the server if it is determined that the network bandwidth of the server does not meet the transmission requirement of the service data according to the service association information;
the service data transmission module 630 is configured to perform transmission of service data through the second network channel based on the expanded network bandwidth of the server.
Optionally, the service related information includes a size of a service data capacity and a data transmission time;
the network bandwidth expansion module 620 includes:
a target transmission rate determining unit, configured to determine a target transmission rate of the service data according to the size of the service data capacity and the data transmission time;
a judging unit for judging whether the service data meets the transmission requirement or not, wherein the judging unit is used for determining that the network bandwidth of the server does not meet the transmission requirement of the service data if the sum of the target transmission rates of the service data of all the clients is larger than the network bandwidth of the server;
the network bandwidth expansion module 620 includes:
the target capacity expansion determining unit is used for determining the target capacity expansion of the network bandwidth according to the target transmission rate of the service data of each client and the network bandwidth of the current server;
and the network bandwidth capacity expansion unit is used for expanding the network bandwidth of the server through calling public cloud through the application programming interface based on the target capacity expansion.
The bandwidth control device provided by the embodiment of the application can execute the bandwidth control method executed by the server provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method.
Example seven
Fig. 9 shows a schematic diagram of an electronic device 10 that may be used to implement an embodiment of the application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the applications described and/or claimed herein.
As shown in fig. 9, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the respective methods and processes described above, for example, a bandwidth control method.
In some embodiments, the method of controlling bandwidth may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the bandwidth control method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the bandwidth control method in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on 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 fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (11)

1. A method for controlling bandwidth, performed by a client, the method comprising:
generating a service data transmission request according to service association information of service data, and sending the service data transmission request to a server through a first network channel; the service end judges whether the network bandwidth of the service end meets the transmission requirement of the service data according to the service association information, and if not, the capacity of the network bandwidth of the service end is expanded;
And transmitting the service data through the second network channel.
2. The method of claim 1, wherein determining the first network channel and the second network channel comprises:
in each network channel, if the identifier of the network channel is matched with a first preset identifier, the network channel is used as a first network channel;
and in each network channel, if the identifier of the network channel is matched with the second preset identifier, taking the network channel as a second network channel.
3. The method of claim 1, wherein determining the first network channel and the second network channel comprises:
determining a channel which does not transmit service data at the current moment in each network channel as a first network channel;
and determining a channel which does not transmit the service data transmission request at the current moment in each network channel as a second network channel.
4. A method according to claim 3, wherein determining a channel of the network channels that is not transmitting traffic data at the current time as the first network channel comprises:
if the transmission end identification of the service data is sent to the server before the current moment, determining that the transmission of the service data is completed at the current moment;
Determining a channel in which the service data is transmitted at the current moment in each network channel as a first network channel;
determining a channel which does not transmit a service data transmission request at the current moment in each network channel as a second network channel, wherein the method comprises the following steps:
if the transmission end identifier of the service data transmission request is sent to the server before the current moment, determining that the service data transmission request is transmitted at the current moment;
and determining the channel in which the transmission of each service data transmission request is completed at the current moment in each network channel as a second network channel.
5. The method of claim 1, wherein the transmitting of the traffic data through the second network channel comprises:
and if the transmission rate of the service data sent by the server is received, sending the service data to the server based on the transmission rate in the second network channel.
6. A method for controlling bandwidth, performed by a server, the method comprising:
receiving a service data transmission request sent by a client through a first network channel, and acquiring service association information through the service data transmission request;
if the network bandwidth of the server does not meet the transmission requirement of the service data according to the service association information, the network bandwidth of the server is expanded;
And based on the expanded network bandwidth of the server, transmitting service data through a second network channel.
7. The method of claim 6, wherein the service association information includes a size of a service data capacity and a data transmission time;
according to the service association information, determining that the network bandwidth of the server does not meet the transmission requirement of the service data comprises the following steps:
determining a target transmission rate of the service data according to the size of the service data capacity and the data transmission time;
if the sum of the target transmission rates of the service data of the clients is larger than the network bandwidth of the server, determining that the network bandwidth of the server does not meet the transmission requirement of the service data;
expanding the network bandwidth of the server side, comprising:
determining the target expansion capacity of the network bandwidth according to the target transmission rate of the service data of each client and the network bandwidth of the current server;
and calling public cloud through an application programming interface based on the target capacity expansion, and expanding the network bandwidth of the server.
8. A bandwidth control apparatus, wherein the apparatus is configured in a client, the apparatus comprising:
the service data transmission request sending module is used for generating a service data transmission request according to service association information of service data and sending the service data transmission request to the server through the first network channel; the service end judges whether the network bandwidth of the service end meets the transmission requirement of the service data according to the service association information, and if not, the capacity of the network bandwidth of the service end is expanded;
And the service data transmission module is used for transmitting service data through the second network channel.
9. A bandwidth control apparatus, wherein the apparatus is configured in a server, the apparatus comprising:
the service association information acquisition module is used for receiving a service data transmission request sent by the client through the first network channel and acquiring service association information through the service data transmission request;
the network bandwidth expansion module is used for expanding the network bandwidth of the server if the network bandwidth of the server is determined to not meet the transmission requirement of the service data according to the service association information;
and the service data transmission module is used for transmitting service data through the second network channel based on the expanded network bandwidth of the server.
10. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of controlling bandwidth performed by a client according to any one of claims 1 to 5 or to perform the method of controlling bandwidth performed by a server according to any one of claims 6 to 7.
11. A computer readable storage medium storing computer instructions for causing a processor to implement the method of controlling bandwidth of any one of claims 1-5 or the method of controlling bandwidth of any one of claims 6-7 when executed.
CN202310653475.XA 2023-06-02 2023-06-02 Bandwidth control method, device, equipment and medium Pending CN116633881A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310653475.XA CN116633881A (en) 2023-06-02 2023-06-02 Bandwidth control method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310653475.XA CN116633881A (en) 2023-06-02 2023-06-02 Bandwidth control method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN116633881A true CN116633881A (en) 2023-08-22

Family

ID=87638038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310653475.XA Pending CN116633881A (en) 2023-06-02 2023-06-02 Bandwidth control method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN116633881A (en)

Similar Documents

Publication Publication Date Title
CN114095438B (en) Data transmission method, apparatus, device, storage medium and computer program product
CN114253710A (en) Processing method of computing request, intelligent terminal, cloud server, equipment and medium
CN116567077A (en) Bare metal instruction sending method, device, equipment and storage medium
CN115865734B (en) Fault detection method, data generation method, device, equipment and medium
CN116594563A (en) Distributed storage capacity expansion method and device, electronic equipment and storage medium
CN115103024B (en) Sequence number generation method and device, electronic equipment and storage medium
CN116661960A (en) Batch task processing method, device, equipment and storage medium
CN113132758B (en) Control method, device and computer program product of content distribution network
CN116633881A (en) Bandwidth control method, device, equipment and medium
CN115543416A (en) Configuration updating method and device, electronic equipment and storage medium
CN112988417A (en) Message processing method and device, electronic equipment and computer readable medium
CN114363209B (en) Performance detection method, device, equipment and storage medium based on TCP (Transmission control protocol) network
CN115442432B (en) Control method, device, equipment and storage medium
CN114553894B (en) Data synchronization method, device, system and storage medium
CN117082083A (en) Data storage method, device and medium based on distributed Internet of things architecture
CN116450915A (en) Application degradation method, device, electronic equipment and storage medium
CN115801763A (en) File transmission method and device, electronic equipment and storage medium
CN117200945A (en) Data monitoring method and device, electronic equipment and storage medium
CN117493000A (en) Task processing method, device, equipment and medium
CN116132418A (en) Streaming media transmission method and device, electronic equipment and storage medium
CN114722006A (en) Data transmission control method, device, equipment and storage medium
CN116781572A (en) Service availability detection method, device, equipment and storage medium
CN117596288A (en) Message transmission method and device, electronic equipment and storage medium
CN117651078A (en) Data transmission method and device, electronic equipment and storage medium
CN116801001A (en) Video stream processing method and device, electronic equipment and storage medium

Legal Events

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