CN105791427B - Resource temperature compensation process, device and system - Google Patents

Resource temperature compensation process, device and system Download PDF

Info

Publication number
CN105791427B
CN105791427B CN201610258590.7A CN201610258590A CN105791427B CN 105791427 B CN105791427 B CN 105791427B CN 201610258590 A CN201610258590 A CN 201610258590A CN 105791427 B CN105791427 B CN 105791427B
Authority
CN
China
Prior art keywords
resource
peer
server
crowd
content delivery
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.)
Active
Application number
CN201610258590.7A
Other languages
Chinese (zh)
Other versions
CN105791427A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201610258590.7A priority Critical patent/CN105791427B/en
Publication of CN105791427A publication Critical patent/CN105791427A/en
Application granted granted Critical
Publication of CN105791427B publication Critical patent/CN105791427B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/101Server selection for load balancing based on network conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1025Dynamic adaptation of the criteria on which the server selection is based
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1031Controlling of the operation of servers by a load balancer, e.g. adding or removing servers that serve requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1046Joining mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/1085Resource delivery mechanisms involving dynamic management of active down- or uploading connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1087Peer-to-peer [P2P] networks using cross-functional networking aspects
    • H04L67/1091Interfacing with client-server systems or between P2P systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses resource temperature compensation process, device and system, which comprises excavates the resource information that server obtains pending temperature supplement from peer-to-peer network server;For the resource of each pending temperature supplement, it excavates server and determines that the resource is corresponding to supplemental node quantity M respectively, M is integer, when M is greater than 0, notify crowd raises content delivery network service device and selects M crowd and raise content delivery network node to be downloaded to the resource, selected crowd, which raises content delivery network node and can be used as peer node, provides download service to the resource.Using scheme of the present invention, bandwidth cost and load of content delivery network service device etc. can reduce.

Description

Resource temperature compensation process, device and system
[technical field]
The present invention relates to Internet technologies, in particular to resource temperature compensation process, device and system.
[background technique]
Point to server and point (P2SP, Peer to Server&Peer) be it is a kind of by peer-to-peer network/point-to-point (P2P, Peer to Peer) technology and point technology that server (P2S, Peer to Server) technology is merged.
In P2SP network, Downloadable resource conservation is in content distributing network server (CDN-Server, Content Delivery Network Server) on, meanwhile, for any resource, the user that had downloaded the resource can also be with As reciprocity (Peer) node, the download service to the resource is provided to other users.
In this way, when user needs to be downloaded any resource, if peer node, which is used only, can meet downloading speed Degree requires, then then can only dispatch peer node provides download service for user, whereas if (can be can provide with peer node The peer node of download service) it is several less, i.e. the temperature of the resource is lower, speed of download requirement is unable to satisfy, then then needing Scheduling content distribution network server provides download service for user simultaneously.
For latter situation, download service is provided due to needing content delivery network service device, undoubtedly will increase interior The bandwidth cost of content distributing network server and load etc..
[summary of the invention]
The present invention provides resource temperature compensation process, device and system, can reduce content delivery network service device Bandwidth cost and load.
A kind of resource temperature compensation process, comprising:
Excavate the resource information that server obtains pending temperature supplement from peer-to-peer network server;
For the resource of each pending temperature supplement, the excavation server determines that the resource is corresponding wait mend respectively Number of nodes M is filled, M is integer, when M is greater than 0, notifies crowd raises content delivery network service device and selects M crowd to raise content distribution Network node is downloaded the resource, and selected crowd, which raises content delivery network node, can be used as peer node offer to the money The download service in source.
According to one preferred embodiment of the present invention, the excavation server obtains pending temperature from peer-to-peer network server The resource information of supplement includes:
In daily predetermined instant, the excavation server sends acquisition request to the peer-to-peer network server respectively, And the resource information of pending temperature supplement is obtained from the peer-to-peer network server;
Wherein, the resource of the pending temperature supplement includes: that the peer-to-peer network server is receiving the acquisition After request, according to the sequence that value is descending, download time of each resource in the bandwidth peak period of the previous day is arranged Sequence is in the resource of top N after sequence, N is positive integer.
According to one preferred embodiment of the present invention, the resource excavated server and each of get pending temperature supplement Information includes:
Download time of the mark, the size of the resource, the resource of the resource in the bandwidth peak period, and, it should Averagely available peer node quantity of the resource in the bandwidth peak period;
The excavation server determines that the resource is corresponding
The download time that server is excavated according to the size of the resource and the resource in the bandwidth peak period Download concurrency while calculating the resource, and according to calculated while downloading concurrency and the resource in the bandwidth Averagely available peer node quantity in peak period, it is corresponding to supplemental node quantity M to further calculate out the resource.
According to one preferred embodiment of the present invention, concurrency is downloaded while each resource
Wherein, a indicates the size of the resource;
B indicates preset average speed of download;
C indicates download time of the resource in the bandwidth peak period;
D indicates the duration of the bandwidth peak period.
According to one preferred embodiment of the present invention, each resource is corresponding to supplemental node quantity M=A-e;
Wherein, A is indicated while being downloaded concurrency;
E indicates averagely available peer node quantity of the resource in the bandwidth peak period.
A kind of resource temperature compensation process, comprising:
Peer-to-peer network server, which receives, excavates the acquisition request that sends of server, to excavations server return into The resource information of row temperature supplement, so that the excavation server is as follows to the resource progress of each pending temperature supplement respectively Processing: determine the resource it is corresponding to supplemental node quantity M, M be integer, when M is greater than 0, crowd is notified to raise content delivery network Network server, which selects M crowd and raises content delivery network node, is downloaded the resource, and selected crowd raises content distributing network Node can be used as download service of the peer node offer to the resource.
According to one preferred embodiment of the present invention, the acquisition that the peer-to-peer network server receives that excavation server is sent is asked It asks and includes:
In daily predetermined instant, the peer-to-peer network server receives the acquisition that the excavation server is sent and asks It asks;
The resource of the pending temperature supplement includes: that the peer-to-peer network server is receiving the acquisition request Afterwards, the sequence descending according to value is ranked up download time of each resource in the bandwidth peak period of the previous day, row The resource of top N is in after sequence, N is positive integer.
According to one preferred embodiment of the present invention, this method further comprises:
When user is downloaded a resource and crowd raises when preserving the resource on content delivery network node, if only making Speed of download requirement can be met by raising the peer node other than content delivery network node with crowd, then the peer-to-peer network server Only scheduling crowd raises the peer node other than content delivery network node and provides download service for user, otherwise, the peer-to-peer network Server, which dispatches crowd simultaneously and raises content delivery network node, provides download service for user.
A kind of resource temperature compensation process, comprising:
Crowd raises content delivery network service device and receives the notification message that excavation server is sent, and disappears according to the notice What is specified in breath is integer to supplemental node quantity M, M, selects M crowd and raises content delivery network node in the notification message The resource of specified pending temperature supplement is downloaded, and selected crowd, which raises content delivery network node, can be used as peer node The download service of resource to the pending temperature supplement is provided.
According to one preferred embodiment of the present invention, the crowd, which raises content delivery network service device and selects M crowd, raises content distribution Network node is downloaded the resource for the pending temperature supplement specified in the notification message
The crowd raises content delivery network service device and takes the resource of the pending temperature supplement in content distributing network Download address on business device notifies to raise content delivery network node to M selected crowd, so that M selected crowd raises content Distribution network node carries out resource downloading according to the download address received.
A kind of excavation server, comprising: pull module and pushing module;
It is described to pull module, for obtaining the resource information of pending temperature supplement from peer-to-peer network server, concurrently Give the pushing module;
The pushing module is handled as follows for the resource respectively to each pending temperature supplement: determining this Corresponding resource to supplemental node quantity M, M is integer, when M is greater than 0, crowd is notified to raise content delivery network service device and select M A crowd raises content delivery network node and is downloaded to the resource, and selected crowd, which raises content delivery network node, can be used as equity Node provides the download service to the resource.
According to one preferred embodiment of the present invention, the module that pulls is in daily predetermined instant, Xiang Suoshu peer-to-peer network clothes Business device sends acquisition request, and the resource information of pending temperature supplement is obtained from the peer-to-peer network server;
Wherein, the resource of the pending temperature supplement includes: that the peer-to-peer network server is receiving the acquisition After request, according to the sequence that value is descending, download time of each resource in the bandwidth peak period of the previous day is arranged Sequence is in the resource of top N after sequence, N is positive integer.
According to one preferred embodiment of the present invention, the resource letter for pulling module and each of getting pending temperature supplement Breath includes:
Download time of the mark, the size of the resource, the resource of the resource in the bandwidth peak period, and, it should Averagely available peer node quantity of the resource in the bandwidth peak period;
For the resource of each pending temperature supplement, the pushing module exists according to the size of the resource and the resource Download time in the bandwidth peak period downloads concurrency while calculating the resource, and is downloaded simultaneously according to calculated The averagely available peer node quantity of concurrency and the resource in the bandwidth peak period, further calculates out the resource pair Answer to supplemental node quantity M.
According to one preferred embodiment of the present invention, concurrency is downloaded while each resource
Wherein, a indicates the size of the resource;
B indicates preset average speed of download;
C indicates download time of the resource in the bandwidth peak period;
D indicates the duration of the bandwidth peak period.
According to one preferred embodiment of the present invention, each resource is corresponding to supplemental node quantity M=A-e;
Wherein, A is indicated while being downloaded concurrency;
E indicates averagely available peer node quantity of the resource in the bandwidth peak period.
A kind of peer-to-peer network server, comprising: feedback module and scheduler module;
The feedback module for will be sent to the scheduler module received from the acquisition request for excavating server, and connects The resource information for receiving the pending temperature supplement that the scheduler module returns, is sent to the excavation server, so as to the digging Pick server is respectively handled as follows the resource of each pending temperature supplement: determining that the resource is corresponding wait supplement section Point quantity M, M is integer, when M is greater than 0, notifies crowd raises content delivery network service device and selects M crowd to raise content distributing network Node is downloaded the resource, and selected crowd, which raises content delivery network node, can be used as peer node offer to the resource Download service;
The scheduler module, for providing the resource information of pending temperature supplement for the feedback module.
According to one preferred embodiment of the present invention, the scheduler module is further used for, when user is downloaded a resource, And crowd raises when preserving the resource on content delivery network node, if many equities raised other than content delivery network node are used only Node can meet speed of download requirement, then only many peer nodes raised other than content delivery network node of scheduling provide for user Otherwise download service, while dispatching crowd and raises content delivery network node and providing download service for user.
A kind of crowd raises content delivery network service device, comprising: obtains module and temperature complementary module;
The acquisition module for receiving the notification message for excavating server and sending, and is sent to the temperature supplement Module;
The temperature complementary module, for being integer to supplemental node quantity M, M according to what is specified in the notification message, Select M crowd raise content delivery network node in the notification message specify pending temperature supplement resource carry out down It carries, selected crowd, which raises content delivery network node and can be used as peer node, to be provided to the resource of the pending temperature supplement Download service.
According to one preferred embodiment of the present invention, the temperature complementary module will be including the resource of the pending temperature supplement Download address on content distributing network server notifies to raise content delivery network node to M selected crowd, so as to selected M crowd raise content delivery network node resource downloading carried out according to the download address that receives.
A kind of resource temperature replenishment system, comprising:
Excavation server, peer-to-peer network server as described above as described above, and, crowd as described above raises content Distribution network server.
It can be seen that the money that can first determine that out pending temperature supplement using scheme of the present invention from above-mentioned introduction Source, the resource progress that can raise content delivery network node using crowd to supplement pending temperature later can be mended with peer node It fills, to enhance resource temperature, has been avoided as much as problems of the prior art, has thereby reduced content delivery network The bandwidth cost of network server and load etc..
[Detailed description of the invention]
Fig. 1 is the flow chart of resource temperature compensation process embodiment of the present invention.
Fig. 2 is that excavation server of the present invention, peer-to-peer network server, crowd raise content delivery network service device, content Distribution network server, many interactive mode schematic diagrames raised between content delivery network node.
Fig. 3 is the composed structure schematic diagram that the present invention excavates server example.
Fig. 4 is the composed structure schematic diagram of peer-to-peer network server example of the present invention.
Fig. 5 is the composed structure schematic diagram that crowd of the present invention raises content delivery network service device embodiment.
[specific embodiment]
Aiming at the problems existing in the prior art, a kind of resource temperature additional project is proposed in the present invention, crowd is raised into content Distribution network technology is introduced into a little in server and spot net, raises content distributing network technology using crowd, to resource can It is supplemented with peer node number, to enhance resource temperature etc..
To make the objectives, technical solutions, and advantages of the present invention clearer, right in the following with reference to the drawings and specific embodiments The present invention is described in detail.
Embodiment one
Fig. 1 is the flow chart of resource temperature compensation process embodiment of the present invention, as shown in Figure 1, including realizing in detail below Mode.
In 11, excavate server (Mining-Server) obtain from the peer-to-peer network server (P2P-Server) to Carry out the resource information of temperature supplement.
Excavating server is to realize scheme of the present invention, a kind of newly-increased network equipment.
Acquisition request can be sent to peer-to-peer network server in daily predetermined instant by excavating server, and from peer-to-peer network The resource information of pending temperature supplement is obtained in network server, the predetermined instant is usually that user's downloading behavior is fewer Idle moment, for example morning is a bit.
Peer-to-peer network server receives after the acquisition request for excavating server, can be according to descending suitable of value Sequence is ranked up download time of each resource downloaded for user in the bandwidth peak period of the previous day, and will sequence The resource supplemented as pending temperature of resource in top N afterwards, N is positive integer, specific value can according to actual needs and It is fixed, typically larger than 1.
Assuming that peer-to-peer network server receive acquisition request time be morning on January 4th, 2016 a bit, then " preceding One day " refer on January 3rd, 2016.
Bandwidth peak period corresponds to a Duan Shichang, for example, the time, can be divided into 24 times by simplest mode Section, each period when it is 1 hour a length of, the period where when wherein bandwidth reaches peak value is bandwidth peak period.
The resource for coming top N is the more resource of download time in the bandwidth peak period of the previous day, these resources Downloading is in great demand, once occur that the problem of peer node deficiency can be used, if all going content delivery network service device to download, Bandwidth cost and the load etc. that content delivery network service device can be greatly increased, so needing to carry out temperature benefit to these resources It fills, and downloads behavior fewer free time using user to carry out temperature supplement to resource, can greatly mitigate bandwidth The bandwidth pressure of peak period.
It is easy to appear for example, a certain software is popular software to such case, in bandwidth peak period in practical applications Interior, many users can go to download the corresponding installation compressed package of the software, but may most of user just deletion after the download is complete The installation compressed package downloaded, to cause available peer node number seldom.
In 12, for the resource of each pending temperature supplement, excavates server and determine that the resource is corresponding respectively It is integer to supplemental node quantity M, M, when M is greater than 0, notifies crowd raises content delivery network service device and selects M crowd to raise content Distribution network node is downloaded the resource, and selected crowd, which raises content delivery network node, can be used as peer node offer pair The download service of the resource.
It excavates server and each of gets the resource information that pending temperature is supplemented from peer-to-peer network server can include: Download time of the mark, the size of the resource, the resource of the resource in bandwidth peak period, and, the resource is in bandwidth height Averagely available peer node quantity in the peak phase.
Peer-to-peer network server can provide the Resources list of a pending temperature supplement, the list to excavate server In include N item record, every record respectively corresponds the resource of a pending temperature supplement, has respectively included in every record Download time of the mark, the size of the resource, the resource of the resource in bandwidth peak period, and, the resource is in bandwidth height Averagely available peer node quantity in the peak phase etc..
The mark of the resource refers to the ID of the resource;Download time of the resource in bandwidth peak period, that is, refer to the resource In the number that bandwidth peak value is downloaded in total;Averagely available peer node quantity of the resource in bandwidth peak period can pass through Be calculated: as first by received every time in bandwidth peak period for the resource downloading request when available peer node number It measures and is added summation, then download the number requested for the resource divided by what is received in bandwidth peak period with sum, Obtained quotient can be used as averagely available peer node quantity of the resource in bandwidth peak period.
For the resource of each pending temperature supplement, excavating server can exist according to the size of the resource and the resource Download time in bandwidth peak period downloads concurrency while calculating the resource, and concurrent according to calculated while downloading The averagely available peer node quantity of degree and the resource in bandwidth peak period, it is corresponding wait mend to further calculate out the resource Fill number of nodes M.
Specifically, for the resource of each pending temperature supplement:
Concurrency is downloaded while the resourceWherein, a indicates the size of the resource;B expression is preset Average speed of download, specific value can be determined according to actual needs, and be obtained by measuring bandwidth pressure and user experience One value;C indicates download time of the resource in bandwidth peak period;The duration of d expression bandwidth peak period;
The resource is corresponding to supplemental node quantity M=A-e;Wherein, A indicates to download concurrency while the resource;E table Show averagely available peer node quantity of the resource in bandwidth peak period.
For the resource of each pending temperature supplement, the calculated resource is corresponding wait supplement section in the manner described above Point quantity M may be 0, it is also possible to negative (less than 0), it is also possible to positive number (be greater than 0), to then 0 and be negative both Situation, illustrating can be enough with the quantity of peer node, does not need to be supplemented number of nodes, and to this feelings of then positive number Condition, then explanation can use the lazy weight of peer node, require supplementation with number of nodes, need notice many correspondingly, excavating server It raises content delivery network service device and selects M crowd and raise content delivery network node and the resource is downloaded.
Specifically, it is many raise content delivery network service device can by downloading of the resource on content distributing network server Location notifies to raise content delivery network node to M selected crowd, so that M selected crowd raises content delivery network node root Resource downloading is carried out according to the download address received.Wherein, the download address of the resource can be is taken by peer-to-peer network server Band is supplied to excavation server in the Resources list that pending temperature is supplemented, and then is supplied to crowd by excavation server and raises content Distribution network server.
Crowd, which raises content delivery network service device and how to raise from numerous crowds, to be selected in content delivery network node in M crowd raise With no restriction, for example, the strategy that load balancing can be used is selected, specific implementation can be according to practical need for content distributing network node Depending on wanting.
Based on above-mentioned introduction, for any resource, when user needs to download the resource and crowd raises content delivery network node On when preserving the resource, wanted if the peer nodes that crowd raises other than content delivery network node are used only and can meet speed of download It asks, then peer-to-peer network server can only dispatch that many to raise the peer node other than content delivery network node be that user provides downloading and takes Business, otherwise, peer-to-peer network server can dispatch crowd simultaneously to be raised content delivery network node and provides download service for user.
The available peer node list of the resource can be safeguarded for any resource, in peer-to-peer network server, it should Available peer node in list may include that traditional peer node and heretofore described crowd raise content distributing network section Point can preferentially use traditional peer node, if not being able to satisfy speed of download requirement, can further use crowd and raise content distribution Network node can also further use content delivery network service device if being not met by speed of download requirement.
In summary it introduces, Fig. 2 is that excavation server of the present invention, peer-to-peer network server, crowd raise content delivery network Network server, content delivery network service device, many interactive mode schematic diagrames raised between content delivery network node.
As shown in Fig. 2, excavating the resource information that server obtains pending temperature supplement from peer-to-peer network server;It is right In the resource of each pending temperature supplement, excavates server and determine that the resource is corresponding to supplemental node quantity M respectively, and When M be greater than 0 when, notify crowd raise content delivery network service device select M crowd raise content delivery network node to the resource into Row downloading, M selected crowd, which raises content delivery network node, required resource is downloaded from content delivery network service device, And it is saved after downloading.
Embodiment two
Fig. 3 is the composed structure schematic diagram that the present invention excavates server example, as shown in Figure 3, comprising: pull module 31 With pushing module 32.
Module 31 is pulled, for obtaining the resource information of pending temperature supplement from peer-to-peer network server, and is sent To pushing module 32;
Pushing module 32 is handled as follows for the resource respectively to each pending temperature supplement: determining the money Corresponding source to supplemental node quantity M, M is integer, when M is greater than 0, crowd is notified to raise content delivery network service device and select M Crowd raises content delivery network node and is downloaded to the resource, and selected crowd raises content delivery network node and can be used as to constant pitch Point provides the download service to the resource.
Acquisition request can be sent to peer-to-peer network server in daily predetermined instant by pulling module 31, and from peer-to-peer network The resource information of pending temperature supplement is obtained in network server.
Wherein, the resource of pending temperature supplement can include: peer-to-peer network server after receiving acquisition request, according to The descending sequence of value is ranked up download time of each resource in the bandwidth peak period of the previous day, after sequence In the resource of top N, N is positive integer.
Pull the resource information that module 31 each of gets pending temperature supplement can include: the mark of the resource, should The download time of the size of resource, the resource in bandwidth peak period, and, the resource is average available in bandwidth peak period Peer node quantity etc..
Peer-to-peer network server can provide the Resources list of a pending temperature supplement, the list to excavate server In include N item record, every record respectively corresponds the resource of a pending temperature supplement, has respectively included in every record Download time of the mark, the size of the resource, the resource of the resource in bandwidth peak period, and, the resource is in bandwidth height Averagely available peer node quantity in the peak phase etc..
For the resource of each pending temperature supplement, pushing module 32 can exist according to the size of the resource and the resource Download time in bandwidth peak period downloads concurrency while calculating the resource, and concurrent according to calculated while downloading The averagely available peer node quantity of degree and the resource in bandwidth peak period, it is corresponding wait mend to further calculate out the resource Fill number of nodes M.
Specifically, for the resource of each pending temperature supplement:
Concurrency is downloaded while the resourceWherein, a indicates the size of the resource;B expression is preset Average speed of download, specific value can be determined according to actual needs, and be obtained by measuring bandwidth pressure and user experience One value;C indicates download time of the resource in bandwidth peak period;The duration of d expression bandwidth peak period;
The resource is corresponding to supplemental node quantity M=A-e;Wherein, A indicates to download concurrency while the resource;E table Show averagely available peer node quantity of the resource in bandwidth peak period.
For the resource of each pending temperature supplement, the calculated resource is corresponding wait supplement section in the manner described above Point quantity M may be 0, it is also possible to negative, it is also possible to which positive number to then 0 and is negative both of these case, illustrates available pair The quantity of equal nodes is enough, does not need to be supplemented number of nodes, and to then positive number such case, then explanation can use equity The lazy weight of node, requires supplementation with number of nodes, correspondingly, pushing module 32 needs that crowd is notified to raise content delivery network service Device, which selects M crowd and raises content delivery network node, is downloaded the resource.
Embodiment three
Fig. 4 is the composed structure schematic diagram of peer-to-peer network server example of the present invention, as shown in Figure 4, comprising: feedback mould Block 41 and scheduler module 42.
Feedback module 41 for will be sent to scheduler module 42 received from the acquisition request for excavating server, and receives tune The resource information for spending the pending temperature supplement that module 42 returns, is sent to excavation server, right respectively to excavate server The resource of each pending temperature supplement is handled as follows: determine the resource it is corresponding to supplemental node quantity M, M be whole Number, when M be greater than 0 when, notify crowd raise content delivery network service device select M crowd raise content delivery network node to the resource into Row downloading, selected crowd, which raises content delivery network node, can be used as download service of the peer node offer to the resource;
Scheduler module 42, for providing the resource information of pending temperature supplement for feedback module 41.
Feedback module 41 can receive in daily predetermined instant and excavate the band for carrying the previous day that server is sent The acquisition request of wide peak period information, and it is sent to scheduler module 42.
After scheduler module 42 receives the acquisition request from feedback module 41, sequence that can be descending according to value, Download time of each resource downloaded for user in the bandwidth peak period of the previous day is ranked up, and will be after sequence In the resource that the resource of top N is supplemented as pending temperature, N is positive integer, typically larger than 1.
Wherein, the resource information of each pending temperature supplement can include: the mark of the resource, is somebody's turn to do at the size of the resource Download time of the resource in bandwidth peak period, and, averagely available peer node quantity of the resource in bandwidth peak period Deng.The resource can be calculated according to the download time of the size of the resource and the resource in bandwidth peak period by excavating server While download concurrency, and according to calculated while downloading concurrency and the resource averagely may be used in bandwidth peak period With peer node quantity, it is corresponding to supplemental node quantity M to further calculate out the resource.
Scheduler module 42 can be further used for, when user is downloaded a resource and crowd raises content distributing network section When preserving the resource on point, if many peer nodes raised other than content delivery network node, which are used only, can meet speed of download Download service is provided for user it is required that then only dispatching crowd and raising the peer node other than content delivery network node, otherwise, is adjusted simultaneously Degree crowd raises content delivery network node and provides download service for user.
The available peer node list of the resource, the list can be safeguarded for any resource, in scheduler module 42 In available peer node may include that traditional peer node and heretofore described crowd raise content delivery network node, can Traditional peer node is preferentially used, if not being able to satisfy speed of download requirement, crowd can be further used and raise content distributing network Node can also further use content delivery network service device if being not met by speed of download requirement.
Example IV
Fig. 5 is the composed structure schematic diagram that crowd of the present invention raises content delivery network service device embodiment, as shown in figure 5, packet It includes: obtaining module 51 and temperature complementary module 52.
Module 51 is obtained, for receiving the notification message for excavating server and sending, and is sent to temperature complementary module 52;
Temperature complementary module 52 is integer to supplemental node quantity M, M for what is specified in message as per advice, selects M A crowd raises content delivery network node and is downloaded to the resource for the pending temperature supplement specified in notification message, selected Crowd, which raises content delivery network node, can be used as the download service for the resource that peer node offer supplements pending temperature.
In practical applications, the resource that temperature complementary module 52 can supplement pending temperature is in content delivery network service Download address on device notifies to raise content delivery network node to M selected crowd, so that M selected crowd raises content point Hair network node carries out resource downloading according to the download address received.
How temperature complementary module 52 raises from numerous crowds is selected M crowd and raises content delivery network in content delivery network node With no restriction, for example, the strategy that load balancing can be used is selected, specific implementation can be determined according to actual needs network node.
Embodiment five
A kind of resource temperature replenishment system is disclosed in the present embodiment, comprising: excavation server described in embodiment two, Peer-to-peer network server described in embodiment three, and, crowd described in example IV raises content delivery network service device, tool Body realization please refers to preceding description, repeats no more.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (Processor) execute the present invention The part steps of embodiment the method.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. it is various It can store the medium of program code.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (18)

1. a kind of resource temperature compensation process characterized by comprising
Excavate the resource information that server obtains pending temperature supplement from peer-to-peer network server;
For the resource of each pending temperature supplement, the excavation server determines that the resource is corresponding wait supplement section respectively Point quantity M, M is integer, when M is greater than 0, notifies crowd raises content delivery network service device and selects M crowd to raise content distributing network Node is downloaded the resource, and selected crowd, which raises content delivery network node, can be used as peer node offer to the resource Download service;
Wherein, the excavation server determines that the resource is corresponding and includes: to supplemental node quantity M
The excavation server is according to the size and the resource of the resource got in the bandwidth peak period of the previous day Download time downloads concurrency while calculating the resource, and according to calculated while downloading concurrency and get Averagely available peer node quantity of the resource in the bandwidth peak period, it is corresponding to supplemental node number to calculate the resource Measure M.
2. resource temperature compensation process according to claim 1, which is characterized in that
The resource information that the excavation server obtains pending temperature supplement from peer-to-peer network server includes: daily Predetermined instant, the excavation server send acquisition request to the peer-to-peer network server respectively, and from the peer-to-peer network The resource information of pending temperature supplement is obtained in server;
Wherein, the resource of the pending temperature supplement includes: that the peer-to-peer network server is receiving the acquisition request Afterwards, the sequence descending according to value is ranked up download time of each resource in the bandwidth peak period of the previous day, row The resource of top N is in after sequence, N is positive integer.
3. resource temperature compensation process according to claim 1, which is characterized in that
Concurrency is downloaded while each resource
Wherein, a indicates the size of the resource;
B indicates preset average speed of download;
C indicates download time of the resource in the bandwidth peak period;
D indicates the duration of the bandwidth peak period.
4. resource temperature compensation process according to claim 1, which is characterized in that
Each resource is corresponding to supplemental node quantity M=A-e;
Wherein, A is indicated while being downloaded concurrency;
E indicates averagely available peer node quantity of the resource in the bandwidth peak period.
5. a kind of resource temperature compensation process characterized by comprising
Peer-to-peer network server, which receives, excavates the acquisition request that server is sent, and returns to pending heat to the excavation server The resource information of supplement is spent, so that the excavation server respectively locates the resource of each pending temperature supplement as follows Reason: determine the resource it is corresponding to supplemental node quantity M, M be integer, when M is greater than 0, crowd is notified to raise content distributing network Server, which selects M crowd and raises content delivery network node, is downloaded the resource, and selected crowd raises content distributing network section Point can be used as download service of the peer node offer to the resource;Wherein, the excavation server is according to the resource got Download time in the bandwidth peak period of the previous day of size and the resource download concurrency while calculate the resource, And according to calculated while downloading concurrency and average available pair in the bandwidth peak period of the resource that gets Equal number of nodes, it is corresponding to supplemental node quantity M to calculate the resource.
6. resource temperature compensation process according to claim 5, which is characterized in that
It includes: in daily predetermined instant, institute that the peer-to-peer network server, which receives and excavates the acquisition request that server is sent, It states peer-to-peer network server and receives the acquisition request that the excavation server is sent;
The resource of the pending temperature supplement includes: the peer-to-peer network server after receiving the acquisition request, is pressed According to the sequence that value is descending, download time of each resource in the bandwidth peak period of the previous day is ranked up, after sequence Resource in top N, N are positive integer.
7. resource temperature compensation process according to claim 5, which is characterized in that
This method further comprises:
When user is downloaded a resource and crowd raises when preserving the resource on content delivery network node, if crowd is used only Speed of download requirement can be met by raising the peer node other than content delivery network node, then the peer-to-peer network server is only adjusted Degree crowd raises the peer node other than content delivery network node and provides download service for user, otherwise, the peer-to-peer network service Device, which dispatches crowd simultaneously and raises content delivery network node, provides download service for user.
8. a kind of resource temperature compensation process characterized by comprising
Crowd raises content delivery network service device and receives the notification message that excavation server is sent, and according in the notification message Specified is integer to supplemental node quantity M, M, selects M crowd and raises content delivery network node to specified in the notification message Pending temperature supplement resource be downloaded, selected crowd raise content delivery network node can be used as peer node offer Download service to the resource of the pending temperature supplement;Wherein, described to supplemental node quantity M includes: excavation clothes Business device is according to the size and the resource of the resource of the pending temperature supplement got in the bandwidth peak period of the previous day Download time downloads concurrency while calculating the resource, and according to calculated while downloading concurrency and get Averagely available peer node quantity of the resource in the bandwidth peak period, the calculated resource are corresponding to supplemental node Quantity M.
9. resource temperature compensation process according to claim 8, which is characterized in that
The crowd raise content delivery network service device select M crowd raise content delivery network node in the notification message specify The resource of pending temperature supplement be downloaded and include:
The crowd raises content delivery network service device for the resource of the pending temperature supplement in content distributing network server On download address notify to raise content delivery network node to M selected crowd, so that M selected crowd raises content distribution Network node carries out resource downloading according to the download address received.
10. a kind of excavation server characterized by comprising pull module and pushing module;
It is described to pull module, for obtaining the resource information of pending temperature supplement from peer-to-peer network server, and it is sent to The pushing module;
The pushing module is handled as follows for the resource respectively to each pending temperature supplement: determining the resource Corresponding to supplemental node quantity M, M is integer, when M is greater than 0, notify crowd raise content delivery network service device select M it is many It raises content delivery network node to be downloaded the resource, selected crowd, which raises content delivery network node, can be used as peer node Download service to the resource is provided;
Wherein, for the resource of each pending temperature supplement, the pushing module according to the size of the resource got with And download time of the resource in bandwidth peak period downloads concurrency while calculate the resource, and according to calculated same When averagely available peer node quantity in the bandwidth peak period of downloading concurrency and the resource that gets, calculate The resource is corresponding to supplemental node quantity M.
11. excavation server according to claim 10, which is characterized in that
For the module that pulls in daily predetermined instant, Xiang Suoshu peer-to-peer network server sends acquisition request, and from described right The resource information of pending temperature supplement is obtained in equal network servers;
Wherein, the resource of the pending temperature supplement includes: that the peer-to-peer network server is receiving the acquisition request Afterwards, the sequence descending according to value is ranked up download time of each resource in the bandwidth peak period of the previous day, row The resource of top N is in after sequence, N is positive integer.
12. excavation server according to claim 10, which is characterized in that
Concurrency is downloaded while each resource
Wherein, a indicates the size of the resource;
B indicates preset average speed of download;
C indicates download time of the resource in the bandwidth peak period;
D indicates the duration of the bandwidth peak period.
13. excavation server according to claim 10, which is characterized in that
Each resource is corresponding to supplemental node quantity M=A-e;
Wherein, A is indicated while being downloaded concurrency;
E indicates averagely available peer node quantity of the resource in the bandwidth peak period.
14. a kind of peer-to-peer network server characterized by comprising feedback module and scheduler module;
The feedback module for will be sent to the scheduler module received from the acquisition request for excavating server, and receives institute The resource information for stating the pending temperature supplement of scheduler module return, is sent to the excavation server, so as to excavation clothes Business device is respectively handled as follows the resource of each pending temperature supplement: determining that the resource is corresponding to supplemental node number M is measured, M is integer, when M is greater than 0, notifies crowd raises content delivery network service device and selects M crowd to raise content delivery network node The resource is downloaded, selected crowd, which raises content delivery network node, can be used as downloading of the peer node offer to the resource Service;Wherein, the excavation server is according to the size and the resource of the resource got on the bandwidth peak of the previous day Download time in phase downloads concurrency while calculating the resource, and according to calculated while downloading concurrency and obtain Averagely available peer node quantity of the resource got in the bandwidth peak period, it is corresponding wait supplement to calculate the resource Number of nodes M;
The scheduler module, for providing the resource information of pending temperature supplement for the feedback module.
15. peer-to-peer network server according to claim 14, which is characterized in that
The scheduler module is further used for, when user is downloaded a resource and crowd raises and protects on content delivery network node When having the resource, if the peer node that crowd raises other than content delivery network node, which is used only, can meet speed of download requirement, Then only scheduling crowd raises the peer node other than content delivery network node and provides download service for user, otherwise, while dispatching crowd It raises content delivery network node and provides download service for user.
16. a kind of crowd raises content delivery network service device characterized by comprising obtain module and temperature complementary module;
The acquisition module for receiving the notification message for excavating server and sending, and is sent to the temperature complementary module;
The temperature complementary module is selected for being integer to supplemental node quantity M, M according to what is specified in the notification message M crowd raises content delivery network node and is downloaded to the resource for the pending temperature supplement specified in the notification message, institute The crowd selected, which raises content delivery network node, can be used as the downloading for the resource that peer node is provided to the pending temperature supplement Service;Wherein, described to supplemental node quantity M includes: that the excavation server is supplemented according to the pending temperature got It is downloaded simultaneously while the download time of the size of resource and the resource in the bandwidth peak period of the previous day calculates the resource Hair degree, and according to the resource averagely may be used in the bandwidth peak period that be calculated while downloading concurrency and get With peer node quantity, the calculated resource is corresponding to supplemental node quantity M.
17. crowd according to claim 16 raises content delivery network service device, which is characterized in that
Downloading of the temperature complementary module by the resource of the pending temperature supplement on content distributing network server Location notifies to raise content delivery network node to M selected crowd, so that M selected crowd raises content delivery network node root Resource downloading is carried out according to the download address received.
18. a kind of resource temperature replenishment system characterized by comprising
Excavation server, pair as described in any one of claim 14~15 as described in any one of claim 10~13 Equal network servers, and, the crowd as described in any one of claim 16~17 raises content delivery network service device.
CN201610258590.7A 2016-04-22 2016-04-22 Resource temperature compensation process, device and system Active CN105791427B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610258590.7A CN105791427B (en) 2016-04-22 2016-04-22 Resource temperature compensation process, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610258590.7A CN105791427B (en) 2016-04-22 2016-04-22 Resource temperature compensation process, device and system

Publications (2)

Publication Number Publication Date
CN105791427A CN105791427A (en) 2016-07-20
CN105791427B true CN105791427B (en) 2019-09-20

Family

ID=56399318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610258590.7A Active CN105791427B (en) 2016-04-22 2016-04-22 Resource temperature compensation process, device and system

Country Status (1)

Country Link
CN (1) CN105791427B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506665B (en) * 2016-11-18 2019-09-24 郑州云海信息技术有限公司 A kind of load-balancing method and platform of distributed video monitoring system
CN108737121B (en) * 2018-05-11 2022-02-01 深圳市网心科技有限公司 Cost accounting method, node device, client server, network system, and medium
CN108683730B (en) * 2018-05-11 2021-08-06 深圳市网心科技有限公司 Resource scheduling method, service server, client terminal, network system and medium
CN108616600B (en) * 2018-05-11 2021-12-03 深圳市网心科技有限公司 Resource scheduling method, client server, node device, network system, and medium
CN111064997B (en) * 2018-10-16 2021-11-16 深圳市云帆加速科技有限公司 Resource pre-distribution method and device
CN109672900B (en) * 2018-12-05 2021-04-16 北京奇艺世纪科技有限公司 Method and device for generating hot content list
CN110086868B (en) * 2019-04-25 2022-03-04 北京奇艺世纪科技有限公司 Content pushing method, device and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668046A (en) * 2009-10-13 2010-03-10 成都市华为赛门铁克科技有限公司 Resource caching method, resource obtaining method, device and system thereof
CN102111438A (en) * 2010-12-24 2011-06-29 华为技术有限公司 Method and device for parameter adjustment and distributed computation platform system
CN103997512A (en) * 2014-04-14 2014-08-20 南京邮电大学 Data duplicate quantity determination method for cloud storage system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8484340B2 (en) * 2010-06-14 2013-07-09 Microsoft Corporation Server array capacity management calculator

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668046A (en) * 2009-10-13 2010-03-10 成都市华为赛门铁克科技有限公司 Resource caching method, resource obtaining method, device and system thereof
CN102111438A (en) * 2010-12-24 2011-06-29 华为技术有限公司 Method and device for parameter adjustment and distributed computation platform system
CN103997512A (en) * 2014-04-14 2014-08-20 南京邮电大学 Data duplicate quantity determination method for cloud storage system

Also Published As

Publication number Publication date
CN105791427A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
CN105791427B (en) Resource temperature compensation process, device and system
CN101361045B (en) Method for modeling on-demand free pool of resources
CN104756444B (en) CDN load balances in cloud
CN106056529B (en) Method and equipment for training convolutional neural network for picture recognition
CN105407162B (en) A kind of cloud computing Web application resource load-balancing methods based on the SLA grades of service
CN103336722B (en) A kind of CPU resources of virtual machine monitoring and dynamic allocation method
CN108388472A (en) A kind of elastic task scheduling system and method based on Docker clusters
US20120324463A1 (en) System for Managing Data Collection Processes
CN109788046A (en) A kind of more tactful edge calculations resource regulating methods based on improvement ant colony algorithm
CN106453549A (en) Distributed software version release method and system thereof
CN110502323B (en) Real-time scheduling method for cloud computing tasks
CN106257893A (en) Storage server task response method, client, server and system
CN109669775A (en) Distributed task dispatching method, system and storage medium
CN110502256A (en) A kind of method for upgrading software, terminal and storage medium
CN104202386B (en) A kind of high concurrent amount distributed file system and its secondary load equalization methods
CN105637841B (en) The data classification synchronous for adaptability
JP6352951B2 (en) Display promotional information
CN104283963A (en) Distributed and collaborative type CDN load balancing method
CN109634916A (en) File storage and method for down loading, device and storage medium
CN111381957A (en) Service instance fine scheduling method and system for distributed platform
CN108960946B (en) Order display method and device
CN112866985A (en) Flow control method, resource downloading method, device, equipment and storage medium
CN112286623B (en) Information processing method and device and storage medium
CN116521323A (en) Virtual resource allocation method and device and storage equipment
CN110928676A (en) Power CPS load distribution method based on performance evaluation

Legal Events

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