New Member
Posts: 7
Registered: ‎11-22-2016

Traffic policy on VLANs

I am trying to set up a traffic policy for a particular VLAN, but I don't think I am understanding this correctly.  Here is my situation...

 

EdgeRouterPro v1.8.0

 

I have 3 VLANS on port 2

  eth 2.101

  eth 2.102

  eth 2.103

on eth2.101, I have public subnet ###.###.###.0/24 and private subnet 10.5.0.0/24.  The private subnet is to provide addresses for my APs covered by this VLAN.  Those APs then hand out 10.5.#.0/24 to the connected CPEs

 

My question is multi pronged.

     1. If I create a traffic policy that limits to 15down/2up for this VLAN and assign it to eth2, and I use 10.5.#.0/24 as the Match for the Source and Destination, will each address in that subnet get shaped to 15x2, or will the entire subnet share the 15x2? 

     2. Do I need to create a Source/Destination match for each IP i want to shape?

     2. Can I have multiple traffic policies per VLAN so I can shape some addresses in 10.5.#.0/24 at 15x2, and some at 25x3?

 

Thank you

Veteran Member
Posts: 6,354
Registered: ‎01-04-2017
Kudos: 923
Solutions: 324

Re: Traffic policy on VLANs

1. It depends how you set up the policy it can do both.
2. you would match it on source ip, unless you want to shape traffic going to a specific destination
3.You can have multiple rules per traffic policy matching different things. I do not believe you can have multiple traffic policy's per interface.
New Member
Posts: 7
Registered: ‎11-22-2016

Re: Traffic policy on VLANs

ok, I appreciate the response and I thought I had it gigured out.  However, regardless of how I set the bandwidth to on the match IP, they all get throttled to the same speed.  I am clearly missing something here...  Any help is greatly appreciated.

 

see excerpt from config below.  In order to save on the eyes, i am only pasting the first four classes in the limiter and shaper.

 

_____________________________________________________________________

traffic-policy {

    limiter client-UL {

        class 2 {

            bandwidth 2mbit

            burst 2.5mbit

            match 10.5.3.2 {

                ip {

                    source {

                        address 10.5.3.2/32

                    }

                }

            }

        }

        class 3 {

            bandwidth 2mbit

            burst 2.5mbit

            match 10.5.3.3 {

                ip {

                    source {

                        address 10.5.3.3/32

                    }

                }

            }

        }

        class 4 {

            bandwidth 2mbit

            burst 2.5mbit

            match 10.5.3.4 {

                ip {

                    source {

                        address 10.5.3.4/32

                    }

                }

            }

        }

        class 5 {

            bandwidth 2mbit

            burst 2.5mbit

            match 10.5.3.5 {

                ip {

                    source {

                        address 10.5.3.5/32

                    }

                }

            }

        }

         default {

            bandwidth 1000mbit

        }

    }

shaper client-DL {

        bandwidth 1000mbit

        class 2 {

            bandwidth 5mbit

            burst 1k

            ceiling 6mbit

            match 10.5.3.2 {

                ip {

                    destination {

                        address 10.5.3.2/32

                    }

                }

            }

            queue-type fair-queue

        }

        class 3 {

            bandwidth 20mbit

            burst 1k

            ceiling 21mbit

            match 10.5.3.3 {

                ip {

                    destination {

                        address 10.5.3.3/32

                    }

                }

            }

            queue-type fair-queue

        }

        class 4 {

            bandwidth 10mbit

            burst 1k

            ceiling 11mbit

            match 10.5.3.4 {

                ip {

                    destination {

                        address 10.5.3.4/32

                    }

                }

            }

            queue-type fair-queue

        }

        class 5 {

            bandwidth 15mbit

            burst 1k

            ceiling 16mbit

            match 10.5.3.5 {

                ip {

                    destination {

                        address 10.5.3.5/32

                    }

                }

            }

            queue-type fair-queue

        }

        default {

            bandwidth 100%

            burst 1k

            ceiling 100%

            queue-type fair-queue

        }

   __________________________________________________________________________________

Veteran Member
Posts: 6,354
Registered: ‎01-04-2017
Kudos: 923
Solutions: 324

Re: Traffic policy on VLANs

try adding:
set traffic-policy limiter client-UL bandwidth (your total bandwidth)
Highlighted
Veteran Member
Posts: 8,114
Registered: ‎03-24-2016
Kudos: 2133
Solutions: 933

Re: Traffic policy on VLANs

Did you apply client-DL and client-UL to interfaces,  so they're actually being used?

 

Before diving into linux tc output:  The command "show queueing" might show effectiveness of your filters 

 

New Member
Posts: 7
Registered: ‎11-22-2016

Re: Traffic policy on VLANs

I actually added another device in line to do the shaping, as I was in a rush.  I will look at both of the latest suggestions, thank you.