A.1. Decision Flow

Upon receiving a frame, use the flow chart in Figure 2 and Tables 1 and 2 to decode the protocol type.

Table A.1. Protocol IDs
VALUEPROTOCOL
0x0800IP
0x0806IP-ARP
0x8035IP-RARP (rarely used)
0x8137IPX
0x809BAppleTalk[]
0x80F3AppleTalk ARP[]
0x6001, 0x6002DEC MOP
0x6003DECnet Routing Protocol
0x6004DEC LAT
0x6005, 0x6006DEC Diagnostics
0x8038DEC Spanning Tree
0x803DDEC Ethernet Encryption
0x803FDEC LAN Monitor
OthersNA
[]
[]

[] AppleTalk Phase 1 uses Type field encapsulation, with 0x809B as the Type value. AppleTalk Phase 2 uses SNAP encapsulation, with SNAP OUI = 0x08-00-07.

[] AppleTalk ARP Phase 1 uses Type field encapsulation, with 0x80F3 as the Type value. In Phase 2, AppleTalk ARP uses SNAP encapsulation, with SNAP OUI = 0x00-00-00.

Figure A.2. Figure 2 Protocol decision tree flowchart
Table A.2. LLC SAPs
VALUEPROTOCOL
0x06IP[]
0x42802.1D spanning tree
0xE0IPX/SPX (so-called 802.2 encapsulation)
OthersNA
[]

[] While this format is theoretically permissible, commercial IP devices do not use pure LLC encapsulation with the 0x06 SAP. Stations use either type field encapsulation (on Ethernet LANs) or RFC 1042 (SNAP, with 00-00-00 OUI) encapsulation (on non-Ethernet LANs).

NetBIOS is the only protocol considered that uses LLC Type 2 (connection-oriented LLC), so the parsing of NetBIOS is shown before the check of the LLC Control field. No known protocol uses 0xFFFF for its LLC DSAP ...

Get The All-New Switch Book: The Complete Guide to LAN Switching Technology, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.