Professional Documents
Culture Documents
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 - BOOTP : Bootstrap protocol
- unlike RARP, BOOTP packets can include the IP address, as well as the address of a router, the address of a server, and vendor-specific information. - The administrator must add hosts and maintain the BOOTP database ( set up an individual profile for each device ).
my MAC is What is my IP ? Your IP is 192.168.10.97
5
- 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.
- Destination IP
DNS :
Application specified in the TCP/IP suite Means to translate human-readable names into IP addresses
- Destination MAC
- ARP :
- each PC form an ARP table containing the learned MACs
- 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 9
10
10
11
12
Session multiplexing Segmentation Flow control (when required) Connection-oriented (when required) Reliability (when required)
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 hot
14
Port Numbers
Connection establishment
3-Way Handshake :
16
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
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 :
Flow Control
- Windowing (PAR):
error in
2 2 2 3
2
3
Flow Control
- Windowing (PAR):
22
23
- UDP :
- User Datagram Protocol
TCP Characteristics
Operates at the transport layer of the TCP/IP stack Provides applications with access to the network layer Connection-oriented protocol Full-duplex mode operation Error checking Sequencing of data packets Acknowledgement of receipt Data recovery features
25
TCP Header
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
27
UDP Header
Application Layer
29
29
E-mail
Simple Mail Transfer Protocol Remote login Telnet
rlogin
Network management Simple Network Management Protocol Name management Domain Name System
Port Numbers