HTB upload problem

Gokan Atmaca linux.gokan at gmail.com
Sat Jun 4 22:00:41 UTC 2016


revised:

I'm using the HTB qdisc. I do not have a problem with the download set
as follows. However, there are problems with the installation.

1. method:

tc qdisc del dev eth0 root handle 1: htb
tc class add dev eth0 parent 1:0 classid 1:1 htb rate 1024kbit
tc filter add dev eth0 protocol ip  parent 1:0 prio 0  u32 match ip
dst 192.168.3.18/32 flowid 1:1

2. method:

tc qdisc add dev eth0 root handle 1: htb
tc class add dev eth0 parent 1:0 classid 1:1 htb rate 1024kbit
tc class add dev eth0 parent 1:0 classid 1:2 htb rate 1024kbit

tc filter add dev eth0 protocol ip  parent 1:0 prio 0  u32 match ip
dst 192.168.3.10/32 flowid 1:1
tc filter add dev eth0 protocol ip  parent 1:0 prio 0  u32 match ip
src 192.168.3.10/32 flowid 1:2


Tell me that did seem to be trying.
However, ICMP time 42> 5000ms goes up.

3. method

#!/bin/bash
tc qdisc add dev eth0 root handle 1: htb
tc class add dev eth0 parent 1: classid 1:0 htb rate 512kbit
tc filter add dev eth0 protocol ip parent 1:0 prio 0  u32 match ip dst
192.168.3.14/32 flowid 1:0

tc qdisc add dev eth1 root handle 1:1 htb
tc class add dev eth1 parent 1: classid 1:1 htb rate 512kbit
tc filter add dev eth1 protocol ip parent 1:1 prio 0  u32 match ip src
192.168.3.14/32 flowid 1:0


What could be the problem?


On Sun, Jun 5, 2016 at 12:58 AM, Gokan Atmaca <linux.gokan at gmail.com> wrote:
> Hello
>
> I'm using the HTB qdisc. I do not have a problem with the download set
> as follows. However, there are problems with the installation.
>
> 1. method:
>
> tc qdisc del dev eth0 root handle 1: htb
> tc class add dev eth0 parent 1:0 classid 1:1 htb rate 1024kbit
> tc filter add dev eth0 protocol ip  parent 1:0 prio 0  u32 match ip
> dst 192.168.3.18/32 flowid 1:1
>
> 2. method:
>
> tc qdisc del dev eth0 root handle 1: htb
> tc class add dev eth0 parent 1:0 classid 1:1 htb rate 1024kbit
> tc class add dev eth0 parent 1:0 classid 1:2 htb rate 1024kbit
> tc filter add dev eth0 protocol ip  parent 1:0 prio 0  u32 match ip
> dst 192.168.3.10/32 flowid 1:1
> tc filter add dev eth0 protocol ip  parent 1:0 prio 0  u32 match ip
> src 192.168.3.10/32 flowid 1:2
>
>
> 3. method
>
>
>
>
>
> What could be the problem?



More information about the ubuntu-users mailing list