




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!





application: supporting network applications!
-! HTTP, SMTP, FTP, etc.! transport: endhost-endhost data transfer! -! TCP, UDP! network: routing of datagrams from source to destination! -! IP, routing protocols! link: data transfer between neighboring network elements! -! Ethernet, WiFi! physical: bits “on the wire”! application transport network link physical
We only look at a very brief overview of the physical layer in this course!
-! to learn more, take EECS 455: Signals and Systems, EECS 554: Digital Communication and Coding, and/or EECS 557: Communication Networks! Signal degrades (attenuates) as it travels further from the source (caused by resistance on the wire, cosmic interference, etc.)! Wires:! -! coax: shielding of core reduces interference! -! twisted pair: twisting a pair of wires changes " the electrical property of the pair, reducing interference! -! glass fiber:! -! LED or laser as signal source! -! more fragile but no interference! -! can carry more data! -! hard to splice!
Thick (10Base5) Ethernet! Network interface! with AUI connector! cards (NICs)! Ethernet card! Wireless card! Thin (10Base2) Ethernet! with BNC connector! Twisted Pair (10/100BaseT/Gigabit)! Ethernet with RJ-45 connector!
Transmission distance limited due to: signal loss " caused by interference and sharing condition! Examples:!
-! serial line (RS-232): 15 m! -! 10Base5 Ethernet: 500 m, " at most 4 repeaters (2.5km total)! -! 10Base2 Ethernet: 185 m max, 0.45m min, " at most 4 repeaters (1 km total)! -! 10/100BaseT Ethernet (copper): 100 m! -! 100 Mbps Ethernet (fiber): 412 m! -! fiber: 2-100 km!
Point-to-point: connections to connect N computers! Shared LAN:! bus ring! star! N 2 ! "# $ %&^ =^ N^2 ' N 2
Radio:!
-! satellite: order of Gbps, up-down latency of 250 ms (too long)! -! cellular, WiFi, WiMax! -! Bluetooth: 2.4 GHz short range radio, 721 Kbps – 2.1 Mbps, 1-100 m! -! UWB: 3.1 GHz-10.6 GHz, 480-675 Mbps, 10 m, less interference due to use of short pulses! -! Wireless USB! -! Bluetooth 3.0! -! Wireless FireWire! Microwave:! -! high bandwidth: 1.5 Gbps! -! can be aimed in a single direction! -! requires “line-of-sight”! -! most useful to connect buildings on campus! Infrared: shorter distance, no need for antenna!
Bit vs. Baud!
-! bit transmitted as electrical or optical signal! -! bit rate: number of bits per second! -! baud rate: signal/voltage level changes per second! -! each level can represent multiple bits! -! for binary signalling, bit rate == baud rate! -! for M - ary signalling, bit rate! baud rate! -! example: 4-ary signalling! Example: RS-232! -! negative voltage (-15V) represents a 1! -! positive voltage (+15V) represents a 0! -! bit rate == baud rate! -! 7 bits/character! -! to allow asynchronous communication: " 1 start bit, 1 stop bit! voltage + +
11 10 11 01 00 11 00 (^0) time 1sec 7 baud/sec = 14 bps
Used in 10BaseT Ethernet! Each bit has a transition! Allows clocks in sending and receiving nodes to synchronize to each other!
-! no need for a centralized, global clock among nodes!!
USB3! 5 Gbps! UWB:! Bluetooth3," Wireless USB,! Wireless FireWire! 480 Mbps! USB2! 480 Mbps! USB1! 12 Mbps! Bluetooh2! 2 Mbps! Bluetooth1! 723 Kbps! 10GigEthernet! 10 Gbps! Gigabit Ethernet! 1 Gbps! FDDI, Fast Ethernet! 100 Mbps! Token Ring! 16 Mbps! Ethernet! 10 Mbps! WiFi 802.11a! 23 Mbps! WiFi 802.11g! 19 Mbps! WiFi 802.11b! 4.5 Mbps! (^) Cat-5 cable! 100 Mbps! Cat-4 cable! 20 Mbps! Cat-3 cable! 10 Mbps! Level 1 cable (min)! 20 Kbps! LAN technologies! wired! wireless! WiMax 802.16! 75 Mbps! WiBro (SKorea, mobile WiMax) 802.16e! 30- Mbps! CDMA 1xEVDO rev. B! 5 Mbps! HSDPA! 3.6 Mbps! CDMA 1xEVDO rev. A! 3 Mbps! EDGE! 236 Kbps! CDMA1x! 163 Kbps! GPRS! 80 Kbps! PAN technologies! Wide-area wireless data technologies! Cable bandwidth!
The data-link layer has the responsibility of transferring packets from one node to an adjacent node over a link! At the link layer, a packet is called a frame , and it encapsulates a network-layer datagram! A network datagram may be transferred by different link protocols over different links:!
-! e.g., Ethernet on the first link, frame relay on intermediate links, and 802.11 on the last link! “link”!
Link layer implemented in “adaptor” (a.k.a. NIC)!
-! Ethernet card, PCMCI card, 802. card! Sending side:! -! encapsulates datagram in a frame! -! adds error checking bits, flow control, etc.! Receiving side! -! looks for errors, flow control, etc! -! extracts datagram, passes to receiving node! Adaptor is semi-autonomous! link & physical layers! sending! node! frame! receiving! node! datagram! frame! adaptor! adaptor! link layer protocol!
“Dominant” wired LAN technology:! cheap $20 for 100Mbps!! First widely used LAN technology! Simpler, cheaper than token LANs and ATM! Kept up with speed race: 10 Mbps – 10 Gbps!
The Data Link layer can be further subdivided into:! 1.! Logical Link Control (LLC): error and flow control! 2.! Media Access Control (MAC): framing and media access! different link protocols may provide different services, e.g., Ethernet doesn’t provide reliable delivery (error recovery)! MAC topics:!
-! framing and MAC address assignment! -! LAN forwarding! -! IP to MAC address resolution! -! IP to MAC: Address Resolution Protocol (ARP)! -! MAC to IP: Reverse ARP (RARP), BOOTstrap Protocol (BOOTP), Dynamic Host Configuration Protocol (DHCP)! -! media access control! application transport network LLC MAC physical
Why packetize/frame data?!
-! minimize retransmission (upon error)! -! resource sharing, example:! -! 5 MB file takes 12 min to transmit on a 56 kbps line! -! 1 KB packet takes 143 ms! Framing allows sources with small amount of " data to send (e.g., VoIP) to finish promptly! Framing is done by using a special bit pattern " to denote start & end of frame (soh & eot)! Bit stuffing: if soh & eot shows up in data, " they must be protected/escaped!
Frame transmission on a LAN:!
-! frames are tagged with destination MAC address! -! frames sent to all hosts on the LAN! -! the NIC on each host makes a copy of frame! -! if the frame is addressed to the host, the NIC sends the frame up to the CPU! -! a frame can also have a broadcast or multicast address! -! NICs could be put in promiscuous mode (e.g., tcpdump, ethereal, network sniffer, network analyser)! MAC address assignment! -! static: Ethernet (48-bits): requires global address assignment! -! configurable: requires DIP switch, EPROM! -! dynamic (random number):! -! advantage: only need to be uniqe within a LAN! -! disadvantage: address changes between reboots!
Sending adaptor encapsulates IP datagram (or other network layer protocol packet) in Ethernet frame! Preamble: 7 bytes with pattern 10101010 followed by one byte with pattern 10101011, used to synchronize receiver-sender clock rates! Addresses: 6 bytes!
-! if adaptor receives frame with matching destination MAC address, or with broadcast address (e.g., ARP packet), it passes data in the frame to network-layer protocol! -! otherwise, adaptor discards frame! Type: indicates the higher layer protocol! CRC: checked at receiver, if error is detected, the frame is simply dropped!
-! A creates datagram with source IP A , destination IP B! -! A creates link-layer frame with R 's MAC address as dest, frame containing A -to- B IP datagram! -! A ’s adaptor sends frame to R -! R ’s adaptor receives frame, extracts IP datagram from the frame, " sees that its destination is B -! R uses ARP to get B ’s MAC address, and creates a new frame containing A -to- B IP datagram with MAC destination addres set to B ’s!
How does a host obtain its IP address?! 1.!Hard-coded by system admin in a file!
-! Wintel: control-panel->network->configuration->tcp/ip->properties! -! UNIX: /etc/rc.config! 2.! Ask a server:! -! Reverse ARP (RARP) (obsolete)! -! BOOT Protocol (BOOTP) (obsolete)! -! Dynamic Host Configuration Protocol (DHCP): " dynamically request an address from a server when the host boot! -! “plug-and-play”!
-! Sender broadcasts a RARP packet with its own MAC address! -! One or more RARP server respond with the sender’s IP address! -! If no reply, server may be down or busy, retry later! To prevent too many replies:! -! each host can be assigned a primary server! -! on repeated query, non-primary servers wait a random time for response from other servers before replying! RARP may also be used to find out the IP address of a 3rd party host! Disadvantages of RARP:! -! can’t be used with dynamic MAC addresses! -! limited information sent! -! limited to physical segment! -! requires one RARP server per segment! (last two due to the use of broadcasting)!
Information a newly booted machine may need:!
-! IP address! -! subnet mask! -! default router’s address! -! boot file (name and size)! -! time of day! -! DNS server! -! print server! -! file server (if thin/diskless client)! -! etc.! Each piece of the required info can be requested and sent separately! However, this would be inefficient because:! -! it causes a lot of broadcast traffic! -! each request/reply must be padded out to min frame size " (due to MAC layer broadcast requirement)!
-! batched query and response! -! uses UDP/IP with IP broadcasting! -! limiting BOOTP use within a LAN, but beyond a physical segment! -! hosts’ IP addresses are assigned statically! -! requires database update for each new host! DHCP: BOOTP with a pool of shared host identities! -! if MAC address of a querying host is not in the database of permanent identities, assigns (leases) it a temporary identity from pool! -! clients wait a random time before sending Discover or Request messages after booting, to prevent storming the LAN! -! advantage: doesn’t require manual configuration! -! shortcoming: DHCP’s interaction with DNS unspecified " (dynamic DNS not widely deployed)!
Opcode:!
-! BOOTREQUEST! -! BOOTREPLY! Hardware Type:! -! Ethernet (1), FireWire (24), etc.! Hardware address length (hlen)! Transaction ID:! -! random number chosen by client to associate messages and responses! Seconds Elapsed: since client began an address acquisition or renewal process!
Also allows for client to cache IP address across boot events!
-! upon boot, client tries to renew lease of cached address! Finite state machine (FSM) is a useful tool for designing and documenting protocol:! -! it consists of a number of states! -! a graph showing the transition of one state into one or more of the other states! -! and labels on the graph edge showing:! -! what event causes each transition, e.g., receiving certain type of packet! -! and what actions or side effects each transition may cause, if any! no response: state 1! (^) state 2! event causing state transition! actions taken on state transition! state: when in this “state” next state uniquely determined by next event! event! actions!