AN2120: Connecting an M68HC08 Family Microcontroller to an ...
AN2120: Connecting an M68HC08 Family Microcontroller to an ...
AN2120: Connecting an M68HC08 Family Microcontroller to an ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Application Note<br />
Version<br />
A brief description of each of the fields found in <strong>an</strong> IP packet is given in<br />
Table 1.<br />
Table 1. Fields in <strong>an</strong> IP Packet<br />
Field Description<br />
Indicates the format of the Internet header. Two values are valid for this field: Four<br />
(current IP st<strong>an</strong>dard) <strong>an</strong>d six for the future IPv6.<br />
IHL (IP header length) The length of the Internet header measured in 32-bit words, usually 5<br />
Type of service Specify reliability, precedence, delay <strong>an</strong>d throughput parameters<br />
Total Length Total length of the datagram (header <strong>an</strong>d data) measured in bytes<br />
Identification An ID assigned by the sender <strong>to</strong> aid in assembling fragmented datagrams<br />
Flags (3 bits)<br />
One bit indicates fragmentation; <strong>an</strong>other is the "Don't fragment" bit, specifying whether<br />
the fragment may be fragmented. The last bit is reserved.<br />
Fragment offset Indicates a fragment portion<br />
Time <strong>to</strong> live Indicates the maximum time the datagram is allowed <strong>to</strong> remain in the Internet<br />
Pro<strong>to</strong>col Indicates the next layer pro<strong>to</strong>col which is <strong>to</strong> receive the payload of the datagram<br />
Header checksum A checksum of the header only<br />
Source address The sender IP address<br />
Destination address The destination IP address<br />
Options<br />
The option field is variable in length <strong>an</strong>d is optional. There may be zero or more<br />
options. This application note does not support options.<br />
Padding If options are present, padding ensures the IP header ends on a 32-bit boundary.<br />
Data Payload of the datagram<br />
An example of <strong>an</strong> IP datagram is shown in Figure 7. Notice how the IP<br />
packet carries ICMP data of a ping request from 192.168.55.2 <strong>to</strong><br />
192.168.55.1.<br />
45 00 00 1C 00 F4 00 00 80 01<br />
A4 99 C0 A8 37 02 C0 A8 37 01<br />
08 00 F6 51 01 00 00 AE<br />
Figure 7. Example of <strong>an</strong> IP Datagram with ICMP Payload<br />
<strong>AN2120</strong><br />
10 MOTOROLA