Tom Kelliher, CS 325
May 2, 2011
Read 6.1-6.3.
Projects due Wednesday at beginning of class.
Two or more review questions due Friday morning.
Assignment VII due at beginning of exam on May 12.
Senior grades.
Routing.
Wireless networking.
Link layer exists between hosts on either side of a single link:
Unit of exchange is a packet/frame/datagram. Physical layer exchanges individual bits.
Example technologies: Ethernet, ATM, 802.11.
Error detection/correction codes appended frame:
Link layer services:
Error detection/correction.
How do you control transmission in a shared access medium?:
A number of possible ideas:
Time division multiplexing.
Frequency division multiplexing.
If a station is sending, wait a random amount of time, then listen again.
Is it always possible to detect a sending collision?
If media isn't idle, backoff for a randomly chosen unit of time.
bluebird:~/Class/Cs325/Lectures
% ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:1A:A0:16:65:8B
inet addr:10.67.1.26 Bcast:10.67.1.255 Mask:255.255.255.0
inet6 addr: fe80::21a:a0ff:fe16:658b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:295533 errors:0 dropped:0 overruns:0 frame:0
TX packets:173558 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:139988511 (133.5 MiB) TX bytes:31578020 (30.1 MiB)
Interrupt:177
MAC addresses are ``unique.''
Why both?
MAC addresses are not hierarchical, beyond vendor/adapter number designation.
Use ARP!!
An ARP cache:
bluebird:~/Class/Cs325/Lectures % arp Address HWtype HWaddress Flags Mask Iface 10.67.1.1 ether 00:13:5F:C4:B8:0A C eth0 shrike.goucher.edu ether 00:08:74:92:71:6B C eth0 goldfinch.goucher.edu ether 00:0B:DB:A7:EC:2A C eth0
ARP protocol screen capture. (On web site.) Ping of kingfisher from bluebird. Note multiple protocols:
Example: Send an HTTP request to a server on another subnet. (Resolver target on same subnet.)
Hubs are physical layer devices (re-generate and broadcast) -- still a shared medium.
(Ethernet is asynchronous.)
(IP uses datagram length to ignore padding.)
Store & forward.
Eliminate collisions.
Heterogeneous link speeds.
Don't have MAC addresses.
Essentially, a small forwarding table.
Multiple MAC addresses may be associated with the same interface. Why?