3.3.4. Impairment
Flows
Flows in E100 Chimera are identified using a flow ID (fid). Valid fids are 0-7, where fid = 0 is the port default flow.
When configuring the flow filters and flow impairments, the fid of the flow to be configured must be provided to the API using square brackets after the API command. E.g: PEF_INIT [fid]
.
Filters
A filter configuration can either be Basic (the default), or Extended. Basic mode enables configuration of a basic subset of protocol segments in a fixed order whereas Extended allows a much high degree of flexibility to filter within the first 128 bytes of a packet. The mode is selected with PEF_MODE. Basic mode allows filtering on:
Ethernet header
Up to two VLANs
Up to one MPLS label
The first IPv4 or IPv6 header
Up to six sequential bytes of payload anywhere within the first 128 bytes of the packet
Xena Test Payload IDs (TPID)
Extended mode allows filtering based on an initial Ethernet header followed by any combination of segments up to a total length of 128 bytes, as well as optionally Xena Test Payload IDs (TPID).
For example:
0/0 PEF_PROTOCOL [1,0] ETHERNET VLAN VLAN MPLS MPLS -4 ETHERNET VLAN`` could specify a Metro Ethernet Forum provider-tagged (first VLAN) customer-tagged (second VLAN) frame containing an MPLS tunnel (first MPLS label) containing an MPLS Pseudo Wire (second MPLS label + four bytes of Control Word) containing a single-tagged Ethernet frame.
Once the protocol layout has been specified it is possible to set up a sequence of value + mask bytes that selects the relevant fields of each protocol segment; see PEF_VALUE and PEF_MASK.
CLI for Impairment
CLI commands for impairment (E100 Chimera) functionalities:
- Impairment Configuration
- Default Distribution
- Custom Distribution
- Filter
- PEF_ANYCONFIG
- PEF_ANYSETTINGS
- PEF_APPLY
- PEF_CANCEL
- PEF_CONFIG
- PEF_ENABLE
- PEF_ETHDESTADDR
- PEF_ETHSETTINGS
- PEF_ETHSRCADDR
- PEF_INIT
- PEF_IPV4DESTADDR
- PEF_IPV4DSCP
- PEF_IPV4SETTINGS
- PEF_IPV4SRCADDR
- PEF_IPV6DESTADDR
- PEF_IPV6SETTINGS
- PEF_IPV6SRCADDR
- PEF_IPV6TC
- PEF_ISSHADOWDIRTY
- PEF_L2PUSE
- PEF_L3USE
- PEF_MASK
- PEF_MODE
- PEF_MPLSLABEL
- PEF_MPLSSETTINGS
- PEF_MPLSTOC
- PEF_PROTOCOL
- PEF_TCPDESTPORT
- PEF_TCPSETTINGS
- PEF_TCPSRCPORT
- PEF_TPLDCONFIG
- PEF_TPLDSETTINGS
- PEF_UDPDESTPORT
- PEF_UDPSETTINGS
- PEF_UDPSRCPORT
- PEF_VALUE
- PEF_VLANPCP
- PEF_VLANSETTINGS
- PEF_VLANTAG
- Impairment Statistics