Research Article

Cluster-Based Cooperative Cache Deployment and Coded Delivery Strategy in C-V2X Networks

Algorithm 5

Cluster-based two-level cooperative cache deployment and coded delivery strategy.
Input: Velocity , position , number of files , file size , cache capacity of vehicle , cache capacity of eNodeB , file request probability under eNodeB , bias parameter of Zipf , transmission power , bandwidth and , and cluster size .
Output: Cluster, cache decision, transmitted packet.
// Cache Deployment
Divide all vehicles into clusters and calculate the CH and CM according to Algorithm 1;
Cache the frequently requested file at all CHs and eNodeBs according to Algorithm 2;
// Coded Delivers
for any cache node received several requests within do
  if node has cached the requested file then
   Set users’ requests as ;
   Calculate the subfile set according to (30);
   Calculate the packet transmitted by according to Algorithm 3;
  end
end