Tx and Rx timstamp alignment in osmo GSM

Hi,
I am new to GSM and osmo. I have studied in 3GPP standard that the time difference between a downlink signal and its related uplink signal is three time slots. However, in osmo-trx code, when I run it with USRP B210 the difference between tx timestamp and rx time stamp is 9933. I am a bit confused. Could you please explain how does the timestamps in the code work? and how is the time alignment in GSM.
Thanks in advance.

Not sure what this number is (timeslot periods?) and where it’s coming from (measured?), but the actual difference between Uplink and Downlink is indeed more than 3 timeslot periods when running osmo-trx and osmo-bts-trx. The problem is that these are separate processes communicating over UDP (TRXC/TRXD PDUs). Downlink bursts are scheduled and sent to osmo-trx in advance (2 + 3 TDMA frames, by default), so that it has time to process them and send to the SDR device.

Relevant parameters in osmo-bts.cfg are:

  • phy / osmotrx fn-advance (see 18.1.2.4)
  • phy / osmotrx rts-advance (see 18.1.2.5)

Both documented in https://downloads.osmocom.org/docs/osmo-bts/master/osmobts-usermanual.pdf.

Thanks for your response.
The parameters you mentioned explain how much we should send a signal in advance to the trx so it could be sent in its on time at the antenna.
However, my question is on tx and rx time alignment.
For example, in LTE (4G) when a data is received at time t1, i.e. t_rx = t1 (the time in lte is in ms) the tx timestamp is added by four ms, i.e. t_tx = t_rx+4. Which means when you receive at time t1, the corresponding response has to be sent in t1 + 4. I want to know what is this in GSM case and in osmo-trx code.
Many thanks.