QOS using tc


 
Thread Tools Search this Thread
Special Forums IP Networking QOS using tc
# 1  
Old 09-28-2012
QOS using tc

Hello all my friends

Please Read to understand my problem

I have 1 MB bandwidth and two networks then i did traffic control on my two internal interfaces i.e eth1(192.168.3.0/24) and eth2(172.16.3.0/24) (internal) and eth0 (outside)

Then i divided my bandwidth using tc command with the help of my friend

On eth1 :---

tc qdisc add dev eth1 root
tc qdisc add dev eth1 root handle 1:0 htb default 10
tc class add dev eth1 parent 1:0 classid 1:10 htb rate 512kbps ceil 640kbps prio 0
tc filter add dev eth1 parent 1:0 prio 0 protocol ip handle 10 fw flowid 1:10

iptables -A OUTPUT -t mangle -p tcp --sport 80 -j MARK --set-mark 10
service iptables save

For eth2: same as above

It is working but i cannot understand why sport is using above in iptables , i mean it is outgoing traffic why dport is not using here

Please any help
Thanks
# 2  
Old 10-05-2012
You cannot pick the interface of a packet after it arrives on the server, (time travel and cyber telepathy?) but you can when it leaves, where the source port is 80 and the dport is a client random high port.
# 3  
Old 10-11-2012
Hello DGPickett

dport will be destination (for internal LAN )in OUTPUT chain , this mean it is outgoing traffic.

i cannot understand your answer , please clear your answer with some explanation

Thanks
# 4  
Old 10-11-2012
If you have a web server on a host, and you want to divert web traffic to the b network path, you key on source port 80, which is the packets from the web service.
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. IP Networking

Internet QOS woes

I'm looking for recommendations for a general problem. Apparently (that is according to my boss and coworkers) I am responsible for guaranteeing quality of service to our remote MySQL server during the course of the day. They may run a complete database restore for any number of reasons and are... (1 Reply)
Discussion started by: Astrocloud
1 Replies

2. Windows & DOS: Issues & Discussions

QOS packet scheduler and group policy

hi, did anyone know how to configure a priority of dns ports (and other ports) on QOS on windows 2003? hard to understand the group policy "explain" tab on 'qos packet scheduler', no elaboration on how to use it. thanks for any comment you may add. ---------- Post updated at 05:03 PM... (0 Replies)
Discussion started by: itik
0 Replies

3. IP Networking

QOS script

Does anyone know how can I determine which user is UPLOADING via http protocol? Like sending video on youtube? Or maybe how to throttle multimedia uploads ? Or any uploads? maybe get packet size? (9 Replies)
Discussion started by: darkman_hr
9 Replies

4. IP Networking

802 QOS/ Bandwidth Control

My question is such: I want to control the bandwidth of my users and cap there speed on the network. I was told by a Cisco rep that it is better to police or control the bandwidth at the switch and not via the router. It that the correct place to control bandwidth at the switch or would it be... (0 Replies)
Discussion started by: metallica1973
0 Replies
Login or Register to Ask a Question