Cross-layer latency analysis for 5G NR in V2X communications
Cross-layer latency analysis for 5G NR in V2X communications
Horta, Jorge;Siller, Mario;Villarreal-Reyes, Salvador
2025-01-09 00:00:00
a1111111111 a1111111111 The 5G network was developed to push the capabilities of wireless networks to previously a1111111111 a1111111111 unseen performance limits, e.g., transmission rates of several gigabits per second, latency a1111111111 of less than a millisecond, and millions of devices connected at the same time. To meet these requirements, it is necessary to access new spectrum (the so-called millimeter waves) and use techniques such as Massive MIMO (Multiple-Input Multiple-Output) and beamforming. This required the design of a new radio interface, known as 5G NR, that OPENACCESS includes improvements to its physical components and new protocols. The performance of the 5G network will depend heavily on the behavior of these new protocols under certain Citation: Horta J, Siller M, Villarreal-Reyes S (2025) Cross-layer latency analysis for 5G NR in configuration parameters, traffic conditions, device density, and network architecture. This V2X communications. PLoS ONE 20(1): e0313772. paper introduces an analytical model for the performance evaluation of 5G NR. The devel- https://doi.org/10.1371/journal.pone.0313772 oped model describes the behavior of the different layer 1 and 2 protocols involved in 5G Editor: Muhammad Faheem, University of Vaasa: radio communication. Using the model, it is possible to evaluate the performance of 5G NR Vaasan Yliopisto, FINLAND in terms of throughput and latency, two key performance metrics used to describe QoS Received: May 7, 2024 (Quality of Service) thresholds of different applications. The protocol layer approach gives Accepted: October 31, 2024 the model sufficient granularity to identify critical behaviors that significantly impact perfor- mance. This can help focus efforts on improving these key points or propose improvements/ Published: January 9, 2025 modifications to the operation of network protocols or devices. The use of this model for per- Copyright:© 2025 Horta et al. This is an open formance evaluation is exemplified by studying a Remote Driving scenario operated over access article distributed under the terms of the Creative Commons Attribution License, which 5G. This scenario has very stringent delay requirements, which, according to the model’s permits unrestricted use, distribution, and results, can be satisfied if the network conditions are adequate. This model and its results reproduction in any medium, provided the original can be used as a starting point for performance evaluations of application involving end-to- author and source are credited. end (E2E) communications. Data Availability Statement: The simulation results presented in this article are generated with a custom developed simulator. Code is available on Github at https://github.com/JorgeHSa/ 5GNRSimulation. Funding: This research was partially supported by 1 Introduction a grant from the Consejo Nacional de Humanidades, Ciencias y Tecnologıas The fifth-generation (5G) of mobile networks aim to provide performance that significantly (CONAHCYT), awarded to Jorge Horta (CVU No. exceeds the one offered by fourth-generation (4G) networks. For instance, provisioning of 854262). The funder had no role in study design, peak data rates of 20 Gbps, latencies of 1ms, successful transmission probabilities above data collection and analysis, decision to publish, or preparation of the manuscript. 99.999%, high density of connected devices (up to 1000000 devices/km ), and improved PLOS ONE | https://doi.org/10.1371/journal.pone.0313772 January 9, 2025 1 / 36 PLOS ONE Cross-layer latency analysis for 5G NR in V2X communications Competing interests: The authors have declared network performance (Table 1.1 in [1]), should be feasible with 5G deployments. Different that no competing interests exist. organizations used these new performance limits to define use cases to guide the development of 5G technology. For instance, IMT-2020 defines three key use cases available for 5G. These cases, shown in Fig 1, are Enhanced Mobile Bandwidth (eMBB), Massive Machine Type Com- munications (mMTC), and Ultra Reliable Low Latency Communications (URLLC). The IMT-2020 classification represents these use cases as a triangle, with each vertex repre- senting a case with different requirements. The eMBB case focuses on improving the transmis- sion rate, mMTC increasing the number of connected devices, and URLLC reducing latency. Different applications can be placed in this triangle depending on the combination of their specific requirements. Consider the mission-critical and self-driving car applications, both of which require a low delay time, thus they are located near the URLLC vertex. The Smart City application favors connecting more devices simultaneously, hence it is located close to the URLLC vertex. On the other hand, video applications, remote work, or augmented reality require higher bandwidth. To achieve these performance goals, 5G standardization bodies have defined a New Radio (NR) interface which comprises access to new spectrum, massive multi-input multi-output beamforming, network slicing, dual connectivity with 4G, and cloud and edge computing support [2]. Thus, compared to 4G, the introduction of 5G NR required the development of a new protocol stack (layers 1 and 2) to integrate and access these technol- ogies. In addition, in 5G, there is the possibility of enabling edge computing deployments, which brings the processing closer to the user and allows the most demanding performance Fig 1. IMT-2020 use case and scenarios [4]. https://doi.org/10.1371/journal.pone.0313772.g001 PLOS ONE | https://doi.org/10.1371/journal.pone.0313772 January 9, 2025 2 / 36 PLOS ONE Cross-layer latency analysis for 5G NR in V2X communications limits (such as URLLC [3]) to be met. Although protocols and deployment scenarios are designed to ensure that applications meet specific Quality of Service (QoS) metrics, varying network conditions may make this unsatisfactory. It is necessary to evaluate the network con- figuration under different conditions to foresee behavior and make adjustments to solve it. Analytical models are attractive tools for this. This paper presents an analytical model for performance evaluation of the 5G NR protocol stack. This model is developed using a layered approach to consider the individual behavior of all protocols in the stack associated with 5G NR communication. The model focuses on describing in sufficient detail the contribution each of the stack’s protocols has on perfor- mance. The developed model is used to evaluate the performance of an application deployed in 5G with demanding delay requirements: Remote Driving. The main objectives of this work are: • Identify the behavior of 5G NR layer 1 and 2 protocols. • Develop analytical models for each of these protocols. • Integrate the models into a 5G NR model that considers all the individual contributions of the protocols. • Conduct a performance evaluation for the remote driving application deployed in 5G. The rest of the paper is organized as follows: Section 2 briefly introduces the architecture of a network for Remote Driving applications supported by 5G, and the state-of-the-art works relevant to it. Section 3 presents the development of the model, with a focus on analyzing and modeling the different protocols involved in radio communication. Section 4 reports the per- formance evaluation results for a remote driving application deployed in 5G NR. Finally, Sec- tion 6 discusses the developed model and the results obtained using it and concludes the paper. 2 Background and related work Remote driving, part of teleoperation systems, allows a driver (either human or an app) to con- trol a vehicle remotely. The 5G Automotive Association (5GAA) describes teleoperated driving as a use case associated with the autonomous driving group. Specifically, teleoperated driving is a Cellular V2X (C-V2X) use case in which a remote driver takes control of a vehicle to drive it efficiently and safely from the current location to its destination [5]. Teleoperated systems are mainly made up of three elements: a robot with sensors and actuators that allow the opera- tor to assess the environment and perform actions, generally with one or more cameras; a communication element, usually a wireless network, that allows the robot and the operator to exchange sensor data and control commands; and a control station, which enables the opera- tor to view and interpret sensing and video data as well as input devices that allow the operator to send control commands [6]. Translating this to the 5G remote driving use case, it follows that: • Robot: It is a system located within the vehicle that is capable of interfacing with control components (i.e., steering wheel, brake, throttle, etc.), in addition to one or more cameras and sensors that allow it to send information about the vehicle state and its surroundings. • Communication element: The 5G network establishes a communication link between the robot and the operator. • Control station: The remote site from which the operator will control the vehicle. It is usually equipped with one or several display elements to show the operator the video and data PLOS ONE | https://doi.org/10.1371/journal.pone.0313772 January 9, 2025 3 / 36 PLOS ONE Cross-layer latency analysis for 5G NR in V2X communications Fig 2. Architecture for a 5G-enabled centralized remote driving application. https://doi.org/10.1371/journal.pone.0313772.g002 sensed by the vehicle and input devices that will enable commands to be captured and sent (i.e., keyboard, joystick, racing wheel, etc.). The architecture for a centralized remote driving application built with the above elements is shown in Fig 2a. Centralized deployment adds delays associated with traversing the 5G core network and the Internet. These delays may compromise fulfilling the stringent requirements of the remote driving application. Thus, the 5GAA proposed deployment options based on edge computing [7]. They aim to bring computing close to the vehicles to reduce the network delay. Based on these deployments, the control station for remote driving can be located on a node in the 5G Core Network or a site adjacent to the 5G gNB (Fig 2b). This can be considered as the baseline scenario for delay evaluation, because if delay requirements are not fulfilled for this case they will not be fulfilled for deployments where the control station is located further away from the 5G gNB. The evaluation requires estimating the 5G NR link delay under PLOS ONE | https://doi.org/10.1371/journal.pone.0313772 January 9, 2025 4 / 36 PLOS ONE Cross-layer latency analysis for 5G NR in V2X communications different network conditions and configurations. Then, based on the obtained results, it is pos- sible to decide on the location of the control station that meets the delay requirements for remote driving. Thus, to demonstrate its usefulness, the analytical model introduced in this work is used to evaluate the delay for a remote driving application deployed in a Multi-access Edge Computing (MEC) 5G NR deployment where the control station is located next to the gNB (see Fig 2b). However, it is important to note that the use of the model is not limited to remote driving applications. Several state-of-the-art articles have investigated the application of remote driving, as described below. The authors in [8] present a study of a remote driving application perfor- mance and driving experience through an LTE network. The authors develop a prototype of a system to simulate remote driving under different network delay conditions. This prototype driving task is based on video streams transmitted from the prototype vehicle to the remote driving station. LTE network delay conditions are emulated using a probability distribution obtained from field measurements. The objective is to compare the performance and the driv- ing experience for two different scenarios: random delay and constant delay. In the first case, video frames are displayed as soon as they arrive. Thus, they may experience jitter. In the sec- ond case, the video frames are delayed to match the maximum delay experienced by the net- work (358 ms). This is done to eliminate jitter and smooth out the displayed video. The results show that while network delay is the biggest challenge for remote driving, a scenario with high variability (jitter) negatively impacts driver performance. They found that the performance in a scenario with constant high delay (with no jitter) is similar to that observed in a scenario with no delay. Conversely, a variable delay scenario imposes a more significant mental and physical load, frustration, and effort on the driver. This is why it is concluded that reducing the network delay could be helpful, but achieving a stable network delay value might be a prefera- ble enhancement for remote driving. In [9], the authors design and evaluate a remote driving system supported by 4G and 5G networks. This work describes an architecture that allows the application of remote driving and implement this architecture in a field test using a Hardware-In-the-Loop (HiL) simula- tion. Both implementations are used to evaluate remote driving application delay, bandwidth, and reliability using 4G and 5G networks. The following use cases are considered: straight-line driving and slalom. Those cases are evaluated under different latency and packet loss probabil- ity conditions. For remote driving, the vehicle must transmit video and some control com- mands. This data is presented to the remote driver to make decisions and execute actions sent to the vehicle as control commands. After analyzing the results obtained, the authors con- cluded that 5G offers advantages over 4G in remote driving applications,i.e. 5G latency is half of 4G latency. Furthermore, they did not observe a strong correlation between network delay and driver performance. They conclude that remote driving applications can be feasible with current technology in a low-speed (less than 40 km/h) scenarios. In [10], the authors propose a framework for driving vehicles remotely and validate this framework through performance evaluation in a real network environment. To implement this framework, they propose an architecture in which the vehicle is connected to the remote driving station via a commercial 4G/5G network. The architecture includes a remote driving station and a vehicle capable of transmitting video and other signals. It also requires a control mechanism capable of implementing the control commands received from the driver into the vehicle. These requirements are met using an Openpilot system in the test vehicle (2019 Toyota Prius Hybrid) as a basis. The authors modified the Openpilot base system to provide the vehicle with all the functions required to be driven by a remote driver. Using this imple- mentation, two different scenarios are tested: a local and a remote scenario. In the first sce- nario, the driver and the vehicle are connected to the same wireless network, which offers the PLOS ONE | https://doi.org/10.1371/journal.pone.0313772 January 9, 2025 5 / 36 PLOS ONE Cross-layer latency analysis for 5G NR in V2X communications best case in terms of latency. In the second scenario, driving uses the commercially available 4G/5G network. After carrying out the different tests and analyzing the results, they conclude that control commands (sent from the remote driver to the vehicle) can experience an average delay of up to 32 ms and still allow remote driving in real-time. On the other hand, the average delay for streaming video is 680 ms, which would increase the difficulty of driving the vehicle remotely. In both cases, network performance is the main cause of delay, so the authors con- clude that these results can be improved with the next generation of mobile networks. The work [11] carries out a study on the remote control of a vehicle using video streams through wireless networks. Using a vehicle model and implementing a system based on the Robot Operating System (ROS), remote driving is enabled through a WiFi network that con- nects the vehicle and the remote driver. Driving tasks are guided by video streamed by the vehicle. The tests use three video-transmission protocols: ROS multi-computer communica- tion, UDP, and TCP. Additionally, an experiment is carried out in which the vehicle is driven based on the direct observation of the driver, which eliminates video delay and allows the impact of network latency to be measured. The different video transmission protocols are eval- uated in scenarios with different vehicle speeds. From the results, the authors conclude that remote vehicle operation is feasible if a low vehicle speed is maintained. It was also identified that the UDP-based stream offers the lowest latency for high-resolution video transmission compared to ROS and TCP. Another result found is that driver performance is more affected by delay jumps; thus, achieving a “deterministic delay” with low or no jitter is more important than a low delay with jitter. Much of the work related to remote driving is oriented towards experimental evaluation of driver performance, and aims to test the feasibility of such applications with current technolo- gies. Regarding analytical modeling, looking at works addressing Vehicle-to-Everything (VX2) scenarios is necessary. For instance, [12] presents an analytical 5G NR latency model in a V2X scenario where Vehicle-to-Network-to-Vehicle (V2N2V) communication is implemented. This model evaluates latency only at the radio level. The model considers different numerolo- gies (sub-carrier spacing or SCS, slot, and symbol duration, and Cyclic Prefixes), modulation and coding schemes, use of slots or mini-slots, dynamic or semi-static scheduling, different re- transmission mechanisms, as well as unicast or broadcast/multicast transmissions under dif- ferent traffic conditions. The authors use the model to assess the impact of different configura- tions on 5G delay and identify which ones meet the stringent latency and reliability requirements of V2X. This study is based on a cooperative lane change scenario enabled by V2N2V communication. The evaluation is carried out considering the requirements estab- lished by 3GPP associated with Low Level of Automation (LLoA) and High Level of Automa- tion (HLoA) [13]. These requirements are latencies of 25ms with 90% reliability for LLoA and 6ms with 99.99% reliability. From their results, the authors conclude that, at least at the radio level, 5G can be used for V2X services in an LLoA and periodic traffic environment. This is because all the evaluated scenarios had a latency of less than 6 ms in 90% of the cases. To com- ply with HLoA requirements, HARQ retransmissions are used. It is necessary to select the appropriate parameters (i.e., SCS and mini-slot) so as not to increase the radio latency and the required bandwidth. The impact of scheduling mechanisms on performance was also investi- gated. It was identified that semi-static scheduling is adequate to transmit periodic messages, while dynamic programming is more spectrum efficient for aperiodic messages. In the latter case, they demonstrated that the required control command exchange significantly affects the delay. Finally, the authors conclude that V2N2V 5G communication is suitable for V2X appli- cations with aperiodic traffic and non-strict latency requirements if the network load is low or medium and a high SCS value is used. PLOS ONE | https://doi.org/10.1371/journal.pone.0313772 January 9, 2025 6 / 36 PLOS ONE Cross-layer latency analysis for 5G NR in V2X communications The work [14] presents a model for V2X application delay in 5G. As an extension of [12], different 5G deployment scenarios are considered to enable V2X applications. The authors argue that the delay is affected by the configuration of the 5G network, the traffic load, and the deployment and location of the application server (AS) that hosts the V2X application. In this case, the flexibility of 5G allows different deployment scenarios where the AS can be located in a remote cloud (centralized), or it may be found somewhere in the 5G core or transport net- works and even be co-located with the gNB. Deployment scenarios for a cooperative lane change case are evaluated using the traffic and configurations introduced in [12]. Based on the evaluation results, the authors concluded that a centralized scenario (cloud AS) has difficulties meeting the strict delay and reliability requirements of V2X. It was also identified that locating the AS closer to the edge of the cell can reduce delay. Still, the configuration must be chosen carefully, and network dimensioning must be considered. Furthermore, [12] does not address the development of analytical models to calculate the delay introduced by the protocol stack in 5G NR. This paper addresses this issue and thus complements the results presented in [12]. Regarding the handling of different QoS profiles in 5G service we have some works, such as [36]. This paper proposes some Configured Grant (CG) scheduling algorithms that can be adapted to the strict requirements of URLLC. The proposed algorithms, sorted-OFDMA and Best-MatchOFDMA, RB utilization are evaluated under different conditions of packet size, numerology and allocated bandwidth. These algorithms are compared against the traditional 5G algorithm for CG, called SymOFDMA. The results presented seem to indicate that the pro- posed algorithms have a similar level of efficiency to SymOFDMA. The work [37] studies the QoS requirements for remote and automated driving in 5G. The author proposes prediction algorithms for adjust the QoS requirements to varying network conditions. These variant conditions depend on background traffic (non-driving related appli- cations) from connected vehicles in the same cell and adjacent cells. This should be reflected in the MAC layer scheduling mechanisms, where traffic can be differentiated. Using the Random Forest algorithm, predictions are generated for different conditions (number of vehicle, posi- tions and network loads) and different prediction windows. By simulation the scenario, it is concluded that the prediction algorithm performs adequately as long as the prediction window is a few seconds and degrades as the window grows. The authors of [38] propose a parametric model for evaluating the performance of teleoper- ated driving. Three application scenarios with different requirements are proposed: Driving, Parking and Supervision. An analytical model for QoE based on different KPIs for the main aspects influencing remote driving is developed. These are: Video Coding Quality, Macro- blocking and Delay. Using data sets obtained from 4G and 5G networks measured in the corri- dor between Spain and Portugal, the different KPIs are estimated for different network configurations and conditions. Based on the results obtained, the authors conclude that cur- rent networks could hardly meet the requirements of teleoperated driving. However, 5G Stand Alone deployments, dedicated channels (network slicing), and MIMO provided by new chip- sets could help meet these requirements. The scheduling and correct use of radio resources are critical to meeting the requirements of 5G applications and use cases. Therefore, the problem of scheduling and resource allocation has been addressed by different works in the state of the art. The work [39] proposes a resource allocation method aimed at jointly optimizing delay and power consumption in LTE-A net- works. This allocation uses the DELFBDO (delay and energyaware Levy flight Brownian movement-based dragonfly optimization) algorithm to define a 3-phase process to determine the best allocation of resources. Teh fist stage determine and verify the scheduling parameters. In the second stage a estimate a parameter (α) that is used to rank UE priority. The final stage designates resources based on the priority rank. This algorithm is compared with other state- PLOS ONE | https://doi.org/10.1371/journal.pone.0313772 January 9, 2025 7 / 36 PLOS ONE Cross-layer latency analysis for 5G NR in V2X communications Table 1. State of the art summary. Work Network Technique [8] LTE Prototype Model Simulation Full Stack [9] 4G, 5G Test Bed ✘ ✘ ✔ [10] 4G, 5G Test Bed ✘ ✘ ✔ [11] WiFi Test Bed ✘ ✘ ✔ [12] 5G Analytical Model ✔ ✘ ✘ [14] 5G Analyical Model ✔ ✘ ✘ [36] 5G Scheduling Algorithm ✔ ✘ ✘ [37] 5G QoS Prediction Algorithm ✔ ✘ ✘ [38] 5G Analytical Mode ✔ ✘ ✘ [39] 4G LTE-A Scheduling Algorithm ✔ ✔ ✘ [40] 5G Scheduling Algorithm ✔ ✔ ✘ https://doi.org/10.1371/journal.pone.0313772.t001 of-the-art algorithms by simulation. Although this algorithm is outperformed by other single- metric oriented approaches, the authors conclude that in a multi-metric approach the perfor- mance of the proposed algorithm is balanced while sustaining the lowest energy consumption. In [40] the Energy Aware Scheduling Algorithm (EASA) performance for a 5G Green Net- work is analyzed. The authors propose an energy-aware scheduling model that considers the characteristics of 5G Green Communications. They present an analytical model to describe the optimization problem. A simulation is conducted to evaluate the model performance. The proposed algorithm uses machine learning to allocate real-time resources based on network conditions and user demand. Simulation results show that there is a reduction in energy con- sumption while maintaining high performance. The authors conclude that using energy-aware models can contribute to a sustainable environment without affecting performance or incur- ring operational costs to the grid. Table 1 presents a summary of the state of the art reviewed. 3 5G NR cross-layer analytical modeling This paper focuses on 5G NR protocols that enable communication between the user device (UE), in this case, the vehicle, and the base station (gNB). The analysis is carried out with a pro- tocol layer approach to identify the relevant behaviors of these protocols that influence the communication performance, mainly throughput and latency. For 5G, the radio link enabling protocols are those of layers 1 and 2 of the OSI reference model. These protocols are shown in Fig 3. It should be noted that the L2 layer is divided into different sub-layers to abstract and sim- plify the behavior associated with it. The behavior of each of the protocols shown in Fig 3 is based on the 3GPP specifications used to develop the models in this work. Based on the sce- nario, the one-way delay (OWD) of the radio link can be defined as follows: radio ¼ delay þ delay þ delay þ delay þ delay ð1Þ OWD sdap pdcp rlc mac phy where delay represents the delay introduced by layer x with x2 {sdap, pdcp, rlc, mac, phy}. Similarly, the performance of the radio link can be defined as: radio ¼ minðth ; th ; th ; th ; th Þ ð2Þ Th sdap pdcp rlc mac phy with th , the protocol throughput for x2 {sdap, pdcp, rlc, mac, phy}. It is necessary to define PLOS ONE | https://doi.org/10.1371/journal.pone.0313772 January 9, 2025 8 / 36 PLOS ONE Cross-layer latency analysis for 5G NR in V2X communications Fig 3. 5G new radio protocols. https://doi.org/10.1371/journal.pone.0313772.g003 PLOS ONE | https://doi.org/10.1371/journal.pone.0313772 January 9, 2025 9 / 36 PLOS ONE Cross-layer latency analysis for 5G NR in V2X communications Fig 4. SDAP operation. https://doi.org/10.1371/journal.pone.0313772.g004 the performance of the different protocols to evaluate the models presented in Eqs 1 and 2. The remainder of this section describes the appropriate models for each of the protocols con- sidered in radio communication. 3.1 Service Data Adaptation Protocol (SDAP) sub-layer The Service Data Adaptation Protocol is the upper sub-layer protocol in L2. The function of SDAP is to manage different levels of QoS through traffic flows associated with each level [15]. This is handled by a QoS Flow Identifier (QFI) field included in the SDAP PDU header. On the transmitter side, the SDAP protocol receives IP packets, identifies the type of traffic by checking the appropriate field, and assigns a suitable identifier for this traffic (Fig 4a). After this, the SDAP PDU is generated, which will be retransmitted to the next layer (PDCP) in a virtual channel (radio bearer) on which packets with similar QoS requirements travel. On the receiver side, SDAP receives a PDU, from which the header is removed to identify its flow through the QFI field and then forwarded to the upper layer (Fig 4b). In the present model, all the packets transmitted by the device are considered to belong to the same class. Therefore, they are all processed similarly and retransmitted to the same virtual channel. Based on this behavior, SDAP can be identified as a store-and-forward element; thus, analyz- ing it as a queuing system is possible. For UL (Up-Link) on the transmitter side, video packets are assumed to follow a Poisson process. On the other hand, in DL (Down-Link), the packets from the control station arrive quasi-periodically; therefore, their arrival process is determin- istic. In both cases, the processing performed by SDAP is considered to have an exponential distribution. Based on this, the behavior of SDAP transmitter can be defined as an M/M/1 sys- tem and a D/M/1 system for UL and DL, respectively. Based on queuing theory, the SDAP PLOS ONE | https://doi.org/10.1371/journal.pone.0313772 January 9, 2025 10 / 36 PLOS ONE Cross-layer latency analysis for 5G NR in V2X communications performance model for the UL direction can be obtained as follows: Th ¼ minðl ; m Þ ð3Þ tx SDAP UL SDAP SDAP Delay ¼ ð4Þ tx SDAP UL m l SDAP SDAP whereλ is the rate at which video packets arrive at the SDAP layer, and μ is the rate at SDAP SDAP which SDAP services incoming packets. For the DL direction, the throughput model is: � � Th ¼ min ; m ð5Þ tx SDAP DL SDAP here, T is the period between control packets arrivals. The following equation is used to calcu- late the time that each packet spends in the SDAP layer: Delay ¼ ð6Þ tx SDAP DL m ð1 sÞ SDAP −μT(1−σ) where, σ is the solution of σ = e with the lowest absolute value. Using the Eqs 3–6, SDAP performance can be evaluated in both communication directions. The results of this evaluation are presented in section 4. 3.2 Packet Data Convergence Protocol (PDCP) sub-layer The PDCP layer provides security and integrity protection for 5G communications and per- forms header compression [16]. PDCP functions are depicted in Fig 5. According to [2], the main functionality of header compression is to match 5G voice services with legacy voice ser- vices, which have no packet header. This analysis considers only data transmission; therefore, the header compression mechanism is not considered. On the PDCP, the transmitter side receives SDUs from SDAP. Each SDU is assigned an integrity code called Message Authentication Code (MAC-I), then encrypted, and a header and trailer are added to generate the PDCP PDU (See Fig 5a. No header compression is per- formed). The reverse process is done on the receiver side: first stripping the header, then checking the integrity using the MAC, and decrypting the content before sending it to the upper layer (Fig 5b). Thus, the behavior of PDCP is a process of three sequential service phases. Based on this, PDCP is described as a M/Hypo /1 queuing system. The geometric matrix approach is used for the analysis of this system. The queuing system has associated a transition matrix with a block structure of the form: 2 3 B B 0 0 0 ��� 00 01 6 7 6 7 6 B A A 0 0 ���7 10 1 2 6 7 6 7 6 7 0 A A A 0 ��� 6 0 1 2 7 6 7 6 7 6 7 0 0 A A A ��� 0 1 2 Q ¼ 6 7 ð7Þ 6 7 6 7 6 0 0 0 A A ���7 0 1 6 7 6 7 6 7 0 0 0 0 A ��� 6 7 6 7 4 5 . . . . . . . . . . . . . . . . . . PLOS ONE | https://doi.org/10.1371/journal.pone.0313772 January 9, 2025 11 / 36 PLOS ONE Cross-layer latency analysis for 5G NR in V2X communications Fig 5. PDCP operation. https://doi.org/10.1371/journal.pone.0313772.g005 where the component block matrices are: B ¼ ½