Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Simulate Network Latency

Posted on 2008-10-10
9
Medium Priority
?
1,380 Views
Last Modified: 2012-08-13
Hi All,

Is there a Way i can Simulate Network Latency from Connecting My PC to a Router Ethernet Interface and The Router will be connected to my Local LAN. And from the PC i will run a Application which in turn connects to the Server in the Local LAN.

The reason we want to simulate the same from the Local LAN is to see if the perfomance is the same when accessed locally with the Latency we normally get over the WAN.

Because we have our customers who connect to the Server which have a 150ms Latency to reach it. Just want to prove to them that it is the Latency that causes the application to be slow and this is the best we can get over.
0
Comment
Question by:kamalgopi
  • 5
  • 4
9 Comments
 
LVL 57

Expert Comment

by:giltjr
ID: 22688356
Just how bad is the performance.  Although 150ms of RTT is high may or may not affect performance that much.  In some of our testing we did not notice significant performance impact until we got 300ms or higher.

However, what is the bandwidth?  

If you happen to have a recent distribution of Linux you can use netem function to simulate everything:

  latency
  packet drop
  out of sequence packets
  available bandwidth (even asymmetrical bandwidth to simulate Cable or DSL type connections).

We have a remote office that has a 768Kbps link with about 100ms RTT and their response time for most of our application is only slightly slower than in our local office.
0
 
LVL 11

Author Comment

by:kamalgopi
ID: 22689225
It is a 64K link to the site.
0
 
LVL 11

Author Comment

by:kamalgopi
ID: 22689235
Yeah actually 150ms is not that bad,. They have been running SAP from the same site and it seems to work perfectly fine. I think it could be the expectation is wrong or there is seriously something wrong on how the application handles the packet
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 57

Expert Comment

by:giltjr
ID: 22689267
I would take a wild guess and say that your performance issues are more due to the bandwidth than latency.

At 64Kbps assuming a TCP/IP based application you are talking about getting 7-7.5KB per second before the link is saturated.  In fact if the link is saturated the RTT will also go up. For example if the application is web based and the avg. web page is 50K, it would take close to 8 seconds just to transfer that one page.

Do you have away to monitor link utilization?

Do you know how many users are located at the remote site and what the average bytes in and out are per transaction for this application?
0
 
LVL 11

Author Comment

by:kamalgopi
ID: 22689338
Actually all the testing we are doing is during non-business hours which means there is nothing other than this aplication on this circuit. And also you have a point on the 7-7.5KB per second. I would need to see how many bytes are transfered for a particular transaction in the application. Yes it is a TCP based application. Also i suppose the Windowing does makes a difference here.
0
 
LVL 11

Author Comment

by:kamalgopi
ID: 22689343
Also is there a Way i can simulate a 64K Serial Link? I just checked around and i dont have a Back to back smart serial cable :(
0
 
LVL 57

Expert Comment

by:giltjr
ID: 22689503
Again, if you have Linux you can use netem and simulate just about anything.

I have a Linux box with two NIC's that I can connect "in-line" and then configure netem to simulate what I want.  I even created a simple web interface using PHP and Apache so that I can configure what I want netem to do.  I have a couple dozen pre-configured options to select from.  I put in the IP address of the server I am going to, then select from a pull down box one of the pre-configured WAN emulations I want to do (various link speeds and latency) click submit.  

It will only impact traffic to/from the host IP address I enter.
0
 
LVL 11

Author Comment

by:kamalgopi
ID: 22689600
Thanks. Let me source for a Linux Box tmr and try that out.
0
 
LVL 57

Accepted Solution

by:
giltjr earned 2000 total points
ID: 22689723
Although most Linux distributions would work, I generally use Fedora.  You would want to make sure which ever one you choose has netem already included.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the world of WAN, QoS is a pretty important topic for most, if not all, networks. Some WAN technologies have QoS mechanisms built in, but others, such as some L2 WAN's, don't have QoS control in the provider cloud.
Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question