[go: up one dir, main page]

CN103200124B - The method of adjustment of a kind of business game and device - Google Patents

The method of adjustment of a kind of business game and device Download PDF

Info

Publication number
CN103200124B
CN103200124B CN201310073263.0A CN201310073263A CN103200124B CN 103200124 B CN103200124 B CN 103200124B CN 201310073263 A CN201310073263 A CN 201310073263A CN 103200124 B CN103200124 B CN 103200124B
Authority
CN
China
Prior art keywords
port
bandwidth
hqos
serviceable
policy
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.)
Expired - Fee Related
Application number
CN201310073263.0A
Other languages
Chinese (zh)
Other versions
CN103200124A (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.)
Beijing Huawei Digital Technologies Co Ltd
Original Assignee
Beijing Huawei Digital Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Huawei Digital Technologies Co Ltd filed Critical Beijing Huawei Digital Technologies Co Ltd
Priority to CN201310073263.0A priority Critical patent/CN103200124B/en
Publication of CN103200124A publication Critical patent/CN103200124A/en
Application granted granted Critical
Publication of CN103200124B publication Critical patent/CN103200124B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例公开了一种业务策略的调整方法及装置,所述方法包括:在设备上端口对应的可服务带宽发生变化时,确定可服务带宽发生变化后的带宽值;获取所述带宽值对应的分层次服务质量HQoS策略;其中,所述HQoS策略为不同可服务带宽值对应的不同HQoS策略;如果获取的所述分层次服务质量HQoS策略与所述端口上正在应用的HQoS策略不同,则将所述端口上正在应用的HQoS策略调整为获取的所述HQoS策略。解决了现有技术中,在端口的可服务带宽发生变化时,不能调整为该端口上配置的可服务带宽的QoS或HQoS策略,导致QoS或HQoS策略的准确性降低的技术问题。

The embodiment of the present invention discloses a service policy adjustment method and device, the method comprising: when the serviceable bandwidth corresponding to the port on the device changes, determining the bandwidth value after the serviceable bandwidth changes; acquiring the bandwidth value Corresponding hierarchical quality of service HQoS strategy; wherein, the HQoS strategy is a different HQoS strategy corresponding to different serviceable bandwidth values; if the obtained hierarchical quality of service HQoS strategy is different from the HQoS strategy being applied on the port, Then adjust the HQoS policy being applied on the port to the acquired HQoS policy. It solves the technical problem that in the prior art, when the serviceable bandwidth of a port changes, the QoS or HQoS policy for the serviceable bandwidth configured on the port cannot be adjusted, resulting in reduced accuracy of the QoS or HQoS policy.

Description

一种业务策略的调整方法及装置Method and device for adjusting business strategy

技术领域technical field

本发明涉及网络技术领域,特别涉及一种业务策略的调整方法及装置。The present invention relates to the field of network technology, in particular to a method and device for adjusting service policies.

背景技术Background technique

随着网络协议(Internet Protocol,IP)网络上新应用的不断出现,对IP网络的服务质量(Quality of Service,QoS)也提出了新的要求,传统的QoS技术基于端口进行流量调度,单个端口只能区分业务优先级,无法区分不同用户之间的业务。属于同一优先级的流量,使用同一个端口队列,彼此之间竞争同一个队列资源,因此,传统的QoS技术无法对端口上单个用户的单个流量进行区分服务。With the continuous emergence of new applications on the Internet Protocol (IP) network, new requirements are put forward for the Quality of Service (QoS) of the IP network. The traditional QoS technology performs traffic scheduling based on ports, and a single port It can only distinguish business priorities, but cannot distinguish businesses between different users. Traffic belonging to the same priority uses the same port queue and competes with each other for the same queue resource. Therefore, traditional QoS technologies cannot provide differentiated services for individual traffic of a single user on a port.

而随着网络用户数量的持续增长和网络业务的不断丰富,用户和运营商都希望能够提供区分用户和用户业务的服务,以获得更好的服务质量和更多的利润。层次化服务质量控制(Hierarchical Quality of Service,HQoS),既能为高级用户提供精细化的服务质量保证,又能够从整体上节约网络运行维护成本。With the continuous growth of the number of network users and the continuous enrichment of network services, both users and operators hope to provide services that distinguish between users and user services, so as to obtain better service quality and more profits. Hierarchical Quality of Service (HQoS) can not only provide refined service quality assurance for advanced users, but also save overall network operation and maintenance costs.

随着网络的发展和演进,端口对应的可服务带宽不再是传统的正常和异常两种情况,在某些外部条件发生变化(例如天气变化导致的微波带宽变化、多物理通道链路部分故障、三方网络服务带宽变化等场景)时,导致端口实际上可服务带宽发生了变化,比如可以在正常带宽和0带宽之间的中间值上动态变化,而为该端口上配置的原可服务带宽的QoS策略或HQoS策略已经不再适用,无法满足用户对QoS策略或HQoS策略的精确需求。可服务带宽为实际可用的带宽。With the development and evolution of the network, the serviceable bandwidth corresponding to the port is no longer the traditional normal and abnormal situations. When some external conditions change (such as changes in microwave bandwidth caused by weather changes, partial failure of multi-physical channel links) , three-party network service bandwidth changes, etc.), the actual serviceable bandwidth of the port has changed, for example, it can dynamically change at an intermediate value between the normal bandwidth and 0 bandwidth, and the original serviceable bandwidth configured on the port The specific QoS policy or HQoS policy is no longer applicable, and cannot meet the precise requirements of users for QoS policy or HQoS policy. The serviceable bandwidth is the actual available bandwidth.

因此,在对现有技术的研究和实践过程中,本发明的发明人发现,现有的实现方式中,在链路故障或其他外力作用导致对应端口的可服务带宽发生变化时,不能动态调整为该端口上配置的可服务带宽的QoS策略或HQoS策略,无法满足用户对QoS或HQoS精确的需求,降低了用QoS或HQoS策略的准确性。Therefore, during the research and practice of the prior art, the inventors of the present invention found that in the existing implementation, when the serviceable bandwidth of the corresponding port changes due to a link failure or other external forces, the bandwidth cannot be dynamically adjusted. The QoS policy or HQoS policy configured for the serviceable bandwidth on this port cannot meet the user's precise requirements for QoS or HQoS, which reduces the accuracy of using the QoS or HQoS policy.

发明内容Contents of the invention

本发明实施例中提供了一种业务策略的调整方法及装置。Embodiments of the present invention provide a service policy adjustment method and device.

第一方面提供了一种业务策略的调整方法,包括:The first aspect provides a method for adjusting business strategies, including:

在设备上端口对应的可服务带宽发生变化时,确定可服务带宽发生变化后的带宽值;When the serviceable bandwidth corresponding to the port on the device changes, determine the bandwidth value after the change in the serviceable bandwidth;

获取所述带宽值对应的分层次服务质量HQoS策略;其中,所述HQoS策略为不同可服务带宽值对应的不同HQoS策略;Obtaining the hierarchical quality of service HQoS policy corresponding to the bandwidth value; wherein, the HQoS policy is a different HQoS policy corresponding to different serviceable bandwidth values;

如果获取的所述分层次服务质量HQoS策略与所述端口上正在应用的HQoS策略不同,则将所述端口上正在应用的HQoS策略调整为获取的所述HQoS策略。If the acquired hierarchical quality of service HQoS policy is different from the HQoS policy being applied on the port, then adjust the HQoS policy being applied on the port to the acquired HQoS policy.

在第一方面的第一种可能的实现方式中,所述将端口上正在应用的HQoS策略调整为获取的所述HQoS策略后,还包括:In the first possible implementation manner of the first aspect, after adjusting the HQoS policy being applied on the port to the acquired HQoS policy, further includes:

记录所述端口上正在应用的HQoS策略为获取的所述HQoS策略。Record the HQoS policy being applied on the port as the acquired HQoS policy.

结合第一方面或第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述获取到所述HQoS策略后,所述方法还包括:With reference to the first aspect or the first possible implementation of the first aspect, in a second possible implementation, after the HQoS policy is obtained, the method further includes:

判断获取的所述HQoS策略是否与所述端口上正在应用的HQoS策略相同;如果不同,执行将所述端口上正在应用的HQoS策略调整为获取的所述HQoS策略的步骤。Judging whether the obtained HQoS policy is the same as the HQoS policy being applied on the port; if not, performing the step of adjusting the HQoS policy being applied on the port to the obtained HQoS policy.

结合第一方面或第一方面的第一种或第二种可能的实现方式,在第三种可能的实现方式中,所述在设备上端口对应的可服务带宽发生变化时,确定可服务带宽发生变化后的带宽值包括:With reference to the first aspect or the first or second possible implementation of the first aspect, in a third possible implementation, when the serviceable bandwidth corresponding to the port on the device changes, determine the serviceable bandwidth The changed bandwidth values include:

接收网管发送的与所述端口对应节点设备上的端口的可服务带宽发生变化的通知;根据所述通知获知可服务带宽发生变化后的带宽值;或者receiving a notification sent by the network manager that the serviceable bandwidth of the port on the node device corresponding to the port changes; and obtaining the bandwidth value after the change in the serviceable bandwidth according to the notification; or

向网管发送获取与所述端口对应节点设备上的端口的可服务带宽是否发生变化的请求,以及接收到网管发送的与所述端口对应节点设备上的端口的可服务带宽发生变化的响应;根据所述响应获得可服务带宽发生变化后的带宽值;或者Sending a request to the network manager to obtain whether the serviceable bandwidth of the port on the node device corresponding to the port changes, and receiving a response from the network manager that the serviceable bandwidth of the port on the node device corresponding to the port changes; according to The response obtains a bandwidth value after a change in the serviceable bandwidth; or

所述设备与所述对应节点设备进行信息交互,获得与所述端口对应节点设备上的端口的可服务带宽发生变化的带宽值。The device performs information interaction with the corresponding node device, and obtains a bandwidth value corresponding to a change in the serviceable bandwidth of the port on the node device corresponding to the port.

结合第一方面或第一方面的第一种或第二种或第三种可能的实现方式,在第四种可能的实现方式中,所述获取所述带宽值对应的分层次服务质量HQoS策略,包括:With reference to the first aspect or the first, second, or third possible implementation of the first aspect, in a fourth possible implementation, the acquiring the hierarchical quality of service HQoS policy corresponding to the bandwidth value ,include:

从所述设备的本地数据库中获取所述带宽值对应的HQoS策略;或者从第三方服务器中获取所述带宽值对应的HQoS策略;Obtain the HQoS policy corresponding to the bandwidth value from the local database of the device; or obtain the HQoS policy corresponding to the bandwidth value from a third-party server;

其中,所述本地数据库或第三方服务器中存储有:每个端口上的不同可服务带宽值对应的不同HQoS策略。Wherein, the local database or the third-party server stores: different HQoS policies corresponding to different serviceable bandwidth values on each port.

第二方面提供了一种业务策略的调整方法,所述方法包括:The second aspect provides a method for adjusting a service policy, the method including:

在设备上端口的可服务带宽发生变化时,确定对应的端口和所述端口可服务带宽发生变化的带宽值;When the serviceable bandwidth of a port on the device changes, determine the corresponding port and the bandwidth value at which the serviceable bandwidth of the port changes;

获取所述带宽值对应的分层次服务质量HQoS策略;Obtain the hierarchical quality of service HQoS policy corresponding to the bandwidth value;

如果获取的所述分层次服务质量HQoS策略与所述端口上正在应用的HQoS策略不同,则将获取的所述HQoS策略分配给所述设备,以便于所述设备将所述端口上正在应用的HQoS策略调整为获取的所述HQoS策略。If the obtained hierarchical quality of service HQoS policy is different from the HQoS policy being applied on the port, then distribute the obtained HQoS policy to the device, so that the device can apply the HQoS policy on the port The HQoS policy is adjusted to the acquired HQoS policy.

在第二方面的第一种可能的实现方式中,In a first possible implementation of the second aspect,

所述将获取的所述HQoS策略分配给所述设备的端口后,还包括:After assigning the obtained HQoS policy to the port of the device, it also includes:

记录所述端口上正在应用的HQoS策略为获取的所述HQoS策略。Record the HQoS policy being applied on the port as the acquired HQoS policy.

结合第二方面或第二方面的第一种可能的实现方式,在第二种可能的实现方式中,所述获取到所述HQoS策略后,所述方法还包括:With reference to the second aspect or the first possible implementation of the second aspect, in the second possible implementation, after the HQoS policy is acquired, the method further includes:

判断获取的所述HQoS策略是否与所述端口上正在应用的HQoS策略相同;如果不同,执行将获取的所述HQoS策略分配给所述设备的步骤。Judging whether the obtained HQoS policy is the same as the HQoS policy being applied on the port; if not, performing the step of distributing the obtained HQoS policy to the device.

结合第二方面或第二面的第一种或第二种可能的实现方式,在第三种可能的实现方式中,所述在设备上端口的可服务带宽发生变化时,确定对应的端口和所述端口可服务带宽发生变化的带宽值,包括:With reference to the second aspect or the first or second possible implementation of the second aspect, in a third possible implementation, when the serviceable bandwidth of a port on a device changes, determine the corresponding port and The bandwidth value at which the serviceable bandwidth of the port changes, including:

接收网管发送的与所述端口对应节点设备上的端口的可服务带宽发生变化的通知;根据所述通知获知可服务带宽发生变化后的带宽值;或者receiving a notification sent by the network manager that the serviceable bandwidth of the port on the node device corresponding to the port changes; and obtaining the bandwidth value after the change in the serviceable bandwidth according to the notification; or

向所述设备对应的可服务带宽变化的源节点设备发送获取发生变化的带宽请求,以及接收到所述源节点设备发送的与所述端口对应节点设备上的端口的可服务带宽发生变化的响应;根据所述响应获得可服务带宽发生变化后的带宽值;或者Sending a request to obtain a changed bandwidth to the source node device corresponding to the change in the serviceable bandwidth of the device, and receiving a response sent by the source node device that the serviceable bandwidth of the port on the node device corresponding to the port has changed ; Obtain the bandwidth value after the serviceable bandwidth has changed according to the response; or

与所述设备对应的可服务带宽变化的源节点设备进行信息交互,获得与所述端口对应节点设备上的端口的可服务带宽发生变化的带宽值。Perform information interaction with the source node device whose serviceable bandwidth corresponding to the device changes, and obtain a bandwidth value corresponding to the change in the serviceable bandwidth of the port on the node device corresponding to the port.

结合第二方面或第二方面的第一种或第二种或第三种可能的实现方式,在第四种可能的实现方式中,所述获取所述带宽值对应的分层次服务质量HQoS策略,包括:With reference to the second aspect or the first, second, or third possible implementation of the second aspect, in a fourth possible implementation, the acquiring the hierarchical quality of service HQoS policy corresponding to the bandwidth value ,include:

从所述网管的本地服务器中获取所述带宽值对应的HQoS策略;或者从第三方服务器中获取所述带宽值对应的HQoS策略;Obtain the HQoS policy corresponding to the bandwidth value from the local server of the network manager; or obtain the HQoS policy corresponding to the bandwidth value from a third-party server;

其中,所述本地服务器或第三方服务器中存储有:每个端口上的不同可服务带宽值对应的不同HQoS策略。Wherein, the local server or the third-party server stores: different HQoS policies corresponding to different serviceable bandwidth values on each port.

第三方面提供了一种业务策略的调整装置,包括:The third aspect provides a device for adjusting a business strategy, including:

确定单元,用于在设备上端口对应的可服务带宽发生变化时,确定可服务带宽发生变化后的带宽值;The determining unit is used to determine the bandwidth value after the serviceable bandwidth changes when the serviceable bandwidth corresponding to the port on the device changes;

获取单元,用于获取所述带宽值对应的分层次服务质量HQoS策略;其中,所述HQoS策略为不同可服务带宽值对应的不同HQoS策略;An acquisition unit, configured to acquire a hierarchical quality of service HQoS policy corresponding to the bandwidth value; wherein the HQoS policy is a different HQoS policy corresponding to different serviceable bandwidth values;

调整单元,用于在获取的所述分层次服务质量HQoS策略与所述端口上正在应用的HQoS策略不同时,则将所述端口上正在应用的HQoS策略调整为获取的所述HQoS策略。An adjusting unit, configured to adjust the HQoS policy being applied on the port to the acquired HQoS policy when the acquired hierarchical QoS HQoS policy is different from the HQoS policy being applied on the port.

在第三方面的第一种可能的实现方式中,还包括:In the first possible implementation manner of the third aspect, it also includes:

记录单元,用于在所述调整单元将所述端口上正在应用的HQoS策略调整为获取的所述HQoS策略后,记录所述端口上正在应用的HQoS策略为获取的所述HQoS策略。A recording unit, configured to record the HQoS policy being applied on the port as the acquired HQoS policy after the adjusting unit adjusts the HQoS policy being applied on the port to the acquired HQoS policy.

结合第三方面或第三方面的第一种可能的实现方式,在第二种可能的实现方式中,还包括:In combination with the third aspect or the first possible implementation manner of the third aspect, the second possible implementation manner further includes:

判断单元,用于在所述获取单元获取到所述HQoS策略后,判断获取的所述HQoS策略是否与所述端口上正在应用的HQoS策略相同,并将不同的判断结果发送给所述调整单元;A judging unit, configured to judge whether the acquired HQoS policy is the same as the HQoS policy being applied on the port after the acquiring unit acquires the HQoS policy, and send a different judgment result to the adjusting unit ;

所述调整单元,还用于在接收到所述不同的判断结果时,将所述端口上正在应用的HQoS策略调整为获取的所述HQoS策略。The adjusting unit is further configured to adjust the HQoS policy being applied on the port to the obtained HQoS policy when receiving the different judgment result.

结合第三方面或第三方面的第一种或第二种可能的实现方式,在第三种可能的实现方式中,所述确定单元包括:With reference to the third aspect or the first or second possible implementation manner of the third aspect, in a third possible implementation manner, the determining unit includes:

第一接收单元,用于接收网管发送的与所述端口对应节点设备上的端口的可服务带宽发生变化的通知;The first receiving unit is configured to receive a notification sent by the network manager that the serviceable bandwidth of the port on the node device corresponding to the port changes;

第一确定单元,用于根据所述通知获知可服务带宽发生变化后的带宽值。The first determining unit is configured to obtain the bandwidth value after the serviceable bandwidth changes according to the notification.

结合第三方面或第三方面的第一种或第二种或第三种可能的实现方式,在第四种可能的实现方式中,所述确定单元包括:With reference to the third aspect or the first, second, or third possible implementation manner of the third aspect, in a fourth possible implementation manner, the determining unit includes:

发送单元,用于向网管发送获取与所述端口对应节点设备上的端口的可服务带宽是否发生变化的请求;A sending unit, configured to send a request to the network manager to obtain whether the serviceable bandwidth of the port on the node device corresponding to the port changes;

第二接收单元,用于接收网管发送的与所述端口对应节点设备上的端口的可服务带宽发生变化的响应;The second receiving unit is configured to receive a response sent by the network manager that the serviceable bandwidth of the port on the node device corresponding to the port changes;

第二确定单元,用于根据所述响应获得可服务带宽发生变化后的带宽值。The second determining unit is configured to obtain, according to the response, a bandwidth value after the serviceable bandwidth has changed.

结合第三方面或第三方面的第一种或第二种或第三种或第四种可能的实现方式,在第五种可能的实现方式中,所述确定单元包括:In combination with the third aspect or the first or second or third or fourth possible implementation manner of the third aspect, in a fifth possible implementation manner, the determining unit includes:

交互单元,用于与所述对应节点设备进行信息交互;an interaction unit, configured to perform information interaction with the corresponding node device;

第三确定单元,用于获得与所述端口对应节点设备上的端口的可服务带宽发生变化的带宽值。The third determining unit is configured to obtain a bandwidth value corresponding to a change in the serviceable bandwidth of the port on the node device corresponding to the port.

结合第三方面或第三方面的第一种或第二种或第三种或第四种或第五种可能的实现方式,在第六种可能的实现方式中,所述获取单元包括:In combination with the third aspect or the first or second or third or fourth or fifth possible implementation of the third aspect, in a sixth possible implementation, the acquiring unit includes:

第一获取单元,用于从所述设备的本地数据库中获取所述带宽值对应的HQoS策略;和/或A first acquiring unit, configured to acquire an HQoS policy corresponding to the bandwidth value from a local database of the device; and/or

第二获取单元,用于从第三方服务器中获取所述带宽值对应的HQoS策略;A second obtaining unit, configured to obtain the HQoS policy corresponding to the bandwidth value from a third-party server;

其中,所述本地数据库或第三方服务器中预先存储有:每个端口上的不同可服务带宽值对应的不同HQoS策略。Wherein, the local database or the third-party server pre-stores: different HQoS policies corresponding to different serviceable bandwidth values on each port.

第四方面提供了一种业务策略的调整装置,包括:The fourth aspect provides a device for adjusting a business strategy, including:

确定单元,用于在设备上端口的可服务带宽发生变化时,确定对应的端口和所述端口可服务带宽发生变化的带宽值;A determination unit, configured to determine the corresponding port and the bandwidth value at which the serviceable bandwidth of the port changes when the serviceable bandwidth of the port on the device changes;

获取单元,用于获取所述带宽值对应的分层次服务质量HQoS策略;An acquisition unit, configured to acquire a hierarchical quality of service HQoS policy corresponding to the bandwidth value;

分配单元,用于在获取的所述分层次服务质量HQoS策略与所述端口上正在应用的HQoS策略不同,则将获取的所述HQoS策略分配给所述设备的端口,以便于所述设备将所述端口上正在应用的HQoS策略调整为获取的所述HQoS策略。An allocating unit, configured to allocate the obtained HQoS policy to the port of the device when the obtained hierarchical quality of service HQoS policy is different from the HQoS policy being applied on the port, so that the device will The HQoS policy being applied on the port is adjusted to the acquired HQoS policy.

在第四方面的第一种可能的实现方式中,还包括:In the first possible implementation manner of the fourth aspect, it also includes:

记录单元,用于将获取的所述HQoS策略分配给所述设备的端口后,记录所述端口上正在应用的HQoS策略为获取的所述HQoS策略。The recording unit is configured to record the HQoS policy being applied on the port as the acquired HQoS policy after assigning the obtained HQoS policy to the port of the device.

结合第四方面或第四方面的第一种可能的实现方式,在第二种可能的实现方式中,还包括:In combination with the fourth aspect or the first possible implementation manner of the fourth aspect, the second possible implementation manner further includes:

判断单元,用于获取到所述HQoS策略后,判断获取的所述HQoS策略是否与所述端口上正在应用的HQoS策略相同;并将不同的判断结果发送给所述分配单元;A judging unit, configured to judge whether the acquired HQoS policy is the same as the HQoS policy being applied on the port after acquiring the HQoS policy; and send different judgment results to the allocation unit;

所述分配单元,还用于在接收到所述判断单元发送的不同的判断结果时,将获取的所述HQoS策略分配给所述设备。The assigning unit is further configured to assign the acquired HQoS policy to the device when receiving different judgment results sent by the judging unit.

结合第四方面或第四方面的第一种或第二种可能的实现方式,在第三种可能的实现方式中,所述确定单元包括:With reference to the fourth aspect or the first or second possible implementation manner of the fourth aspect, in a third possible implementation manner, the determining unit includes:

第一确定单元,用于接收网管发送的与所述端口对应节点设备上的端口的可服务带宽发生变化的通知;根据所述通知获知可服务带宽发生变化后的带宽值;或者The first determining unit is configured to receive a notification sent by the network manager that the serviceable bandwidth of the port on the node device corresponding to the port changes; obtain the bandwidth value after the serviceable bandwidth has changed according to the notification; or

第二确定单元,用于向所述设备对应的可服务带宽变化的源节点设备发送获取发生变化的带宽请求,以及接收到所述源节点设备发送的与所述端口对应节点设备上的端口的可服务带宽发生变化的响应;根据所述响应获得可服务带宽发生变化后的带宽值;或者The second determination unit is configured to send a request for obtaining a changed bandwidth to the source node device whose serviceable bandwidth corresponding to the device changes, and receive the port information of the port on the node device corresponding to the port sent by the source node device A response to a change in the serviceable bandwidth; obtaining a bandwidth value after the change in the serviceable bandwidth according to the response; or

第三确定单元,用于与所述设备对应的可服务带宽变化的源节点设备进行信息交互,获得与所述端口对应节点设备上的端口的可服务带宽发生变化的带宽值。The third determination unit is configured to perform information interaction with the source node device corresponding to the change in the serviceable bandwidth of the device, and obtain a bandwidth value corresponding to the change in the serviceable bandwidth of the port on the node device corresponding to the port.

结合第四方面或第四方面的第一种或第二种或第三种可能的实现方式,在第四种可能的实现方式中,所述获取单元包括:With reference to the fourth aspect or the first, second, or third possible implementation manner of the fourth aspect, in a fourth possible implementation manner, the acquiring unit includes:

第一获取单元,用于从所述网管的本地服务器中获取所述带宽值对应的HQoS策略;和或;A first acquiring unit, configured to acquire an HQoS policy corresponding to the bandwidth value from a local server of the network manager; and or;

第二获取单元,用于从第三方服务器中获取所述带宽值对应的HQoS策略;A second obtaining unit, configured to obtain the HQoS policy corresponding to the bandwidth value from a third-party server;

其中,所述本地服务器或第三方服务器中存储有:每个端口上的不同可服务带宽值对应的不同HQoS策略。Wherein, the local server or the third-party server stores: different HQoS policies corresponding to different serviceable bandwidth values on each port.

由上述技术方案可知,本发明实施例中,在端口可服务带宽发生变化时,可以根据可服务带宽发生变化后的带宽值获取对应HQoS策略,从而使得端口可以基于不同的可服务带宽值执行不同的HQoS策略。It can be seen from the above technical solution that in the embodiment of the present invention, when the serviceable bandwidth of a port changes, the corresponding HQoS policy can be obtained according to the changed bandwidth value of the serviceable bandwidth, so that the port can execute different policies based on different serviceable bandwidth values. HQoS policy.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings required in the embodiments. Obviously, the accompanying drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1为本发明实施例提供的一种业务策略的调整方法的流程图;FIG. 1 is a flow chart of a method for adjusting a service policy provided by an embodiment of the present invention;

图2为本发明实施例提供的一种业务策略的调整方法的另一流程图;FIG. 2 is another flowchart of a method for adjusting a service policy provided by an embodiment of the present invention;

图3为本发明实施例提供的一种业务策略的调整方法的另一流程图;FIG. 3 is another flow chart of a method for adjusting a service policy provided by an embodiment of the present invention;

图4为本发明实施例提供的一种业务策略的调整装置的结构示意图;FIG. 4 is a schematic structural diagram of an apparatus for adjusting a service policy provided by an embodiment of the present invention;

图5为本发明实施例提供的一种业务策略的调整装置的另一结构示意图;FIG. 5 is another schematic structural diagram of an apparatus for adjusting a service policy provided by an embodiment of the present invention;

图6为本发明实施例提供的一种业务策略的调整方法的第一应用实例图;FIG. 6 is a diagram of a first application example of a service policy adjustment method provided by an embodiment of the present invention;

图7为本发明实施例提供的一种业务策略的调整方法的第二应用实例图;FIG. 7 is a diagram of a second application example of a service policy adjustment method provided by an embodiment of the present invention;

图8为本发明实施例提供的一种业务策略的调整方法的第三应用实例图。FIG. 8 is a diagram of a third application example of a service policy adjustment method provided by an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整的描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

本发明实施例中的设备、节点设备、相邻节点设备或者源节点设备均为适用于具备QoS或HQoS能力的设备、具备网络管理能力的设备和/或具备通过各类协议感知带宽变化能力的设备。比如,处于数据通信通网络、接入网络、传送网络、核心网络、无线网络、微波通信网络等中的网络设备。比如网络中的路由器、交换机或者网管设备。The devices, node devices, adjacent node devices or source node devices in the embodiments of the present invention are applicable to devices with QoS or HQoS capabilities, devices with network management capabilities, and/or devices with the ability to perceive bandwidth changes through various protocols equipment. For example, network equipment in a data communication network, access network, transport network, core network, wireless network, microwave communication network, etc. Such as routers, switches or network management devices in the network.

请参与图1为本发明实施例提供的一种业务策略的调整方法的流程图;在该实施例中,将配置的分层次服务质量HQoS策略预先存储在设备上,所述方法包括:Please refer to Figure 1 for a flow chart of a method for adjusting a service policy provided by an embodiment of the present invention; in this embodiment, the configured hierarchical service quality HQoS policy is pre-stored on the device, and the method includes:

101:在设备上端口对应的可服务带宽发生变化时,确定可服务带宽发生变化后的带宽值;101: When the serviceable bandwidth corresponding to the port on the device changes, determine the bandwidth value after the change in the serviceable bandwidth;

在101中,端口对应的可服务带宽发生变化有很多种情况,比如,实际应用中类似天气变化导致的微波带宽变化、多物理通道链路部分故障、三方网络服务带宽变化等等,可能导致端口对应的实际可服务带宽变化为在0和正常带宽值之间的某个某中间值情况。但并不限于此这几种情况,还可以是其他导致可服务带宽发生变化的情况。In 101, there are many situations in which the serviceable bandwidth corresponding to a port changes. For example, in practical applications, microwave bandwidth changes caused by weather changes, partial failures of multi-physical channel links, and changes in service bandwidth of third-party networks may cause port The corresponding actual serviceable bandwidth changes to a certain intermediate value between 0 and the normal bandwidth value. However, it is not limited to these situations, and may also be other situations that lead to changes in the serviceable bandwidth.

在该实施例中,检测设备上端口对应的可服务带宽是否发生变化,可以通过下述三种方式中任一种来实现,但并不限于此:In this embodiment, detecting whether the serviceable bandwidth corresponding to the port on the device changes can be implemented in any of the following three ways, but it is not limited thereto:

第一种方式是,所述设备接收到网管发送的与所述端口对应节点设备上的端口的可服务带宽发生变化的通知;根据所述通知获知可服务带宽发生变化后的带宽值。其中,所述端口对应的节点设备可以是通过所述设备的端口与所述设备进行通信的节点设备。The first way is that the device receives a notification sent by the network manager that the serviceable bandwidth of the port on the node device corresponding to the port changes; and obtains the bandwidth value after the serviceable bandwidth changes according to the notification. Wherein, the node device corresponding to the port may be a node device that communicates with the device through the port of the device.

也就是说,网管与可服务带宽发生变化的源节点设备先建立连接,当该源节点设备上的可服务带宽发生变化时,该源节点设备通知网管,具体的通知方式可以是通过简单网络管理协议(Simple Network Management Protocol,SNMP),也可以是其他方式,本实施例不作限制。网管在接收到所述可服务带宽发生变化通知时,将所述可服务带宽发生变化通知发给与所述源节点设备对应的设备上,即所述设备接收到网管发送的与所述端口对应节点设备上的端口的可服务带宽发生变化的通知,然后,所述设备就获知了可服务带宽发生变化后的带宽值,也就是说,网管将该设备的可服务带宽发生变化的带宽值通知给该设备。That is to say, the network management first establishes a connection with the source node device whose serviceable bandwidth changes. When the serviceable bandwidth of the source node device changes, the source node device notifies the network management system. The specific notification method can be through simple network management The protocol (Simple Network Management Protocol, SNMP) may also be in other manners, which are not limited in this embodiment. When the network manager receives the notification of the change in the serviceable bandwidth, it sends the notification of the change in the serviceable bandwidth to the device corresponding to the source node device, that is, the device receives the notification sent by the network manager and corresponds to the port. Notification that the serviceable bandwidth of the port on the node device changes, and then the device knows the bandwidth value after the change in the serviceable bandwidth, that is, the network management notifies the bandwidth value of the change in the serviceable bandwidth of the device to the device.

第二种方式是,设备向网管发送获取与所述端口对应节点设备上的端口的可服务带宽是否发生变化的请求,以及接收到网管发送的与所述端口对应节点设备上的端口的可服务带宽发生变化的响应;根据所述响应获得可服务带宽发生变化后的带宽值;The second method is that the device sends a request to the network manager to obtain whether the serviceable bandwidth of the port on the node device corresponding to the port has changed, and receives the serviceable bandwidth of the port on the node device corresponding to the port sent by the network manager. A response to a change in bandwidth; obtain the bandwidth value after the change in serviceable bandwidth according to the response;

在该方式中,设备可以实时或定时向网管发送获取与其通信的对应节点设备的可服务带宽是否发生变化的请求,网管在接收到所述请求后,如果该对应节点设备的可服务带宽发生了变化,则网管将所述对应节点设备的可服务带宽发生变化的响应告知所述设备,如果没有发生变化,则将所述对应节点设备的可服务带宽没有发生变化的响应告知所述设备。如果所述设备接收到对应节点设备的可服务带宽发生变化的响应,则根据所述响应确定的可服务带宽发生变化的带宽值;如果所述设备接收到对应节点设备的可服务带宽没有发生变化的响应,则不作任何处理。In this way, the device can send a request to the network manager in real time or regularly to obtain whether the serviceable bandwidth of the corresponding node device communicating with it has changed. After receiving the request, the network manager will check if the serviceable bandwidth of the corresponding node device changes change, the network manager notifies the device of a response that the serviceable bandwidth of the corresponding node device has changed; if there is no change, the network manager notifies the device of a response that the serviceable bandwidth of the corresponding node device does not change. If the device receives a response that the serviceable bandwidth of the corresponding node device changes, the bandwidth value of the serviceable bandwidth determined according to the response changes; if the device receives the response that the serviceable bandwidth of the corresponding node device does not change response, nothing will be done.

第三种方式为:所述设备与所述对应节点设备进行信息交互,获得与所述端口对应节点设备上的端口的可服务带宽发生变化的带宽值。The third manner is: the device performs information interaction with the corresponding node device, and obtains a bandwidth value corresponding to a change in the serviceable bandwidth of the port on the node device corresponding to the port.

所述设备与对应节点设备之间通过信息交互,来确定对方的可服务带宽是否发生了变化;当然,还可以通过协议感知到对方的可服务带宽是否发生了变化。The device and the corresponding node device determine whether the serviceable bandwidth of the other party has changed through information interaction; of course, it is also possible to perceive whether the serviceable bandwidth of the other party has changed through the protocol.

102:获取所述带宽值对应的分层次服务质量HQoS策略;102: Obtain a hierarchical quality of service HQoS policy corresponding to the bandwidth value;

在102中,所述设备可以从自身的本地数据库中获取所述带宽值对应的HQoS策略;或者从第三方服务器中获取所述带宽值对应的HQoS策略;其中,所述本地数据库和/或第三方服务器中存储有:每个端口上的不同可服务带宽值对应的不同HQoS策略。In 102, the device may obtain the HQoS policy corresponding to the bandwidth value from its own local database; or obtain the HQoS policy corresponding to the bandwidth value from a third-party server; wherein, the local database and/or the first The three-party server stores: different HQoS policies corresponding to different serviceable bandwidth values on each port.

其中,所述本地数据库和/或第三方服务器中预先存储有:每个端口上的不同可服务带宽对应的不同HQoS策略。Wherein, the local database and/or the third-party server pre-store: different HQoS policies corresponding to different serviceable bandwidths on each port.

103:如果获取的所述分层次服务质量HQoS策略与所述端口上正在应用的HQoS策略不同,则将所述端口上正在应用的HQoS策略调整为获取的所述HQoS策略。103: If the acquired hierarchical quality of service HQoS policy is different from the HQoS policy being applied on the port, adjust the HQoS policy being applied on the port to the acquired HQoS policy.

可选的,在103中,在102获取到所述带宽值对应的HQoS策略后,还可以先判断获取到的HQoS策略与所述端口上正在应用的HQoS策略是否相同,如果相同,则不修改该端口上正在应用的HQoS策略,如果不相同,则将所述端口上正在应用的HQoS策略调整为获取的所述HQoS策略;以保证通过该端口传输数据的服务质量。Optionally, in 103, after obtaining the HQoS policy corresponding to the bandwidth value in 102, it is also possible to first determine whether the obtained HQoS policy is the same as the HQoS policy being applied on the port, and if they are the same, do not modify If the HQoS policy being applied on the port is different, adjust the HQoS policy being applied on the port to the obtained HQoS policy; to ensure the quality of service of data transmitted through the port.

本发明实施例中,在端口可服务带宽发生变化时,可以根据可服务带宽发生变化后的带宽值获取对应HQoS策略,从而使得端口可以基于不同的可服务带宽值执行不同的HQoS策略。In the embodiment of the present invention, when the serviceable bandwidth of the port changes, the corresponding HQoS policy can be obtained according to the changed bandwidth value of the serviceable bandwidth, so that the port can implement different HQoS policies based on different serviceable bandwidth values.

还请参与图2,图2为本发明实施例提供的一种业务策略的调整方法的另一流程,该实施例与上述实施例的不同之处在于,在将端口上正在应用的HQoS策略调整为获取的所述HQoS策略后,记录所述端口上正在应用的HQoS策略为获取的所述HQoS策略。所述方法包括:Please also refer to Figure 2. Figure 2 is another flow of a service policy adjustment method provided by the embodiment of the present invention. The difference between this embodiment and the above embodiment is that the HQoS policy being applied on the port is After obtaining the HQoS policy, record the HQoS policy being applied on the port as the obtained HQoS policy. The methods include:

201至203:与101至103同;具体详见上述,在此不再赘述。201 to 203: the same as 101 to 103; see the above for details, and will not repeat them here.

204:记录所述端口上正在应用的HQoS策略为获取的所述HQoS策略。204: Record the HQoS policy being applied on the port as the obtained HQoS policy.

本发明实施例中,在故障或其他外力作用下导致到对应到端口上的可服务带宽发生变化时,通过根据可服务带宽发生变化后的带宽值,进行对应HQoS策略的动态调整,并在所述调整HQoS策略后,将当前端口上调整后的HQoS策略记录到数据库中,以便于后续检测到该端口可服务带宽发生变化时能够从数据库中查询到是否是与当前的HQoS策略保持一致,从而决定是否需要调整端口上应用的HQoS策略,避免在端口上重复执行相同的HQoS策略带来的可靠性、性能等问题。In the embodiment of the present invention, when the serviceable bandwidth corresponding to the port changes due to a fault or other external force, the corresponding HQoS policy is dynamically adjusted according to the changed bandwidth value of the serviceable bandwidth, and in the After adjusting the HQoS policy as described above, record the adjusted HQoS policy on the current port in the database, so that when the serviceable bandwidth of the port is detected later, it can be queried from the database whether it is consistent with the current HQoS policy, so that Determine whether to adjust the HQoS policy applied on the port to avoid reliability and performance problems caused by repeatedly executing the same HQoS policy on the port.

还请参阅图3,为本发明实施例提供的一种业务策略的调整方法的流程图,该实施例与上述实施例的不同之处,网管在加测到端口的可服务带宽发生变化时,网管根据变化的带宽值重新为该端口确定对应的HQoS策略,并将重新确定的HQoS策略发送给该申请,以便于该设备对该端口正在应用的HQoS策略调整为接收到重新确定的HQoS策略。所述方法包括:Please also refer to FIG. 3 , which is a flow chart of a method for adjusting a service policy provided by an embodiment of the present invention. The difference between this embodiment and the above-mentioned embodiment is that when the network manager detects that the serviceable bandwidth of a port changes, The NMS re-determines the corresponding HQoS policy for the port according to the changed bandwidth value, and sends the re-determined HQoS policy to the application, so that the device can adjust the HQoS policy being applied to the port to receive the re-determined HQoS policy. The methods include:

301:在设备上端口的可服务带宽发生变化时,确定对应的端口和所述端口可服务带宽发生变化的带宽值;301: When the serviceable bandwidth of a port on the device changes, determine the corresponding port and the bandwidth value at which the serviceable bandwidth of the port changes;

本实施例通过下述三种方式来说明,但并不限于此,This embodiment is illustrated by the following three ways, but not limited thereto,

一种是,接收网管发送的与所述端口对应节点设备上的端口的可服务带宽发生变化的通知;根据所述通知获知可服务带宽发生变化后的带宽值;One is to receive a notification sent by the network manager that the serviceable bandwidth of the port on the node device corresponding to the port changes; according to the notification, the bandwidth value after the change in the serviceable bandwidth is obtained;

另一种,向所述设备对应的可服务带宽变化的源节点设备获取发生变化的带宽请求,以及接收到所述源节点设备发送的与所述端口对应节点设备上的端口的可服务带宽发生变化的响应;根据所述响应获得可服务带宽发生变化后的带宽值;或者The other is to obtain a changed bandwidth request from the source node device corresponding to the change in the serviceable bandwidth of the device, and receive the occurrence of the serviceable bandwidth of the port on the node device corresponding to the port sent by the source node device a changed response; obtain the bandwidth value after the serviceable bandwidth has changed according to the response; or

另一种,与所述设备对应的可服务带宽变化的源节点设备进行信息交互,获得与所述端口对应节点设备上的端口的可服务带宽发生变化的带宽值。Another way is to exchange information with the source node device whose serviceable bandwidth corresponding to the device changes, and obtain a bandwidth value corresponding to the change in the serviceable bandwidth of the port on the node device corresponding to the port.

302:获取所述带宽值对应的分层次服务质量HQoS策略;302: Obtain a hierarchical quality of service HQoS policy corresponding to the bandwidth value;

本实施例中,具体可以包括:In this embodiment, it may specifically include:

从所述网管的本地服务器中获取所述带宽值对应的HQoS策略;或者从第三方服务器中获取所述带宽值对应的HQoS策略,其中,所述本地服务器或第三方服务器中存储有:每个端口上的不同可服务带宽值对应的不同HQoS策略。Obtain the HQoS policy corresponding to the bandwidth value from the local server of the network manager; or obtain the HQoS policy corresponding to the bandwidth value from a third-party server, wherein the local server or the third-party server stores: each Different HQoS policies corresponding to different serviceable bandwidth values on the port.

303:如果获取的所述分层次服务质量HQoS策略与所述端口上正在应用的HQoS策略不同,则将获取的所述HQoS策略分配给所述设备,以便于所述设备将所述端口上正在应用的HQoS策略调整为获取的所述HQoS策略。303: If the obtained hierarchical quality of service HQoS policy is different from the HQoS policy being applied on the port, assign the obtained HQoS policy to the device, so that the device can apply the HQoS policy on the port The applied HQoS policy is adjusted to the obtained HQoS policy.

可选的,所述获取到所述HQoS策略后,所述方法还可以包括:判断获取的所述HQoS策略是否与所述端口上正在应用的HQoS策略相同;如果不同,将获取的所述HQoS策略分配给所述设备。Optionally, after the HQoS policy is acquired, the method may further include: judging whether the acquired HQoS policy is the same as the HQoS policy being applied on the port; if not, the acquired HQoS policy Policies are assigned to the devices.

可选的,在上述所有实施例的基础上,所述将获取的所述HQoS策略分配给所述设备的端口后,所述方法还可以包括:记录所述端口上正在应用的HQoS策略为获取的所述HQoS策略。Optionally, on the basis of all the above-mentioned embodiments, after allocating the obtained HQoS policy to the port of the device, the method may further include: recording the HQoS policy being applied on the port as obtained of the HQoS policy.

基于上述方法的实现过程,本发明实施例还提供一种业务策略的调整装置,其结构示意图如图4所示,所述装置包括:确定单元41,获取单元42和调整单元43,其中,Based on the implementation process of the above method, an embodiment of the present invention also provides a service policy adjustment device, its structural diagram is shown in Figure 4, the device includes: a determination unit 41, an acquisition unit 42 and an adjustment unit 43, wherein,

所述确定单元41,用于在设备上端口对应的可服务带宽发生变化时,确定可服务带宽发生变化后的带宽值;The determining unit 41 is configured to determine the bandwidth value after the serviceable bandwidth changes when the serviceable bandwidth corresponding to the port on the device changes;

可选的,在一种实施例中,所述确定单元可以包括:第一接收单元和第一确定单元,其中,第一接收单元,用于接收网管发送的与所述端口对应节点设备上的端口的可服务带宽发生变化的通知;所述第一确定单元,用于根据所述通知获知可服务带宽发生变化后的带宽值。Optionally, in an embodiment, the determining unit may include: a first receiving unit and a first determining unit, wherein the first receiving unit is configured to receive the information sent by the network manager on the node device corresponding to the port. A notification of a change in the serviceable bandwidth of the port; the first determination unit is configured to obtain a bandwidth value after the change in the serviceable bandwidth according to the notification.

可选的,另一种实施例中,所述确定单元可以包括:发送单元,第二接收单元和第二确定单元,其中,所述发送单元,用于向网管获取与所述端口对应节点设备上的端口的可服务带宽是否发生变化的请求;所述第二接收单元,用于接收网管发送的与所述端口对应节点设备上的端口的可服务带宽发生变化的响应;所述第二确定单元,用于根据所述响应获得可服务带宽发生变化后的带宽值。Optionally, in another embodiment, the determining unit may include: a sending unit, a second receiving unit, and a second determining unit, wherein the sending unit is configured to obtain the node device corresponding to the port from the network manager whether the serviceable bandwidth of the port on the network has changed; the second receiving unit is configured to receive a response sent by the network manager that the serviceable bandwidth of the port on the node device corresponding to the port has changed; the second determination A unit, configured to obtain, according to the response, a bandwidth value after the serviceable bandwidth has changed.

可选的,另一种实施例中,所述确定单元可以包括:交互单元和第三确定单元,其中,所述交互单元,用于与所述对应节点设备进行信息交互;所述第三确定单元,用于获得与所述端口对应节点设备上的端口的可服务带宽发生变化的带宽值。Optionally, in another embodiment, the determination unit may include: an interaction unit and a third determination unit, wherein the interaction unit is configured to perform information interaction with the corresponding node device; the third determination A unit, configured to obtain a bandwidth value corresponding to a change in the serviceable bandwidth of the port on the node device corresponding to the port.

可选的,另一种实施例中,所述确定单元还可以包括至少上述两种情况。Optionally, in another embodiment, the determining unit may also include at least the above two conditions.

所述获取单元42,用于获取所述带宽值对应的分层次服务质量HQoS策略;其中,所述HQoS策略为不同可服务带宽值对应的不同HQoS策略;The obtaining unit 42 is configured to obtain a hierarchical quality of service HQoS policy corresponding to the bandwidth value; wherein, the HQoS policy is a different HQoS policy corresponding to different serviceable bandwidth values;

其中,再一种可选的实施例中,所述获取单元包括:第一获取单元和/或第二获取单元,其中,所述第一获取单元,用于从所述设备的本地数据库中获取所述带宽值对应的HQoS策略;所述第二获取单元,用于从第三方服务器中获取所述带宽值对应的HQoS策略;其中,所述本地数据库或第三方服务器中预先存储有:每个端口上的不同可服务带宽值对应的不同HQoS策略。Wherein, in yet another optional embodiment, the acquiring unit includes: a first acquiring unit and/or a second acquiring unit, wherein the first acquiring unit is configured to acquire from the local database of the device The HQoS policy corresponding to the bandwidth value; the second obtaining unit is configured to obtain the HQoS policy corresponding to the bandwidth value from a third-party server; wherein, the local database or the third-party server pre-stores: each Different HQoS policies corresponding to different serviceable bandwidth values on the port.

所述调整单元43,用于在获取的所述分层次服务质量HQoS策略与所述端口上正在应用的HQoS策略不同时,则将所述端口上正在应用的HQoS策略调整为获取的所述HQoS策略。The adjusting unit 43 is configured to adjust the HQoS policy being applied on the port to the obtained HQoS policy when the acquired hierarchical service quality HQoS policy is different from the HQoS policy being applied on the port. Strategy.

可选的,在另一实施例中,该实施例在上述实施例的基础上,所述装置还可以包括:判断单元,其中,所述判断单元,用于在所述获取单元获取到所述HQoS策略后,判断获取的所述HQoS策略是否与所述端口上正在应用的HQoS策略相同,并将不同的判断结果发送给所述调整单元;所述调整单元,还用于在接收到所述不同的判断结果时,将所述端口上正在应用的HQoS策略调整为获取的所述HQoS策略。Optionally, in another embodiment, on the basis of the above embodiment, the device may further include: a judging unit, wherein the judging unit is configured to acquire the After the HQoS policy, judge whether the obtained HQoS policy is the same as the HQoS policy being applied on the port, and send different judgment results to the adjustment unit; the adjustment unit is also used to receive the When the judgment results are different, the HQoS policy being applied on the port is adjusted to the acquired HQoS policy.

可选的,在上述所有实施例的基础上,所述装置还可以包括:记录单元,用于在所述调整单元将所述端口上正在应用的HQoS策略调整为获取的所述HQoS策略后,记录所述端口上正在应用的HQoS策略为获取的所述HQoS策略。Optionally, on the basis of all the above-mentioned embodiments, the device may further include: a recording unit, configured to, after the adjusting unit adjusts the HQoS policy being applied on the port to the acquired HQoS policy, Record the HQoS policy being applied on the port as the acquired HQoS policy.

所述装置中各个单元的功能的作用的实现过程,详见上述方法中对应的实现过程,在此不再赘述。For the implementation process of the function of each unit in the device, refer to the corresponding implementation process in the above method for details, and will not be repeated here.

相应的,本发明实施例还提供一种业务策略的调整装置,其结构示意图如图5所示,所述装置包括:确定单元51,获取单元52和分配单元53,其中,所述确定单元51,用于在设备上端口的可服务带宽发生变化时,确定对应的端口和所述端口可服务带宽发生变化的带宽值;所述获取单元52,用于获取所述带宽值对应的分层次服务质量HQoS策略;所述分配单元53,用于在获取的所述分层次服务质量HQoS策略与所述端口上正在应用的HQoS策略不同,则将获取的所述HQoS策略分配给所述设备的端口,以便于所述设备将所述端口上正在应用的HQoS策略调整为获取的所述HQoS策略。Correspondingly, the embodiment of the present invention also provides a service policy adjustment device, its structural diagram is shown in FIG. , used to determine the bandwidth value of the corresponding port and the changed bandwidth of the port when the serviceable bandwidth of the port on the device changes; the obtaining unit 52 is used to obtain the hierarchical service corresponding to the bandwidth value Quality HQoS policy; the assigning unit 53 is configured to assign the obtained HQoS policy to the port of the device when the obtained hierarchical service quality HQoS policy is different from the HQoS policy being applied on the port , so that the device adjusts the HQoS policy being applied on the port to the obtained HQoS policy.

可选的,所述装置还可以包括:记录单元,用于将获取的所述HQoS策略分配给所述设备的端口后,记录所述端口上正在应用的HQoS策略为获取的所述HQoS策略。Optionally, the apparatus may further include: a recording unit, configured to record the HQoS policy being applied on the port as the acquired HQoS policy after the obtained HQoS policy is allocated to the port of the device.

可选的,所述装置还可以包括:判断单元,用于获取到所述HQoS策略后,判断获取的所述HQoS策略是否与所述端口上正在应用的HQoS策略相同;并将不同的判断结果发送给所述分配单元;所述分配单元,还用于在接收到所述判断单元发送的不同的判断结果时,将获取的所述HQoS策略分配给所述设备。Optionally, the device may further include: a judging unit, configured to judge whether the acquired HQoS policy is the same as the HQoS policy being applied on the port after obtaining the HQoS policy; sent to the allocating unit; the allocating unit is further configured to allocate the obtained HQoS policy to the device when receiving different judgment results sent by the judging unit.

可选的,所述确定单元包括:第一确定单元、第一确定单元和/或第一确定单元,Optionally, the determining unit includes: a first determining unit, a first determining unit and/or a first determining unit,

所述第一确定单元,用于接收网管发送的与所述端口对应节点设备上的端口的可服务带宽发生变化的通知;根据所述通知获知可服务带宽发生变化后的带宽值;所述第二确定单元,用于向所述设备对应的可服务带宽变化的源节点设备获取发生变化的带宽请求,以及接收到所述源节点设备发送的与所述端口对应节点设备上的端口的可服务带宽发生变化的响应;根据所述响应获得可服务带宽发生变化后的带宽值;所述第三确定单元,用于与所述设备对应的可服务带宽变化的源节点设备进行信息交互,获得与所述端口对应节点设备上的端口的可服务带宽发生变化的带宽值。The first determination unit is configured to receive a notification sent by the network manager that the serviceable bandwidth of the port on the node device corresponding to the port has changed; obtain the bandwidth value after the serviceable bandwidth has changed according to the notification; the second 2. A determining unit, configured to obtain a changed bandwidth request from the source node device whose serviceable bandwidth corresponding to the device changes, and receive the serviceable port of the port on the node device corresponding to the port sent by the source node device A response to a change in bandwidth; obtain a bandwidth value after the change in the serviceable bandwidth according to the response; the third determination unit is configured to perform information interaction with the source node device corresponding to the change in the serviceable bandwidth of the device, and obtain the corresponding The port corresponds to a bandwidth value at which the serviceable bandwidth of the port on the node device changes.

可选的,所述获取单元包括:第一获取单元和/或第一获取单元,Optionally, the acquisition unit includes: a first acquisition unit and/or a first acquisition unit,

所述第一获取单元,用于从所述网管的本地服务器中获取所述带宽值对应的HQoS策略;所述第二获取单元,用于从第三方服务器中获取所述带宽值对应的HQoS策略,其中,所述本地服务器或第三方服务器中存储有:每个端口上的不同可服务带宽值对应的不同HQoS策略。The first acquiring unit is configured to acquire the HQoS policy corresponding to the bandwidth value from a local server of the network management; the second acquiring unit is configured to acquire the HQoS policy corresponding to the bandwidth value from a third-party server , wherein, the local server or the third-party server stores: different HQoS policies corresponding to different serviceable bandwidth values on each port.

本发明实施例中,在端口可服务带宽为正常值的情况下执行默认的HqoS策略,在故障或其他外力作用导致对应到端口对应相邻源节点设备的端口可服务带宽变化为其它值的情况下,执行对应的不同的HQoS策略,使得上述端口可以基于不同的可服务带宽执行不同的HqoS策略,解决了在同一端口的单一方向仅允许配置一个策略使得策略修改不方便的问题,并且这种执行动态策略的方式能够更适合网络的变化情况,提高故障场景下QoS或HQoS服务的准确性,提升故障情况下QoS或HQoS策略调整的及时性。In the embodiment of the present invention, the default HqoS policy is executed when the serviceable bandwidth of the port is a normal value, and when a fault or other external force causes the serviceable bandwidth of the port corresponding to the adjacent source node device corresponding to the port to change to other values Next, implement different corresponding HQoS policies, so that the above ports can implement different HQoS policies based on different serviceable bandwidths, which solves the problem that only one policy is allowed to be configured in a single direction of the same port, making it inconvenient to modify the policy, and this The method of implementing dynamic policies can be more suitable for network changes, improve the accuracy of QoS or HQoS services in failure scenarios, and improve the timeliness of QoS or HQoS policy adjustments in failure situations.

为了便于本领域技术人员的理解下面以具体的应用实例来说明。In order to facilitate the understanding of those skilled in the art, specific application examples are used below to illustrate.

应用实例一Application example one

请参与图6,为本发明实施例提供的一种业务策略的调整方法的第一应用实例的流程图,本实施例中的HQoS策略是比传统QoS策略更复杂的应用,既适用于现有QoS策略的应用能解决相关的问题,也适用于现有HQoS策略的应用能解决相关的问题。具体包括:Please refer to Figure 6, which is a flow chart of the first application example of a business policy adjustment method provided by the embodiment of the present invention. The HQoS policy in this embodiment is a more complex application than the traditional QoS policy, and is applicable to existing The application of the QoS strategy can solve related problems, and the application of the existing HQoS strategy can solve the related problems. Specifically include:

601:针对端口可服务带宽可能变化的取值,在设备或第三方服务器上预先配置包括默认HQoS策略在内的对应不同带宽变化值的不同HQoS策略;601: According to the possible change value of port serviceable bandwidth, pre-configure different HQoS policies corresponding to different bandwidth change values including the default HQoS policy on the device or third-party server;

602:在设备或第三方服务器上建立端口上不同可服务带宽与对应的HQoS策略的关联关系;602: Establish an association relationship between different serviceable bandwidths on ports and corresponding HQoS policies on the device or a third-party server;

通常情况下是一对一的关系,但并不限于此。Typically, it is a one-to-one relationship, but it is not limited to this.

603:在设备的端口上应用对应端口(对应节点设备上的端口,可以是与设备上的端口进行通信的端口等)正常可服务带宽的默认HQoS策略,并执行609;603: Apply the default HQoS policy of the normal serviceable bandwidth on the port of the device (corresponding to the port on the node device, which may be a port for communicating with the port on the device, etc.), and execute 609;

604:通过某种方式检测到端口可服务带宽发生变化;604: A change in the serviceable bandwidth of the port is detected in some way;

具体可以上述的三种方式,可以是其他的方式,本实施例不作限制。Specifically, the above three manners may be used, and other manners may be used, which are not limited in this embodiment.

605:根据端口可服务带宽变化后的带宽值在设备或第三方服务器上查找对应的HQoS策略,如果查找到,则执行606;否则,执行607;605: Search for the corresponding HQoS policy on the device or the third-party server according to the changed bandwidth value of the port serviceable bandwidth, if found, go to 606; otherwise, go to 607;

606:判断查找到的HQoS策略与数据库中该端口当前应用的HQoS策略是否相同;如果相同,执行607,如果不同,执行608;606: Determine whether the found HQoS policy is the same as the HQoS policy currently applied to the port in the database; if they are the same, execute 607; if they are different, execute 608;

607:不改变当前端口上应用的HQoS策略;607: Do not change the HQoS policy applied on the current port;

608:在设备端口上应用查找到的对应的HQoS策略进行服务质量保证;608: Apply the found corresponding HQoS policy on the device port to ensure service quality;

609:记录端口上当前应用的HQoS策略到数据库。609: Record the HQoS policy currently applied on the port to the database.

其中,在该实施例中,由于端口可服务带宽发生变化的场景是多种多样的,404中检测端口可服务带宽发生变化的方式也是多种多样的,取决于端口对应的可服务带宽变化的源节点设备发生带宽变化的通知和可查询方式,任何通过主动检测、被动消息触发、协议交互等手段(包括但不限于此)检测到的端口可服务带宽变化方式都在本方法的保护范围之内。Among them, in this embodiment, since the scenarios where the serviceable bandwidth of the port changes are various, the ways of detecting the change in the serviceable bandwidth of the port in 404 are also various, depending on the change in the serviceable bandwidth corresponding to the port. The way of notifying and querying the bandwidth change of the source node device, any port serviceable bandwidth change detected through active detection, passive message triggering, protocol interaction and other means (including but not limited to this) are within the scope of protection of this method Inside.

另外,本发明实施例为了避免在端口上已经应用对应可服务带宽的情况下重复应用对应端口可服务带宽的HqoS策略,上述方法通过609中将当前端口应用的HQoS策略记录到数据库中,并在604执行前,检查数据库中当前端口所应用的HQoS策略是否与605查询到的HQoS策略相同,如果不同,则执行608,如果相同,则执行607不做任何动作。通过该方法,可有效降低重复设置相同的HQoS策略带来的可靠性和性能下降等问题。In addition, in the embodiment of the present invention, in order to avoid repeated application of the HqoS policy corresponding to the serviceable bandwidth of the port when the corresponding serviceable bandwidth has already been applied on the port, the above method records the HQoS policy applied to the current port into the database in 609, and Before 604 is executed, check whether the HQoS policy applied to the current port in the database is the same as the HQoS policy queried in 605, if not, go to 608, and if they are the same, go to 607 and do nothing. Through this method, problems such as reliability and performance degradation caused by repeatedly setting the same HQoS policy can be effectively reduced.

应用实例二Application example two

该实施例适用于设备可以直接感知到端口的可服务带宽发生变化的场景,例如多物理链路捆绑情况下个别物理链路down导致可服务带宽发生变化的情况,或者设备可通过某种协议与端口对应的可服务带宽变化源进行端口服务带宽值的交互(包括但不限于此)。通过此发明实例,可不需要通过网管来感知端口对应的可服务带宽的变化,适用于无网管或网管无法管理可服务带宽变化源的情况。This embodiment is applicable to the scenario where the device can directly perceive the change of the serviceable bandwidth of the port, for example, in the case of multi-physical link bundling, individual physical link down causes the serviceable bandwidth to change, or the device can communicate with the port through a certain protocol The serviceable bandwidth change source corresponding to the port interacts with the service bandwidth value of the port (including but not limited to this). Through this example of the invention, it is not necessary to use a network manager to perceive the change of the serviceable bandwidth corresponding to the port, and it is applicable to the situation where there is no network management or the network management cannot manage the change source of the serviceable bandwidth.

还请参阅图7,为本发明实施例提供的一种业务策略的调整方法的第二应用实例图,所述方法包括:Please also refer to FIG. 7 , which is a diagram of a second application example of a method for adjusting a service policy provided by an embodiment of the present invention. The method includes:

701:根据端口相邻节点设备的可提供的服务带宽的不同可能的变化取值,在设备上配置对应不同的HQOS策略;701: Configure different HQOS policies on the device according to the different possible change values of the service bandwidth that can be provided by the adjacent node device of the port;

702:设备上建立某端口相邻节点设备的可服务带宽值和设备端口上对应不同可服务带宽的HQOS策略的1对1的关联关系;702: The device establishes a one-to-one relationship between the serviceable bandwidth value of the adjacent node device of a certain port and the HQOS policy corresponding to different serviceable bandwidths on the device port;

703:在设备的端口上应用对应端口正常可服务带宽的默认HQoS策略,并执行710;703: Apply the default HQoS policy corresponding to the normal serviceable bandwidth of the port on the port of the device, and execute 710;

704:设备端口对应的可服务带宽变化源节点设备的带宽发生变化,端口与其对应的可服务带宽变化源进行协议交互,提供可查询可服务带宽的接口或主动通知设备其带宽的变化值,执行705;704: The serviceable bandwidth corresponding to the device port changes. The bandwidth of the source node device changes. The port performs protocol interaction with the corresponding serviceable bandwidth change source, provides an interface for querying the serviceable bandwidth or actively notifies the device of its bandwidth change value, and executes 705;

705:设备获取到可服务带宽发生变化的端口和端口可服务带宽的变化值;705: The device obtains the port whose serviceable bandwidth changes and the change value of the serviceable bandwidth of the port;

706:设备根据端口和可服务带宽变化后的带宽值查找端口对应的HQoS策略,如果查找到,则执行707;否则,执行708;706: The device searches for the HQoS policy corresponding to the port according to the changed bandwidth value of the port and serviceable bandwidth, and if found, executes 707; otherwise, executes 708;

707:在设备上比较查找到的HQoS策略与设备数据库中该端口当前应用的HQoS策略是否相同,如果相同,执行708,如果不同,执行709;707: Compare the found HQoS policy on the device with the HQoS policy currently applied to the port in the device database. If they are the same, execute 708. If they are different, execute 709;

708:不改变当前端口上应用的HQoS策略;708: Do not change the HQoS policy applied on the current port;

709:在设备端口上实时应用707中所查找到的对应的HQoS策略进行服务质量保证;709: Apply the corresponding HQoS policy found in 707 on the device port in real time to ensure service quality;

710:在设备上记录端口上当前应用的HQoS策略到数据库。710: Record the HQoS policy currently applied on the port to the database on the device.

本实施例中,为避免在端口上已经应用对应可服务带宽的情况下重复应用对应端口可服务带宽的HqoS策略,上述方法通过509将当前端口应用的HQoS策略记录到数据库中,并在708执行前,检查数据库中当前端口所应用的HQoS策略是否与705查询到的HQoS策略相同,如果不同,则执行708,如果相同,则执行707不做任何动作。通过该方法,可有效降低重复设置相同的HQoS策略带来的可靠性和性能下降等问题。In this embodiment, in order to avoid repeated application of the HqoS policy corresponding to the serviceable bandwidth of the port when the corresponding serviceable bandwidth has been applied on the port, the above method records the HQoS policy applied to the current port into the database through 509, and executes it at 708 Before checking whether the HQoS policy applied to the current port in the database is the same as the HQoS policy queried in 705, if not, go to 708, and if they are the same, go to 707 and do nothing. Through this method, problems such as reliability and performance degradation caused by repeatedly setting the same HQoS policy can be effectively reduced.

应用实例三Application Example 3

该实施例优选适用于微波可服务带宽变化、三方网络接口可服务带宽变化、设备多物理链路带宽保护等所有可通过网管上报或通过网管查询可服务带宽变化值的应用场景。This embodiment is preferably applicable to all application scenarios in which serviceable bandwidth changes of microwaves, serviceable bandwidth changes of three-party network interfaces, and multi-physical link bandwidth protection of devices can be reported or queried through network management.

还请参阅图8,为本发明实施例提供的一种业务策略的调整方法的第二应用实例图,所述方法包括:Please also refer to FIG. 8 , which is a diagram of a second application example of a method for adjusting a service policy provided by an embodiment of the present invention. The method includes:

801:据端口相邻节点设备的可提供的服务带宽的不同可能的变化取值,在设备A上配置对应不同的HQOS策略;801: Configure different HQOS policies on device A according to the possible change values of the service bandwidth provided by the adjacent node devices of the port;

其中,配置可通过网管服务器下发,亦可在设备上直接配置;Among them, the configuration can be delivered through the network management server, or directly configured on the device;

802:网管与设备端口对应的可服务带宽变化的源节点设备建立SNMP管理关系;但并不限于此,还可以建立其他关系;802: The network management establishes an SNMP management relationship with the source node device whose serviceable bandwidth changes corresponding to the device port; but it is not limited to this, and other relationships can also be established;

803:网管建立某端口所属相邻节点设备的可服务带宽值和设备端口上对应不同可服务带宽的HQOS策略的1对1的关联关系;803: The network management establishes a 1-to-1 association relationship between the serviceable bandwidth value of the adjacent node device to which a certain port belongs and the HQOS policies corresponding to different serviceable bandwidths on the device port;

804:通过网管进行配置下发或其他方式,在设备的端口上应用对应端口正常可服务带宽的默认HQoS策略,并执行811;804: Apply the default HQoS policy corresponding to the normal serviceable bandwidth of the port on the port of the device through the network management or other methods, and execute 811;

805:设备端口对应的可服务带宽变化源节点设备的带宽发生变化,源节点设备通过管理协议消息通知网管执行806;805: The serviceable bandwidth corresponding to the device port changes. The bandwidth of the source node device changes, and the source node device notifies the network manager to execute 806 through a management protocol message;

其中,也可以是网管通过查询可服务带宽变化源节点设备发现带宽变化,包括且不限于此。Wherein, it may also be that the network manager discovers the bandwidth change by querying the source node device of the serviceable bandwidth change, including but not limited to this.

806:网管通过805中的消息触发或主动查询的方式检测到端口可服务带宽发生变化,获取到对应的端口和端口可服务带宽的变化值;806: The network management detects that the serviceable bandwidth of the port changes through the message trigger or active query in 805, and obtains the corresponding port and the change value of the serviceable bandwidth of the port;

807:网管根据端口和可服务带宽变化后的带宽值在设备或第三方服务器上查找端口对应的HQoS策略,如果查找到,则执行808;否则,执行809;807: The network management searches for the HQoS policy corresponding to the port on the device or the third-party server according to the changed bandwidth value of the port and serviceable bandwidth. If found, execute 808; otherwise, execute 809;

808:网管判断查找到的HQoS策略与数据库中该端口当前应用的HQoS策略是否相同,如果相同,执行809,如果不同,执行810;808: The network manager judges whether the found HQoS policy is the same as the HQoS policy currently applied to the port in the database, if they are the same, execute 809, and if they are different, execute 810;

809:不通过网管或其他任何方式改变当前端口上应用的HQoS策略;809: Do not change the HQoS policy applied on the current port through network management or any other means;

810:网管通过配置方式下发给设备查找到的对应的HQoS策略,以便于对该设备端口实时应用所查找到的对应的HQoS策略,进行服务质量保证;810: The network management sends the found corresponding HQoS policy to the device through the configuration mode, so as to apply the found corresponding HQoS policy to the device port in real time to guarantee the service quality;

811:网管在网管服务器上记录端口上当前应用的HQoS策略到数据库。811: The network management system records the currently applied HQoS policy on the port to the database on the network management server.

本实施例中,为避免在端口上已经应用对应可服务带宽的情况下重复应用对应端口可服务带宽的HqoS策略,上述方法通过811将当前端口应用的HQoS策略记录到数据库中,并在810执行前,检查数据库中当前端口所应用的HQoS策略是否与807查询到的HQoS策略相同,如果不同,则执行810,如果相同,则执行809不做任何动作。通过该方法,可有效降低重复设置相同的HQoS策略带来的可靠性和性能下降等问题。In this embodiment, in order to avoid repeated application of the HqoS policy corresponding to the serviceable bandwidth of the port when the corresponding serviceable bandwidth has been applied on the port, the above method records the HQoS policy applied to the current port into the database through 811, and executes at 810 Before checking whether the HQoS policy applied to the current port in the database is the same as the HQoS policy queried in 807, if not, go to 810, and if they are the same, go to 809 and do nothing. Through this method, problems such as reliability and performance degradation caused by repeatedly setting the same HQoS policy can be effectively reduced.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or order between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM或RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is a better implementation Way. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in storage media, such as ROM or RAM, disk , CD, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments of the present invention.

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is only a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications should also be It is regarded as the protection scope of the present invention.

Claims (14)

1. A method for adjusting a service policy is characterized by comprising the following steps:
when the serviceable bandwidth corresponding to the upper port of the equipment is changed, determining the bandwidth value after the serviceable bandwidth is changed;
acquiring a hierarchical service quality HQoS strategy corresponding to the bandwidth value; the HQoS strategy is different HQoS strategies corresponding to different values of the serviceable bandwidth;
judging whether the obtained HQoS strategy is the same as the HQoS strategy applied to the port or not;
if the obtained HQoS strategy is different from the HQoS strategy which is applied to the port, the HQoS strategy which is applied to the port is adjusted to be the obtained HQoS strategy;
the obtaining of the hierarchical quality of service HQoS policy corresponding to the bandwidth value specifically includes:
acquiring an HQoS strategy corresponding to the bandwidth value from a local database of the equipment; or acquiring an HQoS strategy corresponding to the bandwidth value from a third-party server;
wherein, the local database or the third party server stores: and different HQoS strategies corresponding to different values of the serviceable bandwidth on each port.
2. The method of claim 1, wherein after adjusting the HQoS policy being applied on the port to the acquired HQoS policy, further comprising:
and recording the HQoS strategy applied on the port as the obtained HQoS strategy.
3. The method according to claim 1 or 2, wherein when the serviceable bandwidth corresponding to the port on the device changes, determining the bandwidth value after the change of the serviceable bandwidth comprises:
receiving a notification that the serviceable bandwidth of a port on the node equipment corresponding to the port changes, which is sent by a network manager; acquiring the bandwidth value after the change of the serviceable bandwidth according to the notification; or
Sending a request for acquiring whether the serviceable bandwidth of the port on the node equipment corresponding to the port changes to a network manager, and receiving a response sent by the network manager and indicating that the serviceable bandwidth of the port on the node equipment corresponding to the port changes; obtaining the bandwidth value after the change of the serviceable bandwidth according to the response; or
And the equipment performs information interaction with the node equipment corresponding to the port to obtain a bandwidth value which changes with the serviceable bandwidth of the port on the node equipment corresponding to the port.
4. A method for adjusting a service policy is characterized by comprising the following steps:
when the serviceable bandwidth of a port on equipment changes, determining a corresponding port and a bandwidth value of the port with the changed serviceable bandwidth;
acquiring a hierarchical service quality HQoS strategy corresponding to the bandwidth value;
judging whether the obtained HQoS strategy is the same as the HQoS strategy applied to the port or not;
if the obtained HQoS strategy is different from the HQoS strategy applied to the port, the obtained HQoS strategy is distributed to the equipment, so that the equipment can adjust the HQoS strategy applied to the port to the obtained HQoS strategy;
the obtaining of the hierarchical quality of service HQoS policy corresponding to the bandwidth value specifically includes:
acquiring an HQoS strategy corresponding to the bandwidth value from a local server of a network manager; or acquiring an HQoS strategy corresponding to the bandwidth value from a third-party server;
wherein, the local server or the third party server stores: and different HQoS strategies corresponding to different values of the serviceable bandwidth on each port.
5. The method of claim 4, wherein after assigning the obtained HQoS policy to a port of the device, further comprising:
and recording the HQoS strategy applied on the port as the obtained HQoS strategy.
6. The method according to claim 4 or 5, wherein when the serviceable bandwidth of a port on a device changes, determining the corresponding port and the bandwidth value of the port with the changed serviceable bandwidth comprises:
receiving a notification that the serviceable bandwidth of a port on the node equipment corresponding to the port changes, which is sent by a network manager; acquiring the bandwidth value after the change of the serviceable bandwidth according to the notification; or
Sending a bandwidth request for acquiring changed bandwidth to source node equipment with changed serviceable bandwidth corresponding to the equipment, and receiving a response sent by the source node equipment and sent by the port corresponding to the port, wherein the serviceable bandwidth of the port on the node equipment is changed; obtaining the bandwidth value after the change of the serviceable bandwidth according to the response; or
And performing information interaction with the source node device with the changed serviceable bandwidth corresponding to the device to obtain the bandwidth value with the changed serviceable bandwidth of the port on the node device corresponding to the port.
7. An apparatus for adjusting a traffic policy, comprising:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining a bandwidth value after the serviceable bandwidth changes when the serviceable bandwidth corresponding to the port on the device changes;
the acquisition unit is used for acquiring a hierarchical quality of service (HQoS) strategy corresponding to the bandwidth value; the HQoS strategy is different HQoS strategies corresponding to different values of the serviceable bandwidth;
the judging unit is used for judging whether the obtained HQoS strategy is the same as the HQoS strategy applied to the port or not after the obtaining unit obtains the HQoS strategy, and sending different judging results to the adjusting unit;
the adjusting unit is configured to adjust an HQoS policy being applied to the port to the obtained HQoS policy when the different determination results are received; wherein,
the acquisition unit includes:
a first obtaining unit, configured to obtain an HQoS policy corresponding to the bandwidth value from a local database of the device; and/or
The second acquisition unit is used for acquiring the HQoS strategy corresponding to the bandwidth value from a third-party server;
wherein, the local database or the third-party server stores: and different HQoS strategies corresponding to different values of the serviceable bandwidth on each port.
8. The apparatus of claim 7, further comprising:
and the recording unit is used for recording the HQoS strategy applied to the port as the acquired HQoS strategy after the HQoS strategy applied to the port is adjusted to the acquired HQoS strategy by the adjusting unit.
9. The apparatus according to claim 7 or 8, wherein the determining unit comprises:
a first receiving unit, configured to receive a notification that a serviceable bandwidth of a port on a node device corresponding to the port changes, where the notification is sent by a network manager;
and the first determining unit is used for acquiring the bandwidth value after the change of the serviceable bandwidth according to the notification.
10. The apparatus according to claim 7 or 8, wherein the determining unit comprises:
a sending unit, configured to send a request to a network manager to obtain whether a serviceable bandwidth of a port on a node device corresponding to the port changes;
a second receiving unit, configured to receive a response sent by a network manager and indicating that a serviceable bandwidth of a port on a node device corresponding to the port changes;
and the second determining unit is used for obtaining the bandwidth value after the change of the serviceable bandwidth according to the response.
11. The apparatus according to claim 7 or 8, wherein the determining unit comprises:
the interaction unit is used for carrying out information interaction with the node equipment corresponding to the port;
and a third determining unit, configured to obtain a bandwidth value with which a serviceable bandwidth of a port on the node device corresponding to the port changes.
12. An apparatus for adjusting a traffic policy, comprising:
the device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining a corresponding port and a bandwidth value of the port with the changed serviceable bandwidth when the serviceable bandwidth of the port on the device is changed;
the acquisition unit is used for acquiring a hierarchical quality of service (HQoS) strategy corresponding to the bandwidth value;
the judging unit is used for judging whether the obtained HQoS strategy is the same as the HQoS strategy applied to the port or not after the HQoS strategy is obtained; and sending different judgment results to the distribution unit;
the allocation unit is further configured to allocate the obtained HQoS policy to the port of the device when receiving different determination results sent by the determination unit, so that the device adjusts an HQoS policy being applied to the port to the obtained HQoS policy; wherein,
the acquisition unit includes:
the first obtaining unit is used for obtaining an HQoS strategy corresponding to the bandwidth value from a local server of a network manager; andor;
the second acquisition unit is used for acquiring the HQoS strategy corresponding to the bandwidth value from a third-party server;
wherein, the local server or the third party server stores: and different HQoS strategies corresponding to different values of the serviceable bandwidth on each port.
13. The apparatus of claim 12, further comprising:
and the recording unit is used for recording the HQoS strategy applied to the port as the acquired HQoS strategy after the acquired HQoS strategy is distributed to the port of the equipment.
14. The apparatus according to claim 12 or 13, wherein the determining unit comprises:
a first determining unit, configured to receive a notification that a serviceable bandwidth of a port on a node device corresponding to the port changes, where the notification is sent by a network manager; acquiring the bandwidth value after the change of the serviceable bandwidth according to the notification; or
A second determining unit, configured to send a request for obtaining a changed bandwidth to a source node device with a changed serviceable bandwidth corresponding to the device, and receive a response that is sent by the source node device and changes the serviceable bandwidth of a port on the node device corresponding to the port; obtaining the bandwidth value after the change of the serviceable bandwidth according to the response; or
And a third determining unit, configured to perform information interaction with a source node device that has a variable serviceable bandwidth and corresponds to the device, and obtain a bandwidth value that has a variable serviceable bandwidth with a port on a node device corresponding to the port.
CN201310073263.0A 2013-03-07 2013-03-07 The method of adjustment of a kind of business game and device Expired - Fee Related CN103200124B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310073263.0A CN103200124B (en) 2013-03-07 2013-03-07 The method of adjustment of a kind of business game and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310073263.0A CN103200124B (en) 2013-03-07 2013-03-07 The method of adjustment of a kind of business game and device

Publications (2)

Publication Number Publication Date
CN103200124A CN103200124A (en) 2013-07-10
CN103200124B true CN103200124B (en) 2016-12-28

Family

ID=48722487

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310073263.0A Expired - Fee Related CN103200124B (en) 2013-03-07 2013-03-07 The method of adjustment of a kind of business game and device

Country Status (1)

Country Link
CN (1) CN103200124B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104348753B (en) * 2013-07-26 2018-10-12 华为技术有限公司 Data packet forwarding method and packet transfer device, packet
CN105207952A (en) * 2014-06-12 2015-12-30 中兴通讯股份有限公司 Hierarchical quality of service queue speed-limiting method and apparatus
CN105471610B (en) * 2014-09-05 2020-03-17 中兴通讯股份有限公司 Method and device for protecting HQoS (high-quality QoS) by using multiple board cards
CN108696456B (en) * 2017-04-12 2022-04-12 中兴通讯股份有限公司 HQoS resource scheduling method, equipment and system
CN114039917A (en) * 2021-11-26 2022-02-11 中国电信集团系统集成有限责任公司 Network traffic scheduling comprehensive judgment method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6791941B1 (en) * 1999-09-28 2004-09-14 Lucent Technologies Inc. Learning-based admission control adjustment in data networks
CN1764184A (en) * 2005-10-20 2006-04-26 中兴通讯股份有限公司 Real-time flow media communication transmission system and method
CN101060434A (en) * 2007-04-18 2007-10-24 中兴通讯股份有限公司 Dynamic multilevel service quality assurance dispatching system and method
CN101605057A (en) * 2009-07-02 2009-12-16 中兴通讯股份有限公司 A kind of home gateway is realized the method and system of downlink Qos
CN102204164A (en) * 2011-05-24 2011-09-28 华为技术有限公司 Method and apparatus for reporting network packet-losing message
CN102413040A (en) * 2011-11-04 2012-04-11 中兴通讯股份有限公司 Method and device for executing hierarchical quality of service (QoS) strategy

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6791941B1 (en) * 1999-09-28 2004-09-14 Lucent Technologies Inc. Learning-based admission control adjustment in data networks
CN1764184A (en) * 2005-10-20 2006-04-26 中兴通讯股份有限公司 Real-time flow media communication transmission system and method
CN101060434A (en) * 2007-04-18 2007-10-24 中兴通讯股份有限公司 Dynamic multilevel service quality assurance dispatching system and method
CN101605057A (en) * 2009-07-02 2009-12-16 中兴通讯股份有限公司 A kind of home gateway is realized the method and system of downlink Qos
CN102204164A (en) * 2011-05-24 2011-09-28 华为技术有限公司 Method and apparatus for reporting network packet-losing message
CN102413040A (en) * 2011-11-04 2012-04-11 中兴通讯股份有限公司 Method and device for executing hierarchical quality of service (QoS) strategy

Also Published As

Publication number Publication date
CN103200124A (en) 2013-07-10

Similar Documents

Publication Publication Date Title
US20210185695A1 (en) Methods, systems, and computer readable media for providing for network slice management using feedback mechanism
KR101868070B1 (en) Service layer southbound interface and quality of service
CN108471629B (en) Method, equipment and system for controlling service quality in transmission network
US9172760B2 (en) Method and device for monitoring service usage amount
US20120158949A1 (en) Network system for policing resource intensive behaviors
KR20090054528A (en) Service quality management method for users and system for performing the same
US8832141B2 (en) Method, device and system for combination of resource and admission control
US11165716B2 (en) Data flow processing method and device
JP6478358B2 (en) Service processing method, PCRF, and service processing system
WO2015096680A1 (en) Node distribution method and control center
CN103200124B (en) The method of adjustment of a kind of business game and device
TW201238289A (en) Routing selection method and system of multi-WAN interfaces and network device employing the same
WO2017031698A1 (en) Method, apparatus, and system for acquiring vnf information
US20220070736A1 (en) Traffic steering device
US10320621B1 (en) Network loading management system and method
CN115580568B (en) Method and system for realizing network service quality guarantee based on IPv6 flow label
CN106464670B (en) Network entity and service policy management method
US9161376B2 (en) System and method for managing access point communication channel utilization
JP6044020B2 (en) Data packet processing method, system, and device
CN101325564B (en) Method, apparatus and system for selecting virtual medium gateway
US10616792B2 (en) Communications system and networking method of application driven network, and controller
EP2242233A1 (en) Selecting method of policy decision functional entity in resource and admission control system
CN101459631A (en) Virtual media gateway selection method, apparatus and system
US10728162B2 (en) Method and apparatus for controlling service data flow
CN114079581B (en) Service processing method, system, computing device and storage medium based on PCC

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20161228

Termination date: 20200307