CN105591983B - QoS outlet bandwidth adjusting method and device - Google Patents

QoS outlet bandwidth adjusting method and device Download PDF

Info

Publication number
CN105591983B
CN105591983B CN201510731131.1A CN201510731131A CN105591983B CN 105591983 B CN105591983 B CN 105591983B CN 201510731131 A CN201510731131 A CN 201510731131A CN 105591983 B CN105591983 B CN 105591983B
Authority
CN
China
Prior art keywords
cpe
bandwidth
local
opposite
ethernet
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
CN201510731131.1A
Other languages
Chinese (zh)
Other versions
CN105591983A (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 CN201510731131.1A priority Critical patent/CN105591983B/en
Publication of CN105591983A publication Critical patent/CN105591983A/en
Application granted granted Critical
Publication of CN105591983B publication Critical patent/CN105591983B/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/80Actions related to the user profile or the type of traffic
    • H04L47/805QOS or priority aware
    • 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/825Involving tunnels, e.g. MPLS

Landscapes

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

Abstract

The invention provides a method and a device for adjusting QoS (quality of service) outlet bandwidth, wherein the method comprises the following steps: the local CPE periodically sends a detection message to the opposite CPE through the Ethernet private line; the local CPE receives a detection response message from the opposite CPE, wherein the detection response message carries the number of the detection messages received by the opposite CPE within a preset time; the local CPE determines the link quality of the Ethernet private line by using the quantity of the detection messages received by the opposite CPE within the preset time and the quantity of the detection messages sent by the local CPE within the preset time; and the local CPE utilizes the link quality of the Ethernet private line to adjust the outlet bandwidth of the QoS. By the technical scheme of the invention, the probability of packet loss of the data message on the Ethernet special line can be reduced, and the user service experience is improved.

Description

QoS outlet bandwidth adjusting method and device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for adjusting an egress bandwidth of QoS.
Background
As shown in fig. 1, which is a schematic networking diagram of an MPLS (Multi-Protocol Label Switching) network, for a data packet sent by a terminal device 1 to a terminal device 2, data packets of different service types have different priorities, for example, the priority of the data packet of a video service is higher than the priority of the data packet of a web service. On a CPE (Customer Premise Equipment) 1, data packets with different priorities are stored in queues with different priorities. For the exit bandwidth of CPE1, queues of different priorities occupy different scheduling weights of the exit bandwidth, and the scheduling weight occupied by the queue of high priority is greater than the scheduling weight occupied by the queue of low priority, thereby ensuring that the data packet of high priority is preferentially transmitted.
When a user leases the ethernet private line of an operator, if 10M bandwidth is leased, the operator should provide 10M bandwidth service. However, when the ethernet private line leased by the user sequentially passes through the metropolitan area network, the backbone network, the core network, the backbone network, and the metropolitan area network, and reaches the CPE2, the middle part passes through a plurality of forwarding devices, data packets of different terminal devices need to be transmitted by the forwarding devices, and each terminal device shares a bandwidth with other terminal devices, so that the bandwidth of each terminal device cannot be guaranteed. For example, when a user leases a 10M bandwidth ethernet private line at a certain time, the operator can only provide 8M bandwidth service, i.e. the operator cannot guarantee 10M bandwidth service from CPE1 to CPE 2.
When a user leases a 10M bandwidth ethernet private line, CPE1 may consider the egress bandwidth to be 10M bandwidth and assign 10M bandwidth to queues of various priorities, with queues of different priorities occupying different scheduling weights of 10M bandwidth. When the operator cannot guarantee the 10M bandwidth service from CPE1 to CPE2, the data packet sent by terminal 1 to terminal 2 will be lost on the ethernet dedicated line. Moreover, each forwarding device in the operator network does not recognize the priority in the data packet, so that the possibility that the data packet with high priority is discarded is high, the high-priority service of the user is seriously affected, and the service experience of the user is affected.
Disclosure of Invention
The invention provides a method for adjusting outlet bandwidth of quality of service (QoS), which is applied to Customer Premise Equipment (CPE) of an Ethernet private line, and comprises the following steps:
the method comprises the steps that a home terminal CPE constructs a detection message with a destination address as an opposite terminal CPE, and the detection message is periodically sent to the opposite terminal CPE through an Ethernet special line;
the local CPE receives a detection response message from the opposite CPE, wherein the detection response message carries the number of the detection messages received by the opposite CPE within a preset time;
the local CPE determines the link quality of the Ethernet private line by using the quantity of the detection messages received by the opposite CPE within the preset time and the quantity of the detection messages sent by the local CPE within the preset time;
and the local CPE utilizes the link quality of the Ethernet private line to adjust the outlet bandwidth of the QoS.
The invention provides a regulating device of outlet bandwidth of QoS, which is applied to Customer Premise Equipment (CPE) of Ethernet private line, the regulating device of outlet bandwidth of QoS is applied to the CPE at the home terminal, and the regulating device of outlet bandwidth of QoS specifically comprises:
a sending module, configured to construct a detection packet with a destination address as an opposite-end CPE, and periodically send the detection packet to the opposite-end CPE through an ethernet dedicated line;
a receiving module, configured to receive a probe response message from the peer CPE, where the probe response message carries the number of probe messages received by the peer CPE within a preset time;
a determining module, configured to determine link quality of the ethernet dedicated line by using the number of detection packets received by the peer CPE within a preset time and the number of detection packets sent by the local CPE within the preset time;
and the adjusting module is used for adjusting the outlet bandwidth of the QoS by utilizing the link quality of the Ethernet private line.
Based on the technical scheme, in the embodiment of the invention, the outlet bandwidth of the QoS is dynamically adjusted, so that the outlet bandwidth of the data message can be adapted to the transmission bandwidth of an operator on the Ethernet dedicated line when the data message is sent on the Ethernet dedicated line, thereby reducing the probability of packet loss of the data message on the Ethernet dedicated line and improving the user service experience of a user in the application scene of renting the Ethernet dedicated line of the operator. Moreover, the probability that the data message with high priority is discarded by each forwarding device in the operator network is low, so that the high-priority service of the user is ensured, and the service experience of the user is improved. For example, when a user leases a 10M bandwidth ethernet private line, if the operator cannot guarantee a 10M bandwidth service from CPE1 to CPE2, CPE1 may reduce the egress bandwidth of the QoS, such as reducing the egress bandwidth of the QoS from 10M bandwidth to 9M bandwidth and allocating the 9M bandwidth to queues of various priorities. If the CPE1 needs to send 10M bandwidth datagrams to the CPE2, the CPE1 may discard 1M bandwidth datagrams, which avoids the operator network discarding 1M bandwidth datagrams of the CPE 1. When the CPE1 discards a datagram, the CPE1 may identify the priority in the datagram and discard the datagram with a lower priority. When each forwarding device in the operator network discards a data packet, the priority in the data packet is not identified, so that the possibility that the data packet with high priority is discarded is high, the high-priority service of the user is seriously influenced, and the service experience of the user is influenced.
Drawings
FIG. 1 is a schematic networking diagram of an MPLS network;
FIG. 2 is a flow chart of a method for adjusting the egress bandwidth of QoS according to an embodiment of the present invention;
FIG. 3 is a hardware block diagram of a local CPE in accordance with an embodiment of the invention;
fig. 4 is a block diagram of an apparatus for adjusting QoS egress bandwidth according to an embodiment of the present invention.
Detailed Description
In view of the problems in the prior art, the embodiment of the present invention provides a method for adjusting an egress bandwidth of QoS (quality of service), which is applied to a CPE on an ethernet private line, for example, a network including a local CPE and an opposite CPE. In a network including a local CPE and an opposite CPE, a user may lease an ethernet dedicated line (e.g., an ethernet two-layer dedicated line or an ethernet three-layer dedicated line) of an operator, where the ethernet dedicated line may be an MPLS dedicated line or an SDH (Synchronous Digital Hierarchy) dedicated line, and in an MPLS network, the ethernet dedicated line may be an MPLS dedicated line in general. Currently, a core Network and a backbone Network of an operator generally adopt a MPLS VPN (virtual private Network) technology to provide a dedicated ethernet line for a user. According to the user requirements, an operator can generally divide services of the Ethernet private line into different levels such as gold, silver, copper and the like, and the higher the level is, the better the bandwidth guarantee effect is.
The CPE is a device directly connected to a PE (Provider Edge) device, the PE device is configured to perform tunnel encapsulation on the data packet, the CPE is a last device that processes the data packet before the tunnel encapsulation, and the CPE and the PE device may be the same device.
With fig. 1 as an application scenario schematic diagram of the embodiment of the present invention, a terminal device 1 is connected to a CPE1, a CPE1 is connected to an operator network through a PE device 1, a terminal device 2 is connected to a CPE2, and a CPE2 is connected to the operator network through a PE device 2. The home-end CPE and the opposite-end CPE are opposite, and for the data packet sent from the terminal device 1 to the terminal device 2, the home-end CPE is CPE1, the opposite-end CPE is CPE2, and for the data packet sent from the terminal device 2 to the terminal device 1, the home-end CPE is CPE2, and the opposite-end CPE is CPE 1. Taking the example of the terminal device 1 sending the data packet to the terminal device 2 as an example, for the data packet sent from the terminal device 1 to the terminal device 2, when the CPE1 sends the data packet to the CPE2, the ethernet dedicated line leased by the user sequentially passes through the PE device 1, the metropolitan area network, the backbone network, the core network, the backbone network, the metropolitan area network, the PE device 2, and the CPE2, the CPE2 sends the data packet to the terminal device 2, and the data packet passes through a plurality of forwarding devices in the middle.
As shown in fig. 2, the method for adjusting the egress bandwidth of QoS may include the following steps:
step 201, the local CPE constructs a detection message with a destination address as the opposite CPE, and periodically sends the detection message to the opposite CPE through the ethernet dedicated line.
In the process that the local end CPE sends the detection message to the opposite end CPE through the Ethernet private line, the transmission process of the data message is not stopped, namely, the local end CPE still sends the data message to the opposite end CPE according to the current outlet bandwidth of the local end CPE. And after the outlet bandwidth is changed, the local CPE sends a data message to the opposite CPE according to the changed outlet bandwidth.
For data messages of different Service types, different priorities are available, and QoS (Quality of Service) strategies are configured on the local CPE to store the data messages of different priorities to queues of different priorities, for the egress bandwidth of the local CPE, the queues of different priorities occupy different scheduling weights of the egress bandwidth, and the scheduling weight occupied by the queue of high priority is greater than the scheduling weight occupied by the queue of low priority, thereby ensuring that the data message of high priority is preferentially sent. The sum of the scheduling weights occupied by the queues of each priority is 1, so that the local end CPE uses all current outlet bandwidths of the local end CPE to send the data messages. For example, the priority 2 of the data packet of the video service is higher than the priority 1 of the data packet of the web service, the QoS policy is that when the queue scheduling weight of the priority 2 is 80% and the queue scheduling weight of the priority 1 is 20%, 80% of the current exit bandwidth of the local CPE is allocated to the queue of the priority 2, and 20% of the current exit bandwidth of the local CPE is allocated to the queue of the priority 1, so that the data packet of the video service in the queue of the priority 2 is guaranteed to be preferentially sent by the local CPE, and the service experience is guaranteed.
In the embodiment of the present invention, the detection packet is sent periodically, and the sending period of the detection packet may be set arbitrarily according to actual experience, for example, 20 milliseconds, that is, the detection packet is sent every 20 milliseconds.
In the embodiment of the invention, the priority of the detection message is the lowest priority. The detection message is stored in the queue with the lowest priority by setting the priority of the detection message to be the lowest priority, and when the detection message is sent, the detection message is sent by only utilizing the scheduling weight of the exit bandwidth occupied by the queue with the lowest priority, so that the scheduling weight of the exit bandwidth occupied by the queue with the high priority is not influenced, the transmission of the data message in the queue with the high priority is not influenced, and the current data message transmission process is not influenced.
In the embodiment of the invention, the destination address of the detection message is the IP address of the opposite-end CPE, and the local-end CPE can send the detection message to the opposite-end CPE based on the IP address of the opposite-end CPE.
In the embodiment of the present invention, the traffic size of the probe packet is a preset traffic size, the preset traffic size may be set according to an actual situation, and the preset traffic size may be set to be smaller, so as to reduce the occupation of the current exit bandwidth, for example, the preset traffic size is 0.1% or 0.01% of the current exit bandwidth.
Step 202, the local CPE receives a probe response message from the opposite CPE, where the probe response message carries the number of probe messages received by the opposite CPE within a preset time.
When the local end CPE periodically sends a detection message to the opposite end CPE through the dedicated ethernet line, the opposite end CPE may receive a plurality of detection messages from the local end CPE through the dedicated ethernet line. And the CPE at the opposite end counts the number of the detection messages received by the CPE in the preset time. The preset time can be set arbitrarily according to actual experience, for example, 1 second or 5 seconds, based on which, the CPE at the opposite end counts the number of probe messages received by itself in 1 second or 5 seconds, for example, 20, and sends the number of probe messages received by the CPE at the opposite end in the preset time to the CPE at the home end through the probe response message. Then, the local CPE obtains the number of the probing messages received by the opposite CPE within the preset time from the probing response message.
Step 203, the local CPE determines the link quality of the ethernet dedicated line by using the number of the detection messages received by the opposite CPE within the preset time and the number of the detection messages sent by the local CPE within the preset time.
When the local CPE periodically sends the detection messages to the opposite CPE through the dedicated ethernet line, the local CPE may count the number of the detection messages sent within a preset time. The same preset time may be configured in advance on the local CPE and the opposite-end CPE, or the opposite-end CPE sends information of the preset time to the local CPE through the probe response message, so that the local CPE can obtain the preset time used by the opposite-end CPE. Based on this, the preset time for counting the number of the detection messages by the local CPE is the same as the preset time for counting the number of the detection messages by the opposite CPE.
In the embodiment of the present invention, the process of determining the link quality of the ethernet dedicated line by the local CPE using the number of the detection packets received by the opposite-end CPE within the preset time and the number of the detection packets sent by the local CPE within the preset time may specifically include, but is not limited to, the following manners: when the difference value between the quantity of the detection messages sent by the local CPE in the preset time and the quantity of the detection messages received by the opposite CPE in the preset time is larger than a preset first threshold value, the local CPE determines that the link quality of the Ethernet private line is congestion; when the difference between the number of the detection messages sent by the local-end CPE in the preset time and the number of the detection messages received by the opposite-end CPE in the preset time is smaller than a preset second threshold, the local-end CPE determines that the link quality of the Ethernet private line is not congested.
The preset first threshold value can be set arbitrarily according to actual experience, the preset second threshold value can be set arbitrarily according to actual experience, and the preset first threshold value is larger than the preset second threshold value. For example, the first threshold is preset to be 20, and the second threshold is preset to be 5. For another example, a preset first threshold and a preset second threshold are determined based on the number of the detection messages sent by the local CPE within the preset time, where if the preset first threshold is 5% of the number of the detection messages sent by the local CPE within the preset time, the preset second threshold is 1% of the number of the detection messages sent by the local CPE within the preset time. Of course, the preset first threshold and the preset second threshold may also be set in other manners, and the setting manners of the preset first threshold and the preset second threshold are not described again.
When the difference between the number of the detection messages sent by the local CPE in the preset time and the number of the detection messages received by the opposite CPE in the preset time is greater than the preset first threshold, it is determined that the packet loss condition of the detection messages on the dedicated ethernet line is serious, and at this time, it is determined that the link quality of the dedicated ethernet line is congested, the outlet bandwidth may be adjusted, and step 204 is executed. When the difference between the number of the detection messages sent by the local CPE in the preset time and the number of the detection messages received by the opposite CPE in the preset time is smaller than the preset second threshold, it is indicated that the detection messages are not lost on the dedicated ethernet line, and at this time, it is determined that the link quality of the dedicated ethernet line is not congested, the outlet bandwidth may be adjusted, and step 204 is executed. When the difference between the number of the detection messages sent by the local CPE in the preset time and the number of the detection messages received by the opposite CPE in the preset time is between the preset second threshold and the preset first threshold, it indicates that the detection messages have packet loss on the ethernet dedicated line, but the number of the packet loss is within an acceptable range, and at this time, it is determined that the link quality of the ethernet dedicated line is good, the outlet bandwidth does not need to be adjusted, and step 204 is not executed any more.
Step 204, the local CPE adjusts the egress bandwidth of the QoS by using the link quality of the ethernet dedicated line.
In the embodiment of the present invention, the process of adjusting the egress bandwidth of QoS by the local CPE using the link quality of the ethernet dedicated line specifically includes, but is not limited to, the following modes: when the link quality of the Ethernet private line is congestion, the local CPE adjusts the export bandwidth of the QoS to the current export bandwidth minus a first export bandwidth adjustment value. When the link quality of the Ethernet private line is not congested, if the current outlet bandwidth is less than the user leased bandwidth, the local CPE adjusts the outlet bandwidth of the QoS to the current outlet bandwidth plus a second outlet bandwidth adjustment value, and the adjusted outlet bandwidth is not greater than the user leased bandwidth; if the current egress bandwidth is equal to the user leased bandwidth, the home CPE keeps the current egress bandwidth of the QoS unchanged.
The initial value of the egress bandwidth of QoS is a user leased bandwidth, for example, when the user leases an ethernet dedicated line with 10M bandwidth, the user leased bandwidth may be 10M bandwidth. In the process of adjusting the egress bandwidth of QoS, the maximum value of the adjusted egress bandwidth cannot be greater than the user leased bandwidth.
The first egress bandwidth adjustment value can be set arbitrarily according to practical experience, the second egress bandwidth adjustment value can be set arbitrarily according to practical experience, the first egress bandwidth adjustment value and the second egress bandwidth adjustment value can be the same, and the first egress bandwidth adjustment value and the second egress bandwidth adjustment value can also be different.
When the user leases the ethernet private line with 10M bandwidth, the leased bandwidth of the user is 10M bandwidth. When the egress bandwidth of the QoS is not adjusted, the CPE1 considers the egress bandwidth of the QoS to be 10M bandwidth, and allocates the 10M bandwidth to queues of different priorities, where the queues of different priorities occupy different scheduling weights of the 10M bandwidth. When the operator cannot guarantee the 10M bandwidth service from the CPE1 to the CPE2, if the operator can only provide the 8M bandwidth service, the data packet sent by the terminal device 1 to the terminal device 2 will be lost on the ethernet dedicated line. By using the number of the detection messages received by the opposite-end CPE within the preset time and the number of the detection messages sent by the home-end CPE within the preset time, it can be determined that the link quality of the ethernet dedicated line is congestion, the CPE1 adjusts the outlet bandwidth of the QoS to 10M minus a first outlet bandwidth adjustment value (such as 1M), the adjusted outlet bandwidth of the QoS is 9M, and the 9M bandwidth is allocated to the queues of each priority. Then, by using the number of the detection messages received by the CPE at the opposite end within the preset time and the number of the detection messages sent by the CPE at the home end within the preset time, it is still determined that the link quality of the dedicated ethernet line is congested, the CPE1 adjusts the outlet bandwidth of the QoS to 9M minus 1M, the adjusted outlet bandwidth of the QoS is 8M, and the 8M bandwidth is allocated to the queues of each priority. Then, the number of the detection messages received by the opposite-end CPE within the preset time and the number of the detection messages sent by the home-end CPE within the preset time are used to determine that the link quality of the ethernet dedicated line is good, and the outlet bandwidth of the QoS is not adjusted any more, so that the CPE1 sends the data message to the CPE2 with the bandwidth of 8M.
When the user leases the ethernet private line with 10M bandwidth, the leased bandwidth of the user is 10M bandwidth, the CPE1 allocates the 10M bandwidth to the queues with different priorities, and the queues with different priorities occupy different scheduling weights of the 10M bandwidth. When the operator can guarantee the 10M bandwidth service from CPE1 to CPE2, the data packet sent by terminal 1 to terminal 2 will not be lost on the ethernet dedicated line. The link quality of the Ethernet private line can be determined to be not congested by using the quantity of the detection messages received by the opposite-end CPE in the preset time and the quantity of the detection messages sent by the local-end CPE in the preset time, and since the current exit bandwidth 10M is equal to the user leased bandwidth 10M, the CPE1 keeps the current exit bandwidth of the QoS unchanged, the exit bandwidth of the QoS is not adjusted any more, and the data messages are sent to the CPE2 by using the 10M bandwidth.
When the user leases the ethernet private line with 10M bandwidth, the leased bandwidth of the user is 10M bandwidth. Assuming that the egress bandwidth of the QoS has been adjusted, and the adjusted egress bandwidth of the QoS is 8M, the CPE1 allocates 8M bandwidth to queues of each priority, and queues of different priorities occupy different scheduling weights of 10M bandwidth. When the operator can guarantee the 10M bandwidth service from CPE1 to CPE2, the data packet sent by terminal 1 to terminal 2 will not be lost on the ethernet dedicated line. The number of the detection messages received by the opposite-end CPE in the preset time and the number of the detection messages sent by the local-end CPE in the preset time can be used for determining that the link quality of the Ethernet private line is not congested, because the current outlet bandwidth 8M is smaller than the user leased bandwidth 10M, the CPE1 adjusts the outlet bandwidth of the QoS to be 8M plus a second outlet bandwidth adjustment value (such as 1M), the adjusted outlet bandwidth of the QoS is 9M, and the 9M bandwidth is distributed to queues of each priority level. And then, determining that the link quality of the Ethernet private line is not congested by using the quantity of the detection messages received by the opposite-end CPE in the preset time and the quantity of the detection messages sent by the local-end CPE in the preset time, wherein the current outlet bandwidth 9M is smaller than the user leasing bandwidth 10M, so that the CPE1 adjusts the outlet bandwidth of the QoS to be 9M plus 1M, the adjusted outlet bandwidth of the QoS is 10M, and the 10M bandwidth is allocated to queues of each priority level. Then, the number of the detection messages received by the opposite-end CPE within the preset time and the number of the detection messages sent by the local-end CPE within the preset time are used to determine that the link quality of the ethernet dedicated line is good, and the outlet bandwidth of the QoS is not adjusted any more, so that the CPE1 sends the data message to the CPE2 with the bandwidth of 10M.
Based on the technical scheme, in the embodiment of the invention, the outlet bandwidth of the QoS is dynamically adjusted, so that the outlet bandwidth of the data message can be adapted to the transmission bandwidth of an operator on the Ethernet dedicated line when the data message is sent on the Ethernet dedicated line, thereby reducing the probability of packet loss of the data message on the Ethernet dedicated line and improving the user service experience of a user in the application scene of renting the Ethernet dedicated line of the operator. Moreover, the probability that the data message with high priority is discarded by each forwarding device in the operator network is low, so that the high-priority service of the user is ensured, and the service experience of the user is improved. For example, when a user leases a 10M bandwidth ethernet private line, if the operator cannot guarantee a 10M bandwidth service from CPE1 to CPE2, CPE1 may reduce the egress bandwidth of the QoS, such as reducing the egress bandwidth of the QoS from 10M bandwidth to 9M bandwidth and allocating the 9M bandwidth to queues of various priorities. If the CPE1 needs to send 10M bandwidth datagrams to the CPE2, the CPE1 may discard 1M bandwidth datagrams, which avoids the operator network discarding 1M bandwidth datagrams of the CPE 1. When the CPE1 discards a datagram, the CPE1 may identify the priority in the datagram and discard the datagram with a lower priority. When each forwarding device in the operator network discards a data packet, the priority in the data packet is not identified, so that the possibility that the data packet with high priority is discarded is high, the high-priority service of the user is seriously influenced, and the service experience of the user is influenced.
Based on the same inventive concept as the above method, the embodiment of the present invention further provides a QoS egress bandwidth adjusting device, which is applied to a customer premise equipment CPE of an ethernet private line, and the QoS egress bandwidth adjusting device is applied to a local CPE. The adjusting device of the exit bandwidth may be implemented by software, or may be implemented by hardware or a combination of hardware and software. Taking a software implementation as an example, as a logical device, the device is formed by reading a corresponding computer program instruction in the nonvolatile memory through a processor of the local CPE where the device is located. From a hardware aspect, as shown in fig. 3, a hardware structure diagram of a local CPE where an exit bandwidth adjusting device of QoS provided by the present invention is located is shown, except for the processor and the nonvolatile memory shown in fig. 3, the local CPE may further include other hardware, such as a forwarding chip, a network interface, and a memory, which are responsible for processing a packet; from the hardware structure, the local CPE may also be a distributed device, and may include a plurality of interface cards, so as to perform the extension of the message processing on the hardware level.
As shown in fig. 4, a structure diagram of an adjusting device of an egress bandwidth of QoS proposed by the present invention is shown, where the adjusting device of the egress bandwidth of QoS is applied to a local CPE, and the adjusting device of the egress bandwidth specifically includes:
a sending module 11, configured to construct a detection packet with a destination address as an opposite-end CPE, and periodically send the detection packet to the opposite-end CPE through an ethernet dedicated line;
a receiving module 12, configured to receive a probe response message from the peer CPE, where the probe response message carries the number of probe messages received by the peer CPE within a preset time;
a determining module 13, configured to determine the link quality of the ethernet dedicated line by using the number of the detection packets received by the peer CPE within a preset time and the number of the detection packets sent by the local CPE within a preset time;
and the adjusting module 14 is configured to adjust the egress bandwidth of the QoS by using the link quality of the ethernet private line.
The determining module 13 is specifically configured to determine that the link quality of the ethernet dedicated line is congestion when a difference between the number of the detection packets sent by the local CPE in a preset time and the number of the detection packets received by the opposite CPE in the preset time is greater than a preset first threshold; when the difference value between the number of the detection messages sent by the local CPE in the preset time and the number of the detection messages received by the opposite CPE in the preset time is smaller than a preset second threshold value, determining that the link quality of the Ethernet special line is not congested; wherein the preset first threshold is greater than the preset second threshold.
The adjusting module 14 is specifically configured to, when the link quality of the ethernet dedicated line is congestion, adjust the egress bandwidth of the QoS to a value obtained by subtracting a first egress bandwidth adjustment value from the current egress bandwidth;
when the link quality of the Ethernet private line is not congested, if the current outlet bandwidth is smaller than the user leased bandwidth, adjusting the outlet bandwidth of the QoS to be the current outlet bandwidth plus a second outlet bandwidth adjusting value, wherein the adjusted outlet bandwidth is not larger than the user leased bandwidth; if the current egress bandwidth is equal to the user leased bandwidth, then the current egress bandwidth for QoS is kept unchanged.
The sending module 11 is further configured to send a data packet to the opposite-end CPE according to the current exit bandwidth of the local-end CPE in a process of sending a detection packet to the opposite-end CPE.
In the embodiment of the invention, the priority of the detection message is the lowest priority, and the flow of the detection message is the preset flow.
The modules of the device can be integrated into a whole or can be separately deployed. The modules can be combined into one module, and can also be further split into a plurality of sub-modules.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention. Those skilled in the art will appreciate that the drawings are merely schematic representations of one preferred embodiment and that the blocks or flow diagrams in the drawings are not necessarily required to practice the present invention.
Those skilled in the art will appreciate that the modules in the devices in the embodiments may be distributed in the devices in the embodiments according to the description of the embodiments, and may be correspondingly changed in one or more devices different from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The above disclosure is only for a few specific embodiments of the present invention, but the present invention is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present invention.

Claims (8)

1. A method for adjusting an outlet bandwidth of quality of service (QoS) is applied to Customer Premise Equipment (CPE) of an Ethernet private line, and is characterized by comprising the following steps:
the method comprises the steps that a home terminal CPE constructs a detection message with a destination address as an opposite terminal CPE, and the detection message is periodically sent to the opposite terminal CPE through an Ethernet special line;
the local CPE receives a detection response message from the opposite CPE, wherein the detection response message carries the number of the detection messages received by the opposite CPE within a preset time;
the local CPE determines the link quality of the Ethernet private line by using the quantity of the detection messages received by the opposite CPE within the preset time and the quantity of the detection messages sent by the local CPE within the preset time;
the local CPE utilizes the link quality of the Ethernet private line to adjust the outlet bandwidth of the QoS;
the process of the local CPE using the link quality of the ethernet dedicated line to adjust the egress bandwidth of the QoS specifically includes: when the link quality of the Ethernet private line is congestion, the local CPE adjusts the outlet bandwidth of the QoS to the current outlet bandwidth minus a first outlet bandwidth adjustment value; when the link quality of the Ethernet private line is not congested, if the current outlet bandwidth is less than the user leased bandwidth, the local CPE adjusts the outlet bandwidth of the QoS to be the current outlet bandwidth plus a second outlet bandwidth adjustment value, and the adjusted outlet bandwidth is not greater than the user leased bandwidth; if the current egress bandwidth is equal to the user leased bandwidth, the local CPE keeps the current egress bandwidth of the QoS unchanged.
2. The method according to claim 1, wherein the process of determining the link quality of the ethernet dedicated line by the local CPE using the number of probe packets received by the opposite CPE within a preset time and the number of probe packets sent by the local CPE within a preset time specifically includes:
when the difference value between the quantity of the detection messages sent by the local CPE in the preset time and the quantity of the detection messages received by the opposite CPE in the preset time is larger than a preset first threshold value, the local CPE determines that the link quality of the Ethernet private line is congestion; when the difference value between the number of the detection messages sent by the local-end CPE in the preset time and the number of the detection messages received by the opposite-end CPE in the preset time is smaller than a preset second threshold value, the local-end CPE determines that the link quality of the Ethernet private line is not congested; wherein the preset first threshold is greater than the preset second threshold.
3. The method of claim 1, further comprising:
and the local end CPE sends a data message to the opposite end CPE according to the current outlet bandwidth of the local end CPE in the process of sending a detection message to the opposite end CPE.
4. The method of claim 1, wherein the priority of the probe packet is the lowest priority, and the traffic size of the probe packet is a preset traffic size.
5. An adjusting device of an exit bandwidth of quality of service QoS is applied to a customer premise equipment CPE of an ethernet private line, and is characterized in that the adjusting device of the exit bandwidth of QoS is applied to a local CPE, and specifically includes:
a sending module, configured to construct a detection packet with a destination address as an opposite-end CPE, and periodically send the detection packet to the opposite-end CPE through an ethernet dedicated line;
a receiving module, configured to receive a probe response message from the peer CPE, where the probe response message carries the number of probe messages received by the peer CPE within a preset time;
a determining module, configured to determine link quality of the ethernet dedicated line by using the number of detection packets received by the peer CPE within a preset time and the number of detection packets sent by the local CPE within the preset time;
the adjusting module is used for adjusting the outlet bandwidth of the QoS by utilizing the link quality of the Ethernet special line;
the adjusting module is specifically configured to adjust the egress bandwidth of the QoS to a value obtained by subtracting a first egress bandwidth adjustment value from a current egress bandwidth when the link quality of the ethernet dedicated line is congestion; when the link quality of the Ethernet private line is not congested, if the current outlet bandwidth is smaller than the user leased bandwidth, adjusting the outlet bandwidth of the QoS to be the current outlet bandwidth plus a second outlet bandwidth adjusting value, wherein the adjusted outlet bandwidth is not larger than the user leased bandwidth; if the current egress bandwidth is equal to the user leased bandwidth, then the current egress bandwidth for QoS is kept unchanged.
6. The apparatus of claim 5,
the determining module is specifically configured to determine that the link quality of the ethernet dedicated line is congested when a difference between the number of probe packets sent by the local CPE in a preset time and the number of probe packets received by the opposite CPE in the preset time is greater than a preset first threshold; when the difference value between the number of the detection messages sent by the local CPE in the preset time and the number of the detection messages received by the opposite CPE in the preset time is smaller than a preset second threshold value, determining that the link quality of the Ethernet special line is not congested; wherein the preset first threshold is greater than the preset second threshold.
7. The apparatus of claim 5,
the sending module is further configured to send a data packet to the opposite-end CPE according to the current exit bandwidth of the local-end CPE in a process of sending a detection packet to the opposite-end CPE.
8. The apparatus of claim 5, wherein the priority of the probe packet is the lowest priority, and the traffic size of the probe packet is a preset traffic size.
CN201510731131.1A 2015-10-30 2015-10-30 QoS outlet bandwidth adjusting method and device Active CN105591983B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510731131.1A CN105591983B (en) 2015-10-30 2015-10-30 QoS outlet bandwidth adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510731131.1A CN105591983B (en) 2015-10-30 2015-10-30 QoS outlet bandwidth adjusting method and device

Publications (2)

Publication Number Publication Date
CN105591983A CN105591983A (en) 2016-05-18
CN105591983B true CN105591983B (en) 2020-01-07

Family

ID=55931211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510731131.1A Active CN105591983B (en) 2015-10-30 2015-10-30 QoS outlet bandwidth adjusting method and device

Country Status (1)

Country Link
CN (1) CN105591983B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547129A (en) * 2016-06-23 2018-01-05 中兴通讯股份有限公司 Link state detection method and system
CN106850294B (en) * 2017-01-24 2019-07-09 西安万像电子科技有限公司 The methods, devices and systems of bandwidth estimation
CN110149348A (en) * 2019-06-20 2019-08-20 北京经纬恒润科技有限公司 The means of defence and device of In-vehicle networking
CN111181851B (en) * 2019-10-24 2022-02-25 腾讯云计算(北京)有限责任公司 Method, device and system for determining accelerated link and storage medium
CN114866425B (en) * 2022-03-17 2023-12-05 北京邮电大学 Method and device for adjusting bandwidth of optical service unit connection
CN115208798B (en) * 2022-09-16 2023-01-31 中国电子科技集团公司第三十研究所 Automatic detection method, system, equipment and medium for Ethernet private line mode
CN116980987B (en) * 2023-09-25 2024-01-02 微网优联科技(成都)有限公司 5G CPE signal coverage transmission system and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719875A (en) * 2009-12-15 2010-06-02 杭州华三通信技术有限公司 Method, system and device for adjusting bandwidth of MPLS TE tunnel
CN102934403A (en) * 2010-06-18 2013-02-13 斯凯普公司 Controlling data transmission over a network
CN103229462A (en) * 2012-12-22 2013-07-31 华为技术有限公司 Optimal-path selection method, related device and communication system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7974202B2 (en) * 2005-05-06 2011-07-05 Corrigent Systems, Ltd. Tunnel provisioning with link aggregation
CN100531130C (en) * 2006-06-07 2009-08-19 华为技术有限公司 Method and system for controlling flow based on bandwidth adjusting mechanism
CN101588294B (en) * 2009-06-05 2011-06-08 上海华为技术有限公司 Link bandwidth managing method and network node as well as communicating system
US8824488B2 (en) * 2010-12-10 2014-09-02 At&T Intellectual Property I, L.P. Methods, apparatus and articles of manufacture to select label switched paths (LSPs) for preemption
CN102123444B (en) * 2010-12-31 2014-04-16 华为技术有限公司 Method, equipment and system for sharing transmission bandwidth among different systems
CN103339909A (en) * 2011-12-21 2013-10-02 华为技术有限公司 Method, device and system for determining initial file transmission speed
CN103200115B (en) * 2013-04-19 2016-01-20 杭州华三通信技术有限公司 Flow control methods in a kind of SPB network and equipment
CN104917641B (en) * 2014-03-11 2019-06-25 中国电信股份有限公司 It is a kind of for testing the method, test equipment and system of packet loss

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719875A (en) * 2009-12-15 2010-06-02 杭州华三通信技术有限公司 Method, system and device for adjusting bandwidth of MPLS TE tunnel
CN102934403A (en) * 2010-06-18 2013-02-13 斯凯普公司 Controlling data transmission over a network
CN103229462A (en) * 2012-12-22 2013-07-31 华为技术有限公司 Optimal-path selection method, related device and communication system

Also Published As

Publication number Publication date
CN105591983A (en) 2016-05-18

Similar Documents

Publication Publication Date Title
CN105591983B (en) QoS outlet bandwidth adjusting method and device
US11316795B2 (en) Network flow control method and network device
CN106789729B (en) Cache management method and device in network equipment
US7756026B2 (en) Providing a quality of service for various classes of service for transfer of electronic data packets
US11968111B2 (en) Packet scheduling method, scheduler, network device, and network system
US8254252B2 (en) Bandwidth control apparatus
JP5026502B2 (en) Access control method and system
US11695702B2 (en) Packet forwarding apparatus, method and program
US20220006744A1 (en) Service forwarding method and network device
US7787469B2 (en) System and method for provisioning a quality of service within a switch fabric
US9699113B2 (en) Method and apparatus for bandwidth adjustment in network virtualization system
US20230142425A1 (en) Virtual dual queue core stateless active queue management (agm) for communication networks
US20230336486A1 (en) Service flow scheduling method and apparatus, and system
KR101060191B1 (en) XPON with network processing technology for IP-TV service and its operation method
CN114501544A (en) Data transmission method, device and storage medium
US20100214914A1 (en) Method of bandwidth management in packet networks
CN112468411B (en) Method, device and equipment for deploying QOS (quality of service) of network equipment
KR100975519B1 (en) Network end apparatus and network data switching method
Menth Efficiency of PCN-based network admission control with flow termination
CN116418765A (en) Message processing method and network equipment
CN113810314A (en) Data scheduling method, device and storage medium
JP6281338B2 (en) Transmission apparatus and transmission method
Shahsavari et al. A differentiated services approach: response time performance analysis of QoS application to real-time interactive multimedia over the Internet
Jeong et al. QoS Support for Real-Time Applications Using the Integration of RSVP/Intserv and Diffserv: A Testbed Experiment
Sharafeddine et al. A Dimensioning Strategy for Almost Guaranteed Quality

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant