qos_project
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
qos_project [2017/12/15 11:47] – [8. [PO3] Analyzing QoS] carine | qos_project [2017/12/19 09:11] – [8. [PO3] Analyzing QoS] carine | ||
---|---|---|---|
Line 294: | Line 294: | ||
===== -. [PO3] Analyzing QoS ===== | ===== -. [PO3] Analyzing QoS ===== | ||
- | In this section, we have to consider different congestion scenarios: The link between the two routers will have a bandwidth of 16 Mb/s, 8 Mb/s and 5 Mb/s. | + | In this section, we have to consider different congestion scenarios: The link between the two routers will have a bandwidth of 16 Mb/s, 8 Mb/s and 5 Mb/s.For each case, we will be considering both the implementation and the absence of QoS. |
__**1. 16Mb/s**__ | __**1. 16Mb/s**__ | ||
+ | |||
+ | - __Without QoS:__ | ||
+ | |||
+ | We have to create two different classes with exactly the same bandwidth allocated for each as if no QoS is applied. The following commands are used: | ||
+ | <code bash> tc class add dev eth1 parent 1:1 classid 1:10 hfsc ls rate 16000kbit ul rate 16000kbit </ | ||
+ | <code bash> tc class add dev eth1 parent 1:1 classid 1:20 hfsc ls rate 16000kbit ul rate 16000kbit </ | ||
+ | <code bash> iptables -t mangle -A POSTROUTING -o eth1 -p udp --dport 1234 -j CLASSIFY --set-class 1:10 </ | ||
+ | <code bash> iptables -t mangle -A POSTROUTING -o eth1 -p udp --dport 5201 -j CLASSIFY --set-class 1:10 </ | ||
+ | <code bash> iptables -t mangle -A POSTROUTING -o eth1 -p tcp --dport 5202 -j CLASSIFY --set-class 1:20 </ | ||
+ | |||
+ | - __With QoS:__ | ||
First, we have to create a common class 1:1 for all types of traffic, as before. | First, we have to create a common class 1:1 for all types of traffic, as before. | ||
Line 317: | Line 328: | ||
**On the client side:** | **On the client side:** | ||
<code bash> iperf3 -c 192.168.100.111 -P 3 -p 5202 -t 75 </ | <code bash> iperf3 -c 192.168.100.111 -P 3 -p 5202 -t 75 </ | ||
+ | The same commands found above are applied when configuring the link with a bandwidth of 4Mb/s and 8Mb/s. |
qos_project.txt · Last modified: 2021/08/28 09:58 by samer