Note: Networks

Questions

Midterm Review

01. Intro

Circuit switching vs Packet switching

STDM: waste capacity; doesn’t degrade gracefully; illusion of direct link

Statistical Multiplexing: maximizes link utilization; unfair; unpredictable; packet may take different paths; more overhead(additional information like destination address)

Address for link layer: MAC address; Address for IP: IP address

02. Layers
Method advantage disadvantage
Circuit switching guaranteed allocation; low space overhead; easy to reason about failures: must re-establish connection; no graceful degration; waste: allocate for peak; set up time long
Packet switching high utilization; flexible unfair; unpredictable; different paths for each packet
03. Physical Layer

Shannon’s law

NRZ: Non-Return to Zero

NRZ Drawbacks: no signal is 0; consecutive 1s or 0s are problematic; baseline wander problem; clock recovery problem

NRZI: Non-Return to Zero Inverted; encode 1 with transition, 0 with staying the same

Solve problem of consecutive 1s

Manchester: map 0 to chips 01; 1 to chips 10

Solve clock recovery and baseline wander but transmission rate now in half

4B/5B: every 4 bits encoded as 5 chips; transmit using NRZI

Never get more than 3 consecutive 0s

Encoding goals: page 24

Framing

Byte-oriented: character stuffing

Bit-oriented: bit stuffing

Drawback of sentinel: variable length

Length-based: put length in header

Drawback: length get corrupted

CRC checksum helps detect error

Clock-based: 125 us, encode with NRZ but XOR payload with 127-bit string to ensure lots of transitions

Metrics
Throughput number of bits received per unit of time
Good put Useful bits received per unit of time
Latency How long for message to cross network (Process+Queue+Transmit+Propagation)
Jitter variation in latency
At Least Once Semantics
Stop and Wait Protocol Duplicate data; Duplicate acks; Slow; Timeout hard to set

Duplicate data: add sequence numbers

At Most Once Semantics

Uniquely identify each packet

Sliding Window Protocol

How big is the window? “Bandwidth-Delay Product” BW B/s x RTT s

Sender:

Receiver:

Tuning send window

SWS- fill the pipe RWS- 1 <= RWS <= SWS SWS <= max valid seq# / 2

Error Detection
Hamming distance

If min HD between valid codewords is d:

2-D Parity

IP Checksum

n-bit code should capture all but 2^-n fraction of errors- Why?

CRC - Error Detection with Polynomials

05. Switching

Media Access Control
Ethernet

Addressing: MAC address

Collision detection

10Base2:

Token Ring

Switching
Virtual circuit switching
Datagram switching
Source routing
Bridging

Learning Bridges

bridges same broadcast domain copy frames
repeaters same broadcast and collision domain copy signals
Dealing with loops

Spanning Tree Protocol

VLAN

Topology doesn’t have to mirror physical locations

Switch architecture
Cut-through decrease latency can waste transmission(optimistic approach)
Store and forward high latency pessimistic approach
Buffering

07. IP

ARP- address resolution protocol
DHCP- dynamic host configuration protocol: for obtaining host IP addresses
NAT- network address translation
ICMP- internet control message protocol

A protocol runs on top of IP

08. Intra-domain Routing

09. Inter-domain Routing

TCP

Your Comments

comments powered by Disqus