CN108737533A - Network service implementation method, service node device and storage medium - Google Patents

Network service implementation method, service node device and storage medium Download PDF

Info

Publication number
CN108737533A
CN108737533A CN201810450092.1A CN201810450092A CN108737533A CN 108737533 A CN108737533 A CN 108737533A CN 201810450092 A CN201810450092 A CN 201810450092A CN 108737533 A CN108737533 A CN 108737533A
Authority
CN
China
Prior art keywords
service
server
voucher
node device
network
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.)
Pending
Application number
CN201810450092.1A
Other languages
Chinese (zh)
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 CN201810450092.1A priority Critical patent/CN108737533A/en
Publication of CN108737533A publication Critical patent/CN108737533A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

The present invention discloses network service implementation method, service node device and storage medium, the method includes:The request that networks is sent to service server, the service network of the service server is added;The service request for receiving client terminal provides corresponding service according to the service request to the client terminal;Voucher corresponding with deserved income is obtained by interlock account, the deserved income generates due to providing service at least one client terminal;And the voucher is shifted to obtain appointed product to the interlock account of client server.Preferred embodiment according to the present invention can encourage more service node devices to be added in shared calculating network, contribute to form the good ecology of network system.

Description

Network service implementation method, service node device and storage medium
Technical field
The present invention relates to network technology more particularly to network service implementation method, service node device and storage mediums.
Background technology
Currently, the fields such as game, video, live streaming, download are quickly grown.However, the network user of billions of meters still has The network demands such as network acceleration, raising efficiency.How the demand is met as one of industry problem to be solved.
Invention content
For overcome the deficiencies in the prior art, it is an object of the present invention to provide a kind of network service method, can swash It encourages more service node devices to be added in shared calculating network, contributes to form the good ecology of network system.
For overcome the deficiencies in the prior art, the second purpose of the present invention is to provide a kind of service node devices, can swash It encourages more service node devices to be added in shared calculating network, contributes to form the good ecology of network system.
For overcome the deficiencies in the prior art, the three of the object of the invention are to provide a kind of storage medium, can encourage more More service node devices are added in shared calculating network, contribute to form the good ecology of network system.
An object of the present invention is realized using following technical scheme:
A kind of network service implementation method, including:
The request that networks is sent to service server, the service network of the service server is added;
The service request for receiving client terminal provides corresponding service according to the service request to the client terminal;
Corresponding with deserved income voucher is obtained by interlock account, and the deserved income is because at least one client Terminal provides service and generates;And
The voucher is shifted to obtain appointed product to the interlock account of client server.
The second object of the present invention is realized using following technical scheme:
A kind of service node device, including memory, processor and the program being stored in the memory, the journey Sequence is configured to be executed by processor, and the processor realizes network service realization side as described above when executing described program Method.
The third object of the present invention is realized using following technical scheme:
A kind of storage medium, is stored with computer program, which is characterized in that when the computer program is executed by processor Realize network service implementation method as described above.
The supplier of the network service implementation method of preferred embodiment according to the present invention, Internet resources can be with across a network platform It is encouraged due to providing net source service to the user of other network service providers, and serviced because providing.Meanwhile it can be with Extend the shared service range for calculating network, more service node devices is encouraged to be added in shared calculating network, and it is more Service node device may be that more network users provide better network service, form the good ecology of network system.
Description of the drawings
Fig. 1 is the Organization Chart of the network traffic system of the embodiment of the present invention one;
Fig. 2 is a kind of structure diagram of service node device in the embodiment of the present invention one;
Fig. 3 be the embodiment of the present invention two network traffic system in service server structure diagram;
Fig. 4 be the embodiment of the present invention two network traffic system in client server structure diagram;
Fig. 5 be the embodiment of the present invention two network traffic system in service node device structure diagram;
Fig. 6 be the embodiment of the present invention three network traffic system in service server structure diagram;
Fig. 7 be the embodiment of the present invention four network traffic system in service server structure diagram;
Fig. 8 be the embodiment of the present invention five network traffic system in service server structure diagram;
Fig. 9 is the flow chart of the network service method of the embodiment of the present invention six;
Figure 10 be Fig. 9 embodiment in data Stored Procedure schematic diagram;
Figure 11 be Fig. 9 embodiment in data acquisition flow diagram;
Figure 12 be Fig. 9 embodiment in calculate the flow diagram of the first income;
Figure 13 be Fig. 9 embodiment in calculate the flow diagram of the second income;
Figure 14 is the flow chart of the network service method of the embodiment of the present invention seven;
Figure 15 is the structure diagram of the server of the embodiment of the present invention eight.
Specific implementation mode
Below in conjunction with the accompanying drawings and specific implementation mode, the present invention is described further, it should be noted that in not phase Under the premise of conflict, new implementation can be formed between various embodiments described below or between each technical characteristic in any combination Example.
Embodiment one
Fig. 1 is the system architecture diagram of one embodiment of the network traffic system of the present invention, the network traffic system packet It includes:First server, multiple service node devices, second server and multiple first client terminals, having accessed network can phase Connect communication, and the first server, multiple service node devices, second server are respectively provided with interlock account, wherein:
The first server is used to calculate the multiple service node device respectively deserved the first income, passes through it Interlock account distributes voucher corresponding with first income to the respective interlock account of the multiple service node device, and Obtain the voucher of the interlock account transfer of the second server.Wherein, first income is set because of the service node It is generated for at least partly offer service into the multiple first client terminal.
The service node device is used to provide network service to the multiple first client terminal, passes through its interlock account The voucher of the interlock account distribution of the first server is obtained, and is shifted to the interlock account of the second server The voucher is to obtain the product of the second server.
Interlock account transfer of the second server for obtaining the service node device by its interlock account The voucher, and it is corresponding to the second income that the first server is deserved to the transfer of the interlock account of the first server The voucher, second income because the multiple service node device to the multiple first client terminal provide network clothes It is engaged in and generates.
Preferably, further including multiple second client terminals and third server in the network traffic system of the present embodiment.
The service node device is additionally operable to provide network service to the multiple second client terminal, and account is associated with by it The voucher is shifted to obtain the product of the third server to the interlock account of the third server in family.
Interlock account transfer of the third server for collecting the service node device by its interlock account The voucher shifts institute corresponding with the third income that the first server is deserved to the interlock account of the first server State voucher.
It should be understood that the first income that each service node device of first server calculating is deserved, can both include It is provided to multiple first client terminals and services deserved income, also include the service node device to multiple second client terminals And it is provided to other network equipments and services deserved income.
It should be understood that the interlock account of service node device, first server or second server includes belonging to service The owner of node device or the account of manager, the interlock account of first server include the owner for belonging to first server Or the account of manager, the interlock account of second server include the account of the owner or manager that belong to second server. The interlock account of service node device, first server or second server does not limit can only be in the service node device, On one server or second server, the situation that is also included on other network equipments.
In the embodiment of the present invention, voucher includes virtual card Securities, integral, ideal money, block chain token and other electronics note It is one or more in bill position.The block chain token using proof of work (Proof of Work, POW) mechanism and/or Equity proves that (Proof of Stake, POS) mechanism generates.
The service that service node device is provided to the first client terminal and/or the second client terminal includes memory space, band Some or all of in wide, calculating service.Network can be internet, global system for mobile communications (Global System of Mobile communication, GSM), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), 4G, 5G, bluetooth, the wired or wireless networks such as Wi-Fi.
First server is also referred to as service server.Clothes are collectively formed with each service node device managed in first server Business network is provided to second server and multiple first client terminals, and/or to third server and multiple second client terminals Network service, and then obtain income.
First server can be computer, single network server, multiple network servers composition server group or The cloud that a large amount of hosts or network server is made of of the person based on cloud computing.
Service node device can be the universal computing device for accessing network system, can also be the dedicated network equipment, Such equipment all has certain memory space, the communication of certain computing capability and access internet, hardware capabilities, network Ability etc..In the present embodiment, service node device is P2P node devices.
In a preferred embodiment, service node device is a kind of intelligent storage equipment, such as plays objective cloud.Fig. 2 shows A kind of structure diagram of intelligent storage equipment, including processor and the memory for being stored with computer program.
Memory includes at least a type of readable storage medium storing program for executing, and the readable storage medium storing program for executing includes flash memory, hard disk, more Media card, card-type memory (such as SD or DX memories etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Storage is installed on the operating system of service node device and all kinds of in memory Application software and data etc..
Processor can be in some embodiments central processing unit (CPU), controller, microcontroller, microprocessor or Other data processing chips.Processor is commonly used in the overall operation of control server.
The intelligent storage equipment further includes Network Interface Module.Network Interface Module may include wired network interface mould Block and/or wireless network interface modules.By Network Interface Module, intelligent storage equipment can with user terminal and be linked into net Other network equipments connection in network.User terminal in the present embodiment, which refers to the owner of intelligent storage equipment or manager, to be made User terminal, user terminal can pass through cable network or wireless network connection with intelligent storage equipment.Other networks are set Standby the first client terminal including in the present embodiment, the second client terminal and the other users on network terminal device, Other intelligent storage equipments, cloud storage service device, various network resource servers etc..
Preferably, the intelligent storage equipment further includes memory interface module.Memory interface module may include having Linear memory interface module and/or radio memory interface module.By memory interface module, intelligent storage equipment can connect It is attached the movable storage devices such as close External memory equipment, such as storage card, mobile hard disk, USB flash disk.Memory can be service section The internal storage unit of point device can also be the External memory equipment of service node device such as hard disk or memory, for example, with clothes Plug-in type the External memory equipment such as hard disk, intelligent memory card (Smart that business node device is connected by wired memory interface MediaCard, SMC), secure data (Secure Digital, SD) card, flash card (Flash Card) etc., or with service The External memory equipment that node device is connected by radio memory interface.It is appreciated that intelligent storage equipment also can not equipment External memory equipment.
Intelligent storage equipment is configured as through the memory interface module and/or Network Interface Module, to peripheral real Body storage device, user terminal, and/or the network equipment carry out local data management and data transfer management.For example, intelligence is deposited The owner or manager for storing up equipment can be via intelligent storage equipments in its user terminal and External memory equipment, the network equipment Between carry out the transmission of data, such as include through intelligent storage equipment storage by the user data in user terminal to external storage Equipment or upload in the network equipment, through intelligent storage equipment by the resource in External memory equipment or the money in the network equipment Source is transferred in user terminal and carries out data transmission between External memory equipment and the network equipment through intelligent storage equipment. The data are such as including video, photo, voice, text.
First client terminal can be serviced from some or certain service node devices, such as can be as being mounted with to regard Mobile phone, smart phone, laptop, digital broadcasting transmitter, the PDA (individual digitals of frequency player, live streaming software etc. Assistant), PAD (tablet computer), PMP (portable media player), navigation device, the movable equipments such as car-mounted device, with And the fixed equipments such as number TV, desktop computer, server.
Second server is also referred to as client server, and the network data services such as video display, live streaming are provided to the first client terminal.? In the present embodiment, after the second server owner is allowed by the service server owner, data distribution to business can be taken The service node device of business device management, to be the first client terminal by the storage capacity and bandwidth of magnanimity service node device The services such as faster data download are provided.It should be noted that a complete file can be respectively distributed to by second server This document can also be divided into after multiple data blocks and be distributed to different service node devices respectively by each service node device.
Similar, the second client terminal can also be serviced from some or certain service node devices, such as can be The movable equipment or fixed equipment for being such as mounted with another video player, software being broadcast live.Third server is to the second client Terminal provides the network data services such as video display, live streaming.
Second server and third server are belonging respectively to different network service providers, can be computers, single The server group that network server, multiple network servers form is either based on cloud computing by a large amount of hosts or network service The cloud that device is constituted.
It is appreciated that the service network that the service server and service node device in the present invention are formed can also be to more Network service provider client server and its client terminal provide service.
In the present embodiment, voucher can be generated using proof of work mechanism.Service server can be because of service node Equipment provides network service and distributes voucher to the interlock account of service node device by interlock account, if certain service node is set The standby volume of services provided is more, and contribution margin is larger, just distributes more vouchers to the associated account of the service node device.It can manage The interlock account of solution, service server can also be to the interlock account distributing portion voucher and part payment method of service node device Coin.
It is appreciated that in a further embodiment, voucher can prove that mechanism generates using equity.Service server Can according in the interlock account of service node device voucher quantity and/or obtain the voucher time determine by interlock account to The voucher amount of the interlock account distribution of service node device.The voucher quantity of the interlock account of service node device is more, obtains The time of voucher is more long, and more vouchers are distributed to the interlock account of the service node device.Alternatively, can be with integrated service section Voucher quantity and/or acquisition voucher time in the interlock account of volume of services and service node device that point device provides determine The voucher amount distributed to the interlock account of service node device.
Voucher in the interlock account of service node device can be transferred to the interlock account of client server, to obtain Obtain the product of client server.For example, the owner of the interlock account of service node device can be by client server Appointed product in store shifts a certain amount of voucher to obtain the product.In a preferable example, service node device The owner of interlock account can keep client server specific to associated client terminal account authority acquiring by shifting voucher Data.For example, the owner of the interlock account of certain service node device has the register account number of client server, the pass simultaneously Connection account can pay certain voucher to the interlock account of the client server, and client server is made to upgrade the register account number For member, member, which has permission, obtains specific data, or client server is allow to provide card Securities or product to the registration account number Grade, the user of the registration account number is allow to obtain specified data.
Further, client server can be with from the voucher that the interlock account of service node device obtains to business service Device order business, to the service request of service server meeting customer in response server, and corresponding service node device can To provide data and bandwidth etc. to client terminal.
It is appreciated that in the present embodiment, client server is by its interlock account to the association account of the service server It shifts the voucher corresponding with the second income that the first server is deserved and can be consistent with the second earned value in family Voucher can also be less than the voucher of the value of the second income (for example, in the interlock account only transfer part of service node device In the case that voucher buys product to client server, the voucher that the interlock account of client server is all may be not enough to pay Second income of service server).Under latter situation, the owner of client server can also be to all of service server Person's part payment franc, so that the owner of service server gets complete income.
In a preferred embodiment, the voucher is block chain voucher.First server can be fixed by pre-defined rule When generate predetermined quantity block and block chain voucher.The block of generation can be used for the transaction record of memory block chain voucher. It, can be with first service when the interlock account of first server distributes voucher to the respective interlock account of multiple service node devices Device within a predetermined period of time newly generated block chain voucher and from other party (such as client server, service node device) obtain The block chain voucher that past has generated is total amount, is distributed according to the contribution of each service node device.
Illustrated with an example, first server generated M blocks and N number of block chain voucher every S seconds, for the first time It when carrying out voucher distribution, can be distributed as total amount using the block chain voucher generated, later, the voucher of distribution is saved in service The interlock account of point device, the interlock account of client server can partly or entirely come back to first service after circulation The interlock account of device.When carrying out voucher distribution again, first server can with newly generated block chain after distributing for the first time with The block chain voucher that card and again circulation return to first server is distributed for total amount.Reaching predetermined condition, such as is producing After raw block chain voucher has reached predetermined threshold, or generation block chain voucher has been subjected to scheduled duration, first server is fixed When the block chain voucher quantity that generates reduce, such as can halve, and generate block chain voucher after halving and meet above-mentioned condition Afterwards, continue to reduce the quantity for generating block chain voucher.By the generation for limiting block chain voucher, it is ensured that the block generated The value of chain voucher will not be lost in.
In the network traffic system of the embodiment of the present invention, the suppliers of Internet resources can be with across a network platform to other networks The user of service provider provides net source service, and is encouraged due to providing service.Meanwhile shared meter can be extended The service range for calculating network encourages more service node devices to be added in shared calculating network, and more service nodes are set Standby or more network users provide better network service, form the good ecology of network system.
Embodiment two
The network traffic system of the present embodiment is similar to the network traffic system of embodiment one, and difference place is, this reality It applies in example, is obtained as shown in figure 3, service server further includes networking request reception unit, list management unit, the first service request Take unit, first node list generation unit, first list transmission unit;Wherein:
Networking request reception unit, the networking for receiving the service node device are asked.
List management unit, for service node device row to be added in the service node device according to networking request Table.
Service server asks service node device service network is added according to the networking of service node device, later, Service node device can provide service to client terminal, and obtain corresponding income.
First service request acquiring unit, the first service request for obtaining client server.
When client server is needed certain data distribution to service node device, first business is sent to service server and asked It asks, so that service server provides it the information that can store data and the service node device that can carry out data transmission.
As preferred embodiment, the service request includes demand nodes quantity and node condition requirement.For example, objective Family server needs the node device that certain data distribution is met 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..
First node list generation unit, for generating first object service node device according to first service request List.
After certain service node device booting access network, service server can get service node device networking Information can also obtain the information such as memory space, bandwidth, the residing region of the service node device.Therefore, work as business service Device receives the service request of client server, so that it may to determine that some meet the service node device of the request according to service request For the target node device for storing corresponding data, and generate destination service node device list.Destination service node device List includes the network address of these target node devices.
First list transmission unit, for sending the first object service node device row to the client server Table, so that service node device of the client server into the destination service node device list distributes data.
Client server receives destination service node device list, so that it may with according to the network of destination service node device Address is by data distribution to these service node devices.Preferably, these service node devices can be further to destination service Other service node devices (also known as expansion service node device) except node device list send received data.
In the present embodiment, as shown in figure 4, the client server further includes:
Second service request receiving unit, the second service request for receiving the client terminal.Wherein, the second business Request can be request of data.
Client terminal is installed with corresponding with client server program, such as iqiyi.com player, crawler etc..? Client terminal needs a certain data, such as when needing some video file, is asked to client server transmission data;Request of data It may include the cryptographic Hash of the data.
Second node list generation unit, for generating the second destination service node device according to second service request List.
Client server, can be according to the letter of service node device feedback after by data distribution to service node device Breath statistics understands which node device is which data be stored in.It, can be with after receiving the request of data of some client terminal According to the specified one or more service node devices of request of data as source node device.As preferred mode, request of data Location information including client terminal, the client server preferential distance to a declared goal client terminal are apart from close service node device Source node device generates the second destination service node device list, which includes the network address of the source node device.
Second node list transmission unit, for sending the second destination service node device row to the client terminal Table.
Second destination service node device list includes the network address of source node device, therefore client terminal can root 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.
In the present embodiment, as shown in figure 5, the service node device further includes:
Data storage cell, the business datum for storing the client server.
After client server receives destination service node device list, so that it may with according to the net of destination service node device Business datum is distributed to the service node device in list by network address.The data storage cell of service node device comes to distributing Business datum stored.
Request of data receiving unit, the service data request for receiving the client terminal.
Client terminal, can be to list after the second destination service node device list for receiving client server transmission At least one of service node device network address initiate service data request.The request of data of service node device receives Unit receives the service data request of client terminal.
Data transmission unit, for sending corresponding business number to the client terminal according to the service data request According to.
After the request of data receiving unit of service node device receives the service data request of client terminal, data send single Corresponding business datum is sent to client terminal by member according to service data request, for the subsequent operation of client terminal, such as Play video etc..
In the present embodiment, by service server to the presence of each service node device, hardware capabilities, network capabilities Etc. being counted, and the service node device that can store data is provided to client server according to the service request of client server Network address, to service server can to client server provide support so that it can by magnanimity node device Storage capacity and bandwidth provide the services such as faster data download for client terminal.
Embodiment three
The network traffic system of the present embodiment is similar to the network traffic system of embodiment one, and difference place is, this reality It applies in example, as shown in fig. 6, service server further includes:
First service amount acquiring unit, for obtaining the respective volume of services of the multiple service node device.
Preferably, service node device is built-in with the program interacted with service server.The program can be with card format In service node device, it preferably can be the plug-in unit that service server manager provides, service section can be run on In the sandbox of point device.
Service server can obtain the service of the service node device by accessing the program built in service node device Amount.The service that service node device provides is such as including memory space, bandwidth, calculating service.Specifically, service node device The volume of services for the different services that can be provided with statistical fractals node device, for example, the statistic of memory space is (to indicate for MB days Occupy the memory space of 1MB, one day time), the statistic of bandwidth is MB, and the statistic for calculating service is the second.
When the service network of service server is only second server and its client terminal offer service, each service node is set Standby respective volume of services is that it is the sum of the volume of services that each client terminal provides.The service network of service server is different When network service provider provides service, such as when also providing server for aforementioned third server and the second client terminal, respectively The respective volume of services of service node device is that it is provided for each first client terminal, the second client terminal and other network equipments The sum of volume of services.
First income calculation unit, described in being calculated according to the acquired respective volume of services of multiple service node devices Respective deserved the first income of multiple service node devices.
Service server can determine the deserved financial value of the unit servings of each service of service node device.? After one volume of services acquiring unit gets the volume of services for the different services that a service node device provides, the first income calculation list Member determines the first deserved income of the service node device according to the corresponding financial value of unit servings.Determining the first income Afterwards, service server shifts corresponding voucher by its interlock account to the interlock account of the node device.
Example IV
The network traffic system of the present embodiment is similar to the network traffic system of embodiment one, and difference place is, this reality It applies in example, as shown in fig. 7, service server further includes second service amount acquiring unit and the second income calculation unit:
Second service amount acquiring unit is provided for obtaining the multiple service node device to the multiple client terminal Service total amount.
In the present embodiment, second service amount acquiring unit further comprises:
First acquisition unit, the service obtained from the multiple service node device for obtaining each client terminal respectively Amount.
Service server can obtain each client terminal respectively from described by accessing the program built in each client terminal Volume of services acquired in multiple service node devices.
Preferably, customer terminal equipment can count the volume of services that each service node device provides, then summarize each The volume of services that service node device is provided.Wherein, the program built in client terminal can be that service server manager provides Plug-in unit.
First statistic unit, the volume of services for obtaining each client terminal obtained respectively summarize, obtain Obtain the service total amount that the multiple service node device is provided to the multiple client terminal.
Specifically, each client terminal can count the service of the different services obtained from the multiple service node device Amount, it is total that service server can count the service that multiple service node devices are the different services that multiple client terminals provide Amount.
Second income calculation unit is used to calculate second income according to the service total amount.
Service server can determine the deserved financial value of the unit servings of each service of service node device.? After two volume of services acquiring units get the service total amount that multiple service node devices are provided to the multiple client terminal, second Income calculation unit determines the second deserved income according to the corresponding financial value of unit servings.After determining the second income, The interlock account of service server obtains corresponding voucher from the interlock account of client server.
It is appreciated that before client server shifts voucher by its interlock account to the interlock account of service server, it is right The service total amount of each service node device that its each client terminal serviced is obtained is counted, so that it is determined that should shift with Demonstrate,prove quantity, compare service total amount that voucher quantity and the service server for confirming counted service total amount or determination count or When the voucher quantity to be collected is consistent, just shifted.
Embodiment five
The network traffic system of the present embodiment is similar to the network traffic system of embodiment one, and difference place is, this reality It applies in example, as shown in figure 8, service server further includes second service amount acquiring unit and the second income calculation unit:
Second service amount acquiring unit is provided for obtaining the multiple service node device to the multiple client terminal Service total amount.
In the present embodiment, second service amount acquiring unit further comprises:
Second acquisition unit is provided to the multiple client terminal for obtaining each service node device respectively Volume of services.
Service server can by access the program built in each service node device obtain the service node device to The volume of services that the multiple client terminal provides.Specifically, it is each that service node device, which can count the service node device, The volume of services that client terminal provides, then it is the volume of services that each client terminal provides to summarize the service node device.
Second statistic unit, for each service node device obtained respectively is whole to the multiple client The volume of services that end provides is summarized, and it is total to obtain the service that the multiple service node device is provided to the multiple client terminal Amount.
Specifically, service node device can count the volume of services of the different services provided for each client terminal.Industry Business server can count the service total amount that multiple service node devices are the different services that multiple client terminals provide.
Second income calculation unit, for calculating second income according to the service total amount.
Service server can determine the deserved financial value of the unit servings of each service of service node device.? After two volume of services acquiring units get the service total amount that multiple service node devices are provided to the multiple client terminal, second Income calculation unit determines the second deserved income according to the corresponding financial value of unit servings.After determining the second income, Service server obtains corresponding voucher by its interlock account from the interlock account of client server.
It is appreciated that before client server shifts voucher by its interlock account to the interlock account of service server, it is right The service total amount of each service node device that its each client terminal serviced is obtained is counted, so that it is determined that should shift with Demonstrate,prove quantity, compare service total amount that voucher quantity and the service server for confirming counted service total amount or determination count or When the voucher quantity to be collected is consistent, just shifted.
The second service being appreciated that in the service server corresponding embodiment one described in embodiment two to embodiment five Device, the first client terminal in the client terminal corresponding embodiment one.
It is appreciated that above-mentioned several embodiments can be combined with each other to form other embodiment, for example, in one embodiment In, embodiment two, three, four can be combined;Alternatively, embodiment two, three, five can be combined.
Embodiment six
Fig. 9 shows the flow chart of one embodiment of the network service implementation method of the present invention, including:
S91, multiple service node devices at least provide network service to multiple client terminals.
S92, first server calculate the multiple service node device respectively deserved the first income, pass through its association Account distributes voucher corresponding with first income to the respective interlock account of the multiple service node device.Wherein, institute The first income is stated to generate because each service node device provides network service to first client terminal
S93, the service node device interlock account obtain the first server interlock account distribution voucher.
S94, service node device interlock account shift the voucher to second server to obtain the second service The product of device, the interlock account of the second server collect the interlock account transfer of the service node device it is described with Card.
S95, the second server interlock account to the transfer of the interlock account of the first server with described first The second deserved income of server voucher accordingly, second income is because the multiple service node device is to described more A client terminal provides network service and generates.
Service node device, client terminal, first server, second server in the present embodiment correspond to aforementioned reality respectively Service node device, client terminal, first server, the second server in example are applied, is repeated no more.
Preferably, in S91, it includes that storage is empty that multiple service node devices at least provide network service to multiple client terminals Between, bandwidth, calculate service in some or all of.Memory space and bandwidth can be described as data service.It is with data service below Specific example is described in detail, and wherein first server is also referred to as service server, and second server is also referred to as client server.
Before service node device provides network service to client terminal, the data first completed on service node device are deposited Store up flow.As preferable embodiment, with reference to figure 10, the data Stored Procedure includes:
S101, service node device send the networking request of service node device to service server, and service server connects Receive the networking request of service node device.
S102, service server ask service node device service node device row are added according to the networking Table.
Service node device enters service node device list and has been added to service network, later, service node device Service can be provided to client terminal, and obtain corresponding income.
S103, client server send the first service request to service server, and service server receives client server First service request.
When client server is needed certain data distribution to service node device, first business is sent to service server and asked It asks, so that service server provides it the information that can store data and the service node device that can carry out data transmission.Compared with Good, the service request includes demand nodes quantity and node condition requirement.
S104, service server generate first object service node device list according to first service request.
Preferably, service server can according to the presence of the equipment in service node device list, memory space, Some of the information such as bandwidth, residing region, the demand nodes quantity being determined for compliance in the first service request and node condition requirement Service node device is the target node device for storing corresponding data, and generates first object service node device list.
S105, service server send the first object service node device list, customer service to client server Device receives the first object service node device list.
Each service node device of S106, client server into first object service node device list distributes data, Service node device stores data.It is appreciated that a complete file can be respectively distributed to respectively by client server This document can also be divided into after multiple data blocks and be distributed to different service node devices respectively by service node device.
After service node device stores data, expansion service node can also be transmitted data to and stored.
After completing the data storage on service node device, client terminal obtains service (in the present embodiment from service node To obtain the business datum of storage).As preferable embodiment, with reference to figure 11, the data acquisition flow of the client terminal Including:
S111, client terminal send the second service request to client server, and client server receives the institute of client terminal State the second service request.Wherein, the second service request is request of data.
S112, client server generate the second destination service node device list according to second service request.
S113, client server send the second destination service node device list to client terminal, and client terminal connects Receive the second destination service node device list.
S114, client terminal initiate industry at least one of the second destination service node device list service node device Business request of data, the service node device receive the service data request of the client terminal.
S115, the service node device send corresponding business according to the service data request to the client terminal Data.
Above-mentioned data Stored Procedure and data acquisition flow is corresponding with the technical solution in embodiment two, repeats no more.
As preferable embodiment, the multiple service node device is calculated described in 2, S92 refering to fig. 1 and is respectively answered The first income include:
S121, the multiple respective volume of services of service node device is obtained.
Preferably, each service node device can be carried by the program interacted with service server to service server transmission Supply the sum of each client terminal and the volume of services of service of other network equipments.
S122, the multiple service node device is calculated according to the acquired respective volume of services of multiple service node devices Respectively the first deserved income.
Service server can be according to the deserved income of unit servings of each service of determining service node device Value and the acquired respective volume of services of each service node device, calculate each service node device and distinguish deserved first Income.
Preferably, in S94, the voucher in the interlock account of service node device can be transferred to the pass of client server Join account, to obtain the product of client server.For example, the owner of the interlock account of service node device can by Appointed product in the store of client server shifts a certain amount of voucher to obtain the product.Wherein, appointed product can be meeting Some or all of in member's equity, virtual card Securities, integral, special services, products in kind.In a preferable example, service The owner of the interlock account of node device can be such that client server is weighed to associated client terminal account by shifting voucher Limit obtains specific data.For example, the owner of the interlock account of certain service node device has the note of client server simultaneously Volume account, the interlock account can shift certain voucher to the client server, make client server by the register account number liter Grade is member, and member, which has permission, obtains specific data, or allow client server to the registration account number provide card Securities or Integral etc., allows the user of the registration account number to obtain specified data.It should be understood that the interlock account of service node device The owner can also to the interlock account of service server shift voucher, to obtain appointed product, such as cloud storage space, number Other services such as word content, acceleration download.
As preferable embodiment, the second deserved income of first server described in 3, S95 passes through following refering to fig. 1 Method, which calculates, to be generated:
S131, the service total amount that the multiple service node device is provided to the multiple client terminal is obtained.
Optionally, in one implementation, service server can be by accessing the program point built in each client terminal Volume of services of each client terminal acquired in the multiple service node device is not obtained, preferably, customer terminal equipment can To count the volume of services that each service node device provides, then summarize the volume of services that each service node device is provided.It Afterwards, service server can summarize the volume of services that each client terminal obtained respectively obtains, and obtain described more The service total amount that a service node device is provided to the multiple client terminal.Wherein, the program built in client terminal can be The plug-in unit that service server manager provides.
Optionally, in another implementation, service server can be by accessing each service node terminal built-in Program obtain the volume of services that each service node device is provided to the multiple client terminal respectively, specifically, service node It is the volume of services that each client terminal provides that equipment, which can count the service node device, then summarizes the service node device and be The volume of services that each client terminal provides.Later, service server again carries each service node device obtained respectively The volume of services of confession is summarized, and the service total amount that the multiple service node device is provided to the multiple client terminal is obtained. Wherein, the program of service node terminal built-in can be the plug-in unit that service server manager provides.
Specifically, service server can count multiple service node devices be multiple client terminals provide it is different The service total amount of service.
S132, the second deserved income of the first server is calculated according to the service total amount.
It can determine the deserved financial value of the unit servings of each service of service node device.Getting multiple clothes After the service total amount that business node device is provided to the multiple client terminal, institute is determined according to the corresponding financial value of unit servings The second deserved income.After determining the second income, service server is by its interlock account from the association account of client server Family obtains corresponding voucher.
It is appreciated that client server is shifted and the second income by its interlock account to the interlock account of service server Before corresponding voucher, its multiple client terminal is counted from the service total amount of the multiple service node device, to really Surely the voucher quantity that should be shifted is counted comparing the voucher quantity for confirming counted service total amount or determination with service server Service total amount or when the consistent voucher quantity to be collected, just shifted.
Optionally, in one implementation, client server can be by accessing the program point built in each client terminal Volume of services of each client terminal acquired in the multiple service node device is not obtained, preferably, customer terminal equipment can To count the volume of services that each service node device provides, then summarize the volume of services that each service node device is provided.It Afterwards, client server can summarize the volume of services that each client terminal obtained respectively obtains, and obtain described more The service total amount that a service node device is provided to the multiple client terminal.Wherein, the program built in client terminal can be The plug-in unit that client server manager provides.
Optionally, in another implementation, client server can be by accessing each service node terminal built-in Program obtain the volume of services that each service node device is provided to the multiple client terminal respectively, specifically, service node It is the volume of services that each client terminal provides that equipment, which can count the service node device, then summarizes the service node device and be The volume of services that each client terminal provides.Later, client server again carries each service node device obtained respectively The volume of services of confession is summarized, and the service total amount that the multiple service node device is provided to the multiple client terminal is obtained. Wherein, the program of service node terminal built-in can be the plug-in unit that client server manager provides.
Embodiment seven
Figure 14 shows the flow chart of another embodiment of the network service implementation method of the present invention, and this method can be by servicing Node device executes, including:S141, the request that networks is sent to service server, the service network of service server is added.
Service server, will service according to networking request after receiving the networking request of service node device transmission Service node device list is added in node device, to which service network, later, service node device is added in service node device Service can be provided to client terminal, and obtain corresponding income.
S142, the service request for receiving client terminal provide accordingly according to the service request to the client terminal Service.
The service that service node device is provided to client terminal includes providing memory space, bandwidth, calculating the portion in service Divide or whole.
In a preferred embodiment, the service request of client terminal is request of data, and service node device is receiving The data of client server are first received and stored before the service request of client terminal.It should be understood that service node device is deposited The data of the client server of storage may include at least one complete file, and client terminal is after getting the complete file Directly apply.Alternatively, the data of the client server of service node device storage can also include the partial data of a file Block can recombinate out complete file after client terminal gets different data blocks from different service node devices.
S143, corresponding with deserved income voucher is obtained by interlock account, the deserved income is because at least one institute Client terminal is stated service is provided and is generated.Preferably, the voucher includes virtual card Securities, integral, ideal money, block chain voucher In it is one or more.
In a preferred embodiment, voucher corresponding with deserved income is obtained from the interlock account of service server. Further include before obtaining voucher corresponding with deserved income from the interlock account of service server:It obtains to described at least one The volume of services that client terminal provides, and send the volume of services counted to service server or client server.Business takes The deserved income that business device can calculate each service node device according to the volume of services acquired in each service node device passes through pass The interlock account that connection account is distributed, and calculates client server should give the voucher of transfer.Client server can also The voucher of service server should be transferred to by being calculated according to the volume of services acquired in each service node device.
Preferably, service node device can be counted in the program for the service server installed to described at least one The volume of services that client terminal provides.The program can be mounted on card format in service node device, preferably can be industry The plug-in unit that server managers of being engaged in provide, can run in the sandbox of service node device.
Optionally, service node device can also be counted in the program for the client server installed to described at least one The volume of services that a client terminal provides.The program can be mounted on card format in service node device, preferably can be The plug-in unit that client server manager provides, can run in the sandbox of service node device.
In a preferable embodiment, service node device provides a variety of different services to client terminal.From The interlock account of service server obtains voucher corresponding with deserved income:It is obtained respectively to described at least one The volume of services for the different services that client terminal provides, and send counted difference to the service server or client server The volume of services of service.Service server or client server calculate each service section according to the volume of services of the different services received The service total amount for the different services that point device is provided to each client terminal, and then calculate the voucher that should be collected or shift.
S144, the voucher is shifted to obtain appointed product to the interlock account of client server.
In a preferable embodiment, client server institute can be prompted in the program of service server or webpage The product that transaction is provided, receive user it is specified after by the interlock account of service node device to the pass of the client server Connection account shifts the voucher to obtain the product that the user specifies.Alternatively, can also be in the program or net of service server The product of the provided transaction of prompt service server in page passes through the interlock account of service node device after receiving user and specifying The voucher is shifted to obtain the product that the user specifies to the interlock account of the service server.Wherein, business service The program or webpage of device refer to the program or webpage of service server manager offer.
In another embodiment, client server can also be prompted to be carried in the program of client server or webpage For the product of transaction, receive user it is specified after, pass that the branching program of invoked service server passes through service node device Connection account shifts the voucher to obtain the product that the user specifies to the interlock account of the client server.Alternatively, Can in the program of client server or webpage the provided transaction of prompt service server product, receiving, user is specified Afterwards, association of the branching program of invoked service server by the interlock account of service node device to the service server Account shifts the voucher to obtain the product that the user specifies.Wherein, the program of client server or webpage refer to client's clothes The program or webpage that business device manager provides.
In a preferable embodiment, further include after obtaining voucher from the interlock account of service server:Xiang Ye The interlock account of business server shifts the voucher to obtain appointed product.
Wherein, the appointed product can be some or all of in member's equity, virtual card Securities, integral, special services.
In a preferable embodiment, the voucher is block chain voucher, described to be taken to client server or business The interlock account of business device shifts the voucher to further include after obtaining appointed product:It merchandises to the initiation of block chain network and is asked into chain It asks, so that the interlock account of the opposite client server of the block chain network or service server shifts the friendship of the voucher It is easily packed into block and is recorded.
In a preferable embodiment, the voucher is block chain voucher, and service node device is also block simultaneously The record keeping node device of chain.It is specified to obtain that the voucher is shifted to the interlock account of client server and/or service server Further include after product:The transaction that the interlock account to the client server or service server shifts the voucher is beaten It is recorded in wrapping into block.
Embodiment eight
Figure 15 shows the structure diagram of one embodiment of the service node device of the present invention, which can be above-mentioned Cloud intelligent storage equipment, including memory, processor and the program being stored in the memory, described program be configured It is executed at by processor, the network service as described in preceding embodiment seven may be implemented in the processor when executing described program Implementation method.
As seen through the above description of the embodiments, those skilled in the art can be understood that above-mentioned implementation Example method can add the mode of required general hardware platform to realize by software.Based on this understanding, technology of the invention Substantially the part that contributes to existing technology can be expressed in the form of software products scheme in other words, the computer Software product can be stored in storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that one Equipment (can be personal computer, server either network equipment etc.) executes each embodiment of the present invention or embodiment Method described in certain parts.
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 (14)

1. a kind of network service implementation method, which is characterized in that including:
The request that networks is sent to service server, the service network of the service server is added;
The service request for receiving client terminal provides corresponding service according to the service request to the client terminal;
Corresponding with deserved income voucher is obtained by interlock account, and the deserved income is because at least one client terminal Service is provided and is generated;And
The voucher is shifted to obtain appointed product to the interlock account of client server.
2. network service implementation method as described in claim 1, which is characterized in that the service request is request of data, Further include before the service request for receiving client terminal:Receive and store the data of the client server.
3. network service implementation method as claimed in claim 2, which is characterized in that the data of the client server include extremely The partial data block of a few complete file or a file.
4. network service implementation method as described in claim 1, which is characterized in that the voucher is from the service server It obtains, further includes after obtaining voucher corresponding with deserved income from the service server:To the pass of the service server Join account and shifts the voucher to obtain appointed product.
5. network service implementation method as described in claim 1, which is characterized in that the voucher is from the service server Interlock account obtain, further including before obtaining corresponding with deserved income voucher from the interlock account of the service server: The volume of services provided at least one client terminal is provided, and is united to the service server or client server transmission The volume of services of meter.
6. network service implementation method as claimed in claim 5, which is characterized in that described to obtain at least one client Terminal provide volume of services include:
The volume of services provided at least one client terminal is provided in the program for the service server installed;Or Person
The volume of services provided at least one client terminal is provided in the program for the client server installed.
7. network service implementation method as described in claim 1, which is characterized in that the voucher is from the service server Interlock account obtain, further including before obtaining corresponding with deserved income voucher from the interlock account of the service server: Obtain the volumes of services of the different services provided at least one client terminal respectively, and to the service server or client Server sends the volume of services of counted different services.
8. network service implementation method as described in claim 1, which is characterized in that the interlock account to client server Shift the voucher includes to obtain appointed product:
It is specified to receive user in the program of the service server or webpage, and turn to the interlock account of the client server The voucher is moved to obtain the product that the user specifies;Or
Receive user in the program of the client server or webpage to specify, and passes through the transfer for calling the service server Program shifts the voucher to obtain the product that the user specifies to the interlock account of the client server.
9. such as claim 1 to 8 any one of them network service implementation method, which is characterized in that the voucher is block chain Voucher, it is described to the interlock account of client server to shift the voucher to further include after obtaining appointed product:To block link network Network initiation is merchandised asks into chain, so that the interlock account of the opposite client server of the block chain network shifts the voucher Transaction be packed into block and recorded;Or the interlock account to the client server is shifted to the friendship of the voucher It is easily packed into block and is recorded.
10. such as claim 1 to 8 any one of them network service implementation method, which is characterized in that the voucher includes virtual Block one or more in Securities, integral, ideal money, block chain voucher.
11. such as claim 1 to 8 any one of them network service implementation method, which is characterized in that the appointed product is meeting Some or all of in member's equity, virtual card Securities, integral, special services.
12. such as claim 1 to 8 any one of them network service implementation method, which is characterized in that the service includes providing Some or all of in memory space, bandwidth, calculating service.
13. a kind of service node device, including memory, processor and the program being stored in the memory, the journey Sequence is configured to be executed by processor, and the processor is realized when executing described program such as any one of claim 1 to 12 institute The network service implementation method stated.
14. a kind of storage medium, is stored with computer program, which is characterized in that when the computer program is executed by processor Realize the network service implementation method as described in any one of claim 1 to 12.
CN201810450092.1A 2018-05-11 2018-05-11 Network service implementation method, service node device and storage medium Pending CN108737533A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810450092.1A CN108737533A (en) 2018-05-11 2018-05-11 Network service implementation method, service node device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810450092.1A CN108737533A (en) 2018-05-11 2018-05-11 Network service implementation method, service node device and storage medium

Publications (1)

Publication Number Publication Date
CN108737533A true CN108737533A (en) 2018-11-02

Family

ID=63937324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810450092.1A Pending CN108737533A (en) 2018-05-11 2018-05-11 Network service implementation method, service node device and storage medium

Country Status (1)

Country Link
CN (1) CN108737533A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110971692A (en) * 2019-12-02 2020-04-07 广州酷狗计算机科技有限公司 Method and device for opening service and computer storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002281090A (en) * 2001-03-22 2002-09-27 Sanyo Electric Co Ltd Service information mail transmitting/receiving system
KR20030075575A (en) * 2002-03-19 2003-09-26 비씨카드 주식회사 Service voucher and credit card used it
CN101334876A (en) * 2008-07-24 2008-12-31 江苏丹森资讯顾问有限公司 Method for using mobile score for exchanging transaction information circulation
CN106897902A (en) * 2017-02-21 2017-06-27 中链科技有限公司 Service transacting method, system and trading server based on block chain technology
CN107122993A (en) * 2017-04-24 2017-09-01 杭州趣链科技有限公司 A kind of General integral system based on block chain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002281090A (en) * 2001-03-22 2002-09-27 Sanyo Electric Co Ltd Service information mail transmitting/receiving system
KR20030075575A (en) * 2002-03-19 2003-09-26 비씨카드 주식회사 Service voucher and credit card used it
CN101334876A (en) * 2008-07-24 2008-12-31 江苏丹森资讯顾问有限公司 Method for using mobile score for exchanging transaction information circulation
CN106897902A (en) * 2017-02-21 2017-06-27 中链科技有限公司 Service transacting method, system and trading server based on block chain technology
CN107122993A (en) * 2017-04-24 2017-09-01 杭州趣链科技有限公司 A kind of General integral system based on block chain

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110971692A (en) * 2019-12-02 2020-04-07 广州酷狗计算机科技有限公司 Method and device for opening service and computer storage medium
CN110971692B (en) * 2019-12-02 2022-03-29 广州酷狗计算机科技有限公司 Method and device for opening service and computer storage medium

Similar Documents

Publication Publication Date Title
CN113228600B (en) Method and apparatus for stimulating participation in a mist network
EP3526671B1 (en) Blockchain mining using trusted nodes
CN109241778A (en) A kind of public transport data processing method and device based on block chain
CN110599323B (en) Resource processing method and processing equipment
CN111444209B (en) Data processing method, device, equipment and medium based on block chain
CN112235420B (en) Data synchronization method, system and related equipment based on block chain
CN110599178A (en) Data processing method and device based on intelligent contract and storage medium
CN101816138A (en) spectrum sharing
US10325332B2 (en) Incentivizing human travel patterns to reduce traffic congestion
CN108768672A (en) Data processing method, device and storage medium
CN110660466A (en) Personal health data chaining method and system of Internet of things by combining block chains
Wang et al. Smart contract-based caching and data transaction optimization in mobile edge computing
CN108632285A (en) Network service implementation method, service node device and storage medium
CN108696587A (en) Network service implementation method, server and storage medium
CN116595094A (en) Federal learning incentive method, device, equipment and storage medium based on block chain
CN112015577B (en) Intelligent contract calling method and device
CN108737533A (en) Network service implementation method, service node device and storage medium
CN108667841A (en) Network service implementation method, server and storage medium
CN108681889A (en) Network service implementation method, server and storage medium
CN108769148A (en) Network service implementation method, system, server and storage medium
CN110322612A (en) Business data processing method, calculates equipment and storage medium at device
CN111862478A (en) Vehicle operation method and device
CN108632093A (en) Network service implementation method, server and storage medium
CN110909314A (en) Data sharing method, device and equipment based on block chain and readable storage medium
WO2012154099A1 (en) Sensor data distribution system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181102

RJ01 Rejection of invention patent application after publication