Frame creation
Source MAC Destination MAC Source IP Destination IP
DNS
Source MAC
Source IP
1- by static configuration
Source IP
2- dynamic :
- RARP : Reverse Address
Resolution Protocol
Reserves an unknown IP to known MAC. Layer 2 protocol. RARP server cant be outside the LAN.
my MAC is What is my IP ? Your IP is 192.168.10.97
6
Source IP
Boot P (Booting Protocol): - Layer 7 protocol.
Source IP
- DHCP :
- Dynamic host configuration protocol - DHCP allows a host to obtain an IP address dynamically without the network administrator having to set up an individual profile for each device. - a range of IP addresses on a DHCP server is defined . - the entire network configuration of a computer can be obtained in one message from the server.
2004, Cisco Systems, Inc. All rights reserved.
Destination IP
DNS :
Application specified in the TCP/IP suite Means to translate human-readable names into IP addresses
2004, Cisco Systems, Inc. All rights reserved.
Destination MAC
- ARP :
- Layer 2 protocol.
-each PC form an ARP table containing the learned MACs
10
Destination MAC
- Proxy ARP :
A
B A
B
Router R I take care, to forward IP packets to B Broadcast Message to all: If your IP address matches B then please tell me your Ethernet address
Yes, I know the destination network, let me give you my Ethernet address
11
12 12
13
14
Layer 4 Addressing
Port Numbers :
Port numbers are classified to Well Known port (0-1023), it identifies different applications, ex:FTP(20,21), Telnet(23), SMTP(25), DNS(53), HTTP(80) User defined port (1024-65535), it is given randomly by the operating system for each session initiated by the host
2004, Cisco Systems, Inc. All rights reserved.
15
Multiplexing applications
2 1
12.0.0.1
13.0.0.1 web server
12.0.0.2
3 Source IP 1 2 3 12.0.0.1 12.0.0.1 12.0.0.2 Destination IP Source port Destination port 13.0.0.1 13.0.0.1 13.0.0.1 1200 1500 1200 80 80 80
16
Connection establishment
3-Way Handshake :
17
Connection management
- Sequencing & Acknowledgement :
18
Flow Control
Flow control avoids the problem of a transmitting host overflowing the buffers in the receiving host.
19
Flow Control
- Ready / Not Ready :
20
Flow Control
- Windowing (PAR):
error in
2 2 2 2
2
2
21
Flow Control
- Windowing (PAR):
22
23
- Reliable service
- UDP :
- User Datagram Protocol - Connectionless - Unreliable service
2004, Cisco Systems, Inc. All rights reserved.
24
TCP Characteristics
Connection-oriented protocol
Error checking Sequencing of data packets Acknowledgement of receipt Data recovery features
25
TCP Header
26
UDP Characteristics
Operates at transport layer of OSI and TCP/IP models
Provides applications with access to the network layer without the overhead of reliability mechanisms ( speedy ) Connectionless protocol
Limited error checking Best-effort delivery No data recovery features
2004, Cisco Systems, Inc. All rights reserved.
27
UDP Header
28
Port Numbers
29
Application Layer
30 30
E-mail
Simple Mail Transfer Protocol Remote login Telnet
rlogin
Network management Simple Network Management Protocol Name management Domain Name System
31
32