CN108683515A - Cost accounting method, client terminal, service server, network system and medium - Google Patents

Cost accounting method, client terminal, service server, network system and medium Download PDF

Info

Publication number
CN108683515A
CN108683515A CN201810450788.4A CN201810450788A CN108683515A CN 108683515 A CN108683515 A CN 108683515A CN 201810450788 A CN201810450788 A CN 201810450788A CN 108683515 A CN108683515 A CN 108683515A
Authority
CN
China
Prior art keywords
node device
service
server
client terminal
data
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
CN201810450788.4A
Other languages
Chinese (zh)
Other versions
CN108683515B (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 CN201810450788.4A priority Critical patent/CN108683515B/en
Publication of CN108683515A publication Critical patent/CN108683515A/en
Application granted granted Critical
Publication of CN108683515B publication Critical patent/CN108683515B/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
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1432Metric aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1485Tariff-related aspects

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses cost accounting method, client terminal, service server, network system and medium, method includes:Client terminal is obtained from least one node device and is serviced, client terminal passes through the business plug-in unit statistical fractals contribution information, the service contribution information is sent to the service server by client terminal, and service server analyzes the functional expenses of the client terminal and/or client server according to the service contribution information.Pass through the business plug-in unit statistical fractals contribution information in client terminal, the node contribution information of the node device of service is provided to client terminal, it realizes and the functional expenses of client terminal and/or client server is analyzed, be that standard carries out charging by the practical service provided of client terminal of node device.

Description

Cost accounting method, client terminal, service server, network system and medium
Technical field
The present invention relates to network technology more particularly to cost accounting method, client terminal, service server, 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.
In existing such network system, the provider of the management of node, maintenance side and data is typically discrete main body, The manager of existing data does not encourage the management of node, maintenance side, such as reimbursement of expense, therefore management, the maintenance of node Side is just without power to the node owner into row energization, to which the number of nodes in network system gradually decreases, and stability compared with Difference can not provide the service of better quality to the user.Therefore, node device how is calculated to provide the provider of user, data Service, the problem of being urgent need to resolve.
Invention content
For overcome the deficiencies in the prior art, it is an object of the present invention to cost accounting methods, are used for client terminal, It can solve the problems, such as how to calculate the service that node device provides the provider of user, data.
The second object of the present invention is to provide cost accounting method, is used for service server, can solve how to calculate The problem of service that node device provides the provider of user, data.
The third object of the present invention is to provide client terminal, can solve how to calculate node device to user, data Provider provide service the problem of.
The fourth object of the present invention is to provide service server, can solve how to calculate node device to user, number According to provider provide service the problem of.
The fifth object of the present invention is to provide network system, can solve how to calculate node device to user, data Provider provide service the problem of.
The sixth object of the present invention is to provide medium, is stored with computer program, can solve how to calculate node and sets The problem of service that the standby provider to user, data provides.
An object of the present invention is realized using following technical scheme:
Cost accounting method, is used for client terminal, business plug-in unit built in the client terminal, and the client terminal passes through institute Business plug-in unit is stated to interact with service server and node device;
The cost accounting method includes the following steps:
It obtains and services from least one node device;
Pass through the business plug-in unit statistical fractals contribution information;
The service contribution information is sent to the service server and/or client server.
Further, described obtained from least one node device services, specially:It is obtained from least one node device Data.
Further, further comprising the steps of before the acquisition data from least one node device:
It is asked to service server transmission data;The service server is used to receive the first feedback letter from node device Breath, the node device obtain data from client server or another node device;
The information of source node device is obtained from the service server, the source node device is by the service server It is determined according to the request of data and first feedback information;
It is described to obtain data from least one node device, specially:
Data are obtained from least one source node device.
Further, the service contribution information includes the node contribution information of at least one source node device;
The node contribution information include the source node device data offer amount, outlet network speed, the transmitting continuous time, Contribute at least one in the frequency.
Further, described that the service contribution information is sent to the service server, specially:
The service contribution information is sent to the service server, so that the service server analyzes client's end The functional expenses of end and/or client server.
Further, described that the service contribution information is sent to client server, specially:
The service contribution information is sent to client server, so that the client server analyzes the client terminal And/or the functional expenses of client server.
Further, it is described by the business plug-in unit statistical fractals contribution information after, it is further comprising the steps of:
If the service 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, 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:
Cost accounting method, is used for service server, and the service server is connected to client terminal, the client terminal Built-in business plug-in unit, the client terminal are interacted by the business plug-in unit with service server and point device;
The cost accounting method includes the following steps:
Service contribution information is obtained from client terminal;
The functional expenses of the client terminal and/or client server are analyzed according to the service contribution information.
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;
The information of the source node device is sent to the client terminal, so that the client terminal is inserted by the business Part obtains data from the source node device.
Further, further comprising the steps of before the acquisition request of data from the client terminal:
The first feedback information is obtained from least one node device, the node device is from client server or another node Equipment obtains data;
It is described that at least one source node device is determined according to the request of data, specially:According to the request of data with And first feedback information determines that at least one node device is source node device.
Further, the service contribution information includes that the source node device takes the client terminal and/or client The node contribution information of business device.
Further, the node contribution information includes the data offer amount of the source node device, outlet network speed, transmission At least one of in duration, the contribution frequency.
Further, described after client terminal obtains service contribution information, it is further comprising the steps of:
If the service contribution information meets point spread condition, the second extension notice is sent to the customer service Device, so that the client server sends new service request to the service server.
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:
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 cost accounting method when executing described program.
The fourth 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 cost accounting method when processor executes described program.
The fifth object of the present invention is realized using following technical scheme:
Network system, including above-mentioned client terminal, above-mentioned service server 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 expense when being executed by processor The step of with accounting method.
Compared with prior art, the advantageous effect of the embodiment of the present invention is:It is counted by the business plug-in unit in client terminal Service contribution information, i.e., to client terminal provide service node device node contribution information, realize to client terminal and/ Or the functional expenses of client server are analyzed, and by node device be the practical service provided of client terminal are in terms of standard carries out Take.
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 a kind of resource regulating methods, so that service server can be provided to client server It supports so that it can be provided faster for client terminal by storage capacity, computing capability and bandwidth of magnanimity node device etc. The services such as data download.
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 (21)

1. cost accounting method, it is characterised in that:For client terminal, business plug-in unit built in the client terminal, the client Terminal is interacted by the business plug-in unit with service server and node device;
The cost accounting method includes the following steps:
It obtains and services from least one node device;
Pass through the business plug-in unit statistical fractals contribution information;
The service contribution information is sent to the service server and/or client server.
2. cost accounting method as described in claim 1, it is characterised in that:Described obtained from least one node device takes Business, specially:Data are obtained from least one node device.
3. cost accounting method as claimed in claim 2, it is characterised in that:It is described to obtain data from least one node device Before, further comprising the steps of:
It is asked to service server transmission data;The service server is used to receive the first feedback information, institute from node device It states node device and obtains data from client server or another node device;
From the service server obtain source node device information, the source node device be by the service server according to What the request of data and first feedback information determined;
It is described to obtain data from least one node device, specially:
Data are obtained from least one source node device.
4. cost accounting method as claimed in claim 3, it is characterised in that:The service contribution information includes described at least one The node contribution information of a source node device;
The node contribution information includes the data offer amount of the source node device, outlet network speed, transmitting continuous time, contribution At least one of in the frequency.
5. cost accounting method as claimed in claim 3, it is characterised in that:It is described that the service contribution information is sent to institute Service server is stated, specially:
The service contribution information is sent to the service server, so that the service server analyzes the client terminal And/or the functional expenses of client server.
6. cost accounting method as claimed in claim 3, it is characterised in that:It is described that the service contribution information is sent to visitor Family server, specially:
The service contribution information is sent to client server so that the client server analyze the client terminal and/or The functional expenses of client server.
7. cost accounting method as claimed in claim 4, it is characterised in that:It is described to pass through the business plug-in unit statistical fractals tribute It is further comprising the steps of after offering information:
If the service 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.
8. cost accounting 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. cost accounting 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. cost accounting method, it is characterised in that:For service server, the service server is connected to client terminal, institute Business plug-in unit built in client terminal is stated, the client terminal is handed over by the business plug-in unit and service server and point device Mutually;
The cost accounting method includes the following steps:
Service contribution information is obtained from client terminal;
The functional expenses of the client terminal and/or client server are analyzed according to the service contribution information.
11. cost accounting method as claimed in claim 10, it is characterised in that:It is described to obtain service contribution letter from client terminal It is further comprising the steps of before breath:
Request of data is obtained from the client terminal;
At least one source node device is determined according to the request of data;
The information of the source node device is sent to the client terminal so that the client terminal by the business plug-in unit from The source node device obtains data.
12. cost accounting method as claimed in claim 11, it is characterised in that:It is described to be asked from client terminal acquisition data It is further comprising the steps of before asking:
The first feedback information is obtained from least one node device, the node device is from client server or another node device Obtain data;
It is described that at least one source node device is determined according to the request of data, specially:According to the request of data and institute It states the first feedback information and determines that at least one node device is source node device.
13. cost accounting method as claimed in claim 12, it is characterised in that:The service contribution information includes the source section Node contribution information of the point device to the client terminal and/or client server.
14. cost accounting method as claimed in claim 13, it is characterised in that:The node contribution information includes the source section At least one of in the data offer amount of point device, outlet network speed, transmitting continuous time, the contribution frequency.
15. cost accounting method as claimed in claim 14, it is characterised in that:It is described to obtain service contribution letter from client terminal It is further comprising the steps of after breath:
If the service contribution information meets point spread condition, sends the second extension and notify to the client server, with The client server is set to send new service request to the service server.
16. cost accounting method as claimed in claim 15, 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.
17. cost accounting method as claimed in claim 15, 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.
18. 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 expense as claimed in any one of claims 1-9 wherein when executing described program The step of accounting method.
19. 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 is realized when executing described program as described in any one of claim 10-17 The step of cost accounting method.
20. network system, it is characterised in that:Including client terminal as claimed in claim 18, as claimed in claim 19 Service server 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.
21. 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 cost accounting method as claimed in any one of claims 1-9 wherein;Or
The step of cost accounting method as described in any one of claim 10-17.
CN201810450788.4A 2018-05-11 2018-05-11 Fee accounting method, client terminal, service server, network system and medium Active CN108683515B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810450788.4A CN108683515B (en) 2018-05-11 2018-05-11 Fee accounting method, client terminal, service server, network system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810450788.4A CN108683515B (en) 2018-05-11 2018-05-11 Fee accounting method, client terminal, service server, network system and medium

Publications (2)

Publication Number Publication Date
CN108683515A true CN108683515A (en) 2018-10-19
CN108683515B CN108683515B (en) 2021-12-03

Family

ID=63806250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810450788.4A Active CN108683515B (en) 2018-05-11 2018-05-11 Fee accounting method, client terminal, service server, network system and medium

Country Status (1)

Country Link
CN (1) CN108683515B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090210328A1 (en) * 2008-02-15 2009-08-20 Oleg Fomenko System and method for facilitating a commercial peer to peer network
CN102130949A (en) * 2011-03-10 2011-07-20 肖智刚 User contribution-based method and system for sharing personalized digital resources
CN102624681A (en) * 2011-01-30 2012-08-01 索尼公司 Method and system for distributing copyrighted digital content in peer-to-peer network
CN105704694A (en) * 2016-01-18 2016-06-22 北京邮电大学 Method and device for computing expense allocation value in cooperative downloading

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090210328A1 (en) * 2008-02-15 2009-08-20 Oleg Fomenko System and method for facilitating a commercial peer to peer network
CN102624681A (en) * 2011-01-30 2012-08-01 索尼公司 Method and system for distributing copyrighted digital content in peer-to-peer network
CN102130949A (en) * 2011-03-10 2011-07-20 肖智刚 User contribution-based method and system for sharing personalized digital resources
CN105704694A (en) * 2016-01-18 2016-06-22 北京邮电大学 Method and device for computing expense allocation value in cooperative downloading

Also Published As

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

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
CN101800731B (en) Network transmission management server, network transmission management method and network transmission system
US7996546B2 (en) Dynamic allocation of a quota of consumer nodes connecting to a resource node of a peer-to-peer network
CN110417676A (en) A kind of dispatching method, device and dispatch network
CN108667935A (en) Network service method, server, network system and storage medium
CN108616600A (en) Resource regulating method, client server, node device, network system and medium
CN101720136A (en) Method for controlling number of neighbor nodes of client and device and cache system thereof
CN106412060A (en) Peer-to-peer (P2P) network system and method for realizing active loading of content based on intelligent strategy
CN109982152A (en) P2P CDN method for processing business, intelligent gateway and CDN platform
US11064023B2 (en) Method for actively sharing available bandwidth to consumer nodes in a peer-to-peer network for delivery of video streams
CN107396136A (en) A kind of video data acquisition methods, device, server and medium
CN108683728B (en) Data transmission method, server, terminal, network system and storage medium
CN101772083A (en) Method, device and system for allocating bandwidth
CN109194993B (en) Media file distribution method and file distribution platform
CN103905923A (en) Content caching method and device
CN111249747B (en) Information processing method and device in game
CN113596166A (en) Data acquisition method and device, computer equipment and storage medium
Chang et al. Effective utilization of user resources in PA-VoD systems with channel heterogeneity
CN108683515A (en) Cost accounting method, client terminal, service server, network system and medium
CN108737121A (en) Cost accounting method, node device, client server, network system and medium
CN103442257A (en) Method, device and system for achieving flow resource management
CN111798223A (en) Data collection method and device, storage medium and electronic equipment
CN109831467A (en) Data transmission method, equipment and system
US8301775B2 (en) Affiliate bandwidth management

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