WO2017008576A1 - 网络服务质量策略的调整方法和装置 - Google Patents

网络服务质量策略的调整方法和装置 Download PDF

Info

Publication number
WO2017008576A1
WO2017008576A1 PCT/CN2016/082534 CN2016082534W WO2017008576A1 WO 2017008576 A1 WO2017008576 A1 WO 2017008576A1 CN 2016082534 W CN2016082534 W CN 2016082534W WO 2017008576 A1 WO2017008576 A1 WO 2017008576A1
Authority
WO
WIPO (PCT)
Prior art keywords
policy
quality
application
service policy
local
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.)
Ceased
Application number
PCT/CN2016/082534
Other languages
English (en)
French (fr)
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.)
Le Holdings Beijing Co Ltd
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Le Holdings Beijing Co Ltd
Leshi Zhixin Electronic Technology Tianjin 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 Le Holdings Beijing Co Ltd, Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Le Holdings Beijing Co Ltd
Priority to US15/241,943 priority Critical patent/US20170019806A1/en
Publication of WO2017008576A1 publication Critical patent/WO2017008576A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/302Route determination based on requested QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/76Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions
    • H04L47/765Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions triggered by the end-points
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/24Negotiating SLA [Service Level Agreement]; Negotiating QoS [Quality of Service]

Definitions

  • the present invention belongs to the field of Internet technologies, and in particular, to a method and apparatus for adjusting a network service quality policy.
  • QoS Quality of Service
  • a network that can utilize various basic technologies to provide better service capabilities for specified network communications. It is used to solve network delays and congestion. Under normal circumstances, if the network is only used for a specific time-limited application system, no QoS is required, such as web applications, E-mail, and the like. But it is necessary for critical applications and multimedia applications. When the network is overloaded or congested, QoS can ensure that important traffic is not delayed or discarded, while ensuring efficient operation of the network.
  • a quality of service (QoS) policy of a wireless network various network connection types and contents are usually defined, for example, a wireless multimedia (WMM, Wi-Fi Multimedia) policy, which defines "voice (AC_VI)", “ Video (AC_VO), “Best Effort (AC_BE)” and “Low Priority Data (AC_BK)” are used to optimize the quality of wireless network communications to ensure a stable connection between applications and network resources. That is, by adopting different priorities for different access types, it provides high-quality network connection performance for data, voice, music, and video applications.
  • WMM wireless multimedia
  • Wi-Fi Multimedia Wi-Fi Multimedia
  • the various access types are designed according to the highest to lowest priority, there is actually no default priority policy, but the router, AP manufacturer or user selects the most suitable network. Strategy and decide which network to use for which priority. For example, a user may tend to give a video a higher priority than speech.
  • Current wireless routers usually adopt a fixed QoS policy.
  • the access devices of home routers smart mobile terminal devices are becoming more and more popular, and smart The requirements of the router's QoS policy may be quite different for different applications on the mobile terminal. Therefore, a fixed QoS policy cannot adapt to the needs of different applications for network QoS policies.
  • users can only log in to the router frequently to modify the QoS policy configuration when using different apps, which will consume a lot of time and effort.
  • the embodiment of the present invention provides a method and a device for adjusting a network service quality policy, which are used to solve the technical problem that the QoS policy of the router device cannot be automatically dynamically adjusted in the prior art.
  • the present invention discloses a method for adjusting a network service quality policy, which is applicable to a router device, and includes: receiving a first packet from a terminal device, where the first packet includes a The preset quality of service policy of the launched application; adjusting the local quality of service policy according to the preset quality of service policy of the launched application, and obtaining the adjusted local quality of service policy.
  • the present invention also discloses a method for adjusting a network service quality policy, which is applicable to a terminal device, and includes: when detecting that an application is started, sending a first packet to a router device, where the first The preset quality of service policy of the application in which the message is started is adjusted by the router device according to the preset quality of service policy of the activated application, and the adjusted local quality of service policy is obtained.
  • the present invention also discloses an apparatus for adjusting a network quality of service policy, comprising: a first receiving module, configured to receive a first packet from a terminal device, where the first packet includes being activated The preset service quality policy of the application; the adjustment module is configured to adjust the local quality of service policy according to the preset quality of service policy of the activated application, and obtain an adjusted local quality of service policy.
  • the present invention also discloses an apparatus for adjusting a network service quality policy, including: a first sending module, configured to send a first packet to a router device when detecting that an application is started, The first packet includes a preset quality of service policy of the launched application, and the router device adjusts the local quality of service policy according to the preset quality of service policy of the activated application, and obtains the adjusted local quality of service policy. .
  • the method and device for adjusting the network service quality policy realized that the QoS policy of the router device is automatically dynamically adjusted according to the change of the application program used by the terminal device.
  • FIG. 1 is a schematic flowchart of a method for adjusting a network service quality policy according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for adjusting a network service quality policy according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a method for adjusting a network service quality policy according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of a method for adjusting a network service quality policy according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of an apparatus for adjusting a network service quality policy according to an embodiment of the present invention.
  • FIG. 1 is a method for adjusting a network service quality policy according to an embodiment of the present invention, which is applicable to a router device, and the method includes the following steps.
  • step S10 a first message from the terminal device is received, where the first message includes a preset quality of service policy of the launched application.
  • the QoS policies suitable for each application are not identical.
  • a QoS policy appropriate for the application needs to be preset for each application.
  • the preset QoS policy may be provided by the application developer or by the operating system of the terminal device or the installed application management software according to the type of the application or the service focus.
  • the first message sent by the terminal device to the router device includes a preset QoS policy of the launched application.
  • the first packet may be a TCP (Transmission Control Protocol) packet or a UDP (User Datagram Protocol) packet.
  • the preset QoS policy of the launched application is located in a TCP packet or UDP.
  • the QoS policy includes a DSCP (Differentiated Services Code Point) policy, a WMM (Wi-Fi Multimedia) policy, and the like.
  • step S11 the local quality of service policy is adjusted according to the preset quality of service policy of the activated application, and the adjusted local quality of service policy is obtained.
  • the router device provides a program at the application layer to receive packets from the terminal device and parse the packet data to adjust the QoS policy of the router device.
  • the router device adjusts the local quality of service policy according to the preset QoS policy in the first packet. If the router device has not adjusted the local QoS policy according to the preset QoS policy of the application, the local QoS policy of the router device is the default QoS policy, that is, it may be the factory setting of the router device. The router device determines whether the current local QoS policy is the default QoS policy. When the local QoS policy is the default QoS policy, the local QoS policy is adjusted to the preset QoS policy of the launched application, so that the local QoS policy of the router device is implemented. Ability to adapt to the data needs of the launched application and improve network service quality.
  • the local QoS policy When the local QoS policy is not the default QoS policy, it indicates that the local QoS policy of the router device has been adjusted according to the preset QoS policy of other applications. At this time, the local QoS policy and the preset QoS policy are performed according to a predetermined algorithm policy. Calculate and get the adjusted local QoS policy. For example, weighting the preset QoS policy of the launched application to obtain the adjusted local QoS policy, or averaging the parameters of the local QoS policy and the preset QoS policy of the launched application, thereby obtaining The local QoS policy of multiple applications is considered as much as possible, so that the router device can provide better network service quality for multiple applications at the same time.
  • the adjustment method of the network quality of service policy is as shown in FIG. 2, and the following steps are also included.
  • step S20 a second message from the terminal device is received, and the second message is sent by the terminal device when the application is closed.
  • the second packet may also be a TCP packet or a UDP packet.
  • step S21 the currently adjusted local quality of service policy is restored to the local quality of service policy before the adjustment.
  • the router device no longer needs to consider the QoS policy of the closed application, thereby removing the influence of the preset QoS policy of the closed application on the local QoS policy, so that the local QoS policy is as suitable as possible for other applications that are not closed. can.
  • the current adjusted local QoS policy is restored to the pre-adjusted QoS policy, if the local QoS policy is the default QoS policy before the adjustment, the default QoS policy is restored, and if the local QoS policy is not the default QoS policy before the feature, the recovery is resumed. Go to the local QoS policy before the adjustment. Therefore, the restored local QoS policy is suitable for the network requirements of other applications as much as possible, so that the router device maintains a high network service quality.
  • FIG. 3 is a method for adjusting a network service quality policy according to an embodiment of the present invention, which is applicable to a router device, and the method includes the following steps.
  • step S30 a first message from the terminal device is received, where the first message includes an identifier of the launched application and a preset quality of service policy of the launched application.
  • the first message is sent by the terminal device to the router device when it detects that an application is started.
  • the first message includes an identification of the launched application, which is used to distinguish between different applications.
  • the first message further includes a preset QoS policy of the launched application.
  • Different applications have different business priorities, so the requirements for different types of network data are different, and the QoS policies suitable for each application are not identical. For example, some applications focus on voice data, and some applications focus on video data. Therefore, a QoS policy appropriate for the application needs to be preset for each application.
  • the preset QoS policy may be provided by the application developer or by the operating system of the terminal device or the installed application management software according to the type of the application or the service focus.
  • the first message sent by the terminal device to the router device includes a preset QoS policy of the launched application.
  • the first packet may be a TCP (Transmission Control Protocol) packet or UDP (User Datagram Protocol) message, the identifier of the launched application and the preset QoS policy are located in the Data field of the TCP packet or the UDP packet.
  • the QoS policy includes a DSCP (Differentiated Services Code Point) policy, a WMM (Wi-Fi Multimedia) policy, and the like.
  • the router device provides a program at the application layer to receive packets from the terminal device and parse the packet data to adjust the QoS policy of the router device.
  • step S31 the identifier of the launched application is added to the application identification set.
  • the application identification collection is used to record the applications that each terminal device is running.
  • the router device parses the identifier of the launched application from the first packet, and adds the launched application identifier to the application identifier set.
  • step S32 the local quality of service policy is adjusted according to the preset quality of service policy of the launched application, and the adjusted local quality of service policy is obtained.
  • the router device adjusts the local quality of service policy according to the preset QoS policy in the first packet. If the router device has not adjusted the local QoS policy according to the preset QoS policy of the application, the local QoS policy of the router device is the default QoS policy, that is, it may be the factory setting of the router device. The router device determines whether the current local QoS policy is the default QoS policy. When the local QoS policy is the default QoS policy, the local QoS policy is adjusted to the preset QoS policy of the launched application, so that the local QoS policy of the router device is implemented. Ability to adapt to the data needs of the launched application and improve network service quality.
  • the local QoS policy When the local QoS policy is not the default QoS policy, it indicates that the local QoS policy of the router device has been adjusted according to the preset QoS policy of other applications, in the application identifier set, except for the launched application added in step S11.
  • the identifier further includes identifiers of other activated applications.
  • the preset QoS policies of multiple applications in the application identifier set are weighted to obtain the adjusted local QoS policies.
  • the weight value of the preset QoS policy of each application may be determined according to the application category, and then the adjusted local QoS policy is calculated according to the weight value, or each parameter in the preset QoS policy of multiple applications is taken. The average value, so as to get the local QoS policy of multiple applications as much as possible, so that the router device can provide better network service quality for multiple applications at the same time.
  • the adjustment method of the quality of service policy is as shown in FIG. 4, and the following steps are also included.
  • step S40 a second message from the terminal device is received, the second message including the identity of the closed application.
  • the terminal device When the terminal device has an application closed, the terminal device sends a second message to the router device.
  • the second packet may also be a TCP packet or a UDP packet, including an identifier of the closed application, and the identifier of the closed application is located in a data field of the TCP packet or the UDP packet.
  • step S41 in the application identification set, the identity of the closed application is deleted.
  • the router device parses the identifier of the closed application from the second packet, and deletes the identifier of the closed application in the application identifier set.
  • step S42 the currently adjusted local quality of service policy is restored to the local quality of service policy before the adjustment.
  • the router device no longer needs to consider the QoS policy of the closed application, thereby removing the influence of the preset QoS policy of the closed application on the local QoS policy, so that the local QoS policy is as suitable as possible for other applications in the application identification set.
  • the program is fine.
  • the local QoS policy When restoring the currently adjusted local quality of service policy to the local quality of service policy before the adjustment, first determine whether the application identification set does not include the identity of any application; when the application identification set does not include any application identification
  • the local QoS policy is restored to the default QoS policy, when the application identifier set further includes the identifiers of other applications, the local QoS policy is subjected to the weight removal calculation according to the preset QoS policy of the closed application, and the restored QoS policy is obtained.
  • Local QoS policy For example, the weighting calculation may be performed according to respective weight values of preset QoS policies of all other applications in the application identification set, or preset QoS policies of all other applications in the application identification set. The parameters are averaged so that the restored local QoS policy is as suitable as possible for the network requirements of other applications in the application identification set, so that the router device maintains a high network service quality.
  • the embodiment of the present invention further provides a method for adjusting a network service quality policy, which is applicable to a terminal device.
  • the method includes: when detecting that an application is started, sending a first packet to a router device, where the first packet includes The preset quality of service policy of the launched application is adjusted by the router device according to the preset quality of service policy of the launched application, and is adjusted. Post-local quality of service strategy.
  • the terminal device detects the startup and shutdown of the application, and the preset QoS policy of each application may be provided by the application developer, or may be operated by the operating system of the terminal device or the installed application management software according to the type of the application or the service side. Focus on distribution.
  • the terminal device sends the first packet to the router device
  • the terminal can perform data communication with the router device by using the communication interface of the launched application, the communication interface of the installed application management software, or the communication interface of the operating system.
  • the local QoS policy is adjusted by the router device according to the preset QoS policy of the application started in the first packet, so that the adjusted local QoS policy is as suitable as possible for the launched application.
  • the method for adjusting the network quality of service policy further includes: when detecting that the application is closed, sending the second packet to the router device, and the router device restores the currently adjusted local quality of service policy to the local quality of service policy before the adjustment. .
  • the second message may be sent to the router device through the communication interface of the application while the application is closed, or may be managed by the installed application after the application is closed.
  • the communication interface or the communication interface of the operating system sends a second message to the router device.
  • the router device restores the currently adjusted local QoS policy to the local QoS policy before the adjustment, and removes the impact of the preset QoS policy of the closed application on the local QoS policy of the router device, so that the restored local QoS policy is as Suitable for other applications that are not closed.
  • the embodiment of the present invention further provides a method for adjusting a network service quality policy, which is applicable to a terminal device, and the method includes: when detecting that the application is started, sending the first packet to the router device, The first message includes an identifier of the launched application and a preset quality of service policy of the launched application, and the router device adds the identifier of the launched application to the application identifier set, and according to the launched application
  • the preset quality of service policy adjusts the local quality of service policy to obtain an adjusted local quality of service policy.
  • the terminal device detects the startup and shutdown of the application, and the preset QoS policy of each application may be provided by the application developer, or may be operated by the operating system of the terminal device or the installed application management software according to the type of the application or the service side. Focus on distribution.
  • the terminal device sends the first packet to the router device, the communication interface of the activated application and the installed interface can be utilized.
  • the communication interface of the application management software or the data communication with the router device through the communication interface of the operating system.
  • the local QoS policy is adjusted by the router device according to the identifier of the application launched in the first packet and the preset QoS policy of the activated application, so that the adjusted local QoS policy is as suitable as possible for the launched application. .
  • the method for adjusting the network quality of service policy further includes: when the detection application is closed, sending the second message to the router device, where the second message includes the identifier of the closed application, and the router device is in the application identifier set. Delete the identity of the closed application and remove the preset quality of service policy for the closed application from the local quality of service policy.
  • the second message may be sent to the router device through the communication interface of the application while the application is closed, or may be managed by the installed application after the application is closed.
  • the communication interface or the communication interface of the operating system sends a second message to the router device.
  • the router device removes the identifier of the closed application from the application identifier set, thereby removing the influence of the preset QoS policy of the application on the local QoS policy, so that the restored QoS policy is as suitable as possible in the application identifier set. The remaining other applications that are not closed.
  • the DSCP policy includes multiple parameters such as AF (Assured Forwarding) and EF (Expedited Forwarding).
  • the EF parameters of the router device DSCP policy are used as an example.
  • the EF parameters are mainly used for services with low delay, low jitter, and low packet loss rate. These services usually require a relatively stable rate and need to be fast forwarded in the forwarding device.
  • the default DSCP value of the parameter is 46.
  • the DSCP value of the EF parameter in the preset DSCP policy of the application A is high because the network phone needs to ensure high real-time and low jitter.
  • the terminal device sends the first packet to the router device, where the first packet includes an identifier of the application A, such as "app_A", and a preset DSCP policy of the application A, where the DSCP value of the EF parameter is 56.
  • the router device After receiving the first packet, the router device adds the identifier "app_A" of the application A to the application identifier set.
  • the router device determines that the current local DSCP policy is the default DSCP policy, and therefore adjusts the local DSCP policy to
  • the preset DSCP policy of the application A adjusts the EF parameter of the local DSCP policy of the router device from 46 to 56, and the priority of the unimpeded forwarding becomes higher, making the network service more favorable to the VoIP service.
  • the application B in the terminal device When the application B in the terminal device is activated, the application B focuses on the video playback service. In its preset DSCP policy, the DSCP value of the EF parameter is 46, and the terminal device sends the first packet to the router device again.
  • the first packet includes the identifier "app_B" of the application B and the preset DSCP policy of the application B.
  • the router device After receiving the first packet, the router device adds the identifier "app_B" of the application B to the application identifier set, and determines that the current local DSCP policy is not the default DSCP policy, and the local DSCP policy and the application B are The weighted average of each parameter in the preset DSCP strategy.
  • the weighted average DSCP value is 51, and the DSCP value of the EF parameter in the local DSCP policy of the router device is adjusted to 51 to satisfy the application A and the application B for the network service as much as possible. Quality needs.
  • the terminal device When the application B in the terminal device is turned off, the terminal device sends a second packet to the router device, where the second packet includes the identifier "app_B" of the application B. After receiving the second packet, the router device deletes the identifier “app_B” of the application B in the application identifier set, and determines that the application identifier set further includes the identifier of the other application A, and the router device controls the local DSCP policy.
  • the parameters are averaged according to the preset DSCP policy of the application B.
  • the DSCP value of the EF parameter is restored to the DSCP value of the EF parameter in the preset DSCP policy of the application A, that is, the value is adjusted from 51 to 56, so that the DSCP policy of the router device is implemented. More suitable for application A's network service quality needs.
  • the terminal device sends a second message to the router device again, and the second message includes the identifier "app_A" of the application A.
  • the router device deletes the identifier “app_A” of the application A in the application identifier set, and determines that the application identifier set does not include any application identifier, and the router device restores the local DSCP policy.
  • the DSCP value of the EF parameter is restored from 56 to the default value of 46 for the EF parameters in the DSCP policy.
  • the WMM policy includes AIFSN (Arbitration Inter Frame Spacing Number), CWMIN (Contending Windows MIN, minimum contention window), CWMAX (Contending Windows MAX, maximum contention window) and other parameters, only AIFSN here.
  • AIFSN Average Inter Frame Spacing Number
  • CWMIN Constending Windows MIN, minimum contention window
  • CWMAX Constending Windows MAX, maximum contention window
  • other parameters only AIFSN here.
  • the parameters are described as an example, and the adjustment principles for other parameters are the same. The smaller the AIFSN, the shorter the time to wait for the channel to be idle, the easier it is to access the channel. Therefore, the AIFSN value of the low priority service is greater than the high priority service.
  • a video application usually has the highest priority for a video stream, assuming that the WMM policy required by the video application is as shown in Table 1 below:
  • Voice represents the priority of voice service
  • Video represents the priority of video service data
  • Best-effort represents the priority of "best effort” type business data
  • Back-ground represents the priority of lower priority background data.
  • the terminal device When the video application of the terminal device is turned on, the terminal device sends the preset WMM policy of the video application to the wireless router.
  • the wireless router receives the first message sent from the terminal device, and adds the identifier of the video application to the application identifier set.
  • the wireless router views the current local WMM policy. If it is the default WMM policy, it indicates that there is no default WMM policy requirement for other applications, and it is directly set according to the preset WMM policy of the video application.
  • the wireless router finds that the local WMM policy has been adjusted according to the preset WMM policy of other applications, the weighted average of the preset WMM policies of the multiple applications is required to calculate the adjusted WMM policy. For example, there is already a voice application connected to the wireless router, and the default WMM policy for the language application is shown in Table 2 below:
  • target value AVERAGE (parameter 1, parameter 2, 8)
  • the adjusted WMM strategy after calculation is as follows:
  • the terminal device When the video application is closed, the terminal device needs to notify the wireless router of the event that the video application is closed, and sends a second message to the wireless router. After receiving the second packet, the wireless router removes the preset WMM policy of the video application from the current local WMM policy.
  • the weighted average WMM policy of the voice application and the video application is as shown in Table 3.
  • the local WMM policy of the wireless router performs a weighted averaging on the preset WMM policy of the video application.
  • the recalculated local WMM strategy is shown in Table 4 below:
  • the local WMM policy of the wireless router is restored to the local WMM policy before the video application is added.
  • FIG. 5 is a device for adjusting a network service quality policy according to an embodiment of the present invention, including:
  • the first receiving module 30 is configured to receive a first packet from the terminal device, where the first packet includes a preset service quality policy of the launched application;
  • the adjusting module 32 is configured to adjust the local quality of service policy according to the preset quality of service policy of the launched application to obtain an adjusted local quality of service policy.
  • the adjustment module 32 includes:
  • a determining submodule configured to determine whether the local quality of service policy is a default quality of service policy
  • a first adjustment submodule configured to adjust a local quality of service policy to a preset quality of service policy of the launched application when the local quality of service policy is the default quality of service policy;
  • the second adjustment submodule is configured to calculate the local QoS policy and the preset QoS policy according to a predetermined algorithm policy when the local QoS policy is not the default QoS policy, and obtain the adjusted local QoS policy.
  • the apparatus further comprises:
  • a second receiving module configured to receive a second packet from the terminal device, where the second packet is sent by the terminal device when the application is closed;
  • the module is removed to restore the currently adjusted local quality of service policy to the local quality of service policy before the adjustment.
  • the first message further includes an identifier of the launched application
  • the device further includes:
  • the adding module is configured to add an identifier of the launched application to the application identifier set after receiving the first packet.
  • the deleting module is configured to delete the identifier of the closed application in the application identifier set after receiving the second packet.
  • the embodiment of the invention further provides an apparatus for adjusting a network service quality policy, including:
  • the first sending module is configured to: when detecting that the application is started, send the first packet to the router device, where the first packet includes a preset quality of service policy of the launched application, and the router device is configured according to the activated device.
  • the program's default quality of service policy adjusts the local quality of service policy to obtain an adjusted local quality of service policy.
  • the apparatus further comprises:
  • the second sending submodule is configured to send the second packet to the router device when the detecting application is closed, and the router device restores the currently adjusted local quality of service policy to the local quality of service policy before the adjustment.
  • each of the foregoing functional modules may be implemented by a hardware processor.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

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

Abstract

本发明实施例公开了一种网络服务质量策略的调整方法装置,包括:接收到来自终端设备的第一报文,所述第一报文包括被启动的应用程序的预设服务质量策略;根据所述被启动的应用程序的预设服务质量策略调整本地服务质量策略,得到调整后的本地服务质量策略。实现了路由器设备的QoS策略根据终端设备使用的应用程序的变化而自动动态调整。

Description

网络服务质量策略的调整方法和装置
交叉引用
本申请引用于2015年07月13日递交的名称为“网络服务质量策略的调整方法和装置”的第201510409734X号中国专利申请,其通过引用被全部并入本申请。
技术领域
本发明属于互联网技术领域,具体地说,涉及一种网络服务质量策略的调整方法和装置。
背景技术
QoS(Quality of Service,服务质量)指一个网络能够利用各种基础技术,为指定的网络通信提供更好的服务能力,是用来解决网络延迟和阻塞等问题。在正常情况下,如果网络只用于特定的无时间限制的应用系统,并不需要QoS,例如Web应用、E-mail等。但是对关键应用和多媒体应用就十分必要。当网络过载或拥塞时,QoS能确保重要业务量不受延迟或丢弃,同时保证网络的高效运行。
作为无线网络的服务质量(Quality of Service,QoS)策略,通常定义了各种网络连接类型和内容,例如,无线多媒体(WMM,Wi-Fi Multimedia)策略,定义了“语音(AC_VI)”、“视频(AC_VO)”、“尽力而为(AC_BE)”和“低优先级数据(AC_BK)”,以此来优化无线网络通信的质量,以保障应用程序与网络资源建立稳定连接。即通过对不同的接入类型采取不同的优先级,提供高质量的数据、语音、音乐、视频应用的网络连接性能。
在QoS策略中尽管各种接入类型在设计时是按照从高到低的优先级设计的,但实际上并没有默认的优先级策略,而是让路由器、AP厂商或用户选择最适合的网络策略,并决定采用具有哪种优先级的网络。例如,用户可能倾向于给予视频比语音更高的优先级。当前的无线路由器通常采用固定的QoS策略,在家用路由器的接入设备中,智能移动终端设备越来越普遍,智能移 动终端设备上的不同的应用程序对路由器QoS策略的需求也许完全不同。因此,固定不变的QoS策略无法适应不同的应用程序对网络QoS策略的需求。然而目前用户只能在使用不同的App时频繁登陆路由器来修改QoS策略配置,会耗费用户大量的时间和精力。
发明内容
有鉴于此,本发明实施例提供了一种网络服务质量策略的调整方法和装置,用以解决现有技术中路由器设备的QoS策略无法自动动态调整的技术问题。
为了解决上述技术问题,本发明公开了一种网络服务质量策略的调整方法,适用于路由器设备,其特征在于,包括:接收到来自终端设备的第一报文,所述第一报文包括被启动的应用程序的预设服务质量策略;根据所述被启动的应用程序的预设服务质量策略调整本地服务质量策略,得到调整后的本地服务质量策略。
为了解决上述技术问题,本发明还公开了一种网络服务质量策略的调整方法,适用于终端设备,包括:当检测到应用程序被启动时,发送第一报文至路由器设备,所述第一报文被启动的应用程序的预设服务质量策略,由所述路由器设备根据所述被启动的应用程序的预设服务质量策略调整本地服务质量策略,得到调整后的本地服务质量策略。
为了解决上述技术问题,本发明还公开了一种网络服务质量策略的调整装置,包括:第一接收模块,用于接收到来自终端设备的第一报文,所述第一报文包括被启动的应用程序的预设服务质量策略;调整模块,用于根据所述被启动的应用程序的预设服务质量策略调整本地服务质量策略,得到调整后的本地服务质量策略。
为了解决上述技术问题,本发明还公开了一种网络服务质量策略的调整装置,包括:第一发送模块,用于当检测到应用程序被启动时,发送第一报文至路由器设备,所述第一报文包括被启动的应用程序的预设服务质量策略,由所述路由器设备根据所述被启动的应用程序的预设服务质量策略调整本地服务质量策略,得到调整后的本地服务质量策略。
与现有技术相比,本发明实施例提供的网络服务质量策略的调整方法和装置,实现了路由器设备的QoS策略根据终端设备使用的应用程序的变化而自动动态调整。
附图说明
图1是本发明实施例提供的一种网络服务质量策略的调整方法的流程示意图;
图2是本发明实施例提供的一种网络服务质量策略的调整方法的流程示意图;
图3是本发明实施例提供的一种网络服务质量策略的调整方法的流程示意图;
图4是本发明实施例提供的一种网络服务质量策略的调整方法的流程示意图;
图5是本发明实施例提供的一种网络服务质量策略的调整装置的结构示意图。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
图1是本发明实施例提供的一种网络服务质量策略的调整方法,适用于路由器设备,该方法包括以下步骤。
在步骤S10中,接收到来自终端设备的第一报文,第一报文包括被启动的应用程序的预设服务质量策略。
不同的应用程序,其业务侧重点不同,因此对不同类型的网络数据的需求也不相同,从而导致各个应用程序所适合的QoS策略也不会完全相同。例 如,有的应用程序侧重于语音数据,有的应用程序侧重于视频数据。因此,为每个应用程序需要预设适合该应用程序的QoS策略。该预设QoS策略可以由应用程序开发者提供,或者由终端设备的操作系统或者安装的应用程序管理软件根据该应用程序的类型或业务侧重点来分配。当应用程序被启动后,终端设备向路由器设备发送的第一报文包括该被启动的应用程序的预设QoS策略。该第一报文可以是TCP(传输控制协议,Transmission Control Protocol)报文或UDP(用户数据协议,User Datagram Protocol)报文,该被启动的应用程序的预设QoS策略位于TCP报文或UDP报文的数据(Data)字段。在本发明实施例中,QoS策略包括DSCP(差分服务代码点,Differentiated Services Code Point)策略、WMM(Wi-Fi Multimedia,无线多媒体)策略等等。
在步骤S11中,根据被启动的应用程序的预设服务质量策略调整本地服务质量策略,得到调整后的本地服务质量策略。
该路由器设备在应用层提供一个程序,以接收来自终端设备的报文,并解析出报文数据对路由器设备的QoS策略进行调整。
路由器设备根据第一报文中的预设QoS策略调整本地服务质量策略。如果该路由器设备还没有根据应用程序的预设QoS策略对本地QoS策略进行过调整,则该路由器设备的本地QoS策略为默认的QoS策略,即有可能是路由器设备的出厂设置。路由器设备判断当前的本地QoS策略是否为默认的QoS策略,当本地QoS策略为默认的QoS策略时,将本地QoS策略调整为被启动的应用程序的预设QoS策略,使路由器设备的本地QoS策略能够适应被启动的应用程序的数据需求,提高网络服务质量。当本地QoS策略不是默认的QoS策略时,说明路由器设备的本地QoS策略已根据其他应用程序的预设QoS策略进行过调整,此时,将本地QoS策略和该预设QoS策略按照预定算法策略进行计算,得到调整后的本地QoS策略。例如,将被启动的应用程序的预设QoS策略进行加权计算得到调整后的本地QoS策略,或者将本地QoS策略与被启动的应用程序的预设QoS策略中的各个参数取平均值,从而得到尽可能兼顾多个应用程序的本地QoS策略,使路由器设备能同时为多个应用程序提供较好的网络服务质量。
在应用程序被关闭时,该网络服务质量策略的调整方法如图2所示,还包括以下步骤。
在步骤S20中,接收到来自终端设备的第二报文,第二报文由终端设备在关闭应用程序时发出。
该第二报文也可以是TCP报文或UDP报文。
在步骤S21中,将当前调整后的本地服务质量策略恢复到调整之前的本地服务质量策略。
路由器设备不再需要考虑被关闭的应用程序的QoS策略,从而去除该被关闭的应用程序的预设QoS策略对本地QoS策略的影响,使本地QoS策略尽可能适合其他未被关闭的应用程序即可。将当前调整后的本地QoS策略恢复到调整之前的QoS策略时,如果本地QoS策略在调整之前是默认QoS策略,则恢复到默认QoS策略,如果本地QoS策略在特征之前不是默认QoS策略,则恢复到调整之前的本地QoS策略。从而使恢复后的本地QoS策略尽可能的适合其他应用程序的网络需求,使路由器设备保持较高的网络服务质量。
图3是本发明实施例提供的一种网络服务质量策略的调整方法,适用于路由器设备,该方法包括以下步骤。
在步骤S30中,接收到来自终端设备的第一报文,第一报文包括被启动的应用程序的标识和被启动的应用程序的预设服务质量策略。
该第一报文是由终端设备在检测到有应用程序被启动时向路由器设备发送的。该第一报文包括被启动的应用程序的标识,该标识用于区分不同的应用程序。该第一报文还包括该被启动的应用程序的预设QoS策略。不同的应用程序,其业务侧重点不同,因此对不同类型的网络数据的需求也不相同,从而导致各个应用程序所适合的QoS策略也不会完全相同。例如,有的应用程序侧重于语音数据,有的应用程序侧重于视频数据。因此,为每个应用程序需要预设适合该应用程序的QoS策略。该预设QoS策略可以由应用程序开发者提供,或者由终端设备的操作系统或者安装的应用程序管理软件根据该应用程序的类型或业务侧重点来分配。当应用程序被启动后,终端设备向路由器设备发送的第一报文包括该被启动的应用程序的预设QoS策略。该第一报文可以是TCP(传输控制协议,Transmission Control Protocol)报文或 UDP(用户数据协议,User Datagram Protocol)报文,该被启动的应用程序的标识和预设QoS策略位于TCP报文或UDP报文的数据(Data)字段。在本发明实施例中,QoS策略包括DSCP(差分服务代码点,Differentiated Services Code Point)策略、WMM(Wi-Fi Multimedia,无线多媒体)策略等等。
该路由器设备在应用层提供一个程序,以接收来自终端设备的报文,并解析出报文数据对路由器设备的QoS策略进行调整。
在步骤S31中,在应用程序标识集合中,添加被启动的应用程序的标识。
该应用程序标识集合,用来记录各个终端设备正在运行的应用程序。路由器设备从第一报文解析出被启动的应用程序的标识,将该被启动的应用程序标识添加到应用程序标识集合。
在步骤S32中,根据被启动的应用程序的预设服务质量策略调整本地服务质量策略,得到调整后的本地服务质量策略。
路由器设备根据第一报文中的预设QoS策略调整本地服务质量策略。如果该路由器设备还没有根据应用程序的预设QoS策略对本地QoS策略进行过调整,则该路由器设备的本地QoS策略为默认的QoS策略,即有可能是路由器设备的出厂设置。路由器设备判断当前的本地QoS策略是否为默认的QoS策略,当本地QoS策略为默认的QoS策略时,将本地QoS策略调整为被启动的应用程序的预设QoS策略,使路由器设备的本地QoS策略能够适应被启动的应用程序的数据需求,提高网络服务质量。当本地QoS策略不是默认的QoS策略时,说明路由器设备的本地QoS策略已根据其他应用程序的预设QoS策略进行过调整,在应用程序标识集合中,除了步骤S11添加的被启动的应用程序的标识,还包括其他已经启动的应用程序的标识,此时,将应用程序标识集合中多个应用程序的预设QoS策略进行加权计算得到调整后的本地QoS策略。例如,可依据应用程序类别确定各个应用程序的预设QoS策略的权重值,再根据该权重值计算出调整后的本地QoS策略,或者对多个应用程序的预设QoS策略中的各个参数取平均值,从而得到尽可能兼顾多个应用程序的本地QoS策略,使路由器设备能同时为多个应用程序提供较好的网络服务质量。
在应用程序被关闭时,该服务质量策略的调整方法如图4所示,还包括以下步骤。
在步骤S40中,接收到来自终端设备的第二报文,第二报文包括被关闭的应用程序的标识。
当终端设备有应用程序被关闭时,终端设备发送第二报文至路由器设备。该第二报文也可以是TCP报文或UDP报文,包括被关闭的应用程序的标识,该被关闭的应用程序的标识位于TCP报文或UDP报文的数据(Data)字段。
在步骤S41中,在应用程序标识集合中,删除被关闭的应用程序的标识。
路由器设备从第二报文解析出被关闭的应用程序的标识,在应用程序标识集合中,删除该被关闭的应用程序的标识。
在步骤S42中,将当前调整后的本地服务质量策略恢复到调整之前的本地服务质量策略。
路由器设备不再需要考虑被关闭的应用程序的QoS策略,从而去除该被关闭的应用程序的预设QoS策略对本地QoS策略的影响,使本地QoS策略尽可能适合应用程序标识集合中的其他应用程序即可。在将当前调整后的本地服务质量策略恢复到调整之前的本地服务质量策略时,首先判断应用程序标识集合是否已不包括任何应用程序的标识;当应用程序标识集合已不包括任何应用程序的标识时,将本地QoS策略恢复为默认的QoS策略;当应用程序标识集合还包括其他应用程序的标识时,对本地QoS策略根据被关闭的应用程序的预设QoS策略进行除权计算,得到恢复后的本地QoS策略。例如,该除权计算可以是对应用程序标识集合中所有其他应用程序的预设QoS策略的按照各自的权重值进行计算,或者对应用程序标识集合中所有其他应用程序的预设QoS策略的各项参数取平均值,从而使恢复后的本地QoS策略尽可能的适合应用程序标识集合中其他应用程序的网络需求,使路由器设备保持较高的网络服务质量。
本发明实施例还提供了一种网络服务质量策略的调整方法,适用于终端设备,该方法包括:当检测到应用程序被启动时,发送第一报文至路由器设备,第一报文包括被启动的应用程序的预设服务质量策略,由路由器设备根据被启动的应用程序的预设服务质量策略调整本地服务质量策略,得到调整 后的本地服务质量策略。
终端设备检测应用程序的启动和关闭,各个应用程序的预设QoS策略可以由应用程序开发者提供,也可以由终端设备的操作系统或者安装的应用程序管理软件根据该应用程序的类型或业务侧重点进行分配。终端设备发送第一报文至路由器设备时,可以利用该被启动的应用程序的通信接口、安装的应用程序管理软件的通信接口或者通过操作系统的通信接口与路由器设备进行数据通信。由路由器设备根据第一报文中被启动的应用程序的预设QoS策略对本地QoS策略进行调整,使调整后的本地QoS策略尽可能适合该被启动的应用程序。
该网络服务质量策略的调整方法进一步包括:当检测到应用程序被关闭时,发送第二报文至路由器设备,由路由器设备将当前调整后的本地服务质量策略恢复到调整之前的本地服务质量策略。
检测到应用程序被关闭时,可以在该应用程序被关闭的同时通过该应用程序的通信接口向路由器设备发送第二报文,也可以在该应用程序被关闭后通过安装的应用程序管理软件的通信接口或者操作系统的通信接口向路由器设备发送第二报文。由路由器设备将当前调整后的本地QoS策略恢复到调整之前的本地QoS策略,去除该被关闭的应用程序的预设QoS策略对路由器设备本地QoS策略的影响,使恢复后的本地QoS策略尽可能适合其他未被关闭的应用程序。
在一个实施例中,本发明实施例还提供了一种网络服务质量策略的调整方法,适用于终端设备,该方法包括:当检测到应用程序被启动时,发送第一报文至路由器设备,第一报文包括被启动的应用程序的标识和被启动的应用程序的预设服务质量策略,由路由器设备在应用程序标识集合中添加被启动的应用程序的标识,并根据被启动的应用程序的预设服务质量策略调整本地服务质量策略,得到调整后的本地服务质量策略。
终端设备检测应用程序的启动和关闭,各个应用程序的预设QoS策略可以由应用程序开发者提供,也可以由终端设备的操作系统或者安装的应用程序管理软件根据该应用程序的类型或业务侧重点进行分配。终端设备发送第一报文至路由器设备时,可以利用该被启动的应用程序的通信接口、安装的 应用程序管理软件的通信接口或者通过操作系统的通信接口与路由器设备进行数据通信。由路由器设备根据第一报文中被启动的应用程序的标识和该被启动的应用程序的预设QoS策略对本地QoS策略进行调整,使调整后的本地QoS策略尽可能适合被启动的应用程序。
该网络服务质量策略的调整方法进一步包括:当检测应用程序被关闭时,发送第二报文至路由器设备,第二报文包括被关闭的应用程序的标识,由路由器设备在应用程序标识集合中删除被关闭的应用程序的标识,并从本地服务质量策略中去除被关闭的应用程序的预设服务质量策略。
检测到应用程序被关闭时,可以在该应用程序被关闭的同时通过该应用程序的通信接口向路由器设备发送第二报文,也可以在该应用程序被关闭后通过安装的应用程序管理软件的通信接口或者操作系统的通信接口向路由器设备发送第二报文。由路由器设备从应用程序标识集合中删除该被关闭的应用程序的标识,从而去除该应用程序的预设QoS策略对本地QoS策略的影响,使恢复后的QoS策略尽可能适合应用程序标识集合中剩余的其他未被关闭的应用程序。
下面通过几个应用实例对本发明实施例做进一步说明。
(一)调整路由器设备的DSCP策略
DSCP策略包括AF(保证转发,Assured Forwarding)、EF(无阻碍转发,Expedited Forwarding)等多个参数。以路由器设备DSCP策略的EF参数为例,EF参数主要用于低延迟、低抖动和低丢包率的业务,这类业务通常需要相对稳定的速率,需要在转发设备中进行快速转发,该EF参数默认的DSCP值为46。
当终端设备开启一个主要用于网络电话功能的应用程序A时,由于网路电话需要保证数据具有较高的实时性和低抖动,该应用程序A的预设DSCP策略中EF参数的DSCP值为56,终端设备发送第一报文至路由器设备,该第一报文包括应用程序A的标识,例如“app_A”,以及应用程序A的预设DSCP策略,其中EF参数的DSCP值为56。路由器设备接收到第一报文后,将应用程序A的标识“app_A”添加到应用程序标识集合中。然后,路由器设备判断出当前的本地DSCP策略为默认的DSCP策略,因此,将本地DSCP策略调整为 应用程序A的预设DSCP策略,使路由器设备的本地的DSCP策略的EF参数从46调整为56,无阻碍转发的优先级变得更高,使网络服务更有利于以网络电话业务为主的应用程序A。
当终端设备中的应用程序B被启动时,该应用程序B侧重于视频播放业务,在其预设DSCP策略中,EF参数的DSCP值为46,终端设备再次发送第一报文至路由器设备,该第一报文中包括应用程序B的标识“app_B”以及应用程序B的预设DSCP策略。路由器设备接收到该第一报文后,在应用程序标识集合中添加应用程序B的标识“app_B”,判断出当前的本地DSCP策略已不是默认的DSCP策略,则将本地DSCP策略与应用程序B的预设DSCP策略中的各个参数进行加权平均。对于其中的EF参数来说,加权平均后DSCP值为51,路由器设备的本地DSCP策略中的EF参数的DSCP值被调整为51,以尽可能的同时满足应用程序A和应用程序B对于网络服务质量的需求。
当终端设备中的应用程序B被关闭时,终端设备发送第二报文至路由器设备,该第二报文包括应用程序B的标识“app_B”。路由器设备接收到该第二报文后,在应用程序标识集合中删除应用程序B的标识“app_B”,并判断出应用程序标识集合还包括其他应用程序A的标识,路由器设备对本地DSCP策略的各个参数根据应用程序B的预设DSCP策略进行除权平均,EF参数的DSCP值恢复为应用程序A的预设DSCP策略中EF参数的DSCP值,即从51调整为56,使路由器设备的DSCP策略更适合应用程序A的网络服务质量需求。
当终端设备中的应用程序A也被关闭时,终端设备再次发出第二报文至路由器设备,该第二报文包括应用程序A的标识“app_A”。路由器设备接收到第二报文后,在应用程序标识集合中删除该应用程序A的标识“app_A”,并判断出应用程序标识集合已不包括任何应用程序的标识,路由器设备将本地DSCP策略恢复为默认的DSCP策略,对于DSCP策略中的EF参数来说,EF参数的DSCP值从56恢复为默认值46。
(二)调整路由器设备的WMM策略
WMM策略包括AIFSN(Arbitration Inter Frame Spacing Number,仲裁帧间隙数),CWMIN(Contending Windows MIN,最小竞争窗口),CWMAX(Contending Windows MAX,最大竞争窗口)等多个参数,在此仅以AIFSN 参数为例进行说明,对其它参数的调整原理相同。AIFSN越小,即等待信道空闲的时间越短,越容易接入信道。因此,低优先级业务的AIFSN值要大于高优先级业务。
例如视频应用程序,通常对视频流拥有最高的优先级,假设该视频应用程序所需要的WMM策略如下表1所示:
表1:
Figure PCTCN2016082534-appb-000001
其中,Voice代表语音业务的优先级,Video代表视频业务数据的优先级,Best-effort代表“尽力而为”型业务数据的优先级,Back-ground代表较低优先级的背景数据的优先级。
当终端设备的视频应用程序开启时,该终端设备将该视频应用程序的预设WMM策略发送给无线路由器。
无线路由器接收到从该终端设备发送过来的第一报文,将该视频应用程序的标识添加到应用程序标识集合。无线路由器查看当前的本地WMM策略。如果是默认WMM策略,说明当前暂无其他应用程序的预设WMM策略需求,则直接按照该视频应用程序的预设WMM策略进行设置。
如果无线路由器发现此前已经根据其它应用程序的预设WMM策略调整了本地WMM策略,则需要对多个应用程序的预设WMM策略进行加权平均,计算出调整后的WMM策略。例如,已经有一个语音应用程序连接到该无线路由器,并且该语言应用程序的预设WMM策略如下表2所示:
表2:
Figure PCTCN2016082534-appb-000002
Figure PCTCN2016082534-appb-000003
此时,需要将新添加的视频应用程序和该语音应用程序的预设WMM策略进行加权平均计算,公式为:目标值=AVERAGE(参数1,参数2,……)
计算后得到调整后的WMM策略如下:
表3:
Figure PCTCN2016082534-appb-000004
当该视频应用程序被关闭时,终端设备需要将关闭该视频应用程序的事件通知给无线路由器,向无线路由器发送第二报文。无线路由器接收到该第二报文后,将该视频应用程序的预设WMM策略从当前的本地WMM策略中去除。例如,该语音应用程序和视频应用程序加权平均后的WMM策略如表3所示,当视频应用程序被关闭时,无线路由器的本地WMM策略对视频应用程序的预设WMM策略进行除权平均,经重新计算后的本地WMM策略如下表4所示:
表4:
Figure PCTCN2016082534-appb-000005
Figure PCTCN2016082534-appb-000006
无线路由器的本地WMM策略恢复为在添加该视频应用程序之前的本地WMM策略。
图5是本发明实施例提供的一种网络服务质量策略的调整装置,包括:
第一接收模块30,用于接收到来自终端设备的第一报文,第一报文包括被启动的应用程序的预设服务质量策略;
调整模块32,用于根据被启动的应用程序的预设服务质量策略调整本地服务质量策略,得到调整后的本地服务质量策略。
该调整模块32包括:
判断子模块,用于判断本地服务质量策略是否为默认的服务质量策略;
第一调整子模块,用于当本地服务质量策略为默认的服务质量策略时,将本地服务质量策略调整为被启动的应用程序的预设服务质量策略;
第二调整子模块,用于当本地服务质量策略不是默认的服务质量策略时,将本地服务质量策略和预设服务质量策略按照预定算法策略进行计算,得到调整后的本地服务质量策略。
在一个实施例中,该装置还进一步包括:
第二接收模块,用于接收到来自终端设备的第二报文,第二报文由终端设备在关闭应用程序时发出;
去除模块,用于将当前调整后的本地服务质量策略恢复到调整之前的本地服务质量策略。
在一个实施例中,所述第一报文还包括被启动的应用程序的标识,该装置进一步包括:
添加模块,用于在接收到第一报文之后,在应用程序标识集合中添加被启动的应用程序的标识。
删除模块,用于在接收到第二报文之后,在应用程序标识集合中删除被关闭的应用程序的标识。
本发明实施例还提供了一种网络服务质量策略的调整装置,包括:
第一发送模块,用于当检测到应用程序被启动时,发送第一报文至路由器设备,第一报文包括被启动的应用程序的预设服务质量策略,由路由器设备根据被启动的应用程序的预设服务质量策略调整本地服务质量策略,得到调整后的本地服务质量策略。
在一个实施例中,该装置还进一步包括:
第二发送子模块,用于当检测应用程序被关闭时,发送第二报文至路由器设备,由路由器设备将当前调整后的本地服务质量策略恢复到调整之前的本地服务质量策略。
此外,本发明实施例中可以通过硬件处理器(hardware processor)来实现上述各个功能模块。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (14)

  1. 一种网络服务质量策略的调整方法,适用于路由器设备,其特征在于,包括:
    接收到来自终端设备的第一报文,所述第一报文包括被启动的应用程序的预设服务质量策略;
    根据所述被启动的应用程序的预设服务质量策略调整本地服务质量策略,得到调整后的本地服务质量策略。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述被启动的应用程序的预设服务质量策略调整本地服务质量策略,得到调整后的本地服务质量策略包括:
    判断本地服务质量策略是否为默认的服务质量策略;
    当本地服务质量策略为默认的服务质量策略时,将本地服务质量策略调整为所述被启动的应用程序的预设服务质量策略;
    当本地服务质量策略不是默认的服务质量策略时,将本地服务质量策略和所述预设服务质量策略按照预定算法策略进行计算,得到调整后的本地服务质量策略。
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:
    接收到来自终端设备的第二报文,所述第二报文由所述终端设备在关闭所述应用程序时发出;
    将当前调整后的本地服务质量策略恢复到调整之前的本地服务质量策略。
  4. 根据权利要求2所述的方法,其特征在于,所述将本地服务质量策略和所述预设服务质量策略按照预定算法策略进行计算,得到调整后的本地服务质量策略包括:
    将本地服务质量策略和所述预设服务质量策略进行加权计算,得到调整后的本地服务质量策略。
  5. 根据权利要求1至4任一项所述的方法,其特征在于,所述第一报文 还包括被启动的应用程序的标识;所述根据所述被启动的应用程序的预设服务质量策略调整本地服务质量策略之前,所述方法还包括:
    在应用程序标识集合中,添加所述被启动的应用程序的标识。
  6. 一种网络服务质量策略的调整方法,适用于终端设备,其特征在于,包括:
    当检测到应用程序被启动时,发送第一报文至路由器设备,所述第一报文包括被启动的应用程序的预设服务质量策略,由所述路由器设备根据所述被启动的应用程序的预设服务质量策略调整本地服务质量策略,得到调整后的本地服务质量策略。
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:
    当检测到应用程序被关闭时,发送第二报文至路由器设备,由所述路由器设备将当前调整后的本地服务质量策略恢复到调整之前的本地服务质量策略。
  8. 一种网络服务质量策略的调整装置,其特征在于,包括:
    第一接收模块,用于接收到来自终端设备的第一报文,所述第一报文包括被启动的应用程序的预设服务质量策略;
    调整模块,用于根据所述被启动的应用程序的预设服务质量策略调整本地服务质量策略,得到调整后的本地服务质量策略。
  9. 根据权利要求8所述的装置,其特征在于,所述调整模块包括:
    判断子模块,用于判断本地服务质量策略是否为默认的服务质量策略;
    第一调整子模块,用于当本地服务质量策略为默认的服务质量策略时,将本地服务质量策略调整为被启动的应用程序的预设服务质量策略;
    第二调整子模块,用于当本地服务质量策略不是默认的服务质量策略时,将本地服务质量策略和所述预设服务质量策略按照预定算法策略进行计算,得到调整后的本地服务质量策略。
  10. 根据权利要求8或9所述的装置,其特征在于,所述装置还包括:
    第二接收模块,用于接收到来自终端设备的第二报文,所述第二报文由所述终端设备在关闭所述应用程序时发出;
    恢复模块,用于将当前调整后的本地服务质量策略恢复到调整之前的本地服务质量策略。
  11. 根据权利要求9所述的装置,其特征在于,所述第二调整子模块还包括:
    加权计算单元,用于将本地服务质量策略和所述预设服务质量策略进行加权计算,得到调整后的本地服务质量策略。
  12. 根据权利要求8-11任一所述的装置,其特征在于,所述第一报文还包括被启动的应用程序的标识;所述装置还包括:
    添加模块,用于在应用程序标识集合中,添加所述被启动的应用程序的标识。
  13. 一种网络服务质量策略的调整装置,其特征在于,包括:
    第一发送模块,用于当检测到应用程序被启动时,发送第一报文至路由器设备,所述第一报文包括被启动的应用程序的预设服务质量策略,由所述路由器设备根据所述被启动的应用程序的预设服务质量策略调整本地服务质量策略,得到调增后的本地服务质量策略。
  14. 根据权利要求13所述的装置,其特征在于,所述装置还包括:
    第二发送子模块,用于当检测应用程序被关闭时,发送第二报文至路由器设备,由所述路由器设备将当前调整后的本地服务质量策略恢复到调整之前的本地服务质量策略。
PCT/CN2016/082534 2015-07-13 2016-05-18 网络服务质量策略的调整方法和装置 Ceased WO2017008576A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/241,943 US20170019806A1 (en) 2015-07-13 2016-08-19 Method and device for adjusting network quality of service strategies

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510409734.XA CN105915453A (zh) 2015-07-13 2015-07-13 网络服务质量策略的调整方法和装置
CN201510409734.X 2015-07-13

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/241,943 Continuation US20170019806A1 (en) 2015-07-13 2016-08-19 Method and device for adjusting network quality of service strategies

Publications (1)

Publication Number Publication Date
WO2017008576A1 true WO2017008576A1 (zh) 2017-01-19

Family

ID=56743965

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/082534 Ceased WO2017008576A1 (zh) 2015-07-13 2016-05-18 网络服务质量策略的调整方法和装置

Country Status (3)

Country Link
US (1) US20170019806A1 (zh)
CN (1) CN105915453A (zh)
WO (1) WO2017008576A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108566286B (zh) * 2017-12-29 2021-08-03 惠州Tcl移动通信有限公司 一种智能路由器服务质量的实现方法、路由器及电子设备
CN114915585A (zh) 2019-03-11 2022-08-16 华为技术有限公司 报文处理方法、装置、设备及系统
CN110290071A (zh) * 2019-07-24 2019-09-27 中国联合网络通信集团有限公司 网络流量均衡调整的方法及系统、云端服务器及监控设备
CN114268987A (zh) * 2021-12-27 2022-04-01 中国电信股份有限公司 服务质量策略调整方法、装置及计算机可读介质
CN117692347B (zh) * 2023-05-05 2024-11-22 荣耀终端有限公司 服务质量QoS的控制方法和设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030179703A1 (en) * 2002-03-02 2003-09-25 Yonatan Aharon Levy Automatic router configuration based on traffic and service level agreements
US20030204596A1 (en) * 2002-04-29 2003-10-30 Satyendra Yadav Application-based network quality of service provisioning
TW201322694A (zh) * 2011-10-21 2013-06-01 Qualcomm Inc 用於通訊網路的基於應用程式的頻寬控制
CN103238301A (zh) * 2010-12-06 2013-08-07 高通股份有限公司 用于在路由器处管理话务的技术

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7406385B2 (en) * 2001-10-25 2008-07-29 Applera Corporation System and method for consensus-calling with per-base quality values for sample assemblies
US7092358B2 (en) * 2003-10-24 2006-08-15 Nokia Corporation System and method for facilitating flexible quality of service
US8503453B2 (en) * 2006-11-20 2013-08-06 Cisco Technology, Inc. Adaptive quality of service in an easy virtual private network environment
US7974204B2 (en) * 2007-11-07 2011-07-05 The Boeing Company Quality of service management for message flows across multiple middleware environments
WO2013123467A1 (en) * 2012-02-17 2013-08-22 Vid Scale, Inc. Hierarchical traffic differentiation to handle congestion and/or manage user quality of experience
CN103856988B (zh) * 2012-11-28 2017-09-12 华为技术有限公司 一种保证LTE QoS的方法、路由器及系统
US9973966B2 (en) * 2013-01-11 2018-05-15 Interdigital Patent Holdings, Inc. User-plane congestion management
CN104684029B (zh) * 2013-12-02 2019-01-01 中国移动通信集团公司 一种服务质量QoS控制方法及设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030179703A1 (en) * 2002-03-02 2003-09-25 Yonatan Aharon Levy Automatic router configuration based on traffic and service level agreements
US20030204596A1 (en) * 2002-04-29 2003-10-30 Satyendra Yadav Application-based network quality of service provisioning
CN103238301A (zh) * 2010-12-06 2013-08-07 高通股份有限公司 用于在路由器处管理话务的技术
TW201322694A (zh) * 2011-10-21 2013-06-01 Qualcomm Inc 用於通訊網路的基於應用程式的頻寬控制

Also Published As

Publication number Publication date
CN105915453A (zh) 2016-08-31
US20170019806A1 (en) 2017-01-19

Similar Documents

Publication Publication Date Title
US11196625B2 (en) Cross-domain service optimization
CN102792647B (zh) 用于无线通信的设备和方法
CN108141443B (zh) 用户设备、媒体流传输网络辅助节点和媒体流传输方法
US8081569B2 (en) Dynamic adjustment of connection setup request parameters
WO2017008576A1 (zh) 网络服务质量策略的调整方法和装置
KR20090054528A (ko) 사용자를 위한 서비스 품질 관리 방법 및 이를 수행하기위한 시스템
CN105245469A (zh) 数据传输方法、装置以及系统
WO2015085500A1 (zh) 无线局域网中的控制设备、网络系统及业务处理方法
CN106162758B (zh) 业务处理方法、pcrf以及业务处理系统
CN102025640A (zh) 流量控制方法、装置及网络设备
CN106465194B (zh) 用于控制业务的qos的方法和设备
US20150043563A1 (en) Method and apparatus for discovering an access point
CN111919501B (zh) 专用承载管理
CN104995923A (zh) 视频加速方法、客户端及网元
US20180213445A1 (en) Data transmission control method and apparatus based on wireless communications network
WO2014063554A1 (zh) 获取mab终端接入位置的方法、服务器、网关及系统
WO2012167546A1 (zh) 业务分发控制方法和设备
US20240235940A9 (en) Controlling User Plane Function (UPF) Load
CN103152794B (zh) 业务接入方法及接入控制器
CN115499881B (zh) 一种数据转发方法及装置
CN113630778B (zh) 一种QoS流的动态控制方法及终端
CN103227794A (zh) 数据传输控制方法、装置以及系统
CN107809750B (zh) 一种VoLTE业务处理方法及装置
WO2018161693A1 (zh) 服务质量保障系统及方法
US8495216B2 (en) Communication control system, communication control method and computer-readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16823723

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16823723

Country of ref document: EP

Kind code of ref document: A1