|
-
Apr 20th, 2007, 01:34 PM
#1
Thread Starter
Member
Emulate Slow Network Connection
Hey
I'm developing a database application for a client who is using a sattelite internet connection. this will obvisouly cause a delay in data transfers between the app and the database and I'm looking for a way to emulate the environment in order to test performance issues.
If anybody has heard of anything that would allow me to do this then please let me know!
-
Apr 22nd, 2007, 01:00 PM
#2
Fanatic Member
Re: Emulate Slow Network Connection
Change the NIC from auto, 100 full to 10 half ?
Create a dial-up connection, connect at 9600, 4800, 2400 ?
This might be close
Alpha Micro: Alpha Basic, AS400 V5r2, EDI (Trusted Link/ Inovis.com),Access AS/400 via VB6, Qbasic for data conversions. A mix of Hardware too. ASCII Table , New Number to Words/66 digits , AS/400(v5r2) VB6 Viewer/Ask for code(ODBC) ^ What Is Transferring? , Check your Ports #Perfect Passwords , *Slide Bar Example , Logoff, Restart, Shut-Down PC *Keep Form On Top , Opaque Form ^ Create Objects at Run Time @ Check Key Caps Locks # GetTickCount(System Up Time) * Convert text to Excel & Collected Icons + Resize: Form/Text box ^ PC GateWay via Shell $ Drag & Drop Game ! PopUpMenu *Print File/no Open# Timer on Mult Forms ~ Splash & Mult Forms & Lots of Comments + Random/Timer/Guess * Dec >Hex >Oct >Bin % Get MAC (NIC) < saving to Registry > Wookiee Cookies \ BackUpDisk / World Conection SpeedTest $ Glossary Commonly Used Terms # phonetic list @ Detailed Computer Scan
When posting Code, Use tags.. [CODE] *Your Code* [/CODE]
-
Apr 22nd, 2007, 05:59 PM
#3
Hyperactive Member
Re: Emulate Slow Network Connection
 Originally Posted by r_barlow
Hey
I'm developing a database application for a client who is using a sattelite internet connection. this will obvisouly cause a delay in data transfers between the app and the database and I'm looking for a way to emulate the environment in order to test performance issues.
If anybody has heard of anything that would allow me to do this then please let me know!
More than likely you program is going to multi-threaded since your read and writes along with your data processing are going to have to wait on network latency.
To simulate network latency, simple call the threading sleep function. It will be different for every language. The article below will cover everything in the .Net world.
http://msdn2.microsoft.com/en-us/lib...ep(VS.71).aspx
You can do this with a single thread as well, but you entire program will sleep, not using a reader or writer thread.
There is a nice example of doing a single threaded AJAX.net application and introducing network latency in a video by microsoft.
http://ajax.asp.net/default.aspx?tabid=47
However, I done method many times to simulate network protocol interaction while introducing random network latency.
-
Apr 23rd, 2007, 02:19 PM
#4
Re: Emulate Slow Network Connection
Adding delays won't help.
TCP over a satellite link has unique challenges. The important delays would have to be simulated below the protocol stack. I'm not sure most people are aware of the ACK, retry, and TCP Windowing issues involved.
http://www.tkn.tu-berlin.de/curricul...7/schilke.html discusses some of this.
You need a network delay and impairment box like that described at http://www.isi.edu/nsnam/ns/
-
Apr 23rd, 2007, 08:00 PM
#5
Hyperactive Member
Re: Emulate Slow Network Connection
i have written code to simulate the delays in the tcp/ip stack, etc.
took me a week, but in deed it is possible.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|