#Introduction
This is a prototype implementation of Bingo, a proactive content caching scheme that leverages the presence of interest groups in online social network, with reference to the following paper:
Social Groups Based Content Caching in Wireless Networks. Nimrah Mustafa, Imdad Ullah Khan, Muhammad Asad Khan, and ZartashAfzal Uzmi. ACM International Symposium on Mobility Management and Wireless Access(MobiWac ’21).
Due to lack of real data as explained in the paper, we generate social group structures which are then in turn used to simulate of a stream of request arrivals at the base station by users who may or may not be members of the generated group structures in order to evaluate the performance of the proposed caching engine.
#Group Structure Generation
We opt for the scale-free (SC) graph model in which the node degrees follow a 'long-tailed' power law distribution as it is well-known that the degree distribution of most social networks (Twitter, Facebook, Whatsapp, etc.) follows a power law distribution.
We model the social community structure among the users as a bipartite graph
- With probability
$\lambda$ , an existing user$u_i$ in$U$ is connected to$C_k$ (the edge$(u_i,C_k)$ is added to$E$ .) This$u_i$ is chosen independently from$U$ with probability proportional to$deg(u_i)$ . - With probability
$1-\lambda$ , a new user$u'$ is added to$U$ and the edge$(u',C_k)$ is added to$E$ .
#Request Arrival Simulation
With the community structure in place, the request log is generated as a time series of batches of requests. Each batch of
Naturally larger communities are more likely to be more 'active', as the chances of some content posted to and within such communities are higher. Each batch of requests is first viewed as a randomly ordered sequence of distinct (community, file) pairs
A file
Next, each pair
We model user request behaviour to resemble the real-life dynamics of group-based communication as follows. Each user
We observe that in reality, few users are very active or inactive, and most users are moderately active. Thus,
For realistic interleaving of requests, overlap of two adjacent categories' requests is controlled by the fraction