Upload traffic going into download queue or vice-versa
-
Hello everybody,
I have the following traffic shaping set up:
On WAN interface:
WAN (cbq, 1 Gbps)
–-qWAN-Internet (priority 1, bandwidth 2 Mbps)
------qProject1 (priority 4, red, ecn, 400 Kbps, borrow)
------qProject2 (priority 4, red, ecn, 400 Kbps, borrow)
------qProject3 (priority 4, red, ecn, 400 Kbps, borrow)
------qOther (priority 4, default, red, ecn, 400 Kbps, borrow)
------qNetSvcs (priority 5, 250 Kbps, borrow)
------qTest-Up (red, ecn, 150 Kbps, borrow)
---qLink (priority 1, bandwidth 998 Mbps, borrow)On LAN interface:
LAN (cbq, 1 Gbps)
---qLAN-Internet (priority 1, bandwidth 2 Mbps)
------qProject1 (priority 4, red, ecn, 400 Kbps, borrow)
------qProject2 (priority 4, red, ecn, 400 Kbps, borrow)
------qProject3 (priority 4, red, ecn, 400 Kbps, borrow)
------qOther (priority 4, default, red, ecn, 400 Kbps, borrow)
------qNetSvcs (priority 5, 250 Kbps, borrow)
------qTest-Down (red, ecn, 150 Kbps, borrow)
---qLink (priority 1, bandwidth 998 Mbps, borrow)This set up is NOT working correctly.
In order to do some tests, I created a rule on LAN as follows (to shape downloads initiated from a PC on the LAN):
pass in quick on $LAN from 10.0.0.100 to <internet address="">keep state queue (qTest-Down)I then started a download on the PC from a public FTP server and monitored the queues using pftop from the command line.
I noticed that the statistics for the download queue qTest-Down starts to vary as the download goes on, which is OK.
This means that the traffic is going into the right queue.Also, the statistics for the upload queue qTest-Up stays at zero, as expected (?)
Then, I stopped the download and created a floating rule as follows (to shape uploads initiated from the same PC on the LAN):
match out quick on { re2 } from 10.0.0.100 to <internet address=""> queue (qTest-Up)I then started an upload from the same PC to the same Internet FTP server and monitored the queues using pftop from the command line.
This time, both the statistics for the upload queue qTest-Up and the download queue qTest-Down start to change as the upload progresses.
Can anyone tell me whether this is normal and why?
All help appreciated.</internet></internet>