Network Working Group Samuel J. Leffler
Request for Comments: 893 Michael J. Karels
University of California at Berkeley
April 1984
Trailer Encapsulations
Leffler & Karels [Page 1]
RFC 893 April 1984
Data to be transmitted across a network may easily be segmented in the appropriate size, but unless the encapsulating protocol header information is fixed in size, alignment to a page boundary is virtually impossible. Protocol header information may vary in size due to the use of multiple protocols (each with a different header), or it may vary in size by agreement (for example, when optional information is included in the header). To insure page alignment the header information which prefixes data destined for the receiver must be reduced to a fixed size; this is normally the case at the link level of a network. By taking all (possibly) variable length header information and moving it after the data segment a sending host may "do its best" in allowing the receiving host the opportunity to receive data on a page aligned boundary. This rearrangement of data at the link level to force variable length header information to "trail" the data is the substance of the trailer encapsulation.
Leffler & Karels [Page 2]
RFC 893 April 1984
The second point is (to our knowledge) insignificant. While a host may not be able to take advantage of the alignment and size properties of a trailer packet, it should nonetheless never hamper it.
Leffler & Karels [Page 3]
RFC 893 April 1984
Trailer Encapsulation Packet Formats
+----+-------------------------------------------------+----+
| LH | data | TH |
+----+-------------------------------------------------+----+
^ ( ^ ) ^
LH:
Leffler & Karels [Page 4]
RFC 893 April 1984
Trailer Format+----------------+----------------+------~...~----------+ | TYPE | HEADER LENGTH | ORIGINAL HEADER(S) | +----------------+----------------+------~...~----------+Type: 16 bits
Leffler & Karels [Page 5]
RFC 893 April 1984
References