[go: up one dir, main page]

WO2018036057A1 - 软件后台自适应升级方法及装置 - Google Patents

软件后台自适应升级方法及装置 Download PDF

Info

Publication number
WO2018036057A1
WO2018036057A1 PCT/CN2016/112704 CN2016112704W WO2018036057A1 WO 2018036057 A1 WO2018036057 A1 WO 2018036057A1 CN 2016112704 W CN2016112704 W CN 2016112704W WO 2018036057 A1 WO2018036057 A1 WO 2018036057A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
download request
download
tcp
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2016/112704
Other languages
English (en)
French (fr)
Inventor
江中央
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to EP16914077.9A priority Critical patent/EP3503501B1/en
Priority to US16/319,473 priority patent/US11039187B2/en
Publication of WO2018036057A1 publication Critical patent/WO2018036057A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/1059End-user terminal functionalities specially adapted for real-time communication
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/612Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for unicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/764Media network packet handling at the destination 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • 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/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44209Monitoring of downstream path of the transmission network originating from a server, e.g. bandwidth variations of a wireless network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/64322IP

Definitions

  • the present invention relates to the field of network terminals, and in particular, to a software background adaptive upgrade method and apparatus.
  • the software upgrade of intelligent terminals through the network has become the most commonly used software upgrade method.
  • the upgrade software needs to be downloaded to the smart terminal through the network.
  • the general system upgrade software is relatively large, and the download consumes a large bandwidth and takes a long time.
  • the system software is upgraded, it will occupy a large amount of network download bandwidth, which may cause the play to be stuck due to insufficient bandwidth, and the viewing of the program will be greatly affected. Therefore, some smart terminals currently monopolize system resources when performing network upgrade of system software.
  • users cannot perform other operations, such as watching network video programs.
  • the main purpose of the present invention is to provide a software background adaptive upgrade method and device, which are designed to provide a maximum network download bandwidth that can be used for downloading system upgrade software and improve user experience when network video viewing is smooth.
  • the present invention provides a software background adaptive network upgrade method, including:
  • the download request of the network video and the download request of the system upgrade software exist in the TCP download request, the download request of the network video and the download request of the system upgrade software are filtered out from the TCP download request;
  • the step of downloading and playing the network video on the TCP link according to the download request of the network video comprises:
  • the video file of the program is requested to be downloaded to the network video server through the TCP transmission protocol, and played.
  • the step of obtaining a network video data buffer quantity comprises:
  • the video file is analyzed to obtain a network video data buffer amount.
  • the step of analyzing the video file to obtain a cache amount of the network video data includes:
  • the amount of data that can be played by the downloaded video can be played longer than the duration of the user's viewing, and the network video plays smoothly;
  • the amount of data that can be played by the downloaded video can be played for less than the duration of the user's viewing, and the network video playback is stuck and buffered.
  • the step of controlling a download rate of the system upgrade software in the TCP link according to the video data buffer quantity comprises:
  • the download rate of the system upgrade software is controlled to be zero, wherein the N1 is a set value;
  • N1 is between 20 and 30, and N2 is between 90 and 100.
  • the invention also provides a device for software background adaptive upgrade, comprising:
  • the network download monitoring module is configured to monitor a TCP download request in the system after the system is powered on;
  • the network download monitoring module is further configured to: when the download request of the network video and the download request of the system upgrade software exist in the TCP download request, filter the download request and the system upgrade of the network video from the TCP download request. Software download request;
  • a network video playing module configured to download and play a network video on a TCP link according to the download request of the network video
  • a video file analysis module configured to obtain a network video data buffer amount according to the TCP download request
  • a system upgrade module configured to start downloading the system upgrade software according to the download request of the system upgrade software
  • the software download rate control module is configured to control a download rate of the system upgrade software in the TCP link according to the video data cache amount.
  • the network video playing module is further configured to: according to the download request of the network video, request a video file of the program to be downloaded to the network video server by using a TCP transmission protocol, and play the video file.
  • the video file analysis module is further configured to analyze an application layer protocol of the TCP download request; extract a URL address of the TCP download request; and when the file name of the TCP download request in the URL address is found, Obtaining a video file downloaded by the TCP link when the video file is suffixed; analyzing the video file to obtain a network video data buffer amount.
  • the amount of data that can be played by the downloaded video can be played longer than the duration of the user's viewing, and the network video plays smoothly;
  • the amount of data that can be played by the downloaded video can be played for less than the duration of the user's viewing, and the network video playback is stuck and buffered.
  • the software download rate control module is specifically configured to:
  • the download rate of the system upgrade software is controlled to be zero, wherein the N1 is a set value;
  • N1 is between 20 and 30, and N2 is between 90 and 100.
  • the software background adaptive upgrade method and device obtains a TCP download request in the system after the system is powered on, and filters the download request of the network video and the download request of the system upgrade software upgrade from the TCP download request, according to The downloading of the network video requests to play a network video, and obtains a network video data buffer quantity, and implements a downloading request of the system upgrade software and a download rate of the system upgrade software in the TCP link according to the video data buffer quantity.
  • the maximum network download bandwidth that can be used for downloading the upgrade software is provided, which effectively solves the problem that the network video playback and the upgrade software download occupy bandwidth resources, and improves the user experience.
  • FIG. 1 is a schematic flowchart of a first embodiment of a software background upgrade method of the present invention
  • FIG. 2 is a schematic flowchart of a second embodiment of a software background upgrade method of the present invention.
  • FIG. 3 is a schematic diagram of functional modules of a preferred embodiment of the software background adaptive upgrade apparatus of the present invention.
  • the solution of the embodiment of the present invention is mainly: monitoring the TCP download request in the system after the system is powered on, and when downloading the download request of the network video and the download request of the system upgrade software in the TCP download request, downloading from the TCP
  • the request downloads the download request of the network video and the download request of the system upgrade software, downloads and plays the network video on the TCP link according to the download request of the network video, and obtains the cache amount of the network video data, and starts the system according to the download request of the system upgrade software.
  • the download of the upgrade software controls the download rate of the system upgrade software in the TCP link according to the video data buffer amount. In this way, in the case of ensuring smooth network video viewing, the maximum network download bandwidth that can be used for downloading the upgrade software is provided, which effectively solves the problem that the network video playback and the upgrade software download occupy bandwidth resources, and improves the user experience.
  • the solution in this embodiment intercepts all TCP requests in the system kernel space, and filters out the network video download request and the system upgrade software download request. .
  • the download rate of the upgrade software is controlled according to the smoothness of the video play and the amount of the video data cache; In other cases, the rate of downloading the system upgrade software is not controlled. This can ensure that the system software can be upgraded without affecting the user's viewing of the video experience, effectively solving the problem of exclusive bandwidth in the system software upgrade process, and the user cannot perform any operation, thereby improving the user experience.
  • the present invention provides a software background adaptive upgrade method, as a first embodiment of the present invention, the method includes:
  • Step S1 after the system is powered on, monitor the TCP download request in the system;
  • the system can be a network terminal system such as a television, a computer, or a mobile phone.
  • a television is taken as an example.
  • a corresponding function module is set in the television.
  • the network download monitoring module, the network video playing module, the video file analyzing module, the system upgrading module, and the software download rate control module may be set in the television. .
  • the TV system sends different TCP download requests to the network server, and the TV network download monitoring module monitors different TCP download requests.
  • Step S2 when there is a download request of the network video and a download request of the system upgrade software in the TCP download request, the download request of the network video and the download request of the system upgrade software are filtered out from the TCP download request;
  • the television network download monitoring module monitors that the television system sends the network video download request and the system upgrade software download request to the network server
  • the television network download monitoring module downloads the network video download request and the system upgrade software download request. Filtered out from TCP download requests, where the web servers can be the same or different.
  • Step S3 downloading and playing the network video on the TCP link according to the download request of the network video, and obtaining the network video data buffer amount;
  • the TV network download monitoring module filters out the download request of the network video from the TCP download request
  • the TV network video playing module downloads and plays the network video in the TCP link according to the download request of the network video.
  • the network video playing module requests the network video server to download the video file of the program through the TCP transmission protocol during the user requesting to play the video, and plays the video file.
  • the TV video analysis module analyzes the network video file to obtain the network video data buffer amount.
  • Step S4 starting the download of the system upgrade software according to the download request of the system upgrade software
  • the TV network download monitoring module After the TV network download monitoring module filters out the download request of the system upgrade software from the TCP request, the TV system upgrade module starts the download of the system upgrade software according to the download request of the system upgrade software.
  • Step S5 controlling the download rate of the system upgrade software in the TCP link according to the network video data buffer amount.
  • the TV software download rate control module controls the download rate of the system upgrade software in the TCP link according to the network video data buffer amount analyzed by the TV video analysis module.
  • the system monitors the TCP download request in the system after the system is powered on, and filters out the download request from the TCP download request when monitoring the download request of the network video and the download request of the system upgrade software in the TCP download request.
  • the download request of the network video and the download request of the system upgrade software download and play the network video on the TCP link according to the download request of the network video, and obtain the cache amount of the network video data, and start the download of the system upgrade software according to the download request of the system upgrade software.
  • step S3 the step of downloading and playing the network video on the TCP link according to the download request of the network video may include:
  • Step S31 according to the download request of the network video, request the network video server to download the video file of the program through the TCP transmission protocol, and play the video file.
  • the step of obtaining the amount of network video data buffer includes:
  • Step S32 analyzing an application layer protocol of the TCP download request
  • Step S33 extracting a URL address of the TCP download request
  • Step S34 when it is found that the file name of the TCP download request in the URL address includes a video file suffix, the video file downloaded by the TCP link is acquired;
  • Step S35 analyzing the video file to obtain a network video data buffer amount.
  • the TV video analysis module first analyzes the application layer protocol in the TCP download request, and then extracts the URL address of the TCP download request, when the TV video analysis module finds the URL in the TCP address.
  • the file name of the download request includes a video file suffix
  • the video file downloaded by the TCP link is obtained, and the video file is analyzed to obtain the cache amount of the network video data.
  • the step of analyzing the video file to obtain the cache amount of the network video data may include:
  • Step S36 acquiring the video data segment display display time PTS1 of the initial recording of the video file, and the corresponding system time T1, and analyzing the code rate V1 of the video;
  • Step S37 acquiring the current time PTS of the video data of the video file, and the corresponding system time T;
  • D ⁇ 0 it indicates that the amount of data that can be played by the downloaded video is less than the duration of the user's viewing, and the network video playback is stuck and buffered.
  • the system upgrade module starts the download of the system upgrade software according to the download request of the system upgrade software, and starts the software download rate control module according to the network video data cache amount to the system.
  • the download rate of the upgrade software is controlled.
  • the TV video analysis module calculates that the current player can play the time D ⁇ 0, it indicates that the current network video play is stuck, in order to make the system upgrade software download does not occupy the network bandwidth, the system upgrade software is downloaded.
  • the rate control is zero, that is, the system upgrade software is temporarily stopped downloading;
  • N1 and N2 can be set according to actual experience.
  • N1 takes values from 20 to 30.
  • D ⁇ N1 The data cached by the player is relatively small, indicating that the user's home network is not ideal, and the user bandwidth is just enough for the user to watch the video. If the upgrade software is downloaded in the background, the download bandwidth of the player will be seized, due to the data cached by the player. The amount is relatively small, which is easy to cause the play to be stuck.
  • N2 is 90-100:
  • the player caches a certain amount of video data.
  • the background download of the upgrade software is started, although the download bandwidth of the player is preempted, but the background download rate of the upgrade software is controlled, and the player has a certain amount.
  • the video data is cached, so downloading the upgrade software does not affect the quality of the video experience.
  • the player caches a large amount of video data at this time, indicating that the user's home network status is very good, even if the upgrade software is downloaded at full speed, it will not affect the quality of the video experience.
  • the network download monitoring module and the software download rate control module obtain the data amount D of the player cache, the last time the D value is updated until the system upgrade software download is completed, or the video download is completed or the video download link is broken. open.
  • the present invention monitors the TCP download request in the system after the system is powered on, and when monitoring the download request of the network video and the download request of the system upgrade software simultaneously in the TCP download request, from the TCP
  • the download request filters out the download request of the network video and the download request of the system upgrade software, downloads and plays the network video on the TCP link according to the download request of the network video, and obtains the cache amount of the network video data, and starts according to the download request of the system upgrade software.
  • the system upgrade software is downloaded, and the download rate of the system upgrade software in the TCP link is controlled according to the video data buffer amount. It realizes the maximum network download bandwidth that can be used for downloading upgrade software while ensuring smooth network video viewing, effectively solves the problem that network video playback and upgrade software download consumes bandwidth resources, and improves user experience.
  • the present invention provides a software background adaptive upgrade device corresponding thereto.
  • the device includes: a network download monitoring module 10, a network video playing module 20, a video file analyzing module 30, a system upgrading module 40, and a software download rate control module 50.
  • the network download monitoring module 10 is configured to monitor a TCP download request in the system after the system is powered on; in addition, when the network download request and the system upgrade software download request exist simultaneously in the TCP download request, The download request of the network video and the download request of the system upgrade software are filtered out from the TCP download request;
  • the network video playing module 20 is configured to download and play the network video on the TCP link according to the download request of the network video;
  • the video file analysis module 30 is configured to obtain a network video data buffer amount according to the TCP download request.
  • the system upgrade module 40 is configured to start downloading the system upgrade software according to the download request of the system upgrade software
  • the software download rate control module 50 is configured to control a download rate of the system upgrade software in the TCP link according to the video data buffer amount.
  • the system can be a network terminal system such as a television, a computer or a mobile phone.
  • the television is taken as an example.
  • the television network download monitoring module 10 is started to monitor the TCP download request in the system, and the television network download monitoring module 10 monitors the television system to the network.
  • the server sends the download request of the network video and the download request of the system upgrade software
  • the television network download monitoring module 10 filters the download request of the network video and the download request of the system upgrade software from the TCP download request, wherein the network server can The same can also be different.
  • the TV network video playing module 20 downloads and plays the network video on the TCP link according to the download request of the network video. Specifically, the TV network video playing module 20 sends the video to the network video server through the TCP transmission protocol during the user requesting to play the video. Request to download the video file of the program and play it.
  • the TV video file analyzing module 30 analyzes the network video file to obtain the network video data buffer amount.
  • the TV system upgrade module 40 starts the download of the system upgrade software according to the download request of the system upgrade software.
  • the television software download rate control module 50 controls the download rate of the system upgrade software in the TCP link based on the video data buffer amount.
  • the invention downloads the monitoring module 10 through the network to monitor the TCP download request in the system when the system is powered on.
  • the download request of the network video and the download request of the system upgrade software exist in the TCP download request, the network video is filtered out from the TCP download request.
  • the download request and the download request of the system upgrade software the network video play module 20 downloads and plays the network video on the TCP link according to the download request of the network video; the video file analysis module 30 obtains the cache amount of the network video data according to the TCP download request; The module 40 starts the download of the system upgrade software according to the download request of the system upgrade software; the software download rate control module 50 controls the download rate of the system upgrade software in the TCP link according to the video data cache amount, thereby realizing the situation that the network video viewing is smooth.
  • the maximum network download bandwidth that can be used for downloading the upgrade software effectively solves the problem that the network video playback and the upgrade software download occupy bandwidth resources, thereby improving the user experience.
  • the TV network video playing module 20 requests downloading from the network video server according to the download request of the network video through the TCP transmission protocol.
  • the video file of the show is played.
  • the TV video file analysis module 30 analyzes the application layer protocol of the TCP download request, and extracts the URL address of the TCP download request according to the application layer protocol, when the URL address
  • the file name of the TCP download request includes the video file suffix
  • the video file downloaded by the TCP link is acquired and the video file is analyzed to obtain the network video data buffer amount.
  • D ⁇ 0 it indicates that the amount of data that can be played by the downloaded video is less than the duration of the user's viewing, and the network video playback is stuck and buffered.
  • the startup TV software download rate control module 50 controls the download rate of the system upgrade software according to the video data cache amount:
  • the TV video analysis module calculates that the current player can play the time D ⁇ 0, it indicates that the current network video play is stuck, in order to make the system upgrade software download does not occupy the network bandwidth, the system upgrade software is downloaded.
  • the rate control is zero, that is, the system upgrade software is temporarily stopped downloading;
  • N1 and N2 can be set according to actual experience.
  • N1 takes values from 20 to 30.
  • D ⁇ N1 The data cached by the player is relatively small, indicating that the user's home network is not ideal, and the user bandwidth is just enough for the user to watch the video. If the upgrade software is downloaded in the background, the download bandwidth of the player will be seized, due to the data cached by the player. The amount is relatively small, which is easy to cause the play to be stuck.
  • N2 is 90-100:
  • the player caches a certain amount of video data.
  • the background download of the upgrade software is started, although the download bandwidth of the player is preempted, but the background download rate of the upgrade software is controlled, and the player has a certain amount.
  • the video data is cached, so downloading the upgrade software does not affect the quality of the video experience.
  • the player caches a large amount of video data at this time, indicating that the user's home network status is very good, even if the upgrade software is downloaded at full speed, it will not affect the quality of the video experience.
  • the present invention monitors the TCP download request in the system when the system is powered on by the network download monitoring module 10, and downloads the request from the TCP when there is a download request of the network video and a download request of the system upgrade software in the TCP download request.
  • the download request of the network video and the download request of the system upgrade software are filtered out;
  • the network video play module 20 downloads and plays the network video on the TCP link according to the download request of the network video;
  • the video file analysis module 30 obtains the network video data according to the TCP download request.
  • the system upgrade module 40 starts the download of the system upgrade software according to the download request of the system upgrade software; the software download rate control module 50 controls the download rate of the system upgrade software in the TCP link according to the video data cache amount, and realizes the guarantee network.
  • the maximum network download bandwidth that can be used for downloading the upgrade software is provided, which effectively solves the problem that the network video playback and the upgrade software download occupy bandwidth resources, and improves the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Stored Programmes (AREA)

Abstract

本发明涉及一种软件后台自适应升级方法及装置,该方法包括:在系统开机后,监控系统中的TCP下载请求;在TCP下载请求中同时存在网络视频的下载请求和系统升级软件的下载请求时,从TCP下载请求中过滤出网络视频的下载请求和系统升级软件的下载请求;根据网络视频的下载请求在TCP链路下载并播放网络视频,并获得网络视频数据缓存量;根据系统升级软件的下载请求启动系统升级软件的下载;根据视频数据缓存量控制TCP链路中的系统升级软件的下载速率。本发明在保证网络视频观看流畅的情况下,为升级软件的下载提供能够使用的最大网络下载带宽,有效地解决了网络视频播放与升级软件下载占用带宽资源的问题,提高了用户体验。

Description

软件后台自适应升级方法及装置
技术领域
本发明涉及网络终端领域,尤其涉及一种软件后台自适应升级方法及装置。
背景技术
目前,通过网络来进行智能终端的软件升级已经成为当前最常用的软件升级方式。软件的网络升级,需要将升级软件通过网络下载到智能终端本地,一般的系统升级软件比较大,下载占用带宽大,占用时间长。当用户正在观看网络视频节目时,如果进行系统软件的升级,将占用大量的网络下载带宽,可能引起因为带宽不够而导致播放卡顿,节目的观看将受到极大的影响。因此,目前一些智能终端在进行系统软件的网络升级时,都是独占系统资源,在升级软件的下载过程中,用户无法进行其它操作,例如观看网络视频节目。
发明内容
本发明的主要目的在于提供一种软件后台自适应升级方法及装置,旨在保证网络视频观看流畅的情况下,为系统升级软件的下载提供能够使用的最大网络下载带宽,提高用户体验。
为了达到上述目的,本发明提出了一种软件后台自适应网络升级方法,包括:
在系统开机后,监控系统中的TCP下载请求;
在所述TCP下载请求中同时存在网络视频的下载请求和系统升级软件的下载请求时,从所述TCP下载请求中过滤出网络视频的下载请求和系统升级软件的下载请求;
根据所述网络视频的下载请求在TCP链路下载并播放网络视频,并获得网络视频数据缓存量;
根据所述系统升级软件的下载请求启动系统升级软件的下载;
根据所述视频数据缓存量控制TCP链路中的系统升级软件的下载速率。
优选地,所述根据所述网络视频的下载请求在TCP链路下载并播放网络视频的步骤包括:
根据所述网络视频的下载请求,通过TCP传输协议向网络视频服务器请求下载节目的视频文件,并进行播放。
优选地,所述获得网络视频数据缓存量的步骤包括:
分析所述TCP下载请求的应用层协议;
提取所述TCP下载请求的URL地址;
当发现所述URL地址中所述TCP下载请求的文件名包含视频文件后缀时,获取所述TCP链路下载的视频文件;
对所述视频文件进行分析,获取网络视频数据缓存量。
优选地,所述对所述视频文件进行分析,获取网络视频数据缓存量的步骤包括:
获取所述视频文件的初始记录的视频数据片段播放显示时间PTS1,以及相对应的系统时间T1,并分析出视频的码率V1;
获取所述视频文件的视频数据的当前时间PTS,以及相对应的系统时间T;
计算出当前播放器缓存数据所能播放的时间D,其中,D=(PTS-PTS1)-(T-T1);
当D>0时,下载视频的数据量所能播放的时长大于用户观看的时长,网络视频播放流畅;
当D<0时,下载视频的数据量所能播放的时长小于用户观看的时长,网络视频播放出现卡顿及缓冲。
优选地,所述根据所述视频数据缓存量控制TCP链路中的系统升级软件的下载速率的步骤包括:
当D<N1时,将系统升级软件的下载速率控制为零,其中,所述N1为设定值;
当N2>D>N1时,将系统升级软件的下载速率控制为V,其中V=D/(2*V1),其中,所述N2为设定值;
当D>N2时,不对系统升级软件的下载速率进行控制。
优选地,N1取值在20-30,N2取值在90-100。
本发明还提供了一种软件后台自适应升级的装置,包括:
网络下载监控模块,用于在系统开机后,监控系统中的TCP下载请求;
所述网络下载监控模块,还用于在所述TCP下载请求中同时存在网络视频的下载请求和系统升级软件的下载请求时,从所述TCP下载请求中过滤出网络视频的下载请求和系统升级软件的下载请求;
网络视频播放模块,用于根据所述网络视频的下载请求在TCP链路下载并播放网络视频;
视频文件分析模块,用于根据所述TCP下载请求获得网络视频数据缓存量;
系统升级模块,用于根据所述系统升级软件的下载请求启动系统升级软件的下载;
软件下载速率控制模块,用于根据所述视频数据缓存量控制TCP链路中的系统升级软件的下载速率。
优选地,所述网络视频播放模块,还用于根据所述网络视频的下载请求,通过TCP传输协议向网络视频服务器请求下载节目的视频文件,并进行播放。
优选地,所述视频文件分析模块,还用于分析所述TCP下载请求的应用层协议;提取所述TCP下载请求的URL地址;当发现所述URL地址中所述TCP下载请求的文件名包含视频文件后缀时,获取所述TCP链路下载的视频文件;对所述视频文件进行分析,获取网络视频数据缓存量。
优选地,所述视频文件分析模块,还用于获取所述视频文件的初始记录的视频数据片段播放显示时间PTS1,以及相对应的系统时间T1,并分析出视频的码率V1;获取所述视频文件的视频数据的当前时间PTS,以及相对应的系统时间T;计算出当前播放器缓存数据所能播放的时间D,其中,D=(PTS-PTS1)-(T-T1);
当D>0时,下载视频的数据量所能播放的时长大于用户观看的时长,网络视频播放流畅;
当D<0时,下载视频的数据量所能播放的时长小于用户观看的时长,网络视频播放出现卡顿及缓冲。
优选地,所述软件下载速率控制模块具体用于:
当D<N1时,将系统升级软件的下载速率控制为零,其中,所述N1为设定值;
当N2>D>N1时,将系统升级软件的下载速率控制为V,其中V=D/(2*V1),其中,所述N2为设定值;
当D>N2时,不对系统升级软件的下载速率进行控制。
优选地,N1取值在20-30,N2取值在90-100。
本发明提出的软件后台自适应升级方法及装置,通过系统开机后,获得系统中的TCP下载请求,从所述TCP下载请求中过滤出网络视频的下载请求和系统升级软件升级的下载请求,根据所述网络视频的下载请求播放网络视频,并获得网络视频数据缓存量,根据所述系统升级软件的下载请求以及所述视频数据缓存量控制TCP链路中的系统升级软件的下载速率,实现了在保证网络视频观看流畅的情况下,为升级软件的下载提供能够使用的最大网络下载带宽,有效地解决了网络视频播放与升级软件下载占用带宽资源的问题,提高了用户体验。
附图说明
图1是本发明软件后台自适应升级方法第一实施例的流程示意图;
图2是本发明软件后台自适应升级方法第二实施例的流程示意图;
图3是本发明软件后台自适应升级装置较佳实施例的功能模块示意图。
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明实施例的解决方案主要是:在系统开机后,监控系统中的TCP下载请求,当监控到在TCP下载请求中同时存在网络视频的下载请求和系统升级软件的下载请求时,从TCP下载请求中过滤出网络视频的下载请求和系统升级软件的下载请求,根据网络视频的下载请求在TCP链路下载并播放网络视频,并获得网络视频数据缓存量,根据系统升级软件的下载请求启动系统升级软件的下载,根据视频数据缓存量控制TCP链路中的系统升级软件的下载速率。如此,实现了在保证网络视频观看流畅的情况下,为升级软件的下载提供能够使用的最大网络下载带宽,有效地解决了网络视频播放与升级软件下载占用带宽资源的问题,提高了用户体验。
考虑目前的网络视频播放及系统升级软件的下载都是基于TCP传输协议,因此,本实施例方案在系统内核空间中截获所有的TCP请求,并过滤出网络视频下载请求和系统升级软件的下载请求。在同时检测到网络视频的下载请求和系统升级软件的下载请求后,根据视频播放的流畅程度、视频数据缓存量来控制升级软件的下载速率; 其它情况下,则不对系统升级软件的下载进行速率控制。这样既能保证在不影响用户观看视频体验中,能够进行系统软件的升级,有效解决了系统软件升级过程中独占带宽,用户不能进行任何操作的问题,提升了用户体验。
具体地,参照图1所示,本发明提供了一种软件后台自适应升级方法,作为本发明的第一种实施例,该方法包括:
步骤S1,在系统开机后,监控系统中的TCP下载请求;
其中,系统可以为电视机、电脑或者手机等网络终端系统,本实施例以电视机为例。
为实现本发明实施例方案,在电视机中设置相应的功能模块,比如,该电视机中可以设置网络下载监控模块、网络视频播放模块、视频文件分析模块、系统升级模块以及软件下载速率控制模块。
在电视机系统开机后,立刻启动网络下载监控模块来监控系统中所有的TCP下载请求。
电视机系统向网络服务器发送不同的TCP下载请求,电视机网络下载监控模块对不同的TCP下载请求进行监控。
步骤S2,在TCP下载请求中同时存在网络视频的下载请求和系统升级软件的下载请求时,从TCP下载请求中过滤出网络视频的下载请求和系统升级软件的下载请求;
当电视机网络下载监控模块监控到电视机系统向网络服务器发送了网络视频的下载请求和系统升级软件的下载请求时,电视机网络下载监控模块将网络视频的下载请求和系统升级软件的下载请求从TCP下载请求中过滤出来,其中,网络服务器可以相同也可以不相同。
步骤S3,根据网络视频的下载请求在TCP链路下载并播放网络视频,并获得网络视频数据缓存量;
电视机网络下载监控模块将网络视频的下载请求从TCP下载请求过滤出来后,电视机网络视频播放模块根据网络视频的下载请求在TCP链路中下载并播放网络视频。
具体地,网络视频播放模块在用户请求播放视频的过程中,通过TCP传输协议向网络视频服务器请求下载节目的视频文件,并进行播放。
同时,电视机视频分析模块对网络视频文件进行分析,得到网络视频数据缓存量。
步骤S4,根据系统升级软件的下载请求启动系统升级软件的下载;
电视机网络下载监控模块将系统升级软件的下载请求从TCP请求过滤出来后,电视机系统升级模块根据系统升级软件的下载请求启动系统升级软件的下载。
步骤S5,根据网络视频数据缓存量控制TCP链路中的系统升级软件的下载速率。
电视机系统升级模块启动系统升级软件的下载后,电视机软件下载速率控制模块根据电视机视频分析模块分析得到的网络视频数据缓存量控制TCP链路中的系统升级软件的下载速率。
本发明通过上述方案,在系统开机后,监控系统中的TCP下载请求,当监控到在TCP下载请求中同时存在网络视频的下载请求和系统升级软件的下载请求时,从TCP下载请求中过滤出网络视频的下载请求和系统升级软件的下载请求,根据网络视频的下载请求在TCP链路下载并播放网络视频,并获得网络视频数据缓存量,根据系统升级软件的下载请求启动系统升级软件的下载,根据视频数据缓存量控制TCP链路中的系统升级软件的下载速率。实现了在保证网络视频观看流畅的情况下,为升级软件的下载提供能够使用的最大网络下载带宽,有效地解决了网络视频播放与升级软件下载占用带宽资源的问题,提高了用户体验。
作为本发明的一种优选实施例,如图2所示,步骤S3,根据网络视频的下载请求在TCP链路下载并播放网络视频的步骤可以包括:
步骤S31,根据网络视频的下载请求,通过TCP传输协议向网络视频服务器请求下载节目的视频文件,并进行播放。
作为本发明的一种优选实施例,获得网络视频数据缓存量的步骤包括:
步骤S32,分析所述TCP下载请求的应用层协议;
步骤S33,提取所述TCP下载请求的URL地址;
步骤S34,当发现所述URL地址中所述TCP下载请求的文件名包含视频文件后缀时,获取所述TCP链路下载的视频文件;
步骤S35,对视频文件进行分析,获取网络视频数据缓存量。
具体地,为了获得网络视频数据缓存量,电视机视频分析模块首先要对TCP下载请求中的应用层协议进行分析,然后提取TCP下载请求的URL地址,当电视机视频分析模块发现URL地址中TCP下载请求的文件名包含有视频文件后缀时,获取TCP链路下载的视频文件,并对视频文件进行分析,获取网络视频数据缓存量。
更为具体地,如图2所示,对视频文件进行分析,获取网络视频数据缓存量的步骤可以包括:
步骤S36,获取所述视频文件的初始记录的视频数据片段播放显示时间PTS1,以及相对应的系统时间T1,并分析出视频的码率V1;
步骤S37,获取所述视频文件的视频数据的当前时间PTS,以及相对应的系统时间T;
步骤S38,计算出当前播放器缓存数据所能播放的时间D,其中,D=(PTS-PTS1)-(T-T1)。
电视机视频分析模块获取到TCP链路下载的视频文件后,获取视频文件的初始记录的视频数据片段播放显示时间PTS1以及与其相对应的系统时间T1,并分析出该视频的码率V1,获取视频文件的当前时间PTS以及与其相对应的系统时间T,然后计算出当前播放器所能播放的时间D,即播放器的网络视频数据缓存量,其中,D=(PTS-PTS1)-(T-T1);
当D>0时,说明下载视频的数据量所能播放的时长大于用户观看的时长,网络视频播放流畅;
当D<0时,说明下载视频的数据量所能播放的时长小于用户观看的时长,网络视频播放出现卡顿及缓冲。
网络下载监控模块监控到TCP请求中存在系统升级软件的下载请求时,系统升级模块根据系统升级软件的下载请求启动系统升级软件的下载,并启动软件下载速率控制模块根据网络视频数据缓存量对系统升级软件的下载速率进行控制。
具体地,当电视机视频分析模块计算出当前播放器所能播放的时间D<0时,说明当前网络视频播放卡顿,为了使得系统升级软件的下载不占用网络带宽,将系统升级软件的下载速率控制为零,即暂时停止下载系统升级软件;
当N1>D>0时,说明当前视频播放流畅,但是网络状况不好,将系统升级软件的下载速率控制为零,即暂时停止下载系统升级软件;
当N2>D>N1时,说明当前视频播放流畅,网络状况较好,将系统升级软件的下载速率控制为V,其中V=D/(2*V1);
当D>N2时,说明当前视频播放流畅,网络状况非常理想,则不对系统升级软件的下载速率进行控制。
其中,N1 和N2可以根据实际经验进行设定。
具体地,在实践过程中:
1、N1取值在20-30,当D < N1时, 播放器缓存的数据比较少,说明用户家庭网络不是很理想,用户带宽刚好够用户观看视频,此时如果在后台进行升级软件的下载,则会抢占播放器的下载带宽,由于播放器缓存的数据量比较少,容易引起播放卡顿。
2、N2取值在90-100:
2.1 当N1< D <N2时,播放器缓存了一定量的视频数据,此时启动升级软件的后台下载,虽然会抢占播放器的下载带宽,但是由于对升级软件的后台下载速率进行了控制,且播放器具有一定量的视频数据缓存,因此,升级软件的下载不会影响视频的体验质量。
2.2 当D>N2时,此时播放器缓存了大量的视频数据,说明用户家庭网络状况非常理想,即使全速下载升级软件,也不会影响到视频体验的质量。
需要说明的是,网络下载监控模块及软件下载速率控制模块在获取到播放器缓存的数据量D后,更新上一次获取D值,直到系统升级软件下载完成,或者视频下载完成或者视频下载链接断开。
综上所述,本发明通过上述方案,在系统开机后,监控系统中的TCP下载请求,当监控到在TCP下载请求中同时存在网络视频的下载请求和系统升级软件的下载请求时,从TCP下载请求中过滤出网络视频的下载请求和系统升级软件的下载请求,根据网络视频的下载请求在TCP链路下载并播放网络视频,并获得网络视频数据缓存量,根据系统升级软件的下载请求启动系统升级软件的下载,根据视频数据缓存量控制TCP链路中的系统升级软件的下载速率。实现了在保证网络视频观看流畅的情况下,为升级软件的下载提供能够使用的最大网络下载带宽,有效地解决了网络视频播放与升级软件下载占用带宽资源的问题,提高了用户体验。
基于上述软件后台自适应升级的方法,参照图3所示,本发明提供了一种与其相对应的软件后台自适应升级装置。该装置包括:网络下载监控模块10、网络视频播放模块20、视频文件分析模块30、系统升级模块40及软件下载速率控制模块50。
其中,网络下载监控模块10,用于在系统开机后,监控系统中的TCP下载请求;除此,还用于在TCP下载请求中同时存在网络视频的下载请求和系统升级软件的下载请求时,从TCP下载请求中过滤出网络视频的下载请求和系统升级软件的下载请求;
网络视频播放模块20,用于根据网络视频的下载请求在TCP链路下载并播放网络视频;
视频文件分析模块30,用于根据TCP下载请求获得网络视频数据缓存量;
系统升级模块40,用于根据系统升级软件的下载请求启动系统升级软件的下载;
软件下载速率控制模块50,用于根据视频数据缓存量控制TCP链路中的系统升级软件的下载速率。
其中,系统可以为电视机、电脑或者手机等网络终端系统。本实施例以电视机为例,在电视机系统开机后,立刻启动电视机网络下载监控模块10对系统中的TCP下载请求进行监控,当电视机网络下载监控模块10监控到电视机系统向网络服务器发送了网络视频的下载请求和系统升级软件的下载请求时,电视机网络下载监控模块10将网络视频的下载请求和系统升级软件的下载请求从TCP下载请求中过滤出来,其中,网络服务器可以相同也可以不相同。
电视机网络视频播放模块20根据网络视频的下载请求在TCP链路下载并播放网络视频,具体地,电视机网络视频播放模块20在用户请求播放视频的过程中,通过TCP传输协议向网络视频服务器请求下载节目的视频文件,并进行播放。
电视机网络视频播放模块20获得网络视频文件后,电视机视频文件分析模块30对网络视频文件进行分析,获得网络视频数据缓存量。电视机系统升级模块40根据系统升级软件的下载请求启动系统升级软件的下载。电视机软件下载速率控制模块50根据视频数据缓存量控制TCP链路中的系统升级软件的下载速率。
本发明通过网络下载监控模块10在系统开机时监控系统中的TCP下载请求,当TCP下载请求中同时存在网络视频的下载请求和系统升级软件的下载请求时,从TCP下载请求中过滤出网络视频的下载请求和系统升级软件的下载请求;网络视频播放模块20根据网络视频的下载请求在TCP链路下载并播放网络视频;视频文件分析模块30根据TCP下载请求获得网络视频数据缓存量;系统升级模块40根据系统升级软件的下载请求启动系统升级软件的下载;软件下载速率控制模块50根据视频数据缓存量控制TCP链路中的系统升级软件的下载速率,实现了在保证网络视频观看流畅的情况下,为升级软件的下载提供能够使用的最大网络下载带宽,有效地解决了网络视频播放与升级软件下载占用带宽资源的问题,提高了用户体验。
作为本发明的一种优选实施方式,电视机网络下载监控模块10监控到网络视频的下载请求后,电视机网络视频播放模块20根据网络视频的下载请求,通过TCP传输协议向网络视频服务器请求下载节目的视频文件,并进行播放。
电视机网络下载监控模块10监控到网络视频的下载请求后,电视机视频文件分析模块30对TCP下载请求的应用层协议进行分析,并根据应用层协议提取TCP下载请求的URL地址,当URL地址中TCP下载请求的文件名包含视频文件后缀时,获取TCP链路下载的视频文件并对视频文件进行分析,获取网络视频数据缓存量。
具体地,电视机视频文件分析模块30对视频文件进行分析时,首先获取视频文件的初始记录的视频数据片段播放显示时间PTS1,以及与其相对应的系统时间T1,并分析出视频的码率V1;然后获取视频文件的视频数据的当前时间PTS,以及相对应的系统时间T,并计算出当前播放器缓存数据所能播放的时间D,其中,D=(PTS-PTS1)-(T-T1);
当D>0时,说明下载视频的数据量所能播放的时长大于用户观看的时长,网络视频播放流畅;
当D<0时,说明下载视频的数据量所能播放的时长小于用户观看的时长,网络视频播放出现卡顿及缓冲。
电视机网络下载监控模块10监控到同时存在网络视频的下载请求和系统升级软件的下载请求后,启动电视机软件下载速率控制模块50根据视频数据缓存量对系统升级软件的下载速率进行控制:
具体地,当电视机视频分析模块计算出当前播放器所能播放的时间D<0时,说明当前网络视频播放卡顿,为了使得系统升级软件的下载不占用网络带宽,将系统升级软件的下载速率控制为零,即暂时停止下载系统升级软件;
当N1>D>0时,说明当前视频播放流畅,但是网络状况不好,将系统升级软件的下载速率控制为零,即暂时停止下载系统升级软件;
当N2>D>N1时,说明当前视频播放流畅,网络状况较好,将系统升级软件的下载速率控制为V,其中V=D/(2*V1);
当D>N2时,说明当前视频播放流畅,网络状况非常理想,则不对系统升级软件的下载速率进行控制。
其中,N1 和N2可以根据实际经验进行设定。
具体地,在实践过程中:
1、N1取值在20-30,当D < N1时, 播放器缓存的数据比较少,说明用户家庭网络不是很理想,用户带宽刚好够用户观看视频,此时如果在后台进行升级软件的下载,则会抢占播放器的下载带宽,由于播放器缓存的数据量比较少,容易引起播放卡顿。
2、N2取值在90-100:
2.1 当N1< D <N2时,播放器缓存了一定量的视频数据,此时启动升级软件的后台下载,虽然会抢占播放器的下载带宽,但是由于对升级软件的后台下载速率进行了控制,且播放器具有一定量的视频数据缓存,因此,升级软件的下载不会影响视频的体验质量。
2.2 当D>N2时,此时播放器缓存了大量的视频数据,说明用户家庭网络状况非常理想,即使全速下载升级软件,也不会影响到视频体验的质量。
综上所述,本发明通过网络下载监控模块10在系统开机时监控系统中的TCP下载请求,当TCP下载请求中同时存在网络视频的下载请求和系统升级软件的下载请求时,从TCP下载请求中过滤出网络视频的下载请求和系统升级软件的下载请求;网络视频播放模块20根据网络视频的下载请求在TCP链路下载并播放网络视频;视频文件分析模块30根据TCP下载请求获得网络视频数据缓存量;系统升级模块40根据系统升级软件的下载请求启动系统升级软件的下载;软件下载速率控制模块50根据视频数据缓存量控制TCP链路中的系统升级软件的下载速率,实现了在保证网络视频观看流畅的情况下,为升级软件的下载提供能够使用的最大网络下载带宽,有效地解决了网络视频播放与升级软件下载占用带宽资源的问题,提高了用户体验。
以上所述仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (14)

  1. 一种软件后台自适应升级方法,其特征在于,包括:
    在系统开机后,监控系统中的TCP下载请求;
    在所述TCP下载请求中同时存在网络视频的下载请求和系统升级软件的下载请求时,从所述TCP下载请求中过滤出网络视频的下载请求和系统升级软件的下载请求;
    根据所述网络视频的下载请求在TCP链路下载并播放网络视频,并获得网络视频数据缓存量;
    根据所述系统升级软件的下载请求启动系统升级软件的下载;
    根据所述视频数据缓存量控制TCP链路中的系统升级软件的下载速率。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述网络视频的下载请求在所述TCP链路下载并播放网络视频的步骤包括:
    根据所述网络视频的下载请求,通过TCP传输协议向网络视频服务器请求下载节目的视频文件,并进行播放。
  3. 根据权利要求1所述的方法,其特征在于,所述获得网络视频数据缓存量的步骤包括:
    分析所述TCP下载请求的应用层协议;
    提取所述TCP下载请求的URL地址;
    当发现所述URL地址中所述TCP下载请求的文件名包含视频文件后缀时,获取所述TCP链路下载的视频文件;
    对所述视频文件进行分析,获取网络视频数据缓存量。
  4. 根据权利要求3所述的方法,其特征在于,所述对所述视频文件进行分析,获取网络视频数据缓存量的步骤包括:
    获取所述视频文件的初始记录的视频数据片段播放显示时间PTS1,以及相对应的系统时间T1,并分析出视频的码率V1;
    获取所述视频文件的视频数据的当前时间PTS,以及相对应的系统时间T;
    计算出当前播放器缓存数据所能播放的时间D,其中,D=(PTS-PTS1)-(T-T1);
    当D>0时,下载视频的数据量所能播放的时长大于用户观看的时长,网络视频播放流畅;
    当D<0时,下载视频的数据量所能播放的时长小于用户观看的时长,网络视频播放出现卡顿及缓冲。
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述视频数据缓存量控制TCP链路中的系统升级软件的下载速率的步骤包括:
    当D<N1时,将系统升级软件的下载速率控制为零,其中,所述N1为设定值;
    当N2>D>N1时,将系统升级软件的下载速率控制为V,其中V=D/(2*V1),其中,所述N2为设定值;
    当D>N2时,不对系统升级软件的下载速率进行控制。
  6. 根据权利要求3所述的方法,其特征在于,所述根据所述网络视频的下载请求在所述TCP链路下载并播放网络视频的步骤包括:
    根据所述网络视频的下载请求,通过TCP传输协议向网络视频服务器请求下载节目的视频文件,并进行播放。
  7. 根据权利要求5所述的方法,其特征在于,N1取值在20-30,N2取值在90-100。
  8. 一种软件后台自适应升级装置,其特征在于,包括:
    网络下载监控模块,用于在系统开机后,监控系统中的TCP下载请求;
    所述网络下载监控模块,还用于在所述TCP下载请求中同时存在网络视频的下载请求和系统升级软件的下载请求时,从所述TCP下载请求中过滤出网络视频的下载请求和系统升级软件的下载请求;
    网络视频播放模块,用于根据所述网络视频的下载请求在TCP链路下载并播放网络视频;
    视频文件分析模块,用于根据所述TCP下载请求获得网络视频数据缓存量;
    系统升级模块,用于根据所述系统升级软件的下载请求启动系统升级软件的下载;
    软件下载速率控制模块,用于根据所述视频数据缓存量控制TCP链路中的系统升级软件的下载速率。
  9. 根据权利要求8所述的软件后台自适应升级的装置,其特征在于, 所述网络视频播放模块,还用于根据所述网络视频的下载请求,通过TCP传输协议向网络视频服务器请求下载节目的视频文件,并进行播放。
  10. 根据权利要求8所述的软件后台自适应升级的装置,其特征在于,
    所述视频文件分析模块,还用于分析所述TCP下载请求的应用层协议;提取所述TCP下载请求的URL地址;当发现所述URL地址中所述TCP下载请求的文件名包含视频文件后缀时,获取所述TCP链路下载的视频文件;对所述视频文件进行分析,获取网络视频数据缓存量。
  11. 根据权利要求10所述的软件后台自适应升级的装置,其特征在于,
    所述视频文件分析模块,还用于获取所述视频文件的初始记录的视频数据片段播放显示时间PTS1,以及相对应的系统时间T1,并分析出视频的码率V1;获取所述视频文件的视频数据的当前时间PTS,以及相对应的系统时间T;计算出当前播放器缓存数据所能播放的时间D,其中,D=(PTS-PTS1)-(T-T1);
    当D>0时,下载视频的数据量所能播放的时长大于用户观看的时长,网络视频播放流畅;
    当D<0时,下载视频的数据量所能播放的时长小于用户观看的时长,网络视频播放出现卡顿及缓冲。
  12. 根据权利要求11所述的软件后台自适应升级的装置,其特征在于,
    所述软件下载速率控制模块具体用于:
    当D<N1时,将系统升级软件的下载速率控制为零,其中,所述N1为设定值;
    当N2>D>N1时,将系统升级软件的下载速率控制为V,其中V=D/(2*V1),其中,所述N2为设定值;
    当D>N2时,不对系统升级软件的下载速率进行控制。
  13. 根据权利要求10所述的软件后台自适应升级的装置,其特征在于, 所述网络视频播放模块,还用于根据所述网络视频的下载请求,通过TCP传输协议向网络视频服务器请求下载节目的视频文件,并进行播放。
  14. 根据权利要求12所述的软件后台自适应升级的装置,其特征在于, N1取值在20-30,N2取值在90-100。
PCT/CN2016/112704 2016-08-22 2016-12-28 软件后台自适应升级方法及装置 Ceased WO2018036057A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP16914077.9A EP3503501B1 (en) 2016-08-22 2016-12-28 Method and device for background adaptive upgrading of software
US16/319,473 US11039187B2 (en) 2016-08-22 2016-12-28 Self-adaptive software background update method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610698777.9 2016-08-22
CN201610698777.9A CN106331084B (zh) 2016-08-22 2016-08-22 软件后台自适应升级方法及装置

Publications (1)

Publication Number Publication Date
WO2018036057A1 true WO2018036057A1 (zh) 2018-03-01

Family

ID=57741745

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/112704 Ceased WO2018036057A1 (zh) 2016-08-22 2016-12-28 软件后台自适应升级方法及装置

Country Status (4)

Country Link
US (1) US11039187B2 (zh)
EP (1) EP3503501B1 (zh)
CN (1) CN106331084B (zh)
WO (1) WO2018036057A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106982177B (zh) * 2017-03-31 2020-01-14 Oppo广东移动通信有限公司 升级控制方法、装置及终端
CN111479261B (zh) * 2019-01-24 2022-11-18 成都鼎桥通信技术有限公司 一种ota流量自适应管理方法和设备
CN109819336B (zh) * 2019-01-31 2020-12-04 湖南快乐阳光互动娱乐传媒有限公司 一种基于播放缓存大小分片下载的方法及系统
JP2020135344A (ja) * 2019-02-19 2020-08-31 富士ゼロックス株式会社 ソフトウェア提供装置及びプログラム
CN109639842B (zh) * 2019-02-26 2021-09-28 四川爱联科技股份有限公司 Nb-iot设备软件升级系统及方法
CN114666626A (zh) * 2020-12-23 2022-06-24 深圳Tcl新技术有限公司 一种数据更新方法、智能终端及存储介质
CN116233105A (zh) * 2021-12-06 2023-06-06 中兴通讯股份有限公司 网元版本下载方法、网元、电子设备和存储介质
CN114895940B (zh) * 2022-05-23 2025-06-06 珠海格力电器股份有限公司 一种升级方法、装置、设备及存储介质
CN115103235B (zh) * 2022-06-21 2023-10-20 咪咕互动娱乐有限公司 数据传输方法、装置、设备与介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101964974A (zh) * 2010-10-13 2011-02-02 中兴通讯股份有限公司 数据下载方法及移动终端
CN102791032A (zh) * 2012-08-14 2012-11-21 华为终端有限公司 网络带宽分配方法及终端
CN104572144A (zh) * 2013-10-16 2015-04-29 北大方正集团有限公司 下载应用的方法和装置
CN104954286A (zh) * 2015-05-29 2015-09-30 小米科技有限责任公司 带宽分配的方法及装置

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1659786A3 (en) * 2004-11-19 2009-10-07 LG Electronics Inc. Video apparatus software upgrading
KR100664955B1 (ko) * 2005-10-20 2007-01-04 삼성전자주식회사 방송 수신 장치의 다운로드 속도를 제어하는 방법 및 이를위한 장치
JP4508210B2 (ja) * 2007-05-14 2010-07-21 株式会社日立製作所 受信装置及び受信システム
CN101330340B (zh) 2008-07-31 2010-09-29 中兴通讯股份有限公司 移动多媒体广播终端自适应调整接收速率缓冲播放的方法
US8745122B2 (en) * 2011-06-14 2014-06-03 At&T Intellectual Property I, L.P. System and method for providing an adjunct device in a content delivery network
US9392337B2 (en) * 2011-12-22 2016-07-12 Cisco Technology, Inc. Wireless TCP link state monitoring based video content adaptation and data delivery
CN103702237A (zh) * 2012-09-28 2014-04-02 北京大学 Http流媒体的速率自适方法及装置
CN103368860A (zh) * 2013-07-03 2013-10-23 北京奇虎科技有限公司 一种智能限速方法、装置以及系统
US10116697B2 (en) * 2013-09-20 2018-10-30 Open Text Sa Ulc System and method for geofencing
CN104065834A (zh) * 2014-06-20 2014-09-24 宇龙计算机通信科技(深圳)有限公司 降低终端功耗的方法、装置和终端
CA2915487C (en) * 2015-05-18 2018-09-11 Hochschule Anhalt Method for performing a bandwidth test for comminications from a first network station to a second network station of a communication network and corresponding apparatuses for performing the method steps and corresponding computer program products
CN104965730B (zh) 2015-06-02 2018-09-04 广东欧珀移动通信有限公司 一种版本升级方法及系统
US10609175B2 (en) * 2015-12-31 2020-03-31 Hughes Newtwork Systems, LLC Apparatus and method for broadcast/multicast content delivery and opportunistic caching in a broadband communications network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101964974A (zh) * 2010-10-13 2011-02-02 中兴通讯股份有限公司 数据下载方法及移动终端
CN102791032A (zh) * 2012-08-14 2012-11-21 华为终端有限公司 网络带宽分配方法及终端
CN104572144A (zh) * 2013-10-16 2015-04-29 北大方正集团有限公司 下载应用的方法和装置
CN104954286A (zh) * 2015-05-29 2015-09-30 小米科技有限责任公司 带宽分配的方法及装置

Also Published As

Publication number Publication date
EP3503501A1 (en) 2019-06-26
EP3503501A4 (en) 2020-01-15
CN106331084A (zh) 2017-01-11
EP3503501B1 (en) 2021-03-03
US11039187B2 (en) 2021-06-15
US20200204836A1 (en) 2020-06-25
CN106331084B (zh) 2019-06-25

Similar Documents

Publication Publication Date Title
WO2018036057A1 (zh) 软件后台自适应升级方法及装置
WO2017107378A1 (zh) 基于hls流媒体的视频数据加速下载方法及装置
WO2016165556A1 (zh) 一种视频流的数据处理方法、装置和系统
WO2017206377A1 (zh) 同步播放节目的方法和装置
WO2014187158A1 (zh) 终端数据云分享的控制方法、服务器及终端
WO2015154639A1 (en) Method and apparatus for recording and replaying video of terminal
WO2016091011A1 (zh) 字幕切换方法及装置
WO2019051902A1 (zh) 终端控制方法、空调器及计算机可读存储介质
WO2017121066A1 (zh) 应用程序显示方法和系统
WO2017063368A1 (zh) 视频广告的插播方法及装置
WO2018018681A1 (zh) 视频节目预览方法及装置
WO2017020649A1 (zh) 音视频播放控制方法及装置
WO2018023926A1 (zh) 电视与移动终端的互动方法及系统
WO2017088427A1 (zh) 音频输出控制方法及装置
WO2017190450A1 (zh) 进程关闭方法及装置
WO2018113187A1 (zh) 一种显示控制方法及显示装置
WO2018126888A1 (zh) 电视功能的快捷启动设置方法及装置
WO2018006581A1 (zh) 智能电视的播放方法及装置
WO2016090991A1 (zh) 流媒体数据的下载方法及装置
WO2018086291A1 (zh) 资源调度方法、装置、设备及计算机可读存储介质
WO2017045435A1 (zh) 控制电视播放方法和装置
WO2018223602A1 (zh) 显示终端、画面对比度提高方法及计算机可读存储介质
WO2017024877A1 (zh) 电视主界面的切换方法及装置
WO2017084297A1 (zh) 多媒体文件的播放方法及系统
WO2017024876A1 (zh) 电视节目播放方法及装置

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2016914077

Country of ref document: EP