Protocol Stack and Layers Summary CSC 249 March 29, 2018 1 - - PDF document

protocol stack and layers summary
SMART_READER_LITE
LIVE PREVIEW

Protocol Stack and Layers Summary CSC 249 March 29, 2018 1 - - PDF document

Protocol Stack and Layers Summary CSC 249 March 29, 2018 1 Chapter 6: Summary q Data link layer services: v error detection and correction v sharing a broadcast channel: multiple access v link layer addressing v Plug-and-play for ARP and switch


slide-1
SLIDE 1

1

1

Protocol Stack and Layers Summary

CSC 249 March 29, 2018

2

Chapter 6: Summary

q Data link layer services:

v error detection and correction v sharing a broadcast channel: multiple access v link layer addressing v Plug-and-play for ARP and switch table

learning q Link layer technologies

v Ethernet v switched LANS (switches v. hubs)

slide-2
SLIDE 2

2

3

source

application transport network link physical

Ht Hn M

segment

Ht

datagram

destination

application transport network link physical

Ht Hn Hl M Ht Hn M Ht M M

network link physical link physical

Ht Hn Hl M Ht Hn M Ht Hn Hl M

router switch

Encapsulation

message

M Ht M Hn

frame

Ht Hn Hl M

Introduction

dtrans: transmission delay:

§ L: packet length (bits) § R: link bandwidth (bps) § dtrans = L/R

dprop: propagation delay:

§ d: length of physical link § s: propagation speed in medium (~2x108 m/sec) § dprop = d/s dtrans and dprop very different

Four sources of packet delay

propagation nodal processing queueing

dtotal = dproc + dqueue + dtrans + dprop

1-4

A B

transmission

slide-3
SLIDE 3

3

Application Layer 2-5

Sockets

q process sends/receives messages to/from its socket

v sending process sends message through the socket v sending process relies on transport infrastructure, UDP or

TCP as programmed into the operating system, to deliver the message to the socket at the receiving host & process

Internet controlled by OS controlled by app developer

transport application physical link network

process

transport application physical link network

process

socket

2-6

Root DNS Servers com DNS servers

  • rg DNS servers

edu DNS servers poly.edu DNS servers umass.edu DNS servers yahoo.com DNS servers amazon.com DNS servers pbs.org DNS servers

DNS: a distributed, hierarchical database

a host, or client, wants the IP address for www.google.com

1) Client (local server) queries root server to find the .com DNS server 2) Client queries .com DNS server to get google.com DNS server 3) Client queries google.com DNS server to get the IP address for

www.google.com

… …

slide-4
SLIDE 4

4

Transport Layer 3-7

Implementation:

q variable CWND q variable ssthresh q Loss event

v Triple duplicate ACK v timeout

TCP: slow start & congestion avoidance

8

DHCP client-server scenario

DHCP server: 223.1.2.5 arriving client

time DHCP discover src : 0.0.0.0, 68 dest.: 255.255.255.255,67 yiaddr: 0.0.0.0 transaction ID: 654 DHCP offer src: 223.1.2.5, 67 dest: 255.255.255.255, 68 yiaddr: 223.1.2.4 transaction ID: 654 Lifetime: 3600 secs DHCP request src: 0.0.0.0, 68 dest:: 255.255.255.255, 67 yiaddr: 223.1.2.4 transaction ID: 655 Lifetime: 3600 secs DHCP ACK src: 223.1.2.5, 67 dest: 255.255.255.255, 68 yiaddr: 223.1.2.4 transaction ID: 655 Lifetime: 3600 secs

yiaddr = ‘your internet address’ broadcast address, 255.255.255.255 à sent to every host in the subnet

slide-5
SLIDE 5

5

Router architecture overview

high-seed switching fabric routing processor router input ports router output ports

forwarding data plane (hardware) routing, management control plane (software)

forwarding tables computed, pushed to input ports

Network Layer

Routing: Dijkstra’s algorithm

Step 1 2 3 4 5 N' u ux uxy uxyv uxyvw uxyvwz D(v),p(v) 2,u 2,u 2,u D(w),p(w) 5,u 4,x 3,y 3,y D(x),p(x) 1,u D(y),p(y) ∞ 2,x D(z),p(z)

∞ ∞

4,y 4,y 4,y u y

x

w v

z 2 2 1 3 1 1 2 5 3 5

slide-6
SLIDE 6

6

Link Layer

CSMA/CD (collision detection)

spatial layout of nodes

12

Slide Example: Creating an ARP Table

For the same LAN segment:

q ‘A’ wants to send datagram to ‘B,’ and B’s MAC address not in

A’s ARP table.

q ‘A’ broadcasts ARP query packet, containing B's IP address

v Dest MAC address = FF-FF-FF-FF-FF-FF v All machines on LAN receive ARP query v ARP Packets contain IP & MAC address for source and destination v A caches (saves) IP-to-MAC address pair in its ARP table

q B receives ARP packet, responds to A with its (B's) MAC

address

v Why does only ‘B’ respond? v frame sent directly to A’s MAC address (not broadcast)

q ARP is “plug-and-play”:

v nodes create their ARP tables without intervention from net

administrator

slide-7
SLIDE 7

7

13

Switch table example

Suppose C sends frame to B

q Switch receives frame from from C

v Notes that B and C are in same segment v Switch does nothing

address interface A B E G C 1 1 2 3 1 hu b hub hub switch A B C D E F G H I 1 2 3

Layer Protocols, and their main features Happens TO Packet Action caused BY packet Action/Event happens on

  • wn

Application Transport Network Link