Network Bandwith Limiting at OS In our sample, we tried to limit NFS connection to a specific NFS server. We will try to mention about both Solaris, Linux and AIX. Bandwith limitations can be done in 2 ways. "Traffic Policing" or "Traffic Shaping" Policing applies policies dropping packages above the rate, it is unnecessary. DROP/REJECT actions in iptables are Traffic Policing. Dropped packages will be needed to be retransmitted in the network. This is an unnecessary overhead and network consumption. Shaping uses QUEUES, puts excessive packages into its queue instead of dropping. Linux TC uses Traffic Shaping, it has QUEUE architecture called QDISC. Prefer Shaping instead of Policing. Feel free to communicate by bulent.yucesoy@gmail.com -------------------------------------------------------------------------- #### Solaris has flowadm command, you can configure like below. flowadm add-flow -l net0 -a transport=tcp,remote_ip=1.1.1.2,remote_port=2049,direction=out -p maxbw=800M my-nfs-out-bw flowadm add-flow -l net0 -a transport=tcp,remote_ip=1.1.1.2,remote_port=2049,direction=in -p maxbw=500M my-nfs-in-bw #### Linux has TC ( traffic control ) command Limiting outgoing traffic - https://access.redhat.com/solutions/2833521 Limiting inbound traffic - https://access.redhat.com/solutions/1324033 Inbound limiting may be achieved by IFB device. You receive all data to IFB interface and IFB sends data to your original interface. It becomes outgoing traffic for IFB device, so you safely apply outgoing bandwith limitation. IFB explanation - https://wiki.linuxfoundation.org/networking/ifb Traffic Control Script - https://github.com/rfrail3/misc/blob/master/tc/traffic-control.sh #### AIX has no advanced network limiting utility. AIX has TCPTR but it is a limited tool and it does not make bandwith limiting. Below exists an article for AIX but article communicates AIX and Linux and makes configs at Linux. Article proves that total communication becomes limited when only Linux host makes limitations (using TC again) Fine-grain network quality of service on IBM AIX 7.1and Linux in a multi-tenant cloud environment https://www.ibm.com/developerworks/aix/library/au-fine-grain-network/au-fine-grain-network-pdf.pdf