<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">CS</journal-id><journal-title-group><journal-title>Circuits and Systems</journal-title></journal-title-group><issn pub-type="epub">2153-1285</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/cs.2023.147004</article-id><article-id pub-id-type="publisher-id">CS-129125</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject><subject> Engineering</subject><subject> Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Simulation of a Prototype 5G Network Integrating D2D Communication and MEC Technology
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Abdou</surname><given-names>Karim Farota</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Harouna</surname><given-names>Moussa Sanghotte</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Salick</surname><given-names>Diagne</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Babacar</surname><given-names>Niang</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Bouya</surname><given-names>Diop</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Laboratoire des Sciences de l’Atmosphère et de l’Océan—Matériaux, Energie et Dispositifs, Université Gaston Berger de Saint-Louis, Saint-Louis, Senegal</addr-line></aff><pub-date pub-type="epub"><day>17</day><month>11</month><year>2023</year></pub-date><volume>14</volume><issue>07</issue><fpage>29</fpage><lpage>38</lpage><history><date date-type="received"><day>6,</day>	<month>June</month>	<year>2023</year></date><date date-type="rev-recd"><day>28,</day>	<month>July</month>	<year>2023</year>	</date><date date-type="accepted"><day>31,</day>	<month>July</month>	<year>2023</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  In this paper, we study the coexistence of two key technologies in the same fifth-generation network, namely D2D (Device-to-Device) communication and MEC (Multi-Access Edge Computing) technology. These two promising technologies each have important roles to play in future telecommunications networks. D2D communication is a technology that aims to improve communication efficiency, increase overall throughput, and decrease latency. Multi-Access Edge Computing, a promising new concept, overcomes the burden of core cloud servers. This makes it possible to provide large storage, compute, and resource capacities to mobile edge nodes. With its closest deployment to users, it significantly reduces end-to-end transmission time. Our architecture consists of an access network and a central network, a base station (gNodeB), users, a
  n
   MEC server and a gateway (UPF) to connect it to the RAN (Radio Access Network) of the core network. The base station controls communication by managing signaling and interference. The MEC server is placed next to the BS to provide data to the devices. It plays the role of the cloud that is located in the core network and allows you to store data and then do calculations for good communication between devices. Finally, we did a simulation using the OMNeT software. The results showed us that the data transmission passed well between the end devices, the antennas and the MEC server with very low latency and reliability.
 
</p></abstract><kwd-group><kwd>D2D</kwd><kwd> MEC</kwd><kwd> Edge</kwd><kwd> Computing</kwd><kwd> Basic Station</kwd><kwd> OMNeT</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>The 5G is a new generation of mobile telecommunications [<xref ref-type="bibr" rid="scirp.129125-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.129125-ref2">2</xref>] , which aims to offer sufficient speeds and very high bandwidth. Its mission is to meet the multiple needs of users by offering a smart, fast and efficient network. We will first briefly recall the evolution of the generations of the technology before theoretically studying 5G technology with its challenges and requirements.</p><p>The Next Generation Mobile Network (NGMN) leverages the structural separation of hardware and software, as well as the programmability offered by SDN and NFV [<xref ref-type="bibr" rid="scirp.129125-ref3">3</xref>] . As such, the 5G architecture is a native SDN/NFV architecture covering aspects ranging from devices, (mobile/fixed) infrastructure, network functions, value enabling capabilities and all the management functions to orchestrate the 5G system. APIs are provided on the relevant reference points to support multiple use cases, value creation and business models.</p><p>The architecture comprises three layers and an E2E (End to End) management and orchestration entity (<xref ref-type="fig" rid="fig1">Figure 1</xref>).</p><p>The architecture and principles described above (<xref ref-type="fig" rid="fig1">Figure 1</xref>) lead to emergence of a set of key components and terminology of a 5G system, as described below:</p><p>• The hardware and software basis for the 5G network , the 5G infrastructure (5GI);</p><p>• The 5G end-to-end management and orchestration entity (5GMOE);</p><p>• The associated 5GI (including any relaying devices) and the 5GMOE supporting communication to and from 5G devices (5GN);</p><p>• The equipment used to connect to a 5G network to obtain a communication service, 5G Divice (5GD);</p><p>• A communications system comprising a 5G network and 5G devices (5GSYS);</p><p>• A 5G slice (5GSL) is a set of 5GFs and associated device functions set up within the 5G system that is tailored to support the communication service to a particular type of user or service.</p><p>Device-to-device (D2D) communication [<xref ref-type="bibr" rid="scirp.129125-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.129125-ref5">5</xref>] is one of the most important technologies in 5G. It allows for the fast transmission of large amounts of data between two devices. In this part, we will discuss some aspects to better understand the technology: its categorization, classification, challenges, and applications.</p><p>The Multi-access Edge Computing (MEC) standard [<xref ref-type="bibr" rid="scirp.129125-ref5">5</xref>] [<xref ref-type="bibr" rid="scirp.129125-ref6">6</xref>] enables the movement of IT traffic and services from a centralized cloud to an edge network closer to the customer. Instead of sending all the data to be processed to a cloud, the edge network analyzes, processes, and stores the data. This reduces latency and brings real-time performance to high-bandwidth applications.</p></sec><sec id="s2"><title>2. Architecture Model of a 5G Network Integrating D2D and MEC</title><p>We consider a device-to-device communication scenario in a 5G cellular network integrating a Multi-Access Edge Computing (MEC) server next to the base station (gNodeB) (<xref ref-type="fig" rid="fig2">Figure 2</xref>).</p><p>In traditional cellular architecture, the operator still manages data and signaling for communications. The data sent from the EU travels through the entire network to the data center. As a result, latency is likely to be quite long. Today, with the arrival of IoT, the amount of data has become very important. This can cause congestion at the base station and central servers of the network. Thus, to unload BS, D2D technology is one of the promising solutions. Unfortunately, communication will sometimes require operator control. To lighten the load on the core grid, a new MEC technology is being considered.</p><p>For a solution to all these problems, we propose a device-to-device (D2D) communication scenario with the MEC server in a 5G cellular network. Our architecture, shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>, consists of an access network and a central office network. It consists of a base station (gNodeB), users (car 1, 2, 3), a MEC server and a gateway (UPF) to connect it to the RAN of the core network. The base station controls communication by managing signaling and interference. The MEC server is placed next to the BS to provide data to the devices. It plays the role of the cloud that is in the core network. The MEC server stores the data and then does the calculations for good communication between the devices.</p><p>To carry out this work, we had to use the following material and logistical equipment (<xref ref-type="table" rid="table1">Table 1</xref>).</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Material and logistical equipment</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Param&#232;ters</th><th align="center" valign="middle" >Values</th></tr></thead><tr><td align="center" valign="middle" >UE (car&#224;)</td><td align="center" valign="middle" >3</td></tr><tr><td align="center" valign="middle" >gNodeB</td><td align="center" valign="middle" >1</td></tr><tr><td align="center" valign="middle" >MEC server (MEC Host)</td><td align="center" valign="middle" >1</td></tr><tr><td align="center" valign="middle" >UPF</td><td align="center" valign="middle" >1</td></tr><tr><td align="center" valign="middle" >Router</td><td align="center" valign="middle" >1</td></tr><tr><td align="center" valign="middle" >Use Case</td><td align="center" valign="middle" >uRLLC</td></tr><tr><td align="center" valign="middle" >Sim-time-limit</td><td align="center" valign="middle" >1 s</td></tr></tbody></table></table-wrap></sec><sec id="s3"><title>3. Key Performance Indicators (KPIs)</title><p>The key performance indicators (KPIs) of our solution are related to the uRLC (ultra Reliable Low latency Communication) use case, i.e. for ultra-reliable and low-latency communications.</p><sec id="s3_1"><title>3.1. Latency</title><p>It is the contribution of the radio network to the time between the time the source sends a packet and the time the destination receives it (in ms). It is defined as the one-way time that one must successfully deliver a package/message.</p><p>This requirement is defined at fine devaluations in the eMBB and uRLC use case.</p><p>The minimum requirements for user plane latency are [<xref ref-type="bibr" rid="scirp.129125-ref7">7</xref>] :</p><p>- 4 ms for eMBB;</p><p>- 1 ms for uRLC.</p></sec><sec id="s3_2"><title>3.2. Mobility Downtime</title><p>Mobility downtime is the shortest system-loaded time that a user terminal cannot exchange user plane packets with a base station during transitions.</p><p>This requirement is defined at fine devaluations in the eMBB and uRLC usage scenarios. The minimum requirement for mobility downtime is 0 ms.</p></sec><sec id="s3_3"><title>3.3. Reliability</title><p>Reliability refers to the ability to transmit a given amount of traffic in a predetermined amount of time with a high probability of success [<xref ref-type="bibr" rid="scirp.129125-ref8">8</xref>] .</p></sec></sec><sec id="s4"><title>4. Simulation and Results</title><sec id="s4_1"><title>4.1. Description of the Simulation Tools</title><p>OMNeT++ is a well-known discrete-event simulation framework that can be used to model virtually any type of network, such as wired, wireless, on-chip, sensor, photonics, and more are modules, which can be simple or compound. The modules exchange messages via connections connecting their doors, which act as interfaces. A network is a special compound module with no doors to the outside world that sits at the top of the hierarchy. Connections must follow the module hierarchy: with reference to <xref ref-type="fig" rid="fig3">Figure 3</xref>, single module 3 cannot connect directly to module 2, but must instead pass through the compound module door.</p><p>We installed the OMNeT 5.6.2 software and then downloaded and integrated the following libraries: Inet and Simu5G.</p><p>Inet is a template library for OMNeT++. It implements models of many components of a communication network, such as communication protocols, network nodes, connections, and so on. Inet contains templates for the Internet stack (TCP, UDP, IPv4, IPv6, OSPF, IEEE 802.11, etc.), and supports the development of custom mobility models, QoS architecture, and more.</p><p>Simu5G is a simulator for 5G New Radio and LTE/LTE-A networks for OMNeT++ and Inet Frameworks.</p><p>Simu5G simulates the data plane of the 5G RAN and core network. It enables the simulation of 5G communications in frequency division duplexing (FDD) and time division duplexing (TDD) modes, with heterogeneous gNB (macro, micro, pico, etc.), possibly communicating via the X2 interface to support transfer and intercellular interference coordination. Device-to-device communications and dual connectivity between an eNB (LTE Base Station) and a gNB (5G NR Base Station) are also available.</p><p>To run OMNeT, we use the following command in <xref ref-type="fig" rid="fig4">Figure 4</xref>: omnetpp.</p></sec><sec id="s4_2"><title>4.2. Simulation</title><p>➢ Network Configuration</p><p>We have configured our architecture on the file written in Network Description Language (NED) and the parameter values are written in the initiation file (INI) see appendix. <xref ref-type="fig" rid="fig5">Figure 5</xref> shows the architecture configured in the *.ned file.</p><p>➢ Network Simulation</p><p>After the network was launched, there was an initialization phase for communication between the devices (<xref ref-type="fig" rid="fig6">Figure 6</xref>).</p><p>➢ Results</p><p>In <xref ref-type="fig" rid="fig7">Figure 7</xref>, we first see the communication between the devices without the intervention of the operator.</p><p><xref ref-type="fig" rid="fig8">Figure 8</xref> shows the communication between the devices under the control of the base station, i.e. the operator. Packets from each device will travel to the central cloud (CC) via the base station (gNodeB1).</p><p>With a large amount of data, there will be congestion in the core network. So to offload the latter, we introduce the MEC server next to the users to store the data (<xref ref-type="fig" rid="fig9">Figure 9</xref>). This will make it possible to have communication with very low latency and to have a central network offload.</p><p><xref ref-type="fig" rid="fig9">Figure 9</xref> shows the communication between the devices, the base station (gNodeB) and the MEC server.</p><p>We notice the communication between the users and the MEC through the BS works well because the packets coming from the 3 UEs will pass through the station and then go to the MEC server. So our MEC server plays the same role as the central server. It can be applied in emergency communications such as V2I (Car to Infrastructure), Public Safety, etc.</p><p>The performance of the MEC server is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>0 where it shows the average reaction time of each server entity such as the Mobile Edge Host (MEH), the Mobile Edge Application (MEA).</p><p>The average transmission time from gNodeB to ME Host (Mobile Edge Host) and vice versa is 0.19 ms and ME Virtualization is 0.11 ms.</p><p><xref ref-type="fig" rid="fig1">Figure 1</xref>1 shows the wait time for the 3 packets to be processed by the MEC server.</p><p>This histogram shows the time it took for the 3 packets from the users to complete. The time is 3 ms for the 3 users packets, including 1 ms per packet. Thus, the objective of 5G as a function of latency time is achieved (1 ms).</p><p>To see the reliability of the network, let’s look at the results of the data sent by the machine 192 .168.4.1 and received by 10.0.0.2 (<xref ref-type="fig" rid="fig1">Figure 1</xref>2).</p><p>We see that the data that was in the queue (39 bytes) when sending is all received (39 bytes).</p><p>The following results (<xref ref-type="fig" rid="fig1">Figure 1</xref>3) also show that the packets sent are received 100% with the same size and length.</p><p>These results show us the system’s ability to transmit a given amount of traffic in a predetermined amount of time with an almost 100% probability of success. This shows the authenticity and reliability of this network.</p></sec></sec><sec id="s5"><title>5. Conclusion</title><p>This last chapter was instructive both in terms of the OMNeT software and the implementation of the 5G network. First, we found a network architecture that meets our proposed solution. Then, we simulated the prototype in the OMNeT software with the Simu5G library. We visualized the results and showed that the application of our solution, in the uRLLC use case, was successful because we have high reliability and low latency in the communication system.</p></sec><sec id="s6"><title>Acknowledgements</title><p>Many thanks to the Research Commission of the Training and Research Unit for Applied Sciences and Technology (UFR SAT) of the Gaston Berger University of Saint-Louis and to the African Centre of Excellence for Mathematics and ICT (CEAMITIC) of the UGB for their financial support.</p></sec><sec id="s7"><title>Conflicts of Interest</title><p>The authors declare no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s8"><title>Cite this paper</title><p>Farota, A.K., Sanghotte, H.M., Diagne, S., Niang, B. and Diop, B. (2023) Simulation of a Prototype 5G Network Integrating D2D Communication and MEC Technology. Circuits and Systems, 14, 29-38. https://doi.org/10.4236/cs.2023.147004</p></sec></body><back><ref-list><title>References</title><ref id="scirp.129125-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">https://www.anfr.fr/fileadmin/mediatheque/documents/expace/CND/Rapport-ANFR-presentation-generale-5G.pdf</mixed-citation></ref><ref id="scirp.129125-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Nardini, G., Sabella, D., Stea, G., Thakkar, P. and Virdis, A. (2020) Simu5G—An OMNeT++ Library for End-to-End Performance Evaluation of 5G Networks. IEEE Access, 8, 181176-181191. https://doi.org/10.1109/ACCESS.2020.3028550</mixed-citation></ref><ref id="scirp.129125-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Salahdine, F., Lui, Q. and Han, T. (2022) Towards Secure and Intelligent Network Slicing for 5G Networks. IEEE Open Journal of the Computer Society, 3, 23-38.https://doi.org/10.1109/OJCS.2022.3161933</mixed-citation></ref><ref id="scirp.129125-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Tu, R., Xiang, R., Xu, Y. and Mei, Y. (2019) A Review in the Core Technologies of 5G: Device-to-Device Communication, Multi-Access Edge Computing and Network Function Virtualization. International Journal of Communications, Network and System Sciences, 12, 125-150. https://doi.org/10.4236/ijcns.2019.129010</mixed-citation></ref><ref id="scirp.129125-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Tehrani, M.N., Uysal, M. and Yanikomeroglu, H. (2014) Device-to-Device Communication in 5G Cellular Networks: Challenges, Solutions, and Future Directions. IEEE Communications Magazine, 52, 86-92.https://doi.org/10.1109/MCOM.2014.6815897</mixed-citation></ref><ref id="scirp.129125-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Liyanage, M., Porambage, P., Ding, A.Y. and Kalla, A. (2021) Driving Forces for Multi-Access Edge Computing (MEC) IoT Integration in 5G. ICT Express, 7, 127-137. https://doi.org/10.1016/j.icte.2021.05.007</mixed-citation></ref><ref id="scirp.129125-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Sabella, D., Vaillant, A., Kuure, P., Rauschenbach, U. and Giust, F. (2016) Mobile-Edge Computing Architecture: The Role of MEC in the Internet of Things. IEEE Consumer Electronics Magazine, 5, 84-91.https://doi.org/10.1109/MCE.2016.2590118</mixed-citation></ref><ref id="scirp.129125-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Lin, X.Q., Andrews, J.G., Ghosh, A. and Ratasuk, R. (2013) An Overview on 3GPP Device-to-Device Proximity Services. IEEE Communications Magazine, 52, 40-48.https://doi.org/10.1109/MCOM.2014.6807945</mixed-citation></ref></ref-list></back></article>