Patent ID: 11936934
Assignee: BEIJING XITONG WUZHOU ZHILIAN TECHNOLOGY CO., LTD.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H | IPC G  H

Claim 10:
11. A device, the device comprising:
one or more processors;
a memory, configured to store one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors executing a database writing approach, comprising:
a video source node slicing a video source and relaying fragment of video data to next nodes;
a relay node user receiving relayed fragment of video data from a previous node and writing a video relay session information to a system;
a viewing node establishing a video relay session with the relay node, receiving, reassembling, decoding and playing the fragment of video data, and at the same time regularly recording relay behavior data to the system; and
a relay reward node regularly obtaining unprocessed relay behavior data, calculating a reward value for each relay user, and writing the reward value into a blockchain system, which comprises:
first, defining a reward calculation formula of each relay node as:

rewardi=ri*rewardbase*time*bitrate

wherein, rewardi is a reward base number for providing a unit bandwidth in units of yuan/GB or cent/GB, which is also an obtained reward amount or reward points per GB of provided traffic;
wherein, ri is a reward coefficient of ith relay node;
time is a relay period duration of the current relay record;
bitrate is a bit rate of the current relay video;
second, defining a relay receiving user concentration ratio fu of a certain relay user per unit time as:, f
   u
  
  =
  
   
    s
    n
   
   -
   1
  
 

wherein, s is a total number of relay sessions relayed and distributed by the relay user to the next viewing users per unit time;
n is an independent user quantity of viewing users when the relay user is relaying to the next viewing users per unit time, which is also a total number of all viewing users after deduplication;
assuming that a relay user A has relayed and forwarded videos to a viewing user B three times in a unit time, a relay independent receiving user quantity of A (n) is still counted as 1, and a total number of relay sessions (s) is counted as 3, so the relay receiving user concentration ratio fu of A is 2;
third, defining an average receiving duration of next relay forwarding viewing users corresponding to a previous relay session identifier of a certain relay user as:, t
   ¯
  
  =
  
   
    1
    n
   
   ⁢
   
    
     ∑
      
    
    
     i
     =
     0
    
    n
   
   ⁢
   
    t
    i
   
  
 

wherein, ti is a receiving duration of ith viewing user corresponding to the relay session identifier;
furthermore, defining a receiving video duration concentration ratio ft of the viewing users when a certain relay user relay a certain session for ith time as:, f
   t
  
  =
  
   
    
     t
     max
    
    
     t
     ¯
    
   
   -
   1
  
 

wherein, tmax is a maximum receiving duration of the viewing users corresponding to the current relay session;
t is an average receiving duration of each viewing user corresponding to the relay session;
finally, defining ith relay reward coefficient of a certain relay user as:, r
   i
  
  =
  
   
    1
    
     e
     
      f
      u
      2
     
    
   
   *
   
    1
    
     e
     
      f
      t
      2
     
    
   
  
 

therefore, defining a final reward calculation formula for a certain relay node as:, reward
  =
  
   
    
     ∑
      
    
    
     i
     =
     0
    
    n
   
   ⁢
   
    1
    
     e
     
      f
      u
      2
     
    
   
   *
   
    1
    
     e
     
      f
      t
      2
     
    
   
   *
   
    reward
    base
   
   *
   
    time
    i
   
   *
   bitrate
  
 

wherein, timei is a relay duration of ith relay record of a certain relay node, and n is a total number of forwardings; and
the relay reward node regularly obtaining unprocessed relay behavior data from the relay behavior recording module, calculating a reward value of the relay node according to the above formula, and writing the reward value into the blockchain system so that the system can reward the relay user.