Reputation: 35
I'm currently writing a Minecraft client emulator in Java for a final year E&E engineering project. I'm using this library to handle the packets. The library internally uses the Netty 5.0 library for networking.
Part of my project involves measuring bandwidth, latency and jitter of the packets being sent. Bandwidth isn't so much of a problem since I know which packets are being sent/received but I don't know how to measure the latency and jitter.
To my knowledge TCP packets do contain timing information. Is there anyway to access this information or directly measure latency/jitter through Netty?
Upvotes: 1
Views: 1250
Reputation: 533510
The simplest solution is to measure request/response time. Your client sends a message which has a expected response from the server. You can then use tcpdump or wireshark to record all the packets and write a tool to calculate the request to response time.
This can be done without changing the code of the client or server.
Upvotes: 1