Visit Our UNIX and Linux User Community


How to throttle network traffic?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users How to throttle network traffic?
# 1  
Old 03-17-2014
How to throttle network traffic?

Hi All

I am resilience testing an application that is spread across multiple servers.

One thing I will need to do soon is throttle the network traffic for specific interfaces within the test cluster. Specifically, maybe make a connection take twice or three times as long to respond....

I have no experience in this area and would be grateful for any pointers on how to go about it or open source tools that will allow me to do this.

Whatever the solution, it will be run from a shell script on Centos Linux servers.

Thanks in advance

Brad
# 2  
Old 03-17-2014
There are a lot of options for Linux, which all boil down to the Hierarchical Token Bucket or Class Based Queueing in Linux.

Like iptables is, these are kernel drivers not applications, so not precisely friendly. Often a generator script of some sort is used to build a list of commands. I have occasionally used htbinit.
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 03-17-2014
Thanks Smilie

That should give me something to Google....

---------- Post updated at 04:20 PM ---------- Previous update was at 03:56 PM ----------

Hi Corona

In addition to my thanks - thanks very much!

Looks absolutely perfect. I'll read some more and see what I can do with it.

Cheers
# 4  
Old 03-17-2014
There are two catches... One, it can only alter the rate of transmission, not reception. Two, it's only precise on average.

Previous Thread | Next Thread
Test Your Knowledge in Computers #709
Difficulty: Easy
In Linux, the 'useradd' command is a utility that is used for adding user accounts in Linux and other Unix-like operating systems.
True or False?

10 More Discussions You Might Find Interesting

1. IP Networking

I would like to monitor network traffic for a computer on my network

My son does homework on a school laptop. I was thinking about setting up a gateway on my home network, so that I can monitor web traffic and know if he is doing his homework without standing over his shoulder. Ideally I would like to use the Raspberry Pi Model b that I already have. However, I... (15 Replies)
Discussion started by: gandolf989
15 Replies

2. Infrastructure Monitoring

How do I know what traffic is in network port?

If I would like to know what connection , data , traffic in a network port ( eth0 ) , what can I do ? ps. because I always found the network is very slow , so I would like what the network port is doing . Thanks Login ID ust3 is currently in read-only mode for multiple infractions. Creating... (0 Replies)
Discussion started by: ust03
0 Replies

3. Shell Programming and Scripting

extracting features of network traffic

hi all i want to extract few connection level features (not packet level )of the internet traffic through ethernet card interface the features are as follows Timestamp Timestamp of paket captured Duration duration of connection ip_proto IP... (2 Replies)
Discussion started by: vaibhavkorde
2 Replies

4. IP Networking

Extract few fields from network traffic

hi all i want to extract few connection level features (not packet level )of the internet traffic through ethernet card interface the features are as follows Timestamp Timestamp of paket captured Duration duration of connection ip_proto IP... (0 Replies)
Discussion started by: vaibhavkorde
0 Replies

5. HP-UX

Monitoring traffic in the network

I Colleagues, Somebody can say me how to monitoring traffic in the network. also I am interested in monitoring memory. if somebody to know a guide with command advanced in unix welcome for me. Thank you for adcanced. (0 Replies)
Discussion started by: systemoper
0 Replies

6. Infrastructure Monitoring

Network Traffic

Hi all, Got a strange one here, well not so much strange, different :-) I need to work out if a server is particulary chatty, whether its talking / communicating heavily to a particular server, as Im planning to physically move the server to a different server, over a link. Hence the... (6 Replies)
Discussion started by: sbk1972
6 Replies

7. UNIX for Advanced & Expert Users

Monitoring network traffic using snoop

I want to monitor network traffic. For this purpose i use snoop command. But snoop command only show those packets which are broadcasted or those packets which recieved by host. But I want to examine whole network traffic. Please tell me how to use snoop for monitoring whole network traffic or if... (3 Replies)
Discussion started by: mansoorulhaq
3 Replies

8. Cybersecurity

How to capture network traffic

Hi, Can someone give me the clue on how to capture network traffic at gateway. Thanx (2 Replies)
Discussion started by: kayode
2 Replies

9. UNIX for Dummies Questions & Answers

monitoring network traffic

there are commands to monitor the memory, paging, io... how about network traffic. i mean commands to see whether the network traffic (LAN) is congested? the closest i got is netstat thanks (6 Replies)
Discussion started by: yls177
6 Replies

10. IP Networking

Routing Network Traffic With Mandrake

I am running Mandrake 8.0 (KDE ver 2.1.1) on a machine with 2 NICs. This is a college project. I am attempting to configure this machine as a firewall, and to pass packets from one network to another. Eth0 is on my external network. Eth1 is on my internal network. I set the gateway in "netconf"... (1 Reply)
Discussion started by: Deuce
1 Replies

Featured Tech Videos