1
edit
Changes
→Transport Layer
2 Internet Layer
1 Network Layer
TCP/IP data Encapsulation
Application Layer +----------+
| data |
+----------+
^
|
Transport Layer +--------+----------+
| Header | data |
+--------+----------+
| ^
v |
Internet Layer +--------+-------------------+
| Header | data |
+--------+-------------------+
| ^
v |
Network Access Layer +--------+----------------------------+
| Header | data |
+--------+----------------------------+
=Major TCP/IP protocols in each Layer=
==Network Access Layer==
* This is the lowest layer in the TCP/IP network model
* Protocol in this layer provide the means for networking device to deliver data to the other devices on a directly attahed network.
* Protocols in this layer are hidden to the users.
* IP (logical network) addresses are converted into physical (network) addresses
* e.g. by using ARP - address resolution protocol
==Internet Layer==
Internet Protocol (IP)
* IPv4 and IPv6 (connectionless protocol)
* Defines the datagram - basic unit of transmission
* Defines the Internet addressing scheme
* Moves data between Network access layer and the Transport layer
* Routes datagrams to remote hosts
* Performs fragmentation and re-assembly of datagrams
* IP Datagram header Format:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Version| IHL |Type of Service| Total Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Identification |Flags| Fragment Offset |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Time to Live | Protocol | Header Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Source Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Destination Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Options | Padding |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Example Internet Datagram Header
RFC 791
Internet Control Message Protocol (ICMP) provides:
* Flow control
* unreachable destinations detection
* routes redirection
* remote hosts status checking
==Transport Layer==
Transmission Control Protocol (TCP):
* reliable data delivery with positive acknowledgment with retransmission
* connection-oriented
* three-way handshake
* TCP segment header format:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Source Port | Destination Port |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Sequence Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Acknowledgment Number |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Data | |U|A|P|R|S|F| |
| Offset| Reserved |R|C|S|S|Y|I| Window |
| | |G|K|H|T|N|N| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Checksum | Urgent Pointer |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Options | Padding |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| data |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
TCP Header Format
Note that one tick mark represents one bit position.
User Datagram Protocol (UDP)
* Minimum protocol overhead (unreliable)
* Connectionless
== Application Layer==
Application Protocols:
* HTTP - Hypertext Transfer Protocol
* SMTP - Simple Mail Transfer Protocol
* DNS - Domain Name Service
* FTP - File Transfer Protocol
* Telnet - Network Terminal Protocol
* NFS - Network File System
* NIS - Network Information System
[[Category:LUX]][[Category:NAD]]