Junos
Reply
Visitor
jwthomson
Posts: 2
Registered: ‎04-02-2012
0

Help with Policing on J2320 - newbie

[ Edited ]

Hi All

 

Currently we're shaping inbound traffic on a Packeteer. It's now reaching peak traffic load and so I want to switch to using policing at the router level rather than purchase a new applicance. However while I can work out the filters I am having a bit of difficulty in getting my head around how to create the policers so that everyone gets a fair slice of the pie

 

We have 3 classes of customer and 20Mbps total bandwidth

1) dedicated CIR 2.5Mb - PIR 10Mb

2) dedicated CIR 2Mb - PIR 4Mb

3) no CIR - PIR 4Mb

 

The intended router is a J-2320

 

Can someone please advise?

 

Regards

Jodi

 

 

Visitor
jwthomson
Posts: 2
Registered: ‎04-02-2012
0

Re: Help with Policing on J2320 - newbie

[ Edited ]

Ok I've made an attempt based upon some other examples I've seen here. Would appreciate an expert eye cast over it

 

policy-options {
    prefix-list Cust_8m {
        x.x.197.86/32
    }

    prefix-list Cust_4m {
        x.x.195.146/32
    }

    prefix-list Cust_default {
        x.x.192.0/21
    }
}

firewall {
    policer 8meg {
        if-exceeding {
            bandwidth-limit 8M
            burst-size-limit 187k
        }
        then {
            discard
        }
     }
    policer 4meg {
        if-exceeding {
            bandwidth-limit 4M
            burst-size-limit 94k
        }
        then {
            discard
        }
    }
    policer default {
        if-exceeding {
            bandwidth-limit 12M
            burst-size-limit 281k
         }
         then {
            discard
         }
    }
}
    filter inbound {
        term term-1
            from {
                prefix-list
                    Cust_8m
                }
            }
            then {
                policer 8meg
            }
        }
        term term-2
            from {
                prefix-list {
                    Cust_4m
                }
            }
            then {
                policer 4meg
            }
        }
        term default
            from {
                prefix-list {
                    Cust_Default
                }
            }
            then {
                policer default
            }
        }
    }
}

 

Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.