Any 802.2 LLC PDU has the following format: When
Subnetwork Access Protocol (SNAP) extension is used, it is located at the start of the Information field: The 802.2 header includes two eight-bit address fields, called
service access points (SAP) or collectively LSAP in the OSI terminology: • SSAP (Source SAP) is an 8-bit long field that represents the logical address of the network layer entity that has created the message. • DSAP (Destination SAP) is an 8-bit long field that represents the logical addresses of the network layer entity intended to receive the message.
LSAP values Although the LSAP fields are 8 bits long, the low-order bit is reserved for special purposes, leaving only 128 values available for most purposes. The low-order bit of the DSAP indicates whether it contains an individual or a group address: • If the low-order bit is 0, the remaining 7 bits of the DSAP specify an individual address, which refers to a single local service access point (LSAP) to which the packet should be delivered. • If the low-order bit is 1, the remaining 7 bits of the DSAP specify a group address, which refers to a group of LSAPs to which the packet should be delivered. The low-order bit of the SSAP indicates whether the packet is a command or response packet: • If it's 0, the packet is a command packet. • If it's 1, the packet is a response packet. The remaining 7 bits of the SSAP specify the LSAP (always an individual address) from which the packet was transmitted. LSAP numbers are globally assigned by the IEEE to uniquely identify well established international standards. The protocols or families of protocols which have assigned one or more SAPs may operate directly on top of 802.2 LLC. Other protocols may use the
Subnetwork Access Protocol (SNAP) with IEEE 802.2 which is indicated by the hexadecimal value 0xAA (or 0xAB, if the source of a response) in SSAP and DSAP. The SNAP extension allows using
EtherType values or private protocol ID spaces in all
IEEE 802 networks. It can be used both in datagram and in connection-oriented network services.
Ethernet (
IEEE 802.3) networks are an exception; the IEEE 802.3x-1997 standard explicitly allowed using of the
Ethernet II framing, where the 16-bit field after the MAC addresses does not carry the length of the frame followed by the IEEE 802.2 LLC header, but the
EtherType value followed by the upper layer data. With this framing only datagram services are supported on the
data link layer.
IPv4, IPX, and 802.2 LLC Although
IPv4 has been assigned an LSAP value of 6 (0x06) and
ARP has been assigned an LSAP value of 152 (0x98), IPv4 is almost never directly encapsulated in 802.2 LLC frames without SNAP headers. Instead, the
Internet standard RFC 1042 is usually used for encapsulating IPv4 traffic in 802.2 LLC frames with SNAP headers on
FDDI and on
IEEE 802 networks other than
Ethernet. Ethernet networks typically use
Ethernet II framing with
EtherType 0x800 for IP and 0x806 for ARP. The
IPX protocol used by Novell
NetWare networks supports an additional
Ethernet frame type,
802.3 raw, ultimately supporting four frame types on Ethernet (802.3 raw,
802.2 LLC,
802.2 SNAP, and
Ethernet II) and two frame types on
FDDI and other (non-Ethernet) IEEE 802 networks (802.2 LLC and 802.2 SNAP). It is possible to use diverse framings on a single network. It is possible to do it even for the same upper layer protocol, but in such a case the nodes using unlike framings cannot directly communicate with each other.
Control Field Following the destination and source SAP fields is a
control field. IEEE 802.2 was conceptually derived from
HDLC, and has the same three types of
PDUs: • unnumbered format PDUs, or
U-format PDUs, with an 8-bit control field, which are intended for connectionless applications; • information transfer format PDUs, or
I-format PDUs, with a 16-bit control and sequence numbering field, which are intended to be used in connection-oriented applications; • supervisory format PDUs, or
S-format PDUs, with a 16-bit control field, which are intended to be used for supervisory functions at the LLC (Logical Link Control) layer. To carry data in the most-often used unacknowledged connectionless mode the U-format is used. It is identified by the value '11' in lower two bits of the single-byte control field. ==References==