This article provides an analytical framework for estimating latency in dynamic TDMA networks under simple scenarios. We examine the relationship between network capacity, packet scheduling, and various components of end-to-end latency. The analysis includes theoretical calculations validated against NetSim simulation results.


Understanding network capacity and latency


Network latency analysis is meaningful only when operating below network capacity. When traffic generation exceeds capacity, queuing delays accumulate indefinitely, leading to unreliable latency measurements. Therefore, establishing the network's operational capacity is a first step in latency analysis.


Determining network capacity


The network's capacity threshold can be identified through incremental load testing:

  1. Begin with minimal traffic generation
  2. Gradually increase the traffic rate
  3. Monitor throughput response:
    • Below capacity: Throughput increases linearly with generation rate
    • At capacity: Throughput plateaus despite increased generation rate
  4. Conduct latency analysis within the linear throughput region


TDMA Example: Two nodes, one transmitting node, one application with constant packet arrivals, one-hop, round robin scheduling, static routing 


Building upon the example described in https://tetcos.freshdesk.com/support/solutions/articles/14000154947 where we estimate throughput of a TDMA network analytically.  The analytically estimated capacity is 49.75 kbps at the PHY or 43.64 kbps at the application layer. 


Packet size is a critical parameter in TDMA networks, where the packet size at the PHY layer should ideally match the slot capacity exactly. When a packet is larger than the slot capacity, it results in fragmentation, requiring the packet to be split across multiple slots. Conversely, if the packet is smaller than the slot capacity, the available bandwidth is not used optimally, leading to wasted capacity. In this example, with a slot capacity of 250B at the PHY layer, we select an application layer packet size of 222B. When combined with the 28B protocol overhead, this results in a PHY layer packet size of exactly 250B, achieving optimal slot utilization. 


The components of latency are

i.e., the total latency is the sum of queuing delay, transmission time, propagation delay and processing delay. In NetSim simulations, the processing delay is zero, simplifying our analysis to three components. For networks without packet fragmentation (large packet split across slots) or aggregation (multiple small packets aggregated in a slot) the transmission time is calculated as:


Transmission time:

The PHY rate can be using the formula:

For our scenario:


- Data Symbol Rate: 100kBd (kilobaud - symbols per second)

- Modulation: QPSK (Quadrature Phase Shift Keying, modulation order = 2)

- Coding Rate: 1/2 (one information bit for every two transmitted bits)


Substituting these values in the formula we will get the phy rate:

With a packet size of 250B and a Phyrate of 100 kbps (100000 bps), the predicted transmission time is


As expected, this is the same the slot time. 


Propagation delay:


The propagation delay depends on the physical distance between nodes and is calculated as: 


where c is the speed of light, which in NetSim is taken to be 3.00x10^8 m/s and distance between nodes are 144.82 m. For our configuration

In this analysis, we consider a traffic generation rate of 40 kbps (App-layer Packet size = 222B, Inter packet arrival time = 44400 micro sec) to estimate the latency components. 


Transmission time+ Propagation delay


In NetSim we can verify transmission time and propagation delay from the packet trace using this below formula (see https://support.tetcos.com/support/solutions/articles/14000077166-how-to-enable-and-view-the-packet-trace-and-event-trace-in-netsim- to understand how to enable and view the packet trace)




We see that this matches the numbers obtained earlier.


Queuing delay:


Queuing delay calculations are typically complex. However, for deterministic traffic patterns where packets arrive at fixed intervals and the packet generation rate remains below the link capacity, the analysis simplifies considerably. In our case, queuing delay is the time interval between packet generation and slot acquisition. 


Since our packet generation rate is 40 kbps, a packet arrives every 44.4 ms (44400 micro sec). Note that slots are allocated in a round-robin fashion to Node1 and Node2, and each slot is 40ms. Note that the packet arrivals do not coincide with the slot cycle. Therefore packets experience a queueing delay. 


Consider packets arrivals every A seconds and if a slot is available every B seconds. When A is greater than B, the wait time for the next slot falls within the range 0 to B seconds and is uniformly distributed due to the periodic nature of arrivals and slots. Consequently, the mean queueing delay is B/2 seconds.  


This can be expressed as the difference between the time when the packet receives its designated transmission slot and when the packet was created. This straightforward calculation only holds when the packet generation rate is less than the link capacity. For non-deterministic arrivals or bursty traffic patterns, the queuing delay becomes stochastic and requires more complex queuing theory models for accurate estimation.


In NetSim we can obtain Queuing delay with packet trace using this below formula




The network layer arrival time is when the packet is created and Phy layer arrival time is the time when a slot is available to transmit this packet.


Total latency

 
The table show the results of varying the generation rate to analyze its impact on throughput and latency. The total latency is the sum of queueing delay, transmission time and propagation delay.



We next look at a plot of Total delay vs. Generation Rate.

The plot shows that Queuing delay (Purple) increases sharply as the generation rate approaches and exceeds the network's capacity (43 kbps), while transmission time + propagation delay (red) remains constant. 


Useful links


1. NetSim Dynamic TDMA library: https://tetcos.com/military-radio.html

2. Analytically estimation Dynamic TDMA Throughput: https://tetcos.freshdesk.com/support/solutions/articles/14000154947