openziti / dilithium

Framework for high-performance streaming over message-passing systems. High-performance WAN protocols over UDP datagrams. Implemented in golang.
Apache License 2.0
13 stars 2 forks source link

Westworld3 Wire Protocol #58

Closed michaelquigley closed 4 years ago

michaelquigley commented 4 years ago

Develop a v0.3 protocol wire format incorporating:

michaelquigley commented 4 years ago

Reduce RTT probe to 2 bytes... replaces #57.

michaelquigley commented 4 years ago

Basic 2 byte epoch millseconds probe:

sourceTs := uint16(time.Now().UnixNano() / int64(time.Millisecond))
time.Sleep(1024 * time.Millisecond)
checkTs := uint16(time.Now().UnixNano() / int64(time.Millisecond))
delta := checkTs - sourceTs