CN108683730A - Resource regulating method, service server, client terminal, network system and medium - Google Patents
Resource regulating method, service server, client terminal, network system and medium Download PDFInfo
- Publication number
- CN108683730A CN108683730A CN201810453585.0A CN201810453585A CN108683730A CN 108683730 A CN108683730 A CN 108683730A CN 201810453585 A CN201810453585 A CN 201810453585A CN 108683730 A CN108683730 A CN 108683730A
- Authority
- CN
- China
- Prior art keywords
- node device
- server
- service
- node
- client
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses resource regulating method, service server, client terminal, network system and medium, method includes that client server sends service request to service server;Service server determines target node device according to service request;Service server generates node and distributes information;Client server obtains node from service server and distributes information;Client server distributes information after service server obtains node distribution information, according to node and distributes data to target node device.State, the ability etc. of each node device are counted by service server, and determine the node device that can be used for client server and store data according to the service request of client server;Client server is set to provide the services such as faster data download by the storage capacity and bandwidth of magnanimity node device for client terminal;Further service server can also dispatch data resource according to the service contribution information macroscopic view obtained from client terminal.
Description
Technical field
The present invention relates to network technology more particularly to resource regulating method, service server, client terminal, network systems
And medium.
Background technology
(P2SP, Peer to Server and are combined with client/server both of which with P2P, P2P in recent years
Peer) networking is that the multi-source download technology of representative is widely adopted.So-called multi-source download refers to that multiple file sources are same from network
When parallel downloading file destination data downloading mode.But in existing such network system, which node is data be stored in
On can not management and control, it is thus possible to there is certain data to exist only on isolated several node devices, can not provide to the user steady
Fixed data;May also data arbitrarily forwarded in each meshed network, waste a large amount of storage resource and Internet resources.
Invention content
For overcome the deficiencies in the prior art, one of the objects of the present invention is to provide resource regulating methods, are used for business
Server can solve in existing network system, which node is data be stored on can not management and control, it is thus possible to have certain
Data exist only on isolated several node devices, can not provide stable data to the user;May also data in each node
The problem of arbitrarily being forwarded in network, wasting a large amount of storage resource and Internet resources.
The second object of the present invention is to provide resource regulating method, is used for client terminal, can solve existing network
In system, which node is data be stored on can not management and control, it is thus possible to have certain data to exist only in isolated several sections
On point device, stable data can not be provided to the user;May also data arbitrarily forwarded in each meshed network, waste is a large amount of
The problem of storage resource and Internet resources.
The third object of the present invention is to provide service server, can solve in existing network system that data store
In can not management and control on which node, it is thus possible to there is certain data to exist only on isolated several node devices, Wu Fawei
User provides stable data;May also data arbitrarily forwarded in each meshed network, waste a large amount of storage resource and network
The problem of resource.
The fourth object of the present invention is to provide client terminal, can solve in existing network system, data are stored in
It can not management and control on which node, it is thus possible to there is certain data to exist only on isolated several node devices, can not be to use
Family provides stable data;May also data arbitrarily forwarded in each meshed network, waste a large amount of storage resource and network money
The problem of source.
The fifth object of the present invention is to provide network system, can solve in existing network system, data are stored in
It can not management and control on which node, it is thus possible to there is certain data to exist only on isolated several node devices, can not be to use
Family provides stable data;May also data arbitrarily forwarded in each meshed network, waste a large amount of storage resource and network money
The problem of source.
The sixth object of the present invention is to provide medium, is stored with computer program, can solve existing network system
In, which node is data be stored on can not management and control, it is thus possible to have certain data to exist only in isolated several nodes and set
It is standby upper, stable data can not be provided to the user;May also data arbitrarily forwarded in each meshed network, waste a large amount of storage
The problem of resource and Internet resources.
An object of the present invention is realized using following technical scheme:
Resource regulating method, is used for service server, and the resource regulating method includes the following steps:
Obtain the service request that client server is sent;
Determine that at least one node device is target node device according to the service request;
It generates node and distributes information, the node distribution information includes the network address of the target node device;
The node is sent to the client server and distributes information, so that the client server is to the destination node
Equipment distributes data.
Further, the node distribution information further includes extended instruction corresponding with the target node device;
It is described to send the node to the client server and distribute information, so that the client server is to the target
Node device distributes data, specially:
The node is sent to the client server and distributes information, so that the client server is to the destination node
Equipment distributes data and extended instruction corresponding with the target node device.
Further, the service request includes demand nodes quantity, target node device in the node distribution information
Quantity be less than the demand nodes quantity.
Further, the service request further includes node condition requirement, the node condition require to include memory space,
At least one of in node bandwidth, Regional Distribution.
Further, the extended instruction includes hop count require information and/or region require information, and forwarding counting letter
Breath.
Further, the resource regulating method is further comprising the steps of:
Service contribution information is obtained from client terminal, is used to interact with the service server built in the client terminal
Business plug-in unit;
If the service contribution information meets point spread condition, sends the second extension and the second extension is notified to notify to institute
Client server is stated, so that the client server sends new service request to the service server.
Further, described to be obtained before servicing contribution information from client terminal, it is further comprising the steps of:
Request of data is obtained from the client terminal;
At least one source node device is determined according to the request of data, and it is whole that the source node device stores the client
Hold the data of request;
The information of the source node device is sent to the client terminal, so that the client terminal is inserted by the client
Part obtains data from the source node device.
Further, the service contribution information includes node tribute of at least one source node device to the client terminal
Offer information.
Further, the node contribution information includes the transmitting continuous time of the source node device, and the node expands
Exhibition condition includes:The transmitting continuous time of an at least source node device is more than time threshold.
Further, the node contribution information includes the contribution frequency of the source node device, the point spread item
Part includes:The contribution frequency of an at least source node device is more than frequency threshold value.
The second object of the present invention is realized using following technical scheme:
Resource regulating method is used for client terminal, the built-in business for being interacted with service server of the client terminal
Plug-in unit;The resource regulating method includes the following steps:
Data are obtained from least one source node device, the source node device stores the data;
The service contribution information of at least one source node device is counted by the business plug-in unit;
The service contribution information is sent to the service server, so that whether the service server judging notifies
Client server sends new service request;And/or
The service contribution information is sent to the client server, so that the client server judges whether to send
New service request is to the service server.
Further, the service contribution information that at least one source node device is counted by the business plug-in unit
Later, further comprising the steps of:
If the service contribution information meets point spread condition, sends the first extension and the first extension is notified to notify to institute
Client server is stated, so that the client server sends new service request to the service server.
Further, the service contribution information includes section of at least one source node device to the client terminal
Point contribution information
Further, the node contribution information includes the transmitting continuous time of the source node device, and the node expands
Exhibition condition includes:The transmitting continuous time of an at least source node device is more than time threshold.
Further, the node contribution information includes the contribution frequency of the source node device, the point spread item
Part includes:The contribution frequency of an at least source node device is more than frequency threshold value.
The third object of the present invention is realized using following technical scheme:
Service server, including memory, processor and program stored in memory, described program are configured to
It is executed by processor, the step of realizing above-mentioned resource regulating method when processor executes described program.
The fourth object of the present invention is realized using following technical scheme:
Client terminal, including memory, processor and program stored in memory, described program be configured to by
The step of processor executes, and processor realizes above-mentioned resource regulating method when executing described program.
The fifth object of the present invention is realized using following technical scheme:
Network system, including above-mentioned service server, above-mentioned client terminal and client server and multiple nodes
Equipment;The service server, client server are communicated with each node device and are connected, the service server and customer service
Device communication connection, the client terminal are used to obtain data from the node device.
The sixth object of the present invention is realized using following technical scheme:
Medium, the media storage have computer program, the computer program to realize above-mentioned money when being executed by processor
The step of source dispatching method.
Compared with prior art, the advantageous effect of the embodiment of the present invention is:By service server to each node device
Presence, hardware capabilities, network capabilities etc. are counted, and can be used for client according to the determination of the service request of client server
The node device of server storage data;To service server can to client server provide support so that it can by
The storage capacity and bandwidth of magnanimity node device provide the services such as faster data download for client terminal;Further business service
Device can also dispatch data resource according to the service contribution information macroscopic view obtained from client terminal.
Description of the drawings
Fig. 1 is the structural schematic diagram of the network system of the embodiment of the present invention one;
Fig. 2 is the structural schematic diagram of service server, client server in Fig. 1;
Fig. 3 is the flow diagram of the resource regulating method of the embodiment of the present invention two;
Fig. 4 is the flow diagram of the cost accounting method of the embodiment of the present invention three;
Fig. 5 is the flow diagram of the cost accounting method of the embodiment of the present invention four;
Fig. 6 is the flow diagram of the resource regulating method of the embodiment of the present invention five.
Specific implementation mode
In the following, in conjunction with attached drawing and specific implementation mode, the present invention is described further, it should be noted that not
Under the premise of conflicting, new implementation can be formed between various embodiments described below or between each technical characteristic in any combination
Example.
Embodiment one
Such as the structural schematic diagram that Fig. 1 is network system.The network system include service server, client server and
Multiple node devices and multiple client terminals.Service server, client server are communicated with each node device and are connected, business clothes
Business device and client server communication connection, client terminal are used to obtain data from the node device;As preferred embodiment party
Formula, service server, client server, node device, client terminal have accessed internet.
In the present embodiment, node device can be the universal computing device for accessing network system, can also be dedicated
The network equipment all has certain memory space, certain computing capability and access internet as played objective cloud, such equipment
Communication function.Node device constitutes peer-to-peer network, and service server is responsible for the presence to each node device, hardware energy
Power, network capabilities etc. are counted.
Client terminal is primarily referred to as, from the equipment of some or certain node devices acquisition data, being such as mounted with video playing
Mobile phone, tablet, TV, the computer etc. of device, live streaming software etc..Client server be data provider, can be to provide video display,
The server of live data, such as iqiyi.com server.In the present embodiment, the client server owner passes through service server
It, can be by data distribution to the node device of service server management, to by magnanimity node device after the owner allows
Storage capacity and bandwidth provide the services such as faster data download for client terminal.It should be noted that client server can be with
One complete file is distributed to each node device respectively, this document can also be divided into after multiple data blocks and be distributed to respectively not
Same node device.
As shown in Fig. 2, service server, client server include memory 101, processor 102 and are stored in
Program in reservoir 101, described program are configured to be executed by processor 102, and processor 102 realizes industry when executing respective program
The step of business server, the cost accounting method of client server, resource regulating method.
Service server, the client server of the embodiment of the present invention can be used for numerous general or special purpose computing system environments
Or in configuration.Such as:Personal computer, server computer, handheld device or portable device, laptop device, multiprocessing
Device system, microprocessor-based system, it is set-top box, programmable consumption service server, network PC, minicomputer, big
Type computer includes the distributed computing environment etc. of any of the above system or equipment.
Embodiment two
An embodiment of the present invention provides resource regulating methods, so that service server can provide branch to client server
It holds so that it can provide faster number by storage capacity, computing capability and bandwidth of magnanimity node device etc. for client terminal
According to services such as downloads.
Such as the flow diagram that Fig. 3 is resource regulating method.Resource regulating method includes the following steps:
Step S110, client server sends service request to service server and service server and obtains client's clothes
The service request that business device is sent.
When client server is needed certain data distribution to node device, service request first is sent to service server,
So that service server provides it the information that can store data and the node device that can carry out data transmission.
As preferred embodiment, the service request includes demand nodes quantity.For example, client server need by
Certain data distribution is to 50,000 node devices.
As preferred embodiment, the service request further includes node condition requirement.For example, client server needs
The node device that certain data distribution is met into certain node condition to 50,000.
As preferred embodiment, the node condition requires to include in memory space, node bandwidth, Regional Distribution
At least one of.
For example, if certain size of data were 100Mb, node condition require in memory space can be more than 100Mb,
Node bandwidth can require it is larger, if certain size of data be 10Mb, node condition require in memory space can
Think and be more than 10Mb, node bandwidth can require smaller.The client terminal number of certain data is used additionally, due to different regions
Amount is different, therefore, service server can be required in a fairly large number of local overabsorption node device of client terminal, at client's end
Lack distribution node equipment in the place of end negligible amounts.For example, Regional Distribution can be 10,000, Guangdong node device, 500, Tibet
Node device etc..
Step S120, service server determines that at least one node device sets for destination node according to the service request
It is standby.
After certain node device booting access network, service server can get the information of node device networking, also
The information such as memory space, bandwidth, the residing region of the node device can be obtained.Therefore, when service server receives client
The service request of server, so that it may to determine that some meet the node device of the request for for storing accordingly according to service request
The target node device of data, and by corresponding information preservation in list of target nodes, list of target nodes includes these mesh
Mark the network address of node device.
Step S130, service server generates node distribution information, and the node distribution information includes at least one described
The network address of target node device.
As preferred embodiment, the node distribution information further includes extension corresponding with the target node device
Instruction.When target node device gets data from client server, can be turned to other node devices according to extended instruction
Send out the data;Therefore, the quantity of target node device is less than the demand nodes quantity in service request in node distribution information, but
Demand nodes quantity can be not less than by being the quantity of the node device for finally obtaining the data.
Step S140, service server sends the node distribution information and customer service to the client server
Device obtains node from the service server and distributes information.
Client server receives node from service server and distributes information, so that it may with according to the network of target node device
Address is by data distribution to these target node devices.
Step S150, client server is distributed according to the node and is believed after service server obtains node distribution information
It ceases to the target node device and distributes data.
As preferred embodiment, client server distributes information to the mesh from according to the node in step S150
It marks node device and distributes data, specially:Client server to the target node device distribute data and with the target
The corresponding extended instruction of node device;So that target node device can be forwarded the data on according to the extended instruction
To at least one forward node equipment.
As preferred embodiment, extended instruction includes forwarding count information, and forwarding count information expression receives the expansion
The node device of exhibition instruction needs the direct or indirect data forwarding by acquisition to the node device of respective number.
As preferred embodiment, extended instruction further includes hop count require information and/or region require information, with constraint
The node device for receiving the extended instruction is needed the data forwarding of acquisition to the node for meeting hop count requirement and/or region requirement
Equipment, to meet dispersion storage demand or the concentration distribution requirements of hot spot region of data.
Step S160, node device obtains data from client server and extension corresponding with the node device refers to
It enables.
In the present embodiment, it is target node device by the node device for obtaining data from client server.Step S160
Specially target node device obtains data and extended instruction corresponding with the target node device from client server.
Step S170, the node device of data is obtained from client server, i.e. target node device refers to according to the extension
Order is forwarded the data on at least one forward node equipment.
In the present embodiment, the node device for data being obtained from another node device is forward node equipment.
Therefore, node device from client server in addition to that can obtain data and extension corresponding with the node device
Instruction can also obtain data and corresponding extended instruction from another node device, such as target node device.When a certain forwarding
Node device gets data and extended instruction, can also forward the data to other at least one forward node accordingly and set
It is standby;Therefore node device can also get data and extended instruction from another forward node equipment.
As preferred embodiment, extended instruction includes forwarding count information.Referred to according to extension in a certain node device
It enables after the data forwarding of acquisition at least one forward node equipment, it is further comprising the steps of:
Step S181, the forwarding count information in the extended instruction is adjusted.
For example, the forwarding count information in the extended instruction that certain node device is got is ten, then will successfully obtain
The data forwarding taken is to certain three node device, i.e., after forward node equipment, can forwarding count information be first adjusted to 10-3
=7.Expression also needs to these three node devices and needs to forward the data to other seven node devices, i.e., other forwarding section
Point device, therefore it is two, two, three that can adjust separately the corresponding extended instruction of these three node devices, summation is
Seven.
Step S182, the extended instruction after adjustment is sent at least one forward node equipment.
After these three forward node equipments get the extended instruction after each self-adjusting, respectively to two, two, three sections
Point device forwards the data got.
Resource regulating method provided in an embodiment of the present invention, and apply the network system of the resource regulating method, industry
Business server, client server, by service server to the presence of each node device, hardware capabilities, network capabilities etc.
It is counted, and determines the node device that can be used for client server and store data according to the service request of client server;From
And service server can to client server provide support so that it can by magnanimity node device storage capacity and bandwidth
The services such as faster data download are provided for client terminal.
The embodiment of the present invention in distributing information in node also further by being placed in extended instruction so that gets data
Node device can forward data according to institute's extended instruction to other node devices;Therefore, directly number is obtained from client server
According to target node device quantity can be less than client server demand nodes quantity;Client server can be to fewer
Destination node equipment distributes data, and the node device for then receiving data continues to forward data according to extended instruction, objective as a result,
Bandwidth needed for the server of family is less, can be faster by data distribution to the node device of demand nodes quantity.
As preferred embodiment, the node device of data, meeting are got from client server or other node devices
Feedback information is sent to client server and/or service server, so that client server and/or service server know the section
Point device stores the data.
Embodiment three
It is illustrated in figure 4 client server or service server calculates client terminal and obtains service by node device, such as
Obtain the schematic diagram of the flows of the cost accounting method of functional expenses such as data.
In the present embodiment, business plug-in unit built in client terminal, client terminal pass through the business plug-in unit and business service
Device and node device interaction.As preferred embodiment, business plug-in unit is specially inserting for service server manager offer
Part.Such as the plug-in unit that is interacted with node device, service server built in iqiyi.com player, crawler etc..In client
When terminal needs a certain data, it can be asked to service server transmission data;Request of data may include the Hash of the data
Value.
As shown in figure 4, cost accounting method includes the following steps:
Step S210, client terminal is obtained from least one node device and is serviced.
As preferred embodiment, in the present embodiment, step S210 client terminals are obtained from least one node device
Service, specially client terminal is taken to obtain data from least one node device.
Further include following before client terminal obtains data from least one node device as preferred embodiment
Step:
Step S211, client terminal is asked to service server transmission data and service server is whole from the client
End obtains request of data;The service server is used to receive the first feedback information from node device, and the node device is from visitor
Family server or another node device obtain data.
As preferred embodiment, node device after obtaining data from client server or another node device,
The first feedback information and service server can be sent to service server obtain the first feedback letter from least one node device
Breath, the node device obtain data from client server or another node device.So as to so that service server is controlled
Each node device stores any data, and then obtains data from node device for client terminal and provide facility.
Step S212, service server determines at least one source node device according to the request of data.
Service server has counted which node device stores which data by the first feedback information, is getting certain
After the request of data of one terminal device, according to the specified one or more node devices of request of data as source node device.As
Preferred mode, request of data include the location information of terminal device, the service server preferential distance to a declared goal terminal device away from
It is source node device from close node device.
As preferred embodiment, step S212 service servers determine that at least one source is saved according to the request of data
Point device, specially service server determine that at least one node is set according to the request of data and first feedback information
Standby is source node device.
Step S213, it is whole to the client terminal and client to send the information of the source node device for service server
Hold the information that source node device is obtained from the service server.
As preferred embodiment, the information of source node device includes its network address.Therefore client terminal
Required data are obtained to source node device according to the network address of source node device, so as to subsequent operation, such as play video.
As preferred embodiment, client terminal obtains data, specially client terminal from least one node device
Data are obtained from least one source node device.Further, client terminal is saved by the business plug-in unit from the source
Point device obtains data.
Step S220, client terminal passes through the business plug-in unit statistical fractals contribution information.
As preferred embodiment, the service contribution information includes the node tribute of at least one source node device
Offer information.
For example, when client terminal is from three different source node device pulling data segments, it is then spliced into complete number
According to when, information on services includes the node contribution information of these three source node devices.The node contribution information of source node device can
The state and quality of service are provided to reflect source node device to client terminal.
As preferred embodiment, the node contribution information includes the data offer amount of the source node device, goes out
At least one of in mouth network speed, transmitting continuous time, the contribution frequency.
Data offer amount can indicate that the data volume size that node device is sent to client terminal, outlet network speed can indicate
The speed of data transmission between node device and client terminal;Transmission time can indicate that node device continues to send out to client terminal
The time for sending data, for a certain size data, the transmission time the long, indicates data between node device and client terminal
Transmission quality is lower;The frequency is contributed to indicate a certain data number that client terminal is sent into network system, tribute in node device
It offers that the frequency is higher, indicates that the data in the node device are more popular.
Step S230, the service contribution information is sent to the service server and business service by client terminal
Device obtains service contribution information from client terminal.
As preferred embodiment, the service contribution information is sent to the business and taken by step S230 client terminals
Business device, specially:The service contribution information is sent to the service server, so that the service server analyzes the visitor
The functional expenses of family terminal and/or client server.I.e.:
Step S240, service server analyzes the client terminal and/or customer service according to the service contribution information
The functional expenses of device.
Service server can be with the service contribution information that multiple client terminals are sent in statistics network system, i.e., multiple nodes
Multiple node contribution informations of equipment, so as to show that network system interior joint equipment is practical for client server and/or end
The supports such as data, the network bandwidth that end equipment provides;It is client terminal and/or customer service to quantify network system interior joint equipment
The service that device provides, to calculate the functional expenses of client terminal and/or client server.For example, can be by each node device
Data offer amount it is cumulative, the functional expenses of client terminal and/or client server are then calculated, then to client server pipe
Reason person collects the charges.
As preferred embodiment, the service contribution information can also be sent to service server by client terminal,
Specially:Client terminal sends the service contribution information to client server, so that the client server analyzes the visitor
The functional expenses of family terminal and/or client server.Can also client terminal and/or customer service be calculated by client server
Then the functional expenses of device pay expense to service server manager.
Cost accounting method provided in this embodiment, by the business plug-in unit statistical fractals contribution information in client terminal,
The node contribution information that service is provided to client terminal, realizes the functional expenses to client terminal and/or client server
It is analyzed, is that standard carries out charging by the practical service provided of client terminal of node device.
Example IV
Cost accounting method as shown in Figure 5, includes the following steps:
Step S310, client terminal is obtained from least one node device and is serviced.
Step S320, client terminal passes through the business plug-in unit statistical fractals contribution information.
Step S330, the service contribution information is sent to the service server and/or customer service by client terminal
Device and service server obtain service contribution information from client terminal.
Step S340, service server analyzes the client terminal and/or customer service according to the service contribution information
The functional expenses of device.
Step S310, S320, S330 and S340 distinguish S210, S220, S230 and S240 in corresponding embodiment three, no
It repeats again.
In the present embodiment, after step S320 client terminals are by the business plug-in unit statistical fractals contribution information, also
Include the following steps:
If step S301, the described service contribution information meets point spread condition, it is logical that client terminal sends the first extension
Know to the client server, so that the client server sends new service request to the service server.
Node contribution information in service contribution information can embody the state that node device provides service to client terminal
And quality, when client terminal learns that certain node device meets client terminal data speed of download requirement etc. by servicing contribution information
Scarce capacity when, just sending the first extension notice to client server can be with after client server receives the first extension notice
More node devices are asked to store data to service server.
As preferred embodiment, the node contribution information includes the transmitting continuous time of the source node device,
The point spread condition includes:The transmitting continuous time of the source node device is more than time threshold.
Transmission time can indicate that node device continues the time to client terminal transmission data, for a certain size number
According to the transmission time the long, indicates that data transmission quality is lower between node device and client terminal.It may be the node device
Bandwidth is smaller or the node device is simultaneously to multiple client terminal transmission datas, load is larger.By at least another section
Point device forwards the data, more, better quality node device can be made to become the source node device of this data, more
Good provides service to client terminal.
As preferred embodiment, the node contribution information includes the contribution frequency of the source node device, described
Point spread condition includes:The contribution frequency of the source node device is more than frequency threshold value.
It contributes the frequency to indicate a certain data number that client terminal is sent into network system in node device, contributes the frequency
It is higher, indicate that the data in the node device are more popular.Therefore in order to avoid there is too many client terminal simultaneously from this later
At least another node device of the data forwarding can be disperseed the load of the source node device by node device downloading data.More
Source node device the total bandwidth of bigger can be provided, to meet the needs of client terminal is to hot spot data.
As preferred embodiment, the service contribution information is sent to the business and taken by step S330 client terminals
Business device and service server are further comprising the steps of after client terminal obtains service contribution information:
If step S302, the described service contribution information meets point spread condition, service server sends the second extension
Notice is to the client server, so that the client server sends new service request to the service server.I.e. by
Service server judges whether client server needs more nodes equipment according to service contribution information, and provides suggestion i.e. second
Extension is notified to client server.After client server receives the second extension notice, it can be asked to service server more
Node device stores data.
Cost accounting method provided in this embodiment, can be by servicing contribution information and point spread condition, in node
Equipment to client terminal provide service state and quality it is bad or when having potential risk, data are stored to more nodes and are set
It is standby.More, better quality node device is set to become the source node device of this data, to preferably be carried to client terminal
For service.
Judge whether to need to store data to more nodes equipment to be applied to implement by servicing contribution information
The resource regulating method of example two realizes the whole process scheduling of node device data, such as embodiment five.
Embodiment five
Such as the flow diagram that Fig. 6 is resource regulating method.Resource regulating method includes the following steps:
Step S410, client server sends service request to service server and service server and obtains client's clothes
The service request that business device is sent.
Step S420, service server determines that at least one node device sets for destination node according to the service request
It is standby.
Step S430, service server generates node distribution information, and the node distribution information includes at least one described
The network address of target node device.
Step S440, service server sends the node distribution information and customer service to the client server
Device obtains node from the service server and distributes information.
Step S450, client server is distributed according to the node and is believed after service server obtains node distribution information
It ceases to the target node device and distributes data.
Step S410, S420, S430, S440 and S450 distinguish S110, S120, S130, S140 in corresponding embodiment two
And S150, it repeats no more.
In the present embodiment, business plug-in unit built in client terminal, client terminal pass through the business plug-in unit and business service
Device and node device interaction.
Resource regulating method provided in this embodiment is further comprising the steps of:
Step S461, client terminal obtains data from least one source node device, and the source node device stores institute
State data.
As preferred embodiment, step S461 client terminals obtain data from least one source node device, specifically
Include the following steps:
Step S4611, service server obtains request of data from the client terminal;
Step S4612, service server determines at least one source node device, the source node according to the request of data
Equipment stores the data of the subscriber terminal requests.
Step S4613, service server sends the information of the source node device to the client terminal, so that the visitor
Family terminal obtains data by the Client card from the source node device.
Step S4611- steps S4613 is referred to the step S211- step S213 in embodiment three, no longer superfluous herein
It states.
Step S462, client terminal counts the service contribution of at least one source node device by the business plug-in unit
Information.
Business plug-in component operation is in client terminal, and when client terminal obtains data from node device, business plug-in unit can supervise
It controls source node device and the state and quality of service is provided to client terminal, and generate service contribution information.
As preferred embodiment, the service contribution information includes the node tribute of at least one source node device
Offer information.
For example, when client terminal is from three different source node device pulling data segments, it is then spliced into complete number
According to when, information on services includes the node contribution information of these three source node devices.The node contribution information of source node device can
The state and quality of service are provided to reflect source node device to client terminal.
As preferred embodiment, the node contribution information includes the data offer amount of the source node device, goes out
At least one of in mouth network speed, transmitting continuous time, the contribution frequency.
Data offer amount can indicate that the data volume size that node device is sent to client terminal, outlet network speed can indicate
The speed of data transmission between node device and client terminal;Transmission time can indicate that node device continues to send out to client terminal
The time for sending data, for a certain size data, the transmission time the long, indicates data between node device and client terminal
Transmission quality is lower;The frequency is contributed to indicate a certain data number that client terminal is sent into network system, tribute in node device
It offers that the frequency is higher, indicates that the data in the node device are more popular.
As preferred embodiment, step S462 client terminals count at least one source by the business plug-in unit
It is further comprising the steps of after the service contribution information of node device:
If step S401, the described service contribution information meets point spread condition, sends the first extension and notify to described
Client server, so that the client server sends new service request to the service server.
Node contribution information in service contribution information can embody the state that node device provides service to client terminal
And quality, when client terminal learns that certain node device meets client terminal data speed of download requirement etc. by servicing contribution information
Scarce capacity when, just sending the first extension notice to client server can be with after client server receives the first extension notice
More node devices are asked to store data to service server.
Step S463, the service contribution information is sent to the service server and business service by client terminal
Device obtains service contribution information from client terminal.
If step S464, the described service contribution information meets point spread condition, service server sends the second extension
Notice is to the client server, so that the client server sends new service request to the service server.Client
After server receives the second extension notice, more node devices can be asked to store data to service server.In this implementation
In example, client server whether is notified to send new service request by service server judging.
In another embodiment, the service contribution information can also be sent to client server by client terminal, so that
The client server judges whether to send new service request to the service server.It can also be sentenced by client server
It is disconnected whether new service request to be sent to client server, store data to obtain more nodes equipment.
Resource regulating method provided in an embodiment of the present invention, further by service contribution information, i.e., source node device to
State, the quality etc. that client terminal provides data judge whether to need to store data to other node devices, when certain node is set
When the standby scarce capacity for meeting client terminal data speed of download requirement etc., by storing data to more nodes equipment, make
More, better quality node device becomes the source node device of this data, to preferably provide clothes to client terminal
Business.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can
It is realized by the mode of software plus required general hardware platform.Based on this understanding, technical scheme of the present invention essence
On in other words the part that contributes to existing technology can be expressed in the form of software products, the computer software product
It can be stored in a storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are used so that a computer equipment
(can be personal computer, server either network equipment etc.) executes the certain of each embodiment of the present invention or embodiment
Method described in part, such as:
Medium, the media storage have computer program, the computer program to realize aforementioned money when being executed by processor
The step of source dispatching method or cost accounting method.
The above embodiment is only the preferred embodiment of the present invention, and the scope of protection of the present invention is not limited thereto,
The variation and replacement for any unsubstantiality that those skilled in the art is done on the basis of the present invention belong to institute of the present invention
Claimed range.
Claims (18)
1. resource regulating method, it is characterised in that:For service server, the resource regulating method includes the following steps:
Obtain the service request that client server is sent;
Determine that at least one node device is target node device according to the service request;
It generates node and distributes information, the node distribution information includes the network address of the target node device;
The node is sent to the client server and distributes information, so that the client server is to the target node device
Distribute data;
Service contribution information, the built-in business for being interacted with the service server of the client terminal are obtained from client terminal
Plug-in unit;
If the service contribution information meets point spread condition, sends the second extension and the second extension is notified to notify to the visitor
Family server, so that the client server sends new service request to the service server.
2. resource regulating method as described in claim 1, it is characterised in that:The node distributes information
Mark the corresponding extended instruction of node device;
It is described to send the node to the client server and distribute information, so that the client server is to the destination node
Equipment distributes data, specially:
The node is sent to the client server and distributes information, so that the client server is to the target node device
Distribute data and extended instruction corresponding with the target node device.
3. resource regulating method as claimed in claim 2, it is characterised in that:The service request includes demand nodes quantity,
The quantity of target node device is less than the demand nodes quantity in the node distribution information.
4. resource regulating method as described in claim 1, it is characterised in that:The service request further includes that node condition is wanted
It asks, the node condition requires to include at least one in memory space, node bandwidth, Regional Distribution.
5. resource regulating method as claimed in claim 2, it is characterised in that:The extended instruction includes hop count require information
And/or region require information, and forwarding count information.
6. the resource regulating method as described in any one of claim 1-5, it is characterised in that:Described obtained from client terminal takes
It is further comprising the steps of before contribution information of being engaged in:
Request of data is obtained from the client terminal;
Determine that at least one source node device, the source node device store the client terminal and ask according to the request of data
The data asked;
The information of the source node device is sent to the client terminal so that the client terminal by the Client card from
The source node device obtains data.
7. resource regulating method as claimed in claim 6, it is characterised in that:The service contribution information includes at least one source
Node contribution information of the node device to the client terminal.
8. resource regulating method as claimed in claim 7, it is characterised in that:The node contribution information includes the source node
The transmitting continuous time of equipment, the point spread condition include:The transmitting continuous time of an at least source node device is more than
Time threshold.
9. resource regulating method as claimed in claim 7, it is characterised in that:The node contribution information includes the source node
The contribution frequency of equipment, the point spread condition include:The contribution frequency of an at least source node device is more than frequency threshold value.
10. resource regulating method, it is characterised in that:For client terminal, it is used for built in the client terminal and service server
Interactive business plug-in unit;The resource regulating method includes the following steps:
Data are obtained from least one source node device, the source node device stores the data;
The service contribution information of at least one source node device is counted by the business plug-in unit;
The service contribution information is sent to the service server, so that whether the service server judging notifies client
Server sends new service request;And/or
The service contribution information is sent to the client server, so that the client server judges whether to send newly
Service request is to the service server.
11. resource regulating method as claimed in claim 10, it is characterised in that:It is described by the business plug-in unit statistics described in
It is further comprising the steps of after the service contribution information of at least one source node device:
If the service contribution information meets point spread condition, sends the first extension and the first extension is notified to notify to the visitor
Family server, so that the client server sends new service request to the service server.
12. resource regulating method as claimed in claim 11, it is characterised in that:The service contribution information include it is described at least
Node contribution information of one source node device to the client terminal
13. resource regulating method as claimed in claim 12, it is characterised in that:The node contribution information includes the source section
The transmitting continuous time of point device, the point spread condition include:The transmitting continuous time of an at least source node device is big
In time threshold.
14. resource regulating method as claimed in claim 12, it is characterised in that:The node contribution information includes the source section
The contribution frequency of point device, the point spread condition include:The contribution frequency of an at least source node device is more than frequency threshold
Value.
15. service server, it is characterised in that:Including memory, processor and program stored in memory, the journey
Sequence is configured to be executed by processor, and processor realizes money as claimed in any one of claims 1-9 wherein when executing described program
The step of source dispatching method.
16. client terminal, it is characterised in that:Including memory, processor and program stored in memory, described program
It is configured to be executed by processor, processor realizes the money as described in any one of claim 10-14 when executing described program
The step of source dispatching method.
17. network system, it is characterised in that:Including service server as claimed in claim 15, as claimed in claim 16
Client terminal and client server and multiple node devices;The service server, client server are set with each node
Standby communication connection, the service server and client server communication connection, the client terminal are used for from the node device
Obtain data.
18. medium, the media storage has computer program, it is characterised in that:When the computer program is executed by processor
It realizes:
The step of resource regulating method as claimed in any one of claims 1-9 wherein;Or
The step of resource regulating method as described in any one of claim 10-14.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810453585.0A CN108683730B (en) | 2018-05-11 | 2018-05-11 | Resource scheduling method, service server, client terminal, network system and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810453585.0A CN108683730B (en) | 2018-05-11 | 2018-05-11 | Resource scheduling method, service server, client terminal, network system and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108683730A true CN108683730A (en) | 2018-10-19 |
CN108683730B CN108683730B (en) | 2021-08-06 |
Family
ID=63806318
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810453585.0A Active CN108683730B (en) | 2018-05-11 | 2018-05-11 | Resource scheduling method, service server, client terminal, network system and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108683730B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109981780A (en) * | 2019-03-27 | 2019-07-05 | 深圳市网心科技有限公司 | A kind of dispatching method, node device, scheduling system and storage medium |
CN110018906A (en) * | 2019-02-26 | 2019-07-16 | 上海丽人丽妆网络科技有限公司 | Dispatching method, server and scheduling system |
CN110691127A (en) * | 2019-09-25 | 2020-01-14 | 北京奇艺世纪科技有限公司 | Data acquisition control system, data acquisition control method and related device |
CN111105116A (en) * | 2018-10-27 | 2020-05-05 | 谷多多(成都)科技有限公司 | Business mode applied to organic agriculture |
CN111538575A (en) * | 2020-04-07 | 2020-08-14 | 北京达佳互联信息技术有限公司 | Resource scheduling system, method, device, equipment and medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102075790A (en) * | 2009-11-20 | 2011-05-25 | 上海电机学院 | Method for distributing and encrypting streaming media |
CN102857470A (en) * | 2011-06-27 | 2013-01-02 | 腾讯科技(深圳)有限公司 | Network transmission system, servers and client |
US8375456B2 (en) * | 2004-09-03 | 2013-02-12 | Microsoft Corp. | Digital rights management scheme for an on-demand distributed streaming system |
CN103327046A (en) * | 2012-03-21 | 2013-09-25 | 腾讯科技(深圳)有限公司 | P2SP system scheduling method, equipment and system based on node service capacity |
CN105791427A (en) * | 2016-04-22 | 2016-07-20 | 百度在线网络技术(北京)有限公司 | Method, device and system for supplementing resource heat |
US20160234303A1 (en) * | 2013-10-18 | 2016-08-11 | Tencent Technology (Shenzhen) Company Limited | Peer-to-Peer Upload Scheduling |
-
2018
- 2018-05-11 CN CN201810453585.0A patent/CN108683730B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8375456B2 (en) * | 2004-09-03 | 2013-02-12 | Microsoft Corp. | Digital rights management scheme for an on-demand distributed streaming system |
CN102075790A (en) * | 2009-11-20 | 2011-05-25 | 上海电机学院 | Method for distributing and encrypting streaming media |
CN102857470A (en) * | 2011-06-27 | 2013-01-02 | 腾讯科技(深圳)有限公司 | Network transmission system, servers and client |
CN103327046A (en) * | 2012-03-21 | 2013-09-25 | 腾讯科技(深圳)有限公司 | P2SP system scheduling method, equipment and system based on node service capacity |
US20160234303A1 (en) * | 2013-10-18 | 2016-08-11 | Tencent Technology (Shenzhen) Company Limited | Peer-to-Peer Upload Scheduling |
CN105791427A (en) * | 2016-04-22 | 2016-07-20 | 百度在线网络技术(北京)有限公司 | Method, device and system for supplementing resource heat |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111105116A (en) * | 2018-10-27 | 2020-05-05 | 谷多多(成都)科技有限公司 | Business mode applied to organic agriculture |
CN110018906A (en) * | 2019-02-26 | 2019-07-16 | 上海丽人丽妆网络科技有限公司 | Dispatching method, server and scheduling system |
CN109981780A (en) * | 2019-03-27 | 2019-07-05 | 深圳市网心科技有限公司 | A kind of dispatching method, node device, scheduling system and storage medium |
CN110691127A (en) * | 2019-09-25 | 2020-01-14 | 北京奇艺世纪科技有限公司 | Data acquisition control system, data acquisition control method and related device |
CN110691127B (en) * | 2019-09-25 | 2022-04-12 | 北京奇艺世纪科技有限公司 | Data acquisition control system, data acquisition control method and related device |
CN111538575A (en) * | 2020-04-07 | 2020-08-14 | 北京达佳互联信息技术有限公司 | Resource scheduling system, method, device, equipment and medium |
CN111538575B (en) * | 2020-04-07 | 2023-11-14 | 北京达佳互联信息技术有限公司 | Resource scheduling system, method, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN108683730B (en) | 2021-08-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108683730A (en) | Resource regulating method, service server, client terminal, network system and medium | |
US8650301B2 (en) | Adaptive data rate streaming in a peer-to-peer network delivering video content | |
CN102546608B (en) | For synchronously playing the method for media information, device, equipment and system | |
CN104169901A (en) | Content delivery mechanisms for multicast communication | |
CN110149525A (en) | A kind of live broadcasting method, device, equipment and storage medium | |
US7996546B2 (en) | Dynamic allocation of a quota of consumer nodes connecting to a resource node of a peer-to-peer network | |
CN108616600A (en) | Resource regulating method, client server, node device, network system and medium | |
CN101026631A (en) | CDN structure based IPTV system media payment system | |
CN109982152A (en) | P2P CDN method for processing business, intelligent gateway and CDN platform | |
CN109348264A (en) | Video resource sharing method, device, storage medium and electronic equipment | |
CN108156257A (en) | A kind of information-pushing method and device | |
CN107396136A (en) | A kind of video data acquisition methods, device, server and medium | |
CN109788301A (en) | A kind of live broadcasting method of Streaming Media, terminal device, live broadcast system and computer readable storage medium | |
CN109194993B (en) | Media file distribution method and file distribution platform | |
CN108683728A (en) | Data transmission method, server, terminal, network system and storage medium | |
CN113596166A (en) | Data acquisition method and device, computer equipment and storage medium | |
CN103179191B (en) | P2P network control device and P2P network managing and control system | |
Chang et al. | Effective utilization of user resources in PA-VoD systems with channel heterogeneity | |
CN111249747B (en) | Information processing method and device in game | |
CN110996114B (en) | Live broadcast scheduling method and device, electronic equipment and storage medium | |
CN108683515A (en) | Cost accounting method, client terminal, service server, network system and medium | |
CN103442257A (en) | Method, device and system for achieving flow resource management | |
CN108737121A (en) | Cost accounting method, node device, client server, network system and medium | |
CN109688421A (en) | Request message processing method, apparatus and system, server, storage medium | |
CN109327739A (en) | A kind of method for processing video frequency, calculates equipment and storage medium at device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |