My setup:
- I am using an IP and port provided by portmap.io to allow me to perform port forwarding.
- I have OpenVPN installed (as required by portmap.io), and I run a ready-made config file when I want to operate my project.
- My main effort involves sending messages between a client and a server using sockets in Python.
- I have installed a software called tcping, which basically allows me to ping an IP:port over a tcp connection.
This figure basically sums it up:
Results I'm getting:
- When I try to "ping" said IP, the average RTT ends up being around 30ms consistently.
- I try to use the same IP to program sockets in Python, where I have a server script on my machine running, and a client script on any other machine but binding to this IP. I try sending a small message like "Hello" over the socket, and I am finding that the message is taking a significantly greater amount of time to travel across, and an inconsistent one for that matter. Sometimes it ends up taking 1 second, sometimes 400ms...
What is the reason for this discrepancy?