CN108616600A - Resource regulating method, client server, node device, network system and medium - Google Patents

Resource regulating method, client server, node device, network system and medium Download PDF

Info

Publication number
CN108616600A
CN108616600A CN201810450117.8A CN201810450117A CN108616600A CN 108616600 A CN108616600 A CN 108616600A CN 201810450117 A CN201810450117 A CN 201810450117A CN 108616600 A CN108616600 A CN 108616600A
Authority
CN
China
Prior art keywords
node
node device
data
client
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810450117.8A
Other languages
Chinese (zh)
Other versions
CN108616600B (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.)
Shenzhen Onething Technology Co Ltd
Original Assignee
Shenzhen Onething Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Onething Technology Co Ltd filed Critical Shenzhen Onething Technology Co Ltd
Priority to CN201810450117.8A priority Critical patent/CN108616600B/en
Publication of CN108616600A publication Critical patent/CN108616600A/en
Application granted granted Critical
Publication of CN108616600B publication Critical patent/CN108616600B/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/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data
    • 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/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery 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/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing 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 present invention discloses resource regulating method, client server, node device, network system and medium, and 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, and 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 data resource can also be dispatched to the node contribution information macroscopic view of client terminal by source node device.

Description

Resource regulating method, client server, node device, network system and medium
Technical field
The present invention relates to network technology more particularly to resource regulating method, client server, node device, 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 client 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 node device, 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 client 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 node device, 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 client server, includes the following steps:
Service request is sent to service server;
Node is obtained from the service server and distributes information, and the node distribution information includes at least one destination node The network address of equipment;
Distribute information according to the node and distributes data to the target node device.
Further, the node distribution information further includes extended instruction corresponding with the target node device;
It is described that information is distributed to target node device distribution data, specially according to the node:
According to the node distribute information to the target node device distribute data and with the target node device Corresponding extended instruction, so that the target node device is forwarded the data on according to the extended instruction at least one turn Send out 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:
Node contribution information of the source node device to client terminal, the source are obtained from least one source node device The built-in Client card for being interacted with the client server of node device, the source node device are carried to the client terminal The data obtained from the client server or another node device are supplied.
Further, described to obtain node tribute of the source node device to client terminal from least one source node device It is further comprising the steps of before offering information:
Request of data is obtained from 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 is stored with 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, described to obtain node tribute of the source node device to client terminal from least one source node device It is further comprising the steps of after offering information:
If the node contribution information meets point spread condition, new service request is sent to the business service Device.
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 the 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 the 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 node device, includes the following steps:
Data and extended instruction corresponding with the node device are obtained from client server or another node device;
It is forwarded the data on at least one forward node equipment according to the extended instruction.
Further, the node device for data being obtained from client server is target node device;From another node device The node device for obtaining data is forward node equipment.
Further, the extended instruction includes forwarding count information;
It is described to be forwarded the data on at least one forward node equipment according to the extended instruction, further include with Lower step:
Adjust the forwarding count information in the extended instruction;
Extended instruction after adjustment is sent at least one forward node equipment.
Further, the built-in Client card for being interacted with the client server of the node device;The resource Dispatching method is further comprising the steps of:
The data are provided to client terminal;
Node contribution information of the node device to the client terminal is counted by the Client card.
Further, described that node contribution of the node device to the client terminal is counted by the Client card It is further comprising the steps of after information:
If the node contribution information meets point spread condition, the data are forwarded at least another node device.
Further, described that node contribution of the node device to the client terminal is counted by the Client card It is further comprising the steps of after information:
If the node contribution information meets point spread condition, the first extension notice is sent to the customer service Device, so that the client server sends new service request to the service server.
Further, described that node contribution of the node device to the client terminal is counted by the Client card It is further comprising the steps of after information:
The node device is sent to the node contribution information of the client terminal to the client server, so that described Client server judges whether to need to send new service request to the service server.
Further, the node contribution information includes the transmitting continuous time of the node device, the point spread Condition includes:The transmitting continuous time of the node device is more than time threshold.
Further, the node contribution information includes the contribution frequency of the node device, the point spread condition Including:The contribution frequency of the node device is more than frequency threshold value.
The third object of the present invention is realized using following technical scheme:
Client 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:
Node device, 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 client server, above-mentioned node device and service server and client's end End;The service server, client server are communicated with each node device and are connected, the service server and client server 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;Can also further it lead to It crosses source node device and data resource is dispatched to the node contribution information macroscopic view of 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, Client card built in node device, node device pass through the Client card and customer service Device and client terminal interaction.As preferred embodiment, Client card is specially inserting for client server manager offer Part can be run in the sandbox of node device.
As shown in figure 4, cost accounting method includes the following steps:
Step S210, node device provides service to client terminal.
As preferred embodiment, in the present embodiment, step S210 node devices provide service, tool to client terminal Body provides data for source node device for client terminal.Step S210 node devices provide service to client terminal, specially:
If getting data download request from the client terminal, sent out to the client terminal by the Client card Send data.
Node device from client server or another node device after obtaining data, by the Client card to visitor Family server sends the first feedback information and client server and obtains the first feedback information, institute from least one node device It states node device and obtains data from client server or another node device.
As preferred embodiment, step S210 node devices provide service to client terminal, specifically include following step Suddenly:
Step S211, client server obtains request of data from client terminal.
Client terminal is installed with corresponding with client server program, such as iqiyi.com player, crawler etc.. When client terminal needs a certain data, it can be asked to client server transmission data;Request of data may include the data Cryptographic Hash.
Since client server has counted which node device is which data be stored in by the first feedback information, Client terminal can be instructed to obtain the data from corresponding node device.
Step S212, client server determines at least one source node device according to the request of data.
As preferred embodiment, step S212 is specially the client server according to the first feedback information and visitor The request of data of family terminal determines that at least one node device is source node device, and generates source node list, the source node List includes the network address of at least one source node device.
Client server has counted which node device is which data be stored in, is getting by the first feedback information After the request of data of a certain terminal device, according to the specified one or more node devices of request of data as source node device.Make For preferred mode, request of data includes the location information of terminal device, the client server preferential distance to a declared goal terminal device It is source node device apart from close node device, source node list can be generated according to source node device.
Step S213, client server sends the information of the source node device, i.e. source node list to client end End, so that client terminal obtains data by the Client card from the source node device.
Source node list includes the network address of source node device, therefore client terminal can be according to source node device Network address obtains required data to source node device, so as to subsequent operation, such as plays video.
Step S220, node device counts node contribution information by the Client card.
As preferred embodiment, step S220 node devices count node contribution information by the Client card to be had Body is:Source node device counts the source node device by the Client card and contributes letter to the node of the client terminal Breath.
Client card runs node device, and when node device provides data to client terminal, Client card can monitor Source node device provides the state and quality of service to client terminal.As preferred embodiment, node contribution information includes At least one of in the data offer amount of the source node device, outlet 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 node contribution information is sent to the client server and customer service by node device Device obtains node contribution information from least one node device.
As preferred embodiment, the node contribution information is sent to the client and taken by step S230 node devices Business device, specially:Source node device sends the source node device to the node contribution information of the client terminal to the visitor Family server, so that the client server analyzes the functional expenses of the client terminal and/or client server.
As preferred embodiment, client server obtains node contribution information tool from least one node device Body is:Client server obtains node contribution information from the source node device;The node contribution information is saved by the source Point device is counted by the Client card.
Step S240, client server analyzes the client terminal and/or customer service according to the node contribution information The functional expenses of device.
The node contribution information that multiple node devices are sent in client server statistics network system, i.e., save in network system The supports such as practical data, the network bandwidth provided for client server and/or terminal device of point device;It is saved in quantization network system Point device is the service that client terminal and/or client server provide, to calculate the industry of client terminal and/or client server Business expense.For example, the data amount of offer of each node device can add up, client terminal and/or client server are then calculated Functional expenses, then to service server manager pay expense.
As preferred embodiment, node contribution information can also be sent to service server by source node device, i.e., Source node device sends the source node device to the node contribution information of the client terminal to the service server, so that The service server analyzes the functional expenses of the client terminal and/or client server.It i.e. can also be by service server The functional expenses of client terminal and/or client server are calculated, are then collected the charges to client server manager.
Cost accounting method provided in this embodiment is counted to client terminal by the Client card in node device and is provided The node contribution information of service, is realized and is analyzed the functional expenses of client terminal and/or client server, set with node It is that standard carries out charging for being the practical service provided of client terminal.
Example IV
Cost accounting method as shown in Figure 5, includes the following steps:
Step S310, node device provides service to client terminal.
Step S320, node device counts node contribution information by the Client card.
Step S330, the node contribution information is sent to the client server and/or business service by node device Device and client server obtain node contribution information from least one node device.
Step S340, client server analyzes the client terminal and/or customer service according to the node 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 node devices count node contribution information by the Client card, also Include the following steps:
If step S301, the described node contribution information meets point spread condition, node device is at least another node Data described in device forwards.
Node contribution information can embody the state and quality that node device provides service to client terminal, when certain node is set It is standby when meeting the scarce capacity that client terminal data speed of download requires etc., it needs to extend some node devices and stores the data, I.e. source node device forwards the data at least another node device.
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, step S320 node devices by the Client card count node contribution information it Afterwards, further comprising the steps of:
If step S302, the described node contribution information meets point spread condition, it is logical that node device sends the first extension Know to the client server, so that the client server sends new service request to the service server.
When the node contribution information of certain source node device meets point spread condition, in addition to can be directly to other nodes Device forwards data can also notify client server, then from client server to service server by the source node device Ask more node device storage data.Data are issued by client server at this time, therefore can be to avoid node device In the data that are tampered distribute to other node devices.
As preferred embodiment, step S330 client servers obtain node tribute from least one node device It is further comprising the steps of after offering information
If S303, the node contribution information meet point spread condition, client server sends new service request To the service server.
Client server can also judge the node device to visitor after obtaining node contribution information to certain node device Family terminal provides the state and quality of service;When the node device meets the ability of client terminal data speed of download requirement etc. no When sufficient, more node devices can be asked to store data to service server.
Cost accounting method provided in this embodiment, can be by node 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 node 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, the built-in Client card for being interacted with the client server of node device.The present embodiment The resource regulating method of offer is further comprising the steps of:
Step S461, node device provides the data to client terminal, which is source node device.
As preferred embodiment, step S461 node devices provide the data to client terminal, specifically include with Lower step:
Step S4611, client server obtains request of data from client terminal;
Step S4612, client server determines at least one source node device, the source node according to the request of data Equipment is stored with the data of the subscriber terminal requests;
Step S4613, client 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, node device counts node of the node device to the client terminal by the Client card Contribution information.
Client card runs node device, and when node device provides data to client terminal, Client card can monitor Source node device provides the state and quality of service to client terminal.As preferred embodiment, node contribution information includes At least one of in the data offer amount of the source node device, outlet 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 node devices count the node device pair by the Client card It is further comprising the steps of after the node contribution information of the client terminal:
If step S463, the described node contribution information meets point spread condition, at least another node device forwarding The data.
Node contribution information can embody the state and quality that node device provides service to client terminal, when certain node is set It is standby when meeting the scarce capacity that client terminal data speed of download requires etc., it needs to extend some node devices and stores the data, I.e. source node device forwards the data at least another node device.
As preferred embodiment, step S462 node devices count the node device pair by the Client card It is further comprising the steps of after the node contribution information of the client terminal:
If step S464, the described node contribution information meets point spread condition, it is logical that node device sends the first extension Know to the client server, so that the client server sends new service request to the service server.
When the node contribution information of certain source node device meets point spread condition, can be notified by the source node device Then client server asks more node devices to store data from client server to service server.
As preferred embodiment, step S462 node devices count the node device pair by the Client card It is further comprising the steps of after the node contribution information of the client terminal:
Step S471, node device sends the node device to the node contribution information of the client terminal to the visitor Family server;And client server obtains node of the source node device to client terminal from least one source node device Contribution information.
Step S472, whether client server decision node contribution information meets point spread condition, if satisfied, then sending New service request is to the server.Judge whether to need to business service according to node contribution information from client server Device asks more nodes to store the data, to dispatch data resource conducive to client server macroscopic view.
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.
Resource regulating method provided in an embodiment of the present invention, when further providing data to client terminal by node device The node contribution information of statistics judges whether to need to store data to other node devices, when certain node device meets client's end When the scarce capacity of end data speed of download requirement etc., by storing data to more nodes equipment, make more, quality Better node device becomes the source node device of this data, to preferably provide service to client terminal.
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 expense when being executed by processor The step of with accounting method or resource regulating 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 (22)

1. resource regulating method, it is characterised in that:For client server, include the following steps:
Service request is sent to service server;
Node is obtained from the service server and distributes information, and the node distribution information includes at least one target node device Network address;
Distribute information according to the node and distributes data to the target node device;
Node contribution information of the source node device to client terminal, the source node are obtained from least one source node device The built-in Client card for being interacted with the client server of equipment, the source node device are provided to the client terminal The data obtained from the client server or another node device.
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 that information is distributed to target node device distribution data, specially according to the node:
Distribute information according to the node and distributes data and corresponding with the target node device to the target node device Extended instruction so that the target node device according to the extended instruction forward the data on at least one forwarding save Point 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:It is described from least one source node It is further comprising the steps of before equipment obtains the source node device to the node contribution information of client terminal:
Request of data is obtained from client terminal;
Determine that at least one source node device, the source node device are stored with 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. the resource regulating method as described in any one of claim 1-5, it is characterised in that:It is described from least one source node It is further comprising the steps of after equipment obtains the source node device to the node contribution information of client terminal:
If the node contribution information meets point spread condition, new service request is sent to the service server.
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 the source node device is more than the time Threshold value.
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 the source node device is more than frequency threshold value.
10. resource regulating method, it is characterised in that:For node device, include the following steps:
Data and extended instruction corresponding with the node device are obtained from client server or another node device;
It is forwarded the data on at least one forward node equipment according to the extended instruction.
11. resource regulating method as claimed in claim 10, it is characterised in that:The node that data are obtained from client server is set Standby is target node device;The node device that data are obtained from another node device is forward node equipment.
12. resource regulating method as claimed in claim 11, it is characterised in that:The extended instruction includes that forwarding counts letter Breath;
It is described to be forwarded the data on at least one forward node equipment according to the extended instruction, further include following step Suddenly:
Adjust the forwarding count information in the extended instruction;
Extended instruction after adjustment is sent at least one forward node equipment.
13. resource regulating method as claimed in claim 10, it is characterised in that:The node device is built-in to be used for and the visitor The Client card of family server interaction;The resource regulating method is further comprising the steps of:
The data are provided to client terminal;
Node contribution information of the node device to the client terminal is counted by the Client card.
14. resource regulating method as claimed in claim 13, it is characterised in that:It is described by the Client card statistics described in It is further comprising the steps of after node device is to the node contribution information of the client terminal:
If the node contribution information meets point spread condition, the data are forwarded at least another node device.
15. resource regulating method as claimed in claim 13, it is characterised in that:It is described by the Client card statistics described in It is further comprising the steps of after node device is to the node contribution information of the client terminal:
If the node contribution information meets point spread condition, sends the first extension and notify to the client server, with The client server is set to send new service request to the service server.
16. resource regulating method as claimed in claim 13, it is characterised in that:It is described by the Client card statistics described in It is further comprising the steps of after node device is to the node contribution information of the client terminal:
The node device is sent to the node contribution information of the client terminal to the client server, so that the client Server judges whether to need to send new service request to the service server.
17. the resource regulating method as described in any one of claim 14-16, it is characterised in that:The node contribution information Transmitting continuous time including the node device, the point spread condition include:The node device it is transmitting continuous when Between be more than time threshold.
18. the resource regulating method as described in any one of claim 14-16, it is characterised in that:The node contribution information The contribution frequency including the node device, the point spread condition include:The contribution frequency of the node device is more than frequency Subthreshold.
19. client 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.
20. node device, 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-18 when executing described program The step of source dispatching method.
21. network system, it is characterised in that:Including client server as claimed in claim 19, as claimed in claim 20 Node device and service server and client terminal;The service server, client server are logical with each node device News connection, the service server and client server communication connection, the client terminal are used to obtain from the node device Data.
22. 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-18.
CN201810450117.8A 2018-05-11 2018-05-11 Resource scheduling method, client server, node device, network system, and medium Active CN108616600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810450117.8A CN108616600B (en) 2018-05-11 2018-05-11 Resource scheduling method, client server, node device, network system, and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810450117.8A CN108616600B (en) 2018-05-11 2018-05-11 Resource scheduling method, client server, node device, network system, and medium

Publications (2)

Publication Number Publication Date
CN108616600A true CN108616600A (en) 2018-10-02
CN108616600B CN108616600B (en) 2021-12-03

Family

ID=63662928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810450117.8A Active CN108616600B (en) 2018-05-11 2018-05-11 Resource scheduling method, client server, node device, network system, and medium

Country Status (1)

Country Link
CN (1) CN108616600B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569212A (en) * 2019-09-12 2019-12-13 深圳市网心科技有限公司 File deployment method, system, storage medium and electronic equipment
CN112714146A (en) * 2019-10-25 2021-04-27 ***通信有限公司研究院 Resource scheduling method, device, equipment and computer readable storage medium
CN114615237A (en) * 2022-03-22 2022-06-10 阿里巴巴(中国)有限公司 Streaming media communication method, system, device and storage medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1901495A (en) * 2006-06-28 2007-01-24 华中科技大学 Circular node organizing method in reciprocal network request broadcast system
CN101841558A (en) * 2010-03-23 2010-09-22 中国科学院计算技术研究所 Method and system for downloading resource in P2SP network
CN102148843A (en) * 2010-02-05 2011-08-10 腾讯科技(深圳)有限公司 Asynchronous downloading system and method
CN102833293A (en) * 2011-06-17 2012-12-19 腾讯科技(深圳)有限公司 Method for downloading resources in peer to server and peer (P2SP) network, and client
CN103581245A (en) * 2012-07-30 2014-02-12 腾讯科技(深圳)有限公司 Content delivery method and system of content delivery network
US20140280859A1 (en) * 2011-10-26 2014-09-18 Tencent Technology (Shenzhen) Company Limited Sharing control system and method for network resources download information
CN105681189A (en) * 2016-01-21 2016-06-15 矽力杰半导体技术(杭州)有限公司 Data forwarding method and node device for mesh network
CN105791427A (en) * 2016-04-22 2016-07-20 百度在线网络技术(北京)有限公司 Method, device and system for supplementing resource heat
CN105847398A (en) * 2016-04-25 2016-08-10 乐视控股(北京)有限公司 Business scheduling method, scheduling server and business server
US20160294938A1 (en) * 2015-03-31 2016-10-06 Western Digital Technologies, Inc. Syncing with a local paired device to obtain data from a remote server using point-to-point communication
US20160301578A1 (en) * 2014-01-03 2016-10-13 Tencent Technology (Shenzhen) Company Limited Multimedia resource distribution method, apparatus and system
CN106101223A (en) * 2016-06-12 2016-11-09 北京邮电大学 A kind of caching method mated with node rank based on content popularit
CN107277561A (en) * 2016-04-08 2017-10-20 北京优朋普乐科技有限公司 Content distributing network
CN107426302A (en) * 2017-06-26 2017-12-01 腾讯科技(深圳)有限公司 Access scheduling method, apparatus, system, terminal, server and storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1901495A (en) * 2006-06-28 2007-01-24 华中科技大学 Circular node organizing method in reciprocal network request broadcast system
CN102148843A (en) * 2010-02-05 2011-08-10 腾讯科技(深圳)有限公司 Asynchronous downloading system and method
CN101841558A (en) * 2010-03-23 2010-09-22 中国科学院计算技术研究所 Method and system for downloading resource in P2SP network
CN102833293A (en) * 2011-06-17 2012-12-19 腾讯科技(深圳)有限公司 Method for downloading resources in peer to server and peer (P2SP) network, and client
US20140280859A1 (en) * 2011-10-26 2014-09-18 Tencent Technology (Shenzhen) Company Limited Sharing control system and method for network resources download information
CN103581245A (en) * 2012-07-30 2014-02-12 腾讯科技(深圳)有限公司 Content delivery method and system of content delivery network
US20160301578A1 (en) * 2014-01-03 2016-10-13 Tencent Technology (Shenzhen) Company Limited Multimedia resource distribution method, apparatus and system
US20160294938A1 (en) * 2015-03-31 2016-10-06 Western Digital Technologies, Inc. Syncing with a local paired device to obtain data from a remote server using point-to-point communication
CN105681189A (en) * 2016-01-21 2016-06-15 矽力杰半导体技术(杭州)有限公司 Data forwarding method and node device for mesh network
CN107277561A (en) * 2016-04-08 2017-10-20 北京优朋普乐科技有限公司 Content distributing network
CN105791427A (en) * 2016-04-22 2016-07-20 百度在线网络技术(北京)有限公司 Method, device and system for supplementing resource heat
CN105847398A (en) * 2016-04-25 2016-08-10 乐视控股(北京)有限公司 Business scheduling method, scheduling server and business server
CN106101223A (en) * 2016-06-12 2016-11-09 北京邮电大学 A kind of caching method mated with node rank based on content popularit
CN107426302A (en) * 2017-06-26 2017-12-01 腾讯科技(深圳)有限公司 Access scheduling method, apparatus, system, terminal, server and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569212A (en) * 2019-09-12 2019-12-13 深圳市网心科技有限公司 File deployment method, system, storage medium and electronic equipment
CN112714146A (en) * 2019-10-25 2021-04-27 ***通信有限公司研究院 Resource scheduling method, device, equipment and computer readable storage medium
WO2021078058A1 (en) * 2019-10-25 2021-04-29 ***通信有限公司研究院 Resource scheduling method, apparatus and device, and computer-readable storage medium
CN112714146B (en) * 2019-10-25 2023-01-13 ***通信有限公司研究院 Resource scheduling method, device, equipment and computer readable storage medium
CN114615237A (en) * 2022-03-22 2022-06-10 阿里巴巴(中国)有限公司 Streaming media communication method, system, device and storage medium
CN114615237B (en) * 2022-03-22 2024-03-29 阿里巴巴(中国)有限公司 Streaming media communication method, system, equipment and storage medium

Also Published As

Publication number Publication date
CN108616600B (en) 2021-12-03

Similar Documents

Publication Publication Date Title
CN108683730A (en) Resource regulating method, service server, client terminal, network system and medium
Hu et al. Joint content replication and request routing for social video distribution over cloud CDN: A community clustering method
Li et al. CaaS: Caching as a service for 5G networks
CN107251525A (en) For supporting the predictive content of mobile device user to prefetch the distributed server architecture of service
CN107251524A (en) The mobile device user of management prognostic prefetching content is ordered and service preferences
Nan et al. Stackelberg game for bandwidth allocation in cloud-based wireless live-streaming social networks
CN108616600A (en) Resource regulating method, client server, node device, network system and medium
Sourlas et al. Storage planning and replica assignment in content-centric publish/subscribe networks
CN103430489B (en) Document down loading method, device and system in content distributing network
Chen et al. Thunder crystal: A novel crowdsourcing-based content distribution platform
CN108667935A (en) Network service method, server, network system and storage medium
CN109348264A (en) Video resource sharing method, device, storage medium and electronic equipment
Al-Hilo et al. Vehicle-assisted RSU caching using deep reinforcement learning
CN108683728A (en) Data transmission method, server, terminal, network system and storage medium
US20180184403A1 (en) Providing apparatus, utilizing apparatus, communication resource trading system, providing method, utilizing method, and control apparatus
CN113938394A (en) Monitoring service bandwidth allocation method and device, electronic equipment and storage medium
Yue et al. Femtocaching in video content delivery: Assignment of video clips to serve dynamic mobile users
Bukhari et al. To transcode or not? A machine learning based edge video caching and transcoding strategy
Eager et al. Optimized caching in systems with heterogeneous client populations
CN108737121A (en) Cost accounting method, node device, client server, network system and medium
CN108683515A (en) Cost accounting method, client terminal, service server, network system and medium
Hsu et al. A weighted segment-based caching algorithm for video streaming objects over heterogeneous networking environments
Mondal et al. CALM: QoS-aware vehicular sensor-as-a-service provisioning in cache-enabled multi-sensor cloud
Chen et al. Migrating big video data to cloud: a peer-assisted approach for VoD
Poularakis et al. Cooperation and information replication in wireless networks

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