
342
C
HAPTER
15: P
ACKET
F
ILTERING
Packet Filter Solution
The solution described here is to create a highly sophisticated packet filter
that prevents only the broadcast packets from the market data servers
from being forwarded onto the segments that are not part of an active
trading floor.
Before you write the packet filter, it is important to understand the
functions that the filter must provide. The broadcast packets that are
transmitted by the servers are based on either TCP/IP or XNS protocol. In
both cases, the broadcast packets have socket values that are greater
than 0x076c and less than 0x0898. The socket value is located 24 bytes
into the packet in IP datagrams and 30 bytes into the packet in XNS
datagrams.
You can use this information to create pseudocode that simplifies the
process of writing the actual filter. It helps to first write the pseudocode in
outline form, as shown here:
1
Determine if the packet has a broadcast address.
2
Determine if the packet is an XNS datagram.
3
Examine socket values and discard the packet if:
■
The socket value is greater than or equal to 0x76c
AND
■
The socket value is less than 0x898
4
Determine if the packet is an IP datagram.
5
If so, then examine socket values and discard the packet if:
■
The socket value is greater than or equal to 0x76c
AND
■
The socket value is less than 0x898
6
End the filter.
The pseudocode translates into the following complex packet filter:
Содержание 4007
Страница 1: ...http www 3com com Switch 4007 Implementation Guide Release 3 0 5 Part No 10013673 Published May 2000 ...
Страница 36: ...36 ABOUT THIS GUIDE ...
Страница 37: ...I UNDERSTANDING YOUR SWITCH 4007 SYSTEM Chapter 1 Configuration Overview ...
Страница 38: ......
Страница 50: ...50 CHAPTER 1 CONFIGURATION OVERVIEW ...
Страница 52: ......
Страница 70: ...70 CHAPTER 3 INSTALLING MANAGEMENT MODULES ...
Страница 110: ...110 CHAPTER 4 CONFIGURING AND USING EME OPTIONS ...
Страница 130: ...130 CHAPTER 5 MANAGING THE CHASSIS POWER AND TEMPERATURE ...
Страница 222: ...222 CHAPTER 11 IP MULTICAST FILTERING WITH IGMP ...
Страница 240: ...240 CHAPTER 13 RESILIENT LINKS ...
Страница 304: ...304 CHAPTER 14 VIRTUAL LANS VLANS ...
Страница 350: ...350 CHAPTER 15 PACKET FILTERING ...
Страница 506: ...506 CHAPTER 19 OPEN SHORTEST PATH FIRST OSPF ROUTING ...
Страница 534: ...534 CHAPTER 20 IPX ROUTING ...
Страница 612: ...612 CHAPTER 22 QOS AND RSVP ...
Страница 656: ...656 CHAPTER 23 DEVICE MONITORING ...
Страница 657: ...IV REFERENCE Appendix A Technical Support Index ...
Страница 658: ......
Страница 664: ......