|
|
# Retransmission Timeout / Partial ARQ
|
|
|
|
|
|
Upon sending of packet, schedule a timeout to now+1xRTT (and a bit).
|
|
|
|
|
|
Use current RTT, because most likely the packet will face this RTT.
|
|
|
|
|
|
The timer expires as soon as the first timeout is triggered.
|
|
|
|
|
|
## Precise Timer
|
|
|
|
|
|
```c
|
|
|
struct prrtTimer {
|
|
|
...
|
|
|
} PrrtTimer;
|
|
|
|
|
|
PrrtTimer_create()
|
|
|
|
|
|
void PrrtTimer_schedule_timeout(PrrtTimer* t, timespec_t date, void* data);
|
|
|
|
|
|
void* PrrtTimer_wait_for_timeout(PrrtTimer* t);
|
|
|
```
|
|
|
|
|
|
**Use a timer-bypass to not use the kernel but get direct access to the timer.** |
|
|
\ No newline at end of file |
|
|
TbA |
|
|
\ No newline at end of file |