














Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!















Link Layer
Ethernet/FastEthernet/802.11/PPP
IP
ICMP IGMP
Network Layer
Transport Layer
Application Layer
UDP TCP
DNS SNMP HTTP SMTP POP
ARP ARP
DHCP
Copies bits from one network to another
Does not look at any bits
Allows the extension of a network beyond
physical length limitations
Ethernet
Multi-access (shared medium).
Every Ethernet interface has a unique
48 bit address (a.k.a. hardware address ).
Example: C0:B3:44:17:21:
The broadcast address is all 1’s.
Addresses are assigned to vendors by
a central authority.
Carrier Sense Multiple Access
with
Collision Detection
Carrier Sense : can tell when another
host is transmitting
Multiple Access : many hosts share
one wire
Collision Detection : can tell when
another host transmits at the same time.
8 bytes 6 6 2 46-1500 4
Preamble
Destination Address
Source Address Type^ DATA CRC
Introduction to IP, Addressing,
DHCP, ARP
Version IP header length (HLEN) Type-of-service Total length Identification Flags Fragment offset Time-to-live Protocol Header checksum Source address Destination address Options Padding Data
DHCP at a Glance
Request lease for an address for
Renew address lease prior to
Release lease once no longer
Reject offered lease if it is already
Remark : clients can bypass the
DHCP server to access the network
DHCPDISCOVER
DHCPOFFER
DHCPREQUEST
DHCPACK
ConfigurationDetermines
ConfigurationCommits
ConfiguresSelf
Address Resolution Protocol (ARP)
t
ARP enables a computer to find the MAC address of the computer that is associated with an IP address.
All devices on the network receive the packet and pass to network layer; only one device responds with an ARP reply.
ARP Operation Within a Subnet
Virtual Local Area Networks
(VLAN)
Simple Demultiplexor (UDP)
servers have well-known ports
see /etc/services on Unix
psuedo header + UDP header + data
SrcPort DstPort Length Checksum Data
0 16 31
app writes bytes
TCP sends
app reads bytes
Application process
Write bytes TCP Send buffer
Segment Segment Segment Transmit segments
Application process
Read bytes TCP Receive buffer
■ ■ ■
TCP Header
Options (variable)
Data
Checksum
SrcPort DstPort
HdrLen 0 Flags
UrgPtr
AdvertisedWindow
SequenceNum
Acknowledgment
0 4 10 16 31