CN107172135A - Method for statisticsing audience rating and system based on block chain - Google Patents
Method for statisticsing audience rating and system based on block chain Download PDFInfo
- Publication number
- CN107172135A CN107172135A CN201710304004.2A CN201710304004A CN107172135A CN 107172135 A CN107172135 A CN 107172135A CN 201710304004 A CN201710304004 A CN 201710304004A CN 107172135 A CN107172135 A CN 107172135A
- Authority
- CN
- China
- Prior art keywords
- block
- record
- node
- message
- block chain
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4333—Processing operations in response to a pause request
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44213—Monitoring of end-user related data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/462—Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
- H04N21/4622—Retrieving content or additional data from different sources, e.g. from a broadcast channel and the Internet
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8547—Content authoring involving timestamps for synchronizing content
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Social Psychology (AREA)
- Computer Security & Cryptography (AREA)
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
Abstract
The present invention relates to the method for statisticsing audience rating based on block chain and system.The method for statisticsing audience rating based on block chain of the present invention, including:Acquisition node obtains the metadata that playback equipment is currently played, and generates message accounting according to metadata and is sent to record node;The temporary message accounting received of record node, and the message accounting that synchronous multiple record nodes are received;A record node is selected in all record nodes and obtains block book keeping operation power;The record node of block book keeping operation power is obtained by all message accountings being temporarily stored in record node packing one new block of generation, and is stored into block chain;Statistics client obtains block from block chain, the message accounting statistics audience ratings in block.The method for statisticsing audience rating based on block chain and system of the present invention, audience ratings is counted based on the realization that the advantage of block chain just can be cheap in the way of gathering the viewing-data of the different rating channels of the whole network, obtains true accurate viewing-data.
Description
Technical field
The present invention relates to audience rating statistical technical field, and in particular to method for statisticsing audience rating based on block chain and is
System.
Background technology
At present, for different types of rating channel, there are different audience ratings acquisition methods, can simply be divided into digital electricity
Depending on, the OTT of Virtual network operator, video website data.
It is that sampling is chosen in small-scale sample by certain company to be counted by taking DTV as an example there is provided audience rating data
User, the interpolation data acquisition module on the rating set top box of these users, and be sent to by wireless and receive base station
Post analysis.
Audience ratings is contaminated to be even manipulated into certain underlying rule, and summary is got up, and following means can reach audience ratings
The purpose of fraud:Bribe and bribe sample family, or, directly altered data.
Summary is got up, and current method for statisticsing audience rating has the disadvantage that:
1st, data are only by the statistics network of single centralization enterprise managing, and data are highly prone to man's activity and distorted;
2nd, relative to hundred million grades viewers of sample size are too small, extremely easily cause sample contamination;
3rd, statistics result lacks mechanism of control of supervising mutually, and statistics mode is opaque;
4th, rating channel disperses, and is controlled by different service providers, it is difficult to which conclusion, which collects, draws precise information.
The content of the invention
For defect of the prior art, method for statisticsing audience rating based on block chain and system that the present invention is provided, base
Realization that just can be cheap in the advantage of block chain counts receipts in the way of to gather the viewing-data of the different rating channel of the whole network
Depending on rate, true accurate viewing-data is obtained.
In a first aspect, a kind of method for statisticsing audience rating based on block chain that the present invention is provided, including:
Acquisition node obtains the metadata that playback equipment is currently played, and generates message accounting according to metadata and sends
Give record node;
The temporary message accounting received of record node, and the message note that synchronous multiple record nodes are received
Record;
A record node, which is selected, in all record nodes obtains block book keeping operation power;
All message accountings being temporarily stored in record node packing is generated one by the record node for obtaining block book keeping operation power
Individual new block, and store into block chain;
Statistics client obtains block from the block chain, the message accounting statistics audience ratings in the block.
The method for statisticsing audience rating based on block chain that the present invention is provided, the reality that the advantage based on block chain just can be cheap
Audience ratings now is counted in the way of gathering the viewing-data of the different rating channels of the whole network, true accurate viewing-data is obtained.Gram
Traditional audience rating investigating is taken, channel is scattered, sample size is minimum, Sample Storehouse is easily contaminated, result is easily distorted by statistics center
Shortcoming, the method for the present embodiment can be simultaneously in any one block chained record querying node to identical believable audience ratings number
According to fully transparent disclosure forms the situation for management and control of supervising mutually.
Preferably, the acquisition node obtains the metadata that playback equipment is currently played, and is generated and reported according to metadata
Literary recording and sending gives record node, including:The acquisition node obtains the metadata that playback equipment is currently played, according to
Metadata generates message accounting, and gives the message accounting to be sent to record node after adding timestamp.
Preferably, it is described it is all it is described record nodes in select one record node obtain block book keeping operation power, including:If
When the message accounting kept in some record node reaches default amount of storage, then the record node obtains block book keeping operation power.
Preferably, the temporary message accounting received of record node, and synchronously multiple record nodes are received
The message accounting, including:
The temporary message accounting received of record node,
Message cryptographic Hash is generated according to the message accounting,
Message cryptographic Hash between synchronous multiple record nodes.
Preferably, all message accountings that the record node for obtaining block book keeping operation power will be temporarily stored in the record node
Packing one new block of generation, and store into block chain, including:This will be temporarily stored in by obtaining the record node of block book keeping operation power
The corresponding message cryptographic Hash of all message accountings in record node is packed according to the form of Merkle trees, generates one newly
Block, and store into block chain.
Preferably, all message accountings that the record node for obtaining block book keeping operation power will be temporarily stored in the record node
Corresponding message cryptographic Hash is packed according to the form of Merkle trees, generates a new block, and is stored into block chain,
Including:
The record node for obtaining block book keeping operation power is corresponding by all message accountings being temporarily stored in the record node
Message cryptographic Hash and obtains Merkle roots according to the structural generation block body of Merkle trees;
Block head is generated, the block head includes:Previous block, current time stamp, random number, target cryptographic Hash and
Merkle roots;
The block body and the block head constitute new block, and store into block chain.
Preferably, the statistics client obtains block from the block chain, according to the message accounting in the block
Audience ratings is counted, including:
The statistics client obtains the block in certain period of time from the block chain,
The message cryptographic Hash in the block is decrypted, message accounting is obtained,
The message accounting of each playback equipment is ranked up according to timestamp,
The number of users of viewing certain program and the user using playback equipment in timing statisticses section are obtained according to timestamp
Total quantity, obtains the audience ratings of the program.
Preferably, also include after the message accounting that the record node is received:Add in the message accounting
Enter the ownship information of the record node, the ownship information includes:Record IP address, the node name of node.
Preferably, the message accounting generated according to metadata includes:It is device flag, device type, program ID, current
Channel, a upper channel, playing duration.
Second aspect, a kind of audience rating statistics system based on block chain that the present invention is provided, including:Acquisition node, note
Record node and statistics client;
The acquisition node is connected with the record node, and connection forms block chain two-by-two between multiple record nodes,
The statistics client is connected with the record node;
The acquisition node is used to obtain the metadata that playback equipment is currently played, and message note is generated according to metadata
Record and be sent to record node;
The record node is used for the temporary message accounting received, and the institute that synchronous multiple record nodes are received
State message accounting;
The block chain is used to select a record node acquisition block book keeping operation power in all record nodes;Obtain
All message accountings being temporarily stored in record node packing is generated a new block by the record node of block book keeping operation power, and
Store in the block chain;
The statistics client is used to obtain block from the block chain, the message accounting statistics in the block
Audience ratings.
The audience rating statistics system based on block chain that the present invention is provided, collecting efficiency is high, can 24 hours not intermittently
Carry out data acquisition and statistics;It can support to store the Massive Sample that different broadcasting channels are gathered, improve audience rating statistical
Accuracy;The characteristics of based on block chain decentralization, once generation rating record, it is impossible to distort, it is ensured that audience ratings it is true
Property and reliability;Due in block chain all data all can real-time synchronization, be consistent the source data that statistics is used;System
It is with low cost, it can use and software program realization is implanted into existing equipment and system, collection terminal is hard without additionally increasing
Part;Collected end anonymous can send message accounting.
Brief description of the drawings
The structural topology figure for the audience rating statistics system based on block chain that Fig. 1 is provided by the embodiment of the present invention;
The flow chart for the rating methods based on block chain that Fig. 2 is provided by the embodiment of the present invention;
Fig. 3 is the structural representation of Merkle trees.
Embodiment
The embodiment of technical solution of the present invention is described in detail below in conjunction with accompanying drawing.Following examples are only used for
Clearly illustrate technical scheme, therefore be intended only as example, and the protection of the present invention can not be limited with this
Scope.
It should be noted that unless otherwise indicated, technical term or scientific terminology used in this application should be this hair
The ordinary meaning that bright one of ordinary skill in the art are understood.
As shown in figure 1, a kind of audience rating statistics system based on block chain is present embodiments provided, including:Acquisition node,
Record node and statistics client.
Acquisition node be connected with record node, and connection forms block chain two-by-two between multiple record nodes, statistics client and
Record node connection.
Acquisition node is used to obtain the metadata that playback equipment is currently played, and message accounting is generated simultaneously according to metadata
It is sent to record node.
Wherein, acquisition node can be the DTV STB of embedded message capture program, and numeral electricity is opened in user
During depending on set top box, message capture program is brought into operation, and obtains the metadata being currently played, and message note is generated according to metadata
Record and be sent to record node.Wherein, message capture program can select optimal acquisition node to send message according to network condition
Record.Acquisition node can circulate uninterrupted sampling at regular intervals and concurrently send message accounting.
Record node is used for the temporary message accounting received, and the message accounting that synchronous multiple record nodes are received.
Block chain is used to select a record node acquisition block book keeping operation power in all record nodes;Obtain block book keeping operation
The record node of power stores all message accountings being temporarily stored in record node packing one new block of generation to area
In block chain.
Wherein, record node one server of correspondence, multiple servers are connected with each other the shape of composition server cluster
Into block chain, data can be transmitted mutually between each server in block chain so that the data in each record node
Can be smoothly synchronous, the transmission that record internodal data can be improved the characteristics of distributed network reciprocity by block chain is imitated
Rate.Different channel has audience ratings competitive relation, to prevent rival from faking, and the form of block chain causes different media channels
The server cluster can be safeguarded jointly, be ready that the media channel for adding cluster can be supervised mutually, prevented data fabrication.
The storage mode of server uses redundant array of inexpensive disk, and storage architecture is Hadoop HDFS, improves server
Amount of storage and performance, can store the sample of magnanimity.Pass through ICP/IP protocol synchronous exchange data between server cluster.
Statistics client is used to obtain block from block chain, the message accounting statistics audience ratings in block.
Wherein, statistics client can be the PC or mobile terminal for being mounted with statistics program.Pass through operating statistic client
Any one server in the statistics program at end, connection server cluster obtains block data, counts audience ratings.
Block chain technology have two it is extremely important the characteristics of:First, the data recorded on each block are Shang Yige areas
After block formation, the block be created before generation all exchange of value activities, this feature ensure that the integrality of database.
Second, in most cases, once the last of block chain is added into after the completion of new block, then the data record of this block
Just again it can not change or delete.This feature ensure that the preciseness of database, i.e., can not be tampered.Block chain technique construction
The system that a set of immortality is not gone out, collapses, data base set so long as not all participation nodes in network in same time collective
System can just be operated down always.
The audience rating statistics system based on block chain that the present embodiment is provided, collecting efficiency is high, can 24 hours not intermittently
Carry out data acquisition and statistics;It can support to store the Massive Sample that different broadcasting channels are gathered, improve audience rating statistical
Accuracy;The characteristics of based on block chain decentralization, once generation rating record, it is impossible to distort, it is ensured that audience ratings it is true
Reality and reliability;Due in block chain all data all can real-time synchronization, be consistent the source data that statistics is used;System
It is with low cost, can use and be implanted into software program in existing equipment and system and realize, collection terminal is without additionally increasing
Hardware;Collected end anonymous can send message accounting.
As shown in Fig. 2 based on the above-mentioned audience rating statistics system based on block chain, the present embodiment additionally provides one kind and is based on
The method for statisticsing audience rating of block chain, including:
Step S1, acquisition node obtains the metadata that playback equipment is currently played, and message note is generated according to metadata
Record and be sent to record node.
Wherein, playback equipment refers to the similar equipment such as top box of digital machine.Metadata includes:Device flag, device type
When (e.g., DTV, IPTV, OTT, application name, satellite), program ID, current play channel, a upper broadcasting channel, broadcasting
It is long etc..Acquisition node can circulate uninterrupted sampling at regular intervals and concurrently send message accounting.
Wherein, the message accounting generated according to metadata includes:Device flag, device type, program ID, current channel,
A upper channel, playing duration.
Wherein, signing messages is also included in message accounting.
Step S2, the temporary message accounting received of record node, and the message note that synchronous multiple record nodes are received
Record.
Wherein, the message accounting that synchronous multiple record nodes are received refers to record node and message accounting is sent into block chain
Middle other record node, makes in block chain each record node be stored with identical message accounting.
Step S3, a record node is selected in all record nodes and obtains block book keeping operation power.
Wherein, the record node for only obtaining block book keeping operation power just has the right to generate block.
Step S4, the record node for obtaining block book keeping operation power packs all message accountings being temporarily stored in the record node
A new block is generated, and is stored into block chain.
Wherein, block is synchronized to record nodes all in block chain by block storage into block chain so that system
Meter client can get complete block by any one record node and record.In all record nodes, it is bundled to
Temporary message accounting in block can be deleted.
Step S5, statistics client obtains block from block chain, the message accounting statistics audience ratings in block.
Block chain network is a kind of distributed storage network of decentralization peer-to-peer network, with point-to-point transmission, common recognition
Mechanism is with the characteristics of preventing from distorting, and the method for statisticsing audience rating based on block chain that the present embodiment is provided is based on these above-mentioned spies
Point, it is possible to which cheap realization counts audience ratings in the way of gathering the viewing-data of the different rating channels of the whole network, obtains true
Real accurate viewing-data.Traditional audience rating investigating is overcome, channel is scattered, sample size is minimum, Sample Storehouse is easily contaminated, result is easy
The shortcoming distorted by statistics center, the method for the present embodiment can be simultaneously in any one block chained record querying node to identical
Believable audience rating data, fully transparent disclosure forms the situation for management and control of supervising mutually.
Wherein, step S1 method for optimizing includes:Acquisition node obtains the metadata that playback equipment is currently played, root
According to metadata generate message accounting, and to message accounting addition timestamp after be sent to record node.Wherein, timestamp correspondence is reported
The acquisition time of text record.By adding timestamp in every message accounting so that can in follow-up data processing procedure
Tandem analysis, the statistics more enriched are carried out to substantial amounts of message accounting according to timestamp information.
Wherein, step S3 preferred embodiment includes:If the message accounting kept in some record node reaches default
Amount of storage when, then the record node obtain block book keeping operation power.The interval for being sized to determine each block generation of block
Duration, and the record strip number that a block is included, can be set according to specific network implementation, such as the storage of each block
Amount is 1MB, if every is recorded as 1KB, then 1024 records can be included in theory.When the message kept in record node
When record quantity reaches 1MB, then the record node obtains block book keeping operation power.
Wherein, step S2 preferred embodiment mode includes:The temporary message accounting received of record node, according to message
Message cryptographic Hash between record generation message cryptographic Hash, synchronous multiple record nodes.In step later step S2, with message
Cryptographic Hash substitutes corresponding message accounting and is stored, transmitted.Every message accounting can all generate unique message cryptographic Hash with
Correspondence.Memory data output can be saved using message cryptographic Hash, it is even more important that because the somewhat change of input data is just
The changed beyond recognition of Hash operation result can be caused, and be characterized in difficulty according to the anti-original input data that pushes away of cryptographic Hash, because
This, substitutes message accounting using message cryptographic Hash, can prevent random altered data, make statistics more credible.
Preferred embodiment mode based on above-mentioned steps S2, step S4 specific implementation includes:Obtain block book keeping operation
The record node of power is by the corresponding message cryptographic Hash of all message accountings being temporarily stored in the record node according to Merkle trees
Form is packed, and generates a new block, and store into block chain.Specifically include:
Step S41, obtains all message accountings pair that the record node of block book keeping operation power will be temporarily stored in the record node
The message cryptographic Hash answered and obtains Merkle roots according to the structural generation block body of Merkle trees.
By taking such as Fig. 3 as an example, the bottoms of Merkle trees is every in the corresponding message cryptographic Hash of all message accountings, the bottom
Two adjacent message cryptographic Hash are merged into a character string, and then the cryptographic Hash of this character string of computing, that is, obtained one
Sub- Hash, all sub- Hash constitute the last layer of Merkle trees.If the Hash sum of the bottom is odd number, that, which is arrived, finally must
So there is a unmarried Hash, such case to it with regard to directly carrying out Hash operation, so can also obtain its sub- Hash.By upper
State step up to push away, the less new one-level Hash of number can be obtained, a projecting tree is finally necessarily formed, obtain top
A Hash, as Merkle roots.
Step S42, generates block head, and block head includes:Previous block, current time stamp, random number, target cryptographic Hash with
And Merkle roots.
Wherein, at the time of current time stamp is generation block.
Step S43, block body and block head constitute new block, and store into block chain.
To message accounting can quickly conclude and verify the existence of block data and complete according to Merkle roots
Property.Because once any message accounting in block changes, Merkle roots will be changed beyond recognition.
Wherein, step S5 embodiment includes:Statistics client is obtained in certain period of time from block chain
Message cryptographic Hash in block, decryption block, obtains message accounting, the message accounting of each playback equipment is entered according to timestamp
Row sequence, obtains according to timestamp and the number of users of certain program is watched in timing statisticses section and total using the user of playback equipment
Quantity, obtains the audience ratings of the program.
Assuming that have 3 blocks on current block chain, respectively 10001,10002,10003, include in each block
10000 records, one has 30000 message accountings, and the record data of record covering 30 minutes, these records are used from different
Family.The statistical software on PC is now opened, software can connect any one server in cluster to obtain data.Work as statistician
When wanting to inquire about the above data of C satellite TVs P TV plays in 30 minutes, it is possible to by embedded data aggregate statistical method in software
Filter out the quantity that this program user equipment is watched in 30000 records.Counted in can also being recorded at 30000 many
Few user equipment have sent message accounting in this period.Number of users as statistics obtains watching the P TV plays of C satellite TVs is 200
People, the total number of persons for participating in viewing program is 1000 people, then the ratio that can be obtained by viewing P TV plays is exactly 200/1000=
0.2。
Because this method embodiment is what the memory mechanism based on distributed system was implemented, this can cause some record nodes
The record of generation, which differs surely to be synchronized to immediately, possesses the record node that block book keeping operation is weighed, and these records may keep accounts to next
In individual block store, then pass through the timestamp in message accounting, it is possible to statistics when to same program, same channel or
The message accounting of same equipment carries out time series, draws complete readable effects.For example:
Record 101 in block 10001 have recorded 16:21:30 seconds A equipment is watching certain channel c1 program p1;
Record 188 in block 10002 have recorded 16:22:24 seconds A equipment is watching channel c2 program p2;
Form is as follows after changing in temporal sequence:
Tandem analysis is carried out using to user's last time viewing program and viewing duration, some user can also be got
The channel path and each channel viewing duration of TV are watched, following path is such as obtained:
Based on any of the above-described embodiment of the method, also include after the message accounting that record node is received:In message accounting
The middle ownship information for adding record node, ownship information includes:Record IP address, the node name of node.Add in nodes records
Enter ownship information, can be to inquiring every source recorded.
Based on any of the above-described embodiment, all data can be carried out asymmetrical key and added in transmitting procedure
It is close, prevent from being stolen and changing in data transmission procedure.In the case where level of security is higher, proprietary protocol can be used to carry out
Data transfer.
The method for statisticsing audience rating based on block chain that the present embodiment is provided, collecting efficiency is high, can 24 hours not intermittently
Carry out data acquisition and statistics;It can support to store the Massive Sample that different broadcasting channels are gathered, improve audience rating statistical
Accuracy;The characteristics of based on block chain decentralization, once generation rating record, it is impossible to distort, it is ensured that audience ratings it is true
Reality and reliability;Due in block chain all data all can real-time synchronization, be consistent the source data that statistics is used;System
It is with low cost, can use and be implanted into software program in existing equipment and system and realize, collection terminal is without additionally increasing
Hardware;Collected end anonymous can send message accounting.
Because the data volume of system acquisition is very huge, the data volume of server cluster transmission per second is very big, and data traffic is dashed forward
Hair is easily caused network congestion, network service quality reduction, or even packet loss phenomenon occurs, causes data syn-chronization not enter smoothly
OK, system worked well is influenceed.Therefore, system also needs to accurately measure the packet drop between server, is prevented together with this
The loss of data during step, improves the integrality of statistics, improves the accuracy of statistical result, and specific method includes:
Step S101, each detection cycle sends detection bag;
Step S102, if receiving, detection bag is corresponding to reply, calculation delay, if not receiving detection bag corresponding time
It is multiple, it is determined that to be packet loss;
Step S103, Burst loss is determined whether according to time delay, if Burst loss then adjusts detection cycle, continues to send out
Detection is sent to wrap.
In network, packet loss causes mainly due to the burst increase of network traffics.For network performance, burst flow is led
Cause network short time congestion occur so that network delay increase, and packet loss occur.Therefore, Burst loss is not isolated appearance
, but be usually associated with larger time delay or short time continuous packet loss and occur.In fact, time delay and packet loss, packet loss
There is certain correlation between packet loss.Therefore, the appearance of Burst loss can be judged using this correlation in the measurements.
Therefore, in step S103, the specific method for determining whether Burst loss according to time delay includes:If measurement process is total to
N detection is carried out, that is, have sent n detection bag, result of detection is expressed as sequence { d1, d2..., dnFor ith detect, if
Non- packet loss diFor the time delay value detected;If packet loss, it is 0 to put di.With the progress of measurement, if the result d of kth time detectionkFor 0
Or larger time delay value, according to above-mentioned correlative character, it is believed that be now in the Burst loss period.Due to singly using dk's
Value caused by inconvenient judgment Burst loss, definable queuing delay ratio indicator qrSuch as following formula:
Wherein, dminFor the time delay minimum value being currently detected, it is generally recognized that dminAny queuing delay is not included;dthTo work as
The minimum value of preceding all previous time delay values of packet loss event detected.Above-mentioned formula can be considered the relative appearance of current queuing delay
The ratio of the minimum queuing delay of packet loss event.dkWhen being not 0, if qrLess than 1, show that current queuing delay occurs before being less than
The minimum queuing delay of packet loss event, the non-congestion of network;If qrMore than 1, then show that current queuing delay is lost before being more than
The minimum queuing delay of bag event, network is likely to occur Burst loss.If dkFor 0, then currently there is Burst loss, lower a moment
Also Burst loss is likely to occur, therefore supplements qrDefinition is equal to 1.
Because the adjustment of detection cycle is to keeping less measurement error and measurement to be loaded with decisive role, adjustable strategies
The change of network state should be able to be rapidly adapted to.Therefore, during detection cycle adjustment by the way of halving or doubling.Step S103
In, the tool method of adjustment detection cycle is:If current detection cycle is TkIf judgement is currently at Burst loss state, to fill
Divide sampling packet loss event, then detection cycle adjustment Tk+1=Tk/2;If judgement is not presently within Burst loss state, detection week
Phase is adjusted to Tk+1=2Tk, to reduce measurement load.
To ensure the stability of whole system, acquisition node can optimal record node clothes of network condition in system thereto
Business device sends message accounting.In order to obtain the node server that network condition is optimal, each acquisition node is provided with load balancing
Software, runs load balancing software, acquisition node is according to the network communication situation and each note between each record node
The load information of record node determines the message accounting which record node be sent to.Load balancing is by the load in each record node
Balanced software is realized, it is ensured that the structure of system decentralization, improves the anti-attack ability of system.Wherein, load balancing is soft
The load balancing that part is used includes poll, random, Best-case Response Time, minimum number of concurrent, uniformity hash algorithm etc., respectively
Specific method will not be repeated here.
Wherein, when increasing a new record node in system, system meeting repeated broadcast notifies all acquisition nodes;
Acquisition node adds newly-increased record node in record node listing after the notice of newly-increased record node is received, using interior
The load balancing software put carries out load balancing, and the suitable record node of selection carries out data upload.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent
The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to
The technical scheme described in foregoing embodiments can so be modified, or which part or all technical characteristic are entered
Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology
The scope of scheme, it all should cover among the claim of the present invention and the scope of specification.
Claims (10)
1. a kind of method for statisticsing audience rating based on block chain, it is characterised in that including:
Acquisition node obtains the metadata that playback equipment is currently played, and generates message accounting according to metadata and is sent to note
Record node;
The temporary message accounting received of record node, and the message accounting that synchronous multiple record nodes are received;
A record node, which is selected, in all record nodes obtains block book keeping operation power;
The record node for obtaining block book keeping operation power is new by all message accountings being temporarily stored in record node packing generation one
Block, and store into block chain;
Statistics client obtains block from the block chain, the message accounting statistics audience ratings in the block.
2. according to the method described in claim 1, it is characterised in that the acquisition node obtains playback equipment and is currently played
Metadata, generated according to metadata and message accounting and be sent to record node, including:
The acquisition node obtains the metadata that playback equipment is currently played, and generates message accounting according to metadata, and give
Record node is sent to after the message accounting addition timestamp.
3. method according to claim 2, it is characterised in that described to select a record in all record nodes
Node obtains block book keeping operation power, including:
If the message accounting kept in some record node reaches default amount of storage, the record node obtains block book keeping operation
Power.
4. according to the method in claim 2 or 3, it is characterised in that the temporary message received of record node
Record, and the message accounting that synchronous multiple record nodes are received, including:
The temporary message accounting received of record node,
Message cryptographic Hash is generated according to the message accounting,
Message cryptographic Hash between synchronous multiple record nodes.
5. method according to claim 4, it is characterised in that the record node of the acquisition block book keeping operation power will be temporarily stored in
All message accountings packing one new block of generation in the record node, and store into block chain, including:
The record node of block book keeping operation power is obtained by the corresponding message Hash of all message accountings being temporarily stored in the record node
Value is packed according to the form of Merkle trees, generates a new block, and store into block chain.
6. method according to claim 5, it is characterised in that the record node of the acquisition block book keeping operation power will be temporarily stored in
The corresponding message cryptographic Hash of all message accountings in the record node is packed according to the form of Merkle trees, generates one
New block, and store into block chain, including:
The record node for obtaining block book keeping operation power is by the corresponding message of all message accountings being temporarily stored in the record node
Cryptographic Hash and obtains Merkle roots according to the structural generation block body of Merkle trees;
Block head is generated, the block head includes:Previous block, current time stamp, random number, target cryptographic Hash and Merkle
Root;
The block body and the block head constitute new block, and store into block chain.
7. method according to claim 5, it is characterised in that the statistics client obtains area from the block chain
Block, the message accounting statistics audience ratings in the block, including:
The statistics client obtains the block in certain period of time from the block chain,
The message cryptographic Hash in the block is decrypted, message accounting is obtained,
The message accounting of each playback equipment is ranked up according to timestamp,
The number of users and the total number of users using playback equipment of viewing certain program in timing statisticses section are obtained according to timestamp
Amount, obtains the audience ratings of the program.
8. according to the method described in claim 1, it is characterised in that after the message accounting that the record node is received
Also include:
The ownship information of the record node is added in the message accounting, the ownship information includes:Record the IP of node
Address, node name.
9. according to the method described in claim 1, it is characterised in that the message accounting generated according to metadata includes:If
Standby mark, device type, program ID, current channel, a upper channel, playing duration.
10. a kind of audience rating statistics system based on block chain, it is characterised in that including:Acquisition node, record node and statistics
Client;
The acquisition node is connected with the record node, and connection forms block chain two-by-two between multiple record nodes, described
Statistics client is connected with the record node;
The acquisition node is used to obtain the metadata that playback equipment is currently played, and message accounting is generated simultaneously according to metadata
It is sent to record node;
The record node is used for the temporary message accounting received, and the report that synchronous multiple record nodes are received
Text record;
The block chain is used to select a record node acquisition block book keeping operation power in all record nodes;Obtain block
The record node for power of keeping accounts stores all message accountings being temporarily stored in record node packing one new block of generation
Into the block chain;
The statistics client is used to obtain block from the block chain, the message accounting statistics rating in the block
Rate.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710304004.2A CN107172135A (en) | 2017-05-03 | 2017-05-03 | Method for statisticsing audience rating and system based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710304004.2A CN107172135A (en) | 2017-05-03 | 2017-05-03 | Method for statisticsing audience rating and system based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107172135A true CN107172135A (en) | 2017-09-15 |
Family
ID=59813492
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710304004.2A Pending CN107172135A (en) | 2017-05-03 | 2017-05-03 | Method for statisticsing audience rating and system based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107172135A (en) |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108322528A (en) * | 2018-01-26 | 2018-07-24 | 东莞理工学院 | Ad click recording method based on block chain and system |
CN108471436A (en) * | 2018-02-07 | 2018-08-31 | 深圳市亿联智能有限公司 | It can effectively reduce cost and put forward the efficient IPTV system based on block chain |
CN108512939A (en) * | 2018-04-17 | 2018-09-07 | 深圳市元征科技股份有限公司 | A kind of block chain common recognition method, apparatus and relevant device |
CN108521582A (en) * | 2018-05-02 | 2018-09-11 | 中广热点云科技有限公司 | A kind of copyright video the whole network rating recording system based on block chain technology |
CN108600839A (en) * | 2018-05-02 | 2018-09-28 | 中广热点云科技有限公司 | A kind of copyright video the whole network rating record system for mechanism of being known together based on CBC-PBFT |
CN108769750A (en) * | 2018-05-02 | 2018-11-06 | 中广热点云科技有限公司 | A kind of digital content banking system based on block chain technology |
CN108769751A (en) * | 2018-05-02 | 2018-11-06 | 中广热点云科技有限公司 | A kind of network video based on intelligent contract listens Management Support System |
CN108768792A (en) * | 2018-07-06 | 2018-11-06 | 网宿科技股份有限公司 | Network detecting systems |
CN108769752A (en) * | 2018-05-02 | 2018-11-06 | 中广热点云科技有限公司 | A kind of network video based on block chain technology listens Management Support System |
CN108833133A (en) * | 2018-04-27 | 2018-11-16 | 广州西麦科技股份有限公司 | Network configuration management method, apparatus and storage medium based on system for cloud computing |
CN109068149A (en) * | 2018-09-14 | 2018-12-21 | 深圳Tcl新技术有限公司 | Program commending method, terminal and computer readable storage medium |
CN109525865A (en) * | 2018-12-03 | 2019-03-26 | 杭州遥指科技有限公司 | Audience ratings monitoring method and computer readable storage medium based on block chain |
WO2019061599A1 (en) * | 2017-09-26 | 2019-04-04 | 武汉斗鱼网络科技有限公司 | Authentication method and server |
CN109840769A (en) * | 2019-01-21 | 2019-06-04 | 中国联合网络通信集团有限公司 | Card method and device, system and storage medium are deposited based on block chain |
WO2019232890A1 (en) * | 2018-06-04 | 2019-12-12 | 网宿科技股份有限公司 | Data traffic statistics method and device based on block chain |
CN110705973A (en) * | 2018-07-10 | 2020-01-17 | 深圳市红砖坊技术有限公司 | Consensus method applied to miner nodes in block chain system and block chain system |
CN112311491A (en) * | 2020-03-23 | 2021-02-02 | 尼尔森网联媒介数据服务有限公司 | Multimedia data acquisition method and device, storage medium and electronic equipment |
CN113473173A (en) * | 2020-03-31 | 2021-10-01 | 福建凯米网络科技有限公司 | Block chain based audio-visual place order-on-demand counting method and storage medium |
CN113468608A (en) * | 2020-03-31 | 2021-10-01 | 福建凯米网络科技有限公司 | Multimedia resource on-demand counting method based on block chain and storage medium |
CN114900305A (en) * | 2022-02-23 | 2022-08-12 | 杭州脸脸会网络技术有限公司 | Block chain-based data processing method and device, electronic device and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102377789A (en) * | 2010-08-05 | 2012-03-14 | 中兴通讯股份有限公司 | Method and system for implementing IPTV (Internet protocol television) audience investigation |
CN106452785A (en) * | 2016-09-29 | 2017-02-22 | 财付通支付科技有限公司 | Block chain network, branch node and block chain network application method |
-
2017
- 2017-05-03 CN CN201710304004.2A patent/CN107172135A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102377789A (en) * | 2010-08-05 | 2012-03-14 | 中兴通讯股份有限公司 | Method and system for implementing IPTV (Internet protocol television) audience investigation |
CN106452785A (en) * | 2016-09-29 | 2017-02-22 | 财付通支付科技有限公司 | Block chain network, branch node and block chain network application method |
Cited By (28)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019061599A1 (en) * | 2017-09-26 | 2019-04-04 | 武汉斗鱼网络科技有限公司 | Authentication method and server |
CN108322528A (en) * | 2018-01-26 | 2018-07-24 | 东莞理工学院 | Ad click recording method based on block chain and system |
CN108322528B (en) * | 2018-01-26 | 2020-01-10 | 东莞理工学院 | Advertisement click recording method and system based on block chain |
CN108471436A (en) * | 2018-02-07 | 2018-08-31 | 深圳市亿联智能有限公司 | It can effectively reduce cost and put forward the efficient IPTV system based on block chain |
CN108512939A (en) * | 2018-04-17 | 2018-09-07 | 深圳市元征科技股份有限公司 | A kind of block chain common recognition method, apparatus and relevant device |
CN108833133B (en) * | 2018-04-27 | 2021-12-28 | 广州西麦科技股份有限公司 | Network configuration management method and device based on cloud computing network and storage medium |
CN108833133A (en) * | 2018-04-27 | 2018-11-16 | 广州西麦科技股份有限公司 | Network configuration management method, apparatus and storage medium based on system for cloud computing |
CN108600839A (en) * | 2018-05-02 | 2018-09-28 | 中广热点云科技有限公司 | A kind of copyright video the whole network rating record system for mechanism of being known together based on CBC-PBFT |
CN108769752A (en) * | 2018-05-02 | 2018-11-06 | 中广热点云科技有限公司 | A kind of network video based on block chain technology listens Management Support System |
CN108769751A (en) * | 2018-05-02 | 2018-11-06 | 中广热点云科技有限公司 | A kind of network video based on intelligent contract listens Management Support System |
CN108769750A (en) * | 2018-05-02 | 2018-11-06 | 中广热点云科技有限公司 | A kind of digital content banking system based on block chain technology |
CN108769750B (en) * | 2018-05-02 | 2020-11-17 | 中广热点云科技有限公司 | Digital content bank system based on block chain technology |
CN108521582B (en) * | 2018-05-02 | 2020-04-10 | 中广热点云科技有限公司 | Copyright video full-network viewing record system based on block chain technology |
CN108769751B (en) * | 2018-05-02 | 2020-09-08 | 中广热点云科技有限公司 | Network audio-visual management support system based on intelligent contract |
CN108521582A (en) * | 2018-05-02 | 2018-09-11 | 中广热点云科技有限公司 | A kind of copyright video the whole network rating recording system based on block chain technology |
WO2019232890A1 (en) * | 2018-06-04 | 2019-12-12 | 网宿科技股份有限公司 | Data traffic statistics method and device based on block chain |
CN108768792A (en) * | 2018-07-06 | 2018-11-06 | 网宿科技股份有限公司 | Network detecting systems |
CN110705973A (en) * | 2018-07-10 | 2020-01-17 | 深圳市红砖坊技术有限公司 | Consensus method applied to miner nodes in block chain system and block chain system |
CN110705973B (en) * | 2018-07-10 | 2023-05-16 | 深圳市红砖坊技术有限公司 | Common identification method applied to miner nodes in blockchain system and blockchain system |
CN109068149A (en) * | 2018-09-14 | 2018-12-21 | 深圳Tcl新技术有限公司 | Program commending method, terminal and computer readable storage medium |
CN109525865A (en) * | 2018-12-03 | 2019-03-26 | 杭州遥指科技有限公司 | Audience ratings monitoring method and computer readable storage medium based on block chain |
CN109525865B (en) * | 2018-12-03 | 2021-09-10 | 杭州遥指科技有限公司 | Block chain-based audience rating monitoring method and computer-readable storage medium |
CN109840769A (en) * | 2019-01-21 | 2019-06-04 | 中国联合网络通信集团有限公司 | Card method and device, system and storage medium are deposited based on block chain |
CN112311491A (en) * | 2020-03-23 | 2021-02-02 | 尼尔森网联媒介数据服务有限公司 | Multimedia data acquisition method and device, storage medium and electronic equipment |
CN113473173A (en) * | 2020-03-31 | 2021-10-01 | 福建凯米网络科技有限公司 | Block chain based audio-visual place order-on-demand counting method and storage medium |
CN113468608A (en) * | 2020-03-31 | 2021-10-01 | 福建凯米网络科技有限公司 | Multimedia resource on-demand counting method based on block chain and storage medium |
CN114900305A (en) * | 2022-02-23 | 2022-08-12 | 杭州脸脸会网络技术有限公司 | Block chain-based data processing method and device, electronic device and storage medium |
CN114900305B (en) * | 2022-02-23 | 2024-03-19 | 杭州脸脸会网络技术有限公司 | Block chain-based data processing method and device, electronic device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107172135A (en) | Method for statisticsing audience rating and system based on block chain | |
USRE50079E1 (en) | System and method for analyzing human interaction with electronic devices that access a computer system through a network | |
US20190082339A1 (en) | Video quality monitoring | |
CN107277160A (en) | A kind of content delivery network node switching method and device | |
Casas et al. | When YouTube does not work—Analysis of QoE-relevant degradation in Google CDN traffic | |
KR100814546B1 (en) | Apparatus and method for collecting and analyzing communications data | |
Silverston et al. | Traffic analysis of peer-to-peer IPTV communities | |
WO2016054916A1 (en) | Video content recommending and evaluating methods and devices | |
US20100281178A1 (en) | Network Audio Distribution System and Method | |
RU2582857C2 (en) | Method of measuring television audience | |
CN102769782B (en) | Digital television receiving rate retransmission method | |
CN104394436B (en) | The monitoring method and device of the audience ratings of Internet TV live television channel | |
CN102104611A (en) | Promiscuous mode-based DDoS (Distributed Denial of Service) attack detection method and device | |
US9769028B2 (en) | Representing and searching network multicast trees | |
CN103595576A (en) | Interconnection port ICP flow statistical system and method based on content provider identifications | |
CN105763942B (en) | A kind of computational methods of IPTV set top box VMOS values | |
Mu et al. | P2P-based IPTV services: Design, deployment, and QoE measurement | |
Choi et al. | Analyzing and modeling workload characteristics in a multiservice IP network | |
Casas et al. | On the analysis of QoE-based performance degradation in YouTube traffic | |
Fallica et al. | On the quality of experience of sopcast | |
EP2840783B1 (en) | Content management apparatus, content management method, program, and content display method | |
US11057687B2 (en) | Auxiliary information in manifests | |
CN104410873B (en) | The detection method and device of television channel number of users | |
CN102348131B (en) | IPTV system and viewing information statistical method thereof | |
CN106658057A (en) | Flow shunting method and device in rush hours of video watching |
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: 20170915 |
|
RJ01 | Rejection of invention patent application after publication |