xtaci/kcp-go

why IKCP_OVERHEAD is 24bytes

jnxyatmjx opened this issue · 2 comments

why IKCP_OVERHEAD is 24bytes and how to calculate it?

conv = 4 bytes cmd = 1 byte frg = 1 byte wnd = 2bytes
ts = 4 bytes sn = 4 bytes
una = 4 bytes len = 4 bytes
a segment contains these fields, a total of 24 bytes

conv = 4 bytes cmd = 1 byte frg = 1 byte wnd = 2bytes ts = 4 bytes sn = 4 bytes una = 4 bytes len = 4 bytes a segment contains these fields, a total of 24 bytes

thank you very much.