WO2014101147A1 - Bandwidth parameter adjustment method, gateway and enforcement functional entity - Google Patents

Bandwidth parameter adjustment method, gateway and enforcement functional entity Download PDF

Info

Publication number
WO2014101147A1
WO2014101147A1 PCT/CN2012/087926 CN2012087926W WO2014101147A1 WO 2014101147 A1 WO2014101147 A1 WO 2014101147A1 CN 2012087926 W CN2012087926 W CN 2012087926W WO 2014101147 A1 WO2014101147 A1 WO 2014101147A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
bandwidth parameter
service
parameter
bandwidth
Prior art date
Application number
PCT/CN2012/087926
Other languages
French (fr)
Chinese (zh)
Inventor
郭书蕾
路陈红
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201280002734.2A priority Critical patent/CN104025606A/en
Priority to PCT/CN2012/087926 priority patent/WO2014101147A1/en
Publication of WO2014101147A1 publication Critical patent/WO2014101147A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2408Monitoring of the upstream path of the transmission network, e.g. client requests

Definitions

  • the present invention relates to the field of communications, and in particular, to a bandwidth parameter adjustment method, a gateway, and an execution function entity. Background technique
  • video services have gradually become one of the most popular network services.
  • video traffic has gradually become a major component of mobile broadband traffic. Since the bandwidth required for the video service is often large, in order to ensure the smooth transmission of the video service, it is often necessary to perform separate bandwidth guarantee for the video service.
  • the existing bandwidth parameter adjustment method mainly detects the type of network service. If the current network service is detected as a video service, the bandwidth parameter of the video service is adjusted to a fixed value.
  • the existing bandwidth parameter adjustment method all video services, whose adjusted bandwidth parameter values are fixed. Because different video services often have large differences in bandwidth parameters due to different video content, the existing technologies cannot flexibly adjust bandwidth according to different video services, which has a great impact on network transmission performance. If the bandwidth parameter value is too large, and the bandwidth parameter required by the video service is small, bandwidth resources are wasted. If the bandwidth parameter value is too small, and the bandwidth parameter required by the video service is large, the video service transmission may occur. Not smooth, affecting the playback effect. Summary of the invention
  • the embodiment of the present invention provides a bandwidth parameter adjustment method, a gateway, and an execution function entity.
  • the technical solution is as follows:
  • a method for adjusting a bandwidth parameter includes:
  • the interaction information includes: a first request sent by the terminal when requesting, by the terminal, the page or fragment information corresponding to the video service, a second sent by the server to the terminal in response to the first request, and after the terminal receives the response to the first request, requesting, by the server, a video file corresponding to the video service Any one or more of the requests.
  • the interaction information includes: the first request, where the first request carries video identification information corresponding to the video service;
  • HTTP Hypertext Transfer Protocol
  • the required bandwidth parameter of the video service corresponding to the video file is obtained from the local cache
  • the video identification information includes: one or two of a uniform resource locator URL and a video file identifier of the video file.
  • the interaction information includes: the response to the first request;
  • HTTP Hypertext Transfer Protocol
  • the video feature information includes: video capacity information or a video code rate, where the video capacity information includes: a video file size and a video playing duration;
  • the ratio of the video file size and the video playing duration is used as a required bandwidth parameter of the video service, or the video code is used.
  • the rate is a demand bandwidth parameter of the video service.
  • the interaction information includes: the second request, where the second request carries video identification information corresponding to the video service;
  • HTTP Hypertext Transfer Protocol
  • the video identification information includes: one or two of a uniform resource locator URL and a video file identifier of the video file;
  • the video feature information includes: video capacity information or a video code rate, where the video capacity information includes: a video file size and a video playing duration;
  • the ratio of the video file size to the video playback duration is used as the required bandwidth parameter of the video service, or the video code rate is used as the video.
  • the demand bandwidth parameter of the service is used as the required bandwidth parameter of the video service.
  • the method is further Includes:
  • video feature information includes: a video capacity information or a video code rate, where the video capacity information includes: a video file size and a video playing duration;
  • the ratio of the video file size to the video playback duration is used as a required bandwidth parameter of the video service, or the video code rate is used as a required bandwidth parameter of the video service.
  • the required bandwidth parameter is stored in the local cache corresponding to the video file.
  • the method further includes:
  • a method for adjusting a bandwidth parameter includes:
  • the determining, by the required bandwidth parameter, the target bandwidth parameter of the video service includes:
  • the predetermined policy includes:
  • the required bandwidth parameter is compared with the minimum value of the locally stored user subscription bandwidth parameter and the service support bandwidth parameter, and the smaller one of the parameters is used as the target bandwidth parameter.
  • the adjusting the bandwidth parameter of the video service according to the target bandwidth parameter includes:
  • the bandwidth adjustment request is sent to the bandwidth control node, where the bandwidth adjustment request includes the target bandwidth parameter, so that the bandwidth control node
  • the current bandwidth parameter of the video service is adjusted from the original bandwidth parameter to the target bandwidth parameter.
  • the method further includes:
  • a gateway is provided, where the gateway includes:
  • a parameter obtaining module configured to acquire a required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transfer protocol HTTP video service from the terminal;
  • a first sending module configured to send, by the parameter obtaining module, a required bandwidth parameter of the video service to an execution function entity, so that the execution function entity adjusts a bandwidth parameter of the video service according to the required bandwidth parameter;
  • the interaction information includes: a first request sent by the terminal to the server for requesting a page or fragment information corresponding to the video service, a response sent by the server to the terminal, and a response to the first request, And receiving, by the terminal, any one or more of the second requests sent when the video file corresponding to the video service is requested by the server after receiving the response of the first request.
  • the parameter obtaining module includes: a first detecting unit, configured to detect, according to the video identification information corresponding to the video service carried in the first request, whether the local cache is used Storing a video file corresponding to the video service;
  • the first obtaining unit is configured to: if the first detecting unit detects that the video file corresponding to the video service is stored in the local cache, obtain the video service requirement corresponding to the video file from the local cache Bandwidth parameter
  • the video identification information includes: one or two of a uniform resource locator URL and a video file identifier of the video file.
  • the parameter obtaining module includes: a second detecting unit, configured to detect whether the response to the first request includes video feature information, and the video feature
  • the information includes: video capacity information or video code rate, and the video capacity information includes: a video file size and a video playing duration;
  • a second acquiring unit configured to: if the second detecting unit detects that the response to the first request includes video feature information, use a ratio of the video file size and a video playing duration as the video The required bandwidth parameter of the service, or the video bit rate is used as a required bandwidth parameter of the video service.
  • the parameter obtaining module includes: a third detecting unit, configured to detect, according to the video identification information corresponding to the video service carried in the second request, whether the local cache is used Storing a video file corresponding to the video service;
  • a third acquiring unit configured to: if the third detecting unit detects that the view is stored in a local cache The video file corresponding to the frequency service obtains the required bandwidth parameter of the video service corresponding to the video file from the local cache;
  • the video identification information includes: one or two of a uniform resource locator URL and a video file identifier of the video file;
  • the parameter obtaining module further includes:
  • a fourth detecting unit configured to detect whether the second request includes video feature information, where the video feature information includes: video capacity information or a video code rate, where the video capacity information includes: a video file size and a video playing duration ;
  • a fourth acquiring unit configured to use, when the fourth detecting unit detects that the second request includes video feature information, a ratio of the video file size to a video playing duration as a required bandwidth parameter of the video service Or, the video code rate is used as a required bandwidth parameter of the video service.
  • the gateway further includes:
  • a receiving module configured to: if the first detecting unit detects that the video file corresponding to the video service is not stored in the local cache, and the third detecting unit detects that the video service is not stored in the local cache a video file, receiving a video file corresponding to the second request;
  • the parameter obtaining module further includes:
  • a parsing unit configured to parse the received video file, and obtain video feature information of the video file, where the video feature information includes: video capacity information or a video code rate, where the video capacity information includes: a video file size and Video playback time;
  • a fifth obtaining unit configured to use, as a required bandwidth parameter of the video service, a ratio of the video file size and a video playing duration obtained by the parsing unit, or use the video bit rate obtained by the parsing unit as The required bandwidth parameter of the video service;
  • a storage unit configured to store the required bandwidth parameter acquired by the fifth acquiring unit and the video file received by the receiving module in a local cache.
  • the gateway further includes:
  • a second sending module configured to forward the locally cached video file to the terminal after the first sending module sends the required bandwidth parameter of the video service acquired by the parameter obtaining module to the executing function entity ;
  • a detecting module configured to detect whether the video file is forwarded; a third sending module, configured to: if the detecting module detects that the video file is forwarded, send the service end information of the video service to the execution function entity, so that the execution function entity is configured according to the service end information.
  • the bandwidth parameter of the video service is restored to the state before the adjustment.
  • a fourth aspect provides a gateway, where the gateway includes: a processor and a transmitter;
  • the processor is configured to acquire a required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transfer protocol HTTP video service from the server;
  • the processor is further configured to: send, by the transmitter, the required bandwidth parameter of the obtained video service to the execution function entity, so that the execution function entity adjusts a bandwidth parameter of the video service according to the required bandwidth parameter. ;
  • the interaction information includes: a first request sent by the terminal to the server for requesting a page or fragment information corresponding to the video service, a response sent by the server to the terminal, and a response to the first request, And receiving, by the terminal, any one or more of the second requests sent when the video file corresponding to the video service is requested by the server after receiving the response of the first request.
  • the processor is configured to detect, according to the video identification information corresponding to the video service that is carried in the first request, whether the video service is stored in the local cache.
  • Video file
  • the processor is further configured to: if it is detected that the video file corresponding to the video service is stored in the local cache, obtain a required bandwidth parameter of the video service that is stored in the local cache corresponding to the video file;
  • the video identification information includes: one or two of a uniform resource locator URL and a video file identifier of the video file.
  • the processor is configured to detect whether the response to the first request includes video feature information, where the video feature information includes: video capacity information or a video code rate, the video capacity information includes: a video file size and a video playing duration; the processor is further configured to: if it is detected that the response to the first request includes video feature information, The ratio of the video file size to the video playback duration is used as the required bandwidth parameter of the video service, or the video bit rate is used as the required bandwidth parameter of the video service.
  • the processor is configured to detect, according to the video identification information corresponding to the video service that is carried in the second request, whether the video service is stored in the local cache.
  • Video file The processor is further configured to: if it is detected that the video file corresponding to the video service is stored in the local cache, obtain a required bandwidth parameter of the video service that is stored in the local cache corresponding to the video file;
  • the video identification information includes: one or two of a uniform resource locator URL and a video file identifier of the video file;
  • the processor is configured to detect whether video feature information is included in the second request, where the video feature information includes: video capacity information or video code rate, where the video capacity information includes: a video file size and a video playing duration ;
  • the processor is further configured to: if a video feature information is included in the second request, use a ratio of the video file size and a video playback duration as a required bandwidth parameter of the video service, or The video bit rate is used as a demand bandwidth parameter of the video service.
  • the gateway further includes: a receiver and a memory;
  • the receiver is configured to: if the processor detects that the video file corresponding to the video service is not stored in the local cache, receive the video file corresponding to the second request;
  • the processor is configured to parse the received video file, and obtain video feature information of the video file, where the video feature information includes: video capacity information or a video code rate, where the video capacity information includes: a video file Size and length of video playback;
  • the processor is further configured to use the obtained ratio of the video file size and the video playback duration as the required bandwidth parameter of the video service, or use the video code rate acquired by the parsing unit as the video. Demand bandwidth parameter of the service;
  • the processor is further configured to store the acquired required bandwidth parameter in the memory corresponding to the received video file.
  • the processor after the required bandwidth parameter of the video service that is acquired by the transmitter is sent to an execution function entity Controlling, by the transmitter, the locally buffered video file to be forwarded to the terminal;
  • the processor is configured to detect whether the video file is forwarded
  • the processor if it is detected that the forwarding of the video file is completed, controlling the transmitter to send the service end information of the video service to the execution function entity, so that the execution function entity ends according to the service
  • the information restores the bandwidth parameter of the video service to the state before the adjustment.
  • the fifth aspect provides an execution function entity, where the execution function entity includes: a parameter receiving module, configured to receive a required bandwidth parameter of a hypertext transfer protocol HTTP video service sent by a gateway;
  • a target parameter determining module configured to determine a target bandwidth parameter of the video service according to the required bandwidth parameter received by the parameter receiving module
  • an adjusting module configured to adjust a bandwidth parameter of the video service according to the target bandwidth parameter determined by the target parameter determining module.
  • the target parameter determining module includes: a first determining unit, configured to determine, according to the required bandwidth parameter, a target bandwidth parameter of the video service according to a predetermined policy;
  • a sending unit configured to forward the required bandwidth parameter to the rule function entity, so that the rule function entity determines a target bandwidth parameter of the video service according to the required bandwidth parameter according to the predetermined policy
  • a receiving unit configured to receive a target bandwidth parameter of the video service returned by the rule function entity
  • the predetermined policy includes:
  • the required bandwidth parameter is compared with the minimum value of the locally stored user subscription bandwidth parameter and the service support bandwidth parameter, and the smaller one of the parameters is used as the target bandwidth parameter.
  • the adjusting module includes:
  • a detecting unit configured to detect whether the target bandwidth parameter determined by the target parameter determining module is greater than an original bandwidth parameter of the locally stored video service
  • a requesting unit configured to send a bandwidth adjustment request to the bandwidth control node, if the detecting unit detects that the target bandwidth parameter is greater than an original bandwidth parameter of the locally stored video service, where the bandwidth adjustment request includes a target bandwidth parameter, such that the bandwidth control node will view the video industry
  • the current bandwidth parameter of the service is adjusted by the original bandwidth parameter to the target bandwidth parameter.
  • the performing functional entity further includes:
  • An end information receiving module configured to receive service end information of the video service sent by the gateway
  • a requesting module configured to send a bandwidth recovery request to the bandwidth control node, where the bandwidth recovery request includes original bandwidth information of the video service, so that the bandwidth control node recovers current bandwidth parameters of the video service To the original bandwidth parameter.
  • an execution function entity includes: a receiver and a processor;
  • the receiver is configured to receive a required bandwidth parameter of a hypertext transfer protocol HTTP video service sent by a gateway;
  • the processor is configured to determine a target bandwidth parameter of the video service according to a required bandwidth parameter received by the receiver;
  • the processor is configured to adjust a bandwidth parameter of the video service according to the determined target bandwidth parameter.
  • the performing functional entity further includes: a transmitter, configured to determine, according to the required bandwidth parameter, a target bandwidth parameter of the video service according to a predetermined policy ;
  • the processor is further configured to control the transmitter to forward the required bandwidth parameter to a rule function entity, so that the rule function entity determines a target bandwidth parameter of the video service according to the required bandwidth parameter according to a predetermined policy.
  • the receiver is configured to receive a target bandwidth parameter of the video service returned by the rule function entity
  • the predetermined policy includes:
  • the processor is configured to detect whether the target bandwidth parameter is greater than an original bandwidth parameter of the locally stored video service.
  • the processor is configured to: if it is detected that the target bandwidth parameter is greater than an original bandwidth parameter of the locally stored video service, control the transmitter to send a bandwidth adjustment request to the bandwidth control node, where the bandwidth adjustment request is The target bandwidth parameter is included, so that the bandwidth control node adjusts a current bandwidth parameter of the video service from the original bandwidth parameter to the target bandwidth parameter.
  • the receiver is further configured to receive service end information of the video service sent by the gateway; And controlling the transmitter to send a bandwidth recovery request to the bandwidth control node, where the bandwidth recovery request includes original bandwidth information of the video service, so that the bandwidth control node sets a current bandwidth parameter of the video service. Restore to the original bandwidth parameter.
  • a bandwidth parameter adjustment system where the system includes:
  • the beneficial effects of the technical solutions provided by the embodiments of the present invention are:
  • FIG. 1 is a flowchart of a method for adjusting a bandwidth parameter according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for adjusting a bandwidth parameter according to another embodiment of the present invention
  • FIG. 3 is a flowchart of another embodiment of the present invention.
  • Method flow chart of bandwidth parameter adjustment method 4 is a flowchart of a method for adjusting a bandwidth parameter according to an embodiment of the present invention
  • FIG. 5 is a flowchart of a method for adjusting a bandwidth parameter according to another embodiment of the present invention
  • FIG. 6 is a gateway according to an embodiment of the present invention; Schematic diagram of the structure;
  • FIG. 7 is a schematic structural diagram of a gateway according to another embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a gateway according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a gateway according to another embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of an execution function entity according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of an execution function entity according to another embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of an execution function entity according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of an execution function entity according to another embodiment of the present invention.
  • FIG. 14 is a system configuration diagram of a bandwidth parameter adjustment system according to an embodiment of the present invention. detailed description
  • the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
  • the method for adjusting a bandwidth parameter may include:
  • Step 101 Obtain a required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transfer protocol HTTP video service from the server.
  • the interaction information may include: a first request sent by the terminal to the server for requesting the page or the fragmentation information corresponding to the video service, a response sent by the server to the terminal to the first request, and the terminal receiving the first request Any one or more of the second requests sent when the video file corresponding to the video service is requested from the server after the response.
  • Step 102 Send the obtained required bandwidth parameter of the video service to the execution function entity, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter.
  • the bandwidth parameter adjustment method obtained by the embodiment of the present invention obtains the required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transmission protocol HTTP video service from the server, and the requirement is obtained.
  • the bandwidth parameter is sent to the execution function entity, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter, and solves the problem that the bandwidth cannot be flexibly adjusted according to different video services in the prior art, and the network performance is optimized.
  • FIG. 2 is a flowchart of a method for adjusting a bandwidth parameter according to another embodiment of the present invention.
  • the bandwidth parameter adjustment method may be applied to adjust a bandwidth parameter corresponding to an HTTP video service in a dedicated video optimization gateway, where the video optimization gateway may be deployed close to a gateway or node in an existing network, or the bandwidth parameter
  • the adjustment method can be applied to a gateway or node in an existing network.
  • the bandwidth parameters corresponding to the HTTP video service are adjusted.
  • the method for adjusting a bandwidth parameter may include:
  • Step 201 The gateway obtains a required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transfer protocol HTTP video service from the server.
  • the interaction information may include: a first request sent by the terminal to the server for requesting the page or the fragmentation information corresponding to the video service, a response sent by the server to the terminal to the first request, and the terminal receiving the first request Any one or more of the second requests sent when the video file corresponding to the video service is requested from the server after the response.
  • the gateway can be independently deployed, a video optimized gateway for transmission performance optimization of video services, or a gateway or node common to existing networks.
  • the gateway obtains the requirement of the video service according to the interaction information between the two parties when requesting the hypertext transfer protocol HTTP video service from the terminal.
  • the bandwidth parameter may be as follows:
  • the first request may carry video identification information corresponding to the video service.
  • the gateway detects, according to the video identification information corresponding to the video service carried in the first request, whether a video file corresponding to the video service is stored in the local cache; if the local cache is detected to be stored If there is a video file corresponding to the video service, the gateway obtains a required bandwidth parameter of the video service corresponding to the video file from the local cache.
  • the video identification information includes: a uniform resource locator URL and a video file of the video file.
  • the video file identifier may be a video file ID (IDentification, serial number).
  • the gateway detects whether the response to the first request includes video feature information, where the video feature information includes: video capacity information or a video code rate, where The video capacity information includes: a video file size and a video playing duration; if it is detected that the response to the first request includes video feature information, the gateway uses the ratio of the video file size and the video playing duration as the required bandwidth of the video service.
  • the parameter, or, the video bit rate is used as the required bandwidth parameter of the video service.
  • the second request may also carry video identification information corresponding to the video service.
  • the gateway detects, according to the video identification information corresponding to the video service carried in the second request, whether a video file corresponding to the video service is stored in the local cache; if it is detected that the local cache is stored The video file corresponding to the video service, the gateway obtains the required bandwidth parameter of the video service corresponding to the video file from the local cache, where the video identification information includes: a uniform resource locator URL and a video file identifier of the video file. One or two.
  • the gateway may detect whether the second request includes video feature information, where the video feature information includes: video capacity information or video code rate, where the video capacity information includes: a video file size and a video playing duration; If the second request includes the video feature information, the gateway uses the ratio of the video file size and the video playing duration as the required bandwidth parameter of the video service, or uses the video bit rate as the required bandwidth parameter of the video service.
  • the fifth further, if the gateway detects, according to the first request and/or the second request, that the video file corresponding to the video service is not stored in the local cache, the gateway may further receive the video file corresponding to the second request, and Parsing the received video file to obtain video feature information of the video file, where the video feature information includes: video capacity information or video code rate, where the video capacity information includes: a video file size and a video playing duration; the gateway will video files The ratio of the size and the length of the video playing time is used as the required bandwidth parameter of the video service, or the video bit rate is used as the required bandwidth parameter of the video service. Finally, the gateway stores the required bandwidth parameter in the local cache corresponding to the video file. .
  • each of the above five acquisition methods may be used separately to obtain the required bandwidth parameter of the video service, or multiple of them may be used in combination in a certain order.
  • Step 202 The gateway sends the obtained required bandwidth parameter of the video service to the execution function entity, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter.
  • the execution function entity may be an existing one. Policy and billing execution functional entities.
  • Step 203 The gateway forwards the video file corresponding to the video service that is locally cached to the terminal, and detects whether the video file is forwarded.
  • the gateway can cache the video file corresponding to the video service to the local device, and then forward the cached video file to the terminal.
  • Step 204 If it is detected that the video file is forwarded, the gateway sends the service end information of the video service to the execution function entity, so that the execution function entity restores the bandwidth parameter of the video service to the adjustment according to the service end information. status.
  • the gateway may send the service of the video service to the execution function entity. Ending the information, so that the execution function entity restores the bandwidth parameter of the video service to the state before the adjustment, so as to save network bandwidth resources.
  • the bandwidth parameter adjustment method provided by the embodiment of the present invention obtains the required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transmission protocol HTTP video service from the server, and the requirement is obtained.
  • the bandwidth parameter is sent to the execution function entity, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter, and solves the problem that the bandwidth cannot be flexibly adjusted according to different video services in the prior art, and the network performance is optimized.
  • the bandwidth parameter adjustment method provided by the embodiment of the present invention when the video service ends, sends the service end information of the video service to the execution function entity, so that the execution function entity sends the video service according to the service end information.
  • the bandwidth parameter is restored to the state before the adjustment, which solves the problem of waste of network bandwidth resources after the end of the video service, and achieves the purpose of saving network bandwidth resources.
  • FIG. 3 is a flowchart of a method for adjusting a bandwidth parameter according to an embodiment of the present invention.
  • the method for adjusting the bandwidth parameter provided by the embodiment of the present invention may include:
  • Step 301 The gateway detects, according to the first request that the terminal sends the page or the fragmentation information corresponding to the video service, whether the video file corresponding to the video service is stored in the local cache. Specifically, the terminal requests the video service from the server.
  • the specific process may be as follows: The terminal sends a first request sent to the server when requesting the page or fragment information corresponding to the video service, and the server returns a response to the first request to the terminal, where the terminal receives the first request. After the response, the server sends a second request for the video file corresponding to the video service, and after receiving the second request, the server returns the video file corresponding to the video service to the terminal.
  • the first request may carry video identification information corresponding to the video service.
  • the gateway detects, according to the video identification information corresponding to the video service carried in the first request, whether a video file corresponding to the video service is stored in the local cache.
  • the video identification information includes: a uniform resource locator URL and a video of the video file. One or both of the file identifiers.
  • Step 302 If it is detected, according to the first request, that the video file corresponding to the video service is stored in the local cache, the gateway obtains a required bandwidth parameter of the video service corresponding to the video file from the local cache. The gateway also stores the required bandwidth parameter of the video service when the video file corresponding to the video service is stored in the local cache. For details, see steps 309 and 310.
  • Step 303 If it is detected, according to the first request, that the video file corresponding to the video service is not stored in the local cache, the gateway detecting whether the response to the first request returned by the server includes the video feature information;
  • the video feature information includes: a video capacity information or a video code rate, where the video capacity information includes: a video file size and a video playing duration;
  • Step 304 If it is detected that the response to the first request includes video feature information, the gateway acquires a required bandwidth parameter of the video service according to the video feature information.
  • the gateway may use the ratio of the video file size and the video playing duration as the required bandwidth parameter of the video service, or use the video bit rate as the required bandwidth parameter of the video service.
  • Step 305 If it is detected that the response to the first request does not include the video feature information, the gateway may detect, according to the video identification information corresponding to the video service carried in the second request, whether the video is stored in the local cache. Video file corresponding to the business;
  • the video identification information includes: one or two of a uniform resource locator URL and a video file identifier of the video file.
  • the gateway may detect, according to one or both of the uniform resource locator URL and the video file identifier of the video file, whether the video file corresponding to the video service is stored in the local cache.
  • Step 306 If it is detected that the video file corresponding to the video service is stored in the local cache, the gateway obtains a required bandwidth parameter of the video service corresponding to the video file from the local cache.
  • the gateway also stores the required bandwidth parameter of the video service when the video file corresponding to the video service is stored in the local cache. For details, see steps 309 and 310.
  • Step 307 If it is detected that the video file corresponding to the video service is not stored in the local cache, the gateway detects whether the second request includes the video feature information.
  • the video feature information includes: a video capacity information or a video bit rate, where the video capacity information includes: a video file size and a video playing duration.
  • Step 308 If it is detected that the second request includes video feature information, the gateway acquires a required bandwidth parameter of the video service according to the video feature information.
  • the gateway may use the ratio of the video file size and the video playing duration as the required bandwidth parameter of the video service, or use the video bit rate as the required bandwidth parameter of the video service.
  • Step 309 if the gateway detects, according to the second request, that the video service is not stored in the local cache. And corresponding to the video file, the gateway may further receive the video file corresponding to the second request.
  • Step 310 the gateway parses the received video file, obtains video feature information of the video file, and acquires the video service according to the video feature information. Demand bandwidth parameter, and storing the required bandwidth parameter in the local cache corresponding to the video file;
  • the video feature information includes: a video capacity information or a video code rate, where the video capacity information includes: a video file size and a video playing duration; the gateway may use a ratio of a video file size and a video playing duration as the video service.
  • the required bandwidth parameter, or the video bit rate is used as the required bandwidth parameter of the video service.
  • Step 311 The gateway sends the obtained required bandwidth parameter of the video service to the execution function entity, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter.
  • the execution function entity may be an existing one. Policy and billing execution functional entities.
  • Step 312 The gateway forwards the video file corresponding to the locally cached video service to the terminal, and detects whether the video file is forwarded.
  • the gateway can cache the video file corresponding to the video service to the local device, and then forward the cached video file to the terminal.
  • Step 313 if it is detected that the video file is forwarded, the gateway sends the service end information of the video service to the execution function entity, so that the execution function entity restores the bandwidth parameter of the video service to the adjustment according to the service end information. status.
  • the gateway may send the service end information of the video service to the execution function entity, so that the execution function entity restores the bandwidth parameter of the video service to the state before the adjustment, so as to save the network bandwidth resource.
  • the bandwidth parameter adjustment method provided by the embodiment of the present invention obtains the required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transmission protocol HTTP video service from the server, and the requirement is obtained.
  • the bandwidth parameter is sent to the execution function entity, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter, and solves the problem that the bandwidth cannot be flexibly adjusted according to different video services in the prior art, and the network performance is optimized.
  • the bandwidth parameter adjustment method provided by the embodiment of the present invention when the video service ends, sends the service end information of the video service to the execution function entity, so that the execution function entity sends the video service according to the service end information.
  • the bandwidth parameter is restored to the state before the adjustment, which solves the problem of waste of network bandwidth resources after the end of the video service, and achieves the purpose of saving network bandwidth resources.
  • FIG. 4 it is a flowchart of a method for adjusting a bandwidth parameter provided by an embodiment of the present invention, where the method can be applied to a policy and charging execution function entity deployed on a gateway or node in an existing network. Adjust the bandwidth parameters corresponding to the HTTP video service.
  • the bandwidth parameter adjustment method may include:
  • Step 401 Receive a required bandwidth parameter of a hypertext transfer protocol HTTP video service sent by a gateway.
  • Step 402 Determine a target bandwidth parameter of the video service according to the required bandwidth parameter.
  • Step 403 Adjust a bandwidth parameter of the video service according to the determined target bandwidth parameter.
  • the bandwidth parameter adjustment method determines the target bandwidth parameter of the video service according to the required bandwidth parameter of the video service sent by the gateway, and adjusts the bandwidth parameter of the video service according to the target bandwidth parameter.
  • the invention solves the problem that the bandwidth cannot be flexibly adjusted according to different video services in the prior art, and achieves the purpose of optimizing network performance.
  • FIG. 5 is a flowchart of a method for adjusting a bandwidth parameter according to another embodiment of the present invention.
  • the method can be applied to adjust the bandwidth parameters corresponding to the HTTP video service in the policy and charging execution function entity deployed on the gateway or node in the existing network.
  • the bandwidth parameter adjustment method may include: Step 501: The function entity receives a required bandwidth parameter of a hypertext transfer protocol HTTP video service sent by a gateway;
  • the policy and charging execution function entity receives the required bandwidth parameter of the HTTP video service requested by the terminal sent by the gateway.
  • the video optimization gateway may be a dedicated video optimization gateway, or may be a certain gateway or node in the existing network, such as a GGSN (Gateway GPRS Support Node) or a PGW in the 3G network ( Packet Gateway, Packet Gateway, or PDN-GW (Packet Data Network Gateway) in the LTE network.
  • GGSN Gateway GPRS Support Node
  • PGW Packet Gateway, Packet Gateway, or PDN-GW (Packet Data Network Gateway) in the LTE network.
  • Step 502 The performing functional entity determines a target bandwidth parameter of the video service according to the received required bandwidth parameter.
  • the policy and charging execution function entity may determine a target bandwidth parameter of the video service according to the required bandwidth parameter and the predetermined policy
  • the policy and charging execution function entity may also forward the required bandwidth parameter to the policy and charging rule function entity, so that the policy and charging rule function entity combines the predetermined policy according to the required bandwidth parameter. Slightly determining a target bandwidth parameter of the video service, and receiving a target bandwidth parameter of the video service returned by the policy and the charging rule function entity;
  • the predetermined policy may include:
  • the required bandwidth parameter is compared with the minimum value of the locally stored user subscription bandwidth parameter and the service support bandwidth parameter, and the smaller one is used as the target bandwidth parameter.
  • Step 503 The execution function entity detects whether the target bandwidth parameter is greater than an original bandwidth parameter of the locally stored video service.
  • the bearer corresponding to the video service is a GBR (Guest Guaranteed Bit Rate) bearer
  • the original bandwidth parameter of the video service is the GBR value of the corresponding bearer of the video service
  • the policy and the charging execution function entity detect Whether the target bandwidth parameter is greater than the GBR value of the bearer of the locally stored video service. If the target bandwidth parameter is greater than the GBR value, the GBR value needs to be adjusted, otherwise it is not adjusted.
  • the original bandwidth parameter of the video service is the GBR_mini value of the corresponding bearer of the video service
  • the policy and charging execution function entity detects whether the target bandwidth parameter is greater than the locally stored video. If the target bandwidth parameter is greater than the GBR_mini value, the GBR_mini value needs to be adjusted. Otherwise, the GBR_mini value is not adjusted.
  • Step 504 If the target bandwidth parameter is greater than the original bandwidth parameter of the locally stored video service, the execution function entity sends a bandwidth adjustment request to the bandwidth control node, where the bandwidth adjustment request includes the target bandwidth parameter, so that the bandwidth control node sends the video service.
  • the current bandwidth parameter is adjusted from the original bandwidth parameter to the target bandwidth parameter;
  • the performing function entity sends a bandwidth adjustment request carrying the target bandwidth parameter to the bandwidth control node, so that the bandwidth control node carries the video service.
  • the GBR value or the GBR_mini value is reset to the value of the target bandwidth parameter.
  • the bandwidth control node may be an SGSN in a 3G network (Serving GPRS SUPPORT)
  • the NODE, the GPRS service support node, or the MME (Mobility Management Entity), or the bandwidth control node may be an S-GW (Signaling Gateway) in the LTE network.
  • Step 505 The function entity receives the service end information of the video service sent by the gateway, and sends a bandwidth recovery request to the bandwidth control node, where the bandwidth recovery request includes the original bandwidth information of the video service, so that the bandwidth control node sends the video service.
  • the current bandwidth parameter is restored to the original bandwidth parameter.
  • the bandwidth adjustment identifier of the video service may be set to be adjusted locally, and the original GBR of the video service is saved.
  • the value or the GBR_mini value when the execution function entity receives the service end information of a video service sent by the gateway, first checks whether the bandwidth adjustment identifier of the video service is set to be adjusted, and if yes, sends the video to the bandwidth control node.
  • the bandwidth recovery request of the GBR value or the GBR_mini value is carried in the service, so that the bandwidth control node restores the current GBR value or the GBR_mini value of the video service to the original GBR value or GBR_mini value.
  • the bandwidth parameter adjustment method provided by the embodiment of the present invention determines the target bandwidth parameter of the video service according to the required bandwidth parameter of the video service sent by the gateway, and adjusts the bandwidth parameter of the video service according to the target bandwidth parameter.
  • the problem that the bandwidth cannot be flexibly adjusted according to different video services in the prior art is solved, and the network performance is optimized.
  • the bandwidth parameter adjustment method provided by the embodiment of the present invention when the video service ends, the video service is The bandwidth parameter is restored to the state before the adjustment, which solves the problem of waste of network bandwidth resources after the end of the video service, and achieves the purpose of saving network bandwidth resources.
  • FIG. 6 is a schematic structural diagram of a gateway according to an embodiment of the present invention.
  • the gateway may include:
  • the parameter obtaining module 601 is configured to acquire a required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the Hypertext Transfer Protocol (HTTP) video service from the server;
  • HTTP Hypertext Transfer Protocol
  • the first sending module 602 is configured to send the required bandwidth parameter of the video service obtained by the parameter obtaining module 601 to the execution function entity, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter;
  • the interaction information includes: a first request sent by the terminal to the server for requesting a page or fragment information corresponding to the video service, and a response of the server to the first request sent by the server, and the terminal receives the The response to the first request is followed by any one or more of the second requests sent when the video file corresponding to the video service is requested from the server.
  • the gateway provided by the embodiment of the present invention obtains the required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transfer protocol HTTP video service from the server, and sends the required bandwidth parameter.
  • the function entity is executed, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter, and solves the problem that the bandwidth cannot be flexibly adjusted according to different video services in the prior art, and the network performance is optimized.
  • FIG. 7 is a schematic structural diagram of a gateway according to another embodiment of the present invention.
  • the gateway may include:
  • the parameter obtaining module 701 is configured to acquire a required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the Hypertext Transfer Protocol (HTTP) video service from the server;
  • HTTP Hypertext Transfer Protocol
  • the first sending module 702 is configured to send the required bandwidth parameter of the video service obtained by the parameter obtaining module 701 to the execution function entity, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter;
  • the interaction information includes: a first request sent by the terminal to the server for requesting a page or fragment information corresponding to the video service, a response sent by the server to the terminal to the first request, and a response of the terminal to the first request to the server Any one or more of the second requests sent when the video file corresponding to the video service is requested.
  • the parameter obtaining module 701 includes:
  • the first detecting unit 701a is configured to detect, according to the video identification information corresponding to the video service carried in the first request, whether a video file corresponding to the video service is stored in the local cache.
  • the first obtaining unit 701b is configured to: if the first detecting unit 701a detects that the video file corresponding to the video service is stored in the local cache, obtain a required bandwidth parameter of the video service corresponding to the video file from the local cache;
  • the video identification information includes: one or two of a uniform resource locator URL and a video file identifier of the video file.
  • the parameter acquisition module 701 further includes:
  • the second detecting unit 701c is configured to detect whether the response to the first request includes video feature information, where the video feature information includes: video capacity information or a video code rate, where the video capacity information includes: a video file size and a video playback duration;
  • the second obtaining unit 701d is configured to: if the second detecting unit 701c detects that the response to the first request includes video feature information, use a ratio of a video file size and a video playing duration as a required bandwidth parameter of the video service, Or, the video bit rate is used as the required bandwidth parameter of the video service.
  • the parameter acquisition module 701 includes:
  • the third detecting unit 701e is configured to detect, according to the video identification information corresponding to the video service carried in the second request, whether a video file corresponding to the video service is stored in the local cache.
  • the third obtaining unit 701f is configured to: if the third detecting unit 701e detects that the video file corresponding to the video service is stored in the local cache, obtain a required bandwidth parameter of the video service corresponding to the video file from the local cache;
  • the video identification information includes: one or two of a uniform resource locator URL and a video file identifier of the video file;
  • the parameter acquisition module 701 further includes:
  • the fourth detecting unit 701g is configured to detect whether the second feature includes video feature information, where the video feature information includes: video capacity information or a video code rate, where the video capacity information includes: a video file size and a video playing duration;
  • the fourth obtaining unit 701h is configured to: if the fourth detecting unit 701g detects that the second request includes the video feature information, the ratio of the video file size and the video playing duration is used as the required bandwidth parameter of the video service, or The video bit rate is used as the demand bandwidth parameter of the video service.
  • the gateway also includes:
  • the receiving module 703 is configured to: if the first detecting unit 701a detects that the video file corresponding to the video service is not stored in the local cache, and the third detecting unit 701e detects that the video file corresponding to the video service is not stored in the local cache, the receiving module 701 a video file corresponding to the second request;
  • the parameter acquisition module 701 further includes:
  • the parsing unit 701i is configured to parse the received video file, and obtain video feature information of the video file.
  • the video feature information includes: video capacity information or a video bit rate, where the video capacity information includes: a video file size and a video playing duration;
  • the fifth obtaining unit 701j is configured to use the ratio of the video file size and the video playing duration obtained by the parsing unit 701i as the required bandwidth parameter of the video service, or use the video bit rate obtained by the parsing unit 701i as the required bandwidth of the video service.
  • the storage unit 701k is configured to store the required bandwidth parameter acquired by the fifth obtaining unit 701j and the video file received by the receiving module 703 in a local cache.
  • the gateway also includes:
  • the second sending module 704 is configured to: after the first sending module 702 sends the required bandwidth parameter of the video service acquired by the parameter obtaining module 701 to the executing function entity, forward the locally cached video file to the terminal;
  • a detecting module 705, configured to detect whether the video file is forwarded
  • the third sending module 706 is configured to: if the detecting module 705 detects that the video file is forwarded, send the service end information of the video service to the executing function entity, so that the executing function entity restores the bandwidth parameter of the video service according to the service ending information to Adjust the previous state.
  • the gateway provided by the embodiment of the present invention obtains the required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transfer protocol HTTP video service from the server, and sends the required bandwidth parameter.
  • the function entity is executed, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter, and solves the problem that the bandwidth cannot be flexibly adjusted according to different video services in the prior art, thereby achieving the purpose of optimizing network performance;
  • the gateway provided by the embodiment of the present invention, when the video service ends, sends the service end information of the video service to the execution function entity, so that the execution function entity restores the bandwidth parameter of the video service to the adjustment according to the service end information.
  • FIG. 8 is a schematic structural diagram of a gateway according to an embodiment of the present invention.
  • the gateway may include: a processor 801 and a transmitter 802, and a processor 801.
  • the processor 801 is further configured to control the transmitter 802 to send the required bandwidth parameter of the obtained video service to the execution function entity, so that the function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter;
  • the interaction information includes: a first request sent by the terminal to the server for requesting a page or fragment information corresponding to the video service, a response of the server to the first request sent by the server, and a response of the terminal to the first request, and then requesting a video from the server Any one or more of the second requests sent when the video file corresponding to the service is sent.
  • the gateway provided by the embodiment of the present invention obtains the required bandwidth of the video service by using the interaction information between the two when the terminal requests the hypertext transmission protocol HTTP video service from the server. And the required bandwidth parameter is sent to the execution function entity, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter, and solves the problem that the bandwidth cannot be flexibly adjusted according to different video services in the prior art. Optimize network performance for the purpose.
  • FIG. 9 is a schematic structural diagram of a gateway according to another embodiment of the present invention, where the gateway may include: a processor 901 and a transmitter 902;
  • the processor 901 is configured to acquire a required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transfer protocol HTTP video service from the server;
  • the processor 901 is further configured to control the transmitter 902 to send the required bandwidth parameter of the obtained video service to the execution function entity, so that the function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter;
  • the interaction information includes: a first request sent by the terminal to the server for requesting a page or fragment information corresponding to the video service, a response of the server to the first request sent by the server, and a response of the terminal to the first request, and then requesting a video from the server Any one or more of the second requests sent when the video file corresponding to the service is sent.
  • the processor 901 is configured to detect, according to the video identification information corresponding to the video service carried in the first request, whether a video file corresponding to the video service is stored in the local cache.
  • the processor 901 is further configured to: if the video file corresponding to the video service is stored in the local cache, obtain a required bandwidth parameter of the video service corresponding to the video file from the local cache;
  • the video identification information includes: one or two of a uniform resource locator URL and a video file identifier of the video file.
  • the processor 901 is configured to detect whether the video feature information is included in the response to the first request, where the video feature information includes: video capacity information or a video code rate, where the video capacity information includes: a video file size and a video playing duration;
  • the processor 901 is further configured to: if the video feature information is included in the response to the first request, use a ratio of the video file size d and the video playback duration as a required bandwidth parameter of the video service, or set the video code rate. As a demand bandwidth parameter for video services.
  • the processor 901 is configured to detect, according to the video identification information corresponding to the video service carried in the second request, whether a video file corresponding to the video service is stored in the local cache.
  • the processor 901 is further configured to: if the video file corresponding to the video service is stored in the local cache, And obtaining, by the local cache, a required bandwidth parameter of the video service corresponding to the video file, where the video identification information includes: one or two of a uniform resource locator URL and a video file identifier of the video file;
  • the processor 901 is configured to detect whether the second feature includes video feature information, where the video feature information includes: a video capacity information or a video bit rate, where the video capacity information includes: a video file size and a video playing duration;
  • the processor 901 is further configured to: if the video feature information is included in the second request, use a ratio of the video file size and the video playing duration as a required bandwidth parameter of the video service, or use the video bit rate as a video service requirement. Bandwidth parameter.
  • the gateway further includes: a receiver 903 and a memory 904;
  • the receiver 903 is configured to: if the processor 901 detects that the video file corresponding to the video service is not stored in the local cache, receive the video file corresponding to the second request;
  • the processor 901 is configured to parse the received video file to obtain video feature information of the video file, where the video feature information includes: a video capacity information or a video bit rate, where the video capacity information includes: a video file size and a video playing duration;
  • the processor 901 is further configured to use the ratio of the acquired video file size and the video playback duration as the required bandwidth parameter of the video service, or use the video code rate obtained by the parsing unit as the required bandwidth parameter of the video service.
  • the processor 901 is further configured to store the acquired required bandwidth parameter in the memory 904 corresponding to the received video file.
  • the processor 901 is configured to: after the transmitter 902 sends the required bandwidth parameter of the acquired video service to the execution function entity, control the transmitter 902 to forward the locally cached video file to the terminal;
  • the processor 902 is configured to detect whether the video file is forwarded.
  • the processor 902 is configured to: if it is detected that the video file forwarding is completed, the control transmitter 902 sends the service end information of the video service to the execution function entity, so that the execution function entity restores the bandwidth parameter of the video service to the pre-adjustment according to the service end information. status.
  • the gateway provided by the embodiment of the present invention obtains the required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transfer protocol HTTP video service from the server, and sends the required bandwidth parameter.
  • the function entity is executed, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter, and solves the problem that the bandwidth cannot be flexibly adjusted according to different video services in the prior art, thereby achieving the purpose of optimizing network performance;
  • Inventive embodiment And providing, by the gateway, the service end information of the video service to the execution function entity, so that the execution function entity restores the bandwidth parameter of the video service to the state before the adjustment according to the service end information, The problem of wasting network bandwidth resources after the end of the video service is solved, and the purpose of saving network bandwidth resources is achieved.
  • FIG. 10 is a schematic structural diagram of an execution function entity according to an embodiment of the present invention.
  • the execution function entity may include:
  • the parameter receiving module 1001 is configured to receive a required bandwidth parameter of the hypertext transfer protocol HTTP video service sent by the gateway;
  • the target parameter determining module 1002 is configured to determine a target bandwidth parameter of the video service according to the required bandwidth parameter received by the parameter receiving module 1001.
  • the adjusting module 1003 is configured to adjust a bandwidth parameter of the video service according to the target bandwidth parameter determined by the target parameter determining module 1002.
  • the performing functional entity determines the target bandwidth parameter of the video service according to the required bandwidth parameter of the video service sent by the gateway, and adjusts the bandwidth parameter of the video service according to the target bandwidth parameter to solve the problem.
  • the problem that the bandwidth cannot be flexibly adjusted according to different video services is achieved, and the purpose of optimizing network performance is achieved.
  • FIG. 11 is a schematic structural diagram of an execution function entity according to another embodiment of the present invention.
  • the execution function entity may include:
  • the parameter receiving module 1101 is configured to receive a required bandwidth parameter of the hypertext transfer protocol HTTP video service sent by the gateway;
  • the target parameter determining module 1102 is configured to determine a target bandwidth parameter of the video service according to the required bandwidth parameter received by the parameter receiving module 1101.
  • the adjusting module 1103 is configured to adjust a bandwidth parameter of the video service according to the target bandwidth parameter determined by the target parameter determining module 1102.
  • the target parameter determination module 1102 includes:
  • the first determining unit 1102a is configured to determine, according to the required bandwidth parameter, a target bandwidth parameter of the video service according to the predetermined policy;
  • the sending unit 1102b is configured to forward the required bandwidth parameter to the rule function entity, so that the rule function
  • the energy entity determines the target bandwidth parameter of the video service according to the required bandwidth parameter
  • the receiving unit 1102c is configured to receive the target bandwidth parameter of the video service returned by the rule function entity, where the predetermined policy includes:
  • the required bandwidth parameter is compared with the minimum value of the locally stored user subscription bandwidth parameter and the service support bandwidth parameter, and the smaller one is used as the target bandwidth parameter.
  • the adjustment module 1103 includes:
  • the detecting unit 1103a is configured to detect whether the target bandwidth parameter determined by the target parameter determining module is greater than an original bandwidth parameter of the locally stored video service;
  • the requesting unit 1103b is configured to: if the detecting unit 1103a detects that the target bandwidth parameter is greater than the original bandwidth parameter of the locally stored video service, send a bandwidth adjustment request to the bandwidth control node, where the bandwidth adjustment request includes the target bandwidth parameter, so that the bandwidth control is performed.
  • the node adjusts the current bandwidth parameter of the video service from the original bandwidth parameter to the target bandwidth parameter.
  • the executive function entity also includes:
  • the end information receiving module 1104 is configured to receive service end information of the video service sent by the gateway, and the requesting module 1105 is configured to send a bandwidth recovery request to the bandwidth control node, where the bandwidth recovery request includes the original bandwidth information of the video service, so that the bandwidth is used.
  • the control node restores the current bandwidth parameter of the video service to the original bandwidth parameter.
  • the performing functional entity provided by the embodiment of the present invention determines the target bandwidth parameter of the video service according to the required bandwidth parameter of the video service sent by the gateway, and adjusts the bandwidth parameter of the video service according to the target bandwidth parameter to solve the problem.
  • the problem that the bandwidth cannot be flexibly adjusted according to different video services is achieved, and the network performance is optimized.
  • the execution function entity provided by the embodiment of the present invention also uses the bandwidth of the video service when the video service ends. The parameter is restored to the state before the adjustment, which solves the problem of waste of network bandwidth resources after the end of the video service, and achieves the purpose of saving network bandwidth resources.
  • FIG. 12 is a schematic structural diagram of an execution function entity according to an embodiment of the present invention.
  • the execution function entity may include: a receiver 1201 and a processor 1202;
  • a receiver 1201 configured to receive a required bandwidth parameter of a hypertext transfer protocol HTTP video service sent by a gateway;
  • the processor 1202 is configured to determine a target bandwidth parameter of the video service according to the required bandwidth parameter received by the receiver 1201.
  • the processor 1202 is configured to adjust a bandwidth parameter of the video service according to the determined target bandwidth parameter.
  • the performing functional entity provided by the embodiment of the present invention determines the target bandwidth parameter of the video service according to the required bandwidth parameter of the video service sent by the gateway, and adjusts the bandwidth parameter of the video service according to the target bandwidth parameter to solve the problem.
  • the problem that the bandwidth cannot be flexibly adjusted according to different video services is achieved, and the purpose of optimizing network performance is achieved.
  • FIG. 13 is a schematic structural diagram of an execution function entity according to another embodiment of the present invention.
  • the execution function entity may include: a receiver 1301 and processing. 1302;
  • a receiver 1301, configured to receive a required bandwidth parameter of a hypertext transfer protocol HTTP video service sent by a gateway;
  • the processor 1302 is configured to determine a target bandwidth parameter of the video service according to the required bandwidth parameter received by the receiver 1301.
  • the processor 1302 is configured to adjust a bandwidth parameter of the video service according to the determined target bandwidth parameter.
  • the executive function entity further includes: a transmitter 1303;
  • the processor 1302 is configured to determine, according to the required bandwidth parameter, a target bandwidth parameter of the video service according to a predetermined policy
  • the processor 1302 is further configured to control the transmitter 1303 to forward the required bandwidth parameter to the rule function entity, so that the rule function entity determines the target bandwidth parameter of the video service according to the required bandwidth parameter and the predetermined policy;
  • the receiver 1301 is configured to receive a target bandwidth parameter of the video service returned by the rule function entity, where the predetermined policy includes:
  • the required bandwidth parameter is compared with the minimum value of the locally stored user subscription bandwidth parameter and the service support bandwidth parameter, and the smaller one is used as the target bandwidth parameter.
  • the processor 1302 is configured to detect whether the target bandwidth parameter is greater than an original bandwidth parameter of the locally stored video service.
  • the processor 1302 is configured to: if the target bandwidth parameter is greater than the original bandwidth parameter of the locally stored video service, the control transmitter 1303 sends a bandwidth adjustment request to the bandwidth control node, where the bandwidth adjustment request includes the target bandwidth parameter, so that the bandwidth is used.
  • the control node adjusts the current bandwidth parameter of the video service from the original bandwidth parameter to the target bandwidth parameter.
  • the receiver 1301 is further configured to receive the service end information of the video service sent by the gateway.
  • the processor 1302 is configured to control the transmitter 1303 to send a bandwidth recovery request to the bandwidth control node, where the bandwidth recovery request includes the original bandwidth information of the video service. So that the bandwidth control node restores the current bandwidth parameters of the video service to the original bandwidth parameters.
  • the performing functional entity provided by the embodiment of the present invention determines the target bandwidth parameter of the video service according to the required bandwidth parameter of the video service sent by the gateway, and adjusts the bandwidth parameter of the video service according to the target bandwidth parameter to solve the problem.
  • the problem that the bandwidth cannot be flexibly adjusted according to different video services is achieved, and the network performance is optimized.
  • the execution function entity provided by the embodiment of the present invention also uses the bandwidth of the video service when the video service ends. The parameter is restored to the state before the adjustment, which solves the problem of waste of network bandwidth resources after the end of the video service, and achieves the purpose of saving network bandwidth resources.
  • FIG. 14 a system configuration diagram of a bandwidth parameter adjustment system according to an embodiment of the present invention is shown.
  • the bandwidth parameter adjustment system may include a gateway as shown in FIG. 7 and a function entity as shown in FIG.
  • the bandwidth parameter adjustment system determines the target bandwidth parameter of the video service according to the required bandwidth parameter of the video service sent by the gateway, and adjusts the bandwidth parameter of the video service according to the target bandwidth parameter.
  • the invention solves the problem that the bandwidth cannot be flexibly adjusted according to different video services in the prior art, and achieves the purpose of optimizing the network performance.
  • the embodiment of the present invention provides The bandwidth parameter adjustment system restores the bandwidth parameter of the video service to the state before the adjustment at the end of the video service, and solves the problem that the network bandwidth resource is wasted after the end of the video service, thereby achieving the purpose of saving network bandwidth resources.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided are a bandwidth parameter adjustment method, a gateway and an enforcement functional entity, which relate to the field of communications. The method comprises: according to interaction information between a terminal and a server when the terminal requests a hyper text transfer protocol (HTTP) video service to the server, acquiring a demand bandwidth parameter of the video service; and sending the acquired demand bandwidth parameter of the video service to an enforcement functional entity, so as to enable the enforcement functional entity to adjust a bandwidth parameter of the video service according to the demand bandwidth parameter. By acquiring a demand bandwidth parameter of a video service according to the interaction information between a terminal and a server when the terminal requests an HTTP video service to the server, and sending the demand bandwidth parameter to an enforcement functional entity, so as to enable the enforcement functional entity to adjust a bandwidth parameter of the video service according to the demand bandwidth parameter, the present invention solves the problem in the prior art that the bandwidth cannot be flexibly adjusted according to different video services, thereby achieving the purpose of optimizing the network performance.

Description

说 明 书 带宽参数调整方法、 网关及执行功能实体 技术领域  Description of the bandwidth parameter adjustment method, gateway and executive function entity
本发明涉及通信领域, 特别涉及一种带宽参数调整方法、 网关及执行功能 实体。 背景技术  The present invention relates to the field of communications, and in particular, to a bandwidth parameter adjustment method, a gateway, and an execution function entity. Background technique
随着通信领域的不断发展,视频业务渐渐成为最受人们欢迎的网络业务之 一, 尤其是在无线宽带通信领域中, 视频流量已经逐步成为移动宽带流量中的 主要组成部分。 由于视频业务需求的带宽往往较大, 为了保证视频业务的流畅 传输, 往往需要对视频业务进行单独的带宽保障。  With the continuous development of the communication field, video services have gradually become one of the most popular network services. Especially in the field of wireless broadband communication, video traffic has gradually become a major component of mobile broadband traffic. Since the bandwidth required for the video service is often large, in order to ensure the smooth transmission of the video service, it is often necessary to perform separate bandwidth guarantee for the video service.
现有的带宽参数调整方法, 主要通过检测网络业务的类型, 若检测出当前 网络业务为视频业务, 则将该视频业务的带宽参数调整为一个固定值。  The existing bandwidth parameter adjustment method mainly detects the type of network service. If the current network service is detected as a video service, the bandwidth parameter of the video service is adjusted to a fixed value.
在实现本发明的过程中, 发明人发现现有技术至少存在以下问题: 现有的带宽参数调整方法, 所有的视频业务, 其调整的带宽参数值固定。 由于不同视频业务因其视频内容的不同所需求的带宽参数往往相差较大,现有 技术无法根据不同视频业务灵活调整带宽, 对网络传输的性能影响较大。 如果 带宽参数值过大, 而视频业务所需求的带宽参数较小, 则会造成带宽资源的浪 费; 如果带宽参数值过小, 而视频业务所需求的带宽参数较大, 则会造成视频 业务传输不流畅, 影响播放效果。 发明内容  In the process of implementing the present invention, the inventors have found that the prior art has at least the following problems: The existing bandwidth parameter adjustment method, all video services, whose adjusted bandwidth parameter values are fixed. Because different video services often have large differences in bandwidth parameters due to different video content, the existing technologies cannot flexibly adjust bandwidth according to different video services, which has a great impact on network transmission performance. If the bandwidth parameter value is too large, and the bandwidth parameter required by the video service is small, bandwidth resources are wasted. If the bandwidth parameter value is too small, and the bandwidth parameter required by the video service is large, the video service transmission may occur. Not smooth, affecting the playback effect. Summary of the invention
为了解决现有技术中无法根据不同视频业务灵活调整带宽的问题, 本发明 实施例提供了一种带宽参数调整方法、 网关及执行功能实体。 所述技术方案如 下:  In order to solve the problem that the bandwidth cannot be flexibly adjusted according to different video services in the prior art, the embodiment of the present invention provides a bandwidth parameter adjustment method, a gateway, and an execution function entity. The technical solution is as follows:
第一方面, 提供了一种带宽参数调整方法, 所述方法包括:  In a first aspect, a method for adjusting a bandwidth parameter is provided, where the method includes:
根据终端向服务器请求超文本传输协议 HTTP视频业务时两者之间的交互 信息获取所述视频业务的需求带宽参数;  Obtaining a required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transfer protocol HTTP video service from the server;
将获取的所述视频业务的需求带宽参数发送给执行功能实体, 以便所述执 行功能实体根据所述需求带宽参数调整所述视频业务的带宽参数; 所述交互信息包括: 所述终端向所述服务器请求所述视频业务所对应页面 或者分片信息时发送的第一请求、所述服务器向所述终端发送的对所述第一请 求的响应、所述终端接收到所述第一请求的响应之后向所述服务器请求所述视 频业务所对应的视频文件时发送的第二请求中的任一种或者多种。 Sending the obtained required bandwidth parameter of the video service to the execution function entity, so that the The line function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter; the interaction information includes: a first request sent by the terminal when requesting, by the terminal, the page or fragment information corresponding to the video service, a second sent by the server to the terminal in response to the first request, and after the terminal receives the response to the first request, requesting, by the server, a video file corresponding to the video service Any one or more of the requests.
在第一方面的第一种可能实现方式中, 所述交互信息, 包括: 所述第一请 求, 所述第一请求携带有所述视频业务对应的视频标识信息;  In a first possible implementation manner of the first aspect, the interaction information includes: the first request, where the first request carries video identification information corresponding to the video service;
所述根据终端向服务器请求超文本传输协议 HTTP视频业务时两者之间的 交互信息获取所述视频业务的需求带宽参数, 包括:  And obtaining the required bandwidth parameter of the video service according to the interaction information between the two, when the terminal requests the Hypertext Transfer Protocol (HTTP) video service from the server, including:
根据所述第一请求中携带的所述视频业务对应的视频标识信息检测本地 緩存中是否存储有所述视频业务对应的视频文件;  Detecting, according to the video identification information corresponding to the video service that is carried in the first request, whether a video file corresponding to the video service is stored in the local cache;
若检测出本地緩存中存储有所述视频业务对应的视频文件, 则从本地緩存 中获取与所述视频文件对应存储的所述视频业务的需求带宽参数;  If it is detected that the video file corresponding to the video service is stored in the local cache, the required bandwidth parameter of the video service corresponding to the video file is obtained from the local cache;
其中, 所述视频标识信息包括: 视频文件的统一资源定位符 URL和视频 文件标识中的一种或两种。  The video identification information includes: one or two of a uniform resource locator URL and a video file identifier of the video file.
在第一方面的第二种可能实现方式中, 所述交互信息, 包括: 所述对所述 第一请求的响应;  In a second possible implementation manner of the first aspect, the interaction information includes: the response to the first request;
所述根据终端向服务器请求超文本传输协议 HTTP视频业务时两者之间的 交互信息获取所述视频业务的需求带宽参数, 包括:  And obtaining the required bandwidth parameter of the video service according to the interaction information between the two, when the terminal requests the Hypertext Transfer Protocol (HTTP) video service from the server, including:
检测所述对所述第一请求的响应中是否包含有视频特征信息, 所述视频特 征信息包括: 视频容量信息或视频码率, 所述视频容量信息包括: 视频文件大 小和视频播放时长;  Detecting whether the response to the first request includes video feature information, where the video feature information includes: video capacity information or a video code rate, where the video capacity information includes: a video file size and a video playing duration;
若检测出所述对所述第一请求的响应中包含有视频特征信息, 则将所述视 频文件大小和视频播放时长的比值作为所述视频业务的需求带宽参数, 或者, 将所述视频码率作为所述视频业务的需求带宽参数。  If it is detected that the response to the first request includes video feature information, the ratio of the video file size and the video playing duration is used as a required bandwidth parameter of the video service, or the video code is used. The rate is a demand bandwidth parameter of the video service.
在第一方面的第三种可能实现方式中, 所述交互信息, 包括: 所述第二请 求, 所述第二请求携带有所述视频业务对应的视频标识信息;  In a third possible implementation manner of the first aspect, the interaction information includes: the second request, where the second request carries video identification information corresponding to the video service;
所述根据终端向服务器请求超文本传输协议 HTTP视频业务时两者之间的 交互信息获取所述视频业务的需求带宽参数, 包括:  And obtaining the required bandwidth parameter of the video service according to the interaction information between the two, when the terminal requests the Hypertext Transfer Protocol (HTTP) video service from the server, including:
根据所述第二请求中携带的所述视频业务对应的视频标识信息检测本地 緩存中是否存储有所述视频业务对应的视频文件; 若检测出本地緩存中存储有所述视频业务对应的视频文件, 则从本地緩存 中获取与所述视频文件对应存储的所述视频业务的需求带宽参数; Detecting, according to the video identification information corresponding to the video service that is carried in the second request, whether a video file corresponding to the video service is stored in the local cache; If it is detected that the video file corresponding to the video service is stored in the local cache, the required bandwidth parameter of the video service corresponding to the video file is obtained from the local cache;
其中, 所述视频标识信息包括: 视频文件的统一资源定位符 URL和视频 文件标识中的一种或两种;  The video identification information includes: one or two of a uniform resource locator URL and a video file identifier of the video file;
或者,  Or,
检测所述第二请求中是否包含有视频特征信息, 所述视频特征信息包括: 视频容量信息或视频码率, 所述视频容量信息包括: 视频文件大小和视频播放 时长;  Detecting whether the second feature includes video feature information, where the video feature information includes: video capacity information or a video code rate, where the video capacity information includes: a video file size and a video playing duration;
若检测出所述第二请求中包含有视频特征信息, 则将所述视频文件大小和 视频播放时长的比值作为所述视频业务的需求带宽参数, 或者, 将所述视频码 率作为所述视频业务的需求带宽参数。  If the video feature information is included in the second request, the ratio of the video file size to the video playback duration is used as the required bandwidth parameter of the video service, or the video code rate is used as the video. The demand bandwidth parameter of the service.
结合第一方面的第一种可能实现方式或第三种可能实现方式, 在第四种可 能实现方式中, 若检测出本地緩存中未存储有所述视频业务对应的视频文件, 所述方法还包括:  In combination with the first possible implementation manner or the third possible implementation manner of the first aspect, in a fourth possible implementation, if the video file corresponding to the video service is not stored in the local cache, the method is further Includes:
接收所述第二请求对应的视频文件;  Receiving a video file corresponding to the second request;
解析接收到的所述视频文件, 获取所述视频文件的视频特征信息, 所述视 频特征信息包括: 视频容量信息或视频码率, 所述视频容量信息包括: 视频文 件大小和视频播放时长;  And parsing the received video file to obtain video feature information of the video file, where the video feature information includes: a video capacity information or a video code rate, where the video capacity information includes: a video file size and a video playing duration;
将所述视频文件大小和视频播放时长的比值作为所述视频业务的需求带 宽参数, 或者, 将所述视频码率作为所述视频业务的需求带宽参数;  The ratio of the video file size to the video playback duration is used as a required bandwidth parameter of the video service, or the video code rate is used as a required bandwidth parameter of the video service.
将所述需求带宽参数与所述视频文件对应存储于本地緩存中。  The required bandwidth parameter is stored in the local cache corresponding to the video file.
结合第一方面的第四种可能实现方式, 在第五种可能实现方式中, 所述将 获取的所述视频业务的需求带宽参数发送给执行功能实体之后, 所述方法还包 括:  With reference to the fourth possible implementation manner of the foregoing aspect, in a fifth possible implementation manner, after the required bandwidth parameter of the obtained video service is sent to the execution function entity, the method further includes:
将本地緩存的所述视频文件转发给所述终端;  Forwarding the locally cached video file to the terminal;
检测所述视频文件是否转发完成, 若检测出所述视频文件转发完成, 则向 所述执行功能实体发送所述视频业务的业务结束信息, 以便所述执行功能实体 根据所述业务结束信息将所述视频业务的带宽参数恢复至调整之前的状态。  Detecting whether the video file is forwarded or not, and if it is detected that the video file is forwarded, sending the service end information of the video service to the execution function entity, so that the execution function entity according to the service end information The bandwidth parameter of the video service is restored to the state before the adjustment.
第二方面, 提供了一种带宽参数调整方法, 所述方法包括:  In a second aspect, a method for adjusting a bandwidth parameter is provided, where the method includes:
接收网关发送的超文本传输协议 HTTP视频业务的需求带宽参数; 根据所述需求带宽参数确定所述视频业务的目标带宽参数; 根据确定的所述目标带宽参数调整所述视频业务的带宽参数。 在第二方面的第一种可能实现方式中, 所述根据所述需求带宽参数确定所 述视频业务的目标带宽参数, 包括: Receiving a required bandwidth parameter of the hypertext transfer protocol HTTP video service sent by the gateway; determining a target bandwidth parameter of the video service according to the required bandwidth parameter; Adjusting a bandwidth parameter of the video service according to the determined target bandwidth parameter. In a first possible implementation manner of the second aspect, the determining, by the required bandwidth parameter, the target bandwidth parameter of the video service, includes:
根据所述需求带宽参数, 结合预定策略确定所述视频业务的目标带宽参 数;  Determining, according to the required bandwidth parameter, a target bandwidth parameter of the video service according to a predetermined policy;
或者,  Or,
将所述需求带宽参数转发给规则功能实体, 以便所述规则功能实体根据所 述需求带宽参数, 结合预定策略确定所述视频业务的目标带宽参数;  Forwarding the required bandwidth parameter to the rule function entity, so that the rule function entity determines a target bandwidth parameter of the video service according to the required bandwidth parameter according to the predetermined policy;
接收所述规则功能实体返回的所述视频业务的目标带宽参数;  Receiving a target bandwidth parameter of the video service returned by the rule function entity;
其中, 所述预定策略包括:  The predetermined policy includes:
将所述需求带宽参数与本地存储的用户签约带宽参数进行比较, 将其中数 值较小的一个做为所述目标带宽参数;  Comparing the required bandwidth parameter with a locally stored user subscription bandwidth parameter, and using one of the smaller values as the target bandwidth parameter;
或者, 将所述需求带宽参数与本地存储的业务支持带宽参数进行比较, 将 其中数值较小的一个做为所述目标带宽参数;  Or comparing the required bandwidth parameter with a locally stored service support bandwidth parameter, and using a smaller one of the values as the target bandwidth parameter;
或者, 将所述需求带宽参数与本地存储的用户签约带宽参数和业务支持带 宽参数中的最大值进行比较, 将其中数值较小的一个做为所述目标带宽参数; 或者, 将所述需求带宽参数与本地存储的用户签约带宽参数和业务支持带 宽参数中的最小值进行比较, 将其中数值较小的一个做为所述目标带宽参数。  Or comparing the required bandwidth parameter with a maximum value of the locally stored user subscription bandwidth parameter and the service support bandwidth parameter, and using one of the smaller values as the target bandwidth parameter; or, the required bandwidth The parameter is compared with the minimum value of the locally stored user subscription bandwidth parameter and the service support bandwidth parameter, and the smaller one of the parameters is used as the target bandwidth parameter.
结合第二方面的第一种可能实现方式, 在第二种可能实现方式中, 所述根 据所述目标带宽参数调整所述视频业务的带宽参数, 包括:  With reference to the first possible implementation manner of the second aspect, in a second possible implementation, the adjusting the bandwidth parameter of the video service according to the target bandwidth parameter includes:
检测所述目标带宽参数是否大于本地存储的所述视频业务的原有带宽参 数;  Detecting whether the target bandwidth parameter is greater than an original bandwidth parameter of the locally stored video service;
若所述目标带宽参数大于本地存储的所述视频业务的原有带宽参数, 则向 带宽控制节点发送带宽调整请求, 所述带宽调整请求中包含有所述目标带宽参 数, 以便所述带宽控制节点将所述视频业务的当前带宽参数由所述原有带宽参 数调整为所述目标带宽参数。  If the target bandwidth parameter is greater than the original bandwidth parameter of the video service, the bandwidth adjustment request is sent to the bandwidth control node, where the bandwidth adjustment request includes the target bandwidth parameter, so that the bandwidth control node The current bandwidth parameter of the video service is adjusted from the original bandwidth parameter to the target bandwidth parameter.
结合第二方面的第二种可能实现方式, 在第三种可能实现方式中, 所述向 带宽控制节点发送带宽调整请求之后, 所述方法还包括:  With the second possible implementation of the second aspect, in a third possible implementation, after the sending the bandwidth adjustment request to the bandwidth control node, the method further includes:
接收所述网关发送的所述视频业务的业务结束信息;  Receiving service end information of the video service sent by the gateway;
向所述带宽控制节点发送带宽恢复请求, 所述带宽恢复请求中包含有所述 视频业务的原有带宽信息, 以便所述带宽控制节点将所述视频业务的当前带宽 参数恢复至所述原有带宽参数。 Sending a bandwidth recovery request to the bandwidth control node, where the bandwidth recovery request includes original bandwidth information of the video service, so that the bandwidth control node uses the current bandwidth of the video service. The parameters are restored to the original bandwidth parameters.
第三方面, 提供了一种网关, 所述网关包括:  In a third aspect, a gateway is provided, where the gateway includes:
参数获取模块, 用于根据终端向服务器请求超文本传输协议 HTTP视频业 务时两者之间的交互信息获取所述视频业务的需求带宽参数;  a parameter obtaining module, configured to acquire a required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transfer protocol HTTP video service from the terminal;
第一发送模块, 用于将所述参数获取模块获取的所述视频业务的需求带宽 参数发送给执行功能实体, 以便所述执行功能实体根据所述需求带宽参数调整 所述视频业务的带宽参数;  a first sending module, configured to send, by the parameter obtaining module, a required bandwidth parameter of the video service to an execution function entity, so that the execution function entity adjusts a bandwidth parameter of the video service according to the required bandwidth parameter;
所述交互信息包括: 所述终端向所述服务器请求所述视频业务所对应页面 或者分片信息时发送的第一请求、所述服务器向所述终端发送的对所述第一请 求的响应、所述终端接收到所述第一请求的响应之后向所述服务器请求所述视 频业务所对应的视频文件时发送的第二请求中的任一种或者多种。  The interaction information includes: a first request sent by the terminal to the server for requesting a page or fragment information corresponding to the video service, a response sent by the server to the terminal, and a response to the first request, And receiving, by the terminal, any one or more of the second requests sent when the video file corresponding to the video service is requested by the server after receiving the response of the first request.
在第三方面的第一种可能实现方式中, 所述参数获取模块包括: 第一检测单元, 用于根据所述第一请求中携带的所述视频业务对应的视频 标识信息检测本地緩存中是否存储有所述视频业务对应的视频文件;  In a first possible implementation manner of the third aspect, the parameter obtaining module includes: a first detecting unit, configured to detect, according to the video identification information corresponding to the video service carried in the first request, whether the local cache is used Storing a video file corresponding to the video service;
第一获取单元, 用于若所述第一检测单元检测出本地緩存中存储有所述视 频业务对应的视频文件, 则从本地緩存中获取与所述视频文件对应存储的所述 视频业务的需求带宽参数;  The first obtaining unit is configured to: if the first detecting unit detects that the video file corresponding to the video service is stored in the local cache, obtain the video service requirement corresponding to the video file from the local cache Bandwidth parameter
其中, 所述视频标识信息包括: 视频文件的统一资源定位符 URL和视频 文件标识中的一种或两种。  The video identification information includes: one or two of a uniform resource locator URL and a video file identifier of the video file.
在第三方面的第二种可能实现方式中, 所述参数获取模块包括: 第二检测单元, 用于检测所述对所述第一请求的响应中是否包含有视频特 征信息, 所述视频特征信息包括: 视频容量信息或视频码率, 所述视频容量信 息包括: 视频文件大小和视频播放时长;  In a second possible implementation manner of the third aspect, the parameter obtaining module includes: a second detecting unit, configured to detect whether the response to the first request includes video feature information, and the video feature The information includes: video capacity information or video code rate, and the video capacity information includes: a video file size and a video playing duration;
第二获取单元, 用于若所述第二检测单元检测出所述对所述第一请求的响 应中包含有视频特征信息, 则将所述视频文件大小和视频播放时长的比值作为 所述视频业务的需求带宽参数, 或者, 将所述视频码率作为所述视频业务的需 求带宽参数。  a second acquiring unit, configured to: if the second detecting unit detects that the response to the first request includes video feature information, use a ratio of the video file size and a video playing duration as the video The required bandwidth parameter of the service, or the video bit rate is used as a required bandwidth parameter of the video service.
在第三方面的第三种可能实现方式中, 所述参数获取模块包括: 第三检测单元, 用于根据所述第二请求中携带的所述视频业务对应的视频 标识信息检测本地緩存中是否存储有所述视频业务对应的视频文件;  In a third possible implementation manner of the third aspect, the parameter obtaining module includes: a third detecting unit, configured to detect, according to the video identification information corresponding to the video service carried in the second request, whether the local cache is used Storing a video file corresponding to the video service;
第三获取单元, 用于若所述第三检测单元检测出本地緩存中存储有所述视 频业务对应的视频文件, 则从本地緩存中获取与所述视频文件对应存储的所述 视频业务的需求带宽参数; a third acquiring unit, configured to: if the third detecting unit detects that the view is stored in a local cache The video file corresponding to the frequency service obtains the required bandwidth parameter of the video service corresponding to the video file from the local cache;
其中, 所述视频标识信息包括: 视频文件的统一资源定位符 URL和视频 文件标识中的一种或两种;  The video identification information includes: one or two of a uniform resource locator URL and a video file identifier of the video file;
所述参数获取模块还包括:  The parameter obtaining module further includes:
第四检测单元, 用于检测所述第二请求中是否包含有视频特征信息, 所述 视频特征信息包括: 视频容量信息或视频码率, 所述视频容量信息包括: 视频 文件大小和视频播放时长;  a fourth detecting unit, configured to detect whether the second request includes video feature information, where the video feature information includes: video capacity information or a video code rate, where the video capacity information includes: a video file size and a video playing duration ;
第四获取单元, 用于若所述第四检测单元检测出所述第二请求中包含有视 频特征信息, 则将所述视频文件大小和视频播放时长的比值作为所述视频业务 的需求带宽参数, 或者, 将所述视频码率作为所述视频业务的需求带宽参数。  a fourth acquiring unit, configured to use, when the fourth detecting unit detects that the second request includes video feature information, a ratio of the video file size to a video playing duration as a required bandwidth parameter of the video service Or, the video code rate is used as a required bandwidth parameter of the video service.
结合第三方面第一种可能实现方式或第三种可能实现方式,在第四种可能 实现方式中, 所述网关还包括:  With reference to the first possible implementation manner or the third possible implementation manner of the third aspect, in a fourth possible implementation manner, the gateway further includes:
接收模块, 用于若所述第一检测单元检测出本地緩存中未存储有所述视频 业务对应的视频文件,且所述第三检测单元检测出本地緩存中未存储有所述视 频业务对应的视频文件, 则接收所述第二请求对应的视频文件;  a receiving module, configured to: if the first detecting unit detects that the video file corresponding to the video service is not stored in the local cache, and the third detecting unit detects that the video service is not stored in the local cache a video file, receiving a video file corresponding to the second request;
所述参数获取模块还包括:  The parameter obtaining module further includes:
解析单元, 用于解析接收到的所述视频文件, 获取所述视频文件的视频特 征信息, 所述视频特征信息包括: 视频容量信息或视频码率, 所述视频容量信 息包括: 视频文件大小和视频播放时长;  a parsing unit, configured to parse the received video file, and obtain video feature information of the video file, where the video feature information includes: video capacity information or a video code rate, where the video capacity information includes: a video file size and Video playback time;
第五获取单元, 用于将所述解析单元获取的所述视频文件大小和视频播放 时长的比值作为所述视频业务的需求带宽参数, 或者, 将所述解析单元获取的 所述视频码率作为所述视频业务的需求带宽参数;  a fifth obtaining unit, configured to use, as a required bandwidth parameter of the video service, a ratio of the video file size and a video playing duration obtained by the parsing unit, or use the video bit rate obtained by the parsing unit as The required bandwidth parameter of the video service;
存储单元, 用于将所述第五获取单元获取的需求带宽参数与所述接收模块 接收到的视频文件对应存储于本地緩存中。  And a storage unit, configured to store the required bandwidth parameter acquired by the fifth acquiring unit and the video file received by the receiving module in a local cache.
结合第三方面的第四种可能实现方式, 在第五种可能实现方式中, 所述网 关还包括:  In conjunction with the fourth possible implementation of the third aspect, in a fifth possible implementation, the gateway further includes:
第二发送模块, 用于在所述第一发送模块将所述参数获取模块获取的所述 视频业务的需求带宽参数发送给执行功能实体之后, 将本地緩存的所述视频文 件转发给所述终端;  a second sending module, configured to forward the locally cached video file to the terminal after the first sending module sends the required bandwidth parameter of the video service acquired by the parameter obtaining module to the executing function entity ;
检测模块, 用于检测所述视频文件是否转发完成; 第三发送模块, 用于若所述检测模块检测出所述视频文件转发完成, 则向 所述执行功能实体发送所述视频业务的业务结束信息, 以便所述执行功能实体 根据所述业务结束信息将所述视频业务的带宽参数恢复至调整之前的状态。 a detecting module, configured to detect whether the video file is forwarded; a third sending module, configured to: if the detecting module detects that the video file is forwarded, send the service end information of the video service to the execution function entity, so that the execution function entity is configured according to the service end information. The bandwidth parameter of the video service is restored to the state before the adjustment.
第四方面, 提供了一种网关, 其特征在于, 所述网关包括: 处理器和发射 机;  A fourth aspect provides a gateway, where the gateway includes: a processor and a transmitter;
所述处理器, 用于根据终端向服务器请求超文本传输协议 HTTP视频业务 时两者之间的交互信息获取所述视频业务的需求带宽参数;  The processor is configured to acquire a required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transfer protocol HTTP video service from the server;
所述处理器,还用于控制所述发射机将获取的所述视频业务的需求带宽参 数发送给执行功能实体, 以便所述执行功能实体根据所述需求带宽参数调整所 述视频业务的带宽参数;  The processor is further configured to: send, by the transmitter, the required bandwidth parameter of the obtained video service to the execution function entity, so that the execution function entity adjusts a bandwidth parameter of the video service according to the required bandwidth parameter. ;
所述交互信息包括: 所述终端向所述服务器请求所述视频业务所对应页面 或者分片信息时发送的第一请求、所述服务器向所述终端发送的对所述第一请 求的响应、所述终端接收到所述第一请求的响应之后向所述服务器请求所述视 频业务所对应的视频文件时发送的第二请求中的任一种或者多种。  The interaction information includes: a first request sent by the terminal to the server for requesting a page or fragment information corresponding to the video service, a response sent by the server to the terminal, and a response to the first request, And receiving, by the terminal, any one or more of the second requests sent when the video file corresponding to the video service is requested by the server after receiving the response of the first request.
在第四方面的第一种可能实现方式中, 所述处理器, 用于根据所述第一请 求中携带的所述视频业务对应的视频标识信息检测本地緩存中是否存储有所 述视频业务对应的视频文件;  In a first possible implementation manner of the fourth aspect, the processor is configured to detect, according to the video identification information corresponding to the video service that is carried in the first request, whether the video service is stored in the local cache. Video file
所述处理器,还用于若检测出本地緩存中存储有所述视频业务对应的视频 文件, 则从本地緩存中获取与所述视频文件对应存储的所述视频业务的需求带 宽参数;  The processor is further configured to: if it is detected that the video file corresponding to the video service is stored in the local cache, obtain a required bandwidth parameter of the video service that is stored in the local cache corresponding to the video file;
其中, 所述视频标识信息包括: 视频文件的统一资源定位符 URL和视频 文件标识中的一种或两种。  The video identification information includes: one or two of a uniform resource locator URL and a video file identifier of the video file.
在第四方面的第二种可能实现方式中, 所述处理器, 用于检测所述对所述 第一请求的响应中是否包含有视频特征信息, 所述视频特征信息包括: 视频容 量信息或视频码率, 所述视频容量信息包括: 视频文件大小和视频播放时长; 所述处理器,还用于若检测出所述对所述第一请求的响应中包含有视频特 征信息, 则将所述视频文件大小和视频播放时长的比值作为所述视频业务的需 求带宽参数, 或者, 将所述视频码率作为所述视频业务的需求带宽参数。  In a second possible implementation manner of the fourth aspect, the processor is configured to detect whether the response to the first request includes video feature information, where the video feature information includes: video capacity information or a video code rate, the video capacity information includes: a video file size and a video playing duration; the processor is further configured to: if it is detected that the response to the first request includes video feature information, The ratio of the video file size to the video playback duration is used as the required bandwidth parameter of the video service, or the video bit rate is used as the required bandwidth parameter of the video service.
在第四方面的第三种可能实现方式中, 所述处理器, 用于根据所述第二请 求中携带的所述视频业务对应的视频标识信息检测本地緩存中是否存储有所 述视频业务对应的视频文件; 所述处理器,还用于若检测出本地緩存中存储有所述视频业务对应的视频 文件, 则从本地緩存中获取与所述视频文件对应存储的所述视频业务的需求带 宽参数; In a third possible implementation manner of the fourth aspect, the processor is configured to detect, according to the video identification information corresponding to the video service that is carried in the second request, whether the video service is stored in the local cache. Video file The processor is further configured to: if it is detected that the video file corresponding to the video service is stored in the local cache, obtain a required bandwidth parameter of the video service that is stored in the local cache corresponding to the video file;
其中, 所述视频标识信息包括: 视频文件的统一资源定位符 URL和视频 文件标识中的一种或两种;  The video identification information includes: one or two of a uniform resource locator URL and a video file identifier of the video file;
所述处理器, 用于检测所述第二请求中是否包含有视频特征信息, 所述视 频特征信息包括: 视频容量信息或视频码率, 所述视频容量信息包括: 视频文 件大小和视频播放时长;  The processor is configured to detect whether video feature information is included in the second request, where the video feature information includes: video capacity information or video code rate, where the video capacity information includes: a video file size and a video playing duration ;
所述处理器, 还用于若检测出所述第二请求中包含有视频特征信息, 则将 所述视频文件大小和视频播放时长的比值作为所述视频业务的需求带宽参数, 或者, 将所述视频码率作为所述视频业务的需求带宽参数。  The processor is further configured to: if a video feature information is included in the second request, use a ratio of the video file size and a video playback duration as a required bandwidth parameter of the video service, or The video bit rate is used as a demand bandwidth parameter of the video service.
结合第四方面的第一种可能实现方式或第三种可能实现方式, 在第四种可 能实现方式中, 所述网关还包括: 接收机和存储器;  With reference to the first possible implementation manner or the third possible implementation manner of the fourth aspect, in a fourth possible implementation manner, the gateway further includes: a receiver and a memory;
所述接收机, 用于若所述处理器检测出本地緩存中未存储有所述视频业务 对应的视频文件, 则接收所述第二请求对应的视频文件;  The receiver is configured to: if the processor detects that the video file corresponding to the video service is not stored in the local cache, receive the video file corresponding to the second request;
所述处理器, 用于解析接收到的所述视频文件, 获取所述视频文件的视频 特征信息, 所述视频特征信息包括: 视频容量信息或视频码率, 所述视频容量 信息包括: 视频文件大小和视频播放时长;  The processor is configured to parse the received video file, and obtain video feature information of the video file, where the video feature information includes: video capacity information or a video code rate, where the video capacity information includes: a video file Size and length of video playback;
所述处理器,还用于将获取的所述视频文件大小和视频播放时长的比值作 为所述视频业务的需求带宽参数, 或者, 将所述解析单元获取的所述视频码率 作为所述视频业务的需求带宽参数;  The processor is further configured to use the obtained ratio of the video file size and the video playback duration as the required bandwidth parameter of the video service, or use the video code rate acquired by the parsing unit as the video. Demand bandwidth parameter of the service;
所述处理器,还用于将所述获取的需求带宽参数与所述接收到的视频文件 对应存储于所述存储器中。  The processor is further configured to store the acquired required bandwidth parameter in the memory corresponding to the received video file.
结合第四方面的第四种可能实现方式, 在第五种可能实现方式中, 所述处理器, 用于在所述发射机将获取的所述视频业务的需求带宽参数发 送给执行功能实体之后,控制所述发射机将本地緩存的所述视频文件转发给所 述终端;  With reference to the fourth possible implementation manner of the fourth aspect, in a fifth possible implementation, the processor, after the required bandwidth parameter of the video service that is acquired by the transmitter is sent to an execution function entity Controlling, by the transmitter, the locally buffered video file to be forwarded to the terminal;
所述处理器, 用于检测所述视频文件是否转发完成;  The processor is configured to detect whether the video file is forwarded;
所述处理器, 用于若检测出所述视频文件转发完成, 则控制所述发射机向 所述执行功能实体发送所述视频业务的业务结束信息, 以便所述执行功能实体 根据所述业务结束信息将所述视频业务的带宽参数恢复至调整之前的状态。 第五方面, 提供了一种执行功能实体, 所述执行功能实体包括: 参数接收模块, 用于接收网关发送的超文本传输协议 HTTP视频业务的需 求带宽参数; The processor, if it is detected that the forwarding of the video file is completed, controlling the transmitter to send the service end information of the video service to the execution function entity, so that the execution function entity ends according to the service The information restores the bandwidth parameter of the video service to the state before the adjustment. The fifth aspect provides an execution function entity, where the execution function entity includes: a parameter receiving module, configured to receive a required bandwidth parameter of a hypertext transfer protocol HTTP video service sent by a gateway;
目标参数确定模块, 用于根据所述参数接收模块接收到的需求带宽参数确 定所述视频业务的目标带宽参数;  a target parameter determining module, configured to determine a target bandwidth parameter of the video service according to the required bandwidth parameter received by the parameter receiving module;
调整模块, 用于根据所述目标参数确定模块确定的所述目标带宽参数调整 所述视频业务的带宽参数。  And an adjusting module, configured to adjust a bandwidth parameter of the video service according to the target bandwidth parameter determined by the target parameter determining module.
在第五方面的第一种可能实现方式中, 所述目标参数确定模块包括: 第一确定单元, 用于根据所述需求带宽参数, 结合预定策略确定所述视频 业务的目标带宽参数;  In a first possible implementation manner of the fifth aspect, the target parameter determining module includes: a first determining unit, configured to determine, according to the required bandwidth parameter, a target bandwidth parameter of the video service according to a predetermined policy;
发送单元, 用于将所述需求带宽参数转发给规则功能实体, 以便所述规则 功能实体根据所述需求带宽参数, 结合预定策略确定所述视频业务的目标带宽 参数;  a sending unit, configured to forward the required bandwidth parameter to the rule function entity, so that the rule function entity determines a target bandwidth parameter of the video service according to the required bandwidth parameter according to the predetermined policy;
接收单元, 用于接收所述规则功能实体返回的所述视频业务的目标带宽参 数;  a receiving unit, configured to receive a target bandwidth parameter of the video service returned by the rule function entity;
其中, 所述预定策略包括:  The predetermined policy includes:
将所述需求带宽参数与本地存储的用户签约带宽参数进行比较, 将其中数 值较小的一个做为所述目标带宽参数;  Comparing the required bandwidth parameter with a locally stored user subscription bandwidth parameter, and using one of the smaller values as the target bandwidth parameter;
或者, 将所述需求带宽参数与本地存储的业务支持带宽参数进行比较, 将 其中数值较小的一个做为所述目标带宽参数;  Or comparing the required bandwidth parameter with a locally stored service support bandwidth parameter, and using a smaller one of the values as the target bandwidth parameter;
或者, 将所述需求带宽参数与本地存储的用户签约带宽参数和业务支持带 宽参数中的最大值进行比较, 将其中数值较小的一个做为所述目标带宽参数; 或者, 将所述需求带宽参数与本地存储的用户签约带宽参数和业务支持带 宽参数中的最小值进行比较, 将其中数值较小的一个做为所述目标带宽参数。  Or comparing the required bandwidth parameter with a maximum value of the locally stored user subscription bandwidth parameter and the service support bandwidth parameter, and using one of the smaller values as the target bandwidth parameter; or, the required bandwidth The parameter is compared with the minimum value of the locally stored user subscription bandwidth parameter and the service support bandwidth parameter, and the smaller one of the parameters is used as the target bandwidth parameter.
结合第五方面的第一种可能实现方式, 在第二种可能实现方式中, 所述调 整模块包括:  With reference to the first possible implementation manner of the fifth aspect, in a second possible implementation manner, the adjusting module includes:
检测单元, 用于检测所述目标参数确定模块确定的目标带宽参数是否大于 本地存储的所述视频业务的原有带宽参数;  a detecting unit, configured to detect whether the target bandwidth parameter determined by the target parameter determining module is greater than an original bandwidth parameter of the locally stored video service;
请求单元, 用于若所述检测单元检测出所述目标带宽参数大于本地存储的 所述视频业务的原有带宽参数, 则向带宽控制节点发送带宽调整请求, 所述带 宽调整请求中包含有所述目标带宽参数, 以便所述带宽控制节点将所述视频业 务的当前带宽参数由所述原有带宽参数调整为所述目标带宽参数。 a requesting unit, configured to send a bandwidth adjustment request to the bandwidth control node, if the detecting unit detects that the target bandwidth parameter is greater than an original bandwidth parameter of the locally stored video service, where the bandwidth adjustment request includes a target bandwidth parameter, such that the bandwidth control node will view the video industry The current bandwidth parameter of the service is adjusted by the original bandwidth parameter to the target bandwidth parameter.
结合第五方面的第二种可能实现方式, 在第三种可能实现方式中, 所述执 行功能实体还包括:  With reference to the second possible implementation manner of the fifth aspect, in a third possible implementation, the performing functional entity further includes:
结束信息接收模块, 用于接收所述网关发送的所述视频业务的业务结束信 息;  An end information receiving module, configured to receive service end information of the video service sent by the gateway;
请求模块, 用于向所述带宽控制节点发送带宽恢复请求, 所述带宽恢复请 求中包含有所述视频业务的原有带宽信息, 以便所述带宽控制节点将所述视频 业务的当前带宽参数恢复至所述原有带宽参数。  a requesting module, configured to send a bandwidth recovery request to the bandwidth control node, where the bandwidth recovery request includes original bandwidth information of the video service, so that the bandwidth control node recovers current bandwidth parameters of the video service To the original bandwidth parameter.
第六方面, 提供了一种执行功能实体, 所述执行功能实体包括: 接收机和 处理器;  In a sixth aspect, an execution function entity is provided, where the execution function entity includes: a receiver and a processor;
所述接收机, 用于接收网关发送的超文本传输协议 HTTP视频业务的需求 带宽参数;  The receiver is configured to receive a required bandwidth parameter of a hypertext transfer protocol HTTP video service sent by a gateway;
所述处理器, 用于根据所述接收机接收到的需求带宽参数确定所述视频业 务的目标带宽参数;  The processor is configured to determine a target bandwidth parameter of the video service according to a required bandwidth parameter received by the receiver;
所述处理器, 用于根据确定的所述目标带宽参数调整所述视频业务的带宽 参数。  The processor is configured to adjust a bandwidth parameter of the video service according to the determined target bandwidth parameter.
在第六方面的第一种可能实现方式中,所述执行功能实体还包括:发射机; 所述处理器, 用于根据所述需求带宽参数, 结合预定策略确定所述视频业 务的目标带宽参数;  In a first possible implementation manner of the sixth aspect, the performing functional entity further includes: a transmitter, configured to determine, according to the required bandwidth parameter, a target bandwidth parameter of the video service according to a predetermined policy ;
所述处理器,还用于控制所述发射机将所述需求带宽参数转发给规则功能 实体, 以便所述规则功能实体根据所述需求带宽参数, 结合预定策略确定所述 视频业务的目标带宽参数;  The processor is further configured to control the transmitter to forward the required bandwidth parameter to a rule function entity, so that the rule function entity determines a target bandwidth parameter of the video service according to the required bandwidth parameter according to a predetermined policy. ;
所述接收机, 用于接收所述规则功能实体返回的所述视频业务的目标带宽 参数;  The receiver is configured to receive a target bandwidth parameter of the video service returned by the rule function entity;
其中, 所述预定策略包括:  The predetermined policy includes:
将所述需求带宽参数与本地存储的用户签约带宽参数进行比较, 将其中数 值较小的一个做为所述目标带宽参数;  Comparing the required bandwidth parameter with a locally stored user subscription bandwidth parameter, and using one of the smaller values as the target bandwidth parameter;
或者, 将所述需求带宽参数与本地存储的业务支持带宽参数进行比较, 将 其中数值较小的一个做为所述目标带宽参数;  Or comparing the required bandwidth parameter with a locally stored service support bandwidth parameter, and using a smaller one of the values as the target bandwidth parameter;
或者, 将所述需求带宽参数与本地存储的用户签约带宽参数和业务支持带 宽参数中的最大值进行比较, 将其中数值较小的一个做为所述目标带宽参数; 或者, 将所述需求带宽参数与本地存储的用户签约带宽参数和业务支持带 宽参数中的最小值进行比较, 将其中数值较小的一个做为所述目标带宽参数。 Or comparing the required bandwidth parameter with a maximum value of the locally stored user subscription bandwidth parameter and the service support bandwidth parameter, and using the smaller one of the values as the target bandwidth parameter; Or comparing the required bandwidth parameter with a minimum value of the locally stored user subscription bandwidth parameter and the service support bandwidth parameter, and using the smaller one of the values as the target bandwidth parameter.
结合第六方面的第一种可能实现方式, 在第二种可能实现方式中, 所述处 理器, 用于检测所述目标带宽参数是否大于本地存储的所述视频业务的原有带 宽参数;  With reference to the first possible implementation manner of the sixth aspect, in a second possible implementation manner, the processor is configured to detect whether the target bandwidth parameter is greater than an original bandwidth parameter of the locally stored video service.
所述处理器, 用于若检测出所述目标带宽参数大于本地存储的所述视频业 务的原有带宽参数, 则控制所述发射机向带宽控制节点发送带宽调整请求, 所 述带宽调整请求中包含有所述目标带宽参数, 以便所述带宽控制节点将所述视 频业务的当前带宽参数由所述原有带宽参数调整为所述目标带宽参数。  The processor is configured to: if it is detected that the target bandwidth parameter is greater than an original bandwidth parameter of the locally stored video service, control the transmitter to send a bandwidth adjustment request to the bandwidth control node, where the bandwidth adjustment request is The target bandwidth parameter is included, so that the bandwidth control node adjusts a current bandwidth parameter of the video service from the original bandwidth parameter to the target bandwidth parameter.
结合第六方面的第二种可能实现方式, 在第三种可能实现方式中, 所述接收机, 还用于接收所述网关发送的所述视频业务的业务结束信息; 所述处理器, 用于控制所述发射机向所述带宽控制节点发送带宽恢复请 求, 所述带宽恢复请求中包含有所述视频业务的原有带宽信息, 以便所述带宽 控制节点将所述视频业务的当前带宽参数恢复至所述原有带宽参数。  With reference to the second possible implementation manner of the sixth aspect, in a third possible implementation, the receiver is further configured to receive service end information of the video service sent by the gateway; And controlling the transmitter to send a bandwidth recovery request to the bandwidth control node, where the bandwidth recovery request includes original bandwidth information of the video service, so that the bandwidth control node sets a current bandwidth parameter of the video service. Restore to the original bandwidth parameter.
第七方面, 提供了一种带宽参数调整系统, 所述系统包括:  In a seventh aspect, a bandwidth parameter adjustment system is provided, where the system includes:
如上述第三方面所述的网关以及如上述第五方面所述的执行功能实体。 本发明实施例提供的技术方案的有益效果是:  A gateway as in the third aspect above, and the execution functional entity as described in the fifth aspect above. The beneficial effects of the technical solutions provided by the embodiments of the present invention are:
通过根据终端向服务器请求超文本传输协议 HTTP视频业务时两者之间的 交互信息获取该视频业务的需求带宽参数, 并将该需求带宽参数发送给执行功 能实体, 以便该执行功能实体根据需求带宽参数调整该视频业务的带宽参数, 解决了现有技术中无法根据不同视频业务灵活调整带宽的问题, 达到了优化网 络性能的目的。 附图说明  Obtaining a required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transfer protocol HTTP video service from the terminal, and sending the required bandwidth parameter to the execution function entity, so that the execution function entity according to the required bandwidth The parameters adjust the bandwidth parameters of the video service, and solve the problem that the bandwidth cannot be flexibly adjusted according to different video services in the prior art, and the network performance is optimized. DRAWINGS
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中所 需要使用的附图作筒单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明 的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work.
图 1是本发明一个实施例提供的带宽参数调整方法的方法流程图; 图 2是本发明另一个实施例提供的带宽参数调整方法的方法流程图; 图 3是本发明又一个实施例提供的带宽参数调整方法的方法流程图; 图 4是本发明一个实施例提供的带宽参数调整方法的方法流程图; 图 5是本发明另一个实施例提供的带宽参数调整方法的方法流程图; 图 6是本发明一个实施例提供的网关的结构示意图; 1 is a flowchart of a method for adjusting a bandwidth parameter according to an embodiment of the present invention; FIG. 2 is a flowchart of a method for adjusting a bandwidth parameter according to another embodiment of the present invention; FIG. 3 is a flowchart of another embodiment of the present invention. Method flow chart of bandwidth parameter adjustment method; 4 is a flowchart of a method for adjusting a bandwidth parameter according to an embodiment of the present invention; FIG. 5 is a flowchart of a method for adjusting a bandwidth parameter according to another embodiment of the present invention; FIG. 6 is a gateway according to an embodiment of the present invention; Schematic diagram of the structure;
图 7是本发明另一实施例提供的网关的结构示意图;  FIG. 7 is a schematic structural diagram of a gateway according to another embodiment of the present invention;
图 8是本发明一个实施例提供的网关的结构示意图;  FIG. 8 is a schematic structural diagram of a gateway according to an embodiment of the present invention;
图 9是本发明另一实施例提供的网关的结构示意图;  FIG. 9 is a schematic structural diagram of a gateway according to another embodiment of the present invention;
图 10是本发明一个实施例提供的执行功能实体的结构示意图;  FIG. 10 is a schematic structural diagram of an execution function entity according to an embodiment of the present invention;
图 11是本发明另一实施例提供的执行功能实体的结构示意图;  FIG. 11 is a schematic structural diagram of an execution function entity according to another embodiment of the present invention;
图 12是本发明一个实施例提供的执行功能实体的结构示意图;  FIG. 12 is a schematic structural diagram of an execution function entity according to an embodiment of the present invention; FIG.
图 13是本发明另一实施例提供的执行功能实体的结构示意图;  FIG. 13 is a schematic structural diagram of an execution function entity according to another embodiment of the present invention;
图 14是本发明一个实施例提供的带宽参数调整系统的系统构成图。 具体实施方式  FIG. 14 is a system configuration diagram of a bandwidth parameter adjustment system according to an embodiment of the present invention. detailed description
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明 实施方式作进一步地详细描述。 请参见图 1 , 其示出了本发明一个实施例提供的带宽参数调整方法的方法 流程图, 该带宽参数调整方法可以包括:  The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. Referring to FIG. 1 , a flowchart of a method for adjusting a bandwidth parameter according to an embodiment of the present invention is provided. The method for adjusting a bandwidth parameter may include:
步骤 101 , 根据终端向服务器请求超文本传输协议 HTTP视频业务时两者 之间的交互信息获取该视频业务的需求带宽参数;  Step 101: Obtain a required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transfer protocol HTTP video service from the server.
其中, 交互信息可以包括: 终端向服务器请求该视频业务所对应页面或者 分片信息时发送的第一请求、 服务器向终端发送的对该第一请求的响应、 终端 接收到对该第一请求的响应之后向服务器请求该视频业务所对应的视频文件 时发送的第二请求中的任一种或者多种。  The interaction information may include: a first request sent by the terminal to the server for requesting the page or the fragmentation information corresponding to the video service, a response sent by the server to the terminal to the first request, and the terminal receiving the first request Any one or more of the second requests sent when the video file corresponding to the video service is requested from the server after the response.
步骤 102, 将获取的该视频业务的需求带宽参数发送给执行功能实体, 以 便该执行功能实体根据需求带宽参数调整该视频业务的带宽参数。  Step 102: Send the obtained required bandwidth parameter of the video service to the execution function entity, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter.
综上所述, 本发明实施例提供的带宽参数调整方法, 通过根据终端向服务 器请求超文本传输协议 HTTP视频业务时两者之间的交互信息获取该视频业务 的需求带宽参数, 并将该需求带宽参数发送给执行功能实体, 以便该执行功能 实体根据需求带宽参数调整该视频业务的带宽参数, 解决了现有技术中无法根 据不同视频业务灵活调整带宽的问题, 达到了优化网络性能的目的。 为了对上述图 1对应的带宽参数调整方法做进一步描述, 请参见图 2, 其 示出了本发明另一实施例提供的带宽参数调整方法的方法流程图。该带宽参数 调整方法可以应用于在某一专用的视频优化网关中对 HTTP视频业务对应的带 宽参数进行调整, 该视频优化网关可以靠近现有网络中的网关或节点进行部 署, 或者, 该带宽参数调整方法可以应用于在现有网络中的网关或节点中对In summary, the bandwidth parameter adjustment method provided by the embodiment of the present invention obtains the required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transmission protocol HTTP video service from the server, and the requirement is obtained. The bandwidth parameter is sent to the execution function entity, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter, and solves the problem that the bandwidth cannot be flexibly adjusted according to different video services in the prior art, and the network performance is optimized. For further description of the bandwidth parameter adjustment method corresponding to FIG. 1 above, please refer to FIG. 2, which is a flowchart of a method for adjusting a bandwidth parameter according to another embodiment of the present invention. The bandwidth parameter adjustment method may be applied to adjust a bandwidth parameter corresponding to an HTTP video service in a dedicated video optimization gateway, where the video optimization gateway may be deployed close to a gateway or node in an existing network, or the bandwidth parameter The adjustment method can be applied to a gateway or node in an existing network.
HTTP视频业务对应的带宽参数进行调整。 以应用于无线通信网络为例, 该带 宽参数调整方法可以包括: The bandwidth parameters corresponding to the HTTP video service are adjusted. For example, the method for adjusting a bandwidth parameter may include:
步骤 201 , 网关根据终端向服务器请求超文本传输协议 HTTP视频业务时 两者之间的交互信息获取该视频业务的需求带宽参数;  Step 201: The gateway obtains a required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transfer protocol HTTP video service from the server.
其中, 交互信息可以包括: 终端向服务器请求该视频业务所对应页面或者 分片信息时发送的第一请求、 服务器向终端发送的对该第一请求的响应、 终端 接收到对该第一请求的响应之后向服务器请求该视频业务所对应的视频文件 时发送的第二请求中的任一种或者多种。  The interaction information may include: a first request sent by the terminal to the server for requesting the page or the fragmentation information corresponding to the video service, a response sent by the server to the terminal to the first request, and the terminal receiving the first request Any one or more of the second requests sent when the video file corresponding to the video service is requested from the server after the response.
该网关可以是独立部署的, 用于对视频业务进行传输性能优化的视频优化 网关, 也可以是现有网络中通用的网关或节点。 该网关根据终端向服务器请求 超文本传输协议 HTTP视频业务时两者之间的交互信息获取该视频业务的需求 带宽参数具体可以有如下几种:  The gateway can be independently deployed, a video optimized gateway for transmission performance optimization of video services, or a gateway or node common to existing networks. The gateway obtains the requirement of the video service according to the interaction information between the two parties when requesting the hypertext transfer protocol HTTP video service from the terminal. The bandwidth parameter may be as follows:
第一、 该第一请求中可以携带有视频业务对应的视频标识信息。 当该交互 信息包括第一请求时, 该网关根据该第一请求中携带的该视频业务对应的视频 标识信息检测本地緩存中是否存储有该视频业务对应的视频文件; 若检测出本 地緩存中存储有该视频业务对应的视频文件, 则该网关从本地緩存中获取与该 视频文件对应存储的该视频业务的需求带宽参数; 其中, 视频标识信息包括: 视频文件的统一资源定位符 URL和视频文件标识中的一种或两种, 视频文件 标识可以是视频文件 ID ( IDentification, 序列号)。  First, the first request may carry video identification information corresponding to the video service. When the interaction information includes the first request, the gateway detects, according to the video identification information corresponding to the video service carried in the first request, whether a video file corresponding to the video service is stored in the local cache; if the local cache is detected to be stored If there is a video file corresponding to the video service, the gateway obtains a required bandwidth parameter of the video service corresponding to the video file from the local cache. The video identification information includes: a uniform resource locator URL and a video file of the video file. One or both of the identifiers, the video file identifier may be a video file ID (IDentification, serial number).
第二、 当该交互信息包括对第一请求的响应时, 该网关检测该对第一请求 的响应中是否包含有视频特征信息, 该视频特征信息包括: 视频容量信息或视 频码率, 其中, 视频容量信息包括: 视频文件大小和视频播放时长; 若检测出 该对第一请求的响应中包含有视频特征信息, 则该网关将视频文件大小和视频 播放时长的比值作为该视频业务的需求带宽参数, 或者, 将视频码率作为该视 频业务的需求带宽参数。 第三、 该第二请求也可以携带有该视频业务对应的视频标识信息。 当该交 互信息包括第二请求时, 该网关根据该第二请求中携带的视频业务对应的视频 标识信息检测本地緩存中是否存储有该视频业务对应的视频文件; 若检测出本 地緩存中存储有视频业务对应的视频文件, 则该网关从本地緩存中获取与该视 频文件对应存储的该视频业务的需求带宽参数; 其中, 视频标识信息包括: 视 频文件的统一资源定位符 URL和视频文件标识中的一种或两种。 Second, when the interaction information includes a response to the first request, the gateway detects whether the response to the first request includes video feature information, where the video feature information includes: video capacity information or a video code rate, where The video capacity information includes: a video file size and a video playing duration; if it is detected that the response to the first request includes video feature information, the gateway uses the ratio of the video file size and the video playing duration as the required bandwidth of the video service. The parameter, or, the video bit rate is used as the required bandwidth parameter of the video service. Third, the second request may also carry video identification information corresponding to the video service. When the interaction information includes the second request, the gateway detects, according to the video identification information corresponding to the video service carried in the second request, whether a video file corresponding to the video service is stored in the local cache; if it is detected that the local cache is stored The video file corresponding to the video service, the gateway obtains the required bandwidth parameter of the video service corresponding to the video file from the local cache, where the video identification information includes: a uniform resource locator URL and a video file identifier of the video file. One or two.
第四、 该网关可以检测该第二请求中是否包含有视频特征信息, 该视频特 征信息包括: 视频容量信息或视频码率, 其中, 视频容量信息包括: 视频文件 大小和视频播放时长; 若检测出第二请求中包含有视频特征信息, 则该网关将 视频文件大小和视频播放时长的比值作为该视频业务的需求带宽参数, 或者, 将视频码率作为该视频业务的需求带宽参数。  Fourth, the gateway may detect whether the second request includes video feature information, where the video feature information includes: video capacity information or video code rate, where the video capacity information includes: a video file size and a video playing duration; If the second request includes the video feature information, the gateway uses the ratio of the video file size and the video playing duration as the required bandwidth parameter of the video service, or uses the video bit rate as the required bandwidth parameter of the video service.
第五、进一步的,若该网关根据第一请求和 /或第二请求检测出本地緩存中 未存储有该视频业务对应的视频文件, 该网关还可以接收该第二请求对应的视 频文件, 并解析接收到的视频文件, 获取该视频文件的视频特征信息, 该视频 特征信息包括: 视频容量信息或视频码率, 其中, 视频容量信息包括: 视频文 件大小和视频播放时长; 该网关将视频文件大小和视频播放时长的比值作为该 视频业务的需求带宽参数,或者,将视频码率作为该视频业务的需求带宽参数; 最后, 该网关将该需求带宽参数与该视频文件对应存储于本地緩存中。  The fifth, further, if the gateway detects, according to the first request and/or the second request, that the video file corresponding to the video service is not stored in the local cache, the gateway may further receive the video file corresponding to the second request, and Parsing the received video file to obtain video feature information of the video file, where the video feature information includes: video capacity information or video code rate, where the video capacity information includes: a video file size and a video playing duration; the gateway will video files The ratio of the size and the length of the video playing time is used as the required bandwidth parameter of the video service, or the video bit rate is used as the required bandwidth parameter of the video service. Finally, the gateway stores the required bandwidth parameter in the local cache corresponding to the video file. .
需要说明的是, 上述五种获取方法中的每一种都可以单独使用以获取该视 频业务的需求带宽参数, 也可以将其中的多种按照一定的顺序结合使用。  It should be noted that each of the above five acquisition methods may be used separately to obtain the required bandwidth parameter of the video service, or multiple of them may be used in combination in a certain order.
步骤 202, 该网关将获取的该视频业务的需求带宽参数发送给执行功能实 体, 以便该执行功能实体根据该需求带宽参数调整该视频业务的带宽参数; 其中, 该执行功能实体可以是现有的策略及计费执行功能实体。  Step 202: The gateway sends the obtained required bandwidth parameter of the video service to the execution function entity, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter. The execution function entity may be an existing one. Policy and billing execution functional entities.
步骤 203, 该网关将本地緩存的该视频业务对应的视频文件转发给终端, 并检测该视频文件是否转发完成;  Step 203: The gateway forwards the video file corresponding to the video service that is locally cached to the terminal, and detects whether the video file is forwarded.
为了提升视频业务的无线空口效率, 该网关可以将该视频业务对应的视频 文件先緩存到本地, 再将緩存的视频文件转发给终端。  To improve the efficiency of the wireless air interface of the video service, the gateway can cache the video file corresponding to the video service to the local device, and then forward the cached video file to the terminal.
步骤 204, 若检测出该视频文件转发完成, 则该网关向该执行功能实体发 送该视频业务的业务结束信息, 以便该执行功能实体根据该业务结束信息将该 视频业务的带宽参数恢复至调整之前的状态。  Step 204: If it is detected that the video file is forwarded, the gateway sends the service end information of the video service to the execution function entity, so that the execution function entity restores the bandwidth parameter of the video service to the adjustment according to the service end information. status.
当该视频业务结束时, 该网关可以向执行功能实体发送该视频业务的业务 结束信息, 以便该执行功能实体将该视频业务的带宽参数恢复至调整之前的状 态, 以达到节约网络带宽资源的目的。 When the video service ends, the gateway may send the service of the video service to the execution function entity. Ending the information, so that the execution function entity restores the bandwidth parameter of the video service to the state before the adjustment, so as to save network bandwidth resources.
综上所述, 本发明实施例提供的带宽参数调整方法, 通过根据终端向服务 器请求超文本传输协议 HTTP视频业务时两者之间的交互信息获取该视频业务 的需求带宽参数, 并将该需求带宽参数发送给执行功能实体, 以便该执行功能 实体根据需求带宽参数调整该视频业务的带宽参数, 解决了现有技术中无法根 据不同视频业务灵活调整带宽的问题, 达到了优化网络性能的目的; 另外, 本 发明实施例提供的带宽参数调整方法, 还在该视频业务结束时, 向该执行功能 实体发送该视频业务的业务结束信息, 以便该执行功能实体根据该业务结束信 息将该视频业务的带宽参数恢复至调整之前的状态, 解决了该视频业务结束后 网络带宽资源浪费的问题, 达到了节约网络带宽资源的目的。 为了对上述图 2对应的带宽参数调整方法中的视频业务的需求带宽参数的 获取过程做进一步描述, 请参见图 3, 其示出了本发明一个实施例提供的带宽 参数调整方法的方法流程图。 以将图 2对应实施例中的五种获取方法按照一定 的先后顺序结合使用来获取需求带宽参数为例, 本发明实施例提供的带宽参数 调整方法可以包括:  In summary, the bandwidth parameter adjustment method provided by the embodiment of the present invention obtains the required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transmission protocol HTTP video service from the server, and the requirement is obtained. The bandwidth parameter is sent to the execution function entity, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter, and solves the problem that the bandwidth cannot be flexibly adjusted according to different video services in the prior art, and the network performance is optimized. In addition, the bandwidth parameter adjustment method provided by the embodiment of the present invention, when the video service ends, sends the service end information of the video service to the execution function entity, so that the execution function entity sends the video service according to the service end information. The bandwidth parameter is restored to the state before the adjustment, which solves the problem of waste of network bandwidth resources after the end of the video service, and achieves the purpose of saving network bandwidth resources. For further description of the process of acquiring the required bandwidth parameter of the video service in the bandwidth parameter adjustment method corresponding to FIG. 2, refer to FIG. 3, which is a flowchart of a method for adjusting a bandwidth parameter according to an embodiment of the present invention. . For example, the method for adjusting the bandwidth parameter provided by the embodiment of the present invention may include:
步骤 301 , 网关根据终端向服务器请求该视频业务所对应页面或者分片信 息时发送的第一请求检测本地緩存中是否存储有该视频业务对应的视频文件; 具体的, 终端向服务器请求视频业务是具体过程可以如下: 终端向服务器 发送请求该视频业务所对应页面或者分片信息时发送的第一请求, 该服务器向 该终端返回对该第一请求的响应, 终端接收到该对该第一请求的响应后, 向服 务器发送请求该视频业务所对应的视频文件的第二请求,服务器接收到该第二 请求后, 向该终端返回该视频业务对应的视频文件。  Step 301: The gateway detects, according to the first request that the terminal sends the page or the fragmentation information corresponding to the video service, whether the video file corresponding to the video service is stored in the local cache. Specifically, the terminal requests the video service from the server. The specific process may be as follows: The terminal sends a first request sent to the server when requesting the page or fragment information corresponding to the video service, and the server returns a response to the first request to the terminal, where the terminal receives the first request. After the response, the server sends a second request for the video file corresponding to the video service, and after receiving the second request, the server returns the video file corresponding to the video service to the terminal.
该第一请求中可以携带有该视频业务对应的视频标识信息。该网关根据该 第一请求中携带的该视频业务对应的视频标识信息检测本地緩存中是否存储 有该视频业务对应的视频文件; 其中, 视频标识信息包括: 视频文件的统一资 源定位符 URL和视频文件标识中的一种或两种。  The first request may carry video identification information corresponding to the video service. The gateway detects, according to the video identification information corresponding to the video service carried in the first request, whether a video file corresponding to the video service is stored in the local cache. The video identification information includes: a uniform resource locator URL and a video of the video file. One or both of the file identifiers.
步骤 302, 若根据该第一请求检测出本地緩存中存储有该视频业务对应的 视频文件, 则该网关从本地緩存中获取与该视频文件对应存储的该视频业务的 需求带宽参数; 其中, 当本地緩存中存储有该视频业务对应的视频文件时, 网关还会对应 存储该视频业务的需求带宽参数, 具体请见步骤 309和 310。 Step 302: If it is detected, according to the first request, that the video file corresponding to the video service is stored in the local cache, the gateway obtains a required bandwidth parameter of the video service corresponding to the video file from the local cache. The gateway also stores the required bandwidth parameter of the video service when the video file corresponding to the video service is stored in the local cache. For details, see steps 309 and 310.
步骤 303 , 若根据该第一请求检测出本地緩存中未存储有该视频业务对应 的视频文件, 则该网关检测服务器返回的对该第一请求的响应中是否包含有视 频特征信息;  Step 303: If it is detected, according to the first request, that the video file corresponding to the video service is not stored in the local cache, the gateway detecting whether the response to the first request returned by the server includes the video feature information;
其中, 该视频特征信息包括: 视频容量信息或视频码率, 其中, 视频容量 信息包括: 视频文件大小和视频播放时长;  The video feature information includes: a video capacity information or a video code rate, where the video capacity information includes: a video file size and a video playing duration;
步骤 304 , 若检测出该对第一请求的响应中包含有视频特征信息, 则该网 关根据该视频特征信息获取该视频业务的需求带宽参数;  Step 304: If it is detected that the response to the first request includes video feature information, the gateway acquires a required bandwidth parameter of the video service according to the video feature information.
具体的, 该网关可以将视频文件大小和视频播放时长的比值作为该视频业 务的需求带宽参数, 或者, 将视频码率作为该视频业务的需求带宽参数。  Specifically, the gateway may use the ratio of the video file size and the video playing duration as the required bandwidth parameter of the video service, or use the video bit rate as the required bandwidth parameter of the video service.
步骤 305 , 若检测出该对第一请求的响应中不包含有视频特征信息, 则该 网关可以根据该第二请求中携带的该视频业务对应的视频标识信息检测本地 緩存中是否存储有该视频业务对应的视频文件;  Step 305: If it is detected that the response to the first request does not include the video feature information, the gateway may detect, according to the video identification information corresponding to the video service carried in the second request, whether the video is stored in the local cache. Video file corresponding to the business;
其中, 视频标识信息包括: 视频文件的统一资源定位符 URL和视频文件 标识中的一种或两种。 该网关可以根据视频文件的统一资源定位符 URL和视 频文件标识中的一种或两种来检测本地緩存中是否存储有该视频业务对应的 视频文件。  The video identification information includes: one or two of a uniform resource locator URL and a video file identifier of the video file. The gateway may detect, according to one or both of the uniform resource locator URL and the video file identifier of the video file, whether the video file corresponding to the video service is stored in the local cache.
步骤 306, 若检测出本地緩存中存储有视频业务对应的视频文件, 则该网 关从本地緩存中获取与视频文件对应存储的视频业务的需求带宽参数;  Step 306: If it is detected that the video file corresponding to the video service is stored in the local cache, the gateway obtains a required bandwidth parameter of the video service corresponding to the video file from the local cache.
其中, 当本地緩存中存储有该视频业务对应的视频文件时, 网关还会对应 存储该视频业务的需求带宽参数, 具体请见步骤 309和 310。  The gateway also stores the required bandwidth parameter of the video service when the video file corresponding to the video service is stored in the local cache. For details, see steps 309 and 310.
步骤 307, 若检测出本地緩存中未存储有视频业务对应的视频文件, 则该 网关检测该第二请求中是否包含有视频特征信息;  Step 307: If it is detected that the video file corresponding to the video service is not stored in the local cache, the gateway detects whether the second request includes the video feature information.
其中, 该视频特征信息包括: 视频容量信息或视频码率, 其中, 视频容量 信息包括: 视频文件大小和视频播放时长。  The video feature information includes: a video capacity information or a video bit rate, where the video capacity information includes: a video file size and a video playing duration.
步骤 308, 若检测出该第二请求中包含有视频特征信息, 则该网关根据该 视频特征信息获取该视频业务的需求带宽参数;  Step 308: If it is detected that the second request includes video feature information, the gateway acquires a required bandwidth parameter of the video service according to the video feature information.
具体的, 该网关可以将视频文件大小和视频播放时长的比值作为该视频业 务的需求带宽参数, 或者, 将视频码率作为该视频业务的需求带宽参数。  Specifically, the gateway may use the ratio of the video file size and the video playing duration as the required bandwidth parameter of the video service, or use the video bit rate as the required bandwidth parameter of the video service.
步骤 309, 若该网关根据该第二请求检测出本地緩存中未存储有视频业务 对应的视频文件, 则该网关还可以接收该第二请求对应的视频文件; 步骤 310, 该网关解析接收到的视频文件, 获取该视频文件的视频特征信 息, 根据该视频特征信息获取该视频业务的需求带宽参数, 并将该需求带宽参 数与该视频文件对应存储于本地緩存中; Step 309, if the gateway detects, according to the second request, that the video service is not stored in the local cache. And corresponding to the video file, the gateway may further receive the video file corresponding to the second request. Step 310, the gateway parses the received video file, obtains video feature information of the video file, and acquires the video service according to the video feature information. Demand bandwidth parameter, and storing the required bandwidth parameter in the local cache corresponding to the video file;
具体的, 该视频特征信息包括: 视频容量信息或视频码率, 其中, 视频容 量信息包括: 视频文件大小和视频播放时长; 该网关可以将视频文件大小和视 频播放时长的比值作为该视频业务的需求带宽参数, 或者, 将视频码率作为该 视频业务的需求带宽参数。  Specifically, the video feature information includes: a video capacity information or a video code rate, where the video capacity information includes: a video file size and a video playing duration; the gateway may use a ratio of a video file size and a video playing duration as the video service. The required bandwidth parameter, or the video bit rate is used as the required bandwidth parameter of the video service.
步骤 311 , 该网关将获取的该视频业务的需求带宽参数发送给执行功能实 体, 以便该执行功能实体根据该需求带宽参数调整该视频业务的带宽参数; 其中, 该执行功能实体可以是现有的策略及计费执行功能实体。  Step 311: The gateway sends the obtained required bandwidth parameter of the video service to the execution function entity, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter. The execution function entity may be an existing one. Policy and billing execution functional entities.
步骤 312, 该网关将本地緩存的该视频业务对应的视频文件转发给终端, 并检测该视频文件是否转发完成;  Step 312: The gateway forwards the video file corresponding to the locally cached video service to the terminal, and detects whether the video file is forwarded.
为了提升视频业务的无线空口效率, 该网关可以将该视频业务对应的视频 文件先緩存到本地, 再将緩存的视频文件转发给终端。  To improve the efficiency of the wireless air interface of the video service, the gateway can cache the video file corresponding to the video service to the local device, and then forward the cached video file to the terminal.
步骤 313, 若检测出该视频文件转发完成, 则该网关向该执行功能实体发 送该视频业务的业务结束信息, 以便该执行功能实体根据该业务结束信息将该 视频业务的带宽参数恢复至调整之前的状态。  Step 313, if it is detected that the video file is forwarded, the gateway sends the service end information of the video service to the execution function entity, so that the execution function entity restores the bandwidth parameter of the video service to the adjustment according to the service end information. status.
当该视频业务结束时, 该网关可以向执行功能实体发送该视频业务的业务 结束信息, 以便该执行功能实体将该视频业务的带宽参数恢复至调整之前的状 态, 以达到节约网络带宽资源的目的。  When the video service ends, the gateway may send the service end information of the video service to the execution function entity, so that the execution function entity restores the bandwidth parameter of the video service to the state before the adjustment, so as to save the network bandwidth resource. .
综上所述, 本发明实施例提供的带宽参数调整方法, 通过根据终端向服务 器请求超文本传输协议 HTTP视频业务时两者之间的交互信息获取该视频业务 的需求带宽参数, 并将该需求带宽参数发送给执行功能实体, 以便该执行功能 实体根据需求带宽参数调整该视频业务的带宽参数, 解决了现有技术中无法根 据不同视频业务灵活调整带宽的问题, 达到了优化网络性能的目的; 另外, 本 发明实施例提供的带宽参数调整方法, 还在该视频业务结束时, 向该执行功能 实体发送该视频业务的业务结束信息, 以便该执行功能实体根据该业务结束信 息将该视频业务的带宽参数恢复至调整之前的状态, 解决了该视频业务结束后 网络带宽资源浪费的问题, 达到了节约网络带宽资源的目的。 请参见图 4, 其示出了本发明一个实施例提供的带宽参数调整方法的方法 流程图, 该方法可以应用于在部署于现有网络中的网关或节点上的策略及计费 执行功能实体中对 HTTP视频业务对应的带宽参数进行调整。 该带宽参数调整 方法可以包括: In summary, the bandwidth parameter adjustment method provided by the embodiment of the present invention obtains the required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transmission protocol HTTP video service from the server, and the requirement is obtained. The bandwidth parameter is sent to the execution function entity, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter, and solves the problem that the bandwidth cannot be flexibly adjusted according to different video services in the prior art, and the network performance is optimized. In addition, the bandwidth parameter adjustment method provided by the embodiment of the present invention, when the video service ends, sends the service end information of the video service to the execution function entity, so that the execution function entity sends the video service according to the service end information. The bandwidth parameter is restored to the state before the adjustment, which solves the problem of waste of network bandwidth resources after the end of the video service, and achieves the purpose of saving network bandwidth resources. Referring to FIG. 4, it is a flowchart of a method for adjusting a bandwidth parameter provided by an embodiment of the present invention, where the method can be applied to a policy and charging execution function entity deployed on a gateway or node in an existing network. Adjust the bandwidth parameters corresponding to the HTTP video service. The bandwidth parameter adjustment method may include:
步骤 401 , 接收网关发送的超文本传输协议 HTTP视频业务的需求带宽参 数;  Step 401: Receive a required bandwidth parameter of a hypertext transfer protocol HTTP video service sent by a gateway.
步骤 402, 根据该需求带宽参数确定该视频业务的目标带宽参数; 步骤 403 , 根据确定的该目标带宽参数调整该视频业务的带宽参数。  Step 402: Determine a target bandwidth parameter of the video service according to the required bandwidth parameter. Step 403: Adjust a bandwidth parameter of the video service according to the determined target bandwidth parameter.
综上所述, 本发明实施例提供的带宽参数调整方法, 通过根据网关发送的 视频业务的需求带宽参数确定该视频业务的目标带宽参数, 并根据该目标带宽 参数调整该视频业务的带宽参数, 解决了现有技术中无法根据不同视频业务灵 活调整带宽的问题, 达到了优化网络性能的目的。 为了对上述图 4对应的带宽参数调整方法做更详细的描述, 请参见图 5, 其示出了本发明另一实施例提供的带宽参数调整方法的方法流程图。 该方法可 以应用于在部署于现有网络中的网关或节点上的策略及计费执行功能实体中 对 HTTP视频业务对应的带宽参数进行调整。 该带宽参数调整方法可以包括: 步骤 501 , 执行功能实体接收网关发送的超文本传输协议 HTTP视频业务 的需求带宽参数;  In summary, the bandwidth parameter adjustment method provided by the embodiment of the present invention determines the target bandwidth parameter of the video service according to the required bandwidth parameter of the video service sent by the gateway, and adjusts the bandwidth parameter of the video service according to the target bandwidth parameter. The invention solves the problem that the bandwidth cannot be flexibly adjusted according to different video services in the prior art, and achieves the purpose of optimizing network performance. For a more detailed description of the bandwidth parameter adjustment method corresponding to FIG. 4, please refer to FIG. 5, which is a flowchart of a method for adjusting a bandwidth parameter according to another embodiment of the present invention. The method can be applied to adjust the bandwidth parameters corresponding to the HTTP video service in the policy and charging execution function entity deployed on the gateway or node in the existing network. The bandwidth parameter adjustment method may include: Step 501: The function entity receives a required bandwidth parameter of a hypertext transfer protocol HTTP video service sent by a gateway;
策略及计费执行功能实体接收网关发送的终端请求的 HTTP视频业务的需 求带宽参数。 其中, 该视频优化网关可以是某一专用的视频优化网关, 也可以 是现有网络中的某一网关或节点, 比如 3G 网络中的 GGSN ( Gateway GPRS Support Node, 网关 GPRS支持节点)或 PGW ( Packet Gateway, 分组网关), 或者 LTE网络中 PDN-GW ( Packet Data Network Gateway, 分组数据网关)。  The policy and charging execution function entity receives the required bandwidth parameter of the HTTP video service requested by the terminal sent by the gateway. The video optimization gateway may be a dedicated video optimization gateway, or may be a certain gateway or node in the existing network, such as a GGSN (Gateway GPRS Support Node) or a PGW in the 3G network ( Packet Gateway, Packet Gateway, or PDN-GW (Packet Data Network Gateway) in the LTE network.
步骤 502, 执行功能实体根据接收到的需求带宽参数确定该视频业务的目 标带宽参数;  Step 502: The performing functional entity determines a target bandwidth parameter of the video service according to the received required bandwidth parameter.
具体的, 策略及计费执行功能实体可以根据需求带宽参数, 结合预定策略 确定视频业务的目标带宽参数;  Specifically, the policy and charging execution function entity may determine a target bandwidth parameter of the video service according to the required bandwidth parameter and the predetermined policy;
或者,  Or,
策略及计费执行功能实体也可以将需求带宽参数转发给策略及计费规则 功能实体, 以便该策略及计费规则功能实体根据该需求带宽参数, 结合预定策 略确定视频业务的目标带宽参数, 并接收该策略及计费规则功能实体返回的视 频业务的目标带宽参数; The policy and charging execution function entity may also forward the required bandwidth parameter to the policy and charging rule function entity, so that the policy and charging rule function entity combines the predetermined policy according to the required bandwidth parameter. Slightly determining a target bandwidth parameter of the video service, and receiving a target bandwidth parameter of the video service returned by the policy and the charging rule function entity;
其中, 该预定策略可以包括:  The predetermined policy may include:
将需求带宽参数与本地存储的用户签约带宽参数进行比较,将其中数值较 小的一个做为目标带宽参数;  Comparing the required bandwidth parameter with the locally stored user subscription bandwidth parameter, and using one of the smaller values as the target bandwidth parameter;
或者, 将需求带宽参数与本地存储的业务支持带宽参数进行比较, 将其中 数值较小的一个做为目标带宽参数;  Or comparing the required bandwidth parameter with the locally stored service support bandwidth parameter, and using one of the smaller values as the target bandwidth parameter;
或者, 将需求带宽参数与本地存储的用户签约带宽参数和业务支持带宽参 数中的最大值进行比较, 将其中数值较小的一个做为目标带宽参数;  Or comparing the required bandwidth parameter with a maximum value of the locally stored user subscription bandwidth parameter and the service support bandwidth parameter, and using the smaller one as the target bandwidth parameter;
或者, 将需求带宽参数与本地存储的用户签约带宽参数和业务支持带宽参 数中的最小值进行比较, 将其中数值较小的一个做为目标带宽参数。  Alternatively, the required bandwidth parameter is compared with the minimum value of the locally stored user subscription bandwidth parameter and the service support bandwidth parameter, and the smaller one is used as the target bandwidth parameter.
步骤 503, 执行功能实体检测该目标带宽参数是否大于本地存储的视频业 务的原有带宽参数;  Step 503: The execution function entity detects whether the target bandwidth parameter is greater than an original bandwidth parameter of the locally stored video service.
具体的, 若该视频业务对应的承载为 GBR ( Guaranteed Bit Rate, 保证比 特速率)承载, 则该视频业务的原有带宽参数为该视频业务对应承载的 GBR 值, 策略及计费执行功能实体检测该目标带宽参数是否大于本地存储的该视频 业务所在承载的 GBR值, 若该目标带宽参数大于该 GBR值, 则需要调整该 GBR值, 否则不调整。  Specifically, if the bearer corresponding to the video service is a GBR (Guest Guaranteed Bit Rate) bearer, the original bandwidth parameter of the video service is the GBR value of the corresponding bearer of the video service, and the policy and the charging execution function entity detect Whether the target bandwidth parameter is greater than the GBR value of the bearer of the locally stored video service. If the target bandwidth parameter is greater than the GBR value, the GBR value needs to be adjusted, otherwise it is not adjusted.
若该视频业务对应的承载为非 GBR承载, 则该视频业务的原有带宽参数 为该视频业务对应承载的 GBR_mini值, 策略及计费执行功能实体检测该目标 带宽参数是否大于本地存储的该视频业务所在承载的 GBR_mini值, 若该目标 带宽参数大于该 GBR_mini值, 则需要调整该 GBR_mini值, 否则不调整。  If the bearer corresponding to the video service is a non-GBR bearer, the original bandwidth parameter of the video service is the GBR_mini value of the corresponding bearer of the video service, and the policy and charging execution function entity detects whether the target bandwidth parameter is greater than the locally stored video. If the target bandwidth parameter is greater than the GBR_mini value, the GBR_mini value needs to be adjusted. Otherwise, the GBR_mini value is not adjusted.
步骤 504, 若目标带宽参数大于本地存储的视频业务的原有带宽参数, 则 执行功能实体向带宽控制节点发送带宽调整请求, 带宽调整请求中包含有目标 带宽参数, 以便带宽控制节点将视频业务的当前带宽参数由原有带宽参数调整 为目标带宽参数;  Step 504: If the target bandwidth parameter is greater than the original bandwidth parameter of the locally stored video service, the execution function entity sends a bandwidth adjustment request to the bandwidth control node, where the bandwidth adjustment request includes the target bandwidth parameter, so that the bandwidth control node sends the video service. The current bandwidth parameter is adjusted from the original bandwidth parameter to the target bandwidth parameter;
若该目标带宽参数大于该视频业务所在承载的 GBR值或 GBR_mini值, 则执行功能实体向带宽控制节点发送携带有该目标带宽参数的带宽调整请求, 以便该带宽控制节点将该视频业务所在承载的 GBR值或 GBR_mini值重新设 置为该目标带宽参数的数值。  If the target bandwidth parameter is greater than the GBR value or the GBR_mini value of the bearer of the video service, the performing function entity sends a bandwidth adjustment request carrying the target bandwidth parameter to the bandwidth control node, so that the bandwidth control node carries the video service. The GBR value or the GBR_mini value is reset to the value of the target bandwidth parameter.
其中, 带宽控制节点可以是 3G网络中的 SGSN ( Serving GPRS SUPPORT NODE, GPRS服务支持节点)或 MME ( Mobility Management Entity, 移动管 理实体 ),或者,该带宽控制节点可以是 LTE网络中的 S-GW( Signaling Gateway, 信令网关)。 The bandwidth control node may be an SGSN in a 3G network (Serving GPRS SUPPORT) The NODE, the GPRS service support node, or the MME (Mobility Management Entity), or the bandwidth control node may be an S-GW (Signaling Gateway) in the LTE network.
步骤 505, 执行功能实体接收网关发送的该视频业务的业务结束信息, 并 向带宽控制节点发送带宽恢复请求, 带宽恢复请求中包含有视频业务的原有带 宽信息, 以便带宽控制节点将视频业务的当前带宽参数恢复至原有带宽参数。  Step 505: The function entity receives the service end information of the video service sent by the gateway, and sends a bandwidth recovery request to the bandwidth control node, where the bandwidth recovery request includes the original bandwidth information of the video service, so that the bandwidth control node sends the video service. The current bandwidth parameter is restored to the original bandwidth parameter.
具体的,执行功能实体向带宽控制节点发送携带有该目标带宽参数的带宽 调整请求时, 可以在本地将该视频业务的带宽调整标识设置为已调整, 同时保 存该视频业务所在承载原有的 GBR值或 GBR_mini值, 当执行功能实体接收 到网关发送的一个视频业务的业务结束信息时, 首先检查该视频业务的带宽调 整标识是否设置为已调整, 若是, 则向带宽控制节点发送携带有该视频业务所 在承载原有的 GBR值或 GBR_mini值的带宽恢复请求, 以便该带宽控制节点 将视频业务所在承载的当前 GBR值或 GBR_mini值恢复至原有的 GBR值或 GBR—mini值。  Specifically, when the execution function entity sends the bandwidth adjustment request carrying the target bandwidth parameter to the bandwidth control node, the bandwidth adjustment identifier of the video service may be set to be adjusted locally, and the original GBR of the video service is saved. The value or the GBR_mini value, when the execution function entity receives the service end information of a video service sent by the gateway, first checks whether the bandwidth adjustment identifier of the video service is set to be adjusted, and if yes, sends the video to the bandwidth control node. The bandwidth recovery request of the GBR value or the GBR_mini value is carried in the service, so that the bandwidth control node restores the current GBR value or the GBR_mini value of the video service to the original GBR value or GBR_mini value.
综上所述, 本发明实施例提供的带宽参数调整方法, 通过根据网关发送的 视频业务的需求带宽参数确定该视频业务的目标带宽参数, 并根据该目标带宽 参数调整该视频业务的带宽参数, 解决了现有技术中无法根据不同视频业务灵 活调整带宽的问题, 达到了优化网络性能的目的; 另外, 本发明实施例提供的 带宽参数调整方法, 还在该视频业务结束时, 将该视频业务的带宽参数恢复至 调整之前的状态, 解决了该视频业务结束后网络带宽资源浪费的问题, 达到了 节约网络带宽资源的目的。 对应于图 1所示的带宽参数调整方法, 请参见图 6, 其示出了本发明一个 实施例提供的网关的结构示意图, 该网关可以包括:  In summary, the bandwidth parameter adjustment method provided by the embodiment of the present invention determines the target bandwidth parameter of the video service according to the required bandwidth parameter of the video service sent by the gateway, and adjusts the bandwidth parameter of the video service according to the target bandwidth parameter. The problem that the bandwidth cannot be flexibly adjusted according to different video services in the prior art is solved, and the network performance is optimized. In addition, the bandwidth parameter adjustment method provided by the embodiment of the present invention, when the video service ends, the video service is The bandwidth parameter is restored to the state before the adjustment, which solves the problem of waste of network bandwidth resources after the end of the video service, and achieves the purpose of saving network bandwidth resources. Corresponding to the bandwidth parameter adjustment method shown in FIG. 1, FIG. 6 is a schematic structural diagram of a gateway according to an embodiment of the present invention. The gateway may include:
参数获取模块 601 , 用于根据终端向服务器请求超文本传输协议 HTTP视 频业务时两者之间的交互信息获取视频业务的需求带宽参数;  The parameter obtaining module 601 is configured to acquire a required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the Hypertext Transfer Protocol (HTTP) video service from the server;
第一发送模块 602, 用于将参数获取模块 601获取的该视频业务的需求带 宽参数发送给执行功能实体, 以便该执行功能实体根据需求带宽参数调整视频 业务的带宽参数;  The first sending module 602 is configured to send the required bandwidth parameter of the video service obtained by the parameter obtaining module 601 to the execution function entity, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter;
其中, 该交互信息包括: 终端向服务器请求视频业务所对应页面或者分片 信息时发送的第一请求、 服务器向终端发送的对第一请求的响应、 终端接收到 第一请求的响应之后向服务器请求视频业务所对应的视频文件时发送的第二 请求中的任一种或者多种。 The interaction information includes: a first request sent by the terminal to the server for requesting a page or fragment information corresponding to the video service, and a response of the server to the first request sent by the server, and the terminal receives the The response to the first request is followed by any one or more of the second requests sent when the video file corresponding to the video service is requested from the server.
综上所述, 本发明实施例提供的网关, 通过根据终端向服务器请求超文本 传输协议 HTTP视频业务时两者之间的交互信息获取该视频业务的需求带宽参 数, 并将该需求带宽参数发送给执行功能实体, 以便该执行功能实体根据需求 带宽参数调整该视频业务的带宽参数,解决了现有技术中无法根据不同视频业 务灵活调整带宽的问题, 达到了优化网络性能的目的。 为了对上述图 6对应的网关做进一步描述, 请参见图 7, 其示出了本发明 另一实施例提供的网关的结构示意图, 该网关可以包括:  In summary, the gateway provided by the embodiment of the present invention obtains the required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transfer protocol HTTP video service from the server, and sends the required bandwidth parameter. The function entity is executed, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter, and solves the problem that the bandwidth cannot be flexibly adjusted according to different video services in the prior art, and the network performance is optimized. In order to further describe the gateway corresponding to the foregoing FIG. 6, FIG. 7 is a schematic structural diagram of a gateway according to another embodiment of the present invention. The gateway may include:
参数获取模块 701 , 用于根据终端向服务器请求超文本传输协议 HTTP视 频业务时两者之间的交互信息获取视频业务的需求带宽参数;  The parameter obtaining module 701 is configured to acquire a required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the Hypertext Transfer Protocol (HTTP) video service from the server;
第一发送模块 702, 用于将参数获取模块 701获取的该视频业务的需求带 宽参数发送给执行功能实体, 以便该执行功能实体根据需求带宽参数调整视频 业务的带宽参数;  The first sending module 702 is configured to send the required bandwidth parameter of the video service obtained by the parameter obtaining module 701 to the execution function entity, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter;
其中, 该交互信息包括: 终端向服务器请求视频业务所对应页面或者分片 信息时发送的第一请求、 服务器向终端发送的对第一请求的响应、 终端接收到 第一请求的响应之后向服务器请求视频业务所对应的视频文件时发送的第二 请求中的任一种或者多种。  The interaction information includes: a first request sent by the terminal to the server for requesting a page or fragment information corresponding to the video service, a response sent by the server to the terminal to the first request, and a response of the terminal to the first request to the server Any one or more of the second requests sent when the video file corresponding to the video service is requested.
其中, 参数获取模块 701包括:  The parameter obtaining module 701 includes:
第一检测单元 701a,用于根据该第一请求中携带的该视频业务对应的视频 标识信息检测本地緩存中是否存储有该视频业务对应的视频文件;  The first detecting unit 701a is configured to detect, according to the video identification information corresponding to the video service carried in the first request, whether a video file corresponding to the video service is stored in the local cache.
第一获取单元 701b, 用于若第一检测单元 701a检测出本地緩存中存储有 该视频业务对应的视频文件, 则从本地緩存中获取与该视频文件对应存储的该 视频业务的需求带宽参数;  The first obtaining unit 701b is configured to: if the first detecting unit 701a detects that the video file corresponding to the video service is stored in the local cache, obtain a required bandwidth parameter of the video service corresponding to the video file from the local cache;
其中, 视频标识信息包括: 视频文件的统一资源定位符 URL和视频文件 标识中的一种或两种。  The video identification information includes: one or two of a uniform resource locator URL and a video file identifier of the video file.
参数获取模块 701还包括:  The parameter acquisition module 701 further includes:
第二检测单元 701c,用于检测该对第一请求的响应中是否包含有视频特征 信息,该视频特征信息包括:视频容量信息或视频码率,该视频容量信息包括: 视频文件大小和视频播放时长; 第二获取单元 701d, 用于若第二检测单元 701c检测出该对第一请求的响 应中包含有视频特征信息, 则将视频文件大小和视频播放时长的比值作为该视 频业务的需求带宽参数, 或者, 将视频码率作为该视频业务的需求带宽参数。 The second detecting unit 701c is configured to detect whether the response to the first request includes video feature information, where the video feature information includes: video capacity information or a video code rate, where the video capacity information includes: a video file size and a video playback duration; The second obtaining unit 701d is configured to: if the second detecting unit 701c detects that the response to the first request includes video feature information, use a ratio of a video file size and a video playing duration as a required bandwidth parameter of the video service, Or, the video bit rate is used as the required bandwidth parameter of the video service.
参数获取模块 701包括:  The parameter acquisition module 701 includes:
第三检测单元 701e,用于根据该第二请求中携带的视频业务对应的视频标 识信息检测本地緩存中是否存储有该视频业务对应的视频文件;  The third detecting unit 701e is configured to detect, according to the video identification information corresponding to the video service carried in the second request, whether a video file corresponding to the video service is stored in the local cache.
第三获取单元 701f, 用于若第三检测单元 701e检测出本地緩存中存储有 视频业务对应的视频文件, 则从本地緩存中获取与该视频文件对应存储的该视 频业务的需求带宽参数;  The third obtaining unit 701f is configured to: if the third detecting unit 701e detects that the video file corresponding to the video service is stored in the local cache, obtain a required bandwidth parameter of the video service corresponding to the video file from the local cache;
其中, 视频标识信息包括: 视频文件的统一资源定位符 URL和视频文件 标识中的一种或两种;  The video identification information includes: one or two of a uniform resource locator URL and a video file identifier of the video file;
参数获取模块 701还包括:  The parameter acquisition module 701 further includes:
第四检测单元 701g,用于检测该第二请求中是否包含有视频特征信息,该 视频特征信息包括: 视频容量信息或视频码率, 该视频容量信息包括: 视频文 件大小和视频播放时长;  The fourth detecting unit 701g is configured to detect whether the second feature includes video feature information, where the video feature information includes: video capacity information or a video code rate, where the video capacity information includes: a video file size and a video playing duration;
第四获取单元 701h, 用于若第四检测单元 701g检测出该第二请求中包含 有视频特征信息, 则将视频文件大小和视频播放时长的比值作为该视频业务的 需求带宽参数, 或者, 将视频码率作为该视频业务的需求带宽参数。  The fourth obtaining unit 701h is configured to: if the fourth detecting unit 701g detects that the second request includes the video feature information, the ratio of the video file size and the video playing duration is used as the required bandwidth parameter of the video service, or The video bit rate is used as the demand bandwidth parameter of the video service.
该网关还包括:  The gateway also includes:
接收模块 703 ,用于若第一检测单元 701a检测出本地緩存中未存储有视频 业务对应的视频文件, 且第三检测单元 701e检测出本地緩存中未存储有视频 业务对应的视频文件, 则接收第二请求对应的视频文件;  The receiving module 703 is configured to: if the first detecting unit 701a detects that the video file corresponding to the video service is not stored in the local cache, and the third detecting unit 701e detects that the video file corresponding to the video service is not stored in the local cache, the receiving module 701 a video file corresponding to the second request;
参数获取模块 701还包括:  The parameter acquisition module 701 further includes:
解析单元 701i, 用于解析接收到的视频文件, 获取视频文件的视频特征信 息, 视频特征信息包括: 视频容量信息或视频码率, 视频容量信息包括: 视频 文件大小和视频播放时长;  The parsing unit 701i is configured to parse the received video file, and obtain video feature information of the video file. The video feature information includes: video capacity information or a video bit rate, where the video capacity information includes: a video file size and a video playing duration;
第五获取单元 701j ,用于将解析单元 701i获取的视频文件大小和视频播放 时长的比值作为该视频业务的需求带宽参数,或者,将解析单元 701i获取的视 频码率作为该视频业务的需求带宽参数;  The fifth obtaining unit 701j is configured to use the ratio of the video file size and the video playing duration obtained by the parsing unit 701i as the required bandwidth parameter of the video service, or use the video bit rate obtained by the parsing unit 701i as the required bandwidth of the video service. Parameter
存储单元 701k, 用于将第五获取单元 701j获取的需求带宽参数与接收模 块 703接收到的视频文件对应存储于本地緩存中。 该网关还包括: The storage unit 701k is configured to store the required bandwidth parameter acquired by the fifth obtaining unit 701j and the video file received by the receiving module 703 in a local cache. The gateway also includes:
第二发送模块 704, 用于在第一发送模块 702将参数获取模块 701获取的 视频业务的需求带宽参数发送给执行功能实体之后, 将本地緩存的视频文件转 发给终端;  The second sending module 704 is configured to: after the first sending module 702 sends the required bandwidth parameter of the video service acquired by the parameter obtaining module 701 to the executing function entity, forward the locally cached video file to the terminal;
检测模块 705 , 用于检测视频文件是否转发完成;  a detecting module 705, configured to detect whether the video file is forwarded;
第三发送模块 706, 用于若检测模块 705检测出视频文件转发完成, 则向 执行功能实体发送视频业务的业务结束信息, 以便该执行功能实体根据业务结 束信息将该视频业务的带宽参数恢复至调整之前的状态。  The third sending module 706 is configured to: if the detecting module 705 detects that the video file is forwarded, send the service end information of the video service to the executing function entity, so that the executing function entity restores the bandwidth parameter of the video service according to the service ending information to Adjust the previous state.
综上所述, 本发明实施例提供的网关, 通过根据终端向服务器请求超文本 传输协议 HTTP视频业务时两者之间的交互信息获取该视频业务的需求带宽参 数, 并将该需求带宽参数发送给执行功能实体, 以便该执行功能实体根据需求 带宽参数调整该视频业务的带宽参数,解决了现有技术中无法根据不同视频业 务灵活调整带宽的问题, 达到了优化网络性能的目的; 另外, 本发明实施例提 供的网关, 还在该视频业务结束时, 向该执行功能实体发送该视频业务的业务 结束信息, 以便该执行功能实体根据该业务结束信息将该视频业务的带宽参数 恢复至调整之前的状态, 解决了该视频业务结束后网络带宽资源浪费的问题, 达到了节约网络带宽资源的目的。 对应于图 1所示的带宽参数调整方法, 请参见图 8, 其示出了本发明一个 实施例提供的网关的结构示意图,该网关可以包括: 处理器 801和发射机 802; 处理器 801 , 用于根据终端向服务器请求超文本传输协议 HTTP视频业务 时两者之间的交互信息获取视频业务的需求带宽参数;  In summary, the gateway provided by the embodiment of the present invention obtains the required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transfer protocol HTTP video service from the server, and sends the required bandwidth parameter. The function entity is executed, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter, and solves the problem that the bandwidth cannot be flexibly adjusted according to different video services in the prior art, thereby achieving the purpose of optimizing network performance; The gateway provided by the embodiment of the present invention, when the video service ends, sends the service end information of the video service to the execution function entity, so that the execution function entity restores the bandwidth parameter of the video service to the adjustment according to the service end information. The state solves the problem of waste of network bandwidth resources after the end of the video service, and achieves the purpose of saving network bandwidth resources. Corresponding to the bandwidth parameter adjustment method shown in FIG. 1, FIG. 8 is a schematic structural diagram of a gateway according to an embodiment of the present invention. The gateway may include: a processor 801 and a transmitter 802, and a processor 801. The required bandwidth parameter for acquiring a video service according to the interaction information between the two when the terminal requests the hypertext transfer protocol HTTP video service from the server;
处理器 801 , 还用于控制发射机 802将获取的视频业务的需求带宽参数发 送给执行功能实体, 以便执行功能实体根据需求带宽参数调整视频业务的带宽 参数;  The processor 801 is further configured to control the transmitter 802 to send the required bandwidth parameter of the obtained video service to the execution function entity, so that the function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter;
该交互信息包括: 终端向服务器请求视频业务所对应页面或者分片信息时 发送的第一请求、 服务器向终端发送的对第一请求的响应、 终端接收到第一请 求的响应之后向服务器请求视频业务所对应的视频文件时发送的第二请求中 的任一种或者多种。  The interaction information includes: a first request sent by the terminal to the server for requesting a page or fragment information corresponding to the video service, a response of the server to the first request sent by the server, and a response of the terminal to the first request, and then requesting a video from the server Any one or more of the second requests sent when the video file corresponding to the service is sent.
综上所述, 本发明实施例提供的网关, 通过根据终端向服务器请求超文本 传输协议 HTTP视频业务时两者之间的交互信息获取该视频业务的需求带宽参 数, 并将该需求带宽参数发送给执行功能实体, 以便该执行功能实体根据需求 带宽参数调整该视频业务的带宽参数,解决了现有技术中无法根据不同视频业 务灵活调整带宽的问题, 达到了优化网络性能的目的。 为了对上述图 8对应的网关做进一步描述, 请参见图 9, 其示出了本发明 另一实施例提供的网关的结构示意图, 该网关可以包括: 处理器 901和发射机 902; In summary, the gateway provided by the embodiment of the present invention obtains the required bandwidth of the video service by using the interaction information between the two when the terminal requests the hypertext transmission protocol HTTP video service from the server. And the required bandwidth parameter is sent to the execution function entity, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter, and solves the problem that the bandwidth cannot be flexibly adjusted according to different video services in the prior art. Optimize network performance for the purpose. For a further description of the gateway corresponding to FIG. 8, FIG. 9 is a schematic structural diagram of a gateway according to another embodiment of the present invention, where the gateway may include: a processor 901 and a transmitter 902;
处理器 901 , 用于根据终端向服务器请求超文本传输协议 HTTP视频业务 时两者之间的交互信息获取视频业务的需求带宽参数;  The processor 901 is configured to acquire a required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transfer protocol HTTP video service from the server;
处理器 901 , 还用于控制发射机 902将获取的视频业务的需求带宽参数发 送给执行功能实体, 以便执行功能实体根据需求带宽参数调整视频业务的带宽 参数;  The processor 901 is further configured to control the transmitter 902 to send the required bandwidth parameter of the obtained video service to the execution function entity, so that the function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter;
该交互信息包括: 终端向服务器请求视频业务所对应页面或者分片信息时 发送的第一请求、 服务器向终端发送的对第一请求的响应、 终端接收到第一请 求的响应之后向服务器请求视频业务所对应的视频文件时发送的第二请求中 的任一种或者多种。  The interaction information includes: a first request sent by the terminal to the server for requesting a page or fragment information corresponding to the video service, a response of the server to the first request sent by the server, and a response of the terminal to the first request, and then requesting a video from the server Any one or more of the second requests sent when the video file corresponding to the service is sent.
处理器 901 , 用于根据第一请求中携带的视频业务对应的视频标识信息检 测本地緩存中是否存储有视频业务对应的视频文件;  The processor 901 is configured to detect, according to the video identification information corresponding to the video service carried in the first request, whether a video file corresponding to the video service is stored in the local cache.
处理器 901 ,还用于若检测出本地緩存中存储有视频业务对应的视频文件, 则从本地緩存中获取与视频文件对应存储的视频业务的需求带宽参数;  The processor 901 is further configured to: if the video file corresponding to the video service is stored in the local cache, obtain a required bandwidth parameter of the video service corresponding to the video file from the local cache;
其中, 视频标识信息包括: 视频文件的统一资源定位符 URL和视频文件 标识中的一种或两种。  The video identification information includes: one or two of a uniform resource locator URL and a video file identifier of the video file.
处理器 901 , 用于检测对第一请求的响应中是否包含有视频特征信息, 视 频特征信息包括: 视频容量信息或视频码率, 视频容量信息包括: 视频文件大 小和视频播放时长;  The processor 901 is configured to detect whether the video feature information is included in the response to the first request, where the video feature information includes: video capacity information or a video code rate, where the video capacity information includes: a video file size and a video playing duration;
处理器 901 , 还用于若检测出对第一请求的响应中包含有视频特征信息, 则将视频文件大 d、和视频播放时长的比值作为视频业务的需求带宽参数, 或 者, 将视频码率作为视频业务的需求带宽参数。  The processor 901 is further configured to: if the video feature information is included in the response to the first request, use a ratio of the video file size d and the video playback duration as a required bandwidth parameter of the video service, or set the video code rate. As a demand bandwidth parameter for video services.
处理器 901 , 用于根据第二请求中携带的视频业务对应的视频标识信息检 测本地緩存中是否存储有视频业务对应的视频文件;  The processor 901 is configured to detect, according to the video identification information corresponding to the video service carried in the second request, whether a video file corresponding to the video service is stored in the local cache.
处理器 901 ,还用于若检测出本地緩存中存储有视频业务对应的视频文件, 则从本地緩存中获取与视频文件对应存储的视频业务的需求带宽参数; 其中, 视频标识信息包括: 视频文件的统一资源定位符 URL和视频文件 标识中的一种或两种; The processor 901 is further configured to: if the video file corresponding to the video service is stored in the local cache, And obtaining, by the local cache, a required bandwidth parameter of the video service corresponding to the video file, where the video identification information includes: one or two of a uniform resource locator URL and a video file identifier of the video file;
处理器 901 , 用于检测第二请求中是否包含有视频特征信息, 视频特征信 息包括: 视频容量信息或视频码率, 视频容量信息包括: 视频文件大小和视频 播放时长;  The processor 901 is configured to detect whether the second feature includes video feature information, where the video feature information includes: a video capacity information or a video bit rate, where the video capacity information includes: a video file size and a video playing duration;
处理器 901 , 还用于若检测出第二请求中包含有视频特征信息, 则将视频 文件大小和视频播放时长的比值作为视频业务的需求带宽参数, 或者, 将视频 码率作为视频业务的需求带宽参数。  The processor 901 is further configured to: if the video feature information is included in the second request, use a ratio of the video file size and the video playing duration as a required bandwidth parameter of the video service, or use the video bit rate as a video service requirement. Bandwidth parameter.
该网关还包括: 接收机 903和存储器 904;  The gateway further includes: a receiver 903 and a memory 904;
接收机 903 , 用于若处理器 901检测出本地緩存中未存储有视频业务对应 的视频文件, 则接收第二请求对应的视频文件;  The receiver 903 is configured to: if the processor 901 detects that the video file corresponding to the video service is not stored in the local cache, receive the video file corresponding to the second request;
处理器 901 ,用于解析接收到的视频文件,获取视频文件的视频特征信息, 视频特征信息包括: 视频容量信息或视频码率, 视频容量信息包括: 视频文件 大小和视频播放时长;  The processor 901 is configured to parse the received video file to obtain video feature information of the video file, where the video feature information includes: a video capacity information or a video bit rate, where the video capacity information includes: a video file size and a video playing duration;
处理器 901 , 还用于将获取的视频文件大小和视频播放时长的比值作为视 频业务的需求带宽参数, 或者, 将解析单元获取的视频码率作为视频业务的需 求带宽参数;  The processor 901 is further configured to use the ratio of the acquired video file size and the video playback duration as the required bandwidth parameter of the video service, or use the video code rate obtained by the parsing unit as the required bandwidth parameter of the video service.
处理器 901 , 还用于将获取的需求带宽参数与接收到的视频文件对应存储 于存储器 904中。  The processor 901 is further configured to store the acquired required bandwidth parameter in the memory 904 corresponding to the received video file.
处理器 901 , 用于在发射机 902将获取的视频业务的需求带宽参数发送给 执行功能实体之后, 控制发射机 902将本地緩存的视频文件转发给终端;  The processor 901 is configured to: after the transmitter 902 sends the required bandwidth parameter of the acquired video service to the execution function entity, control the transmitter 902 to forward the locally cached video file to the terminal;
处理器 902, 用于检测视频文件是否转发完成;  The processor 902 is configured to detect whether the video file is forwarded.
处理器 902, 用于若检测出视频文件转发完成, 则控制发射机 902向执行 功能实体发送视频业务的业务结束信息, 以便执行功能实体根据业务结束信息 将视频业务的带宽参数恢复至调整之前的状态。  The processor 902 is configured to: if it is detected that the video file forwarding is completed, the control transmitter 902 sends the service end information of the video service to the execution function entity, so that the execution function entity restores the bandwidth parameter of the video service to the pre-adjustment according to the service end information. status.
综上所述, 本发明实施例提供的网关, 通过根据终端向服务器请求超文本 传输协议 HTTP视频业务时两者之间的交互信息获取该视频业务的需求带宽参 数, 并将该需求带宽参数发送给执行功能实体, 以便该执行功能实体根据需求 带宽参数调整该视频业务的带宽参数,解决了现有技术中无法根据不同视频业 务灵活调整带宽的问题, 达到了优化网络性能的目的; 另外, 本发明实施例提 供的网关, 还在该视频业务结束时, 向该执行功能实体发送该视频业务的业务 结束信息, 以便该执行功能实体根据该业务结束信息将该视频业务的带宽参数 恢复至调整之前的状态, 解决了该视频业务结束后网络带宽资源浪费的问题, 达到了节约网络带宽资源的目的。 对应于图 4所示的带宽参数调整方法,请参见图 10,其示出了本发明一个 实施例提供的执行功能实体的结构示意图, 该执行功能实体可以包括: In summary, the gateway provided by the embodiment of the present invention obtains the required bandwidth parameter of the video service according to the interaction information between the two when the terminal requests the hypertext transfer protocol HTTP video service from the server, and sends the required bandwidth parameter. The function entity is executed, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter, and solves the problem that the bandwidth cannot be flexibly adjusted according to different video services in the prior art, thereby achieving the purpose of optimizing network performance; Inventive embodiment And providing, by the gateway, the service end information of the video service to the execution function entity, so that the execution function entity restores the bandwidth parameter of the video service to the state before the adjustment according to the service end information, The problem of wasting network bandwidth resources after the end of the video service is solved, and the purpose of saving network bandwidth resources is achieved. Corresponding to the bandwidth parameter adjustment method shown in FIG. 4, please refer to FIG. 10, which is a schematic structural diagram of an execution function entity according to an embodiment of the present invention. The execution function entity may include:
参数接收模块 1001 ,用于接收网关发送的超文本传输协议 HTTP视频业务 的需求带宽参数;  The parameter receiving module 1001 is configured to receive a required bandwidth parameter of the hypertext transfer protocol HTTP video service sent by the gateway;
目标参数确定模块 1002, 用于根据参数接收模块 1001接收到的需求带宽 参数确定视频业务的目标带宽参数;  The target parameter determining module 1002 is configured to determine a target bandwidth parameter of the video service according to the required bandwidth parameter received by the parameter receiving module 1001.
调整模块 1003, 用于根据目标参数确定模块 1002确定的目标带宽参数调 整视频业务的带宽参数。  The adjusting module 1003 is configured to adjust a bandwidth parameter of the video service according to the target bandwidth parameter determined by the target parameter determining module 1002.
综上所述, 本发明实施例提供的执行功能实体, 通过根据网关发送的视频 业务的需求带宽参数确定该视频业务的目标带宽参数, 并根据该目标带宽参数 调整该视频业务的带宽参数,解决了现有技术中无法根据不同视频业务灵活调 整带宽的问题, 达到了优化网络性能的目的。 为了对上述图 10对应的执行功能实体做进一步描述, 请参见图 11 , 其示 出了本发明另一实施例提供的执行功能实体的结构示意图, 该执行功能实体可 以包括:  In summary, the performing functional entity provided by the embodiment of the present invention determines the target bandwidth parameter of the video service according to the required bandwidth parameter of the video service sent by the gateway, and adjusts the bandwidth parameter of the video service according to the target bandwidth parameter to solve the problem. In the prior art, the problem that the bandwidth cannot be flexibly adjusted according to different video services is achieved, and the purpose of optimizing network performance is achieved. For further description of the execution function entity corresponding to FIG. 10, reference is made to FIG. 11 , which is a schematic structural diagram of an execution function entity according to another embodiment of the present invention. The execution function entity may include:
参数接收模块 1101 ,用于接收网关发送的超文本传输协议 HTTP视频业务 的需求带宽参数;  The parameter receiving module 1101 is configured to receive a required bandwidth parameter of the hypertext transfer protocol HTTP video service sent by the gateway;
目标参数确定模块 1102, 用于根据参数接收模块 1101接收到的需求带宽 参数确定视频业务的目标带宽参数;  The target parameter determining module 1102 is configured to determine a target bandwidth parameter of the video service according to the required bandwidth parameter received by the parameter receiving module 1101.
调整模块 1103, 用于根据目标参数确定模块 1102确定的目标带宽参数调 整视频业务的带宽参数。  The adjusting module 1103 is configured to adjust a bandwidth parameter of the video service according to the target bandwidth parameter determined by the target parameter determining module 1102.
目标参数确定模块 1102包括:  The target parameter determination module 1102 includes:
第一确定单元 1102a, 用于根据需求带宽参数, 结合预定策略确定视频业 务的目标带宽参数;  The first determining unit 1102a is configured to determine, according to the required bandwidth parameter, a target bandwidth parameter of the video service according to the predetermined policy;
发送单元 1102b, 用于将需求带宽参数转发给规则功能实体, 以便规则功 能实体根据需求带宽参数, 结合预定策略确定视频业务的目标带宽参数; 接收单元 1102c,用于接收规则功能实体返回的视频业务的目标带宽参数; 其中, 预定策略包括: The sending unit 1102b is configured to forward the required bandwidth parameter to the rule function entity, so that the rule function The energy entity determines the target bandwidth parameter of the video service according to the required bandwidth parameter, and the receiving unit 1102c is configured to receive the target bandwidth parameter of the video service returned by the rule function entity, where the predetermined policy includes:
将需求带宽参数与本地存储的用户签约带宽参数进行比较,将其中数值较 小的一个做为目标带宽参数;  Comparing the required bandwidth parameter with the locally stored user subscription bandwidth parameter, and using one of the smaller values as the target bandwidth parameter;
或者, 将需求带宽参数与本地存储的业务支持带宽参数进行比较, 将其中 数值较小的一个做为目标带宽参数;  Or comparing the required bandwidth parameter with the locally stored service support bandwidth parameter, and using one of the smaller values as the target bandwidth parameter;
或者, 将需求带宽参数与本地存储的用户签约带宽参数和业务支持带宽参 数中的最大值进行比较, 将其中数值较小的一个做为目标带宽参数;  Or comparing the required bandwidth parameter with a maximum value of the locally stored user subscription bandwidth parameter and the service support bandwidth parameter, and using the smaller one as the target bandwidth parameter;
或者, 将需求带宽参数与本地存储的用户签约带宽参数和业务支持带宽参 数中的最小值进行比较, 将其中数值较小的一个做为目标带宽参数。  Alternatively, the required bandwidth parameter is compared with the minimum value of the locally stored user subscription bandwidth parameter and the service support bandwidth parameter, and the smaller one is used as the target bandwidth parameter.
调整模块 1103包括:  The adjustment module 1103 includes:
检测单元 1103a, 用于检测目标参数确定模块确定的目标带宽参数是否大 于本地存储的视频业务的原有带宽参数;  The detecting unit 1103a is configured to detect whether the target bandwidth parameter determined by the target parameter determining module is greater than an original bandwidth parameter of the locally stored video service;
请求单元 1103b, 用于若检测单元 1103a检测出目标带宽参数大于本地存 储的视频业务的原有带宽参数, 则向带宽控制节点发送带宽调整请求, 带宽调 整请求中包含有目标带宽参数, 以便带宽控制节点将视频业务的当前带宽参数 由原有带宽参数调整为目标带宽参数。  The requesting unit 1103b is configured to: if the detecting unit 1103a detects that the target bandwidth parameter is greater than the original bandwidth parameter of the locally stored video service, send a bandwidth adjustment request to the bandwidth control node, where the bandwidth adjustment request includes the target bandwidth parameter, so that the bandwidth control is performed. The node adjusts the current bandwidth parameter of the video service from the original bandwidth parameter to the target bandwidth parameter.
该执行功能实体还包括:  The executive function entity also includes:
结束信息接收模块 1104, 用于接收网关发送的视频业务的业务结束信息; 请求模块 1105 ,用于向带宽控制节点发送带宽恢复请求, 带宽恢复请求中 包含有视频业务的原有带宽信息, 以便带宽控制节点将视频业务的当前带宽参 数恢复至原有带宽参数。  The end information receiving module 1104 is configured to receive service end information of the video service sent by the gateway, and the requesting module 1105 is configured to send a bandwidth recovery request to the bandwidth control node, where the bandwidth recovery request includes the original bandwidth information of the video service, so that the bandwidth is used. The control node restores the current bandwidth parameter of the video service to the original bandwidth parameter.
综上所述, 本发明实施例提供的执行功能实体, 通过根据网关发送的视频 业务的需求带宽参数确定该视频业务的目标带宽参数, 并根据该目标带宽参数 调整该视频业务的带宽参数,解决了现有技术中无法根据不同视频业务灵活调 整带宽的问题, 达到了优化网络性能的目的; 另外, 本发明实施例提供的执行 功能实体, 还在该视频业务结束时, 将该视频业务的带宽参数恢复至调整之前 的状态, 解决了该视频业务结束后网络带宽资源浪费的问题, 达到了节约网络 带宽资源的目的。 对应于图 4所示的带宽参数调整方法,请参见图 12,其示出了本发明一个 实施例提供的执行功能实体的结构示意图, 该执行功能实体可以包括: 接收机 1201和处理器 1202; In summary, the performing functional entity provided by the embodiment of the present invention determines the target bandwidth parameter of the video service according to the required bandwidth parameter of the video service sent by the gateway, and adjusts the bandwidth parameter of the video service according to the target bandwidth parameter to solve the problem. In the prior art, the problem that the bandwidth cannot be flexibly adjusted according to different video services is achieved, and the network performance is optimized. In addition, the execution function entity provided by the embodiment of the present invention also uses the bandwidth of the video service when the video service ends. The parameter is restored to the state before the adjustment, which solves the problem of waste of network bandwidth resources after the end of the video service, and achieves the purpose of saving network bandwidth resources. Corresponding to the bandwidth parameter adjustment method shown in FIG. 4, please refer to FIG. 12, which is a schematic structural diagram of an execution function entity according to an embodiment of the present invention. The execution function entity may include: a receiver 1201 and a processor 1202;
接收机 1201 ,用于接收网关发送的超文本传输协议 HTTP视频业务的需求 带宽参数;  a receiver 1201, configured to receive a required bandwidth parameter of a hypertext transfer protocol HTTP video service sent by a gateway;
处理器 1202, 用于根据接收机 1201接收到的需求带宽参数确定视频业务 的目标带宽参数;  The processor 1202 is configured to determine a target bandwidth parameter of the video service according to the required bandwidth parameter received by the receiver 1201.
处理器 1202, 用于根据确定的目标带宽参数调整视频业务的带宽参数。 综上所述, 本发明实施例提供的执行功能实体, 通过根据网关发送的视频 业务的需求带宽参数确定该视频业务的目标带宽参数, 并根据该目标带宽参数 调整该视频业务的带宽参数,解决了现有技术中无法根据不同视频业务灵活调 整带宽的问题, 达到了优化网络性能的目的。 为了对上述图 12对应的执行功能实体做进一步描述, 请参见图 13 , 其示 出了本发明另一实施例提供的执行功能实体的结构示意图, 该执行功能实体可 以包括: 接收机 1301和处理器 1302;  The processor 1202 is configured to adjust a bandwidth parameter of the video service according to the determined target bandwidth parameter. In summary, the performing functional entity provided by the embodiment of the present invention determines the target bandwidth parameter of the video service according to the required bandwidth parameter of the video service sent by the gateway, and adjusts the bandwidth parameter of the video service according to the target bandwidth parameter to solve the problem. In the prior art, the problem that the bandwidth cannot be flexibly adjusted according to different video services is achieved, and the purpose of optimizing network performance is achieved. For further description of the execution function entity corresponding to FIG. 12, reference is made to FIG. 13 , which is a schematic structural diagram of an execution function entity according to another embodiment of the present invention. The execution function entity may include: a receiver 1301 and processing. 1302;
接收机 1301 ,用于接收网关发送的超文本传输协议 HTTP视频业务的需求 带宽参数;  a receiver 1301, configured to receive a required bandwidth parameter of a hypertext transfer protocol HTTP video service sent by a gateway;
处理器 1302, 用于根据接收机 1301接收到的需求带宽参数确定视频业务 的目标带宽参数;  The processor 1302 is configured to determine a target bandwidth parameter of the video service according to the required bandwidth parameter received by the receiver 1301.
处理器 1302, 用于根据确定的目标带宽参数调整视频业务的带宽参数。 该执行功能实体还包括: 发射机 1303;  The processor 1302 is configured to adjust a bandwidth parameter of the video service according to the determined target bandwidth parameter. The executive function entity further includes: a transmitter 1303;
处理器 1302,用于根据需求带宽参数, 结合预定策略确定视频业务的目标 带宽参数;  The processor 1302 is configured to determine, according to the required bandwidth parameter, a target bandwidth parameter of the video service according to a predetermined policy;
处理器 1302, 还用于控制发射机 1303将需求带宽参数转发给规则功能实 体, 以便规则功能实体根据需求带宽参数, 结合预定策略确定视频业务的目标 带宽参数;  The processor 1302 is further configured to control the transmitter 1303 to forward the required bandwidth parameter to the rule function entity, so that the rule function entity determines the target bandwidth parameter of the video service according to the required bandwidth parameter and the predetermined policy;
接收机 1301 , 用于接收规则功能实体返回的视频业务的目标带宽参数; 其中, 预定策略包括:  The receiver 1301 is configured to receive a target bandwidth parameter of the video service returned by the rule function entity, where the predetermined policy includes:
将需求带宽参数与本地存储的用户签约带宽参数进行比较,将其中数值较 小的一个做为目标带宽参数; 或者, 将需求带宽参数与本地存储的业务支持带宽参数进行比较, 将其中 数值较小的一个做为目标带宽参数; Comparing the required bandwidth parameter with the locally stored user subscription bandwidth parameter, and using the smaller one as the target bandwidth parameter; Or comparing the required bandwidth parameter with the locally stored service support bandwidth parameter, and using the smaller one as the target bandwidth parameter;
或者, 将需求带宽参数与本地存储的用户签约带宽参数和业务支持带宽参 数中的最大值进行比较, 将其中数值较小的一个做为目标带宽参数;  Or comparing the required bandwidth parameter with a maximum value of the locally stored user subscription bandwidth parameter and the service support bandwidth parameter, and using the smaller one as the target bandwidth parameter;
或者, 将需求带宽参数与本地存储的用户签约带宽参数和业务支持带宽参 数中的最小值进行比较, 将其中数值较小的一个做为目标带宽参数。  Alternatively, the required bandwidth parameter is compared with the minimum value of the locally stored user subscription bandwidth parameter and the service support bandwidth parameter, and the smaller one is used as the target bandwidth parameter.
处理器 1302,用于检测目标带宽参数是否大于本地存储的视频业务的原有 带宽参数;  The processor 1302 is configured to detect whether the target bandwidth parameter is greater than an original bandwidth parameter of the locally stored video service.
处理器 1302,用于若检测出目标带宽参数大于本地存储的视频业务的原有 带宽参数, 则控制发射机 1303向带宽控制节点发送带宽调整请求, 带宽调整 请求中包含有目标带宽参数, 以便带宽控制节点将视频业务的当前带宽参数由 原有带宽参数调整为目标带宽参数。  The processor 1302 is configured to: if the target bandwidth parameter is greater than the original bandwidth parameter of the locally stored video service, the control transmitter 1303 sends a bandwidth adjustment request to the bandwidth control node, where the bandwidth adjustment request includes the target bandwidth parameter, so that the bandwidth is used. The control node adjusts the current bandwidth parameter of the video service from the original bandwidth parameter to the target bandwidth parameter.
接收机 1301 , 还用于接收网关发送的视频业务的业务结束信息; 处理器 1302, 用于控制发射机 1303向带宽控制节点发送带宽恢复请求, 带宽恢复请求中包含有视频业务的原有带宽信息, 以便带宽控制节点将视频业 务的当前带宽参数恢复至原有带宽参数。  The receiver 1301 is further configured to receive the service end information of the video service sent by the gateway. The processor 1302 is configured to control the transmitter 1303 to send a bandwidth recovery request to the bandwidth control node, where the bandwidth recovery request includes the original bandwidth information of the video service. So that the bandwidth control node restores the current bandwidth parameters of the video service to the original bandwidth parameters.
综上所述, 本发明实施例提供的执行功能实体, 通过根据网关发送的视频 业务的需求带宽参数确定该视频业务的目标带宽参数, 并根据该目标带宽参数 调整该视频业务的带宽参数,解决了现有技术中无法根据不同视频业务灵活调 整带宽的问题, 达到了优化网络性能的目的; 另外, 本发明实施例提供的执行 功能实体, 还在该视频业务结束时, 将该视频业务的带宽参数恢复至调整之前 的状态, 解决了该视频业务结束后网络带宽资源浪费的问题, 达到了节约网络 带宽资源的目的。 请参见图 14,其示出了本发明一个实施例提供的带宽参数调整系统的系统 构成图, 该带宽参数调整系统可以包括如图 7所示的网关和如图 11所示执行 功能实体。  In summary, the performing functional entity provided by the embodiment of the present invention determines the target bandwidth parameter of the video service according to the required bandwidth parameter of the video service sent by the gateway, and adjusts the bandwidth parameter of the video service according to the target bandwidth parameter to solve the problem. In the prior art, the problem that the bandwidth cannot be flexibly adjusted according to different video services is achieved, and the network performance is optimized. In addition, the execution function entity provided by the embodiment of the present invention also uses the bandwidth of the video service when the video service ends. The parameter is restored to the state before the adjustment, which solves the problem of waste of network bandwidth resources after the end of the video service, and achieves the purpose of saving network bandwidth resources. Referring to FIG. 14, a system configuration diagram of a bandwidth parameter adjustment system according to an embodiment of the present invention is shown. The bandwidth parameter adjustment system may include a gateway as shown in FIG. 7 and a function entity as shown in FIG.
综上所述, 本发明实施例提供的带宽参数调整系统, 通过根据网关发送的 视频业务的需求带宽参数确定该视频业务的目标带宽参数, 并根据该目标带宽 参数调整该视频业务的带宽参数, 解决了现有技术中无法根据不同视频业务灵 活调整带宽的问题, 达到了优化网络性能的目的; 另外, 本发明实施例提供的 带宽参数调整系统, 还在该视频业务结束时, 将该视频业务的带宽参数恢复至 调整之前的状态, 解决了该视频业务结束后网络带宽资源浪费的问题, 达到了 节约网络带宽资源的目的。 本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通 过硬件来完成, 也可以通过程序来指令相关的硬件完成, 所述的程序可以存储 于一种计算机可读存储介质中, 上述提到的存储介质可以是只读存储器, 磁盘 或光盘等。 以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的 精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的 保护范围之内。 In summary, the bandwidth parameter adjustment system provided by the embodiment of the present invention determines the target bandwidth parameter of the video service according to the required bandwidth parameter of the video service sent by the gateway, and adjusts the bandwidth parameter of the video service according to the target bandwidth parameter. The invention solves the problem that the bandwidth cannot be flexibly adjusted according to different video services in the prior art, and achieves the purpose of optimizing the network performance. In addition, the embodiment of the present invention provides The bandwidth parameter adjustment system restores the bandwidth parameter of the video service to the state before the adjustment at the end of the video service, and solves the problem that the network bandwidth resource is wasted after the end of the video service, thereby achieving the purpose of saving network bandwidth resources. A person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium. The storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., which are within the spirit and scope of the present invention, should be included in the protection of the present invention. Within the scope.

Claims

权 利 要 求 书 claims
1、 一种带宽参数调整方法, 其特征在于, 所述方法包括: 1. A bandwidth parameter adjustment method, characterized in that the method includes:
根据终端向服务器请求超文本传输协议 HTTP视频业务时两者之间的交互 信息获取所述视频业务的需求带宽参数; Obtain the required bandwidth parameters of the video service based on the interaction information between the terminal and the server when requesting Hypertext Transfer Protocol HTTP video service;
将获取的所述视频业务的需求带宽参数发送给执行功能实体, 以便所述执 行功能实体根据所述需求带宽参数调整所述视频业务的带宽参数; Send the obtained required bandwidth parameter of the video service to the execution function entity, so that the execution function entity adjusts the bandwidth parameter of the video service according to the required bandwidth parameter;
所述交互信息包括: 所述终端向所述服务器请求所述视频业务所对应页面 或者分片信息时发送的第一请求、 所述服务器向所述终端发送的对所述第一请 求的响应、 所述终端接收到所述第一请求的响应之后向所述服务器请求所述视 频业务所对应的视频文件时发送的第二请求中的任一种或者多种。 The interactive information includes: a first request sent when the terminal requests the page or fragmentation information corresponding to the video service from the server, a response to the first request sent by the server to the terminal, Any one or more of the second requests sent when the terminal requests the video file corresponding to the video service from the server after receiving the response to the first request.
2、 根据权利要求 1所述的方法, 其特征在于, 所述交互信息, 包括: 所述 第一请求, 所述第一请求携带有所述视频业务对应的视频标识信息; 2. The method according to claim 1, characterized in that the interaction information includes: the first request, the first request carries video identification information corresponding to the video service;
所述根据终端向服务器请求超文本传输协议 HTTP视频业务时两者之间的 交互信息获取所述视频业务的需求带宽参数, 包括: The required bandwidth parameters of the video service are obtained based on the interactive information between the terminal and the server when the terminal requests the Hypertext Transfer Protocol HTTP video service, including:
根据所述第一请求中携带的所述视频业务对应的视频标识信息检测本地緩 存中是否存储有所述视频业务对应的视频文件; Detect whether the video file corresponding to the video service is stored in the local cache according to the video identification information corresponding to the video service carried in the first request;
若检测出本地緩存中存储有所述视频业务对应的视频文件, 则从本地緩存 中获取与所述视频文件对应存储的所述视频业务的需求带宽参数; If it is detected that the video file corresponding to the video service is stored in the local cache, the required bandwidth parameter of the video service stored corresponding to the video file is obtained from the local cache;
其中, 所述视频标识信息包括: 视频文件的统一资源定位符 URL和视频文 件标识中的一种或两种。 Wherein, the video identification information includes: one or both of the uniform resource locator URL of the video file and the video file identification.
3、 根据权利要求 1所述的方法, 其特征在于, 所述交互信息, 包括: 所述 对所述第一请求的响应; 3. The method according to claim 1, characterized in that the interactive information includes: the response to the first request;
所述根据终端向服务器请求超文本传输协议 HTTP视频业务时两者之间的 交互信息获取所述视频业务的需求带宽参数, 包括: The required bandwidth parameters of the video service are obtained based on the interactive information between the terminal and the server when the terminal requests the Hypertext Transfer Protocol HTTP video service, including:
检测所述对所述第一请求的响应中是否包含有视频特征信息, 所述视频特 征信息包括: 视频容量信息或视频码率, 所述视频容量信息包括: 视频文件大 小和视频播放时长; Detect whether the response to the first request contains video feature information. The video feature information includes: video capacity information or video bit rate. The video capacity information includes: video file size and video playback duration;
若检测出所述对所述第一请求的响应中包含有视频特征信息, 则将所述视 频文件大小和视频播放时长的比值作为所述视频业务的需求带宽参数, 或者, 将所述视频码率作为所述视频业务的需求带宽参数。 If it is detected that the response to the first request contains video feature information, then the video The ratio of the video file size and the video playback duration is used as the required bandwidth parameter of the video service, or the video bit rate is used as the required bandwidth parameter of the video service.
4、 根据权利要求 1所述的方法, 其特征在于, 所述交互信息, 包括: 所述 第二请求, 所述第二请求携带有所述视频业务对应的视频标识信息; 4. The method according to claim 1, characterized in that, the interaction information includes: the second request, the second request carries video identification information corresponding to the video service;
所述根据终端向服务器请求超文本传输协议 HTTP视频业务时两者之间的 交互信息获取所述视频业务的需求带宽参数, 包括: The required bandwidth parameters of the video service are obtained based on the interactive information between the terminal and the server when the terminal requests the Hypertext Transfer Protocol HTTP video service, including:
根据所述第二请求中携带的所述视频业务对应的视频标识信息检测本地緩 存中是否存储有所述视频业务对应的视频文件; Detect whether the video file corresponding to the video service is stored in the local cache according to the video identification information corresponding to the video service carried in the second request;
若检测出本地緩存中存储有所述视频业务对应的视频文件, 则从本地緩存 中获取与所述视频文件对应存储的所述视频业务的需求带宽参数; If it is detected that the video file corresponding to the video service is stored in the local cache, the required bandwidth parameter of the video service stored corresponding to the video file is obtained from the local cache;
其中, 所述视频标识信息包括: 视频文件的统一资源定位符 URL和视频文 件标识中的一种或两种; Wherein, the video identification information includes: one or both of the uniform resource locator URL of the video file and the video file identification;
或者, or,
检测所述第二请求中是否包含有视频特征信息, 所述视频特征信息包括: 视频容量信息或视频码率, 所述视频容量信息包括: 视频文件大小和视频播放 时长; Detect whether the second request contains video feature information. The video feature information includes: video capacity information or video bit rate. The video capacity information includes: video file size and video playback duration;
若检测出所述第二请求中包含有视频特征信息, 则将所述视频文件大小和 视频播放时长的比值作为所述视频业务的需求带宽参数, 或者, 将所述视频码 率作为所述视频业务的需求带宽参数。 If it is detected that the second request contains video feature information, the ratio of the video file size to the video playback duration is used as the required bandwidth parameter of the video service, or the video bit rate is used as the video The required bandwidth parameters of the business.
5、 根据权利要求 2或 4所述的方法, 其特征在于, 若检测出本地緩存中未 存储有所述视频业务对应的视频文件, 所述方法还包括: 5. The method according to claim 2 or 4, characterized in that, if it is detected that the video file corresponding to the video service is not stored in the local cache, the method further includes:
接收所述第二请求对应的视频文件; Receive the video file corresponding to the second request;
解析接收到的所述视频文件, 获取所述视频文件的视频特征信息, 所述视 频特征信息包括: 视频容量信息或视频码率, 所述视频容量信息包括: 视频文 件大小和视频播放时长; Analyze the received video file and obtain the video feature information of the video file. The video feature information includes: video capacity information or video bit rate. The video capacity information includes: video file size and video playback duration;
将所述视频文件大小和视频播放时长的比值作为所述视频业务的需求带宽 参数, 或者, 将所述视频码率作为所述视频业务的需求带宽参数; Use the ratio of the video file size to the video playback duration as the required bandwidth parameter of the video service, or use the video bit rate as the required bandwidth parameter of the video service;
将所述需求带宽参数与所述视频文件对应存储于本地緩存中。 The required bandwidth parameter is stored in a local cache corresponding to the video file.
6、 根据权利要求 5所述的方法, 其特征在于, 所述将获取的所述视频业务 的需求带宽参数发送给执行功能实体之后, 所述方法还包括: 6. The method according to claim 5, characterized in that, after sending the obtained required bandwidth parameters of the video service to the execution function entity, the method further includes:
将本地緩存的所述视频文件转发给所述终端; Forward the locally cached video file to the terminal;
检测所述视频文件是否转发完成, 若检测出所述视频文件转发完成, 则向 所述执行功能实体发送所述视频业务的业务结束信息, 以便所述执行功能实体 根据所述业务结束信息将所述视频业务的带宽参数恢复至调整之前的状态。 Detect whether the forwarding of the video file is completed. If it is detected that the forwarding of the video file is completed, the service end information of the video service is sent to the execution function entity, so that the execution function entity transfers the video service according to the service end information. The bandwidth parameters of the video service are restored to the state before adjustment.
7、 一种带宽参数调整方法, 其特征在于, 所述方法包括: 7. A bandwidth parameter adjustment method, characterized in that the method includes:
接收网关发送的超文本传输协议 HTTP视频业务的需求带宽参数; 根据所述需求带宽参数确定所述视频业务的目标带宽参数; Receive the required bandwidth parameters of the Hypertext Transfer Protocol HTTP video service sent by the gateway; determine the target bandwidth parameters of the video service according to the required bandwidth parameters;
根据确定的所述目标带宽参数调整所述视频业务的带宽参数。 Adjust the bandwidth parameter of the video service according to the determined target bandwidth parameter.
8、 根据权利要求 7所述的方法, 其特征在于, 所述根据所述需求带宽参数 确定所述视频业务的目标带宽参数, 包括: 8. The method according to claim 7, wherein the determining the target bandwidth parameter of the video service according to the required bandwidth parameter includes:
根据所述需求带宽参数, 结合预定策略确定所述视频业务的目标带宽参数; 或者, Determine the target bandwidth parameters of the video service according to the required bandwidth parameters in combination with a predetermined strategy; or,
将所述需求带宽参数转发给规则功能实体, 以便所述规则功能实体根据所 述需求带宽参数, 结合预定策略确定所述视频业务的目标带宽参数; Forward the required bandwidth parameter to the rule function entity, so that the rule function entity determines the target bandwidth parameter of the video service according to the required bandwidth parameter in combination with a predetermined policy;
接收所述规则功能实体返回的所述视频业务的目标带宽参数; Receive the target bandwidth parameter of the video service returned by the rule function entity;
其中, 所述预定策略包括: Wherein, the predetermined strategy includes:
将所述需求带宽参数与本地存储的用户签约带宽参数进行比较, 将其中数 值较小的一个做为所述目标带宽参数; Compare the required bandwidth parameter with the locally stored user subscription bandwidth parameter, and use the smaller one as the target bandwidth parameter;
或者, 将所述需求带宽参数与本地存储的业务支持带宽参数进行比较, 将 其中数值较小的一个做为所述目标带宽参数; Or, compare the required bandwidth parameter with a locally stored service support bandwidth parameter, and use the smaller one as the target bandwidth parameter;
或者, 将所述需求带宽参数与本地存储的用户签约带宽参数和业务支持带 宽参数中的最大值进行比较, 将其中数值较小的一个做为所述目标带宽参数; 或者, 将所述需求带宽参数与本地存储的用户签约带宽参数和业务支持带 宽参数中的最小值进行比较, 将其中数值较小的一个做为所述目标带宽参数。 Or, compare the required bandwidth parameter with the maximum value of locally stored user subscription bandwidth parameters and service support bandwidth parameters, and use the smaller one as the target bandwidth parameter; or, use the required bandwidth parameter The parameter is compared with the minimum value among the locally stored user subscription bandwidth parameters and service support bandwidth parameters, and the smaller one is used as the target bandwidth parameter.
9、 根据权利要求 8所述的方法, 其特征在于, 所述根据所述目标带宽参数 调整所述视频业务的带宽参数, 包括: 检测所述目标带宽参数是否大于本地存储的所述视频业务的原有带宽参 数; 9. The method according to claim 8, wherein the adjusting the bandwidth parameter of the video service according to the target bandwidth parameter includes: Detect whether the target bandwidth parameter is greater than the locally stored original bandwidth parameter of the video service;
若所述目标带宽参数大于本地存储的所述视频业务的原有带宽参数, 则向 带宽控制节点发送带宽调整请求, 所述带宽调整请求中包含有所述目标带宽参 数, 以便所述带宽控制节点将所述视频业务的当前带宽参数由所述原有带宽参 数调整为所述目标带宽参数。 If the target bandwidth parameter is greater than the locally stored original bandwidth parameter of the video service, a bandwidth adjustment request is sent to the bandwidth control node, and the bandwidth adjustment request includes the target bandwidth parameter, so that the bandwidth control node Adjust the current bandwidth parameter of the video service from the original bandwidth parameter to the target bandwidth parameter.
10、 根据权利要求 9所述的方法, 其特征在于, 所述向带宽控制节点发送 带宽调整请求之后, 所述方法还包括: 10. The method according to claim 9, characterized in that, after sending the bandwidth adjustment request to the bandwidth control node, the method further includes:
接收所述网关发送的所述视频业务的业务结束信息; Receive the service end information of the video service sent by the gateway;
向所述带宽控制节点发送带宽恢复请求, 所述带宽恢复请求中包含有所述 视频业务的原有带宽信息, 以便所述带宽控制节点将所述视频业务的当前带宽 参数恢复至所述原有带宽参数。 Send a bandwidth restoration request to the bandwidth control node, where the bandwidth restoration request contains the original bandwidth information of the video service, so that the bandwidth control node restores the current bandwidth parameters of the video service to the original bandwidth parameters.
11、 一种网关, 其特征在于, 所述网关包括: 11. A gateway, characterized in that the gateway includes:
参数获取模块, 用于根据终端向服务器请求超文本传输协议 HTTP视频业 务时两者之间的交互信息获取所述视频业务的需求带宽参数; A parameter acquisition module, configured to acquire the required bandwidth parameters of the video service based on the interactive information between the terminal and the server when the terminal requests the Hypertext Transfer Protocol HTTP video service;
第一发送模块, 用于将所述参数获取模块获取的所述视频业务的需求带宽 参数发送给执行功能实体, 以便所述执行功能实体根据所述需求带宽参数调整 所述视频业务的带宽参数; The first sending module is configured to send the required bandwidth parameters of the video service obtained by the parameter acquisition module to the execution function entity, so that the execution function entity adjusts the bandwidth parameters of the video service according to the required bandwidth parameters;
所述交互信息包括: 所述终端向所述服务器请求所述视频业务所对应页面 或者分片信息时发送的第一请求、 所述服务器向所述终端发送的对所述第一请 求的响应、 所述终端接收到所述第一请求的响应之后向所述服务器请求所述视 频业务所对应的视频文件时发送的第二请求中的任一种或者多种。 The interactive information includes: a first request sent when the terminal requests the page or fragmentation information corresponding to the video service from the server, a response to the first request sent by the server to the terminal, Any one or more of the second requests sent when the terminal requests the video file corresponding to the video service from the server after receiving the response to the first request.
12、 根据权利要求 11所述的网关, 其特征在于, 所述参数获取模块包括: 第一检测单元, 用于根据所述第一请求中携带的所述视频业务对应的视频 标识信息检测本地緩存中是否存储有所述视频业务对应的视频文件; 12. The gateway according to claim 11, wherein the parameter acquisition module includes: a first detection unit configured to detect local cache according to the video identification information corresponding to the video service carried in the first request. Whether the video file corresponding to the video service is stored in;
第一获取单元, 用于若所述第一检测单元检测出本地緩存中存储有所述视 频业务对应的视频文件, 则从本地緩存中获取与所述视频文件对应存储的所述 视频业务的需求带宽参数; 其中, 所述视频标识信息包括: 视频文件的统一资源定位符 URL和视频文 件标识中的一种或两种。 The first acquisition unit is configured to acquire the demand for the video service stored corresponding to the video file from the local cache if the first detection unit detects that the video file corresponding to the video service is stored in the local cache. bandwidth parameters; Wherein, the video identification information includes: one or both of a uniform resource locator URL of the video file and a video file identification.
13、 根据权利要求 11所述的网关, 其特征在于, 所述参数获取模块包括: 第二检测单元, 用于检测所述对所述第一请求的响应中是否包含有视频特 征信息, 所述视频特征信息包括: 视频容量信息或视频码率, 所述视频容量信 息包括: 视频文件大小和视频播放时长; 13. The gateway according to claim 11, wherein the parameter acquisition module includes: a second detection unit configured to detect whether the response to the first request contains video feature information, Video feature information includes: video capacity information or video bit rate, and the video capacity information includes: video file size and video playback duration;
第二获取单元, 用于若所述第二检测单元检测出所述对所述第一请求的响 应中包含有视频特征信息, 则将所述视频文件大小和视频播放时长的比值作为 所述视频业务的需求带宽参数, 或者, 将所述视频码率作为所述视频业务的需 求带宽参数。 The second acquisition unit is configured to, if the second detection unit detects that the response to the first request contains video feature information, use the ratio of the video file size to the video playback duration as the video The required bandwidth parameter of the service, or the video bit rate is used as the required bandwidth parameter of the video service.
14、 根据权利要求 11所述的网关, 其特征在于, 所述参数获取模块包括: 第三检测单元, 用于根据所述第二请求中携带的所述视频业务对应的视频 标识信息检测本地緩存中是否存储有所述视频业务对应的视频文件; 14. The gateway according to claim 11, characterized in that the parameter acquisition module includes: a third detection unit, configured to detect local cache according to the video identification information corresponding to the video service carried in the second request Whether the video file corresponding to the video service is stored in;
第三获取单元, 用于若所述第三检测单元检测出本地緩存中存储有所述视 频业务对应的视频文件, 则从本地緩存中获取与所述视频文件对应存储的所述 视频业务的需求带宽参数; The third acquisition unit is configured to acquire the demand for the video service stored corresponding to the video file from the local cache if the third detection unit detects that the video file corresponding to the video service is stored in the local cache. bandwidth parameters;
其中, 所述视频标识信息包括: 视频文件的统一资源定位符 URL和视频文 件标识中的一种或两种; Wherein, the video identification information includes: one or both of the uniform resource locator URL of the video file and the video file identification;
所述参数获取模块还包括: The parameter acquisition module also includes:
第四检测单元, 用于检测所述第二请求中是否包含有视频特征信息, 所述 视频特征信息包括: 视频容量信息或视频码率, 所述视频容量信息包括: 视频 文件大小和视频播放时长; The fourth detection unit is used to detect whether the second request contains video feature information. The video feature information includes: video capacity information or video bit rate. The video capacity information includes: video file size and video playback duration. ;
第四获取单元, 用于若所述第四检测单元检测出所述第二请求中包含有视 频特征信息, 则将所述视频文件大小和视频播放时长的比值作为所述视频业务 的需求带宽参数, 或者, 将所述视频码率作为所述视频业务的需求带宽参数。 The fourth acquisition unit is configured to use the ratio of the video file size to the video playback duration as the required bandwidth parameter of the video service if the fourth detection unit detects that the second request contains video feature information. , or, use the video bit rate as the required bandwidth parameter of the video service.
15、 根据权利要求 12或 14所述的网关, 其特征在于, 所述网关还包括: 接收模块, 用于若所述第一检测单元检测出本地緩存中未存储有所述视频 业务对应的视频文件, 且所述第三检测单元检测出本地緩存中未存储有所述视 频业务对应的视频文件, 则接收所述第二请求对应的视频文件; 15. The gateway according to claim 12 or 14, characterized in that, the gateway further includes: a receiving module, configured to: if the first detection unit detects that the video corresponding to the video service is not stored in the local cache, file, and the third detection unit detects that the view is not stored in the local cache. video file corresponding to the video service, then receive the video file corresponding to the second request;
所述参数获取模块还包括: The parameter acquisition module also includes:
解析单元, 用于解析接收到的所述视频文件, 获取所述视频文件的视频特 征信息, 所述视频特征信息包括: 视频容量信息或视频码率, 所述视频容量信 息包括: 视频文件大小和视频播放时长; An analysis unit, configured to analyze the received video file and obtain the video feature information of the video file. The video feature information includes: video capacity information or video bit rate. The video capacity information includes: video file size and Video playback duration;
第五获取单元, 用于将所述解析单元获取的所述视频文件大小和视频播放 时长的比值作为所述视频业务的需求带宽参数, 或者, 将所述解析单元获取的 所述视频码率作为所述视频业务的需求带宽参数; The fifth acquisition unit is configured to use the ratio of the video file size and video playback time acquired by the analysis unit as the required bandwidth parameter of the video service, or use the video code rate acquired by the analysis unit as The required bandwidth parameters of the video service;
存储单元, 用于将所述第五获取单元获取的需求带宽参数与所述接收模块 接收到的视频文件对应存储于本地緩存中。 A storage unit, configured to store the required bandwidth parameter obtained by the fifth obtaining unit and the video file received by the receiving module in a local cache.
16、 根据权利要求 15所述的网关, 其特征在于, 所述网关还包括: 第二发送模块, 用于在所述第一发送模块将所述参数获取模块获取的所述 视频业务的需求带宽参数发送给执行功能实体之后, 将本地緩存的所述视频文 件转发给所述终端; 16. The gateway according to claim 15, characterized in that, the gateway further includes: a second sending module, configured to use the first sending module to obtain the required bandwidth of the video service obtained by the parameter acquisition module. After the parameters are sent to the execution function entity, the locally cached video file is forwarded to the terminal;
检测模块, 用于检测所述视频文件是否转发完成; A detection module, used to detect whether the video file is forwarded;
第三发送模块, 用于若所述检测模块检测出所述视频文件转发完成, 则向 所述执行功能实体发送所述视频业务的业务结束信息, 以便所述执行功能实体 根据所述业务结束信息将所述视频业务的带宽参数恢复至调整之前的状态。 The third sending module is configured to send the service end information of the video service to the execution function entity if the detection module detects that the video file forwarding is completed, so that the execution function entity can execute the operation according to the service end information. Restore the bandwidth parameters of the video service to the state before adjustment.
17、 一种网关, 其特征在于, 所述网关包括: 处理器和发射机; 17. A gateway, characterized in that the gateway includes: a processor and a transmitter;
所述处理器, 用于根据终端向服务器请求超文本传输协议 HTTP视频业务 时两者之间的交互信息获取所述视频业务的需求带宽参数; The processor is configured to obtain the required bandwidth parameters of the video service based on the interaction information between the terminal and the server when the terminal requests the Hypertext Transfer Protocol HTTP video service;
所述处理器, 还用于控制所述发射机将获取的所述视频业务的需求带宽参 数发送给执行功能实体, 以便所述执行功能实体根据所述需求带宽参数调整所 述视频业务的带宽参数; The processor is also configured to control the transmitter to send the obtained required bandwidth parameters of the video service to the execution function entity, so that the execution function entity adjusts the bandwidth parameters of the video service according to the required bandwidth parameters. ;
所述交互信息包括: 所述终端向所述服务器请求所述视频业务所对应页面 或者分片信息时发送的第一请求、 所述服务器向所述终端发送的对所述第一请 求的响应、 所述终端接收到所述第一请求的响应之后向所述服务器请求所述视 频业务所对应的视频文件时发送的第二请求中的任一种或者多种。 The interactive information includes: a first request sent when the terminal requests the page or fragmentation information corresponding to the video service from the server, a response to the first request sent by the server to the terminal, Any one or more of the second requests sent when the terminal requests the video file corresponding to the video service from the server after receiving the response to the first request.
18、 根据权利要求 17所述的网关, 其特征在于, 18. The gateway according to claim 17, characterized in that,
所述处理器, 用于根据所述第一请求中携带的所述视频业务对应的视频标 识信息检测本地緩存中是否存储有所述视频业务对应的视频文件; The processor is configured to detect whether the video file corresponding to the video service is stored in the local cache according to the video identification information corresponding to the video service carried in the first request;
所述处理器, 还用于若检测出本地緩存中存储有所述视频业务对应的视频 文件, 则从本地緩存中获取与所述视频文件对应存储的所述视频业务的需求带 宽参数; The processor is further configured to, if it is detected that a video file corresponding to the video service is stored in the local cache, obtain the required bandwidth parameter of the video service stored corresponding to the video file from the local cache;
其中, 所述视频标识信息包括: 视频文件的统一资源定位符 URL和视频文 件标识中的一种或两种。 Wherein, the video identification information includes: one or both of the uniform resource locator URL of the video file and the video file identification.
19、 根据权利要求 17所述的网关, 其特征在于, 19. The gateway according to claim 17, characterized in that,
所述处理器, 用于检测所述对所述第一请求的响应中是否包含有视频特征 信息, 所述视频特征信息包括: 视频容量信息或视频码率, 所述视频容量信息 包括: 视频文件大小和视频播放时长; The processor is configured to detect whether the response to the first request contains video feature information. The video feature information includes: video capacity information or video bit rate. The video capacity information includes: video file. Size and video playback duration;
所述处理器, 还用于若检测出所述对所述第一请求的响应中包含有视频特 征信息, 则将所述视频文件大小和视频播放时长的比值作为所述视频业务的需 求带宽参数, 或者, 将所述视频码率作为所述视频业务的需求带宽参数。 The processor is further configured to, if it is detected that the response to the first request contains video feature information, use the ratio of the video file size to the video playback duration as the required bandwidth parameter of the video service. , or, use the video bit rate as the required bandwidth parameter of the video service.
20、 根据权利要求 17所述的网关, 其特征在于, 20. The gateway according to claim 17, characterized in that,
所述处理器, 用于根据所述第二请求中携带的所述视频业务对应的视频标 识信息检测本地緩存中是否存储有所述视频业务对应的视频文件; The processor is configured to detect whether the video file corresponding to the video service is stored in the local cache according to the video identification information corresponding to the video service carried in the second request;
所述处理器, 还用于若检测出本地緩存中存储有所述视频业务对应的视频 文件, 则从本地緩存中获取与所述视频文件对应存储的所述视频业务的需求带 宽参数; The processor is further configured to, if it is detected that a video file corresponding to the video service is stored in the local cache, obtain the required bandwidth parameter of the video service stored corresponding to the video file from the local cache;
其中, 所述视频标识信息包括: 视频文件的统一资源定位符 URL和视频文 件标识中的一种或两种; Wherein, the video identification information includes: one or both of the uniform resource locator URL of the video file and the video file identification;
所述处理器, 用于检测所述第二请求中是否包含有视频特征信息, 所述视 频特征信息包括: 视频容量信息或视频码率, 所述视频容量信息包括: 视频文 件大小和视频播放时长; The processor is configured to detect whether the second request contains video feature information. The video feature information includes: video capacity information or video bit rate. The video capacity information includes: video file size and video playback duration. ;
所述处理器, 还用于若检测出所述第二请求中包含有视频特征信息, 则将 所述视频文件大小和视频播放时长的比值作为所述视频业务的需求带宽参数, 或者, 将所述视频码率作为所述视频业务的需求带宽参数。 The processor is further configured to, if it is detected that the second request contains video feature information, use the ratio of the video file size and the video playback duration as the required bandwidth parameter of the video service, or, use the The video bit rate is used as the required bandwidth parameter of the video service.
21、 根据权利要求 18或 20所述的网关, 其特征在于, 所述网关还包括: 接收机和存储器; 21. The gateway according to claim 18 or 20, characterized in that the gateway further includes: a receiver and a memory;
所述接收机, 用于若所述处理器检测出本地緩存中未存储有所述视频业务 对应的视频文件, 则接收所述第二请求对应的视频文件; The receiver is configured to receive the video file corresponding to the second request if the processor detects that the video file corresponding to the video service is not stored in the local cache;
所述处理器, 用于解析接收到的所述视频文件, 获取所述视频文件的视频 特征信息, 所述视频特征信息包括: 视频容量信息或视频码率, 所述视频容量 信息包括: 视频文件大小和视频播放时长; The processor is configured to parse the received video file and obtain video feature information of the video file. The video feature information includes: video capacity information or video bit rate. The video capacity information includes: video file Size and video playback duration;
所述处理器, 还用于将获取的所述视频文件大小和视频播放时长的比值作 为所述视频业务的需求带宽参数, 或者, 将所述解析单元获取的所述视频码率 作为所述视频业务的需求带宽参数; The processor is further configured to use the obtained ratio of the video file size and the video playback duration as the required bandwidth parameter of the video service, or use the video code rate obtained by the parsing unit as the video The required bandwidth parameters of the business;
所述处理器, 还用于将所述获取的需求带宽参数与所述接收到的视频文件 对应存储于所述存储器中。 The processor is also configured to store the obtained required bandwidth parameter in correspondence with the received video file in the memory.
22、 根据权利要求 21所述的网关, 其特征在于, 22. The gateway according to claim 21, characterized in that,
所述处理器, 用于在所述发射机将获取的所述视频业务的需求带宽参数发 送给执行功能实体之后, 控制所述发射机将本地緩存的所述视频文件转发给所 述终端; The processor is configured to control the transmitter to forward the locally cached video file to the terminal after the transmitter sends the obtained required bandwidth parameter of the video service to the execution function entity;
所述处理器, 用于检测所述视频文件是否转发完成; The processor is used to detect whether the video file is forwarded;
所述处理器, 用于若检测出所述视频文件转发完成, 则控制所述发射机向 所述执行功能实体发送所述视频业务的业务结束信息, 以便所述执行功能实体 根据所述业务结束信息将所述视频业务的带宽参数恢复至调整之前的状态。 The processor is configured to, if it detects that the video file forwarding is completed, control the transmitter to send the service end information of the video service to the execution function entity, so that the execution function entity ends the service according to the The information restores the bandwidth parameters of the video service to the state before adjustment.
23、 一种执行功能实体, 其特征在于, 所述执行功能实体包括: 23. An execution function entity, characterized in that, the execution function entity includes:
参数接收模块, 用于接收网关发送的超文本传输协议 HTTP视频业务的需 求带宽参数; Parameter receiving module, used to receive the required bandwidth parameters of the Hypertext Transfer Protocol HTTP video service sent by the gateway;
目标参数确定模块, 用于根据所述参数接收模块接收到的需求带宽参数确 定所述视频业务的目标带宽参数; A target parameter determination module, configured to determine the target bandwidth parameter of the video service according to the required bandwidth parameter received by the parameter receiving module;
调整模块, 用于根据所述目标参数确定模块确定的所述目标带宽参数调整 所述视频业务的带宽参数。 An adjustment module, configured to adjust the bandwidth parameter of the video service according to the target bandwidth parameter determined by the target parameter determination module.
24、 根据权利要求 23所述的执行功能实体, 其特征在于, 所述目标参数确 定模块包括: 24. The execution function entity according to claim 23, characterized in that the target parameter determination module includes:
第一确定单元, 用于根据所述需求带宽参数, 结合预定策略确定所述视频 业务的目标带宽参数; The first determination unit is configured to determine the target bandwidth parameter of the video service according to the required bandwidth parameter and in combination with a predetermined strategy;
发送单元, 用于将所述需求带宽参数转发给规则功能实体, 以便所述规则 功能实体根据所述需求带宽参数, 结合预定策略确定所述视频业务的目标带宽 参数; A sending unit, configured to forward the required bandwidth parameter to the rule function entity, so that the rule function entity determines the target bandwidth parameter of the video service based on the required bandwidth parameter and in combination with a predetermined policy;
接收单元, 用于接收所述规则功能实体返回的所述视频业务的目标带宽参 数; A receiving unit, configured to receive the target bandwidth parameter of the video service returned by the rule function entity;
其中, 所述预定策略包括: Wherein, the predetermined strategy includes:
将所述需求带宽参数与本地存储的用户签约带宽参数进行比较, 将其中数 值较小的一个做为所述目标带宽参数; Compare the required bandwidth parameter with the locally stored user subscription bandwidth parameter, and use the smaller one as the target bandwidth parameter;
或者, 将所述需求带宽参数与本地存储的业务支持带宽参数进行比较, 将 其中数值较小的一个做为所述目标带宽参数; Or, compare the required bandwidth parameter with a locally stored service support bandwidth parameter, and use the smaller one as the target bandwidth parameter;
或者, 将所述需求带宽参数与本地存储的用户签约带宽参数和业务支持带 宽参数中的最大值进行比较, 将其中数值较小的一个做为所述目标带宽参数; 或者, 将所述需求带宽参数与本地存储的用户签约带宽参数和业务支持带 宽参数中的最小值进行比较, 将其中数值较小的一个做为所述目标带宽参数。 Or, compare the required bandwidth parameter with the maximum value of locally stored user subscription bandwidth parameters and service support bandwidth parameters, and use the smaller one as the target bandwidth parameter; or, use the required bandwidth parameter The parameter is compared with the minimum value among the locally stored user subscription bandwidth parameters and service support bandwidth parameters, and the smaller one is used as the target bandwidth parameter.
25、 根据权利要求 24所述的执行功能实体, 其特征在于, 所述调整模块包 括: 25. The execution function entity according to claim 24, characterized in that the adjustment module includes:
检测单元, 用于检测所述目标参数确定模块确定的目标带宽参数是否大于 本地存储的所述视频业务的原有带宽参数; A detection unit, configured to detect whether the target bandwidth parameter determined by the target parameter determination module is greater than the locally stored original bandwidth parameter of the video service;
请求单元, 用于若所述检测单元检测出所述目标带宽参数大于本地存储的 所述视频业务的原有带宽参数, 则向带宽控制节点发送带宽调整请求, 所述带 宽调整请求中包含有所述目标带宽参数, 以便所述带宽控制节点将所述视频业 务的当前带宽参数由所述原有带宽参数调整为所述目标带宽参数。 A request unit, configured to send a bandwidth adjustment request to the bandwidth control node if the detection unit detects that the target bandwidth parameter is greater than the locally stored original bandwidth parameter of the video service, and the bandwidth adjustment request contains the The target bandwidth parameter is configured so that the bandwidth control node adjusts the current bandwidth parameter of the video service from the original bandwidth parameter to the target bandwidth parameter.
26、 根据权利要求 25所述的执行功能实体, 其特征在于, 所述执行功能实 体还包括: 26. The execution function entity according to claim 25, characterized in that the execution function entity further includes:
结束信息接收模块, 用于接收所述网关发送的所述视频业务的业务结束信 息; An end information receiving module, configured to receive a service end information of the video service sent by the gateway. interest;
请求模块, 用于向所述带宽控制节点发送带宽恢复请求, 所述带宽恢复请 求中包含有所述视频业务的原有带宽信息, 以便所述带宽控制节点将所述视频 业务的当前带宽参数恢复至所述原有带宽参数。 A request module, configured to send a bandwidth recovery request to the bandwidth control node, where the bandwidth recovery request contains the original bandwidth information of the video service, so that the bandwidth control node can restore the current bandwidth parameters of the video service. to the original bandwidth parameters.
27、 一种执行功能实体, 其特征在于, 所述执行功能实体包括: 接收机和 处理器; 27. An execution function entity, characterized in that the execution function entity includes: a receiver and a processor;
所述接收机, 用于接收网关发送的超文本传输协议 HTTP视频业务的需求 带宽参数; The receiver is used to receive the bandwidth parameters required by the Hypertext Transfer Protocol HTTP video service sent by the gateway;
所述处理器, 用于根据所述接收机接收到的需求带宽参数确定所述视频业 务的目标带宽参数; The processor is configured to determine the target bandwidth parameter of the video service according to the required bandwidth parameter received by the receiver;
所述处理器, 用于根据确定的所述目标带宽参数调整所述视频业务的带宽 参数。 The processor is configured to adjust the bandwidth parameter of the video service according to the determined target bandwidth parameter.
28、 根据权利要求 27所述的执行功能实体, 其特征在于, 所述执行功能实 体还包括: 发射机; 28. The execution function entity according to claim 27, characterized in that the execution function entity further includes: a transmitter;
所述处理器, 用于根据所述需求带宽参数, 结合预定策略确定所述视频业 务的目标带宽参数; The processor is configured to determine the target bandwidth parameter of the video service according to the required bandwidth parameter and in combination with a predetermined strategy;
所述处理器, 还用于控制所述发射机将所述需求带宽参数转发给规则功能 实体, 以便所述规则功能实体根据所述需求带宽参数, 结合预定策略确定所述 视频业务的目标带宽参数; The processor is also configured to control the transmitter to forward the required bandwidth parameter to a rule function entity, so that the rule function entity determines the target bandwidth parameter of the video service based on the required bandwidth parameter and a predetermined policy. ;
所述接收机, 用于接收所述规则功能实体返回的所述视频业务的目标带宽 参数; The receiver is configured to receive the target bandwidth parameter of the video service returned by the rule function entity;
其中, 所述预定策略包括: Wherein, the predetermined strategy includes:
将所述需求带宽参数与本地存储的用户签约带宽参数进行比较, 将其中数 值较小的一个做为所述目标带宽参数; Compare the required bandwidth parameter with the locally stored user subscription bandwidth parameter, and use the smaller one as the target bandwidth parameter;
或者, 将所述需求带宽参数与本地存储的业务支持带宽参数进行比较, 将 其中数值较小的一个做为所述目标带宽参数; Or, compare the required bandwidth parameter with a locally stored service support bandwidth parameter, and use the smaller one as the target bandwidth parameter;
或者, 将所述需求带宽参数与本地存储的用户签约带宽参数和业务支持带 宽参数中的最大值进行比较, 将其中数值较小的一个做为所述目标带宽参数; 或者, 将所述需求带宽参数与本地存储的用户签约带宽参数和业务支持带 宽参数中的最小值进行比较, 将其中数值较小的一个做为所述目标带宽参数。 Or, compare the required bandwidth parameter with the maximum value of locally stored user subscription bandwidth parameters and service support bandwidth parameters, and use the smaller one as the target bandwidth parameter; or, use the required bandwidth parameter Parameters and locally stored user subscription bandwidth parameters and service support bands The minimum value among the wide parameters is compared, and the smaller one is used as the target bandwidth parameter.
29、 根据权利要求 28所述的执行功能实体, 其特征在于, 29. The execution function entity according to claim 28, characterized in that,
所述处理器, 用于检测所述目标带宽参数是否大于本地存储的所述视频业 务的原有带宽参数; The processor is configured to detect whether the target bandwidth parameter is greater than the locally stored original bandwidth parameter of the video service;
所述处理器, 用于若检测出所述目标带宽参数大于本地存储的所述视频业 务的原有带宽参数, 则控制所述发射机向带宽控制节点发送带宽调整请求, 所 述带宽调整请求中包含有所述目标带宽参数, 以便所述带宽控制节点将所述视 频业务的当前带宽参数由所述原有带宽参数调整为所述目标带宽参数。 The processor is configured to, if it is detected that the target bandwidth parameter is greater than the locally stored original bandwidth parameter of the video service, control the transmitter to send a bandwidth adjustment request to the bandwidth control node, where in the bandwidth adjustment request The target bandwidth parameter is included so that the bandwidth control node adjusts the current bandwidth parameter of the video service from the original bandwidth parameter to the target bandwidth parameter.
30、 根据权利要求 29所述的执行功能实体, 其特征在于, 30. The execution function entity according to claim 29, characterized in that,
所述接收机, 还用于接收所述网关发送的所述视频业务的业务结束信息; 所述处理器, 用于控制所述发射机向所述带宽控制节点发送带宽恢复请求, 所述带宽恢复请求中包含有所述视频业务的原有带宽信息, 以便所述带宽控制 节点将所述视频业务的当前带宽参数恢复至所述原有带宽参数。 The receiver is also used to receive the service end information of the video service sent by the gateway; the processor is used to control the transmitter to send a bandwidth recovery request to the bandwidth control node, and the bandwidth recovery The request includes the original bandwidth information of the video service, so that the bandwidth control node restores the current bandwidth parameter of the video service to the original bandwidth parameter.
31、 一种带宽参数调整系统, 其特征在于, 所述系统包括: 31. A bandwidth parameter adjustment system, characterized in that the system includes:
如权利要求 11至 16任一所述的网关以及如权利要求 23至 26任一所述的 执行功能实体。 The gateway as described in any one of claims 11 to 16 and the execution function entity as described in any one of claims 23 to 26.
PCT/CN2012/087926 2012-12-28 2012-12-28 Bandwidth parameter adjustment method, gateway and enforcement functional entity WO2014101147A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201280002734.2A CN104025606A (en) 2012-12-28 2012-12-28 Bandwidth parameter adjustment method, gateway and enforcement functional entity
PCT/CN2012/087926 WO2014101147A1 (en) 2012-12-28 2012-12-28 Bandwidth parameter adjustment method, gateway and enforcement functional entity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/087926 WO2014101147A1 (en) 2012-12-28 2012-12-28 Bandwidth parameter adjustment method, gateway and enforcement functional entity

Publications (1)

Publication Number Publication Date
WO2014101147A1 true WO2014101147A1 (en) 2014-07-03

Family

ID=51019761

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/087926 WO2014101147A1 (en) 2012-12-28 2012-12-28 Bandwidth parameter adjustment method, gateway and enforcement functional entity

Country Status (2)

Country Link
CN (1) CN104025606A (en)
WO (1) WO2014101147A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158390A (en) * 2010-08-31 2011-08-17 华为软件技术有限公司 Method and device for adjusting and processing access bandwidth
CN102469374A (en) * 2010-11-12 2012-05-23 北京信威通信技术股份有限公司 Cross-layer optimization method of video service in wireless communication
CN102547206A (en) * 2010-12-30 2012-07-04 中国移动通信集团公司 Method and device for determining video transmission parameter during video communication

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101166182B (en) * 2006-10-18 2012-01-18 中国电信股份有限公司 Broadband access bandwidth adjusting method and system based on panel operation
CN101018199A (en) * 2007-01-12 2007-08-15 华为技术有限公司 Radio bandwidth allocation method, device and gateway device of the mobile stream media code stream
CN101052030B (en) * 2007-05-22 2010-12-08 中兴通讯股份有限公司 Managing method for digital user line tied up
CN101257393B (en) * 2008-04-16 2011-08-24 中兴通讯股份有限公司 Policy and charging control method and system for realizing PUSH mode
US9191322B2 (en) * 2009-05-19 2015-11-17 Beaumaris Networks Inc. Methods, apparatus and computer readable medium for managed adaptive bit rate for bandwidth reclamation
CN101616052B (en) * 2009-07-16 2012-11-28 杭州华三通信技术有限公司 Tunnel control method and device
CN101977146B (en) * 2010-10-25 2013-04-17 成都飞鱼星科技开发有限公司 Intelligent network traffic controller and implementation method thereof
CN101997922B (en) * 2010-11-19 2012-11-21 武汉大学 Cost optimization-based P2P streaming media coverage network topology structure adjustment method
CN102045393A (en) * 2010-12-14 2011-05-04 华为技术有限公司 Method, equipment and system for controlling band width
GB2491819A (en) * 2011-06-08 2012-12-19 Cubicspace Ltd Server for remote viewing and interaction with a virtual 3-D scene
US8522292B2 (en) * 2011-06-15 2013-08-27 Microsoft Corporation Streaming media bandwidth reduction
CN102801956B (en) * 2012-04-28 2014-12-17 武汉兴图新科电子股份有限公司 Network video monitoring device and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158390A (en) * 2010-08-31 2011-08-17 华为软件技术有限公司 Method and device for adjusting and processing access bandwidth
CN102469374A (en) * 2010-11-12 2012-05-23 北京信威通信技术股份有限公司 Cross-layer optimization method of video service in wireless communication
CN102547206A (en) * 2010-12-30 2012-07-04 中国移动通信集团公司 Method and device for determining video transmission parameter during video communication

Also Published As

Publication number Publication date
CN104025606A (en) 2014-09-03

Similar Documents

Publication Publication Date Title
US9001840B2 (en) Content caching in the radio access network (RAN)
US8812623B2 (en) Techniques to support selective mobile content optimization
US9390200B2 (en) Local caching device, system and method for providing content caching service
US9781224B2 (en) Content transmitting system, method for optimizing network traffic in the system, central control device and local caching device
WO2012079396A1 (en) Method, device and system for bandwidth control
KR101981285B1 (en) Contents delivery service system using contents identification, apparatus therefor and contents delivery service method thereof
US20170078917A1 (en) Protocol stack adaptation method and apparatus
US9794320B2 (en) Method and apparatus for providing web service in wireless communication system
KR20140021372A (en) Contents delivery service method and local cache apparatus using contents identification
WO2016000151A1 (en) Video delivery method, device and system
US9893991B2 (en) Device and method for processing data in content transmission system
KR101688835B1 (en) Apparatus and method for traffic offload in broadband wireless access system
WO2024037367A1 (en) Data transmission method, device, pdcp, base station and storage medium
WO2014101147A1 (en) Bandwidth parameter adjustment method, gateway and enforcement functional entity
WO2014123527A1 (en) Local media loading adaptation
KR101888982B1 (en) Method for providing content caching service in adapted streaming service and local caching device thereof
KR20150045693A (en) Method for distributing a content and apparatus thereof
KR102130301B1 (en) Method for distributing data in content delivery system and apparatus thereof
KR20180110565A (en) Method for controlling of contents transmition, apparatus thereof, computer-readable medium and program thereof
WO2011110010A1 (en) Method, apparatus and communication system for transmitting contents
KR101971595B1 (en) Method for providing content caching service in adapted streaming service and local caching device thereof
KR20180060844A (en) Method of selecting optimal network node for contents delivery service and apparatus therefor
KR101524470B1 (en) System for distributed mobile contents delivery network and Method for contents delivery using the same
KR101892489B1 (en) Charging method, apparatus for Contents Delivery Network
KR101381148B1 (en) Charging method, apparatus and system for Contents Delivery Network

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: 12890660

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: 12890660

Country of ref document: EP

Kind code of ref document: A1