Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to simulate a dial-up connection for testing purposes?

I have to code a server app where clients open a TCP/IP socket, send some data and close the connection.

The data packets are small < 100 bytes, however there is talk of having them batch their transactions and send multiple packets.

How can I best simulate a dial-up ut connection (using Delphi & Indy components, just FYI)?

Is it as simple as

  • open connection
  • wait a while (what is the definition of "a while"?)
  • close connection
like image 263
Mawg says reinstate Monica Avatar asked Oct 15 '22 04:10

Mawg says reinstate Monica


1 Answers

You can use a network emulator. If you have a Linux machine on hand with NISTnet (an old project but still useful, used some years ago) you can create multiple scnearios limiting bandwidth or other characteristics to the network communication. There is an application called WANEM which seems to do the same but I have not used it so cannot tell you if is good or not.

If you want a modem emulation the you can use com0com which provides exactly that.

like image 163
Edgar Zavala Avatar answered Oct 22 '22 19:10

Edgar Zavala