Nothing Special   »   [go: up one dir, main page]

CN113438185A - Bandwidth allocation method, device and equipment - Google Patents

Bandwidth allocation method, device and equipment Download PDF

Info

Publication number
CN113438185A
CN113438185A CN202110702418.7A CN202110702418A CN113438185A CN 113438185 A CN113438185 A CN 113438185A CN 202110702418 A CN202110702418 A CN 202110702418A CN 113438185 A CN113438185 A CN 113438185A
Authority
CN
China
Prior art keywords
bandwidth
service port
flexe
flexe service
resources
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.)
Granted
Application number
CN202110702418.7A
Other languages
Chinese (zh)
Other versions
CN113438185B (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN202110702418.7A priority Critical patent/CN113438185B/en
Publication of CN113438185A publication Critical patent/CN113438185A/en
Application granted granted Critical
Publication of CN113438185B publication Critical patent/CN113438185B/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
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/72Admission control; Resource allocation using reservation actions during connection setup
    • 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/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/822Collecting or measuring resource availability data

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 bandwidth allocation method, a bandwidth allocation device and bandwidth allocation equipment. The network equipment selects a first part of bandwidth resources from total bandwidth resources corresponding to a Flexe group configured by the network equipment as shared bandwidth, allocates corresponding bandwidth resources to each Flexe service port, and selects the bandwidth resources allocated to each Flexe service port from the reserved shared bandwidth and allocates the bandwidth resources to each Flexe service port correspondingly when monitoring that the bandwidth utilization rate of at least one Flexe service port exceeds a set bandwidth threshold. The method and the device enable each Flexe service port not to be limited by the configured bandwidth resource any more, dynamically call the reserved shared bandwidth to alleviate the problem of packet loss caused by traffic congestion when the bandwidth utilization rate of the Flexe service port exceeds the set bandwidth threshold, and meanwhile, the bandwidth utilization rate of the Flexe Group corresponding to the total bandwidth can be improved, and further the rationality of bandwidth allocation can be improved.

Description

Bandwidth allocation method, device and equipment
Technical Field
The present application relates to network communication technologies, and in particular, to a method, an apparatus, and a device for allocating bandwidth.
Background
The FlexE (Flexible Ethernet) technology is a new Flexible Ethernet technology recently emerging, and the FlexE Shim Layer introduced on the basis of IEEE802.3 realizes the decoupling of the MAC Layer (Media Access Control) and the PHY Layer (Physical Layer), thereby realizing Flexible rate matching. The Flexe is defined based on a Client/Group framework, and the setting of the Flexe Client can support the mapping and transmission of any plurality of different service ports on any PHY of the Flexe Group, thereby realizing the functions of binding, channelization, subrate and the like.
The existing network equipment applying the Flexe technology can flexibly create and adjust a service port according to different requirements of users, breaks through the hardware limitation of ports in the traditional network, but is difficult to avoid the problem of network packet loss under the conditions of frequent network bursts and large difference of different service demands, and the network bandwidth cannot be reasonably and effectively utilized. Such as: one situation is: the user demand of a service I and a service II at a certain time is very large, which causes the traffic of the service I and the traffic of the service II to exceed the configured bandwidth, and further causes the packet loss phenomenon, and the other situation is as follows: except for the first service and the second service, the other services have low demand and bandwidth is not used basically, so that the total bandwidth utilization rate corresponding to the Flexe Group is low and the utilization is not reasonable enough.
Disclosure of Invention
The application provides a bandwidth allocation method, a bandwidth allocation device and bandwidth allocation equipment, so as to improve the reasonability of bandwidth allocation.
The technical scheme provided by the application comprises the following steps:
in one aspect, an embodiment of the present application provides a bandwidth allocation method, where the method is applied to a network device, and the method includes:
selecting a first part of bandwidth resources from total bandwidth resources corresponding to a flexible Ethernet Flexe group configured by the network equipment as shared bandwidth, wherein the shared bandwidth is reserved in advance at the beginning; binding at least one Flexe service port by the Flexe group;
allocating corresponding bandwidth resources for each Flexe service port according to the set service influence factor of each Flexe service port, wherein the sum of the bandwidth resources allocated to each Flexe service port is the remaining bandwidth resources except the first part of bandwidth resources in the total bandwidth resources;
and when the bandwidth utilization rate of at least one Flexe service port exceeds the set bandwidth threshold value, selecting the bandwidth resources allocated to each Flexe service port from the shared bandwidth and correspondingly allocating the bandwidth resources to each Flexe service port.
On the other hand, an embodiment of the present application provides a bandwidth allocation apparatus, where the apparatus is applied to a network device, and the apparatus includes:
a shared bandwidth selection unit, configured to select a first part of bandwidth resources from total bandwidth resources corresponding to a flexible ethernet FlexE group configured by the network device as a shared bandwidth, where the shared bandwidth is initially reserved in advance; binding at least one Flexe service port by the Flexe group;
a bandwidth resource allocation unit, configured to allocate, according to the set service impact factor of each FlexE service port, a corresponding bandwidth resource for each FlexE service port, where the sum of the bandwidth resources allocated to each FlexE service port is the remaining bandwidth resource except for the first part of bandwidth resources in the total bandwidth resource;
and the bandwidth resource extension unit is used for selecting the bandwidth resource allocated to each Flexe service port from the shared bandwidth and correspondingly allocating the bandwidth resource to each Flexe service port when the monitored bandwidth utilization rate of at least one Flexe service port exceeds the set bandwidth threshold.
According to the technical scheme, the network equipment monitors the Flexe service ports bound with the Flexe, when it is monitored that the bandwidth utilization rate of at least one Flexe service port exceeds the set bandwidth threshold, the bandwidth resources distributed to each Flexe service port are selected from the reserved shared bandwidth and correspondingly distributed to each Flexe service port, so that each Flexe service port is not limited by the configured bandwidth resources any more, when the bandwidth utilization rate of the Flexe service port exceeds the set bandwidth threshold, the reserved shared bandwidth is dynamically called to relieve the packet loss problem caused by traffic congestion, meanwhile, the bandwidth utilization rate of the Flexe Group corresponding to the total bandwidth can be improved, and further the reasonability of bandwidth distribution can be improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart of a first bandwidth allocation method provided in the present application;
fig. 2 is a flowchart of a second bandwidth allocation method provided in the present application;
FIG. 3 is a flow chart of a third bandwidth allocation method provided herein;
fig. 4 is a schematic structural diagram of a bandwidth allocation apparatus provided in the present application;
fig. 5 is a schematic structural diagram of an electronic device.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
The following describes the process shown in fig. 1 provided in the present application:
referring to fig. 1, fig. 1 is a flowchart of a bandwidth allocation method provided in the present application. The process is applied to a network device, and as shown in fig. 1, the process may include the following steps:
step 101, selecting a first part of bandwidth resources from total bandwidth resources corresponding to the flexible ethernet FlexE group configured by the network device as a shared bandwidth.
Wherein the shared bandwidth is initially pre-reserved; the FlexE group binds at least one FlexE service port.
The network device includes a plurality of physical ports, where the plurality of physical ports may use part of the physical ports to form at least one FlexE group, or may use all the physical ports to form at least one FlexE group, where, for example, one FlexE group may include at least one physical port, each physical port is configured with bandwidth resources correspondingly, and then the total bandwidth resources corresponding to the FlexE group refer to a sum of the bandwidth resources configured for each physical port.
For example, if the FlexE group includes two physical ports, which are respectively denoted as physical port a and physical port B, the bandwidth resource configured for physical port a is a1, and the bandwidth resource configured for physical port B is B1, then the total bandwidth resource corresponding to the FlexE group is the sum of a1 and B1.
The first partial bandwidth resource in this embodiment is only named for convenience of distinguishing from the following partial bandwidth resource, and is not used to limit a certain partial bandwidth resource.
For one embodiment, the shared bandwidth may be set according to an integer multiple of the basic bandwidth, for example, if the basic bandwidth is 5G, the shared bandwidth may be 30G or 50G.
In this embodiment, the FlexE group is bound to at least one FlexE service port, which may be understood as that the FlexE service port and a physical port in the bound FlexE group are in a mapping relationship, so that a service stream forwarded by each FlexE service port may be forwarded through the physical port in the bound FlexE group.
And 102, allocating corresponding bandwidth resources to each Flexe service port according to the set service influence factor of each Flexe service port.
The sum of the bandwidth resources allocated to each FlexE service port is the remaining bandwidth resources except the first part of bandwidth resources in the total bandwidth resources.
In this step, each FlexE service port is pre-assigned which service type to forward the service flow, that is, the FlexE service port is related to the service type to which the FlexE service port forwards the service flow, and the service impact factor may be used to indicate the importance degree of the FlexE service port forwarding the service flow, where a larger service impact factor of the FlexE service port indicates a higher importance degree of the FlexE service port forwarding the service flow, and conversely, a smaller service impact factor of the FlexE service port indicates a lower importance degree of the FlexE service port forwarding the service flow. Thus, more bandwidth resources are allocated to the FlexE service port with a large service impact factor, less bandwidth resources are allocated to the FlexE service port with a small service impact factor, and if the service impact factors of the FlexE service ports are not different from each other, equal bandwidth resources can be allocated to the FlexE service ports. As an embodiment, the sum of the service impact factors of the FlexE service ports is 1.
Illustratively, the service flow forwarded by the user requirement comprises a video service flow, a short message service flow and a voice service flow, and the video service flow, the voice service flow and the short message service flow are sequentially ordered from high to low according to the importance degree of the service flow, so that the service impact factor of the FlexE service port for forwarding the video service flow is highest, the service impact factor of the FlexE service port for forwarding the voice service flow is next to the service impact factor of the FlexE service port for forwarding the voice service flow, and the service impact factor of the FlexE service port for forwarding the short message service flow is lowest, based on which, the service impact factor of the FlexE service port for forwarding the video service flow is set to 0.5, the service impact factor of the FlexE service port for forwarding the voice service flow is set to 0.3, the service impact factor of the FlexE service port for forwarding the short message service flow is set to 0.2, if the total bandwidth is 100G, and the reserved shared bandwidth is 30G, then the allocated bandwidth resource for the FlexE service port for forwarding the video service flow is (100-30 x 0.5G), the bandwidth resources allocated to the FlexE service port for forwarding the voice service stream are (100-30) × 0.3G, and the bandwidth resources allocated to the FlexE service port for forwarding the short message service stream are (100-30) × 0.2G.
And 103, when the bandwidth utilization rate of at least one Flexe service port exceeds the set bandwidth threshold value, selecting the bandwidth resource allocated to each Flexe service port from the shared bandwidth and correspondingly allocating the bandwidth resource to each Flexe service port.
In this step, for a FlexE service port, the bandwidth utilization rate of the FlexE service port refers to a ratio of the currently used bandwidth resource of the FlexE service port to the bandwidth resource allocated to the FlexE service port in step 102.
As an embodiment, the bandwidth threshold may be determined according to the service type to which the service flow forwarded by each FlexE service port belongs, the bandwidth thresholds set corresponding to the FlexE service ports may be different, and the bandwidth thresholds set corresponding to the FlexE service ports may also all be set to the same value, for example, the preset percentage of the bandwidth resource allocated to one FlexE service port may be set to 100%, the preset percentage of the bandwidth resource allocated to another FlexE service port may be set to 95%, or the bandwidth thresholds set corresponding to the FlexE service ports may also all be set to 95%.
For example, if the bandwidth threshold corresponding to the FlexE service port for forwarding the video service stream can be set to 90%, it means that when it is monitored that the bandwidth utilization rate of the FlexE service port exceeds 90%, it is necessary to select the bandwidth resource allocated to the FlexE service port from the shared bandwidth, and correspondingly allocate the allocated bandwidth resource to the FlexE service port; if the bandwidth threshold corresponding to the FlexE service port for forwarding the voice service stream can be set to 95%, it means that when the bandwidth utilization rate of the FlexE service port exceeds 95% by monitoring, the bandwidth resource allocated to the FlexE service port needs to be selected from the shared bandwidth, and the allocated bandwidth resource is correspondingly allocated to the FlexE service port; if the bandwidth threshold corresponding to the FlexE service port for forwarding the short message service stream can be set to 100%, it means that when the bandwidth utilization rate of the FlexE service port exceeds 100%, the bandwidth resource allocated to the FlexE service port needs to be selected from the shared bandwidth, and the allocated bandwidth resource is correspondingly allocated to the FlexE service port.
In this embodiment, when it is monitored that the bandwidth utilization rate of at least one FlexE service port exceeds the set bandwidth threshold, this indicates that traffic congestion occurs in each monitored FlexE service port, and to avoid further causing data packet loss, a bandwidth resource allocated to each FlexE service port is selected from the shared bandwidth and correspondingly allocated to each FlexE service port, so that the bandwidth resource allocated to each FlexE service port is extended, each FlexE service port can further forward a suddenly increased traffic, and the problem of reducing data packet loss due to FlexE service port congestion caused by the suddenly increased traffic is avoided.
In this step, monitoring that the bandwidth usage rate of at least one FlexE service port exceeds the set bandwidth threshold may include two cases, one case is monitoring that the bandwidth usage rate of only one FlexE service port exceeds the set bandwidth threshold, and the other case is monitoring that the bandwidth usage rate of at least two FlexE service ports exceeds the set bandwidth threshold, for the two cases, in some embodiments, as shown in fig. 2, one implementation manner of implementing step 103 may include step 1031:
step 1031, when it is monitored that the bandwidth utilization rate of one FlexE service port exceeds the set bandwidth threshold, selecting a second part of bandwidth resources from the shared bandwidth, and allocating the second part of bandwidth resources to the FlexE service port.
And the second part of bandwidth resources are less than or equal to the bandwidth resources allocated to the Flexe service port.
In this embodiment, the second part of bandwidth resources are only named for convenience of description, and are not used to limit a certain bandwidth resource.
In this embodiment, the second part of bandwidth resources is less than or equal to the shared bandwidth resources, and the second part of bandwidth resources of the basic bandwidth multiple may be allocated to the FlexE service port on the basis of the basic bandwidth, so that after the second part of bandwidth resources are allocated to the FlexE service port, the FlexE service port can forward the current service traffic as much as possible, thereby avoiding the problem of packet loss caused by congestion of the FlexE service port, and at the same time, the bandwidth usage rate of the total bandwidth corresponding to the FlexE Group can be further improved, so as to improve the rationality of bandwidth allocation.
As another example, as shown in fig. 2, another implementation of implementing step 103 may include step 1032:
step 1032, when it is monitored that the bandwidth utilization rates of more than two FlexE service ports exceed the set bandwidth threshold, selecting a current FlexE service port from all the monitored FlexE service ports with the largest service influence factor, and selecting a third part of bandwidth resources from the shared bandwidth, wherein the third part of bandwidth resources are less than or equal to the bandwidth resources allocated to the current FlexE service port; and allocating the third part of bandwidth resources to the current Flexe service port, and returning to the step of selecting the current Flexe service port with the largest service influence factor from all monitored Flexe service ports when the bandwidth resources still exist in the shared bandwidth.
In this embodiment, when it is monitored that the bandwidth utilization rates of two or more FlexE service ports exceed the set bandwidth threshold, this means that a congestion problem may occur at the same time for a plurality of FlexE service ports, and in view of limited shared bandwidth, in this embodiment, bandwidth resource allocation is preferentially performed for the FlexE service port with the largest service impact factor from among the shared bandwidths according to the service impact factors of each FlexE service port, and in order to facilitate other types of service flows to avoid congestion as much as possible, the third part of bandwidth resources is less than or equal to the bandwidth resources allocated by the current FlexE service port, so that the other FlexE service ports whose bandwidth utilization rates exceed the set bandwidth threshold can also forward service flows through the allocated third part of bandwidth resources. For convenience of description, the FlexE service port to which the third part of bandwidth resources are already allocated is denoted as a FlexE service port a, then after the third part of bandwidth resources are allocated to the current FlexE service port, when it is determined whether bandwidth resources still exist in the shared bandwidth, if bandwidth resources still exist, the step of selecting the current FlexE service port from all the monitored FlexE service ports as the FlexE service port with the largest service impact factor is returned. It should be noted that, all the FlexE service ports in the return execution step refer to the FlexE service ports of all the monitored FlexE service ports except the FlexE service port a to which the third part of bandwidth resources are allocated, the third part of bandwidth resources are selected from the shared bandwidth, and the third part of bandwidth resources are allocated to the current FlexE service port, which is the FlexE service port a, until the shared bandwidth is completely allocated, or all the monitored FlexE service ports are completely allocated with the third part of bandwidth resources.
It can be seen that, in the technical solution provided in this embodiment, when it is monitored that the bandwidth usage rates of the two FlexE service ports exceed the set bandwidth threshold, the network device allocates a third part of bandwidth resources to the monitored FlexE service ports according to the service impact factors of the FlexE service ports until all the monitored FlexE service ports are allocated or all the bandwidth resources sharing the bandwidth are allocated. Therefore, a Flexe service port capable of transmitting a service flow with a large service influence factor is not limited by a set bandwidth threshold any more, even when the bandwidth utilization rate of the Flexe service port exceeds the set bandwidth threshold, the reserved shared bandwidth is dynamically called to relieve the packet loss problem caused by traffic congestion, meanwhile, the bandwidth utilization rate of the Flexe Group corresponding to the total bandwidth can be improved, and further the reasonability of bandwidth allocation can be improved.
So far, the description shown in fig. 1 is completed.
Therefore, in the technical scheme of the embodiment of the application, the network device monitors the FlexE service ports bound with the FlexE, and when it is monitored that the bandwidth utilization rate of at least one FlexE service port exceeds the set bandwidth threshold, the bandwidth resources allocated to each FlexE service port are selected from the pre-reserved shared bandwidth and correspondingly allocated to each FlexE service port, so that each FlexE service port is no longer limited by the configured bandwidth resources, and when the bandwidth utilization rate of the FlexE service port exceeds the set bandwidth threshold, the reserved shared bandwidth is dynamically called to alleviate the problem of packet loss caused by congestion of service traffic, and meanwhile, the bandwidth utilization rate of the FlexE Group corresponding to the total bandwidth can be improved, and further, the rationality of bandwidth allocation can be improved.
After completing the description shown in fig. 2, after the monitored FlexE service ports have allocated bandwidth resources from the shared bandwidth, monitoring whether the FlexE service ports have bandwidth usage rates of the FlexE service ports smaller than the bandwidth threshold, and reclaiming the bandwidth resources allocated to the FlexE service ports having bandwidth usage rates lower than the bandwidth threshold, as an embodiment, as shown in fig. 3, after step 1031, the method further includes the following step 1033:
and 1033, when it is monitored that the bandwidth utilization rate of the FlexE service port to which the second part of bandwidth resources are allocated is smaller than the set bandwidth threshold, recovering the allocated second part of bandwidth resources in the FlexE service port, and adding the recovered second part of bandwidth resources to the shared bandwidth.
It should be noted that the bandwidth utilization rate in this step is the same as the determination method of the bandwidth utilization rate described above, that is, the ratio of the currently used bandwidth resource of one FlexE service port to the bandwidth resource allocated to the FlexE service port in step 102 is referred to.
In this step, it is monitored that the bandwidth utilization rate of the FlexE service port to which the second part of bandwidth resources are allocated is smaller than the set bandwidth threshold, which indicates that the FlexE service port can also normally forward the current service traffic using the bandwidth resources allocated in step 102. And recovering the second part of bandwidth resources allocated to the Flexe service port, and adding the recovered second part of bandwidth resources to the shared bandwidth for continuous use when other Flexe service ports are congested.
It can be seen that, in the technical solution provided in the embodiment of the present application, for a FlexE service port whose bandwidth utilization rate is less than a set bandwidth threshold and to which a second part of bandwidth resources are already allocated, the allocated second part of bandwidth resources in the FlexE service port can be timely recovered, and the recovered second part of bandwidth resources are added to the shared bandwidth, so that the FlexE service port is reallocated and used when congestion occurs in forwarding service traffic, and the bandwidth utilization rate of the total bandwidth corresponding to the FlexE Group is further improved, thereby further improving the rationality of bandwidth allocation.
As another example, as shown in fig. 3, after step 1032, the method further includes the following step 1034:
step 1034, when it is monitored that the bandwidth utilization rate of the FlexE service port existing in the FlexE service port to which the third part of bandwidth resources are allocated is smaller than the set bandwidth threshold, recovering the allocated third part of bandwidth resources in the FlexE service port that is monitored, and adding the recovered third part of bandwidth resources to the shared bandwidth.
It should be noted that the bandwidth utilization rate of this step is the same as the above-described determination method of the bandwidth utilization rate.
In this step, it is monitored that the bandwidth utilization rate of the FlexE service port existing in the FlexE service port to which the third part of bandwidth resources is allocated is smaller than the set bandwidth threshold, which indicates that the FlexE service port having the bandwidth utilization rate smaller than the set bandwidth threshold can normally forward the current service traffic using the bandwidth resources allocated in step 102. Based on the above, the third part of bandwidth resources allocated to the FlexE service ports are recovered, and the recovered third part of bandwidth resources are added to the shared bandwidth to be used continuously when other FlexE service ports are congested.
It can be seen that, in the technical solution provided in the embodiment of the present application, for a FlexE service port whose bandwidth utilization rate is less than a set bandwidth threshold and to which a third part of bandwidth resources are allocated, the allocated third part of bandwidth resources in the FlexE service ports can be timely recovered, and the recovered third part of bandwidth resources are added to the shared bandwidth, so as to be reallocated and used when congestion occurs in service traffic forwarded by the FlexE service port, so that the bandwidth utilization rate of the total bandwidth corresponding to the FlexE Group is further improved, and further the rationality of bandwidth allocation can be further improved.
The flow shown in fig. 1 to 3 is described below based on an embodiment:
for convenience of description, the network device is a network device applied to the FlexE technology, and the network device includes three physical ports, which are respectively denoted as a physical port a, a physical port B, and a physical port C, and the bandwidth resource configured for the physical port a is 60G, and the bandwidth resource configured for the physical port B and the physical port C is 50G, so that the total bandwidth resource configured for the three physical ports is 170G, the three physical ports form a FlexE group, and the service types are set to include a video type, a voice type, and a short message type according to the service types to which the services belong and according to the requirements of users for forwarding services, so that the three service types correspond to the three FlexE service ports, one of the three FlexE service ports is used for setting and forwarding the video type service, one is used for forwarding the voice type service, and the other is used for forwarding the short message type service. And the FlexE group binds the three FlexE service ports, so that a mapping relationship is formed between the third physical port of the FlexE group and the three FlexE service ports, and service streams forwarded by the three FlexE service ports are all mapped to the three physical ports for forwarding.
Taking 5G as a basic bandwidth, the network device selects bandwidth resources which are 5 times as shared bandwidth from 170G corresponding to the FlexE group configured by the network device, for example, 70G is determined as shared bandwidth; determining a service influence factor of each Flexe service port according to the importance degree of service type forwarding of each Flexe service port, setting the service influence factor of the Flexe service port for forwarding video services to be 0.5, the service influence factor of the Flexe service port for forwarding voice services to be 0.3, the service influence factor of the Flexe service port for forwarding short message services to be 0.2, allocating 50G from 100G to the Flexe service port for forwarding video services, allocating 30G from 100G to the Flexe service port for forwarding voice services, allocating 20G from 100G to the Flexe service port for forwarding short message services, wherein 100G is determined by subtracting 70G of shared bandwidth from 170G corresponding to Flexe group.
Monitoring the bandwidth utilization rates of the three FlexE service ports, and when monitoring that the bandwidth utilization rate of only one FlexE service port of the three FlexE service ports exceeds the set bandwidth threshold, where the bandwidth utilization rate is the ratio of the bandwidth resource used by the current service traffic of one FlexE service port to the bandwidth resource allocated to the FlexE service port, for example, the bandwidth resource used by the current video traffic of the FlexE service port forwarding the video-class service is 62G, and the bandwidth resource allocated to the FlexE service port is 50G, then the bandwidth utilization rate of the FlexE service port is 62/50 × 100% × 124%, and similarly, setting the bandwidth resource used by the current voice traffic of the FlexE service port forwarding the voice-class service as 15G, and the bandwidth resource allocated to the FlexE service port as 30G, then the bandwidth utilization rate of the FlexE service port is 15/30% × 100%, (50%), and setting the bandwidth utilization rate used by the FlexE service port forwarding the short message-class service as 10G, and the bandwidth resource allocated to the FlexE service port is 20G, the bandwidth utilization rate of the FlexE service port is 10/20 × 100% — 50%. The bandwidth threshold is preset, in order to avoid congestion, the FlexE service port for forwarding the video service is set to 90%, the bandwidth threshold corresponding to the FlexE service port for forwarding the voice service stream is set to 95%, the bandwidth threshold corresponding to the FlexE service port for forwarding the short message service stream is set to 100%, based on the determined bandwidth utilization rates of the respective FlexE service ports, it can be known that only the bandwidth utilization rate of the FlexE service port for forwarding the video service is greater than 90% corresponding to the FlexE service port, the bandwidth resource (62G) required by the FlexE service port for forwarding the current video traffic minus the allocated bandwidth resource (50G) is equal to the bandwidth resource (12G) to be allocated, and 5G is used as the basic bandwidth resource, then, at least, 15G needs to be selected from 70G as the second part of resources to allocate the bandwidth resource to the FlexE service port, and 15G is assigned to the FlexE service port. And continuously monitoring the bandwidth utilization rate of each Flexe service port, and when the bandwidth utilization rate of the Flexe service port for forwarding the video service is monitored to be less than 90% of the set bandwidth utilization rate, recovering the 15GG allocated in the Flexe service port, and adding the recovered 15G into the shared bandwidth, wherein the shared bandwidth has 70G for the use when service congestion occurs in the Flexe service port.
When the bandwidth utilization rate of the Flexe service port for forwarding the voice service and the bandwidth utilization rate of the Flexe service port for forwarding the video service in the three Flexe service ports are monitored to exceed the set bandwidth threshold, determining the service influence factors of the two Flexe service ports, setting the service influence factor of the Flexe service port for forwarding the video service to be greater than the service influence factor of the Flexe service port for forwarding the voice service, preferentially distributing bandwidth resources for the Flexe service port for forwarding the video service from the shared bandwidth 70G, setting that the Flexe service port for forwarding the video service needs 120G for statistics on the current service flow, and considering that the Flexe service port for forwarding the video service is configured with 50G, if 70G needs to be allocated to the FlexE service port from 70G, it indicates that the bandwidth resources in the shared bandwidth have been completely allocated, and bandwidth resources cannot be allocated to the FlexE service port for forwarding the voice service from the shared bandwidth. If it is monitored that 80G is needed for forwarding the current service flow through a FlexE service port for forwarding the video service and 60G is needed for forwarding the current service flow through a FlexE service port for forwarding the video service, 30G is configured for the FlexE service port for forwarding the voice service in view of 50G being configured for the FlexE service port for forwarding the video service, 30G is selected from 70G as a third part of bandwidth resources to allocate bandwidth resources to the FlexE service port for forwarding the video service, and 30G is added to the FlexE service port allocated to the FlexE service port, it can be seen that the bandwidth resources in the shared bandwidth also store 40G, and based on this, 30G is selected from 40G as the third part of bandwidth resources to allocate bandwidth resources for the FlexE service port forwarding the voice service, and adding 30G to the Flexe service ports until all the Flexe service ports with the bandwidth resources smaller than the bandwidth threshold value are allocated. And continuously monitoring the bandwidth utilization rate of each Flexe service port, and when the bandwidth utilization rate of the Flexe service port for forwarding the video service is monitored to be less than 90% of the set bandwidth utilization rate, recovering the allocated 30G in the Flexe service port, and adding the recovered 30G into the shared bandwidth, wherein the shared bandwidth has 40G for the use when service congestion occurs in the Flexe service port.
Thus, the description of the embodiments is completed.
The following describes the apparatus provided in the present application:
referring to fig. 4, fig. 4 is a schematic structural diagram of a bandwidth distribution apparatus 400 provided in the present application.
The device includes:
a shared bandwidth selecting unit 401, configured to select a first part of bandwidth resources from total bandwidth resources corresponding to a flexible ethernet FlexE group configured by the network device as a shared bandwidth, where the shared bandwidth is initially reserved in advance; binding at least one Flexe service port by the Flexe group;
a bandwidth resource allocation unit 402, configured to allocate, according to the set service impact factor of each FlexE service port, a corresponding bandwidth resource for each FlexE service port, where a sum of the bandwidth resources allocated to each FlexE service port is a remaining bandwidth resource except for the first part of bandwidth resources in the total bandwidth resource;
a bandwidth resource extension unit 403, configured to select, when it is monitored that the bandwidth usage rate of at least one FlexE service port exceeds the set bandwidth threshold, a bandwidth resource allocated to each FlexE service port from the shared bandwidth and correspondingly allocate to each FlexE service port.
In an embodiment of the application, the selecting, performed in the bandwidth resource extension unit, bandwidth resources allocated to each FlexE service port from the shared bandwidths and correspondingly allocated to each FlexE service port includes:
when the fact that the bandwidth utilization rate of one Flexe service port exceeds the set bandwidth threshold value is monitored, selecting a second part of bandwidth resources from the shared bandwidth, and distributing the second part of bandwidth resources to the Flexe service port; and the second part of bandwidth resources are less than or equal to the bandwidth resources allocated by the Flexe service port.
In an embodiment of the application, the selecting, performed in the bandwidth resource extension unit, bandwidth resources allocated to each FlexE service port from the shared bandwidths and correspondingly allocated to each FlexE service port includes:
when the monitored bandwidth utilization rates of more than two Flexe service ports exceed the set bandwidth threshold, selecting a current Flexe service port from all the monitored Flexe service ports with the largest service influence factor, and selecting a third part of bandwidth resources from the shared bandwidth, wherein the third part of bandwidth resources are less than or equal to the bandwidth resources allocated to the current Flexe service port; and allocating the third part of bandwidth resources to the current Flexe service port, and returning to the step of selecting the current Flexe service port with the largest service influence factor from all monitored Flexe service ports when the bandwidth resources still exist in the shared bandwidth.
In an embodiment of the application, the bandwidth resource extension unit is further specifically configured to:
and when the bandwidth utilization rate of the Flexe service port allocated with the second part of bandwidth resources is monitored to be smaller than the set bandwidth threshold, recovering the allocated second part of bandwidth resources in the Flexe service port, and adding the recovered second part of bandwidth resources to the shared bandwidth.
In an embodiment of the application, the bandwidth resource extension unit is further specifically configured to:
and when the bandwidth utilization rate of the Flexe service port existing in the Flexe service port allocated with the third part of bandwidth resources is monitored to be smaller than the set bandwidth threshold, recovering the allocated third part of bandwidth resources in the monitored Flexe service port, and adding the recovered third part of bandwidth resources to the shared bandwidth.
Thus, the apparatus shown in fig. 4 is completed.
It can be seen that, in the technical solution of the embodiment of the present application,
when monitoring that the bandwidth utilization rate of at least one Flexe service port exceeds the set bandwidth threshold, the network equipment selects the bandwidth resources allocated to each Flexe service port from the pre-reserved shared bandwidth and correspondingly allocates the bandwidth resources to each Flexe service port. Therefore, each Flexe service port is not limited by the set bandwidth threshold, even if the service flow exceeds the allocated bandwidth resource, the reserved shared bandwidth can be dynamically called to relieve the packet loss problem caused by service flow congestion, and meanwhile, the bandwidth utilization rate of the total bandwidth corresponding to the Flexe Group can be improved, and further the reasonability of bandwidth allocation can be improved.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
In the electronic device provided in the embodiment of the present application, from a hardware level, a schematic diagram of a hardware architecture can be seen as shown in fig. 5. The method comprises the following steps: a machine-readable storage medium and a processor, wherein: the machine-readable storage medium stores machine-executable instructions executable by the processor; the processor is configured to execute machine executable instructions to perform the bandwidth allocation monitoring operations disclosed in the above examples.
Machine-readable storage media are provided by embodiments of the present application that store machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the monitoring operations for bandwidth allocation disclosed in the above examples.
Here, a machine-readable storage medium may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and so forth. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Furthermore, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
So far, the description of the apparatus shown in fig. 5 is completed.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (11)

1. A method for allocating bandwidth, the method being applied to a network device, the method comprising:
selecting a first part of bandwidth resources from total bandwidth resources corresponding to a flexible Ethernet Flexe group configured by the network equipment as shared bandwidth, wherein the shared bandwidth is reserved in advance at the beginning; binding at least one Flexe service port by the Flexe group;
allocating corresponding bandwidth resources for each Flexe service port according to the set service influence factor of each Flexe service port, wherein the sum of the bandwidth resources allocated to each Flexe service port is the remaining bandwidth resources except the first part of bandwidth resources in the total bandwidth resources;
and when the bandwidth utilization rate of at least one Flexe service port exceeds the set bandwidth threshold value, selecting the bandwidth resources allocated to each Flexe service port from the shared bandwidth and correspondingly allocating the bandwidth resources to each Flexe service port.
2. The method according to claim 1, wherein the selecting bandwidth resources allocated to each FlexE service port from the shared bandwidth and correspondingly allocated to each FlexE service port comprises:
when the fact that the bandwidth utilization rate of one Flexe service port exceeds the set bandwidth threshold value is monitored, selecting a second part of bandwidth resources from the shared bandwidth, and distributing the second part of bandwidth resources to the Flexe service port; and the second part of bandwidth resources are less than or equal to the bandwidth resources allocated by the Flexe service port.
3. The method according to claim 1, wherein the selecting bandwidth resources allocated to each FlexE service port from the shared bandwidth and correspondingly allocated to each FlexE service port comprises:
when the monitored bandwidth utilization rates of more than two Flexe service ports exceed the set bandwidth threshold, selecting a current Flexe service port from all the monitored Flexe service ports with the largest service influence factor, and selecting a third part of bandwidth resources from the shared bandwidth, wherein the third part of bandwidth resources are less than or equal to the bandwidth resources allocated to the current Flexe service port; and allocating the third part of bandwidth resources to the current Flexe service port, and returning to the step of selecting the current Flexe service port with the largest service influence factor from all monitored Flexe service ports when the bandwidth resources still exist in the shared bandwidth.
4. The method of claim 2, wherein after allocating the second portion of bandwidth resources to the FlexE service port, further comprising:
and when the bandwidth utilization rate of the Flexe service port allocated with the second part of bandwidth resources is monitored to be smaller than the set bandwidth threshold, recovering the allocated second part of bandwidth resources in the Flexe service port, and adding the recovered second part of bandwidth resources to the shared bandwidth.
5. The method according to claim 3, wherein after said allocating the third part of bandwidth resources to the current Flexe service port, further comprising:
and when the bandwidth utilization rate of the Flexe service port existing in the Flexe service port allocated with the third part of bandwidth resources is monitored to be smaller than the set bandwidth threshold, recovering the allocated third part of bandwidth resources in the monitored Flexe service port, and adding the recovered third part of bandwidth resources to the shared bandwidth.
6. A bandwidth allocation apparatus, applied to a network device, the apparatus comprising:
a shared bandwidth selection unit, configured to select a first part of bandwidth resources from total bandwidth resources corresponding to a flexible ethernet FlexE group configured by the network device as a shared bandwidth, where the shared bandwidth is initially reserved in advance; binding at least one Flexe service port by the Flexe group;
a bandwidth resource allocation unit, configured to allocate, according to the set service impact factor of each FlexE service port, a corresponding bandwidth resource for each FlexE service port, where the sum of the bandwidth resources allocated to each FlexE service port is the remaining bandwidth resource except for the first part of bandwidth resources in the total bandwidth resource;
and the bandwidth resource extension unit is used for selecting the bandwidth resource allocated to each Flexe service port from the shared bandwidth and correspondingly allocating the bandwidth resource to each Flexe service port when the monitored bandwidth utilization rate of at least one Flexe service port exceeds the set bandwidth threshold.
7. The apparatus according to claim 6, wherein the selection of the bandwidth resource allocated to each FlexE service port from the shared bandwidth and the corresponding allocation to each FlexE service port executed in the bandwidth resource extension unit comprises:
when the fact that the bandwidth utilization rate of one Flexe service port exceeds the set bandwidth threshold value is monitored, selecting a second part of bandwidth resources from the shared bandwidth, and distributing the second part of bandwidth resources to the Flexe service port; and the second part of bandwidth resources are less than or equal to the bandwidth resources allocated by the Flexe service port.
8. The apparatus according to claim 6, wherein the selection of the bandwidth resource allocated to each FlexE service port from the shared bandwidth and the corresponding allocation to each FlexE service port executed in the bandwidth resource extension unit comprises:
when the monitored bandwidth utilization rates of more than two Flexe service ports exceed the set bandwidth threshold, selecting a current Flexe service port from all the monitored Flexe service ports with the largest service influence factor, and selecting a third part of bandwidth resources from the shared bandwidth, wherein the third part of bandwidth resources are less than or equal to the bandwidth resources allocated to the current Flexe service port; and allocating the third part of bandwidth resources to the current Flexe service port, and returning to the step of selecting the current Flexe service port with the largest service influence factor from all monitored Flexe service ports when the bandwidth resources still exist in the shared bandwidth.
9. The apparatus of claim 7, wherein the bandwidth resource extension unit is further specifically configured to:
and when the bandwidth utilization rate of the Flexe service port allocated with the second part of bandwidth resources is monitored to be smaller than the set bandwidth threshold, recovering the allocated second part of bandwidth resources in the Flexe service port, and adding the recovered second part of bandwidth resources to the shared bandwidth.
10. The apparatus of claim 8, wherein the bandwidth resource extension unit is further specifically configured to:
and when the bandwidth utilization rate of the Flexe service port existing in the Flexe service port allocated with the third part of bandwidth resources is monitored to be smaller than the set bandwidth threshold, recovering the allocated third part of bandwidth resources in the monitored Flexe service port, and adding the recovered third part of bandwidth resources to the shared bandwidth.
11. An electronic device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor; the processor is configured to execute machine executable instructions to perform the method steps of any of claims 1-5.
CN202110702418.7A 2021-06-24 2021-06-24 Bandwidth allocation method, device and equipment Active CN113438185B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110702418.7A CN113438185B (en) 2021-06-24 2021-06-24 Bandwidth allocation method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110702418.7A CN113438185B (en) 2021-06-24 2021-06-24 Bandwidth allocation method, device and equipment

Publications (2)

Publication Number Publication Date
CN113438185A true CN113438185A (en) 2021-09-24
CN113438185B CN113438185B (en) 2022-07-01

Family

ID=77753782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110702418.7A Active CN113438185B (en) 2021-06-24 2021-06-24 Bandwidth allocation method, device and equipment

Country Status (1)

Country Link
CN (1) CN113438185B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117750514A (en) * 2023-12-25 2024-03-22 中国电信股份有限公司卫星通信分公司 Satellite resource allocation method and device, storage medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102761480A (en) * 2012-06-28 2012-10-31 中兴通讯股份有限公司 Resource allocation method and device
EP3264695A1 (en) * 2016-06-30 2018-01-03 Juniper Networks, Inc. Bandwidth management for resource reservation protocol lsps and non-resource reservation protocol lsps
CN108924058A (en) * 2018-08-30 2018-11-30 中国联合网络通信集团有限公司 Service traffics transmission method and device
CN109217994A (en) * 2017-06-30 2019-01-15 中国电信股份有限公司 Data transmission method, device and computer readable storage medium
WO2019148342A1 (en) * 2018-01-31 2019-08-08 Telefonaktiebolaget Lm Ericsson (Publ) Methods and devices for energy saving in communication network
CN110932999A (en) * 2018-09-20 2020-03-27 中国移动通信有限公司研究院 Service processing method and equipment
CN111917662A (en) * 2019-05-07 2020-11-10 华为技术有限公司 Bandwidth reservation method and related equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102761480A (en) * 2012-06-28 2012-10-31 中兴通讯股份有限公司 Resource allocation method and device
EP3264695A1 (en) * 2016-06-30 2018-01-03 Juniper Networks, Inc. Bandwidth management for resource reservation protocol lsps and non-resource reservation protocol lsps
CN109217994A (en) * 2017-06-30 2019-01-15 中国电信股份有限公司 Data transmission method, device and computer readable storage medium
WO2019148342A1 (en) * 2018-01-31 2019-08-08 Telefonaktiebolaget Lm Ericsson (Publ) Methods and devices for energy saving in communication network
CN108924058A (en) * 2018-08-30 2018-11-30 中国联合网络通信集团有限公司 Service traffics transmission method and device
CN110932999A (en) * 2018-09-20 2020-03-27 中国移动通信有限公司研究院 Service processing method and equipment
CN111917662A (en) * 2019-05-07 2020-11-10 华为技术有限公司 Bandwidth reservation method and related equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117750514A (en) * 2023-12-25 2024-03-22 中国电信股份有限公司卫星通信分公司 Satellite resource allocation method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN113438185B (en) 2022-07-01

Similar Documents

Publication Publication Date Title
US7885186B2 (en) System and method of adaptively managing bandwidth on optical links shared by multiple-services using virtual concatenation and link capacity adjustment schemes
CN111327391B (en) Time division multiplexing method, device, system and storage medium
JP4962471B2 (en) Transmission terminal device, network node, and relay switch
US20150058485A1 (en) Flow scheduling device and method
US20170048145A1 (en) Switching device and control method of switching device
EP1842340A1 (en) Priority service protection
CN113438185B (en) Bandwidth allocation method, device and equipment
CN108337190B (en) Shunting method and device
US9363199B1 (en) Bandwidth management for data services operating on a local network
CN107689923B (en) Message processing method and router
CN109286582B (en) Method and device for realizing network bandwidth priority in virtualized switch
CN110932998B (en) Message processing method and device
CN105704037B (en) A kind of list item store method and controller
CN108139969B (en) Memory configuration method, device and system
CN106161068B (en) Recovery prompting and distributing method for network resources and controller
JPH0358646A (en) Band assignment system in packet communication network
US9846658B2 (en) Dynamic temporary use of packet memory as resource memory
JP5829230B2 (en) Management system and management method
CN106851748B (en) Channel allocation method and device
CN115051958A (en) Cache allocation method, device and equipment
CN110266521B (en) SPTN network service guarantee method
WO2011075919A1 (en) Method and device for sharing abis resources
CN106982169B (en) Message forwarding method and device
KR100447059B1 (en) Traffic Handling Processor Block Assignment Method of RNC in Wireless Communication System
CN110048957B (en) Flow control method, flow control device and virtual extended access system

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