Research Article
Node Value and Content Popularity-Based Caching Strategy for Massive VANETs
Algorithm 2
The process to select the appropriate cache locality and cache content. Select cache locality and cache content.
| G: the network topology | | Input, , , | | for node on the delivery path from server to consumer do | | if the content is provided by server | | then send the data packet back directly | | else | | calculate, | | get, | | ⟵ | | end if | | if | | then cache the contents | | else | | forward the data packet to the next hop to the consumer | | end if | | end for |
|