background image
OSI Data Link Layer Functions 101
router can find the Layer 3 destination address, assume its length (32 bits or 80 bits), perform
table lookup in the correct routing table (ID or IPX), and make the correct routing decision.
HDLC does not provide a mechanism to identify the type of packet in the data field. IOS adds
a proprietary 2-byte field immediately after the HDLC header that identifies the contents of the
data. As shown in the bottom of Figure 3-15, the intervening Frame Relay switches do not care
what is inside the data field. The receiving router, R2, does care for the same reasons that R2
cares when using HDLC--that is, the receiving router needs to know whether an IP or IPX
packet follows the Frame Relay header. Frame Relay headers originally did not address this
issue, either, because the headers were based on HDLC. However, the IETF created a
specification called RFC 1490 that defined additional headers that followed the standard Frame
Relay header. These headers include several fields that can be used to identify the data so that
the receiving device knows what type is hidden inside.
The ITU and ANSI picked up the specifications of RFC 1490 and added it to their official Frame
Relay standards: ITU T1.617 Annex F and ANSI Q.933 Annex E, respectively.
Figure 3-16 shows the fields that identify the type of protocol found in the data field.
Figure 3-16
HDLC and Frame Relay Protocol Type Fields
As seen in Figure 3-16, a protocol type field comes after the HDLC control field. In the Frame
Relay example, four different options exist for identifying the type of data inside the frame.
RFC 2427, which obsoletes RFC 1490, provides a complete reference and is useful reading for
those of you moving on to CCNP certification (www.isi.edu/in-notes/rfc2427.txt). ("Obsoletes"
in the RFC world implies that a newer document has superceded it but does not necessarily
mean that all or most of the original RFC has been changed.)
Table 3-8 summarizes the different choices for encoding protocol types for each of the four
data link protocols. Notice that the length of some of these fields is only 1 byte, which
historically has led to the addition of other headers. For example, the SNAP header contains a
2-byte type field because a 1-byte DSAP field is not big enough to number all the available
options for what type of protocol is inside the data.
Flag
Data
FCS
Address
Control
Protocol
Type *
HDLC
Flag
Data
FCS
Address
Control
Pad
Optional
Optional
NLPID
SNAP
L2
PID
Frame Relay
L3
PID
1
2
3
4
* Cisco Proprietary
ch03.fm Page 101 Monday, March 20, 2000 4:58 PM