Docsity

Network Model: Understanding Layered Communication and Protocols - Prof. Ala I. Al-Fuqaha, Study notes of Computer Science

Partial preview of the text

Download Network Model: Understanding Layered Communication and Protocols - Prof. Ala I. Al-Fuqaha and more Study notes Computer Science in PDF only on Docsity!

Network Model

Why a Layered Model?

All People Seem To Need Data Processing

Layers with Functions

Packet Propagation

Each router provides its services to

support upper-layer functions.

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

TCP/IP Protocol Suite

DHCP

Network Infrastructure

LAN Devices

Repeater

„ Copies bits from one network to another

„ Does not look at any bits

„ Allows the extension of a network beyond

physical length limitations

REPEATER

Ethernet LAN Segmentation

  • Switches break collision domains.
  • Routers break collision domains as well as broadcast domains.

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.

CSMA/CD

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.

An Ethernet Frame

„ The preamble is a sequence of alternating 1s

and 0s used for synchronization.

„ CRC is Cyclic Redundency Check

8 bytes 6 6 2 46-1500 4

Preamble

Destination Address

Source Address Type^ DATA CRC

Introduction to IP, Addressing,

DHCP, ARP

Anatomy of an IP Packet

„ 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

IP Address as a

32-Bit Binary Number

DHCP at a Glance

„ Client Actions

Request lease for an address for

a period of time (LEASE TIME)

Renew address lease prior to

LEASE TIME expiration, or allow
the lease to EXPIRE

Release lease once no longer

needed

Reject offered lease if it is already

in use

„ 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

ARP Process

Virtual Local Area Networks

(VLAN)

VLAN Communication

Typical Deployment Networks

UDP, TCP, DNS

Simple Demultiplexor (UDP)

„ Unreliable and unordered datagram service

„ Adds multiplexing

„ No flow control

„ Endpoints identified by ports

servers have well-known ports

see /etc/services on Unix

„ Header format

„ Optional checksum

psuedo header + UDP header + data

SrcPort DstPort Length Checksum Data

0 16 31

TCP Overview

„ Connection-

oriented

„ Byte-stream

app writes bytes

TCP sends

segments

app reads bytes

„ Full duplex

„ Flow control : keep

sender from

overrunning receiver

„ Congestion control :

keep sender from

overrunning network

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

  • Flags : SYN, FIN, RESET, PUSH, URG, ACK
  • Checksum : IP pseudo header + TCP header + data