摘要
With increasing the demand for transmitting secure information in wireless networks,deviceto-device(D2D)communication has great potential to improve system performance.As a well-known security risk is eavesdropping in D2D communication,ensuring information security is quite challenging.In this paper,we first obtain the closed-forms of the secrecy outage probability(SOP)and the secrecy ergodic capacity(SEC)for direct and decodeand-forward(DF)relay modes.Numerical results are presented to verify the theoretical results,and these results show the cases that the DF relay mode improves security performance compared to the direct mode at long distances between the transmitter and receiver nodes.Further,we look into the optimization problems of secure resource allocation in D2D communication to maximize the SEC and to minimize the SOP by considering the strictly positive secrecy capacity constraint as a mixed-integer non-linear programming(MINLP)problem.In the continue,we convert the MINLP to convex optimization.Finally,we solve this program with a dual method and obtain an optimal solution in the direct and DF relay modes.