Yahia
Yahia

Reputation: 1339

Simulate slow connection between two ubuntu server machines

I want to simulate the following scenario: given that I have 4 ubuntu server machines A,B,C and D. I want to reduce the network bandwidth by 20% between machine A and machine C and 10% between A and B. How to do this using network simulation/throttling tools ?

Upvotes: 1

Views: 2883

Answers (2)

majapahit
majapahit

Reputation: 71

The simple program wondershaper fits here very well. Just execute:

sudo wondershaper eth0 1024 1024

It will limit your network bandwidth on the eth0 interface to 1Mbps download and upload rate.

Upvotes: 1

RC Brand
RC Brand

Reputation: 437

Ubuntu comes with a tool called NetEm. It can control most of the network layer metrics (bandwidth, delay, packetloss). There are tons of tutorials online.

Dummynet is one such tool to do it.

KauNet a tool developed by karlstad university, which can introduce packet level control.

Upvotes: 1

Related Questions