L2Filter
Overview
iMG/RG Software Reference Manual (Quality of Service)
7-60
7.2
L2Filter
7.2.1
Overview
The purpose of the L2 Filter module is to provide a mechanism by which inbound traffic can be classified and
acted upon based on its contents.
The module is configured by defining a set of profiles which themselves con-
tain a set of rules.
Each rule defines a packet classification and the appropriate action to take in the event of a
match.
The actions vary from basic operations, such as DROP, to more complex actions such as packet rewrit-
ing.
This mechanism provides a powerful and flexible framework for filtering of traffic in the system.
7.2.1.1 Packet Flow
In order to properly utilize the L2 Filter system, it is important to understand where this module falls in the
general flow of a packet through the system.
The important item to note in the above diagram is that packets are only run through the L2 Filter module in
the event they leave the layer 2 switch bound for the bridge.
This occurs when the CPU requires access to the
packet in order to read it, alter it or route it to another device in the system.
Some examples of these scenar-
ios are the following:
NAT, VLAN translation, usage of the ADSL module, etc.
7.2.1.1.1 Profiles
The profile is the high level container of the L2 Filter system.
The user creates a profile, assigns a series of
rules to that profile and then attaches it to the bridge transport.
Once the L2 Filter system is activated the
packet flow, in the system, is run through the profiles and the appropriate rules are applied.
Multiple profiles
can be configured however only two can be applied to the bridge at any given time.
You can assign one profile
to each direction of packet flow from the bridge (Rx and Tx).
LAN 1
LAN 3
Switch
Bridge
(CPU)
LAN 2
L2 Filter