# Device-to-Device Users Clustering Based on Physical and Social Characteristics

Authors: Li Wang; Giuseppe Araniti; Chunyan Cao; Wei Wang; Yang Liu
Journal: International Journal of Distributed Sensor Networks
 (2015)

---

## Abstract

This paper proposes a novel method for device-to-device (D2D) user clustering that allows wireless users in proximity to share common resources to save both system bandwidth and energy resources. The idea at the basis of our proposed cluster formation is to incorporate both social interactions and physical relationships among D2D terminals. Towards this goal, we propose two clustering approaches. The first one is based on the Chinese restaurant process (CRP), whereas the second one enhances the traditional CRP by defining a “distance-dependent Chinese restaurant process” (namely, DCRP). Numerical simulation results demonstrate superiority of our proposed clustering schemes in terms of system throughput, energy consumption, and energy efficiency over the existing schemes that rely only on physical distance.


---

## Body

## 1. Introduction

Given the explosive growth of online social networking activities, social interactions among mobile users and people’s social behaviors can be significantly impacted by the advent of D2D communications. On the other hand, social interaction profiles of mobile users can also have strong impact on the efficacy and efficiency of D2D clustering communications. The concept of D2D communication is widely used for hot-spot services, whereas D2D user equipments (DUEs) in close proximity usually can formD2D clusters to collaboratively communicate and/or share resources. By letting multiple DUEs collaboratively form user clusters, it becomes possible to better utilize their collective resources, coordinate intracommunications, manage interferences, and improve their social interactions.D2D communications can offer a number of advantages including better spectrum efficiency, higher energy efficiency, shorter latency, and improved social interactive experience. A number of existing works have studied various D2D perspectives, such as selecting a mode between cellular and D2D [1], spectrum resource allocation [2, 3], and interference management [4]. In terms of spectrum efficiency, D2D communications allow cellular user equipments (CUEs) to directly send and receive without having to go through the base stations (BSs) as relays, thereby improving spectrum utility. D2D underlay links [5, 6] can also share other cellular user equipment (CUE) channels through interference management to further improve network spectrum efficiency. With respect to energy efficiency [7], shorter distance D2D communications allow DUEs to expend significantly less transmission power than in cellular mode. Furthermore, D2D communications can substantially reduce latency in local content (file) sharing and social media interaction [8, 9]. D2D communications also facilitate the formation of self-organizing networks in time of disaster or emergency relief [10, 11].In this work, we investigate novel approaches to form D2D clusters. D2D clustering exploits the proximity property of D2D communications. Because of wireless channel diversity, cluster members with good channel conditions can assist DUEs under poor channel conditions to avoid link failure through means such as content (file) sharing or relaying [12, 13]. There already exist a number of works on D2D clustering. For example, D2D clustering can improve multicast performance in cellular networks, as shown in [14, 15], by balancing multichannel diversity and multicast gain, and can improve the effectiveness of D2D cellular links with respect to noncellular short-range technologies [16]. Further, cluster heads (CH) can assist cluster members [17], by letting them retransmit the store information in the event of initial transmission failures. Finally, for supporting traffic safety applications, [18] proposes a cluster with a multihop relay chain of devices in order to maximize the dissemination distance and minimize the dissemination delay.In this work, we take advantage of user behavioral information in terms of DUE social interaction to form more effective DUE clusters. Clearly, more and more people are actively involved in online social interactions with the explosive growth of online social media. Wireless networking can potentially benefit from exploiting such social interactions [19]. The work in [20] exploited such social ties to enhance cooperative D2D communications among devices by leveraging social trust and social reciprocity. The work in [21] presented a social-aware approach for the optimization of D2D communications by exploiting the social ties and influence among individuals. The work in [22] studied joint precoding strategy of D2D and cochannel cellular transmission in clustered D2D underlaying cellular network, whereas [14] introduced intracluster D2D retransmission scheme. Nevertheless, these works focus on D2D clusters formed by exploiting only information on distance among DUEs. Our work advances the state of the art on D2D cluster formation by adopting a novel approach that exploits social interactive information in addition to user proximity.To the best of the authors’ knowledge, there exists no work on specific performance analysis of social-oriented D2D clustering based on CRP. With this aim, we propose new approaches to D2D clustering based on the Chinese restaurant process (CRP). Specifically, we integrate the social interaction of DUEs in the CRP-based clustering methods by considering both the basic CRP and a distance-dependent CRP (namely, DCRP). Both can integrate physical distances and social interaction metrics among DUEs in their clustering process. Through performance analysis, we shall show that CRP- and DCRP-based clustering can take advantage of both the physical and social distances directly to achieve better user experience including file sharing.We discuss socially oriented clustering approaches based on CRP in two scenarios, that is, (i) underlay and (ii) overlay. For D2D underlay, we first extend the work in [9] by proposing an efficient D2D clustering admission policy designed to increase the system rate. By analyzing the interplay between D2D clusters and the arrival rate of DUEs intending to join a D2D cluster, we present two attraction functions describing the mutual suitability by considering (i) social interaction, (ii) energy balance, and (iii) location. Further, we formulate the probability of the arrival user joining a certain D2D cluster based on CRP and utilize a matching function to assign an optimal D2D cluster for each arrival user.For D2D overlay, we propose a novel clustering scheme by incorporating both social and physical relationships among DUEs. We exploit the CRP to characterize the formation of our D2D-based clusters by taking into account both the physical distance and the social relationship among nodes. We present a performance analysis of our proposed scheme in comparison with clustering schemes in literature based on physical distance only.The organization of this paper is as follows. Section2 provides the preliminary concepts, notations, and problem formulations in this work. Section 3 briefly introduces the classic CRP and delineates the application of CRP in D2D clustering. Section 4 presents a distance-based CRP (DCRP) and also provides D2D clustering algorithms based on DCRP. Further, Section 5 elaborates in detail on social interaction oriented D2D clustering. Section 6 analyzes the performance of D2D clusters before the conclusions in Section 7.


## 2. Preliminaries and Problem Description

### 2.1. Preliminary and Scenario Description

D2D communications represent a novel transmission paradigm that enhances the traditional cellular communications by allowing user equipment (UE) to directly send to or receive data from another peer UE without having to route traffic through the basestations (BSs). As shown in Figure1, D2D links can exploit the system resources in underlay (i.e., D2D and cellular links share the overall resources in the cell) or in overlay (i.e., D2D links are given their dedicated resources assigned by the BS) modes. In this paper, we propose novel clustering schemes that are suitable to both underlay and overlay modes.Figure 1
D2D communication in cellular networks.Clustering is the process of forming different DUE groups, where group members effectively collaborate to improve the perceived quality of services such as content (file) sharing, spectrum sharing [23], distributed transmission, and multihop connection. As shown in Figure 1, a D2D cluster should consist of DUEs typically in close proximity with twofold benefits: reduced transmission power for DUE cluster members and reduced interference to users external to the cluster. To take full advantage of user collaboration and file sharing, DUEs in a cluster should share as much common interest as possible. In addition, a number of DUE members in a cluster cannot be too large, since too many DUEs sharing the same bandwidth in a cluster will lead to excessive delays in intraclustering communications. It is worth noting that different D2D clusters can lead to different content and resource sharing performance that are important measures of D2D communications.In addition to physical distance limitation, social interaction is really a critical factor for D2D communication. Thus, we will consider the impact of social interaction on users’ behaviors to form D2D clusters. In fact, for D2D cluster communications, whether a user is willing to share files owned or not with another user in the same cluster depends in part on their social relationship. Since the degree of trust and willingness among different users for content resource sharing is different, how to divide the users into D2D clusters to enhance the performance is very important. Thus, we present an efficient D2D clustering scheme by jointly considering the social interaction and physical distance factors.Assume a number of D2D users with subscription to different types of shared resources in a given area and each D2D user is itself an initial D2D cluster. More users may arrive and join an existing D2D cluster. According to our proposed approach, when a new user arrives, the selection of the relevant cluster will be performed by taking into account information such as user locations, user preference, and also user social interaction (such as the number of users in clusters and the social tie of the user with other existing cluster users). These arriving users have opportunities either to join existing clusters with which they share common interest and are close in distance or to start their own clusters. Such decisions should not be deterministic. In particular, the Chinese restaurant process provides a very natural model for this clustering decision process.


### 2.2. CRP in D2D Clustering with Social Interaction

CRP studied in nonparametric modeling due to its flexibility and extensibility [24, 25] is a stochastic process through generating an exchangeable partition of data points. CRP has been extended to deal with distances and sequential data, such as the distance-dependent CRP (DCRP), which has been introduced in [26] to model random partitions of nonexchangeable data (which is a feature of many applications). In DCRP, each data point is more likely to be clustered with other data that are nearby.Since CRP is an efficient tool to model data partitions, here we adopt the CRP to model the formation of D2D clusters. We will present our multiple objective oriented schemes in CRP-based clustering and analyze D2D clustering performance by evaluating the benefits from content sharing. Without unnecessary repetition, we shall focus on traditional CRP-based clustering scheme in D2D underlay in Section3 and illustrate DCRP-based clustering approach in D2D overlay in Sections 4 and 5, though the proposed general principles of clustering apply to both cases of underlay and overlay.


### 2.3.  Assumptions and Notations

We denote the channel response between nodesm and n by h
m
n, the threshold indicating the maximum number of users in each D2D cluster by N
max
⁡ and the maximum D2D communication distance by d
max
⁡. K is the number of D2D clusters, N
i is the set of users in the ith cluster (with i
=
1
,
…
,
K), and N
i
=
|
N
i
| is the number of users in such a cluster. Finally, let P
B and P
D be the transmit powers of BS and D2D users, respectively.We assume that the channels from BS to users follow a large-scale path loss model [27], and the D2D user channels are independent and identically distributed (i.i.d.) and are in flat fading. We assume channel noise to be additive white Gaussian (AWG) with zero mean and variance σ
2. We also assume that the content sharing between two D2D users requires little (i.e., limited) bandwidth overhead or does not consume bandwidth overhead at all. Without loss of generality, the user locations are uniformly distributed within a cell.


## 2.1. Preliminary and Scenario Description

D2D communications represent a novel transmission paradigm that enhances the traditional cellular communications by allowing user equipment (UE) to directly send to or receive data from another peer UE without having to route traffic through the basestations (BSs). As shown in Figure1, D2D links can exploit the system resources in underlay (i.e., D2D and cellular links share the overall resources in the cell) or in overlay (i.e., D2D links are given their dedicated resources assigned by the BS) modes. In this paper, we propose novel clustering schemes that are suitable to both underlay and overlay modes.Figure 1
D2D communication in cellular networks.Clustering is the process of forming different DUE groups, where group members effectively collaborate to improve the perceived quality of services such as content (file) sharing, spectrum sharing [23], distributed transmission, and multihop connection. As shown in Figure 1, a D2D cluster should consist of DUEs typically in close proximity with twofold benefits: reduced transmission power for DUE cluster members and reduced interference to users external to the cluster. To take full advantage of user collaboration and file sharing, DUEs in a cluster should share as much common interest as possible. In addition, a number of DUE members in a cluster cannot be too large, since too many DUEs sharing the same bandwidth in a cluster will lead to excessive delays in intraclustering communications. It is worth noting that different D2D clusters can lead to different content and resource sharing performance that are important measures of D2D communications.In addition to physical distance limitation, social interaction is really a critical factor for D2D communication. Thus, we will consider the impact of social interaction on users’ behaviors to form D2D clusters. In fact, for D2D cluster communications, whether a user is willing to share files owned or not with another user in the same cluster depends in part on their social relationship. Since the degree of trust and willingness among different users for content resource sharing is different, how to divide the users into D2D clusters to enhance the performance is very important. Thus, we present an efficient D2D clustering scheme by jointly considering the social interaction and physical distance factors.Assume a number of D2D users with subscription to different types of shared resources in a given area and each D2D user is itself an initial D2D cluster. More users may arrive and join an existing D2D cluster. According to our proposed approach, when a new user arrives, the selection of the relevant cluster will be performed by taking into account information such as user locations, user preference, and also user social interaction (such as the number of users in clusters and the social tie of the user with other existing cluster users). These arriving users have opportunities either to join existing clusters with which they share common interest and are close in distance or to start their own clusters. Such decisions should not be deterministic. In particular, the Chinese restaurant process provides a very natural model for this clustering decision process.


## 2.2. CRP in D2D Clustering with Social Interaction

CRP studied in nonparametric modeling due to its flexibility and extensibility [24, 25] is a stochastic process through generating an exchangeable partition of data points. CRP has been extended to deal with distances and sequential data, such as the distance-dependent CRP (DCRP), which has been introduced in [26] to model random partitions of nonexchangeable data (which is a feature of many applications). In DCRP, each data point is more likely to be clustered with other data that are nearby.Since CRP is an efficient tool to model data partitions, here we adopt the CRP to model the formation of D2D clusters. We will present our multiple objective oriented schemes in CRP-based clustering and analyze D2D clustering performance by evaluating the benefits from content sharing. Without unnecessary repetition, we shall focus on traditional CRP-based clustering scheme in D2D underlay in Section3 and illustrate DCRP-based clustering approach in D2D overlay in Sections 4 and 5, though the proposed general principles of clustering apply to both cases of underlay and overlay.


## 2.3.  Assumptions and Notations

We denote the channel response between nodesm and n by h
m
n, the threshold indicating the maximum number of users in each D2D cluster by N
max
⁡ and the maximum D2D communication distance by d
max
⁡. K is the number of D2D clusters, N
i is the set of users in the ith cluster (with i
=
1
,
…
,
K), and N
i
=
|
N
i
| is the number of users in such a cluster. Finally, let P
B and P
D be the transmit powers of BS and D2D users, respectively.We assume that the channels from BS to users follow a large-scale path loss model [27], and the D2D user channels are independent and identically distributed (i.i.d.) and are in flat fading. We assume channel noise to be additive white Gaussian (AWG) with zero mean and variance σ
2. We also assume that the content sharing between two D2D users requires little (i.e., limited) bandwidth overhead or does not consume bandwidth overhead at all. Without loss of generality, the user locations are uniformly distributed within a cell.


## 3. Our Proposed CRP-Based Clustering

In this section, we describe an admission policy for D2D clustering that utilizes the CRP. The proposed admission policy is suitable for both D2D underlay and overlay. However, in order to avoid the overlapped explanation, we will take D2D underlay, for example, to elaborate the clustering policy.


### 3.1. System Model

As shown in Figure1, we consider a single cell environment where the users can work in two modes, which are cellular mode (cellular user) and D2D mode (D2D user). Each user is equipped with a single omnidirectional antenna and any two users in D2D clusters communicate in pairs consisting of one transmitter and one receiver. We focus on the uplink period of the system where K orthogonal channels are occupied by K corresponding cellular users. At the beginning of the network, there are K D2D users owning K types of resources and each of them shares the channel with a certain cellular user. The K D2D users can be considered as K initial D2D clusters, and the set of D2D clusters is denoted by C
=
{
c
1
,
c
2
,
…
,
c
K
}. There will be more users arriving at the network, and they will join an optimal D2D cluster. We assume that any channel occupied by the ith (
i
=
1,2
,
…
,
K
) cellular user can be shared with members of the ith D2D cluster [28]. D2D communication session setup procedures can be found in [29].As depicted in Figure1, when the cellular UEs need to communicate with BS to access required service or data in D2D underlay, the BS suffers interference caused by the D2D transmitters sharing the cell resources. On the other hand, the D2D receivers are exposed to interference from the corresponding cellular user and the other D2D transmitters in the same cluster. Since D2D communications are aimed at improving the overall system capacity, in this paper, we utilize the system sum rate to evaluate the performance of our clustering scheme.


### 3.2.  Description of CRP

Let us consider a Chinese restaurant with an infinite number of tables, and the customers will come in and choose to sit in one of the tables. The first customer sits down at a table. Thenth customer sits at a table (which is previously chosen by some customers) with a probability proportional to the number of customers sitting at that table or the nth customer sits at a new table with a probability proportional to the scalar parameter α. Thus, for the nth customer, the distribution over customer assignments conditioned on z
-
n (other customers’ assignments except for the nth customer) can be described as(1)
P
z
n
=
k
∣
z
-
n
,
α
=
m
k
n
-
1
+
α
,
if
k
≤
k
0
,
α
n
-
1
+
α
,
if
k
=
k
0
+
1
,where k
0 is the number of tables with customers and m
k is the number of customers sitting at the kth table.If we consider the adoption of CRP for D2D cluster formation, the clustering process is totally based on CRP without considering the factors that affect the optimal cluster of a new D2D user. For thenth D2D user, we can define a distribution over cluster assignments conditioned on z
-
n (other users’ cluster assignments except for the nth user):(2)
P
z
n
=
c
i
∣
z
-
n
,
α
=
m
i
n
-
1
+
α
,
c
i
∈
C
n
,
α
n
-
1
+
α
,
c
i
∉
C
n
,where C
n is the current set of D2D clusters with arrival D2D users, m
i is the number of users in cluster c
i, and c
i
∉
C
-
n means that the nth user starts a new cluster.To make the clustering results more practical, we will take several factors into account, including users’ behavior, social interaction, social relationship, and their preference as well. Indeed, one related literature [30] proposed a dynamic multirelational CRP to study the interplay of world-wide, geographic, network, and user specific influences and their dynamics in generation of social media. In this paper, we propose two new different D2D clustering schemes based on CRP jointly considering the factors affecting the clustering process.


### 3.3.  Generalized Cluster Formulation with Multiple Objectives

To evaluate the mutual suitability between thenth D2D user and D2D cluster c
i, we first present two attraction functions, f
u
(
n
,
c
i
) describing the attraction of D2D cluster c
i to nth D2D user and f
c
(
c
i
,
n
) indicating the attraction of nth D2D user to D2D cluster c
i.We can jointly consider multiple factors to formulate the attraction functionf
u
(
n
,
c
i
) and f
c
(
c
i
,
n
) according to multiple objectives. We considered four main factors in literature [31] including interest, distance, energy, and social interaction to design f
u
(
n
,
c
i
). Interest factor indicates the matching degree between the nth D2D user’s interest and the resource owned by cluster c
i. Distance factor represents the position impact for the nth D2D user to join cluster c
i. Energy factor represents the energy state of D2D cluster c
i, and social interaction factor illustrates the joint impact of the number of D2D users in cluster c
i and the social trust between the nth D2D user and these D2D users.Based on the above description, we can formulate the attraction functionf
u
(
n
,
c
i
) as(3)
f
u
n
,
c
i
=
∑
j
=
1
m
‍
w
R
j
f
R
j
n
,
c
i
,where m indicates the number of considered component factors. f
R
j
(
n
,
c
i
) denotes the factor function and w
R
j is the corresponding weight for each factor while satisfying the constraint that ∑
j
=
1
m
w
R
j
=
1. It is worth noticing that d
i
(
n
) is the minimum distance between the nth D2D user and D2D users in ith cluster c
i. Therefore, considering the maximum D2D communication distance (d
max
⁡) and the maximum number of D2D users (N
max
⁡) in a cluster, we can recast f
u
(
n
,
c
i
) as(4)
f
u
n
,
c
i
=
∑
j
=
1
m
‍
w
R
j
f
R
j
(
n
,
c
i
)
,
m
i
<
N
max
⁡
,
and
d
i
n
≤
d
max
⁡
,
0
,
m
i
=
N
max
⁡
,
or
d
i
n
>
d
max
⁡
.On the other hand, we can also formulate attraction functionf
c
(
c
i
,
n
) for cluster c
i by taking a couple of factors into consideration, such as reliability and contribution from each D2D user similarly.Reliability describes the trust level of thenth D2D user for cluster c
i; it considers not only the history of the user’s behavior but also the social trust between the considered user and other users in cluster c
i. Contribution factor jointly considers the nth user’s power and the interest matching degree between the resource owned by the nth user and the resource owned by cluster c
i.Therefore, considering a minimum distance thresholdd
min
⁡
(
c
i
) to avoid serious interference between cellular user and D2D links, we can rewrite f
c
(
c
i
,
n
) as(5)
f
c
c
i
,
n
=
∑
j
=
1
m
‍
w
R
j
f
R
j
c
i
,
n
,
d
1
c
0
,
i
,
n
≥
d
min
⁡
c
i
,
0
,
d
1
c
0
,
i
,
n
<
d
min
⁡
c
i
,where d
1
(
c
0
,
i
,
n
) is the distance between the nth D2D user and the cellular user c
0
,
i that shares channel with underlay cluster c
i. So far, we have formulated the mutual attraction functions f
u
(
n
,
c
i
) and f
c
(
c
i
,
n
). Next, we will specifically describe the admission policy based D2D clustering scheme utilizing CRP.


### 3.4.  Admission Policy Based D2D Clustering Scheme

Taking the attraction functionf
u
(
n
,
c
i
) into account, we can formulate the probability that the nth D2D user joins the D2D cluster c
i based on CRP as(6)
P
z
n
=
c
i
∣
z
-
n
,
α
=
m
i
/
n
-
1
+
α
f
u
n
,
c
i
∑
c
i
∈
C
n
m
i
/
n
-
1
+
α
f
u
n
,
c
i
+
α
/
n
-
1
+
α
f
u
n
,
c
i
,
c
i
∈
C
n
,
α
/
n
-
1
+
α
f
u
n
,
c
i
∑
c
i
∈
C
n
m
i
/
n
-
1
+
α
f
u
n
,
c
i
+
α
/
n
-
1
+
α
f
u
n
,
c
i
,
c
i
∉
C
n
.When the D2D clusterc
i evaluates the performance of the nth D2D user by the attraction function f
c
(
c
i
,
n
), we predefine a threshold f
th to determine whether the nth D2D user is admitted to join. When f
c
(
c
i
,
n
)
≥
f
th, the nth D2D user is admitted to join in cluster c
i and vice versa. Thus, we introduce a decision function D
i
(
n
) to represent this selection process, and D
i
(
n
) is written as(7)
D
i
n
=
1
,
if
f
c
c
i
,
n
≥
f
th
,
0
,
if
f
c
c
i
,
n
<
f
th
.Thus, a user n is admitted into cluster c
i randomly based on probability P
z
n
=
c
i
∣
z
-
n
,
α if D
i
(
n
)
=
1. Therefore, we obtain the D2D cluster c
i
0
(
n
) for the nth D2D user. For convenience, we assume that any arrival D2D user can join an existing D2D cluster. We now summarize our clustering algorithm in Algorithm 1.Algorithm 1:Finding a cluster c
i for D2D user n.
For each arrival D2D usern
for  c
i
∈
C
n  do
calculateP
i
(
n
)
=
P
(
z
n
=
c
i
∣
z
-
n
,
α
) from (6)
computeD
i
(
n
) according to (7).
if  D
i
(
n
)
=
1  then
Randomly select clusterc
i with probability P
i
(
n
)
end if
end forWe have assessed this CRP-based clustering approach by evaluating the system sum rate during the uplink period in D2D underlay in [31], where achieved results demonstrated the effectiveness of this approach.


## 3.1. System Model

As shown in Figure1, we consider a single cell environment where the users can work in two modes, which are cellular mode (cellular user) and D2D mode (D2D user). Each user is equipped with a single omnidirectional antenna and any two users in D2D clusters communicate in pairs consisting of one transmitter and one receiver. We focus on the uplink period of the system where K orthogonal channels are occupied by K corresponding cellular users. At the beginning of the network, there are K D2D users owning K types of resources and each of them shares the channel with a certain cellular user. The K D2D users can be considered as K initial D2D clusters, and the set of D2D clusters is denoted by C
=
{
c
1
,
c
2
,
…
,
c
K
}. There will be more users arriving at the network, and they will join an optimal D2D cluster. We assume that any channel occupied by the ith (
i
=
1,2
,
…
,
K
) cellular user can be shared with members of the ith D2D cluster [28]. D2D communication session setup procedures can be found in [29].As depicted in Figure1, when the cellular UEs need to communicate with BS to access required service or data in D2D underlay, the BS suffers interference caused by the D2D transmitters sharing the cell resources. On the other hand, the D2D receivers are exposed to interference from the corresponding cellular user and the other D2D transmitters in the same cluster. Since D2D communications are aimed at improving the overall system capacity, in this paper, we utilize the system sum rate to evaluate the performance of our clustering scheme.


## 3.2.  Description of CRP

Let us consider a Chinese restaurant with an infinite number of tables, and the customers will come in and choose to sit in one of the tables. The first customer sits down at a table. Thenth customer sits at a table (which is previously chosen by some customers) with a probability proportional to the number of customers sitting at that table or the nth customer sits at a new table with a probability proportional to the scalar parameter α. Thus, for the nth customer, the distribution over customer assignments conditioned on z
-
n (other customers’ assignments except for the nth customer) can be described as(1)
P
z
n
=
k
∣
z
-
n
,
α
=
m
k
n
-
1
+
α
,
if
k
≤
k
0
,
α
n
-
1
+
α
,
if
k
=
k
0
+
1
,where k
0 is the number of tables with customers and m
k is the number of customers sitting at the kth table.If we consider the adoption of CRP for D2D cluster formation, the clustering process is totally based on CRP without considering the factors that affect the optimal cluster of a new D2D user. For thenth D2D user, we can define a distribution over cluster assignments conditioned on z
-
n (other users’ cluster assignments except for the nth user):(2)
P
z
n
=
c
i
∣
z
-
n
,
α
=
m
i
n
-
1
+
α
,
c
i
∈
C
n
,
α
n
-
1
+
α
,
c
i
∉
C
n
,where C
n is the current set of D2D clusters with arrival D2D users, m
i is the number of users in cluster c
i, and c
i
∉
C
-
n means that the nth user starts a new cluster.To make the clustering results more practical, we will take several factors into account, including users’ behavior, social interaction, social relationship, and their preference as well. Indeed, one related literature [30] proposed a dynamic multirelational CRP to study the interplay of world-wide, geographic, network, and user specific influences and their dynamics in generation of social media. In this paper, we propose two new different D2D clustering schemes based on CRP jointly considering the factors affecting the clustering process.


## 3.3.  Generalized Cluster Formulation with Multiple Objectives

To evaluate the mutual suitability between thenth D2D user and D2D cluster c
i, we first present two attraction functions, f
u
(
n
,
c
i
) describing the attraction of D2D cluster c
i to nth D2D user and f
c
(
c
i
,
n
) indicating the attraction of nth D2D user to D2D cluster c
i.We can jointly consider multiple factors to formulate the attraction functionf
u
(
n
,
c
i
) and f
c
(
c
i
,
n
) according to multiple objectives. We considered four main factors in literature [31] including interest, distance, energy, and social interaction to design f
u
(
n
,
c
i
). Interest factor indicates the matching degree between the nth D2D user’s interest and the resource owned by cluster c
i. Distance factor represents the position impact for the nth D2D user to join cluster c
i. Energy factor represents the energy state of D2D cluster c
i, and social interaction factor illustrates the joint impact of the number of D2D users in cluster c
i and the social trust between the nth D2D user and these D2D users.Based on the above description, we can formulate the attraction functionf
u
(
n
,
c
i
) as(3)
f
u
n
,
c
i
=
∑
j
=
1
m
‍
w
R
j
f
R
j
n
,
c
i
,where m indicates the number of considered component factors. f
R
j
(
n
,
c
i
) denotes the factor function and w
R
j is the corresponding weight for each factor while satisfying the constraint that ∑
j
=
1
m
w
R
j
=
1. It is worth noticing that d
i
(
n
) is the minimum distance between the nth D2D user and D2D users in ith cluster c
i. Therefore, considering the maximum D2D communication distance (d
max
⁡) and the maximum number of D2D users (N
max
⁡) in a cluster, we can recast f
u
(
n
,
c
i
) as(4)
f
u
n
,
c
i
=
∑
j
=
1
m
‍
w
R
j
f
R
j
(
n
,
c
i
)
,
m
i
<
N
max
⁡
,
and
d
i
n
≤
d
max
⁡
,
0
,
m
i
=
N
max
⁡
,
or
d
i
n
>
d
max
⁡
.On the other hand, we can also formulate attraction functionf
c
(
c
i
,
n
) for cluster c
i by taking a couple of factors into consideration, such as reliability and contribution from each D2D user similarly.Reliability describes the trust level of thenth D2D user for cluster c
i; it considers not only the history of the user’s behavior but also the social trust between the considered user and other users in cluster c
i. Contribution factor jointly considers the nth user’s power and the interest matching degree between the resource owned by the nth user and the resource owned by cluster c
i.Therefore, considering a minimum distance thresholdd
min
⁡
(
c
i
) to avoid serious interference between cellular user and D2D links, we can rewrite f
c
(
c
i
,
n
) as(5)
f
c
c
i
,
n
=
∑
j
=
1
m
‍
w
R
j
f
R
j
c
i
,
n
,
d
1
c
0
,
i
,
n
≥
d
min
⁡
c
i
,
0
,
d
1
c
0
,
i
,
n
<
d
min
⁡
c
i
,where d
1
(
c
0
,
i
,
n
) is the distance between the nth D2D user and the cellular user c
0
,
i that shares channel with underlay cluster c
i. So far, we have formulated the mutual attraction functions f
u
(
n
,
c
i
) and f
c
(
c
i
,
n
). Next, we will specifically describe the admission policy based D2D clustering scheme utilizing CRP.


## 3.4.  Admission Policy Based D2D Clustering Scheme

Taking the attraction functionf
u
(
n
,
c
i
) into account, we can formulate the probability that the nth D2D user joins the D2D cluster c
i based on CRP as(6)
P
z
n
=
c
i
∣
z
-
n
,
α
=
m
i
/
n
-
1
+
α
f
u
n
,
c
i
∑
c
i
∈
C
n
m
i
/
n
-
1
+
α
f
u
n
,
c
i
+
α
/
n
-
1
+
α
f
u
n
,
c
i
,
c
i
∈
C
n
,
α
/
n
-
1
+
α
f
u
n
,
c
i
∑
c
i
∈
C
n
m
i
/
n
-
1
+
α
f
u
n
,
c
i
+
α
/
n
-
1
+
α
f
u
n
,
c
i
,
c
i
∉
C
n
.When the D2D clusterc
i evaluates the performance of the nth D2D user by the attraction function f
c
(
c
i
,
n
), we predefine a threshold f
th to determine whether the nth D2D user is admitted to join. When f
c
(
c
i
,
n
)
≥
f
th, the nth D2D user is admitted to join in cluster c
i and vice versa. Thus, we introduce a decision function D
i
(
n
) to represent this selection process, and D
i
(
n
) is written as(7)
D
i
n
=
1
,
if
f
c
c
i
,
n
≥
f
th
,
0
,
if
f
c
c
i
,
n
<
f
th
.Thus, a user n is admitted into cluster c
i randomly based on probability P
z
n
=
c
i
∣
z
-
n
,
α if D
i
(
n
)
=
1. Therefore, we obtain the D2D cluster c
i
0
(
n
) for the nth D2D user. For convenience, we assume that any arrival D2D user can join an existing D2D cluster. We now summarize our clustering algorithm in Algorithm 1.Algorithm 1:Finding a cluster c
i for D2D user n.
For each arrival D2D usern
for  c
i
∈
C
n  do
calculateP
i
(
n
)
=
P
(
z
n
=
c
i
∣
z
-
n
,
α
) from (6)
computeD
i
(
n
) according to (7).
if  D
i
(
n
)
=
1  then
Randomly select clusterc
i with probability P
i
(
n
)
end if
end forWe have assessed this CRP-based clustering approach by evaluating the system sum rate during the uplink period in D2D underlay in [31], where achieved results demonstrated the effectiveness of this approach.


## 4. DCRP and Social Interaction Oriented Clustering

Definitely, we can consider multiple factors to form cluster as mentioned before. However, to make the treatment simpler, we only consider the joint use of distance and social interaction in this section, and we will present the performance analysis of D2D clustering by evaluating the benefits from content sharing. Since we already discussed traditional CRP and its application in D2D clustering, next we will investigate DCRP based D2D clustering.


### 4.1. P-DCRP Clustering Scheme

Refer to the distance-dependent CRP proposed in [26]; we exploit a physical distance-dependent D2D clustering scheme utilizing CRP (P-DCRP), which considers the physical distance between D2D users. The P-DCRP clustering scheme is summarized in Algorithm 2. The probability of user n selecting user l as its partner to form a D2D link can be calculated as(8)
P
link
n
,
l
∣
D
,
α
=
f
1
d
n
,
l
∑
l
≠
n
f
1
d
n
,
l
+
α
,
if
n
≠
l
,
α
∑
l
≠
n
f
1
d
n
,
l
+
α
if
n
=
l
,where D is the physical distance matrix of potential (or established) D2D links between D2D users, d
(
n
,
l
) is the distance between user n and user l, and α is the parameter of CRP, indicating the willingness for each arrival D2D user to stay alone and create a new cluster.Algorithm 2:P-DCRP clustering.
For each arrival D2D usern
for  c
i
∈
C
n  do
calculateP
i
(
n
) from (10)
computeD
i
(
n
) according to (7).
if  D
i
(
n
)
=
1  then
Randomly select clusterc
i with probability P
i
(
n
)
end if
end forIn addition, the physical distance-based functionf
1
(
d
(
n
,
l
)
) is defined as(9)
f
1
d
n
,
l
=
1
d
n
,
l
,
if
d
n
,
l
≤
d
max
⁡
,
0
,
if
d
n
,
l
>
d
max
⁡
.Based on the probabilities of pairing user n to other users, user n will select one user as its partner or stay alone randomly.The direct application of P-DCRP for clustering is straightforward. In particular, define the mutual physical distance between two DUEs asp
(
n
,
l
). For each new D2D user n, determine whether user n should join user l and hence its cluster randomly based on the probability of (8). Notice that each cluster c
i may already have multiple users. Then, user n will compute the probability of user n joining cluster c
i as(10)
P
i
n
=
∑
user
l
∈
c
i
‍
f
1
(
d
(
n
,
l
)
)
∑
l
≠
n
f
1
(
d
(
n
,
l
)
)
+
α
.


### 4.2. Our Proposed S-DCRP Clustering Scheme

We present (see Algorithm3) a novel social oriented and CRP-based D2D clustering scheme by considering social interaction and physical distance simultaneously, and we denote this by S-DCRP. Specifically, we formulate the social distance between two users to evaluate the effect of their social interaction on D2D clustering. Thus, we calculate the social distance based on the social trust [20] as(11)
s
n
,
l
=
-
log
⁡
2
p
n
,
l
,where p
(
n
,
l
)
∈
[
0,1
] is the social trust between users n and l.Algorithm 3:S-DCRP clustering.
For each arrival D2D usern
for  c
i
∈
C
n  do
calculateP
i
(
n
) from (14)
computeD
i
(
n
) according to (7).
if  D
i
(
n
)
=
1  then
Randomly select clusterc
i with probability P
i
(
n
)
end if
end forNotice that larger value ofp
(
n
,
l
) leads to smaller s
(
n
,
l
); that is, the shorter the social distance between two users is, the larger the probability of file (resource) sharing between D2D users achieves. Thus, by jointly considering both social and physical distance, we can formulate the probability that user n selects user l as its partner for D2D communication as(12)
P
link
n
,
l
∣
S
,
D
,
α
=
f
2
s
n
,
l
∑
l
≠
n
f
2
s
n
,
l
+
α
,
if
n
≠
l
,
α
∑
l
≠
n
f
2
s
n
,
l
+
α
,
if
n
=
l
,where S is the social distance matrix of D2D users, and the social distance-based function f
2
(
s
(
n
,
l
)
) is defined as(13)
f
2
s
n
,
l
=
1
s
n
,
l
,
d
(
n
,
l
)
≤
d
max
⁡
,
0
,
d
(
n
,
l
)
>
d
max
⁡
.Similarly, based on the probabilities of usern selecting other users, user n selects one user as its partner and cluster randomly (otherwise, it remains alone):(14)
P
i
n
=
∑
user
l
∈
c
i
‍
f
2
s
n
,
l
∑
l
≠
n
f
s
s
n
,
l
+
α
.


### 4.3. Merits of S-DCRP Clustering Scheme

Different from the traditional CRP, P-DCRP and S-DCRP schemes generalize the ideas in [26] to model the users’ D2D clustering, which is nonexchangeable. By jointly considering social and physical distance to form clusters, our scheme can boost the benefits from both the social and physical information of the users.In our proposed S-DCRP scheme, we take the social distance into account in addition to the physical distance. Under the maximum D2D communication distance constraint, for a certain user, our proposed S-DCRP scheme can effectively obtain a higher probability of selecting a partner who prefers to share its file with the considered user. Therefore, for our scheme, users belonging to the same D2D cluster can more efficiently share their files with each other rather than obtaining the files from BS, which can undoubtedly enhance system performance in terms of lower energy consumption and higher system throughput by involving D2D clustering.


## 4.1. P-DCRP Clustering Scheme

Refer to the distance-dependent CRP proposed in [26]; we exploit a physical distance-dependent D2D clustering scheme utilizing CRP (P-DCRP), which considers the physical distance between D2D users. The P-DCRP clustering scheme is summarized in Algorithm 2. The probability of user n selecting user l as its partner to form a D2D link can be calculated as(8)
P
link
n
,
l
∣
D
,
α
=
f
1
d
n
,
l
∑
l
≠
n
f
1
d
n
,
l
+
α
,
if
n
≠
l
,
α
∑
l
≠
n
f
1
d
n
,
l
+
α
if
n
=
l
,where D is the physical distance matrix of potential (or established) D2D links between D2D users, d
(
n
,
l
) is the distance between user n and user l, and α is the parameter of CRP, indicating the willingness for each arrival D2D user to stay alone and create a new cluster.Algorithm 2:P-DCRP clustering.
For each arrival D2D usern
for  c
i
∈
C
n  do
calculateP
i
(
n
) from (10)
computeD
i
(
n
) according to (7).
if  D
i
(
n
)
=
1  then
Randomly select clusterc
i with probability P
i
(
n
)
end if
end forIn addition, the physical distance-based functionf
1
(
d
(
n
,
l
)
) is defined as(9)
f
1
d
n
,
l
=
1
d
n
,
l
,
if
d
n
,
l
≤
d
max
⁡
,
0
,
if
d
n
,
l
>
d
max
⁡
.Based on the probabilities of pairing user n to other users, user n will select one user as its partner or stay alone randomly.The direct application of P-DCRP for clustering is straightforward. In particular, define the mutual physical distance between two DUEs asp
(
n
,
l
). For each new D2D user n, determine whether user n should join user l and hence its cluster randomly based on the probability of (8). Notice that each cluster c
i may already have multiple users. Then, user n will compute the probability of user n joining cluster c
i as(10)
P
i
n
=
∑
user
l
∈
c
i
‍
f
1
(
d
(
n
,
l
)
)
∑
l
≠
n
f
1
(
d
(
n
,
l
)
)
+
α
.


## 4.2. Our Proposed S-DCRP Clustering Scheme

We present (see Algorithm3) a novel social oriented and CRP-based D2D clustering scheme by considering social interaction and physical distance simultaneously, and we denote this by S-DCRP. Specifically, we formulate the social distance between two users to evaluate the effect of their social interaction on D2D clustering. Thus, we calculate the social distance based on the social trust [20] as(11)
s
n
,
l
=
-
log
⁡
2
p
n
,
l
,where p
(
n
,
l
)
∈
[
0,1
] is the social trust between users n and l.Algorithm 3:S-DCRP clustering.
For each arrival D2D usern
for  c
i
∈
C
n  do
calculateP
i
(
n
) from (14)
computeD
i
(
n
) according to (7).
if  D
i
(
n
)
=
1  then
Randomly select clusterc
i with probability P
i
(
n
)
end if
end forNotice that larger value ofp
(
n
,
l
) leads to smaller s
(
n
,
l
); that is, the shorter the social distance between two users is, the larger the probability of file (resource) sharing between D2D users achieves. Thus, by jointly considering both social and physical distance, we can formulate the probability that user n selects user l as its partner for D2D communication as(12)
P
link
n
,
l
∣
S
,
D
,
α
=
f
2
s
n
,
l
∑
l
≠
n
f
2
s
n
,
l
+
α
,
if
n
≠
l
,
α
∑
l
≠
n
f
2
s
n
,
l
+
α
,
if
n
=
l
,where S is the social distance matrix of D2D users, and the social distance-based function f
2
(
s
(
n
,
l
)
) is defined as(13)
f
2
s
n
,
l
=
1
s
n
,
l
,
d
(
n
,
l
)
≤
d
max
⁡
,
0
,
d
(
n
,
l
)
>
d
max
⁡
.Similarly, based on the probabilities of usern selecting other users, user n selects one user as its partner and cluster randomly (otherwise, it remains alone):(14)
P
i
n
=
∑
user
l
∈
c
i
‍
f
2
s
n
,
l
∑
l
≠
n
f
s
s
n
,
l
+
α
.


## 4.3. Merits of S-DCRP Clustering Scheme

Different from the traditional CRP, P-DCRP and S-DCRP schemes generalize the ideas in [26] to model the users’ D2D clustering, which is nonexchangeable. By jointly considering social and physical distance to form clusters, our scheme can boost the benefits from both the social and physical information of the users.In our proposed S-DCRP scheme, we take the social distance into account in addition to the physical distance. Under the maximum D2D communication distance constraint, for a certain user, our proposed S-DCRP scheme can effectively obtain a higher probability of selecting a partner who prefers to share its file with the considered user. Therefore, for our scheme, users belonging to the same D2D cluster can more efficiently share their files with each other rather than obtaining the files from BS, which can undoubtedly enhance system performance in terms of lower energy consumption and higher system throughput by involving D2D clustering.


## 5. Performance Analysis for S-DCRP Clustering

In this section, we will discuss the benefits of file sharing in D2D clusters in two separate modes, which are request mode and delivery mode. In request mode, D2D user will act as a request node to ask for resource file from BS or other neighbouring nodes who own the requested file. In delivery mode, we assume a D2D user already obtained a file from BS and can share it with other neighbouring users in the same cluster who acquire the same file.


### 5.1. Delivery Mode

In this subsection, we analyze the system performance by evaluating the benefits from file sharing in D2D clusters. Note that we assume that a user can request and get a desired file from BS first, with whom other members (DUEs) within the same cluster may ask for sharing the acquired file. Thus, we can assess the resulting system gain from file sharing in clusters, including throughput, energy consumption, and energy efficiency. We utilize the social trust between two users in the same cluster as the probability of their file sharing. The social trust between two users varies according to their relationship.LetD
=
{
1
,
2
,
…
,
N
} be the DUEs in all clusters under consideration. Let the integer set N
i
=
{
υ
1
i
,
υ
2
i
,
…
,
υ
N
i
i
} of cardinality N
i denote the set of nodes within cluster-i where N
i
⊂
D. Consider a node υ
k
i in cluster-i. Recall the definition of probability p
(
i
,
j
). It is clear that p
(
υ
k
i
,
υ
k
i
)
=
1.If nodeυ
k
i obtains a file from BS, then the probability that n distinct nodes {
j
1
,
…
,
j
n
}
⊂
N
i
∖
{
υ
k
i
} wishing to share the same file is given by(15)
P
υ
k
i
;
j
1
,
…
,
j
n
=
∏
l
=
1
n
‍
p
υ
k
i
,
j
l
∏
m
=
n
+
1
N
i
-
1
‍
1
-
p
υ
k
i
,
j
m
,
i
j
m
1
≠
j
m
2
,
j
1
,
…
,
j
n
⊂
N
i
∖
υ
k
i
.Then, the probability that there are exactly n additional users within the cluster also wishing to share this file can be calculated as(16)
P
i
υ
k
i
,
n
=
∑
⋯
∑
j
1
∈
N
i
∖
{
υ
k
i
}
,
j
2
∈
N
i
∖
{
υ
k
i
,
j
1
}
,
…
,
j
n
∈
N
i
∖
{
υ
k
i
,
j
1
,
…
,
j
n
-
1
}
P
υ
k
i
;
j
1
,
…
,
j
n
,
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
n
=
0
,
…
,
N
i
.Note that(17)
P
i
υ
k
i
,
0
=
∏
m
=
1
j
m
1
≠
j
m
2
j
m
∈
N
i
∖
υ
k
i
N
i
-
1
‍
1
-
p
υ
k
i
,
j
m
.Let|
h
B
υ
k
i
|
2 be the channel power gain between node υ
k
i and BS. Then, the unit bandwidth rate for υ
k
i to retrieve a data file from BS can be written as(18)
R
B
,
υ
k
i
=
log
⁡
2
1
+
P
B
h
B
υ
k
i
2
σ
2
,where P
B is the transmit power of BS. Let the channel power gain between node υ
k
i and node j
l
∈
N
i
∖
{
υ
k
i
} be h
υ
k
i
j
l
2. Recall that P
D is the DUE transmit power. Then, the rate of file sharing between the two nodes becomes(19)
R
υ
k
i
,
j
l
=
log
⁡
2
1
+
P
D
h
υ
k
i
j
l
2
σ
2
,
j
l
∈
N
i
∖
υ
k
i
.Therefore, the overall throughput from BS delivery and clustering communications between υ
k
i with n
=
1
,
…
,
N
i
-
1 additional users in the ith D2D cluster can be tallied as(20)
R
k
i
=
R
B
,
υ
k
i
+
∑
n
=
1
N
i
-
1
‍
∑
‍
⋯
∑
‍
j
1
∈
N
i
∖
{
υ
k
i
}
,
j
2
∈
N
i
∖
{
υ
k
i
,
j
1
}
,
…
,
j
n
∈
N
i
∖
{
υ
k
i
,
j
1
,
…
,
j
n
-
1
}
P
(
υ
k
i
;
{
j
1
,
…
,
j
n
}
)
∑
l
=
1
n
‍
R
υ
k
i
,
j
l
.For all users in theith D2D cluster, the throughput brought by the file transmission from BS to members in the cluster can be written as(21)
R
i
=
∑
k
=
1
N
i
‍
R
k
i
.Considering the K total D2D clusters, the total throughput is hence(22)
R
t
=
∑
i
=
1
K
‍
R
i
.We assume that data files from BS have the same length (L), and each D2D cluster is assigned the same bandwidth (W). Thus, for node υ
k
i, the transmission time (delay) and the energy consumption to obtain the file from BS, respectively, are(23)
D
B
,
υ
k
i
=
L
W
R
B
,
υ
k
i
,
E
B
,
υ
k
i
=
P
B
D
B
,
υ
k
i
.Whenn users in the cluster want to get this file through file sharing, the average transmission time and the energy consumption for node υ
k
i to transmit this file can be calculated, respectively, as(24)
D
d
,
υ
k
i
=
∑
n
=
1
N
i
-
1
‍
∑
‍
⋯
∑
‍
j
1
∈
N
i
∖
{
υ
k
i
}
,
j
2
∈
N
i
∖
{
υ
k
i
,
j
1
}
,
…
,
j
n
∈
N
i
∖
{
υ
k
i
,
j
1
,
…
,
j
n
-
1
}
P
(
υ
k
i
;
{
j
1
,
…
,
j
n
}
)
·
L
W
·
min
⁡
l
=
1
,
…
,
n
⁡
R
υ
k
i
,
j
l
,
E
d
,
υ
k
i
=
P
D
D
d
,
υ
k
i
,where n
=
0 is not included as there is no file sharing.Thus, we can calculate the average cluster energy consumption corresponding to the cluster file sharing throughput as(25)
E
t
=
∑
i
=
1
K
‍
∑
k
=
1
N
i
‍
E
B
,
υ
k
i
+
E
d
,
υ
k
i
.It is clear that file sharing in D2D clusters can lead to a higher throughput but also requires additional energy consumption in D2D communications. Therefore, we utilize its energy efficiency to evaluate the performance advantage of D2D clustering schemes, which is defined as(26)
η
=
R
t
E
t
.Without loss of generality, when D2D clustering is not used, that is, in the nonclustering case, all users obtain the files from BS. Thus, we can find the ith cluster throughput and the total throughput for all users, respectively, as(27)
R
i
=
∑
k
=
1
N
i
‍
R
B
,
υ
k
i
∑
n
=
1
N
i
-
1
‍
00000000
+
∑
n
=
1
N
i
-
1
‍
∑
‍
⋯
∑
‍
j
1
∈
N
i
∖
{
υ
k
i
}
,
j
2
∈
N
i
∖
{
υ
k
i
,
j
1
}
,
…
,
j
n
∈
N
i
∖
{
υ
k
i
,
j
1
,
…
,
j
n
-
1
}
∑
l
=
1
n
‍
P
υ
k
i
;
j
1
,
…
,
j
n
0000000000000000000000000000
·
∑
l
=
1
n
‍
R
B
,
j
l
,
R
t
=
∑
i
=
1
K
‍
R
i
.For nonclustering D2D users, we can also determine the total energy consumption as(28)
E
t
=
∑
i
=
1
K
‍
∑
k
=
1
N
i
‍
∑
n
=
1
N
i
-
1
‍
E
B
,
υ
k
i
0000000000
+
∑
n
=
1
N
i
-
1
‍
∑
‍
⋯
∑
‍
j
1
∈
N
i
∖
{
υ
k
i
}
,
j
2
∈
N
i
∖
{
υ
k
i
,
j
1
}
,
…
,
j
n
∈
N
i
∖
{
υ
k
i
,
j
1
,
…
,
j
n
-
1
}
∑
l
=
1
n
‍
P
υ
k
i
;
j
1
,
…
,
j
n
0000000000000000000000000000000
·
∑
l
=
1
n
‍
P
B
·
L
W
·
R
B
,
j
l
.


### 5.2. Request Mode

In this scenario, the users request files from BS or from neighbouring users who own the files in the same cluster. For a certain user, when there are cluster members who have a file and are willing to share such a file, it can obtain the file from file sharing. Otherwise, it needs to request the file from BS.For nodeυ
k
i, the probability that n users in the cluster have and are willing to share this file with it can be calculated as P
i
(
υ
k
i
,
n
) where n
=
1
,
…
,
N
i
-
1. If n
=
0, the probability that node υ
k
i obtains the file directly from BS equals P
i
(
υ
k
i
,
0
).For nodeυ
k
i belonging to the ith D2D cluster, the rate for it to obtain a file from B is simply given by (29)
R
B
,
υ
k
i
=
log
⁡
2
1
+
P
B
h
B
υ
k
i
2
σ
2
.When there are n users in the cluster who have and are willing to share this file with the kth user, we select a user j
l with the best channel gain as an optimal user for file sharing. Thus, the mean (expected) rate for node υ
k
i for obtaining the file from the optimal user j
l or the BS B can be written as(30)
R
k
i
=
P
i
υ
k
i
,
0
R
B
,
υ
k
i
+
∑
n
=
1
N
i
-
1
‍
∑
‍
⋯
∑
‍
j
1
∈
N
i
∖
{
υ
k
i
}
,
j
2
∈
N
i
∖
{
υ
k
i
,
j
1
}
,
…
,
j
n
∈
N
i
∖
{
υ
k
i
,
j
1
,
…
,
j
n
-
1
}
P
υ
k
i
;
j
1
,
…
,
j
n
·
max
⁡
l
=
1
,
…
,
n
R
υ
k
i
,
j
l
.Similarly, by considering all users in all D2D clusters, the total throughput can be calculated as(31)
R
t
=
∑
i
=
1
K
‍
∑
k
=
1
N
i
‍
R
k
i
.We assume that the requested files have the same length (L), the total bandwidth is W
0, and each user has the same bandwidth (W
0
/
N). Note that N is the number of users in our scenario. Thus, for the kth user, the transmission time to obtain the file from BS is written as(32)
D
B
,
υ
k
i
=
L
W
0
/
N
R
B
,
υ
k
i
.When n users in the cluster have a certain file and are willing to share such a file with the kth user, the average transmission time to obtain this file can be calculated as(33)
D
d
,
υ
k
i
=
∑
n
=
1
N
i
-
1
‍
∑
‍
⋯
∑
‍
j
1
∈
N
i
∖
{
υ
k
i
}
,
j
2
∈
N
i
∖
{
υ
k
i
,
j
1
}
,
…
,
j
n
∈
N
i
∖
{
υ
k
i
,
j
1
,
…
,
j
n
-
1
}
P
i
(
υ
k
i
;
{
j
1
,
…
,
j
n
}
)
·
L
W
0
/
N
max
⁡
l
=
1
,
…
,
n
⁡
R
υ
k
i
,
j
l
.Including the possibility of obtaining the file from B, the average transmission time to obtain this file is simply(34)
D
k
i
=
D
d
,
υ
k
i
+
P
i
υ
k
i
,
0
D
B
,
υ
k
i
.Similarly, the total energy consumption for the users in all D2D clusters can be written as(35)
E
t
=
∑
i
=
1
K
‍
∑
k
=
1
N
i
‍
P
i
(
υ
k
i
,
0
)
P
B
D
B
,
υ
k
i
+
P
D
D
d
,
υ
k
i
,and we also utilize energy efficiency η
=
R
t
/
E
t to evaluate the performance of D2D clustering schemes.When D2D clustering is not utilized, that is, in the nonclustering case, the users obtain the files from BS with probability 1, and we calculate the total throughput for all users in (31) as(36)
R
t
=
∑
i
=
1
K
‍
∑
k
=
1
N
i
‍
log
⁡
2
1
+
P
B
h
B
k
i
2
σ
2
.We can also calculate the total energy consumption for all users in (35) as(37)
E
t
=
∑
i
=
1
K
‍
∑
k
=
1
N
i
‍
P
B
L
W
0
/
N
R
B
,
υ
k
i
.


## 5.1. Delivery Mode

In this subsection, we analyze the system performance by evaluating the benefits from file sharing in D2D clusters. Note that we assume that a user can request and get a desired file from BS first, with whom other members (DUEs) within the same cluster may ask for sharing the acquired file. Thus, we can assess the resulting system gain from file sharing in clusters, including throughput, energy consumption, and energy efficiency. We utilize the social trust between two users in the same cluster as the probability of their file sharing. The social trust between two users varies according to their relationship.LetD
=
{
1
,
2
,
…
,
N
} be the DUEs in all clusters under consideration. Let the integer set N
i
=
{
υ
1
i
,
υ
2
i
,
…
,
υ
N
i
i
} of cardinality N
i denote the set of nodes within cluster-i where N
i
⊂
D. Consider a node υ
k
i in cluster-i. Recall the definition of probability p
(
i
,
j
). It is clear that p
(
υ
k
i
,
υ
k
i
)
=
1.If nodeυ
k
i obtains a file from BS, then the probability that n distinct nodes {
j
1
,
…
,
j
n
}
⊂
N
i
∖
{
υ
k
i
} wishing to share the same file is given by(15)
P
υ
k
i
;
j
1
,
…
,
j
n
=
∏
l
=
1
n
‍
p
υ
k
i
,
j
l
∏
m
=
n
+
1
N
i
-
1
‍
1
-
p
υ
k
i
,
j
m
,
i
j
m
1
≠
j
m
2
,
j
1
,
…
,
j
n
⊂
N
i
∖
υ
k
i
.Then, the probability that there are exactly n additional users within the cluster also wishing to share this file can be calculated as(16)
P
i
υ
k
i
,
n
=
∑
⋯
∑
j
1
∈
N
i
∖
{
υ
k
i
}
,
j
2
∈
N
i
∖
{
υ
k
i
,
j
1
}
,
…
,
j
n
∈
N
i
∖
{
υ
k
i
,
j
1
,
…
,
j
n
-
1
}
P
υ
k
i
;
j
1
,
…
,
j
n
,
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
n
=
0
,
…
,
N
i
.Note that(17)
P
i
υ
k
i
,
0
=
∏
m
=
1
j
m
1
≠
j
m
2
j
m
∈
N
i
∖
υ
k
i
N
i
-
1
‍
1
-
p
υ
k
i
,
j
m
.Let|
h
B
υ
k
i
|
2 be the channel power gain between node υ
k
i and BS. Then, the unit bandwidth rate for υ
k
i to retrieve a data file from BS can be written as(18)
R
B
,
υ
k
i
=
log
⁡
2
1
+
P
B
h
B
υ
k
i
2
σ
2
,where P
B is the transmit power of BS. Let the channel power gain between node υ
k
i and node j
l
∈
N
i
∖
{
υ
k
i
} be h
υ
k
i
j
l
2. Recall that P
D is the DUE transmit power. Then, the rate of file sharing between the two nodes becomes(19)
R
υ
k
i
,
j
l
=
log
⁡
2
1
+
P
D
h
υ
k
i
j
l
2
σ
2
,
j
l
∈
N
i
∖
υ
k
i
.Therefore, the overall throughput from BS delivery and clustering communications between υ
k
i with n
=
1
,
…
,
N
i
-
1 additional users in the ith D2D cluster can be tallied as(20)
R
k
i
=
R
B
,
υ
k
i
+
∑
n
=
1
N
i
-
1
‍
∑
‍
⋯
∑
‍
j
1
∈
N
i
∖
{
υ
k
i
}
,
j
2
∈
N
i
∖
{
υ
k
i
,
j
1
}
,
…
,
j
n
∈
N
i
∖
{
υ
k
i
,
j
1
,
…
,
j
n
-
1
}
P
(
υ
k
i
;
{
j
1
,
…
,
j
n
}
)
∑
l
=
1
n
‍
R
υ
k
i
,
j
l
.For all users in theith D2D cluster, the throughput brought by the file transmission from BS to members in the cluster can be written as(21)
R
i
=
∑
k
=
1
N
i
‍
R
k
i
.Considering the K total D2D clusters, the total throughput is hence(22)
R
t
=
∑
i
=
1
K
‍
R
i
.We assume that data files from BS have the same length (L), and each D2D cluster is assigned the same bandwidth (W). Thus, for node υ
k
i, the transmission time (delay) and the energy consumption to obtain the file from BS, respectively, are(23)
D
B
,
υ
k
i
=
L
W
R
B
,
υ
k
i
,
E
B
,
υ
k
i
=
P
B
D
B
,
υ
k
i
.Whenn users in the cluster want to get this file through file sharing, the average transmission time and the energy consumption for node υ
k
i to transmit this file can be calculated, respectively, as(24)
D
d
,
υ
k
i
=
∑
n
=
1
N
i
-
1
‍
∑
‍
⋯
∑
‍
j
1
∈
N
i
∖
{
υ
k
i
}
,
j
2
∈
N
i
∖
{
υ
k
i
,
j
1
}
,
…
,
j
n
∈
N
i
∖
{
υ
k
i
,
j
1
,
…
,
j
n
-
1
}
P
(
υ
k
i
;
{
j
1
,
…
,
j
n
}
)
·
L
W
·
min
⁡
l
=
1
,
…
,
n
⁡
R
υ
k
i
,
j
l
,
E
d
,
υ
k
i
=
P
D
D
d
,
υ
k
i
,where n
=
0 is not included as there is no file sharing.Thus, we can calculate the average cluster energy consumption corresponding to the cluster file sharing throughput as(25)
E
t
=
∑
i
=
1
K
‍
∑
k
=
1
N
i
‍
E
B
,
υ
k
i
+
E
d
,
υ
k
i
.It is clear that file sharing in D2D clusters can lead to a higher throughput but also requires additional energy consumption in D2D communications. Therefore, we utilize its energy efficiency to evaluate the performance advantage of D2D clustering schemes, which is defined as(26)
η
=
R
t
E
t
.Without loss of generality, when D2D clustering is not used, that is, in the nonclustering case, all users obtain the files from BS. Thus, we can find the ith cluster throughput and the total throughput for all users, respectively, as(27)
R
i
=
∑
k
=
1
N
i
‍
R
B
,
υ
k
i
∑
n
=
1
N
i
-
1
‍
00000000
+
∑
n
=
1
N
i
-
1
‍
∑
‍
⋯
∑
‍
j
1
∈
N
i
∖
{
υ
k
i
}
,
j
2
∈
N
i
∖
{
υ
k
i
,
j
1
}
,
…
,
j
n
∈
N
i
∖
{
υ
k
i
,
j
1
,
…
,
j
n
-
1
}
∑
l
=
1
n
‍
P
υ
k
i
;
j
1
,
…
,
j
n
0000000000000000000000000000
·
∑
l
=
1
n
‍
R
B
,
j
l
,
R
t
=
∑
i
=
1
K
‍
R
i
.For nonclustering D2D users, we can also determine the total energy consumption as(28)
E
t
=
∑
i
=
1
K
‍
∑
k
=
1
N
i
‍
∑
n
=
1
N
i
-
1
‍
E
B
,
υ
k
i
0000000000
+
∑
n
=
1
N
i
-
1
‍
∑
‍
⋯
∑
‍
j
1
∈
N
i
∖
{
υ
k
i
}
,
j
2
∈
N
i
∖
{
υ
k
i
,
j
1
}
,
…
,
j
n
∈
N
i
∖
{
υ
k
i
,
j
1
,
…
,
j
n
-
1
}
∑
l
=
1
n
‍
P
υ
k
i
;
j
1
,
…
,
j
n
0000000000000000000000000000000
·
∑
l
=
1
n
‍
P
B
·
L
W
·
R
B
,
j
l
.


## 5.2. Request Mode

In this scenario, the users request files from BS or from neighbouring users who own the files in the same cluster. For a certain user, when there are cluster members who have a file and are willing to share such a file, it can obtain the file from file sharing. Otherwise, it needs to request the file from BS.For nodeυ
k
i, the probability that n users in the cluster have and are willing to share this file with it can be calculated as P
i
(
υ
k
i
,
n
) where n
=
1
,
…
,
N
i
-
1. If n
=
0, the probability that node υ
k
i obtains the file directly from BS equals P
i
(
υ
k
i
,
0
).For nodeυ
k
i belonging to the ith D2D cluster, the rate for it to obtain a file from B is simply given by (29)
R
B
,
υ
k
i
=
log
⁡
2
1
+
P
B
h
B
υ
k
i
2
σ
2
.When there are n users in the cluster who have and are willing to share this file with the kth user, we select a user j
l with the best channel gain as an optimal user for file sharing. Thus, the mean (expected) rate for node υ
k
i for obtaining the file from the optimal user j
l or the BS B can be written as(30)
R
k
i
=
P
i
υ
k
i
,
0
R
B
,
υ
k
i
+
∑
n
=
1
N
i
-
1
‍
∑
‍
⋯
∑
‍
j
1
∈
N
i
∖
{
υ
k
i
}
,
j
2
∈
N
i
∖
{
υ
k
i
,
j
1
}
,
…
,
j
n
∈
N
i
∖
{
υ
k
i
,
j
1
,
…
,
j
n
-
1
}
P
υ
k
i
;
j
1
,
…
,
j
n
·
max
⁡
l
=
1
,
…
,
n
R
υ
k
i
,
j
l
.Similarly, by considering all users in all D2D clusters, the total throughput can be calculated as(31)
R
t
=
∑
i
=
1
K
‍
∑
k
=
1
N
i
‍
R
k
i
.We assume that the requested files have the same length (L), the total bandwidth is W
0, and each user has the same bandwidth (W
0
/
N). Note that N is the number of users in our scenario. Thus, for the kth user, the transmission time to obtain the file from BS is written as(32)
D
B
,
υ
k
i
=
L
W
0
/
N
R
B
,
υ
k
i
.When n users in the cluster have a certain file and are willing to share such a file with the kth user, the average transmission time to obtain this file can be calculated as(33)
D
d
,
υ
k
i
=
∑
n
=
1
N
i
-
1
‍
∑
‍
⋯
∑
‍
j
1
∈
N
i
∖
{
υ
k
i
}
,
j
2
∈
N
i
∖
{
υ
k
i
,
j
1
}
,
…
,
j
n
∈
N
i
∖
{
υ
k
i
,
j
1
,
…
,
j
n
-
1
}
P
i
(
υ
k
i
;
{
j
1
,
…
,
j
n
}
)
·
L
W
0
/
N
max
⁡
l
=
1
,
…
,
n
⁡
R
υ
k
i
,
j
l
.Including the possibility of obtaining the file from B, the average transmission time to obtain this file is simply(34)
D
k
i
=
D
d
,
υ
k
i
+
P
i
υ
k
i
,
0
D
B
,
υ
k
i
.Similarly, the total energy consumption for the users in all D2D clusters can be written as(35)
E
t
=
∑
i
=
1
K
‍
∑
k
=
1
N
i
‍
P
i
(
υ
k
i
,
0
)
P
B
D
B
,
υ
k
i
+
P
D
D
d
,
υ
k
i
,and we also utilize energy efficiency η
=
R
t
/
E
t to evaluate the performance of D2D clustering schemes.When D2D clustering is not utilized, that is, in the nonclustering case, the users obtain the files from BS with probability 1, and we calculate the total throughput for all users in (31) as(36)
R
t
=
∑
i
=
1
K
‍
∑
k
=
1
N
i
‍
log
⁡
2
1
+
P
B
h
B
k
i
2
σ
2
.We can also calculate the total energy consumption for all users in (35) as(37)
E
t
=
∑
i
=
1
K
‍
∑
k
=
1
N
i
‍
P
B
L
W
0
/
N
R
B
,
υ
k
i
.


## 6. Numerical Results for DCRP Clustering

In this section, we present numerical results to demonstrate the performance of our proposed DCRP clustering scheme in D2D communications. The random clustering scheme and the nonclustering scheme are also used for comparison. In the simulation test, we consider a special case by taking three social trust levels into account for, respectively, friends, acquaintances, and strangers, denoted asq
1, q
2, and q
3. In other words, the social trust p
(
i
,
j
) between nodes i and j can be equal to q
1, q
2, or q
3.In our test scenario, the DUEs are uniformly distributed within a circular region of 100 m radius centered at (100 m, 0). We fix the BS at (300 m, 0). The large-scale path loss exponent between the BS and users isβ
=
3.5 and that of D2D users is β
=
4. The parameter of CRP is α
=
0.1 and we set σ
2
=
-
90 dBm. P
B
=
0.2 mW and P
D
=
0.1 mW.


### 6.1. Cluster Delivery Mode

In this simulation scenario, we letL
=
1 Mbit and W
=
1MHz. We test the performance of different schemes for various values of d
max
⁡ and N
max
⁡. Figure 2 shows that the throughput for all schemes grows with increasing number of users. However, the S-DCRP scheme achieves a higher throughput than other schemes for different values of d
max
⁡ and N
max
⁡. Furthermore, the variation of d
max
⁡ has a greater impact on the throughput than that of N
max
⁡. When the number of users is small, larger value of d
max
⁡ or smaller value of N
max
⁡ can improve the throughput for S-DCRP and P-DCRP schemes and vice versa.Figure 2
Throughput versusN with different values of d
max
⁡ and N
max
⁡.It may be misleading to see that clusters formed by our scheme consume more energy because of more active participation in thiscluster delivery mode. Indeed, extra energy consumption is used for more file sharing in socially well connected clusters. Therefore, to tell a more balanced story, Figure 3 plots the energy efficiency for all schemes, in which our scheme results in a higher energy efficiency than other schemes.Figure 3
Energy efficiency versusN with different values of d
max
⁡ and N
max
⁡.Next, we consider different schemes for different social trust values ofq
1, q
2, and q
3. As shown in Figure 4, the S-DCRP scheme exhibits a higher throughput than other schemes under two groups of q
1, q
2, and q
3 values. Larger values of q
1, q
2, and q
3 have a positive impact on the throughput for all schemes.Figure 4
Throughput versusN with different values of q
1, q
2, and q
3.Comparing clusters formed by different methods, Figure5 demonstrates energy efficiency from different solutions. We find that larger values for q
1, q
2, and q
3 lead to higher energy efficiency for S-DCRP and P-DCRP schemes. This confirms that our novel proposed scheme has better performance in terms of the energy efficiency than other schemes.Figure 5
Energy efficiency versusN with different values of q
1, q
2, and q
3.We also examine the performance of different schemes with different values ofN. From Figure 6, we can see that more nodes lead to higher system throughput for all schemes. Among algorithms in comparison, for moderate value of d
max
⁡, our proposed S-DCRP scheme exhibits superior performance in throughput. Figure 7 indicates the performance on energy efficiency for all schemes under comparison. For moderate d
max
⁡, our proposed SD-CRP scheme can achieve better energy efficiency than other schemes.Figure 6
Throughput versusd
max
⁡ with different values of N.Figure 7
Energy efficiency versusd
max
⁡ with different values of N.


### 6.2.  Request Mode in Clusters

In this simulation scenario, we fixL
=
1 Mbit and W
0
=
10MHz. We examine the performance of different schemes for various values of d
max
⁡ and N
max
⁡. From Figure 8, the S-DCRP scheme has a higher throughput than other schemes as N
max
⁡ varies. Further, the throughput for all schemes becomes larger when the number of users increase. Figure 9 shows that clusters from our scheme consumes less energy than others, since we allow file sharing for the optimal user with the best channel gain. In addition, our consideration of social distance increases the probability of file sharing, and this involves an overall energy consumption reduction. Figure 10 provides the energy efficiency for all schemes, showing higher energy efficiency for clusters formed by the proposed scheme. Because of the reduced bandwidth per user in this fixed bandwidth scenario, the energy efficiency for all schemes worsens when the number of users becomes larger.Figure 8
Throughput versusN with different values of d
max
⁡ and N
max
⁡.Figure 9
Energy consumption versusN with different values of d
max
⁡ and N
max
⁡.Figure 10
Energy efficiency versusN with different values of d
max
⁡ and N
max
⁡.We then illustrate the cluster performance from different clustering schemes for differentq
1, q
2, and q
3. Figure 11 shows that clusters from the S-DCRP scheme achieve higher throughput than others. As we increase q
1, q
2, and q
3, the throughput of clusters also improves. From the energy consumption of this request mode, clusters created by our scheme also consume less energy when compared with other schemes and achieve higher energy efficiency as shown in Figure 12.Figure 11
Throughput versusN with different values of q
1, q
2, and q
3.Figure 12
Energy efficiency versusN with different values of q
1, q
2, and q
3.Finally, we demonstrate the clustering performance of different schemes for different values ofN. As shown in Figure 13, with moderate d
max
⁡, the throughput for clusters decreases with increasing d
max
⁡. Also, the throughput for S-DCRP scheme is below that of P-DCRP scheme when d
max
⁡ is large. When N becomes larger, throughput worsens for all schemes. Figure 14 shows that our clustering scheme leads to higher energy efficiency than other schemes under comparison.Figure 13
Throughput versusd
max
⁡ with different values of N.Figure 14
Energy efficiency versusd
max
⁡ with different values of N.


## 6.1. Cluster Delivery Mode

In this simulation scenario, we letL
=
1 Mbit and W
=
1MHz. We test the performance of different schemes for various values of d
max
⁡ and N
max
⁡. Figure 2 shows that the throughput for all schemes grows with increasing number of users. However, the S-DCRP scheme achieves a higher throughput than other schemes for different values of d
max
⁡ and N
max
⁡. Furthermore, the variation of d
max
⁡ has a greater impact on the throughput than that of N
max
⁡. When the number of users is small, larger value of d
max
⁡ or smaller value of N
max
⁡ can improve the throughput for S-DCRP and P-DCRP schemes and vice versa.Figure 2
Throughput versusN with different values of d
max
⁡ and N
max
⁡.It may be misleading to see that clusters formed by our scheme consume more energy because of more active participation in thiscluster delivery mode. Indeed, extra energy consumption is used for more file sharing in socially well connected clusters. Therefore, to tell a more balanced story, Figure 3 plots the energy efficiency for all schemes, in which our scheme results in a higher energy efficiency than other schemes.Figure 3
Energy efficiency versusN with different values of d
max
⁡ and N
max
⁡.Next, we consider different schemes for different social trust values ofq
1, q
2, and q
3. As shown in Figure 4, the S-DCRP scheme exhibits a higher throughput than other schemes under two groups of q
1, q
2, and q
3 values. Larger values of q
1, q
2, and q
3 have a positive impact on the throughput for all schemes.Figure 4
Throughput versusN with different values of q
1, q
2, and q
3.Comparing clusters formed by different methods, Figure5 demonstrates energy efficiency from different solutions. We find that larger values for q
1, q
2, and q
3 lead to higher energy efficiency for S-DCRP and P-DCRP schemes. This confirms that our novel proposed scheme has better performance in terms of the energy efficiency than other schemes.Figure 5
Energy efficiency versusN with different values of q
1, q
2, and q
3.We also examine the performance of different schemes with different values ofN. From Figure 6, we can see that more nodes lead to higher system throughput for all schemes. Among algorithms in comparison, for moderate value of d
max
⁡, our proposed S-DCRP scheme exhibits superior performance in throughput. Figure 7 indicates the performance on energy efficiency for all schemes under comparison. For moderate d
max
⁡, our proposed SD-CRP scheme can achieve better energy efficiency than other schemes.Figure 6
Throughput versusd
max
⁡ with different values of N.Figure 7
Energy efficiency versusd
max
⁡ with different values of N.


## 6.2.  Request Mode in Clusters

In this simulation scenario, we fixL
=
1 Mbit and W
0
=
10MHz. We examine the performance of different schemes for various values of d
max
⁡ and N
max
⁡. From Figure 8, the S-DCRP scheme has a higher throughput than other schemes as N
max
⁡ varies. Further, the throughput for all schemes becomes larger when the number of users increase. Figure 9 shows that clusters from our scheme consumes less energy than others, since we allow file sharing for the optimal user with the best channel gain. In addition, our consideration of social distance increases the probability of file sharing, and this involves an overall energy consumption reduction. Figure 10 provides the energy efficiency for all schemes, showing higher energy efficiency for clusters formed by the proposed scheme. Because of the reduced bandwidth per user in this fixed bandwidth scenario, the energy efficiency for all schemes worsens when the number of users becomes larger.Figure 8
Throughput versusN with different values of d
max
⁡ and N
max
⁡.Figure 9
Energy consumption versusN with different values of d
max
⁡ and N
max
⁡.Figure 10
Energy efficiency versusN with different values of d
max
⁡ and N
max
⁡.We then illustrate the cluster performance from different clustering schemes for differentq
1, q
2, and q
3. Figure 11 shows that clusters from the S-DCRP scheme achieve higher throughput than others. As we increase q
1, q
2, and q
3, the throughput of clusters also improves. From the energy consumption of this request mode, clusters created by our scheme also consume less energy when compared with other schemes and achieve higher energy efficiency as shown in Figure 12.Figure 11
Throughput versusN with different values of q
1, q
2, and q
3.Figure 12
Energy efficiency versusN with different values of q
1, q
2, and q
3.Finally, we demonstrate the clustering performance of different schemes for different values ofN. As shown in Figure 13, with moderate d
max
⁡, the throughput for clusters decreases with increasing d
max
⁡. Also, the throughput for S-DCRP scheme is below that of P-DCRP scheme when d
max
⁡ is large. When N becomes larger, throughput worsens for all schemes. Figure 14 shows that our clustering scheme leads to higher energy efficiency than other schemes under comparison.Figure 13
Throughput versusd
max
⁡ with different values of N.Figure 14
Energy efficiency versusd
max
⁡ with different values of N.


## 7. Conclusion

This paper studies D2D clustering based on CRP and DCRP. We propose a multiobjective clustering approach based on CRP that allows each new device to select a cluster for improving link rate for D2D underlay in cellular networks. For D2D overlay, we propose a novel clustering scheme by incorporating both social and physical relationships among D2D users. Furthermore, we present performance analysis of D2D clusters in different content sharing modes. Our results demonstrate the advantages of our proposed scheme in terms of system throughput and energy consumption, as well as energy efficiency.



---

*Source: 165608-2015-08-31.xml*