[go: up one dir, main page]

CN111614497B - Network bandwidth allocation method and device, electronic equipment and storage medium - Google Patents

Network bandwidth allocation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111614497B
CN111614497B CN202010427755.5A CN202010427755A CN111614497B CN 111614497 B CN111614497 B CN 111614497B CN 202010427755 A CN202010427755 A CN 202010427755A CN 111614497 B CN111614497 B CN 111614497B
Authority
CN
China
Prior art keywords
bandwidth
service flow
size
identification
interval duration
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.)
Active
Application number
CN202010427755.5A
Other languages
Chinese (zh)
Other versions
CN111614497A (en
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.)
Topvision Technology Incies Co ltd
Original Assignee
Topvision Technology Incies 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 Topvision Technology Incies Co ltd filed Critical Topvision Technology Incies Co ltd
Priority to CN202010427755.5A priority Critical patent/CN111614497B/en
Publication of CN111614497A publication Critical patent/CN111614497A/en
Application granted granted Critical
Publication of CN111614497B publication Critical patent/CN111614497B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/52Queue scheduling by attributing bandwidth to queues

Landscapes

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

Abstract

The application provides a network bandwidth allocation method, a device, electronic equipment and a storage medium, wherein the method is applied to a bandwidth allocation end and comprises the following steps: receiving a bandwidth request sent by a bandwidth request terminal on a service flow; the bandwidth request includes: identification of service flows; when the identification of the service flow meets a first preset rule, determining the bandwidth size and the corresponding interval duration corresponding to the identification of the service flow; based on the corresponding bandwidth size and the corresponding interval duration, bandwidth matched with the corresponding bandwidth size is allocated to the service flow from the current moment at intervals, so that the bandwidth request end transmits data to be transmitted on the service flow based on the matched bandwidth, the bandwidth request end does not need to send a bandwidth request to the bandwidth allocation end each time before transmitting the data by the service flow, the bandwidth allocation end does not need to allocate bandwidth to the service flow each time after receiving the bandwidth request, and network delay of data transmission is reduced.

Description

Network bandwidth allocation method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a network bandwidth allocation method, an apparatus, an electronic device, and a storage medium.
Background
The Docsis is used as a mature access network technology, the first version is introduced in 1997, and has been developed for over twenty years, in which the Docsis protocol is continuously and iteratively updated, the access bandwidth is rapidly improved, and the access bandwidth capability of giga-family is achieved.
The Docsis adopts a point-to-multipoint data communication mechanism, downlink data is transmitted in a broadcasting mode, and uplink data is transmitted in A Time Division Multiplexing (ATDMA) mode, a code division multiple access (SCDMA) mode or an Orthogonal Frequency Division Multiplexing (OFDMA) mode. When uplink transmission is required to be performed on data to be transmitted, the prior art adopts a mode of bandwidth application, bandwidth allocation and data sending to transmit the data to be transmitted, which results in a relatively long data delay in the uplink transmission of the data to be transmitted.
With the continuous update of network technology, various network applications have higher and higher requirements on low network delay, and on the other hand, high throughput TCP data transmission has higher and higher requirements on low network delay. Therefore, how to reduce the network delay tends to be a key issue in network technology.
Disclosure of Invention
In view of the foregoing, an object of an embodiment of the present application is to provide a network bandwidth allocation method, apparatus, electronic device, and storage medium, so as to reduce network delay of data transmission caused by bandwidth allocation.
In a first aspect, an embodiment of the present application provides a network bandwidth allocation method, applied to a bandwidth allocation end, where the method includes: receiving a bandwidth request sent by a bandwidth request terminal on a service flow; wherein, the bandwidth request includes: an identification of the service flow; when the identification of the service flow meets a first preset rule, determining the bandwidth size and the corresponding interval duration corresponding to the identification of the service flow; and allocating a bandwidth matched with the corresponding bandwidth to the service flow from the current moment at intervals of the corresponding interval duration based on the corresponding bandwidth and the corresponding interval duration, so that the bandwidth request end transmits data to be transmitted on the service flow based on the matched bandwidth.
In the implementation process, after the bandwidth request sent by the bandwidth request end on the service flow is received, when the identification of the service flow is determined to meet a first preset rule, the bandwidth size and the corresponding interval duration corresponding to the identification of the service flow are determined, then the bandwidth matched with the corresponding bandwidth size is continuously allocated to the service flow at intervals of the corresponding interval duration from the current moment, the bandwidth request end does not need to send the bandwidth request to the bandwidth allocation end each time before the data are transmitted by the service flow, the bandwidth allocation end does not need to allocate the bandwidth to the service flow each time after the bandwidth request is received, and network delay of data transmission caused by bandwidth allocation is reduced.
Based on the first aspect, in one possible design, after said allocating a bandwidth for said service flow that matches said bandwidth size, said method further comprises: determining the flow size of data transmitted on the service flow in real time; and stopping distributing the bandwidth to the service flow when the duration time when the flow is zero reaches the preset duration time.
If data transmission is not performed on the service flow, bandwidth is continuously allocated to the service flow, which results in waste of bandwidth resources, therefore, in the implementation process, when the duration time when the flow on the service flow is zero is determined to reach the preset duration time, bandwidth allocation for the service flow is stopped, and waste of bandwidth resources is avoided.
Based on the first aspect, in one possible design, after said allocating a bandwidth for said service flow that matches said bandwidth size, said method further comprises: determining the flow size of data transmitted on the service flow in real time; when the traffic size is not matched with the bandwidth size allocated for the service flow at the current moment, re-determining a new bandwidth size matched with the traffic size; and when the time length from the last time of allocating the bandwidth to the service flow reaches the corresponding interval time length, allocating the bandwidth matched with the new bandwidth size to the service flow.
When the traffic of data transmitted on a service flow is smaller, if a larger bandwidth is allocated to the service flow, the bandwidth resource is wasted, and when the traffic of data transmitted on the service flow is larger, if a smaller bandwidth is allocated to the service flow, the data transmission duration is longer, so in the implementation process, according to the traffic size of the data transmitted on the service flow, the bandwidth matched with the traffic size is continuously allocated to the service flow, and the bandwidth resource is saved under the condition that the data transmission duration is shorter.
Based on the first aspect, in one possible design, the determining the bandwidth size and the corresponding interval duration corresponding to the identification of the service flow includes: based on the identification of the service flow, the bandwidth size and the corresponding interval duration corresponding to the identification of the service flow are found out from the corresponding relation between the pre-established identification and the bandwidth size and the interval duration.
In the implementation process, by the mode, the bandwidth size and the corresponding interval duration of the service flow can be accurately and rapidly determined under the condition that the bandwidth size and the interval duration required by the service flow are not carried in the bandwidth request.
Based on the first aspect, in one possible design, the step of establishing the correspondence includes: receiving a configuration request which is sent by the bandwidth request terminal and is characterized in that bandwidth allocation parameters need to be configured for the service flow; wherein, the configuration request includes: the size of the bandwidth required by the service flow and the identity of the service flow; when the identification of the service flow meets the first preset rule, establishing a corresponding relation among the identification of the service flow, the required bandwidth and the preset interval duration based on the preset interval duration and the required bandwidth; the required bandwidth is the corresponding bandwidth, and the predetermined interval duration is the corresponding interval duration.
In the implementation process, the corresponding relation can be accurately established for the service flow needing to be subjected to active bandwidth allocation.
In a second aspect, an embodiment of the present application provides a network bandwidth allocation method, applied to a bandwidth request end, where the method includes: determining the identification of a service flow corresponding to the message characteristics according to the message characteristics of the data to be transmitted and the bandwidth of each service flow; transmitting a bandwidth request containing the identifier of the service flow to a bandwidth allocation end, so that the bandwidth allocation end determines the bandwidth size and the corresponding interval duration corresponding to the identifier of the service flow when determining that the identifier of the service flow meets a first preset rule; receiving the bandwidth which is distributed for the service flow by the bandwidth distribution end from the current moment and matches with the corresponding bandwidth at intervals of the corresponding interval duration; and transmitting the data to be transmitted on the service flow based on the matched bandwidth.
In the implementation process, according to the message characteristics of the data to be transmitted and the bandwidth sizes of the service flows, service flow identifiers of the service flows matched with the message characteristics are determined, then the matched service flows can be accurately determined for the data to be transmitted, and a bandwidth request containing the identifiers of the service flows is sent to a bandwidth allocation end, so that when the bandwidth allocation end determines that the identifiers of the service flows meet a first preset rule, the bandwidth sizes corresponding to the identifiers of the service flows and the corresponding interval durations are determined, and bandwidths matched with the corresponding bandwidth sizes are continuously allocated for the service flows every other corresponding interval durations from the current moment, the bandwidth request end transmits the data to be transmitted on the service flows based on the matched bandwidths, and does not need to send bandwidth requests to the bandwidth allocation end each time before the bandwidth request is utilized to transmit the data, and the bandwidth allocation end does not need to receive bandwidth requests each time before the bandwidth request is utilized to allocate the service flows, so that the bandwidth of the network is reduced in bandwidth is allocated, and the bandwidth is reduced.
In a third aspect, an embodiment of the present application provides a network bandwidth allocation device, applied to a bandwidth allocation end, where the device includes: a bandwidth request receiving unit, configured to receive a bandwidth request sent by a bandwidth request end on a service flow; wherein, the bandwidth request includes: an identification of the service flow; a determining unit, configured to determine, when it is determined that the identifier of the service flow meets a first preset rule, a bandwidth size corresponding to the identifier of the service flow and a corresponding interval duration; and the allocation unit is used for allocating the bandwidth matched with the corresponding bandwidth size for the service stream from the current moment every other corresponding interval duration based on the corresponding bandwidth size and the corresponding interval duration, so that the bandwidth request end transmits data to be transmitted on the service stream based on the matched bandwidth.
Based on the third aspect, in one possible design, the apparatus further comprises: a first determining unit, configured to determine, in real time, a traffic size of data transmitted on the service flow; and the stopping distribution unit is used for stopping distributing the bandwidth to the service flow when the duration time when the flow is zero reaches the preset duration time.
Based on the third aspect, in one possible design, the apparatus further comprises: a second determining unit, configured to determine, in real time, a traffic size of data transmitted on the service flow; a redetermining unit, configured to redetermine a new bandwidth size matched with the traffic size when it is determined that the traffic size does not match the bandwidth size allocated to the service flow at the current time; and the reassignment unit is used for assigning the bandwidth matched with the new bandwidth size to the service flow when the time length from the previous bandwidth assignment to the service flow reaches the corresponding interval time length.
Based on the third aspect, in one possible design, the determining unit is specifically configured to find, based on the identifier of the service flow, a bandwidth size and a corresponding interval duration corresponding to the identifier of the service flow from a pre-established correspondence between identifiers and bandwidth sizes and interval durations.
Based on the third aspect, in one possible design, the network bandwidth allocation apparatus further includes an establishing unit, configured to receive a configuration request sent by the bandwidth request end, where the configuration request characterizes that bandwidth allocation parameters need to be configured for the service flow; wherein, the configuration request includes: the size of the bandwidth required by the service flow and the identity of the service flow; when the identification of the service flow meets the first preset rule, establishing a corresponding relation among the identification of the service flow, the required bandwidth and the preset interval duration based on the preset interval duration and the required bandwidth; the required bandwidth is the corresponding bandwidth, and the predetermined interval duration is the corresponding interval duration.
In a fourth aspect, an embodiment of the present application provides a network bandwidth allocation device, applied to a bandwidth request end, where the device includes: the service flow determining unit is used for determining the identification of the service flow corresponding to the message characteristic according to the message characteristic of the data to be transmitted and the bandwidth of each service flow; a bandwidth request sending unit, configured to send a bandwidth request including an identifier of the service flow to a bandwidth allocation end, so that when the bandwidth allocation end determines that the identifier of the service flow meets a first preset rule, determine a bandwidth size and a corresponding interval duration corresponding to the identifier of the service flow; the bandwidth receiving unit is used for receiving the bandwidth which is distributed for the service flow by the bandwidth distribution end from the current moment and matches with the corresponding bandwidth in every corresponding interval time length; and the data transmission unit is used for transmitting the data to be transmitted on the service stream based on the matched bandwidth.
In a fifth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory connected to the processor, where the memory stores a computer program, and when the computer program is executed by the processor, causes the electronic device to perform the method in the first aspect or the second aspect.
In a sixth aspect, embodiments of the present application provide a storage medium having a computer program stored therein, which when run on a computer causes the computer to perform the method of the first or second aspect.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the embodiments of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an existing network bandwidth allocation method provided in an embodiment of the present application.
Fig. 2 is a schematic flow chart of a network bandwidth allocation method according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a network bandwidth allocation device according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of another network bandwidth allocation apparatus according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Icon: 310-a bandwidth request receiving unit; 320-a determination unit; 330-a dispensing unit; 410-a service flow determination unit; 420-a bandwidth request transmission unit; 430-a bandwidth receiving unit; 440-a data transmission unit; 600-an electronic device; 601-a processor; 602-a memory; 603-communication interface.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
The Data Over Cable Service Interface Specification (DOCSIS) protocol is a point-to-multipoint Data transmission protocol, and the downlink direction adopts a broadcast mode to transmit Data messages, and the main delay is physical modulation, interleaving, and the like of Data. The upstream direction uses a Coaxial Modem (CM) to request time slots (i.e., bandwidth), and the coaxial Modem termination system (Cable Modem Termination System, CMTS) allocates time slots within which the CM sends data to be transmitted. Data transmission in the upstream direction is shown in fig. 1, and as can be seen from fig. 1, before data is sent out from the CM end, the CM must first request bandwidth resources from the CMTS and wait for the CMTS to allocate the bandwidth resources before transmitting the data, which tends to cause delay in data transmission.
In order to solve the above-mentioned problem, please refer to fig. 2, fig. 2 is a flowchart of a network bandwidth allocation method according to an embodiment of the present application, and the flowchart shown in fig. 2 will be described in detail, and the method includes the steps of: s21, S22, S23, S24, S25, S26 and S27.
S21: and the bandwidth request end determines the identification of the service flow corresponding to the message characteristics according to the message characteristics of the data to be transmitted and the bandwidth of each service flow.
S22: the bandwidth requesting end sends a bandwidth request containing the identification of the service flow to the bandwidth distributing end.
S23: and the bandwidth allocation terminal receives the bandwidth request.
S24: and when the bandwidth allocation terminal determines that the identification of the service flow meets a first preset rule, determining the bandwidth size and the corresponding interval duration corresponding to the identification of the service flow.
S25: and the bandwidth allocation terminal allocates the bandwidth matched with the corresponding bandwidth size for the service stream from the current moment at intervals of the corresponding interval duration based on the corresponding bandwidth size and the corresponding interval duration.
S26: and the bandwidth request terminal receives the matched bandwidth.
S27: and the bandwidth request end transmits the data to be transmitted on the service stream based on the matched bandwidth.
The above method is described in detail below.
S21: and the bandwidth request end determines the identification of the service flow corresponding to the message characteristics according to the message characteristics of the data to be transmitted and the bandwidth of each service flow.
In this embodiment of the present application, the bandwidth request end may be a CM, and in other embodiments, the bandwidth request end may also be other devices for sending data to be transmitted in an uplink direction.
In the actual implementation process, S21 may be in a manner that after the bandwidth request end receives the data packet of the data to be transmitted sent by the third party, the bandwidth request end extracts the packet characteristics of the data packet, and determines the service flow matched with the packet characteristics based on the packet characteristics, the bandwidth size, the priority and other parameters of each service flow, and since each service flow has a unique identifier representing the identity of the service flow, the identifier of the service flow matched with the data to be transmitted is determined, so as to distribute the data to be transmitted to the service flow matched with the packet characteristics for transmission, where a tool adopted in classification may be a classifier in Docsis.
After determining the identification of the service flow corresponding to the message feature, step S22 is performed.
S22: the bandwidth requesting end sends a bandwidth request containing the identification of the service flow to the bandwidth distributing end.
In this embodiment, the bandwidth allocation end is a CMTS, and in other embodiments, the bandwidth allocation end may be other devices that can be used to allocate network bandwidth.
And under the condition that the bandwidth request end needs to transmit data to be transmitted by utilizing the service flow corresponding to the identification of the service flow, the bandwidth request end generates a bandwidth request based on the identification of the service flow and sends the bandwidth request to the bandwidth allocation end. Wherein the bandwidth request includes an identification of the service flow.
As an embodiment, the bandwidth request further includes a bandwidth size of the service flow.
S23: and the bandwidth allocation terminal receives the bandwidth request.
S24: and when the bandwidth allocation terminal determines that the identification of the service flow meets a first preset rule, determining the bandwidth size and the corresponding interval duration corresponding to the identification of the service flow.
After receiving the bandwidth request, the bandwidth allocation terminal extracts the identifier of the service flow from the bandwidth request, determines whether the identifier of the service flow is the same as the predetermined identifier of the service flow needing bandwidth active allocation, and when determining that the identifier of the service flow is the same as the predetermined identifier of the service flow needing bandwidth active allocation, characterizes that the identifier of the service flow meets a first preset rule, otherwise, characterizes that the identifier of the service flow does not meet the first preset rule; when the bandwidth request terminal determines that the identifier of the service flow meets the first preset rule, based on the identifier of the service flow, the bandwidth size and the corresponding interval duration corresponding to the identifier of the service flow are searched out from the corresponding relation between the pre-established identifier and the bandwidth size and the interval duration.
As another embodiment, if the bandwidth request includes: the step of determining the bandwidth size and the corresponding interval duration corresponding to the identification of the service flow comprises the following steps:
the bandwidth allocation end extracts the bandwidth size of the service flow from the bandwidth request, determines that the bandwidth size of the service flow is the bandwidth size corresponding to the identification of the service flow when the identification of the service flow meets a first preset rule, and takes the predetermined interval duration as the interval duration corresponding to the identification of the service flow.
Wherein, as an implementation manner, the step of determining whether the identifier of the service flow meets the first preset rule includes: determining whether the identifier of the service flow comprises preset characters for representing that bandwidth is required to be actively allocated, if the identifier of the service flow comprises the preset characters, representing that the identifier of the service flow meets the first preset rule, otherwise, representing that the identifier of the service flow does not meet the first preset rule. The preset characters can be A,5, F and the like, and are set according to the requirements of users.
The step of establishing the corresponding relation comprises the following steps: a1, A2 and A3.
A1: the bandwidth request end sends a configuration request which characterizes that bandwidth allocation parameters need to be configured for the service flow to the bandwidth allocation end; wherein, the configuration request includes: the size of the bandwidth required by the service flow and the identity of the service flow.
And the bandwidth request end generates a configuration request based on the bandwidth size required by the service flow and the identification of the service flow, and sends the configuration request to the bandwidth allocation end.
As an embodiment, the configuration request further includes: the bandwidth request end actively allocates the interval duration of the bandwidth.
The interval duration can be set according to user requirements.
A2: and the bandwidth allocation terminal receives the configuration request.
A3: when the bandwidth allocation terminal determines that the identifier of the service flow meets the first preset rule, based on a predetermined interval duration and the required bandwidth size, establishing a corresponding relation between the identifier of the service flow and the required bandwidth size and the predetermined interval duration; the required bandwidth is the corresponding bandwidth, and the predetermined interval duration is the corresponding interval duration.
After receiving the configuration request, the bandwidth allocation end extracts the identifier of the service flow and the required bandwidth from the configuration request, and determines whether the identifier of the service flow meets the first preset rule, where the manner of determining whether the identifier of the service flow meets the first preset rule is referred to as step S24, so that details are not repeated herein, when it is determined that the identifier of the service flow meets the first preset rule, based on a predetermined interval duration and the required bandwidth, a corresponding relationship between the identifier of the service flow and the required bandwidth and the predetermined interval duration is established.
As an implementation manner, when the configuration request includes the interval duration, the interval duration is extracted from the configuration request, and when it is determined that the identifier of the service flow meets the first preset rule, based on the interval duration and the required bandwidth size, a corresponding relationship between the identifier of the service flow and the required bandwidth size and the interval duration is established. Wherein the interval duration is the predetermined interval duration in step A3.
After determining the corresponding bandwidth size and the corresponding interval duration, the bandwidth allocation end executes step S25.
S25: and the bandwidth allocation terminal allocates the bandwidth matched with the corresponding bandwidth size for the service stream from the current moment at intervals of the corresponding interval duration based on the corresponding bandwidth size and the corresponding interval duration.
The bandwidth allocation terminal determines the bandwidth matched with the corresponding bandwidth at the current moment, wherein the size of the matched bandwidth can be the same as or basically the same as the corresponding bandwidth, then information comprising the identification of the service flow and the matched bandwidth is sent to the bandwidth request terminal, so that the bandwidth request terminal can accurately determine that the matched bandwidth is allocated for the service flow to transmit data to be transmitted at the current moment based on the information, then the bandwidth matched with the corresponding bandwidth is redetermined at preset interval time intervals, and the redetermined matched bandwidth and the identification of the service flow are sent to the bandwidth request terminal, wherein the redetermined matched bandwidth can be the same as or different from each other.
It is mentioned that each time a matching bandwidth is determined, it is likely that the bandwidth is in an idle state.
After the bandwidth allocation end sends the matched bandwidth and the identification of the service flow to the bandwidth request end, step S26 is performed.
S26: and the bandwidth request terminal receives the matched bandwidth and the identification of the service flow.
And the bandwidth request terminal receives the matched bandwidth and the identification of the service flow sent by the bandwidth allocation terminal in real time.
S27: and the bandwidth request end transmits the data to be transmitted on the service stream based on the matched bandwidth.
And the bandwidth request end uses the matched bandwidth to transmit the data to be transmitted on the service flow corresponding to the identification of the service flow.
In the implementation process, after the bandwidth request sent by the bandwidth request end on the service flow is received, when the identification of the service flow is determined to meet a first preset rule, the bandwidth size and the corresponding interval duration corresponding to the identification of the service flow are determined, then the bandwidth matched with the corresponding bandwidth size is continuously allocated to the service flow at intervals of the corresponding interval duration from the current moment, the bandwidth request end does not need to send the bandwidth request to the bandwidth allocation end each time before the data are transmitted by the service flow, the bandwidth allocation end does not need to allocate the bandwidth to the service flow each time after the bandwidth request is received, and network delay of data transmission caused by bandwidth allocation is reduced.
If no data transmission is performed on the service flow, bandwidth is continuously allocated to the service flow, which results in waste of bandwidth resources, and therefore, as an embodiment, the following steps are included in S25: b1 and B2.
B1: and the bandwidth allocation end determines the flow size of the data transmitted on the service flow in real time.
And the bandwidth allocation terminal acquires the flow size of the data transmitted on the service flow in real time.
B2: and stopping distributing the bandwidth for the service flow when the bandwidth request end determines that the duration time of the flow with zero reaches the preset duration time.
And the bandwidth request end starts timing when determining that the flow is zero, and stops determining and distributing the bandwidth for the service flow when the duration time of the zero flow reaches the preset duration time, so that the waste of bandwidth resources is avoided. It can be appreciated that when the duration does not reach the preset duration, bandwidth is continuously and actively allocated to the service flow.
When the traffic of the data transmitted on the service flow is smaller, if a larger bandwidth is allocated to the service flow, the bandwidth resource is wasted, and when the traffic of the data transmitted on the service flow is larger, if a smaller bandwidth is allocated to the service flow, the duration of the data transmission is longer, so as an embodiment, after S25, the method further includes the steps of: c1, C2 and C3.
C1: and determining the flow size of the data transmitted on the service flow in real time.
C2: and when the traffic size is not matched with the bandwidth size allocated for the service flow at the current moment, re-determining the new bandwidth size matched with the traffic size.
When the flow is smaller, if the bandwidth allocated for the service flow at the current moment is larger, determining that the flow is not matched with the bandwidth allocated for the service flow at the current moment; when the flow is larger, if the smaller bandwidth is utilized for data transmission, determining that the flow is not matched with the bandwidth allocated for the service flow at the current moment;
in this embodiment of the present application, when it is determined that the ratio of the bandwidth size allocated to the service flow at the current time to the flow size is greater than or equal to a first preset value and less than or equal to a second preset value, matching may be determined, and otherwise, mismatching is determined. The first preset value and the second preset value are set according to actual requirements. The first preset value and the second preset value are positive numbers.
When the traffic size is not matched with the bandwidth size allocated for the service flow at the current moment, re-determining a new bandwidth size matched with the traffic size; it will be appreciated that the bandwidth size is not redetermined when a match is determined.
And C3: and when the time length from the last time of allocating the bandwidth to the service flow reaches the corresponding interval time length, allocating the bandwidth matched with the new bandwidth size to the service flow.
And starting to time from the last time of distributing the bandwidth to the service flow, and distributing the bandwidth matched with the new bandwidth size to the service flow when the time duration reaches the corresponding interval duration.
As an embodiment, after S23, the method further includes:
when the bandwidth allocation end determines that the identification of the service flow does not meet the first preset rule, determining a first bandwidth size corresponding to the identification of the service flow; the bandwidth allocation terminal allocates a first bandwidth matched with the first bandwidth in size to the bandwidth request terminal; and the bandwidth request end receives the matched first bandwidth and transmits data on the service stream by using a transmission band based on the matched first bandwidth.
Wherein the step of determining a first bandwidth size corresponding to the identification of the service flow comprises:
and based on the identification of the service flow, searching the first bandwidth size corresponding to the identification of the service flow from a first corresponding relation between the pre-established identification and the bandwidth size.
The step of establishing the first corresponding relation comprises the following steps: d1, D2 and D3.
D1: the bandwidth request end sends a configuration request which characterizes that bandwidth allocation parameters need to be configured for the service flow to the bandwidth allocation end; wherein, the configuration request includes: the size of the bandwidth required by the service flow and the identity of the service flow.
And the bandwidth request end generates a configuration request based on the bandwidth size required by the service flow and the identification of the service flow, and sends the configuration request to the bandwidth allocation end.
D2: and the bandwidth allocation terminal receives the configuration request.
D3: when the bandwidth allocation end determines that the identification of the service flow does not meet the first preset rule, establishing the first corresponding relation between the identification of the service flow and the required bandwidth based on the required bandwidth; wherein the required bandwidth size is the corresponding bandwidth size.
Referring to fig. 3, fig. 3 is a block diagram of a network bandwidth allocation apparatus according to an embodiment of the present application. The apparatus is applied to the bandwidth allocation end, and the following will describe the structural block diagram shown in fig. 3, where the apparatus includes:
a bandwidth request receiving unit 310, configured to receive a bandwidth request sent by a bandwidth request end on a service flow; wherein, the bandwidth request includes: and the identification of the service flow.
And the determining unit 320 is configured to determine, when it is determined that the identifier of the service flow meets a first preset rule, a bandwidth size corresponding to the identifier of the service flow and a corresponding interval duration.
And an allocation unit 330, configured to allocate, for the service flow, a bandwidth matching the corresponding bandwidth size from the current moment to the service flow at intervals of the corresponding interval duration based on the corresponding bandwidth size and the corresponding interval duration, so that the bandwidth request end transmits data to be transmitted on the service flow based on the matched bandwidth.
As an embodiment, the apparatus further comprises: a first determining unit, configured to determine, in real time, a traffic size of data transmitted on the service flow; and the stopping distribution unit is used for stopping distributing the bandwidth to the service flow when the duration time when the flow is zero reaches the preset duration time.
As an embodiment, the apparatus further comprises: a second determining unit, configured to determine, in real time, a traffic size of data transmitted on the service flow; a redetermining unit, configured to redetermine a new bandwidth size matched with the traffic size when it is determined that the traffic size does not match the bandwidth size allocated to the service flow at the current time; and the reassignment unit is used for assigning the bandwidth matched with the new bandwidth size to the service flow when the time length from the previous bandwidth assignment to the service flow reaches the corresponding interval time length.
As an implementation manner, the determining unit 320 is specifically configured to find, based on the identifier of the service flow, a bandwidth size and a corresponding interval duration corresponding to the identifier of the service flow from a pre-established correspondence between the identifier and the bandwidth size and the interval duration.
As an implementation manner, the apparatus further includes an establishing unit, configured to receive a configuration request sent by the bandwidth request end, where the configuration request characterizes that bandwidth allocation parameters need to be configured for the service flow; wherein, the configuration request includes: the size of the bandwidth required by the service flow and the identity of the service flow; when the identification of the service flow meets the first preset rule, establishing a corresponding relation among the identification of the service flow, the required bandwidth and the preset interval duration based on the preset interval duration and the required bandwidth; the required bandwidth is the corresponding bandwidth, and the predetermined interval duration is the corresponding interval duration.
Referring to fig. 4, fig. 4 is a block diagram of a network bandwidth allocation apparatus according to an embodiment of the present application. The apparatus is applied to the bandwidth request end, and the following will describe the structural block diagram shown in fig. 4, where the apparatus includes:
The service flow determining unit 410 is configured to determine, according to a message characteristic of data to be transmitted and a bandwidth size of each service flow, an identifier of the service flow corresponding to the message characteristic.
And the bandwidth request sending unit 420 is configured to send a bandwidth request including the identifier of the service flow to a bandwidth allocation end, so that the bandwidth allocation end determines, when determining that the identifier of the service flow meets a first preset rule, a bandwidth size and a corresponding interval duration corresponding to the identifier of the service flow.
And a bandwidth receiving unit 430, configured to receive, from the current time, a bandwidth allocated by the bandwidth allocation end for the service flow at intervals of the corresponding interval duration, where the bandwidth matches the corresponding bandwidth.
And a data transmission unit 440, configured to transmit the data to be transmitted on the service flow based on the matched bandwidth.
The process of implementing the respective functions by the functional units corresponding to the present embodiment is described in the embodiment shown in fig. 1-2, and will not be described herein.
Referring to fig. 5, an embodiment of the present application provides a schematic structural diagram of an electronic device 600, where the electronic device 600 may be a bandwidth request terminal or a bandwidth allocation terminal in the above embodiment, and the electronic device 600 may be a personal computer (personal computer, PC), a tablet computer, a smart phone, a personal digital assistant (personal digital assistant, PDA), or the like.
The electronic device 600 may include: memory 602, process 601, communication interface 603, and a communication bus for enabling the connected communication of these components.
The Memory 602 is configured to store various data such as computer program instructions corresponding to the network bandwidth allocation method and apparatus provided in the embodiments of the present application, where the Memory 602 may be, but is not limited to, a random access Memory (Random Access Memory, RAM), a Read Only Memory (ROM), a programmable Read Only Memory (Programmable Read-Only Memory, PROM), an erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), an electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), and the like.
When the electrical device is a bandwidth allocation end, the processor 601 is configured to read and run computer program instructions corresponding to the network bandwidth allocation method and apparatus stored in the memory, so as to receive a bandwidth request sent by the bandwidth request end on a service flow; wherein, the bandwidth request includes: an identification of the service flow; when the identification of the service flow meets a first preset rule, determining the bandwidth size and the corresponding interval duration corresponding to the identification of the service flow; and allocating a bandwidth matched with the corresponding bandwidth to the service flow from the current moment at intervals of the corresponding interval duration based on the corresponding bandwidth and the corresponding interval duration, so that the bandwidth request end transmits data to be transmitted on the service flow based on the matched bandwidth.
When the electrical device is a bandwidth request terminal, the processor 601 is configured to read and run computer program instructions corresponding to a network bandwidth allocation method and apparatus stored in the memory, so as to determine, according to a packet feature of data to be transmitted and a bandwidth size of each service flow, an identifier of the service flow corresponding to the packet feature; transmitting a bandwidth request containing the identifier of the service flow to a bandwidth allocation end, so that the bandwidth allocation end determines the bandwidth size and the corresponding interval duration corresponding to the identifier of the service flow when determining that the identifier of the service flow meets a first preset rule; receiving the bandwidth which is distributed for the service flow by the bandwidth distribution end from the current moment and matches with the corresponding bandwidth at intervals of the corresponding interval duration; and transmitting the data to be transmitted on the service flow based on the matched bandwidth.
The processor 601 may be an integrated circuit chip with signal processing capabilities. The processor 601 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
A communication interface 603 for receiving or transmitting data.
Furthermore, the embodiment of the present application provides a storage medium, in which a computer program is stored, which when executed on a computer, causes the computer to perform the method provided in any one of the embodiments of the present application.
In summary, after receiving a bandwidth request sent by a bandwidth request end on a service flow, when determining that an identifier of the service flow meets a first preset rule, determining a bandwidth size and a corresponding interval duration corresponding to the identifier of the service flow, and then continuously allocating, from the current moment, a bandwidth matched with the corresponding bandwidth size to the service flow every corresponding interval duration, where before using the service flow to transmit data, the bandwidth request end does not need to send a bandwidth request to the bandwidth allocation end every time, and the bandwidth allocation end does not need to allocate bandwidth to the service flow every time after receiving the bandwidth request, thereby reducing network delay of data transmission caused by bandwidth allocation.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners as well. The apparatus embodiments described above are merely illustrative, for example, flow diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based devices which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.

Claims (10)

1. A network bandwidth allocation method, applied to a bandwidth allocation end, the method comprising:
receiving a bandwidth request sent by a bandwidth request terminal on a service flow; wherein, the bandwidth request includes: the service flow identification is used for representing the identity of the service flow, and the service flow identification is that the bandwidth request end determines the service flow identification corresponding to the message characteristics according to the message characteristics of the data to be transmitted and the bandwidth of each service flow;
when the identification of the service flow meets a first preset rule, determining the bandwidth size and the corresponding interval duration corresponding to the identification of the service flow;
and allocating a bandwidth matched with the corresponding bandwidth to the service flow from the current moment at intervals of the corresponding interval duration based on the corresponding bandwidth and the corresponding interval duration, so that the bandwidth request end transmits data to be transmitted on the service flow based on the matched bandwidth.
2. The method of claim 1, wherein after said allocating bandwidth for said service flow that matches said bandwidth size, said method further comprises:
determining the flow size of data transmitted on the service flow in real time;
and stopping distributing the bandwidth to the service flow when the duration time when the flow is zero reaches the preset duration time.
3. The method of claim 1, wherein after said allocating bandwidth for said service flow that matches said bandwidth size, said method further comprises:
determining the flow size of data transmitted on the service flow in real time;
when the traffic size is not matched with the bandwidth size allocated for the service flow at the current moment, re-determining a new bandwidth size matched with the traffic size;
and when the time length from the last time of allocating the bandwidth to the service flow reaches the corresponding interval time length, allocating the bandwidth matched with the new bandwidth size to the service flow.
4. The method of claim 1, wherein the determining the bandwidth size and the corresponding interval duration corresponding to the identification of the service flow comprises:
Based on the identification of the service flow, the bandwidth size and the corresponding interval duration corresponding to the identification of the service flow are found out from the corresponding relation between the pre-established identification and the bandwidth size and the interval duration.
5. The method of claim 4, wherein the step of establishing the correspondence comprises:
receiving a configuration request which is sent by the bandwidth request terminal and is characterized in that bandwidth allocation parameters need to be configured for the service flow; wherein, the configuration request includes: the size of the bandwidth required by the service flow and the identity of the service flow;
when the identification of the service flow meets the first preset rule, establishing a corresponding relation among the identification of the service flow, the required bandwidth and the preset interval duration based on the preset interval duration and the required bandwidth; the required bandwidth is the corresponding bandwidth, and the predetermined interval duration is the corresponding interval duration.
6. A method for allocating network bandwidth, applied to a bandwidth request end, the method comprising:
determining the identification of a service flow corresponding to the message characteristics according to the message characteristics of the data to be transmitted and the bandwidth of each service flow, wherein the identification of the service flow is used for representing the identity of the service flow;
Transmitting a bandwidth request containing the identifier of the service flow to a bandwidth allocation end, so that the bandwidth allocation end determines the bandwidth size and the corresponding interval duration corresponding to the identifier of the service flow when determining that the identifier of the service flow meets a first preset rule;
receiving the bandwidth which is distributed for the service flow by the bandwidth distribution end from the current moment and matches with the corresponding bandwidth at intervals of the corresponding interval duration;
and transmitting the data to be transmitted on the service flow based on the matched bandwidth.
7. A network bandwidth allocation apparatus for use at a bandwidth allocation end, the apparatus comprising:
a bandwidth request receiving unit, configured to receive a bandwidth request sent by a bandwidth request end on a service flow; wherein, the bandwidth request includes: the service flow identification is used for representing the identity of the service flow, and the service flow identification is that the bandwidth request end determines the service flow identification corresponding to the message characteristics according to the message characteristics of the data to be transmitted and the bandwidth of each service flow;
a determining unit, configured to determine, when it is determined that the identifier of the service flow meets a first preset rule, a bandwidth size corresponding to the identifier of the service flow and a corresponding interval duration;
And the allocation unit is used for allocating the bandwidth matched with the corresponding bandwidth size for the service stream from the current moment every other corresponding interval duration based on the corresponding bandwidth size and the corresponding interval duration, so that the bandwidth request end transmits data to be transmitted on the service stream based on the matched bandwidth.
8. A network bandwidth allocation apparatus for use with a bandwidth requesting terminal, the apparatus comprising:
the service flow determining unit is used for determining the identification of the service flow corresponding to the message characteristics according to the message characteristics of the data to be transmitted and the bandwidth of each service flow, wherein the identification of the service flow is used for representing the identity of the service flow;
a bandwidth request sending unit, configured to send a bandwidth request including an identifier of the service flow to a bandwidth allocation end, so that when the bandwidth allocation end determines that the identifier of the service flow meets a first preset rule, determine a bandwidth size and a corresponding interval duration corresponding to the identifier of the service flow;
the bandwidth receiving unit is used for receiving the bandwidth which is distributed for the service flow by the bandwidth distribution end from the current moment and matches with the corresponding bandwidth in every corresponding interval time length;
And the data transmission unit is used for transmitting the data to be transmitted on the service stream based on the matched bandwidth.
9. An electronic device comprising a memory and a processor, the memory having stored therein computer program instructions that, when read and executed by the processor, perform the method of any of claims 1-6.
10. A storage medium having stored thereon computer program instructions which, when read and executed by a computer, perform the method of any of claims 1-6.
CN202010427755.5A 2020-05-19 2020-05-19 Network bandwidth allocation method and device, electronic equipment and storage medium Active CN111614497B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010427755.5A CN111614497B (en) 2020-05-19 2020-05-19 Network bandwidth allocation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010427755.5A CN111614497B (en) 2020-05-19 2020-05-19 Network bandwidth allocation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111614497A CN111614497A (en) 2020-09-01
CN111614497B true CN111614497B (en) 2023-05-09

Family

ID=72204948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010427755.5A Active CN111614497B (en) 2020-05-19 2020-05-19 Network bandwidth allocation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111614497B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114466226B (en) * 2022-01-28 2023-12-08 杭州灵伴科技有限公司 Bandwidth duration duty cycle determination method, device, equipment and computer readable medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1614944A (en) * 2003-11-06 2005-05-11 北京邮电大学 Dynamic distribution control of upward band width in passive optical network
CN101926199A (en) * 2008-04-30 2010-12-22 上海贝尔股份有限公司 Method and device for bandwidth request and allocation in wireless communication system
CN108156538A (en) * 2016-12-02 2018-06-12 中兴通讯股份有限公司 A kind of passive optical network and its implementation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8149706B2 (en) * 2008-07-07 2012-04-03 Verizon Patent And Licensing Inc. Method and system for adjusting bandwidth using multiple timers

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1614944A (en) * 2003-11-06 2005-05-11 北京邮电大学 Dynamic distribution control of upward band width in passive optical network
CN101926199A (en) * 2008-04-30 2010-12-22 上海贝尔股份有限公司 Method and device for bandwidth request and allocation in wireless communication system
CN108156538A (en) * 2016-12-02 2018-06-12 中兴通讯股份有限公司 A kind of passive optical network and its implementation

Also Published As

Publication number Publication date
CN111614497A (en) 2020-09-01

Similar Documents

Publication Publication Date Title
EP4380117A3 (en) Communication method, resource allocation method, and apparatus
JP6699918B2 (en) Air interface resource allocation method and network device
CN102449956A (en) Method, apparatus and device for adjusting resource delegation in network
CN113132434B (en) Distributed service processing method, device, equipment and storage medium
CN106385696A (en) Business processing method, related equipment, and system
CN109951311B (en) Method, device, equipment and storage medium for network slice instantiation
CN111459690A (en) Data transmitting and receiving control method and device, mobile terminal and storage medium
CN111338758A (en) Resource management method and device and electronic equipment
CN111614497B (en) Network bandwidth allocation method and device, electronic equipment and storage medium
CN114666912A (en) Method, apparatus, computer equipment and system for requesting uplink resources
CN116996865A (en) Method, device, equipment and storage medium for upgrading over-the-air
US8503472B2 (en) Partial bandwidth request techniques in wireless networks
CN106686635B (en) Data transmission method and device based on control and configuration protocol of wireless access point
CN110662295B (en) Uplink resource scheduling method and device, network side equipment and terminal equipment
JP2018516016A (en) Data transmission method and apparatus
CN112087678A (en) Bandwidth allocation method and device and bandwidth checking method and device
US20220256523A1 (en) Data multiplexing transmission method, base station, terminal, and storage medium
CN118119028A (en) Channel resource allocation method, device, satellite load and storage medium
CN111556112A (en) Data transmission method and device, electronic equipment and storage medium
CN107371263B (en) Method and device for scheduling uplink resources
CN113316230B (en) Method and device for scheduling data sending task, electronic equipment and storage medium
JP7266559B2 (en) Resource allocation method, device and system
EP3544351A1 (en) Data transmission method in internet of vehicles and terminal
CN115066024B (en) Downlink control information processing method, device, electronic device and storage medium
CN115278904B (en) Method, relay terminal, device and system for requesting uplink resources

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
GR01 Patent grant
GR01 Patent grant