5G toolbox IP packet latency calculation
22 次查看(过去 30 天)
显示 更早的评论
How to calculate the application layer latency for each UE in the simulation?
I am using NR FDD Scheduling Performance Evaluation Example. It should be defined as the time when the packet arrives to UE (in the buffer) minus the time when the packet arrives to BS for UL. Do you have some hints on how I can track those times?
0 个评论
回答(1 个)
Ayush
2023-8-30
Hey Nadezda,
I understand that you are using NR FDD scheduling performance evaluation example and wants to calculate application layer latency for each UE in the simulation for which you need the time at which UE packet arrives and time at which packet arrives at BS for UL. You are looking for a way to track these times.
Based on the information provided in the documentation for the MATLAB NR FDD Scheduling Performance Evaluation Example, you can use the RLC logs and RLC statistics to track the packet arrival times and calculate the application layer latency. Here's how you can do it:
1. Packet Arrival at UE: From the RLC statistics for each UE, you can use the "ReceivedPackets" or "ReceivedBytes" field to determine when a packet arrives at the UE from the MAC layer. Each row in the UE RLC statistics table represents a logical channel of a UE. You can track the timestamp associated with the row where "ReceivedPackets" or "ReceivedBytes" is greater than zero.
2. Packet Arrival at BS: Similarly, from the RLC statistics for the gNB, you can use the "TransmittedPackets" or "TransmittedBytes" field to determine when a packet is transmitted from the RLC layer to the MAC layer at the BS. Each row in the gNB RLC statistics table represents a logical channel of a UE. You can track the timestamp associated with the row where "TransmittedPackets" or "TransmittedBytes" is greater than zero.
Once you have the packet arrival times at both the UE and the BS, you can calculate the application layer latency for each UE using the formula:
ApplicationLayerLatency = UEArrivalTime - BSArrivalTime
Note: Make sure that the timestamps are in the same time units (e.g., milliseconds) before performing the subtraction.
For more information, you can refer to the documentation: NR FDD Scheduling Performance Evaluation - MATLAB & Simulink - MathWorks India
Hope this helps!
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!