CN108737121A - Cost accounting method, node device, client server, network system and medium - Google Patents
Cost accounting method, node device, client server, network system and medium Download PDFInfo
- Publication number
- CN108737121A CN108737121A CN201810451424.8A CN201810451424A CN108737121A CN 108737121 A CN108737121 A CN 108737121A CN 201810451424 A CN201810451424 A CN 201810451424A CN 108737121 A CN108737121 A CN 108737121A
- Authority
- CN
- China
- Prior art keywords
- node device
- node
- client
- server
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/14—Charging, metering or billing arrangements for data wireline or wireless communications
- H04L12/1432—Metric aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/14—Charging, metering or billing arrangements for data wireline or wireless communications
- H04L12/1432—Metric aspects
- H04L12/1435—Metric aspects volume-based
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/14—Charging, metering or billing arrangements for data wireline or wireless communications
- H04L12/1432—Metric aspects
- H04L12/1439—Metric aspects time-based
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/14—Charging, metering or billing arrangements for data wireline or wireless communications
- H04L12/1485—Tariff-related aspects
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses cost accounting method, node device, client server, network system and media, and wherein this method includes that node device provides service to client terminal;Node device counts node contribution information by Client card;The node contribution information is sent to the client server and client server and obtains node contribution information from least one node device by node device;Client server analyzes the functional expenses of the client terminal and/or client server according to the node contribution information.The node contribution information that service is provided to client terminal is counted by the Client card in node device, realizes and the functional expenses of client terminal and/or client server is analyzed, and is that standard carries out charging by the practical service provided of client terminal of node device.
Description
Technical field
The present invention relates to network technology more particularly to cost accounting method, node device, client 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 node device,
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 client 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 node device, 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 client 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 node device, Client card built in the node device, and the node device passes through institute
Client card is stated to interact with client server and client terminal;
The cost accounting method includes the following steps:
Service is provided to the client terminal;
Node contribution information is counted by the Client card;
The node contribution information is sent to the client server and/or service server.
Further, described to provide service to the client terminal, specially:
If obtaining data download request from the client terminal, sent to the client terminal by the Client card
Data.
Further, the cost accounting method is further comprising the steps of:
After obtaining data from client server or another node device, by the Client card to client server
The first feedback information is sent, in order to which the client server is true according to the request of data of the first feedback information and client terminal
It is source node device to recognize the node device, and generates source node list, and the source node list includes at least one source node
The network address of equipment.
Further, described that node contribution information is counted by the Client card, specifically include following steps:
Node contribution information of the source node device to the client terminal is counted by the Client card.
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 that the node contribution information is sent to the client server, specially:
The source node device is sent to the node contribution information of the client terminal to the client server, so that institute
State the functional expenses that client server analyzes the client terminal and/or client server.
Further, described that the node contribution information is sent to service server, specially:
The source node device is sent to the node contribution information of the client terminal to the service server, so that institute
State the functional expenses that service server analyzes the client terminal and/or client server.
Further, described that node tribute of the source node device to the client terminal is counted by the Client card
It is further comprising the steps of after offering information:
If the node contribution information meets point spread condition, the data are forwarded at least another node device.
Further, described that node tribute of the source node device to the client terminal is counted by the Client card
It is further comprising the steps of after offering 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, 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:
Cost accounting method, is used for client server, and the client server is connected to multiple node devices, the node
Client card built in equipment, the node device are handed over by the Client card and the client server and client terminal
Mutually;
The cost accounting method includes the following steps:
Node contribution information is obtained from least one node device;
The functional expenses of the client terminal and/or client server are analyzed according to the node contribution information.
Further, described before at least one node device acquisition node contribution information, further include following step
Suddenly:
Request of data is obtained from 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 client
Part obtains data from the source node device.
Further, further comprising the steps of before the acquisition request of data from 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 determine at least one node device be source node device.
Further, described to obtain node contribution information from least one node device, specially:
Node contribution information is obtained from the source node device;
The node contribution information is counted by the source node device by the Client card.
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 at least one node device obtains node contribution information, further include following step
Suddenly:
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 third 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 cost accounting method when executing described program.
The fourth 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 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 node device, above-mentioned client server 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 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 Client card in node device
The node contribution information that service is provided to client terminal, realize to the functional expenses of client terminal and/or client server into
Row analysis is that standard carries out charging by the practical service provided of client terminal of node device.
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, 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 (23)
1. cost accounting method, it is characterised in that:For node device, Client card built in the node device, the node
Equipment is interacted by the Client card with client server and client terminal;
The cost accounting method includes the following steps:
Service is provided to the client terminal;
Node contribution information is counted by the Client card;
The node contribution information is sent to the client server and/or service server.
2. cost accounting method as described in claim 1, which is characterized in that described to provide service, tool to the client terminal
Body is:
If obtaining data download request from the client terminal, number is sent to the client terminal by the Client card
According to.
3. cost accounting method as claimed in claim 2, which is characterized in that further comprising the steps of:
After obtaining data from client server or another node device, sent to client server by the Client card
First feedback information, in order to which the client server confirms institute according to the request of data of the first feedback information and client terminal
It is source node device to state node device, and generates source node list, and the source node list includes at least one source node device
Network address.
4. cost accounting method as claimed in claim 3, it is characterised in that:It is described that node tribute is counted by the Client card
Information is offered, following steps are specifically included:
Node contribution information of the source node device to the client terminal is counted by the Client card.
5. cost accounting method as claimed in claim 4, it is characterised in that:The node contribution information includes the source node
At least one of in the data offer amount of equipment, outlet network speed, transmitting continuous time, the contribution frequency.
6. cost accounting method as claimed in claim 4, it is characterised in that:It is described that the node contribution information is sent to institute
Client server is stated, specially:
The source node device is sent to the node contribution information of the client terminal to the client server, so that the visitor
The functional expenses of client terminal and/or client server described in the server analysis of family.
7. cost accounting method as claimed in claim 4, it is characterised in that:It is described that the node contribution information is sent to industry
Business server, specially:
The source node device is sent to the node contribution information of the client terminal to the service server, so that the industry
The functional expenses of client terminal and/or client server described in business server analysis.
8. cost accounting method as claimed in claim 4, it is characterised in that:It is described that the source is counted by the Client card
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.
9. cost accounting method as claimed in claim 4, it is characterised in that:It is described that the source is counted by the Client card
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.
10. cost accounting method as claimed in claim 8 or 9, it is characterised in that:The node contribution information includes the source
The transmitting continuous time of node device, the point spread condition include:The transmitting continuous time of the source node device is more than
Time threshold.
11. cost accounting method as claimed in claim 8 or 9, it is characterised in that:The node contribution information includes the source
The contribution frequency of node device, the point spread condition include:The contribution frequency of the source node device is more than frequency threshold value.
12. cost accounting method, it is characterised in that:For client server, the client server is connected to multiple nodes and sets
It is standby, Client card built in the node device, the node device by the Client card and the client server and
Client terminal interacts;
The cost accounting method includes the following steps:
Node contribution information is obtained from least one node device;
The functional expenses of the client terminal and/or client server are analyzed according to the node contribution information.
13. cost accounting method as claimed in claim 12, it is characterised in that:It is described to be obtained from least one node device
It is further comprising the steps of before taking node contribution information:
Request of data is obtained from 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 Client card from
The source node device obtains data.
14. cost accounting method as claimed in claim 13, it is characterised in that:It is described from client terminal obtain request of data it
Before, it is further comprising the steps of:
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
One feedback information determines that at least one node device is source node device.
15. cost accounting method as claimed in claim 13, it is characterised in that:It is described to be obtained from least one node device
Node contribution information is taken, specially:
Node contribution information is obtained from the source node device;
The node contribution information is counted by the source node device by the Client card.
16. the cost accounting method as described in any one of claim 13-15, it is characterised in that:The node contribution information
At least one of in data offer amount, outlet network speed, transmitting continuous time, the contribution frequency including the source node device.
17. cost accounting method as claimed in claim 16, it is characterised in that:It is described to be obtained from least one node device
It is further comprising the steps of after taking node contribution information:
If the node contribution information meets point spread condition, new service request is sent to the service server.
18. cost accounting method as claimed in claim 17, 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:When the transmitting continuous time of the source node device is more than
Between threshold value.
19. cost accounting method as claimed in claim 17, 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 the source node device is more than frequency threshold value.
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 expense as described in any one of claim 1-11 when executing described program
The step of accounting method.
21. 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 is realized when executing described program as described in any one of claim 12-19
The step of cost accounting method.
22. network system, it is characterised in that:Including node device as claimed in claim 20, as claimed in claim 21
Client server 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.
23. 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 described in any one of claim 1-11;Or
The step of cost accounting method as described in any one of claim 12-19.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810451424.8A CN108737121B (en) | 2018-05-11 | 2018-05-11 | Cost accounting method, node device, client server, network system, and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810451424.8A CN108737121B (en) | 2018-05-11 | 2018-05-11 | Cost accounting method, node device, client server, network system, and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108737121A true CN108737121A (en) | 2018-11-02 |
CN108737121B CN108737121B (en) | 2022-02-01 |
Family
ID=63937362
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810451424.8A Active CN108737121B (en) | 2018-05-11 | 2018-05-11 | Cost accounting method, node device, client server, network system, and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108737121B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040203751A1 (en) * | 2002-10-21 | 2004-10-14 | Excino Technologies Inc. | Peer-to-peer (P2P) collaborative system for service aggregation, rapid service provisioning and service roaming |
CN101873345A (en) * | 2010-05-27 | 2010-10-27 | 中国科学院计算技术研究所 | Integrated block switching P2P shared-file system and method for motivating seed-providing for other nodes thereof |
CN102624681A (en) * | 2011-01-30 | 2012-08-01 | 索尼公司 | Method and system for distributing copyrighted digital content in peer-to-peer network |
CN102932460A (en) * | 2012-11-06 | 2013-02-13 | 北京交通大学 | Campus network peer-to-peer (P2P) incentive method based on contribution values |
CN103299580A (en) * | 2011-12-30 | 2013-09-11 | 华为技术有限公司 | Service distribution method, device and system |
CN103581245A (en) * | 2012-07-30 | 2014-02-12 | 腾讯科技(深圳)有限公司 | Content delivery method and system of content delivery network |
CN105791427A (en) * | 2016-04-22 | 2016-07-20 | 百度在线网络技术(北京)有限公司 | Method, device and system for supplementing resource heat |
CN105791247A (en) * | 2014-12-25 | 2016-07-20 | ***通信集团公司 | Unified traffic payment business implementation method and associated equipment and system |
-
2018
- 2018-05-11 CN CN201810451424.8A patent/CN108737121B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040203751A1 (en) * | 2002-10-21 | 2004-10-14 | Excino Technologies Inc. | Peer-to-peer (P2P) collaborative system for service aggregation, rapid service provisioning and service roaming |
CN101873345A (en) * | 2010-05-27 | 2010-10-27 | 中国科学院计算技术研究所 | Integrated block switching P2P shared-file system and method for motivating seed-providing for other nodes thereof |
CN102624681A (en) * | 2011-01-30 | 2012-08-01 | 索尼公司 | Method and system for distributing copyrighted digital content in peer-to-peer network |
CN103299580A (en) * | 2011-12-30 | 2013-09-11 | 华为技术有限公司 | Service distribution method, device and system |
CN103581245A (en) * | 2012-07-30 | 2014-02-12 | 腾讯科技(深圳)有限公司 | Content delivery method and system of content delivery network |
CN102932460A (en) * | 2012-11-06 | 2013-02-13 | 北京交通大学 | Campus network peer-to-peer (P2P) incentive method based on contribution values |
CN105791247A (en) * | 2014-12-25 | 2016-07-20 | ***通信集团公司 | Unified traffic payment business implementation method and associated equipment and system |
CN105791427A (en) * | 2016-04-22 | 2016-07-20 | 百度在线网络技术(北京)有限公司 | Method, device and system for supplementing resource heat |
Also Published As
Publication number | Publication date |
---|---|
CN108737121B (en) | 2022-02-01 |
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 | |
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 | |
CN103430489B (en) | Document down loading method, device and system in content distributing network | |
CN108616600A (en) | Resource regulating method, client server, node device, network system and medium | |
Chen et al. | Thunder crystal: A novel crowdsourcing-based content distribution platform | |
CN108667935A (en) | Network service method, server, network system and storage medium | |
CN110417676A (en) | A kind of dispatching method, device and dispatch network | |
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 | |
CN109348264A (en) | Video resource sharing method, device, storage medium and electronic equipment | |
CN101772083A (en) | Method, device and system for allocating bandwidth | |
CN108683728A (en) | Data transmission method, server, terminal, network system and storage medium | |
CN109194993B (en) | Media file distribution method and file distribution platform | |
Lee et al. | On the economics effects of CDN-mediated delivery on content providers | |
CN113596166A (en) | Data acquisition method and device, computer equipment and storage medium | |
CN111249747B (en) | Information processing method and device in game | |
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 | |
CN111798223A (en) | Data collection method and device, storage medium and electronic equipment | |
Zhou et al. | Design, implementation, and measurement of a crowdsourcing-based content distribution platform | |
CN108683726B (en) | Data transmission method, server, terminal, network system and storage medium | |
Trajkovska et al. | P2P incentive model for QoS based streaming systems | |
Wang et al. | Incentive based cooperative content caching in Social 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 |