Switching

last person joined: 15 hours ago 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
  • 1.  CoS configuration question

    Posted 08-25-2014 15:59

    Hello everyone! 

    I'm configuring CoS (class of service) on a EX-4200 Switch. I have finished all configuration but I need to know how to check if the configuration is working. I have connected a laptop to device and I'm generating traffic. How can I know if is match with the filter?

     

    This is the configuration of CoS, my laptop generating traffic is in interface ge-0/0/20:

     

    set interfaces ge-0/0/20 unit 0 family ethernet-switching port-mode access
    set interfaces ge-0/0/20 unit 0 family ethernet-switching vlan members Users
    set interfaces ge-0/0/20 unit 0 family ethernet-switching filter input CoS_filter
    set class-of-service forwarding-classes class sap queue-num 4
    set class-of-service forwarding-classes class voip queue-num 3
    set class-of-service forwarding-classes class videov queue-num 2
    set class-of-service forwarding-classes class apps queue-num 1
    set class-of-service interfaces ge-0/0/22 scheduler-map CoS-Schedulers
    set class-of-service interfaces ge-0/0/23 scheduler-map CoS-Schedulers
    set class-of-service scheduler-maps CoS-Schedulers forwarding-class sap scheduler sap-sched
    set class-of-service scheduler-maps CoS-Schedulers forwarding-class voip scheduler voip-sched
    set class-of-service scheduler-maps CoS-Schedulers forwarding-class videov scheduler videov-sched
    set class-of-service scheduler-maps CoS-Schedulers forwarding-class apps scheduler apps-sched
    set class-of-service scheduler-maps CoS-Schedulers forwarding-class best-effort scheduler best-effort-sched
    set class-of-service scheduler-maps CoS-Schedulers forwarding-class network-control scheduler network-control-sched
    set class-of-service schedulers sap-sched transmit-rate percent 20
    set class-of-service schedulers sap-sched buffer-size percent 20
    set class-of-service schedulers sap-sched priority strict-high
    set class-of-service schedulers voip-sched transmit-rate percent 10
    set class-of-service schedulers voip-sched buffer-size percent 10
    set class-of-service schedulers voip-sched priority low
    set class-of-service schedulers videov-sched transmit-rate percent 10
    set class-of-service schedulers videov-sched buffer-size percent 10
    set class-of-service schedulers videov-sched priority low
    set class-of-service schedulers apps-sched transmit-rate percent 20
    set class-of-service schedulers apps-sched buffer-size percent 20
    set class-of-service schedulers apps-sched priority low

     

    Can you help with  this issue?

     

    Thank you and sorry for my English! 

     

    Regards,

    Antonela



  • 2.  RE: CoS configuration question

     
    Posted 08-25-2014 20:14

    Hi Antonela,

     

    Can you please provide the config for firewall filter "CoS_filter" and also please include the configs for the outgoing interface also?

     

    Regards

    Surya



  • 3.  RE: CoS configuration question

    Posted 08-25-2014 23:44

    DSCP Class        DSCPBin     DSCPHex     DCSPDec  TOS value

    Best Effort           000000  0x00  0                                        0

    CS 1                    001000  0x08  8                                      32

    CS 2                    010000  0x10  16                                    64

    CS 3                    011000  0x18  24                                    96

    AF31-Low            011010  0x1A  26                                 104

    AF41-Low           100010  0x22  34                                  136

    Expedited Fwdg  101110  0x2E  46                                  184

     

    The above is just an example of the bits that are used to represent these specifiic values. So in order to see a particular counter, you would run a ping test and specify a TOS value. You have to know which values represent your classifications though.

    You want to verify that the classifier you have defined are correct so you would run this command:

    run show class-of-service interface <ingress_interface>

     

    show interfaces <egress_interface> extensive | find "Queue counters"

    Start monitoring the queues

     run show interfaces queue egress_interface>

     

     ping <remote-ip-address> rapid count 30 tos <value>

     run show interfaces queue <ingress_interface> you should see the counters incrementing by 30 as long as the correct ToS value is being used. Hopefully that can help a little bit.



  • 4.  RE: CoS configuration question
    Best Answer

    Posted 08-26-2014 23:10

    In your firewall filter actions, include a counter and start monitoring that counter

    Eg: then

               { count matched-packets;

                  forwarding-class <>;

               }