An Embedded Web Server for National Semiconductors 16-bit
Microcontroller The CR16MCS9 CannonBall
What datagrams may come
TABLE OF CONTENTS
Use Navigation Buttons Above to Jump to Desired Page
Abstract:
................................................................................................................................................
3
Introduction:..........................................................................................................................................
3
Discussion:
.............................................................................................................................................
3
TCP Backgrounder:
..............................................................................................................................
5
·
Basic Data Transfer:
........................................................................................................................
5
·
Reliability:......................................................................................................................................
6
·
Flow Control:..................................................................................................................................
6
·
Multiplexing:
..................................................................................................................................
7
·
Connections:
...................................................................................................................................
7
·
Precedence and Security:
..................................................................................................................
7
·
TCP and Window Management
.........................................................................................................
7
·
TCPs Maximum Segment Size (MSS):
..............................................................................................
7
·
The Link layers Maximum Transmission Unit (MTU):
........................................................................
8
·
Silly Window Syndrome (SWS):
.......................................................................................................
8
IP Backgrounder:
..................................................................................................................................
9
·
IP Addressing:
................................................................................................................................
9
·
The MAC Address:..........................................................................................................................
9
·
IP fragmentation............................................................................................................................
11
Particulars of this Implementation
.....................................................................................................
11
ü
Memory Requirements
............................................................................................................
11
ü
Stack Details
...........................................................................................................................
11
A.
The Transport Layer TCP
......................................................................................................
13
1.
The TCP interface, or, API....................................................................................................
13
2.
The TCP Socket......................................................................................................................
14
3.
The TCP Segment.
..................................................................................................................
15
B.
The Transport Layer UDP
.....................................................................................................
18
The Network Layer (IP)
.....................................................................................................................
19
ICMP (Internet Control Message Protocol)
...........................................................................................
20
Data Link Layer (SLIP/PPP)...............................................................................................................
21
Figure 16. IP/Data Link Interface.
.....................................................................................................
22
The Application Layer (HTTP 1.0)
......................................................................................................
23
Naming Services (WINS/DNS)
...........................................................................................................
26
A CR16-based Embedded Web Server Demo.....................................................................................
28
III.
This Implementations Compliance with the TCP Specification
.............................................
30
IV.
Compliance with the IP Specification.......................................................................................
33
Biography About the Author, Jeff Wright.......................................................................................
35
Table of Figures
Figure 1. TCP Header Format...........................................................
6
Figure 2. IP Header Format
............................................................
9
Figure 3. Ipv4 Hierarchical Addressing scheme
.......................................
10
Figure 4. Protocol Layer Model
........................................................
12