Preprocessed And Run-Time Storage - 3Com SUPERSTACK 2200 User Manual

Switch administration console
Table of Contents

Advertisement

The following example shows the use of both accept and reject in a packet
filter. This packet filter was created for a network running both Phase I and
Phase II AppleTalk.
Name
"Filter AppleTalk datagrams"
pushField.w
pushTop
pushLiteral
eq
reject
pushLiteral.w
lt
accept
pushField.a
pushLiteral.a
ne

Preprocessed and Run-time Storage

A packet filter program is stored in a preprocessed format to minimize the
space required by the packet filter definition. When assigned to a port, the
packet filter is converted from the stored format to a run-time format to
optimize the performance of the filter. Each SuperStack™ II Switch 2200
system is limited to a maximum of 16 packet filter programs.
Each system provides a maximum of 2048 bytes of nonvolatile storage for
Preprocessed
packet filters
preprocessed packet filter programs. In the preprocessed stored format:
A single packet filter program is limited to 254 bytes.
Each instruction in the packet filter program requires 1 byte for the opcode
and size, plus additional bytes for any explicit operands.
System overhead is 22 bytes, plus a per-packet-filter overhead of
13 bytes. For example, assume a packet filter program requires 200 bytes
for storing the instructions in the program. If this packet filter is the only
one loaded, the nonvolatile memory required is 22 bytes (for system
overhead) plus 13 bytes (for packet filter overhead) plus 200 bytes (for the
program itself ) — a total of 235 bytes.
TM
The goal of the filter is to eliminate the AppleTalk traffic.
12
0x809b
0x5dc
16
0x03080007809b
Creating Packet Filters
# Get the type field.
# Make a copy.
# EtherTalk Phase I type
# Test if the packet type is
# equal to the AppleTalk type.
# Reject the packet and end.
# Otherwise
# Largest 802.3 packet size
# If this value is less than the
# value in the packet's
# type/length field, then this
# is an Ethernet frame, so
# accept the packet if it is not
# 802.3, otherwise...
# get the SNAP OUI and Ethertype
# value to compare.
# If not equal then forward the
# packet, otherwise drop it
12-9

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SUPERSTACK 2200 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Superstack ii 2200

Table of Contents