
336
C
HAPTER
15: P
ACKET
F
ILTERING
Port Group Filter
See “Using Port Groups in Custom Packet Filters” for a port group filter
example.
Limits to Filter Size
A packet filter program is stored in a preprocessed format to minimize the
space that is required by the packet filter definition. Comments are
stripped. 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 module is limited to a maximum of 16 packet filter programs.
The maximum length of a packet filter definition is 4096 bytes.
Storage Rules for
Preprocessed
Packet Filters
Each module provides a maximum of 2048 bytes of nonvolatile storage
for
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.
■
Module 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
module overhead) plus 13 bytes (for packet filter overhead) plus
200 bytes (for the program itself) — a total of 235 bytes.
Run-time Storage of
Packet Filters
For
run-time
storage of packet filter programs, each module provides a
maximum of 8192 bytes. There is no explicit system or per-packet-filter
overhead; however, performance considerations can result in unused
areas of the run-time storage.
The run-time format is approximately eight times the size of the stored
format. Thus a 200-byte packet filter program in stored format expands
to approximately 1600 bytes in the run-time format. A single packet filter
program cannot exceed 2048 bytes in the run-time format.
Summary of Contents for 4007
Page 36: ...36 ABOUT THIS GUIDE ...
Page 37: ...I UNDERSTANDING YOUR SWITCH 4007 SYSTEM Chapter 1 Configuration Overview ...
Page 38: ......
Page 50: ...50 CHAPTER 1 CONFIGURATION OVERVIEW ...
Page 52: ......
Page 70: ...70 CHAPTER 3 INSTALLING MANAGEMENT MODULES ...
Page 110: ...110 CHAPTER 4 CONFIGURING AND USING EME OPTIONS ...
Page 130: ...130 CHAPTER 5 MANAGING THE CHASSIS POWER AND TEMPERATURE ...
Page 222: ...222 CHAPTER 11 IP MULTICAST FILTERING WITH IGMP ...
Page 240: ...240 CHAPTER 13 RESILIENT LINKS ...
Page 304: ...304 CHAPTER 14 VIRTUAL LANS VLANS ...
Page 350: ...350 CHAPTER 15 PACKET FILTERING ...
Page 506: ...506 CHAPTER 19 OPEN SHORTEST PATH FIRST OSPF ROUTING ...
Page 534: ...534 CHAPTER 20 IPX ROUTING ...
Page 612: ...612 CHAPTER 22 QOS AND RSVP ...
Page 656: ...656 CHAPTER 23 DEVICE MONITORING ...
Page 657: ...IV REFERENCE Appendix A Technical Support Index ...
Page 658: ......
Page 664: ......