CN109525867A - Load-balancing method, device and mobile terminal - Google Patents

Load-balancing method, device and mobile terminal Download PDF

Info

Publication number
CN109525867A
CN109525867A CN201710842659.5A CN201710842659A CN109525867A CN 109525867 A CN109525867 A CN 109525867A CN 201710842659 A CN201710842659 A CN 201710842659A CN 109525867 A CN109525867 A CN 109525867A
Authority
CN
China
Prior art keywords
channel
information
equipment
url
list
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.)
Granted
Application number
CN201710842659.5A
Other languages
Chinese (zh)
Other versions
CN109525867B (en
Inventor
周磊
王奎
陈颖川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201710842659.5A priority Critical patent/CN109525867B/en
Publication of CN109525867A publication Critical patent/CN109525867A/en
Application granted granted Critical
Publication of CN109525867B publication Critical patent/CN109525867B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL

Abstract

The present invention provides a kind of load-balancing method, device and mobile terminals, wherein, this method comprises: receiving the URL for the channel M3U8 index that mobile terminal UE redirects, increase parameter information in the URL, channel M3U8 index information is obtained to source station according to the URL;Different TS filenames carried out by pre-defined rule corresponding with equipment identification information, and the corresponding relationship of TS filename and equipment identification information is updated into the TS list;Updated TS list is returned into the UE, the updated TS list obtains TS from the corresponding equipment of the equipment identification information according to TS filename and the corresponding relationship of equipment identification information for the UE, it solves equipment load balance in the related technology and needs the additional flow of services increased to source station, the not high problem of Buffer Utilization, it does not need to increase the additional Hui Yuan to source station, Buffer Utilization reaches highest, improves user experience.

Description

Load-balancing method, device and mobile terminal
Technical field
The present invention relates to the communications fields, in particular to a kind of load-balancing method, device and mobile terminal.
Background technique
OTT (Over The Top) is a kind of address of the Internet operator to internet television business, and full name is OTT TV, essence, by open internet, are provided to Intelligent set top box using unified Content Management and distribution platform Video, game and other multimedia application of high definition.OTT TV is refered in particular to below for the elaboration of OTT herein.
OTT industry is generally basede on HLS protocol and provides the broadcasting of user, and the important business of one of them is live streaming.CDN makees For content distributing network, the acceleration of live streaming generally is provided in such a way that more equipment form a cluster.Equipment provides service trade Usually there are two types of ways on boundary, first is that each equipment provides the user service of different channel, second is that multiple equipment undertakes same channel User service.
The first way, Fig. 1 is the block diagram one that video is requested according to user in the related technology, as shown in Figure 1, user asks Ask channel 1 that can only arrive equipment 1 when servicing, user requests channel 2 that can only arrive equipment 2 when servicing.When going back to source to source station, a channel An equipment is only had to source station Hui Yuan.Uneven in temperature due to channel user, the load of equipment also can be uneven, more especially Festivals or holidays hot channel almost occupies most flows, and the extreme that will cause apparatus of load in node is unbalanced.
Second of way, Fig. 2 is the block diagram two that video is requested according to user in the related technology, as shown in Fig. 2, user asks It asks channel 1 that can arrive equipment 1 when servicing or arrives equipment 2 or equipment 3.When going back to source to source station, a channel has multiple Equipment is to source station Hui Yuan.Although having reached equilibrium, it can additionally increase the flow of services to source station, Buffer Utilization is not high.
The additional flow of services increased to source station is needed for equipment load balance in the related technology, Buffer Utilization is not high The problem of, not yet propose solution.
Summary of the invention
The embodiment of the invention provides a kind of load-balancing method, device and mobile terminals, at least to solve the relevant technologies Middle equipment load balance needs the additional flow of services increased to source station, the not high problem of Buffer Utilization.
According to one embodiment of present invention, a kind of load-balancing method is provided, comprising:
The uniform resource position mark URL for receiving the channel M3U8 index that mobile terminal UE redirects, in the URL Increase parameter information, wherein the parameter information includes the address information and equipment identification information of all devices;
Channel M3U8 index information is obtained to source station according to the URL, wherein is carried in the channel M3U8 index information There is transport stream TS list;
Different TS filenames carried out with equipment identification information by pre-defined rule it is corresponding, and by TS filename and equipment The corresponding relationship of identification information is updated into the TS list;
Updated TS list is returned into the UE, the updated TS list is for the UE according to TS filename TS is obtained from the corresponding equipment of the equipment identification information with the corresponding relationship of equipment identification information.
Optionally, before the URL for receiving the channel M3U8 index that the UE is redirected, the method also includes:
Receive the URL for the channel M3U8 index that the UE is sent;
Channel identication is extracted according to the URL;
One designated equipment is determined by Hash operation according to the channel identication.
Optionally, different TS filenames and equipment identification information are carried out by pre-defined rule corresponding include:
Using TS filename and equipment identification information as the input value of hash algorithm;
Different cryptographic Hash is obtained by hash algorithm;
The corresponding equipment identification information of the equipment of maximum value in the cryptographic Hash is determined as the corresponding equipment of TS filename Identification information.
Optionally, before the URL for receiving the channel M3U8 index that the UE is redirected, the method also includes:
Receive the corresponding lists of channel identication and source station information.
Optionally, obtaining channel M3U8 index information to source station according to the URL includes:
The source station for obtaining channel M3U8 index information is determined according to the corresponding lists of the channel identication and source station information;
The channel M3U8 index information is obtained from the determining source station.
Optionally, after updated TS list is returned to the UE, the method also includes:
Receive the request message that the UE obtains TS according to the corresponding relationship of TS filename and equipment identification information;
The corresponding TS of the TS filename is obtained from source station according to the channel identication and the corresponding lists of source station information;
The TS is returned into the UE according to the request message.
According to another embodiment of the invention, a kind of load-balancing method is additionally provided, comprising:
The updated TS list that receiving device is sent, wherein the updated TS list is that the equipment is receiving After the uniform resource position mark URL of the channel M3U8 index of redirection, increase parameter information in the URL, wherein the ginseng Number information includes the address information and equipment identification information of all devices;And channel M3U8 rope is obtained to source station according to the URL Fuse breath, wherein carry transport stream TS list in the channel M3U8 index information;And pass through pre-defined rule for different TS Filename and equipment identification information carry out it is corresponding after the TS list that updates;
It is obtained from the corresponding equipment of the equipment identification information according to TS filename and the corresponding relationship of equipment identification information Take TS.
Optionally, the method also includes:
Sending the URL of channel M3U8 index, wherein the URL is used for according to URL extraction channel identication, and according to The channel identication determines the equipment by Hash operation.
According to another embodiment of the invention, a kind of load balancing apparatus is additionally provided, comprising:
First receiving module, the unified resource positioning of the channel M3U8 index for receiving mobile terminal UE redirection URL is accorded with, increases parameter information in the URL, wherein the parameter information includes the address information and equipment mark of all devices Know information;
First obtains module, for obtaining channel M3U8 index information to source station according to the URL, wherein the channel Transport stream TS list is carried in M3U8 index information;
Update module, it is corresponding for being carried out different TS filenames with equipment identification information by pre-defined rule, and will The corresponding relationship of TS filename and equipment identification information is updated into the TS list;
Return module, for updated TS list to be returned to the UE, the updated TS list is for described UE obtains TS from the corresponding equipment of the equipment identification information according to TS filename and the corresponding relationship of equipment identification information.
According to another embodiment of the invention, a kind of mobile terminal is additionally provided, comprising:
Second receiving module, the updated TS list sent for receiving device, wherein the updated TS list It is the equipment after the uniform resource position mark URL for receiving the channel M3U8 index redirected, increases parameter in the URL Information, wherein the parameter information includes the address information and equipment identification information of all devices;And according to the URL to source It stands and obtains channel M3U8 index information, wherein carry transport stream TS list in the channel M3U8 index information;And by pre- Set pattern then by different TS filenames and equipment identification information carry out it is corresponding after the TS list that updates;
Second obtains module, for being believed according to the corresponding relationship of TS filename and equipment identification information from the device identification It ceases in corresponding equipment and obtains TS.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, the storage medium includes storage Program, wherein described program executes method described in any of the above embodiments when running.
According to still another embodiment of the invention, a kind of processor is additionally provided, the processor is used to run program, In, described program executes method described in any of the above embodiments when running.
Through the invention, the transport stream of the different filenames of same channel is distributed in by different equipment by pre-defined rule Upper offer service solves equipment load balance in the related technology and needs the additional flow of services increased to source station, and caching utilizes The not high problem of rate does not need to increase the additional Hui Yuan to source station, and Buffer Utilization reaches highest, improves user experience.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the block diagram one that video is requested according to user in the related technology;
Fig. 2 is the block diagram two that video is requested according to user in the related technology
Fig. 3 is the hardware block diagram of the mobile terminal of the load balancing of the embodiment of the present invention;
Fig. 4 is the flow chart one of load-balancing method according to an embodiment of the present invention;
Fig. 5 is the flowchart 2 of load-balancing method according to an embodiment of the present invention;
Fig. 6 is the schematic diagram of load-balancing method according to an embodiment of the present invention;
Fig. 7 is the flow chart of load-balancing method according to an embodiment of the present invention;
Fig. 8 is the schematic diagram one of the response of m3u8 according to an embodiment of the present invention;
Fig. 9 is the schematic diagram two of the response of m3u8 according to an embodiment of the present invention;
Figure 10 is the block diagram of load balancing apparatus according to an embodiment of the present invention;
Figure 11 is the block diagram of load balancing mobile terminal according to an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
Embodiment of the method provided by the embodiment of the present application one can be in mobile terminal, terminal or similar fortune It calculates and is executed in device.For running on mobile terminals, Fig. 3 is the hard of the mobile terminal of the load balancing of the embodiment of the present invention Part structural block diagram.As shown in figure 3, mobile terminal 10 may include one or two (only showing one in figure) processor 102 (place Reason device 102 can include but is not limited to the processing unit of Micro-processor MCV or programmable logic device FPGA etc.), for storing The memory 104 of data and transmitting device 106 for communication function.It will appreciated by the skilled person that Fig. 3 Shown in structure be only illustrate, the structure of above-mentioned electronic device is not caused to limit.For example, mobile terminal 10 may also include The more perhaps less component or with the configuration different from shown in Fig. 3 than shown in Fig. 3.
Memory 104 can be used for storing the software program and module of application software, such as the data in the embodiment of the present invention Corresponding program instruction/the module of transmission method, processor 102 by the software program that is stored in memory 104 of operation and Module realizes above-mentioned method thereby executing various function application and data processing.Memory 104 may include high speed with Machine memory, may also include nonvolatile memory, as one or two magnetic storage devices, flash memory or other it is non-easily The property lost solid-state memory.In some instances, memory 104 can further comprise depositing relative to processor 102 is remotely located Reservoir, these remote memories can pass through network connection to mobile terminal 10.The example of above-mentioned network is including but not limited to mutual Networking, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include The wireless network that the communication providers of mobile terminal 10 provide.In an example, transmitting device 106 includes a Network adaptation Device (Network Interface Controller, NIC), can be connected by base station with other network equipments so as to it is mutual Networking is communicated.In an example, transmitting device 106 can be radio frequency (Radio Frequency, RF) module, use In wirelessly being communicated with internet.
Based on above-mentioned mobile terminal, a kind of load-balancing method is provided in the present embodiment, and Fig. 4 is real according to the present invention The flow chart one of the load-balancing method of example is applied, as shown in figure 4, the process includes the following steps:
Step S402, the updated TS list that receiving device is sent, wherein the updated TS list is described sets It is standby to increase parameter information in the URL after the uniform resource position mark URL for receiving the channel M3U8 index redirected, In, the parameter information includes the address information and equipment identification information of all devices;And frequency is obtained to source station according to the URL Road M3U8 index information, wherein carry transport stream TS list in the channel M3U8 index information;And it will by pre-defined rule Different TS filenames and equipment identification information carry out it is corresponding after the TS list that updates;
Step S404, it is corresponding from the equipment identification information with the corresponding relationship of equipment identification information according to TS filename TS is obtained in equipment.
Through the above steps, the transport stream of the different filenames of same channel is distributed in by different set by pre-defined rule Standby upper offer service solves equipment load balance in the related technology and needs the additional flow of services increased to source station, caching benefit With the not high problem of rate, do not need to increase the additional Hui Yuan to source station, Buffer Utilization reaches highest, improves user experience.
Optionally, the method also includes: send the URL of channel M3U8 index, wherein the URL is for according to URL extracts channel identication, and determines the equipment by Hash operation according to the channel identication.
Embodiment 2
According to another embodiment of the invention, a kind of load-balancing method is additionally provided, Fig. 5 is to implement according to the present invention The flowchart 2 of the load-balancing method of example, as shown in figure 5, the process includes the following steps:
Step S502 receives the uniform resource position mark URL for the channel M3U8 index that mobile terminal UE redirects, Increase parameter information in the URL, wherein the parameter information includes the address information and equipment identification information of all devices;
Step S504 obtains channel M3U8 index information to source station according to the URL, wherein the channel M3U8 index Transport stream TS list is carried in information;
Step S506, different TS filenames carried out with equipment identification information by pre-defined rule it is corresponding, and by TS text The corresponding relationship of part name and equipment identification information is updated into the TS list;
Updated TS list is returned to the UE by step S508, and the updated TS list is used for the UE root TS is obtained from the corresponding equipment of the equipment identification information according to TS filename and the corresponding relationship of equipment identification information.
Through the above steps, the transport stream of the different filenames of same channel is distributed in by different set by pre-defined rule Standby upper offer service solves equipment load balance in the related technology and needs the additional flow of services increased to source station, caching benefit With the not high problem of rate, do not need to increase the additional Hui Yuan to source station, Buffer Utilization reaches highest, improves user experience.
Optionally, before the URL for receiving the channel M3U8 index that the UE is redirected, the method also includes: Receive the URL for the channel M3U8 index that the UE is sent;Channel identication is extracted according to the URL;It is logical according to the channel identication It crosses Hash operation and determines a designated equipment.
Optionally, different TS filenames is carried out corresponding including: by TS text with equipment identification information by pre-defined rule The input value of part name and equipment identification information as hash algorithm;Different cryptographic Hash is obtained by hash algorithm;By the Kazakhstan The corresponding equipment identification information of equipment of maximum value is determined as the corresponding equipment identification information of TS filename in uncommon value.
Optionally, before the URL for receiving the channel M3U8 index that the UE is redirected, the method also includes: Receive the corresponding lists of channel identication and source station information.
Optionally, obtaining channel M3U8 index information to source station according to the URL includes: according to the channel identication and source The corresponding lists for information of standing determine the source station for obtaining channel M3U8 index information;The channel is obtained from the determining source station M3U8 index information.
Optionally, after updated TS list is returned to the UE, the method also includes: receive the UE root The request message of TS is obtained according to the corresponding relationship of TS filename and equipment identification information;According to the channel identication and source station information Corresponding lists obtain the corresponding TS of the TS filename from source station;The TS returned to according to the request message described UE。
More equipment channel load-balancing methods in CDN node provided in an embodiment of the present invention based on HLS, comprising: channel The corresponding source station information of each channel is issued to all devices by management module (can be set in the server).Scheduling in node Module (being arranged in any appliance) receives the channel m3u8 index request uniform resource locator (Uniform/ of user Universal Resource Locator, referred to as URL) after, channel identication is extracted according to URL, according to channel identication into Row certain operations obtain a specified equipment.User 302 is redirected into guidance to specified equipment, in 302 URL redirected Increase specific parameter, contains all devices address and the equipment identification information of node.Designated equipment receives the channel of user After m3u8 index request URL, Xiang Yuanzhan gets channel m3u8 index information.Designated equipment is in channel m3u8 index information Transport stream (Transport Stream, referred to as ts) list is rewritten.According to more equipment in the filename of each ts, node Mark carries out certain regular operation can be respectively corresponded different ts filenames and multiple equipment by this rule, generally It can be consistency HASH algorithm, obtain which equipment each ts is distributed in.The path ts in m3u8 is rewritten according to distribution situation, The address of equipment more in node is added in the path ts.After user takes the m3u8 index information of ts list, set to different It is standby to request different ts.And different user requests the same ts of the same channel then always can be in the same equipment, it can Cache hit.
The embodiment of the present invention makes the different fragments of the same channel provide clothes in different equipment according to fixed algorithm Business, has reached the load balancing of distinct device, and each ts in node only can arrive source station and request once, and hit rate almost reaches Highest is arrived.
Practical sample of the present embodiment introduction based on equipment channel load-balancing methods more in the CDN node of HLS.
(1) firstly, being managed by scheduler module in channel management module and node to multiple equipment.
Fig. 6 is the schematic diagram of load-balancing method according to an embodiment of the present invention, as shown in fig. 6, managing mould by channel Block carries out channel management to multiple equipment, issues channel and returns source information.Pipe is carried out to multiple equipment by scheduler module in node Reason, such as heartbeat detection, health examination etc., convenient for the subsequent scheduling to equipment.
(2) secondly, requesting the entire flow of channel by user, specific process flow is told about.
Fig. 7 is the flow chart of load-balancing method according to an embodiment of the present invention, as shown in fig. 7, comprises following steps:
Step S201, after scheduler module receives user's request in node, parsing channel identication is cctv1, take cctv1 and Device identification carries out hash operation as the hash factor respectively, obtains the device identification of a maximum hash value, for example selects DeviceID2.
Step S202, scheduler module gives user to return to 302 responses in node, and the address URL of 302 location is as follows. Wherein IP is the IP of equipment 1, and deviceiplist is the IP of three equipment, and deviceid is the device identification of three equipment
Step S203, equipment 1 receive the above-mentioned request of user.
Step S204, equipment 1 arrive source station Hui Yuan.
Step S205, equipment 1 obtain the response of the m3u8 of source station return, and Fig. 8 is m3u8 according to an embodiment of the present invention The schematic diagram one of response, as shown in Figure 8.
From figure 8, it is seen that the m3u8 response that source station returns contains multiple ts, when each ts is broadcasting in 10 seconds Long, each ts does not identify address.
PS: in this case if giving user, user subsequent can arrive equipment 1 and service.
It is that input uses a kind of load-balancing algorithm with 100.ts and device identification, chooses deviceID1 service.
It is that input uses a kind of load-balancing algorithm with 101.ts and device identification, chooses deviceID2 service.
It is that input uses a kind of load-balancing algorithm with 102.ts and device identification, chooses deviceID3 service.
It is that input uses a kind of load-balancing algorithm with 103.ts and device identification, chooses deviceID3 service.
It is that input uses a kind of load-balancing algorithm with 104.ts and device identification, chooses deviceID1 service.
It is that input uses a kind of load-balancing algorithm with 105.ts and device identification, chooses deviceID2 service
In general load-balancing algorithm can use general consistency HASH algorithm.For the present invention, ts can be used Filename and device identification provide different character strings, and the calculating as consistency HASH inputs, calculated by consistency HASH Method obtains different HASH values, and the equipment for taking the equipment of maximum HASH value to need to service as corresponding ts filename passes through this Algorithm balancedly can be mapped to a large amount of multiple ts in multiple equipment, so that the content that each equipment is shared is similar.
Step S206, equipment 1 rewrites m3u8, and returns to user.
Revised m3u8 sample is as shown in Figure 4.
Fig. 9 is the schematic diagram two of the response of m3u8 according to an embodiment of the present invention, as shown in figure 9, the m3u8 to user is rung The IP address in the path for each the ts file answered may be different.That is, different ts files can be stored in different equipment On, identical ts file is only cached in an equipment wherein.
Step S207, user request 100.ts to equipment 1.
The URL of request is http: // 1.1.1.1:80/yd/cctv1/100.ts
Step S208, equipment 1 to source station request 100.ts and are supplied to user service.It is directly provided if locally hit To user service.
Step S209, equipment 1 receive the response of the 100.ts of source station.
The response of 100.ts is passed through user by step S210, equipment 1.
Step S211-S214, user request 101.ts to equipment 2.
The URL of request is http: // 2.2.2.2:80/yd/cctv1/101.ts
Equipment 2 requests 101.ts to source station and is supplied to user service.User's clothes are supplied directly to if locally hit Business.
Step S215-S218, user request 102.ts to equipment 3.
The URL of request is http: // 3.3.3.3:80/yd/cctv1/102.ts
Equipment 3 requests 102.ts to source station and is supplied to user service.User's clothes are supplied directly to if locally hit Business.
(3) finally, other users request the same channel when process and above-mentioned (2) process it is completely the same, request it is same The same ts of channel can be in the same equipment.
The embodiment of the present invention is based on equipment channel load-balancing methods more in the CDN node of HLS, due to channel Multiple ts are distributed to multiple equipment service, thus achieved the purpose that a channel in multiple devices balancing service, and equipment It increases and decreases and nor affects on the balancing services of multiple devices and can easily carry out elastic telescopic.Simultaneously because a channel A ts fragment different users is only concentrated in provide service in an equipment, allow caching utilization rate reach To highest.
Embodiment 3
According to another embodiment of the invention, a kind of load balancing apparatus is additionally provided, Figure 10 is real according to the present invention The block diagram of the load balancing apparatus of example is applied, as shown in Figure 10, comprising:
First receiving module 102, the unified resource of the channel M3U8 index for receiving mobile terminal UE redirection Finger URL URL increases parameter information in the URL, wherein the parameter information includes the address information of all devices and sets Standby identification information;
First obtains module 104, for obtaining channel M3U8 index information to source station according to the URL, wherein the frequency Transport stream TS list is carried in road M3U8 index information;
Update module 106, it is corresponding for being carried out different TS filenames with equipment identification information by pre-defined rule, and The corresponding relationship of TS filename and equipment identification information is updated into the TS list;
Return module 108, for updated TS list to be returned to the UE, the updated TS list is used for institute It states UE and TS is obtained from the corresponding equipment of the equipment identification information according to TS filename and the corresponding relationship of equipment identification information.
Embodiment 4
According to another embodiment of the invention, a kind of mobile terminal is additionally provided, Figure 11 is according to embodiments of the present invention Load balancing mobile terminal block diagram, as shown in figure 11, comprising:
Second receiving module 112, the updated TS list sent for receiving device, wherein the updated TS List is the equipment after the uniform resource position mark URL for receiving the channel M3U8 index redirected, is increased in the URL Parameter information, wherein the parameter information includes the address information and equipment identification information of all devices;And according to the URL Channel M3U8 index information is obtained to source station, wherein carries transport stream TS list in the channel M3U8 index information;And lead to Cross pre-defined rule by different TS filenames and equipment identification information carry out it is corresponding after the TS list that updates;
Second obtains module 114, for according to the corresponding relationship of TS filename and equipment identification information from the equipment mark Know in the corresponding equipment of information and obtains TS.
Embodiment 5
The embodiments of the present invention also provide a kind of storage medium, which includes the program of storage, wherein above-mentioned Program executes method described in any of the above embodiments when running.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store the journey for executing following steps Sequence code:
Step S11, the updated TS list that receiving device is sent, wherein the updated TS list is described sets It is standby to increase parameter information in the URL after the uniform resource position mark URL for receiving the channel M3U8 index redirected, In, the parameter information includes the address information and equipment identification information of all devices;And frequency is obtained to source station according to the URL Road M3U8 index information, wherein carry transport stream TS list in the channel M3U8 index information;And it will by pre-defined rule Different TS filenames and equipment identification information carry out it is corresponding after the TS list that updates;
Step S12, it is corresponding from the equipment identification information with the corresponding relationship of equipment identification information according to TS filename TS is obtained in equipment.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read- Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard The various media that can store program code such as disk, magnetic or disk.
Embodiment 6
The embodiments of the present invention also provide a kind of processor, the processor is for running program, wherein program operation Step in Shi Zhihang any of the above-described method.
Optionally, in the present embodiment, above procedure is for executing following steps:
S21, the updated TS list that receiving device is sent, wherein the updated TS list is that the equipment exists After the uniform resource position mark URL for receiving the channel M3U8 index redirected, increase parameter information in the URL, wherein institute State the address information and equipment identification information that parameter information includes all devices;And channel is obtained to source station according to the URL M3U8 index information, wherein carry transport stream TS list in the channel M3U8 index information;And it will not by pre-defined rule With TS filename and equipment identification information carry out it is corresponding after the TS list that updates;
S22, according to TS filename and the corresponding relationship of equipment identification information from the corresponding equipment of the equipment identification information Middle acquisition TS.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in two computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or the step of description, perhaps they are fabricated to each integrated circuit modules or by two of which module or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc. With replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (12)

1. a kind of load-balancing method characterized by comprising
The uniform resource position mark URL for receiving the channel M3U8 index that mobile terminal UE redirects, increases in the URL Parameter information, wherein the parameter information includes the address information and equipment identification information of all devices;
Channel M3U8 index information is obtained to source station according to the URL, wherein carries biography in the channel M3U8 index information Defeated stream TS list;
Different TS filenames carried out with equipment identification information by pre-defined rule it is corresponding, and by TS filename and device identification The corresponding relationship of information is updated into the TS list;
Updated TS list is returned into the UE, the updated TS list for the UE according to TS filename with set The corresponding relationship of standby identification information obtains TS from the corresponding equipment of the equipment identification information.
2. the method according to claim 1, wherein in the channel M3U8 index for receiving the UE redirection URL before, the method also includes:
Receive the URL for the channel M3U8 index that the UE is sent;
Channel identication is extracted according to the URL;
One designated equipment is determined by Hash operation according to the channel identication.
3. the method according to claim 1, wherein passing through pre-defined rule for different TS filename and equipment mark Knowledge information carries out correspondence and includes:
Using TS filename and equipment identification information as the input value of hash algorithm;
Different cryptographic Hash is obtained by hash algorithm;
The corresponding equipment identification information of the equipment of maximum value in the cryptographic Hash is determined as the corresponding device identification of TS filename Information.
4. the method according to claim 1, wherein in the channel M3U8 index for receiving the UE redirection URL before, the method also includes:
Receive the corresponding lists of channel identication and source station information.
5. according to the method described in claim 4, it is characterized in that, obtaining channel M3U8 index letter to source station according to the URL Breath includes:
The source station for obtaining channel M3U8 index information is determined according to the corresponding lists of the channel identication and source station information;
The channel M3U8 index information is obtained from the determining source station.
6. according to the method described in claim 4, it is characterized in that, after updated TS list is returned to the UE, The method also includes:
Receive the request message that the UE obtains TS according to the corresponding relationship of TS filename and equipment identification information;
The corresponding TS of the TS filename is obtained from source station according to the channel identication and the corresponding lists of source station information;
The TS is returned into the UE according to the request message.
7. a kind of load-balancing method characterized by comprising
The updated TS list that receiving device is sent, wherein the updated TS list is that the equipment is reset in reception To channel M3U8 index uniform resource position mark URL after, increase parameter information, the parameter information packet in the URL Include the address information and equipment identification information of all devices;And channel M3U8 index information, institute are obtained to source station according to the URL It states in channel M3U8 index information and carries transport stream TS list;And pass through pre-defined rule for different TS filename and equipment mark Know information and carries out the TS list updated after corresponding to;
TS is obtained from the corresponding equipment of the equipment identification information according to TS filename and the corresponding relationship of equipment identification information.
8. the method according to the description of claim 7 is characterized in that the method also includes:
Send the URL of channel M3U8 index, wherein the URL is used to extract channel identication according to the URL, and according to described Channel identication determines the equipment by Hash operation.
9. a kind of load balancing apparatus characterized by comprising
First receiving module, the uniform resource locator of the channel M3U8 index for receiving mobile terminal UE redirection URL increases parameter information in the URL, wherein the parameter information includes the address information and device identification of all devices Information;
First obtains module, for obtaining channel M3U8 index information to source station according to the URL, wherein the channel M3U8 Transport stream TS list is carried in index information;
Update module, it is corresponding for being carried out different TS filenames with equipment identification information by pre-defined rule and TS is literary The corresponding relationship of part name and equipment identification information is updated into the TS list;
Return module, for updated TS list to be returned to the UE, the updated TS list is used for the UE root TS is obtained from the corresponding equipment of the equipment identification information according to TS filename and the corresponding relationship of equipment identification information.
10. a kind of mobile terminal characterized by comprising
Second receiving module, the updated TS list sent for receiving device, wherein the updated TS list is institute Equipment is stated after the uniform resource position mark URL for receiving the channel M3U8 index redirected, increases parameter letter in the URL Breath, the parameter information includes the address information and equipment identification information of all devices;And frequency is obtained to source station according to the URL Road M3U8 index information carries transport stream TS list in the channel M3U8 index information;And it will be different by pre-defined rule TS filename and equipment identification information carry out it is corresponding after the TS list that updates;
Second obtains module, for according to the corresponding relationship of TS filename and equipment identification information from the equipment identification information pair TS is obtained in the equipment answered.
11. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein when described program is run Method described in any one of perform claim requirement 1 to 6,7 to 8.
12. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Benefit require any one of 1 to 6,7 to 8 described in method.
CN201710842659.5A 2017-09-18 2017-09-18 Load balancing method and device and mobile terminal Active CN109525867B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710842659.5A CN109525867B (en) 2017-09-18 2017-09-18 Load balancing method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710842659.5A CN109525867B (en) 2017-09-18 2017-09-18 Load balancing method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN109525867A true CN109525867A (en) 2019-03-26
CN109525867B CN109525867B (en) 2022-06-03

Family

ID=65769456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710842659.5A Active CN109525867B (en) 2017-09-18 2017-09-18 Load balancing method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN109525867B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114222086A (en) * 2021-10-15 2022-03-22 中兴通讯股份有限公司 Method, system, medium and electronic device for scheduling audio and video code stream

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120047542A1 (en) * 2010-08-20 2012-02-23 Disney Enterprises, Inc. System and method for rule based dynamic server side streaming manifest files
CN102882939A (en) * 2012-09-10 2013-01-16 北京蓝汛通信技术有限责任公司 Load balancing method, load balancing equipment and extensive domain acceleration access system
US20130031216A1 (en) * 2011-07-29 2013-01-31 Myxer, Inc. Systems and methods for generation of customized media playlists
US20140079056A1 (en) * 2006-02-16 2014-03-20 Fortinet, Inc. Systems and methods for content type classification
CN104038842A (en) * 2014-06-18 2014-09-10 百视通网络电视技术发展有限责任公司 Method and device for pre-fetching requested program information in CDN (Content Delivery Network) network
CN104093045A (en) * 2014-07-17 2014-10-08 百视通网络电视技术发展有限责任公司 Method and system for processing OTT TV playing request based on source return
CN104320681A (en) * 2014-11-07 2015-01-28 百视通网络电视技术发展有限责任公司 CDN back-to-source service method and system
CN104506493A (en) * 2014-12-04 2015-04-08 武汉市烽视威科技有限公司 HLS content source returning and caching realization method
CN104935648A (en) * 2015-06-03 2015-09-23 北京快网科技有限公司 High-cost-performance CDN system, and file pre-push and fragment buffer memory methods
CN105812850A (en) * 2014-12-31 2016-07-27 乐视网信息技术(北京)股份有限公司 Video file playing method and system thereof
JP2017021494A (en) * 2015-07-08 2017-01-26 日本電信電話株式会社 Load distribution program and server
CN106789956A (en) * 2016-12-01 2017-05-31 武汉市烽视威科技有限公司 A kind of P2P order methods and system based on HLS

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140079056A1 (en) * 2006-02-16 2014-03-20 Fortinet, Inc. Systems and methods for content type classification
US20120047542A1 (en) * 2010-08-20 2012-02-23 Disney Enterprises, Inc. System and method for rule based dynamic server side streaming manifest files
US20130031216A1 (en) * 2011-07-29 2013-01-31 Myxer, Inc. Systems and methods for generation of customized media playlists
CN102882939A (en) * 2012-09-10 2013-01-16 北京蓝汛通信技术有限责任公司 Load balancing method, load balancing equipment and extensive domain acceleration access system
CN104038842A (en) * 2014-06-18 2014-09-10 百视通网络电视技术发展有限责任公司 Method and device for pre-fetching requested program information in CDN (Content Delivery Network) network
CN104093045A (en) * 2014-07-17 2014-10-08 百视通网络电视技术发展有限责任公司 Method and system for processing OTT TV playing request based on source return
CN104320681A (en) * 2014-11-07 2015-01-28 百视通网络电视技术发展有限责任公司 CDN back-to-source service method and system
CN104506493A (en) * 2014-12-04 2015-04-08 武汉市烽视威科技有限公司 HLS content source returning and caching realization method
CN105812850A (en) * 2014-12-31 2016-07-27 乐视网信息技术(北京)股份有限公司 Video file playing method and system thereof
CN104935648A (en) * 2015-06-03 2015-09-23 北京快网科技有限公司 High-cost-performance CDN system, and file pre-push and fragment buffer memory methods
JP2017021494A (en) * 2015-07-08 2017-01-26 日本電信電話株式会社 Load distribution program and server
CN106789956A (en) * 2016-12-01 2017-05-31 武汉市烽视威科技有限公司 A kind of P2P order methods and system based on HLS

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
史敬: ""一种基于SSI框架的电视网络信息发布系统"", 《有线电视技术》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114222086A (en) * 2021-10-15 2022-03-22 中兴通讯股份有限公司 Method, system, medium and electronic device for scheduling audio and video code stream
WO2023061060A1 (en) * 2021-10-15 2023-04-20 中兴通讯股份有限公司 Audio and video code stream scheduling method, system, medium and electronic apparatus

Also Published As

Publication number Publication date
CN109525867B (en) 2022-06-03

Similar Documents

Publication Publication Date Title
US8892768B2 (en) Load balancing apparatus and load balancing method
CN102118376B (en) Content delivery network service device and content download method
WO2015101237A1 (en) Methods, devices, and systems for allocating service nodes in a network
CN105847381A (en) Scheduling method and device for content server
JP6301331B2 (en) Service content distribution method and service management platform in heterogeneous network
CN102394880B (en) Method and device for processing jump response in content delivery network
CN105357281B (en) A kind of Mobile Access Network distributed content cache access control method and system
US11025738B2 (en) Systems and methods for determining a destination location for transmission of packetized data in a network system based on an application server attribute
US10848586B2 (en) Content delivery network (CDN) for uploading, caching and delivering user content
KR101638315B1 (en) System and method for providing advertisement based on web using wifi network
CN102984223B (en) A kind of message method, the network equipment and system
CN110402567B (en) Centrality-based caching in information-centric networks
CN103731487A (en) Download method, device, system and router for resource file
CN109756584B (en) Domain name resolution method, domain name resolution device and computer readable storage medium
CN106789956B (en) A kind of P2P order method and system based on HLS
CN113453025B (en) Data acquisition method and device
CN110198333B (en) Data acquisition method and device, storage medium and electronic device
CN109644191A (en) System and method for configuring connected equipment connection
CN113300955A (en) Method, system and equipment for determining paths between nodes in content distribution network
US20140282788A1 (en) System for controlling video distribution in response to a request on reduced video data traffic and a method therefor
CN107087013B (en) CDN system of mobile base station and service method thereof
CN105281987B (en) Router and data uploading method, device, system
US20190037044A1 (en) Content distribution and delivery optimization in a content delivery network (cdn)
CN106856456A (en) The processing method and system of cache cluster service
CN109525867A (en) Load-balancing method, device and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant