CN108984651A - The method for playing music and system of intelligent sound box based on content delivery network service - Google Patents

The method for playing music and system of intelligent sound box based on content delivery network service Download PDF

Info

Publication number
CN108984651A
CN108984651A CN201810677133.0A CN201810677133A CN108984651A CN 108984651 A CN108984651 A CN 108984651A CN 201810677133 A CN201810677133 A CN 201810677133A CN 108984651 A CN108984651 A CN 108984651A
Authority
CN
China
Prior art keywords
song
intelligent sound
sound box
broadcast
node server
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.)
Pending
Application number
CN201810677133.0A
Other languages
Chinese (zh)
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.)
Hangzhou Jiji Intellectual Property Operation Co ltd
Original Assignee
Sichuan Feixun Information 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 Sichuan Feixun Information Technology Co Ltd filed Critical Sichuan Feixun Information Technology Co Ltd
Priority to CN201810677133.0A priority Critical patent/CN108984651A/en
Publication of CN108984651A publication Critical patent/CN108984651A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of method for playing music of intelligent sound box based on content distribution formula network service, which includes the following steps: S1: receiving the id information for the song to be broadcast that intelligent sound box is uploaded based on content delivery network service;S2: the id information based on above-mentioned song to be broadcast obtains the IP address for being stored with the node server of song resource data to be broadcast;S3: sending the IP address of above-mentioned node server to intelligent sound box so that intelligent sound box obtains above-mentioned song resource data to be broadcast based on the IP address of the node server.The invention also discloses a kind of music playing systems of intelligent sound box based on content distribution formula network service (i.e. CDN service).The technical scheme is that mutual network associate will be carried out between multiple intelligent sound boxes using CDN technology, and then the workload of centralized server can be effectively reduced in the case where not increasing number of servers, effectively increase the operation stability and music buffering efficiency of whole system.

Description

The method for playing music and system of intelligent sound box based on content delivery network service
Technical field
The present invention relates to intelligent sound box technical fields, and in particular to be the intelligent sound box based on content delivery network service Method for playing music and system.
Background technique
The most important function of intelligent sound box is to play music, and intelligent sound box plays the performance (buffer speed of music at present And stability) depend entirely on centralized server.But simple when carrying out music using centralized server, It evitable must can suffer from the drawback that
One, the performance bottleneck as present in centralized server itself, after the quantity of intelligent sound box sharply increases, clothes The service performance of business device is up to bottleneck, and efficiency of service is low and server load is overweight.Although can be by increasing centralization The quantity of server improves performance bottleneck, shares the load of server.But server is more, between each server Be in communication with each other and dispatch also more complicated, and its higher cost;
Two, centralized server may break down for some reason in the process of running.Intelligent sound box plays If the function heavy dependence centralized server of music, all intelligence will be easily led to when centralized server occurs abnormal Can speaker all can not normal use, and user volume is bigger, influences more serious.
CDN (Content Delivery Network) is the content distributing network constructed on network, by deployment Node server in various regions is made user nearby or is taken by functions such as the load balance of central platform, content distribution, scheduling Required content reduces network congestion, improves response speed and hit rate that user obtains resource.
Currently, CDN acceleration technique is mainly used in video website and webcast website, user is allowed to obtain access speed faster Degree, and intelligent sound box is while playing music, is all to provide to support by centralized server, such as: application No. is The Chinese invention patent of CN201510293058.4 discloses a kind of method for playing music based on intelligent sound box, this method packet Include: intelligent sound box sends K channel tag to the terminal device connecting with intelligent sound box, and K is the integer more than or equal to 1;If Intelligent sound box receives the music request in the broadcasting channel corresponding with channel tag W of terminal device transmission, the intelligence Energy speaker will be sent to server obtains the music acquisition request comprising channel tag W, and channel tag W is K channel tag Middle one selected by terminal device;The intelligent sound box receives music links address transmitted by server;Intelligent sound box root Music is carried out according to music links address.
Above-mentioned existing patent is still simple to use a server to provide music links address for intelligent sound box to realize sound Happy buffered play is not directed to the dependence how reduced when intelligent sound box carries out music to centralized server And its server load, and how fast cache play the problem of.
Summary of the invention
In view of the above-mentioned problems, the invention discloses a kind of musics of intelligent sound box based on content delivery network service Method, the method for playing music include the following steps:
S1: the id information for the song to be broadcast that intelligent sound box is uploaded based on content delivery network service is received;
S2: the id information based on above-mentioned song to be broadcast obtains the node server for being stored with song resource data to be broadcast IP address;
S3: the IP address of above-mentioned node server is sent to intelligent sound box so that intelligent sound box is based on the node server IP address obtains above-mentioned song resource data to be broadcast.
Further, above-mentioned steps S2 includes:
S21: the id information of song to be broadcast on judges whether there is the node serve for storing song resource data to be broadcast Device;If so, thening follow the steps S22;If it is not, thening follow the steps S23;
S22: the IP address of the above-mentioned node server for storing song resource data to be broadcast is obtained;
S23: send chain connects the song link that acquisition request obtains song to be broadcast to centralized server;Send the song Intelligent sound box is linked to so that intelligent sound box obtains song resource data to be broadcast by above-mentioned song link.
Further, above-mentioned steps S22 includes:
S221: obtain the network of each node server and intelligent sound box that store above-mentioned song resource data to be broadcast away from From;
S222: the IP address of the node server nearest with the network distance of above-mentioned intelligent sound box is obtained.
Further, before above-mentioned steps S1 further include:
S01: the resource status data that each node server is reported are received and saved;
S02: according to above-mentioned resource status data, judgement in the above-mentioned closer node server of intelligent sound box network distance Whether it is stored with and the mutually duplicate song resource data of intelligent sound box;
S03: the instruction for repeating song resource data is deleted to intelligent sound box to delete duplicate song money if so, sending Source data.
Further, above-mentioned resource status data include: the list of songs of caching, the id information of each song and song text Part MD5 value.
Based on a kind of method for playing music of the intelligent sound box based on content delivery network service provided by the present invention, phase Corresponding, the present invention also provides a kind of music playing system of intelligent sound box based on content delivery network service, the music Play system includes:
First receiving module, for receiving the ID for the song to be broadcast that intelligent sound box is uploaded based on content delivery network service Information;
First obtains module, and for the id information based on above-mentioned song to be broadcast, acquisition is stored with song resource data to be broadcast Node server IP address;
First sending module, for sending the IP address of above-mentioned node server to intelligent sound box so that above-mentioned intelligent sound box IP address based on the node server obtains above-mentioned song resource data to be broadcast.
Further, above-mentioned first acquisition module includes:
First judgment module, for the id information according to above-mentioned song to be broadcast, judging whether there is storage should song be broadcast The node server of resource data;
Second obtains module, for obtaining the IP address of the above-mentioned node server for storing song resource data to be broadcast;
Second sending module connects the song that acquisition request obtains to centralized server the song to be broadcast for send chain Link;It is also used to send the song link to intelligent sound box so that intelligent sound box obtains song number of resources to be broadcast by song link According to.
Further, above-mentioned second acquisition module includes:
Third obtains module, for obtaining each node server and intelligent sound that store above-mentioned song resource data to be broadcast The network distance of case;
4th obtains module, for obtaining with the IP of the nearest node server of the network distance of above-mentioned intelligent sound box Location.
Further, above-mentioned music playing system further include:
Second receiving module, the resource status data reported for receiving and saving each node server;
Second judgment module, for judging closer with above-mentioned intelligent sound box network distance according to above-mentioned resource status data Node server in whether be stored with and the mutually duplicate song resource data of the intelligent sound box;
Third sending module, for send delete repeat song resource data instruction it is duplicate to delete to intelligent sound box Song resource data.
Further, above-mentioned resource status data include: the list of songs of caching, the id information of each song and song text Part MD5 value.
The method for playing music and system of a kind of intelligent sound box based on content delivery network service provided by the present invention, It is using CDN acceleration technique by the mutual network associate of multiple intelligent sound boxes, each intelligent sound box that is mutually related can work as Make a node server, it, can be by being obtained in the nearest node server of network distance in order to while playing music The resource data of song to be broadcast is got, so as to it can be effectively reduced so that intelligent sound box fast cache plays song to be broadcast in Property server load and improve the stability of entire music playing system;It can also break down in centralized server In the case of, make entire music playing system still be able to operate normally, there is preferable practicability.
In addition, the resource status that method for playing music and system of the invention can also be uploaded each node server Data carry out integration processing, the mutually duplicate song resource data stored in intelligent sound box are deleted to reach integration The effect of duplicate removal reduces the spatial cache occupancy of intelligent sound box.
Detailed description of the invention
Fig. 1 is the method for playing music process of intelligent sound box of one of the embodiment one based on content delivery network service Figure;
Fig. 2 is the method flow diagram of the acquisition node server IP address in embodiment one;
Fig. 3 is in embodiment one for obtaining the flow chart of node server IP address according to network distance;
Fig. 4 is the music playing system composition of intelligent sound box of one of the embodiment one based on content delivery network service Figure;
Fig. 5 is the composition figure of the first acquisition module in embodiment one;
Fig. 6 is the composition figure of the second acquisition module in embodiment one;
Fig. 7 is the method for playing music process of intelligent sound box of one of the embodiment two based on content delivery network service Figure;
Fig. 8 is the music playing system composition of intelligent sound box of one of the embodiment two based on content delivery network service Figure.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical solution in the embodiment of the present invention are purged, completely describe, it is clear that described reality Applying example is only a part of the embodiment of the present invention, and not all embodiments.Based on the embodiments of the present invention, the common skill in this field Art personnel every other embodiment obtained without making creative work, belongs to protection model of the invention It encloses.
Embodiment one
Referring to Fig.1, the music for present embodiments providing a kind of intelligent sound box based on content distributing network (CDN) service is broadcast Method is put, which specifically includes:
S1: the id information for the song to be broadcast that intelligent sound box is uploaded based on content delivery network service is received;
S2: the id information based on above-mentioned song to be broadcast obtains the node server for being stored with song resource data to be broadcast IP address;
S3: the IP address of above-mentioned node server is sent to intelligent sound box so that intelligent sound box is based on the node server IP address obtains above-mentioned song resource data to be broadcast.That is: intelligent sound box receives node serve transmitted by music playing system After the IP address of device, it will send a request to that this connects node server and receiving node server fed back based on the IP address Song resource data to be broadcast, so that buffered play should song be broadcast.
Wherein, content delivery network service (i.e. CDN service) and user cache song number of resources are provided on intelligent sound box According to buffer area.During user plays music using intelligent sound box, if without should be in the buffer area of intelligent sound box In the case where broadcasting song resource data, the id information of the song to be broadcast is sent to music by CDN service by intelligent sound box System (i.e. CDN server), and then the CDN server can receive intelligent sound box and be sung by what CDN service was uploaded wait broadcast Bent id information.
Wherein, CDN server by according to received song to be broadcast id information, obtain containing should song number of resources be broadcast According to node server IP address.Referring to Fig. 2, for involved in step S2 " id information based on above-mentioned song to be broadcast, Obtain be stored with song resource data to be broadcast node server IP address " detailed process include:
S21: the id information of song to be broadcast on judges whether there is the node serve for storing song resource data to be broadcast Device;If so, thening follow the steps S22;If it is not, thening follow the steps S23;
S22: the IP address of the above-mentioned node server for storing song resource data to be broadcast is obtained;
S23: send chain connects the song link that acquisition request obtains song to be broadcast to centralized server;Send the song Intelligent sound box is linked to so that intelligent sound box obtains song resource data to be broadcast by song link.
It should be noted that firstly, the present embodiment is by the mutual network associate of multiple intelligent sound boxes using CDN technology with shape At a kind of distributed network, each of distributed network intelligent sound box can be used as a node server.
Secondly, there are each nodes in the distributed network established using CDN technology for the technical solution of the present embodiment Server may the not stored situation for needing to be broadcast song data, thus, it is still necessary to be obtained by centralized server Song resource data to be broadcast, it may be assumed that acquisition request is connect to centralized server by CDN server send chain, and passes through CDN and takes Song link provided by centralized server is forwarded to intelligent sound box by business device, and in turn, intelligent sound box can pass through song link The resource data of song to be broadcast is got, so as to buffered play song to be broadcast.Although music playing system (the i.e. CDN clothes Business device) centralized server can not be replaced completely, still, in the case where node server is enough, it can be effectively reduced To the dependence of centralized server.
Based on this, the process of above-mentioned steps S2 be can be described as:
Id information of the CDN server according to the song to be broadcast of acquisition, node server of the judgement in distributed network In whether be stored with should the song resource data to be broadcast that matches of song id information be broadcast;It is somebody's turn to do if so, CDN server obtains The IP address of node server, and further execute subsequent step S3;If it is not, then send chain is obtained to take and is asked by CDN server It asks to centralized server, to get the song link of song to be broadcast by centralized server;CDN server forwarding should To intelligent sound box, intelligent sound box will obtain song resource data to be broadcast row buffering of going forward side by side according to the song link and broadcast song link It puts, which embodies mutual cooperation between distributed network and centralized server centered on CDN server, mutually Scheduling, effectively increases the applicability of whole system.
Wherein, due to there may be being stored with the song resource data to be broadcast in multiple node servers, and due to not Different from the network distance of intelligent sound box with node server, the transmission speed of resource data is not also identical, with intelligent sound The transmission speed of the closer node server of case network distance is faster, user experience is more preferable.Based on this, referring to Fig. 3, for step The acquisition methods of the IP address of node server involved in S22 include the following steps:
S221: obtain the network of each node server and intelligent sound box that store above-mentioned song resource data to be broadcast away from From;
S222: the IP address of the node server nearest with the network distance of above-mentioned intelligent sound box is obtained.
That is: there are be stored in multiple node servers wait broadcast in using distributed network constructed by CDN technology In the case where song resource data, the network distance of each node server and intelligent sound box will be got respectively;To pass through The network distance with intelligent sound box is compared, the IP address of the node server nearest with intelligent sound box network distance is got, with It avoids blocking in resource data transmission process, the buffering efficiency of resource data can be effectively improved.
Corresponding, the present embodiment additionally provides a kind of music playing system of intelligent sound box based on CDN service, the sound Happy play system is CDN server, and referring to Fig. 4, which includes:
First receiving module, for receiving the ID for the song to be broadcast that intelligent sound box is uploaded based on content delivery network service Information;
First obtains module, and for the id information based on above-mentioned song to be broadcast, acquisition is stored with song resource data to be broadcast Node server IP address;
First sending module, for sending the IP address of above-mentioned node server to intelligent sound box so that above-mentioned intelligent sound box IP address based on the node server obtains above-mentioned song resource data to be broadcast.
Wherein, referring to Fig. 5, which includes:
First judgment module, for the id information according to above-mentioned song to be broadcast, judging whether there is storage should song be broadcast The node server of resource data;
Second obtains module, for obtaining the IP address of the above-mentioned node server for storing song resource data to be broadcast;
Second sending module connects the song that acquisition request obtains to centralized server the song to be broadcast for send chain Link;It is also used to send the song link to intelligent sound box so that intelligent sound box obtains song number of resources to be broadcast by song link According to.
Wherein, referring to Fig. 6, which includes:
Third obtains module, for obtaining each node server and intelligent sound that store above-mentioned song resource data to be broadcast The network distance of case;
4th obtains module, for obtaining with the IP of the nearest node server of the network distance of above-mentioned intelligent sound box Location.
The method for playing music and system of a kind of intelligent sound box based on CDN service of the mentioned offer of the present embodiment are benefits Network associate will be carried out between multiple intelligent sound boxes with CDN technology, each intelligent sound box that is mutually related can be used as one A node server can be by getting in order to while playing music in the nearest node server of network distance The resource data of song to be broadcast can be effectively reduced to realize that intelligent sound box fast cache plays the effect of song to be broadcast Property content server load and improve the stability of entire music playing system;Event can also occur in centralized server In the case where barrier, entire music playing system is made still to be able to operate normally, there is preferable practicability.
Embodiment two
Referring to Fig. 7, a kind of method for playing music of intelligent sound box based on CDN service, the music are present embodiments provided Playback method specifically includes:
S1: the id information for the song to be broadcast that intelligent sound box is uploaded based on content delivery network service is received;
S2: the id information based on above-mentioned song to be broadcast obtains the node server for being stored with song resource data to be broadcast IP address;
S3: the IP address of above-mentioned node server is sent to intelligent sound box so that intelligent sound box is based on the node server IP address obtains above-mentioned song resource data to be broadcast.That is: intelligent sound box receives node serve transmitted by music playing system After the IP address of device, it will send a request to that this connects node server and receiving node server fed back based on the IP address Song resource data to be broadcast, so that buffered play should song be broadcast.
Wherein, content delivery network service (i.e. CDN service) and user cache song number of resources are provided on intelligent sound box According to buffer area.During user plays music using intelligent sound box, if without should be in the buffer area of intelligent sound box In the case where broadcasting song resource data, the id information of the song to be broadcast is sent to music by CDN service by intelligent sound box System (i.e. CDN server), and then the CDN server can receive intelligent sound box and be sung by what CDN service was uploaded wait broadcast Bent id information.It should be noted that the present embodiment is by the mutual network associate of multiple intelligent sound boxes using CDN technology to be formed A kind of distributed network, each of distributed network intelligent sound box can be used as a node server.
Wherein, it referring to Fig. 7, is further comprised the steps of: before step S1
S01: the resource status data that each node server is reported are received and saved;
S02: according to above-mentioned resource status data, judgement in the above-mentioned closer node server of intelligent sound box network distance Whether it is stored with and the mutually duplicate song resource data of intelligent sound box;
S03: the instruction for repeating song resource data is deleted to intelligent sound box to delete duplicate song money if so, sending Source data;If it is not, then without sending any instruction.
That is: after multiple intelligent sound boxes are carried out mutual network associate using CDN technology, each intelligent sound box As node server, and each intelligent sound box will upload the resource status data that are stored in respective buffer area extremely It is saved in CDN server, and the resource status data that can be uploaded according to each intelligent sound box carry out integration duplicate removal, With find to be stored in intelligent sound box with the mutually duplicate song resource data of the closer node server of its network distance, and It reminds intelligent sound box to delete duplicate song resource data, to reach the redundancy for reducing buffer area storage resource, it is empty to improve caching Between availability.
Wherein, resource status data include: the list of songs of caching, the id information of each song and song files MD5 value Deng.
Wherein, CDN server by according to received song to be broadcast id information, obtain containing should song number of resources be broadcast According to node server IP address.Similar to implementing in one shown in Fig. 2, for involved in step S2 " based on it is above-mentioned to Broadcast the id information of song, obtain the IP address for being stored with the node server of song resource data to be broadcast " detailed process include:
S21: the id information of song to be broadcast on judges whether there is the node serve for storing song resource data to be broadcast Device;If so, thening follow the steps S22;If it is not, thening follow the steps S23;
S22: the IP address of the above-mentioned node server for storing song resource data to be broadcast is obtained;
S23: send chain connects the song link that acquisition request obtains song to be broadcast to centralized server;Then, it sends The song link is to intelligent sound box so that intelligent sound box obtains song resource data to be broadcast by above-mentioned song link.
There are each node servers in the distributed network established using CDN technology for the technical solution of the present embodiment May the not stored situation for needing to be broadcast song data, thus, it is still necessary to obtained by centralized server wait broadcast song Bent resource data, i.e. involved in step S23: acquisition request is connect to centralized server by CDN server send chain, and Song link provided by centralized server is forwarded to intelligent sound box by CDN server, in turn, intelligent sound box can pass through Song link gets the resource data of song to be broadcast, so as to buffered play song to be broadcast.Although the music playing system (i.e. CDN server) can not replace centralized server completely, still, can in the case where node server is enough The dependence to centralized server is effectively reduced.
Based on this, the process of above-mentioned steps S2 be can be described as:
Id information of the CDN server according to the song to be broadcast of acquisition, node server of the judgement in distributed network In whether be stored with should the song resource data to be broadcast that matches of song id information be broadcast;It is somebody's turn to do if so, CDN server obtains The IP address of node server, and further execute subsequent step S3;If it is not, then send chain is obtained to take and is asked by CDN server It asks to centralized server, to get the song link of song to be broadcast by centralized server;CDN server forwarding should To intelligent sound box, intelligent sound box will obtain song resource data to be broadcast row buffering of going forward side by side according to the song link and broadcast song link It puts, which embodies the distributed network centered on CDN server and the mutual cooperation between centralized server, phase intermodulation Degree, effectively increases the applicability of whole system.
Wherein, due to there may be being stored with the song resource data to be broadcast in multiple node servers, and due to not Different from the network distance of intelligent sound box with node server, the transmission speed of resource data is not also identical, with intelligent sound The transmission speed of the closer node server of case network distance is faster, user experience is more preferable.Based on this, similar to implement one in scheme Shown in 3, the acquisition methods of the IP address of node server involved in step S22 are included the following steps:
S221: obtain the network of each node server and intelligent sound box that store above-mentioned song resource data to be broadcast away from From;
S222: the IP address of the node server nearest with the network distance of above-mentioned intelligent sound box is obtained.
That is: there are be stored in multiple node servers wait broadcast in using distributed network constructed by CDN technology In the case where song resource data, the network distance of each node server and intelligent sound box will be got respectively;To pass through The network distance with intelligent sound box is compared, the IP address of the node server nearest with intelligent sound box network distance is got, with It avoids blocking in resource data transmission process, the buffering efficiency of resource data can be effectively improved.
Corresponding, the present embodiment additionally provides a kind of music playing system of intelligent sound box based on CDN service, the sound Happy play system is set on intelligent sound box, and music playing system can be specially CDN server.Referring to Fig. 8, the music System includes:
Second receiving module, the resource status data reported for receiving and saving each node server;
Second judgment module, for judging closer with above-mentioned intelligent sound box network distance according to above-mentioned resource status data Node server in whether be stored with and the mutually duplicate song resource data of the intelligent sound box;
Third sending module, for send delete repeat song resource data instruction it is duplicate to delete to intelligent sound box Song resource data;
First receiving module, for receiving the ID for the song to be broadcast that intelligent sound box is uploaded based on content delivery network service Information;
First obtains module, and for the id information based on above-mentioned song to be broadcast, acquisition is stored with song resource data to be broadcast Node server IP address;
First sending module, for sending the IP address of above-mentioned node server to intelligent sound box so that above-mentioned intelligent sound box IP address based on the node server obtains above-mentioned song resource data to be broadcast.
Wherein, similar to shown in Fig. 5 in embodiment one, it is known that the first acquisition module specifically includes:
First judgment module, for the id information according to above-mentioned song to be broadcast, judging whether there is storage should song be broadcast The node server of resource data;
Second obtains module, for obtaining the IP address of the above-mentioned node server for storing song resource data to be broadcast;
Second sending module connects the song that acquisition request obtains to centralized server the song to be broadcast for send chain Link;It is also used to send the song link to intelligent sound box so that intelligent sound box obtains song number of resources to be broadcast by song link According to.
Wherein, similar to shown in Fig. 6 in embodiment one, it is known that the second acquisition module specifically includes:
Third obtains module, for obtaining each node server and intelligent sound that store above-mentioned song resource data to be broadcast The network distance of case;
4th obtains module, for obtaining with the IP of the nearest node server of the network distance of above-mentioned intelligent sound box Location.
The method for playing music and system of a kind of intelligent sound box based on CDN service of the mentioned offer of the present embodiment are benefits Network associate will be carried out between multiple intelligent sound boxes with CDN technology, each intelligent sound box that is mutually related can be used as one A node server, in order to while playing music, the node server that intelligent sound box can be nearest by network distance In get the resource data of song to be broadcast, to realize that fast cache plays the effect of song to be broadcast, can be effectively reduced Property content server load and improve the stability of entire music playing system;Event can also occur in centralized server In the case where barrier, entire music playing system is made still to be able to operate normally.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of method for playing music of the intelligent sound box based on content delivery network service, which is characterized in that the method packet It includes:
S1: the id information for the song to be broadcast that intelligent sound box is uploaded based on content delivery network service is received;
S2: the id information based on the song to be broadcast, with obtaining the IP for being stored with the node server of song resource data to be broadcast Location;
S3: sending the IP address of the node server to intelligent sound box so that the intelligent sound box is based on the node server IP address obtain the song resource data to be broadcast.
2. a kind of method for playing music of the intelligent sound box based on content delivery network service as described in claim 1, special Sign is that the step S2 includes:
S21: according to the id information of the song to be broadcast, the node clothes for storing the song resource data to be broadcast are judged whether there is Business device;If so, thening follow the steps S22;If it is not, thening follow the steps S23;
S22: the IP address of the node server for storing song resource data to be broadcast is obtained;
S23: send chain connects acquisition request to centralized server to obtain the song link of the song to be broadcast;Send the song Song links to intelligent sound box so that the intelligent sound box obtains song resource data to be broadcast by the song link.
3. a kind of method for playing music of the intelligent sound box based on content delivery network service as claimed in claim 2, special Sign is, the step S22 comprising steps of
S221: it obtains and stores each node server of song resource data to be broadcast and the network distance of intelligent sound box;
S222: the IP address of the node server nearest with the network distance of the intelligent sound box is obtained.
4. a kind of music side of intelligent sound box based on content delivery network service as described in any one of claims 1-3 Method, which is characterized in that before the step S1 further include:
S01: the resource status data that each node server is reported are received and saved;
S02: according to the resource status data, judgement in the closer node server of intelligent sound box network distance whether It is stored with and the mutually duplicate song resource data of the intelligent sound box;
S03: the instruction for repeating song resource data is deleted to intelligent sound box to delete duplicate song number of resources if so, sending According to.
5. a kind of method for playing music of the intelligent sound box based on content delivery network service service as claimed in claim 4, It is characterized in that, the resource status data include: the id information and song files MD5 of the list of songs of caching, each song Value.
6. a kind of music playing system of the intelligent sound box based on content delivery network service, which is characterized in that the music is broadcast Place system includes:
First receiving module, for receiving the ID letter for the song to be broadcast that intelligent sound box is uploaded based on content delivery network service Breath;
First obtains module, for the id information based on the song to be broadcast, obtains the section for being stored with song resource data to be broadcast The IP address of point server;
First sending module, for sending the IP address of the node server to intelligent sound box so that the intelligent sound box is based on The IP address of the node server obtains the song resource data to be broadcast.
7. a kind of music playing system of the intelligent sound box based on content delivery network service as claimed in claim 6, special Sign is that the first acquisition module includes:
First judgment module judges whether there is the storage song money to be broadcast for the id information according to the song to be broadcast The node server of source data;
Second obtains module, for obtaining the IP address of the node server for storing song resource data to be broadcast;
Second sending module connects acquisition request to centralized server for send chain to obtain the song chain of the song to be broadcast It connects;It is also used to send the song link to intelligent sound box so that the intelligent sound box is obtained by the song link wait broadcast song Bent resource data.
8. a kind of music playing system of the intelligent sound box based on content delivery network service as claimed in claim 7, special Sign is that the second acquisition module includes:
Third obtains module, for obtaining each node server and intelligent sound box of song resource data to be broadcast described in storage Network distance;
4th obtains module, for obtaining and the IP address of the nearest node server of the network distance of the intelligent sound box.
9. such as a kind of described in any item music systems of the intelligent sound box based on content delivery network service of claim 6-8 System, which is characterized in that the music playing system further include:
Second receiving module, the resource status data reported for receiving and saving each node server;
Second judgment module, for according to the resource status data, judgement and the closer section of intelligent sound box network distance Whether it is stored in point server and the mutually duplicate song resource data of the intelligent sound box;
Third sending module deletes the instruction for repeating song resource data to intelligent sound box to delete duplicate song for sending Resource data.
10. a kind of music playing system of the intelligent sound box based on content delivery network service as claimed in claim 9, special Sign is that the resource status data include: the list of songs of caching, the id information of each song and song files MD5 value.
CN201810677133.0A 2018-06-27 2018-06-27 The method for playing music and system of intelligent sound box based on content delivery network service Pending CN108984651A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810677133.0A CN108984651A (en) 2018-06-27 2018-06-27 The method for playing music and system of intelligent sound box based on content delivery network service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810677133.0A CN108984651A (en) 2018-06-27 2018-06-27 The method for playing music and system of intelligent sound box based on content delivery network service

Publications (1)

Publication Number Publication Date
CN108984651A true CN108984651A (en) 2018-12-11

Family

ID=64539122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810677133.0A Pending CN108984651A (en) 2018-06-27 2018-06-27 The method for playing music and system of intelligent sound box based on content delivery network service

Country Status (1)

Country Link
CN (1) CN108984651A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725691A (en) * 2004-07-23 2006-01-25 腾讯科技(深圳)有限公司 Data download method and system
CN1889490A (en) * 2006-07-14 2007-01-03 北京时越网络技术有限公司 Method for point-to-point content redistributing method based on content distributing network system
CN106713265A (en) * 2016-11-21 2017-05-24 清华大学深圳研究生院 CDN node distribution method and device, CDN node distribution server and CDN network system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725691A (en) * 2004-07-23 2006-01-25 腾讯科技(深圳)有限公司 Data download method and system
CN1889490A (en) * 2006-07-14 2007-01-03 北京时越网络技术有限公司 Method for point-to-point content redistributing method based on content distributing network system
CN106713265A (en) * 2016-11-21 2017-05-24 清华大学深圳研究生院 CDN node distribution method and device, CDN node distribution server and CDN network system

Similar Documents

Publication Publication Date Title
US10491523B2 (en) Load distribution in data networks
CN102656922B (en) Utilize for using swarm intelligence to carry out the system and method for the framework of information router at large scale distributed system
CN102238137B (en) Method, system and device for downloading
CN101014045B (en) Distributed method of service management in service loading network
Wang et al. Turning the postal system into a generic digital communication mechanism
CN103516725B (en) Systems and methods for using compression histories to improve network performance
CN101399746B (en) Packet routing method, system, device and method, system for selecting backup resource
CN106453576B (en) A kind of exchange method, system and control centre based on mixing cloud platform
CN105915945A (en) Content distribution method used for CDN platform and scheduling proxy server thereof
US20090113024A1 (en) Multicase Downloading Using Path Information
US8250171B2 (en) Content delivery apparatus, content delivery method, and content delivery program
CN103634224B (en) The method and system of data transmission in network
CN102047244A (en) Handling long-tail content in a content delivery network (CDN)
CN102355426A (en) Method for transmitting off-line file and system
EP2919426B1 (en) Concurrent hashes and sub-hashes on data streams
CN107888666A (en) A kind of cross-region data-storage system and method for data synchronization and device
CN104378415A (en) High-availability cloud system and achievement method based on information
US20140025838A1 (en) System and method of streaming data over a distributed infrastructure
CN103001964A (en) Cache acceleration method under local area network environment
US20170272498A1 (en) Streaming media file distribution method and system
CN103812881B (en) Offline download control method and device
CN105376292A (en) Explicit strategy feedback in name-based forwarding
CN114268613A (en) Data transmission system, method, apparatus, storage medium, and program product
CN101009563A (en) Content exchange network
CN105354312A (en) File storage method and method, and file downloading method and system

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20190409

Address after: 201616 No. 3666 Sixian Road, Songjiang District, Shanghai

Applicant after: PHICOMM (SHANGHAI) Co.,Ltd.

Address before: 610100 125 Longquan Street Park Road, Longquanyi District, Chengdu, Sichuan.

Applicant before: Sichuan fixun Information Technology Co.,Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201124

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Applicant before: Phicomm (Shanghai) Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181211