0
Rationale
I mentioned in one of the posts about how prioritizing small packets upstream is almost the proverbial silver bullet when it comes to QoS at home. I'm sure any ADSL user who uses interactive applications, such as SSH have noticed how laggy the SSH gets when you upload something from home, say your holiday pictures with scp to your web server. Also download is quite slow during upload. VoIP and online gaming will suffer too. Canonical solution is to use DSCP markings at sender end or DSCP mark based on IP address or port.
But I feel that is unnecessarily complex for typical home use scenario, since all of the important/interactive stuff are using small packets and the bandwidth hogging applications are all essentially doing MTU size packets. I've chosen <200B as small packet, which is arbitrary decision I did about decade ago when setting this up first time, I'm sure it could just as well be like 1300B. So without further rambling, I'll give IOS (ISR) and JunOS (SRX) examples how to roll this on your CPE.
IOS example
class-map match-any SMALL-PACKETS
match packet length max 200
!
policy-map WAN-OUT
class SMALL-PACKETS
priority percent 75
class class-default
fair-queue
random-detect
!
interface ATM0.100 point-to-point
pvc 0/100
vbr-nrt 2000 2000
tx-ring-limit 3
service-policy output WAN-OUT
!
!
JunOS example
[email protected]> show configuration interfaces vlan unit 0 family inet filter
input FROM_LAN;
[email protected]> show configuration firewall family inet filter FROM_LAN
term small_packets {
from {
packet-length 0-200;
}
then {
Continue reading