A simple TCP simulator