Top Banner
14

Bandwidth Management on Linux

Jan 11, 2017

Download

Technology

KHNOG
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Bandwidth Management on Linux
Page 2: Bandwidth Management on Linux

Agenda

v What is Bandwidth management?

v Why we need to manage bandwidth in our

network?

v How to Control Bandwidth on Linux (CentOS7)?

v Demontration LAB

v Question and Answer

Page 3: Bandwidth Management on Linux

v Bandwidth management is the process of

measuring and controlling the communications

(traffic, packets) on a network link to avoid

network congestion and poor performance of the

network.

v Bandwidth management is measured in bits

per second (bit/s) or bytes per second (B/s).

What is Bandwidth management?

Page 4: Bandwidth Management on Linux

Why we need to manage bandwidth in our network?

v Control traffic bandwidth of users

v Avoid congestion in the networks

v Allocate resource for other important use (Voice

Videos …)

v Save cost

Page 5: Bandwidth Management on Linux

How to Control Bandwidth on Linux (CentOS7)?v We have many tools and methods for limiting rate on

Linux OS (Wonder shaper, Traffic Control (TC), Fire QOS

…).

v FireHOL is a language for builds secure stateful

firewalls from easy to understand, human-readable

configurations.

v FireQOS is a program which sets up traffic shaping

from an easy-to-understand and flexible configuration

file.

Page 6: Bandwidth Management on Linux

How to Control Bandwidth on Linux (CentOS7)?v Installing FireQOS

yuminstallgit–y

git clonehttps://github.com/ktsaou/firehol.git firehol.git

cdfirehol.gitgit checkoutorigin/master

mkdir -p/etc/firehol

cp etc/fireqos.conf.example /etc/firehol/fireqos.conf

vi/etc/firehol/fireqos.conf

Page 7: Bandwidth Management on Linux

How to Control Bandwidth on Linux (CentOS7)?DEVICE=ens160

INPUT_SPEED=1024kbit

OUTPUT_SPEED=1024kbit

interface $DEVICE world-in input rate $INPUT_SPEED

interface $DEVICE world-out output rate $OUTPUT_SPEED

vStart service

./sbin/fireqos.in start

Page 8: Bandwidth Management on Linux

Senario LAB

v Topology

Page 9: Bandwidth Management on Linux

Senario LAB

v Linux Side

Page 10: Bandwidth Management on Linux

Senario LAB

v Linux Side

Page 11: Bandwidth Management on Linux

Senario LAB

v Linux Side

Page 12: Bandwidth Management on Linux

Senario LAB

v Result at client side

Page 13: Bandwidth Management on Linux

Reference

v http://firehol.org/fireqos-manual.html

Page 14: Bandwidth Management on Linux