[j-nsp] Priority Queuing on MX series

Soon Lee leekorean at gmail.com
Wed Jan 26 09:12:10 EST 2011


Hello

The Result is as below

Address A:Port A |  Address B:Port B |  bps A->B
1.1.1.1:4848      |   1.1.1.2:4848     |  1749898	
1.1.1.1:4646      |   1.1.1.2:4646	   |  2208362	
1.1.1.1:3434      |   1.1.1.2:3434	   |  1685762	
1.1.1.1:2626      |   1.1.1.2:2626	   |  2057111	
1.1.1.1:1000      |   1.1.1.2:1000	   |  1801985	

Plz help!!!

Thanks

Soon Lee
CCIE# 17724

-----Original Message-----
From: Soon Lee [mailto:leekorean at gmail.com] 
Sent: Tuesday, January 25, 2011 10:42 AM
To: 'juniper-nsp at puck.nether.net'
Subject: Priority Queuing on MX series

Hi all.

I have never control juniper box, anyway I need you guys to help me for QoS
configure on MX series as a Priority Queuing

I think classify, Marking is ok. But scheduler is not okay

I sent 5 flow traffic( port 4848 is DSCP48, 4646 is DSCP46, 3434 is 34, 2626
is 26, 1000 is 0) with 2Mbps each flow except DSCP34(8Mbps)
  --> Total 16Mbps.  Interface rate-limit is 10Mbps

So, if my Juniper QoS configuration is correct then 1. DSCP48 and 46 are
supposed to be 2Mbps 2. DSCP34 is supposed to be 6Mbps.
3. The others(DSCP26,0) are 0Mbps.

But the result is as below

Address A  Port A  Address B Port B Packets  Bytes	Packets A->B
Bytes A->B	Packets A<-B	Bytes A<-B  Rel Start  Duration  bps A->B
bps A<-B
1.1.1.1    4848     1.1.1.2	 4848	 1943	    2024606	1943
2024606	0	        0	      0	          9.2559     1749898	N/A
1.1.1.1    4646     1.1.1.2	 4646	 2452	    2554984	2452
2554984	0	        0	      0.000275   9.2557     2208362	N/A
1.1.1.1    3434     1.1.1.2	 3434	 1871	    1949582	1871
1949582	0	        0	      0.000318   9.252      1685762	N/A
1.1.1.1    2626     1.1.1.2	 2626	 2283	    2378886	2283
2378886	0	        0	      0.00444    9.2514     2057111	N/A
1.1.1.1    1000     1.1.1.2	 1000	 2000	    2084000	2000
2084000	0	        0	      0.000357   9.252      1801985	N/A



Plz let me know Juniper QoS configuration as a Priority Queuing


classifiers {
    dscp classif-8q-dscp {
        forwarding-class h1 {
            loss-priority high code-points 110000;
        }
        forwarding-class ef {
            loss-priority medium-high code-points 101110;
       }
        forwarding-class h2 {
            loss-priority medium-high code-points 100010;
        }
        forwarding-class af {
            loss-priority medium-low code-points 000000;
        }
    }
    exp classif-8q-exp {
        forwarding-class be {
            loss-priority low code-points 010;
        }
        forwarding-class l2 {
            loss-priority low code-points 001;
        }
        forwarding-class af {
            loss-priority low code-points 000;
        }
        forwarding-class l1 {
            loss-priority medium-low code-points 011;
        }
        forwarding-class h2 {
            loss-priority medium-high code-points 100;
        }
        forwarding-class ef {
            loss-priority medium-high code-points 101;
        }
        forwarding-class h1 {
            loss-priority high code-points 110;
        }
        forwarding-class nc {
            loss-priority high code-points 111;
        }
    }
    ieee-802.1 classif-8q-dot1p {
        forwarding-class be {
            loss-priority low code-points 010;
        }
        forwarding-class l2 {
            loss-priority low code-points 001;
        }
        forwarding-class af {
            loss-priority low code-points 000;
        }
        forwarding-class l1 {
            loss-priority medium-low code-points 011;
        }
        forwarding-class h2 {
            loss-priority medium-high code-points 100;
        }
        forwarding-class ef {
            loss-priority medium-high code-points 101;
        }
        forwarding-class h1 {
            loss-priority high code-points 110;
        }
        forwarding-class nc {
            loss-priority high code-points 111;
        }
    }
}
forwarding-classes {
    queue 0 be;     
    queue 1 l2;
    queue 2 af;
    queue 3 nc;
    queue 4 l1;
    queue 5 h2;
    queue 6 ef;
    queue 7 h1;
}
interfaces {
    ge-0/0/0 {
        scheduler-map 8Q-map;
        shaping-rate 10m;
        unit 0 {
            classifiers {
                exp classif-8q-exp;
            }
            rewrite-rules {
                exp rewrite-8q-exp;
            }
        }
    }
    ge-0/1/0 {
        scheduler-map 8Q-map;
        shaping-rate 10m;
        unit 100 {
            classifiers {
                ieee-802.1 classif-8q-dot1p;
            }
            rewrite-rules {
                exp rewrite-8q-exp;
            }
        }
    }
    ge-0/1/1 {
        scheduler-map 8Q-map;
        shaping-rate 10m;
        unit 0 {
            classifiers {
                ieee-802.1 classif-8q-dot1p;
            }
            rewrite-rules {
                exp rewrite-8q-exp;
            }
        }
    }
}                   
rewrite-rules {
    exp rewrite-8q-exp {
        forwarding-class be {
            loss-priority low code-point 010;
            loss-priority high code-point 010;
        }
        forwarding-class l2 {
            loss-priority low code-point 001;
            loss-priority high code-point 001;
        }
        forwarding-class af {
            loss-priority low code-point 000;
            loss-priority high code-point 000;
        }
        forwarding-class l1 {
            loss-priority low code-point 011;
            loss-priority high code-point 011;
        }
        forwarding-class h2 {
            loss-priority low code-point 100;
            loss-priority high code-point 100;
        }
        forwarding-class ef {
            loss-priority low code-point 101;
            loss-priority high code-point 101;
        }
        forwarding-class h1 {
            loss-priority high code-point 110;
            loss-priority low code-point 110;
        }
        forwarding-class nc {
            loss-priority high code-point 111;
            loss-priority low code-point 111;
        }
    }
}
scheduler-maps {
    8Q-map {
        forwarding-class be scheduler be-sched;
        forwarding-class l2 scheduler l2-sched;
        forwarding-class af scheduler af-sched;
        forwarding-class l1 scheduler l1-sched;
        forwarding-class h2 scheduler h2-sched;
        forwarding-class ef scheduler ef-sched;
        forwarding-class h1 scheduler h1-sched;
        forwarding-class nc scheduler nc-sched;
    }
}
schedulers {
    be-sched {
        priority low;
    }
    l2-sched {
        priority low;
    }
    af-sched {
        priority low;
    }
    l1-sched {
        priority medium-low;
    }               
    h2-sched {
        priority medium-high;
    }
    ef-sched {
        priority medium-high;
    }
    h1-sched {
        priority high;
    }
    nc-sched {
        priority strict-high;
    }
}

Thanks.

Soon.








More information about the juniper-nsp mailing list