[ENet-discuss] A unified rate-based throttle for reliable and unreliable packets

Marcin Zajączkowski mszpak at wp.pl
Sun Apr 4 16:26:32 PDT 2004


Dnia 2004-04-01 01:42, Użytkownik Lee Salzman napisał:
(...)
> For unreliable packets, minimal latency of sending is much more
> important than whether the packets get there, since ENet assumes that a
> high sending rate. So as to accomplish this, ALL backlogged unreliable
> packets are sent out subject to packet dropping. To compute the
> probability that a packet should be dropped, we consider the TOTAL
> amount of backlogged data (both reliable and unreliable) in excess of
> the data budget. The probability of dropping a byte in a packet is then:
>   dropProbability = max(backloggedData - dataBudget, 0)
>                       / backloggedData

Concept looks good, but I have one question.
When do You plan to add actual data to send? Before probability count or 
after?
I think that backlogged reliable, actual reliable and actual unreliable 
packets should be summed before calc of drop probability, because they 
have higher priority than old unreliable. And only if some free space in 
"budget" remains then probability of drop old UNrealiable packets should 
be calced (if not all should be dropped).

Marcin


More information about the ENet-discuss mailing list