LAN Technologies MAC protocols used in LANs, to control access to the channel Token Rings: IEEE 802.5 (IBM token ring), for computer room, or department.

Slides:



Advertisements
Similar presentations
Ethernet “dominant” LAN technology: cheap $20 for 100Mbs!
Advertisements

Review r Error Detection: CRC r Multiple access protocols m Slotted ALOHA m CSMA/CD r Homework 3 out r Project 3 out, link state only. Some slides are.
5: DataLink Layer5-1 Mac Addressing, Ethernet, and Interconnections.
Computer Networks Ethernet I Professor Hui Zhang
1 Ethernet EECS 489 Computer Networks Z. Morley Mao Wednesday Feb 21, 2007 Acknowledgement: Some slides taken.
1 Data Link Layer Ethernet Bridges Token Ring. 2 Summary of MAC protocols What do you do with a shared media? Channel Partitioning: time, frequency or.
1 Data Link Layer Goal of this lecture:  Introduce data link layer concepts and protocols Contents:  Link Layer Services  Medium Access Methods  MAC.
5: DataLink Layer5-1 MAC Addresses and ARP r 32-bit IP address: m network-layer address m used to get datagram to destination IP subnet r MAC (or LAN or.
5: DataLink Layer5-1 Data Link Layer r What is Data Link Layer? r Multiple access protocols r Ethernet.
TDC 461 Basic Communications Systems Local Area Networks 29 May, 2001.
5: DataLink Layer5-1 Link Layer r Link layer services r Error detection and correction r Multiple access protocols r 5.4 Link-Layer Addressing r 5.5 Ethernet.
EE 122: Ethernet and Ion Stoica September 18, 2002 (* this talk is based in part on the on-line slides of J. Kurose & K. Rose)
1 Last class r Random Access Protocols m Slotted Aloha m Aloha m CSMA/CD m “Taking Turns” Protocols r Link-Layer Addressing Today r Ethernet, Hubs and.
5: DataLink Layer – Ethernet, Hubs and Switches.
MAC Addresses and ARP 32-bit IP address: –network-layer address –used to get datagram to destination IP subnet MAC (or LAN or physical or Ethernet) address:
1 CSE401N: COMPUTER NetworkS LAN address & ARP Ethernet Basics.
5-1 Data Link Layer r Today, we will study the data link layer… r This is the last layer in the network protocol stack we will study in this class…
5: DataLink Layer5-1 Chapter 5 Link Layer and LANs Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross.
16 – CSMA/CD - ARP Network Layer4-1. 5: DataLink Layer5-2 CSMA (Carrier Sense Multiple Access) CSMA: listen before transmit: If channel sensed idle: transmit.
5: DataLink Layer5a-1 Summary of MAC protocols r What do you do with a shared media? m Channel Partitioning, by time, frequency or code Time Division,Code.
IP Address 0 network host 10 network host 110 networkhost 1110 multicast address A B C D class to to
Review r Error Detection: CRC r Multiple access protocols m Slotted ALOHA m CSMA/CD r LAN addresses and ARP r Ethernet Some slides are in courtesy of J.
1 LAN Topologies, Access methods (Week 1, Wednesday 1/10/2007) © Abdou Illia, Spring 2007.
LAN Technologies. LAN technologies Data link layer so far: –services, error detection/correction, multiple access Next: LAN technologies –addressing –Ethernet.
Introduction 1 Lecture 25 Link Layer (Ethernet, Switch) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science & Engineering.
Chapter 2 Review of Computer Network Technology
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Ethernet, ARP.
1 ECE453 – Introduction to Computer Networks Lecture 8 – Multiple Access Control (II)
DataLink Layer1 Ethernet Technologies: 10Base2 10: 10Mbps; 2: 200 meters (actual is 185m) max distance between any two nodes without repeaters thin coaxial.
Lecture 16 Random Access protocols r A node transmits at random at full channel data rate R. r If two or more nodes “collide”, they retransmit at random.
Lecture 8: Ethernet and Token Ring Networks. Ethernet Carrier Sense, Multiple Access and Collision Detect (CSMA/CD) LAN Ethernet Standard-DEC, Intel,
Introduction1-1 Data Communications and Computer Networks Chapter 5 CS 3830 Lecture 26 Omar Meqdadi Department of Computer Science and Software Engineering.
5: DataLink Layer5-1 LAN technologies Data link layer so far: m services, error detection/correction, multiple access Next: LAN technologies m addressing.
Chapter 13 Wired LANs: Ethernet
Links Mike Freedman COS 461: Computer Networks Lectures: MW 10-10:50am in CS 104
Lecture 17 Ethernet r Widely deployed because: m First LAN technology m Simpler and less expensive than token LANs and ATM m Kept up with the speed race:
Introduction1-1 Data Communications and Computer Networks Chapter 5 CS 3830 Lecture 27 Omar Meqdadi Department of Computer Science and Software Engineering.
5: DataLink Layer5-1 Chapter 5 Link Layer and LANs Part 4: Link Layer addressing Ethernet Computer Networking: A Top Down Approach 6 th edition Jim Kurose,
5: DataLink Layer5-1 Ethernet “dominant” wired LAN technology: r cheap $20 for 100Mbs! r first widely used LAN technology r Simpler, cheaper than token.
5: DataLink Layer5-1 Link Layer r 5.1 Introduction and services r 5.2 Error detection and correction r 5.3Multiple access protocols r 5.4 Link-Layer Addressing.
1 Computer Communication & Networks Lecture 13 Datalink Layer: Local Area Network Waleed Ejaz
Network Technologies Chapter 2. Approaches to Network Communication Connection-Oriented –Circuit-switched –A dedicated connection (circuit) is formed.
Link Layer: MAC Ilam University Dr. Mozafar Bag-Mohammadi.
Data Link Layer Moving Frames. Link Layer Protocols: ethernet, wireless, Token Ring and PPP Has node-to-node job of moving network layer.
5: DataLink Layer5-1 Link Layer r 5.1 Introduction and services r 5.2 Error detection and correction r 5.3Multiple access protocols r 5.4 Link-Layer Addressing.
5: DataLink Layer5-1 CSMA (Carrier Sense Multiple Access) CSMA: listen before transmit: If channel sensed idle: transmit entire frame r If channel sensed.
CS 1652 Jack Lange University of Pittsburgh 1. 5: DataLink Layer5-2 MAC Addresses and ARP r 32-bit IP address: m network-layer address m used to get datagram.
5: DataLink Layer5-1 Chapter 5 Link Layer and LANs Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross.
5: DataLink Layer5-1 Link Layer r 5.1 Introduction and services r 5.2 Error detection and correction r 5.3Multiple access protocols r 5.4 Link-Layer Addressing.
5: DataLink Layer5a-1 Chapter 5: The Data Link Layer Last time: r link layer services r error detection, correction r multiple access protocols and LANs.
Ch 5. The Link Layer and Local Area Networks Myungchul Kim
Link Layer MAC Dr. Mozafar Bag-Mohammadi University of Ilam.
EE 122: Lecture 6 Ion Stoica September 13, 2001 (* this talk is based in part on the on-line slides of J. Kurose & K. Rose)
1 Ethernet “dominant” LAN technology: cheap $20 for 100Mbs! first widely used LAN technology Simpler, cheaper than token LANs and ATM Kept up with speed.
1 Multiple Access: Ethernet Section Point-to-Point vs. Broadcast Media Point-to-point –PPP for dial-up access –Point-to-point link between Ethernet.
4: DataLink Layer1 LAN technologies Data link layer so far: m services, error detection/correction, multiple access Next: LAN technologies m addressing.
5-1 Last time □ Multiple access protocols ♦ Channel partitioning MAC protocols TDMA, FDMA ♦ Random access MAC protocols Slotted Aloha, Pure Aloha, CSMA,
Computer Communication Networks
LAN Technologies.
Link Layer 5.1 Introduction and services
MAC Addresses and ARP 32-bit IP address:
Hubs Hubs are essentially physical-layer repeaters:
University of Pittsburgh
CS 457 – Lecture 6 Ethernet Spring 2012.
Mac Addressing, Ethernet, and Interconnections
Hubs Hubs are essentially physical-layer repeaters:
Protocol layering and data
Protocol layering and data
LAN Addresses and ARP IP address: drives the packet to destination network LAN (or MAC or Physical) address: drives the packet to the destination node’s.
Link Layer 5.1 Introduction and services
Presentation transcript:

LAN Technologies MAC protocols used in LANs, to control access to the channel Token Rings: IEEE 802.5 (IBM token ring), for computer room, or department connectivity, up to 16Mbps; FDDI (Fiber Distributed Data Interface), for Campus and Metro connectivity, up to 200 stations, at 100Mbps. Ethernets: employ the CSMA/CD protocol; 10Mbps (IEEE 802.3), Fast E-net (100Mbps), Giga E-net (1,000 Mbps); by far the most popular LAN technology 5: Link Layer and Local Area Networks

LAN Addresses and ARP IP address: drives the packet to destination network LAN (or MAC or Physical) address: drives the packet to the destination node’s LAN interface card (adapter card) on the local LAN 48 bit MAC address (for most LANs); burned in the adapter ROM 5: Link Layer and Local Area Networks

LAN Address (more) MAC address allocation administered by IEEE A manufacturer buys a portion of the address space (to assure uniqueness) Analogy: (a) MAC address: like Social Security Number (b) IP address: like postal address MAC flat address  portability IP hierarchical address is NOT portable (need mobile IP for example) LAN broadcast address : all 1s FF-FF-FF-FF-FF-FF 5: Link Layer and Local Area Networks

ARP: Address Resolution Protocol Each IP node (Host, Router) on the LAN has ARP module and Table ARP Table: IP/MAC address mappings for some LAN nodes (not the whole Internet as in DNS) < IP address; MAC address; TTL> < ………………………….. > TTL (Time To Live): timer, typically 20 min 5: Link Layer and Local Area Networks

ARP (more) Host A wants to send packet to destination IP address XYZ on same LAN Source Host first checks own ARP Table for IP address XYZ If XYZ not in the ARP Table, ARP module broadcasts an ARP packet: < XYZ, MAC (?) > ALL nodes on the LAN accept and inspect the ARP packet Node XYZ responds with unicast ARP packet carrying own MAC address: < XYZ, MAC (XYZ) > MAC address cached in ARP Table 5: Link Layer and Local Area Networks

Routing packet to another LAN Say, route packet from source IP address <111.111.111.111> to destination address <222.222.222.222> In routing table at source host, find router 111.111.111.110 In ARP table at source, find MAC address E6-E9-00-17-BB-4B, etc 5: Link Layer and Local Area Networks

Ethernet Widely deployed because: Cheap as dirt! $20 for 100Mbs! First LAN technology Simpler and less expensive than token LANs and ATM Kept up with the speed race: 10, 100, 1000 Mbps Many E-net technologies (cable, fiber etc). But they all share common characteristics Original Metcalfe design that led to the 10Base5 Ethernet standard (mid 1970s) Ethernet could use either a bus or a star topology 5: Link Layer and Local Area Networks

Ethernet Frame Structure Sending adapter encapsulates an IP datagram (or other network layer protocol packet) in Ethernet Frame which contains a Preamble, a Header, Data, and CRC (Cyclic Redundancy Check)fields Preamble (8 bytes): 7 bytes with the pattern 10101010 followed by one byte with the pattern 10101011; used for synchronizing receiver to sender clock (clocks are never exact, some drift is highly likely) “Look at the last two 1s at the end of preamble!” 5: Link Layer and Local Area Networks

Ethernet Frame Structure (more) Header contains Destination and Source Addresses and a Type field Addresses: 6 bytes, frame is received by all adapters on a LAN and dropped if address does not match Type (2 bytes): indicates the higher layer protocol, mostly IP but others may be supported such as Novell IPX and AppleTalk) [analogous to IP’s prot. field] CRC: checked at receiver, if error is detected, the frame is simply dropped (4 bytes) “Ethernet provides connectionless service and unreliable service” 5: Link Layer and Local Area Networks

Baseband Manchester Encoding Ethernet uses baseband transmission and Manchester encoding Baseband here means that no carrier is modulated; instead bits are encoded using Manchester encoding and transmitted directly by modified voltage of a DC signal Manchester encoding ensures that a voltage transition occurs in each bit time which helps with receiver and sender clock synchronization 5: Link Layer and Local Area Networks

CSMA/CD Summary A: sense channel, if idle Ethernet uses a CSMA/CD multiple access A: sense channel, if idle then { transmit and monitor the channel; If detect another transmission abort and send jam signal; update # collisions; delay as required by exponential backoff algorithm; goto A } else {done with the frame; set collisions to zero} else {wait until ongoing transmission is over and goto A} 5: Link Layer and Local Area Networks

CSMA/CD (more) Jam Signal: to make sure all other transmitters are aware of the collision; 48 bits; Exponential Backoff: Goal is to adapt the offered rate by transmitters to the estimated current load (i.e. backoff when load is heavy) After the first collision choose K from {0,1}; delay is K x 512 bit transmission times After second collision choose K from {0,1,2,3}… After ten or more collisions, choose K from {0,1,2,3,4,…,1023} Or in general after experiencing the nth collision in a row, choose K from {0,1,2,…,2m-1}, where m:=min(n, 10) 5: Link Layer and Local Area Networks

CSMA/CD (more) Note that under this scheme a new frame has a chance of sneaking in in the first attempt, even in heavy traffic Ethernet Efficiency: under heavy traffic and large number of nodes: It means that if tprop  0 efficiency  1, also if ttrans  large then efficiency  1 (why?) 5: Link Layer and Local Area Networks

Ethernet Technologies: 10Base2 10  10Mbps; 2  under 200 meters maximum length of a cable segment; also referred to as “Cheapnet” Uses thin coaxial cable in a bus topology Repeaters are used to connect multiple segments (up to 5); a repeater repeats the bits it hears on one interface to its other interfaces, ie a physical layer device only! 5: Link Layer and Local Area Networks

10BaseT and 100BaseT 10/100 Mbps rate; later called “fast ethernet” T stands for “Twisted Pair” Hub to which nodes are connected by twisted pair, thus “star topology” CSMA/CD implemented at the Hub Uses RJ-45 connectors and two pairs of twisted-pair copper wire; one for transmitting and the other for receiving 5: Link Layer and Local Area Networks

10BaseT and 100BaseT (more) Max distance from node to Hub is 100 meters Hub can disconnect a “jabbering adapter”; 10base2 would not work if an adapter does not stop transmitting on the cable Hub can gather monitoring information and statistics for display to LAN administrators 100BaseT does not use Manchester encoding; it uses 4B5B for better coding efficiency 100BaseT usually uses category-5 twisted pair (a high-quality twisted pair of wires with many twists) 5: Link Layer and Local Area Networks

Gbit Ethernet IEEE 802.3z standard Use standard Ethernet frame format and thus backward compatible with 10BaseT and 100BaseT Allows for point-to-point links and shared broadcast channels In shared mode, CSMA/CD is used; short distances between nodes to be efficient Gbit Ethernet also uses star topology with a hub or switch at the center Uses Hubs called here “Buffered Distributors” Full-Duplex at 1 Gbps for point-to-point links Used usually as a backbone for interconnecting multiple 10 and 100 Mbps Ethernet LANs 5: Link Layer and Local Area Networks