CS4470 Computer Networking Protocols

Slides:



Advertisements
Similar presentations
Data Link Layer B. Konkoth. PDU  Protocol Data Unit  A unit of data which is specified in a protocol of a given layer  Layer 5, 6, 7 – Data  Layer.
Advertisements

Ethernet “dominant” LAN technology: cheap $20 for 100Mbs!
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.
1 Fall 2005 Hardware Addressing and Frame Identification Qutaibah Malluhi CSE Department Qatar University.
1 Chapter 9 Computer Networks. 2 Chapter Topics OSI network layers Network Topology Media access control Addressing and routing Network hardware Network.
Department of Computer Engineering University of California at Santa Cruz Networking Systems (1) Hai Tao.
1 Computer Networks Local Area Networks. 2 A LAN is a network: –provides Connectivity of computers, mainframes, storage devices, etc. –spans limited geographical.
TDC 461 Basic Communications Systems Local Area Networks 29 May, 2001.
Computer Network 實踐資管 Wang-Jiunn Cheng 2004 PART IV-1 Local Area Networks (LANs) Topology.
EE 4272Spring, 2003 Chapter 14 LAN Systems Ethernet (CSMA/CD)  ALOHA  Slotted ALOHA  CSMA  CSMA/CD Token Ring /FDDI Fiber Channel  Fiber Channel Protocol.
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:
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…
Chapter 8 LAN Technologies and Network Topology Direct Point-to-Point Communication Local Area Networks (LANs) LAN Topologies Ethernet Token Ring FDDI.
Introduction 1 Lecture 25 Link Layer (Ethernet, Switch) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science & Engineering.
Network Topologies An introduction to Network Topologies and the Link Layer.
5: DataLink Layer5-1 LAN technologies Data link layer so far: m services, error detection/correction, multiple access Next: LAN technologies m addressing.
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.
Packet Transmission (Part III) Local Area Networks (LANs)
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.
1 LAN Technologies and Network Topology. 2 Direct Point-to-Point Communication.
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.
LAN technologies and network topology LANs and shared media Locality of reference Star, bus and ring topologies Medium access control protocols.
Local Area Network Daniel Shin CS 147, Section 3 November 18, 2008.
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.
IST 126 Computer Networks Day 2. Server Security Only one password needed to access network Associated with the account is permission to access certain.
1 Part IV Local Area Networks (LANs). 2 Classification Terminology  Network technologies classified into three broad categories  Local Area Network.
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.
CS470 Computer Networking Protocols Huiping Guo Department of Computer Science California State University, Los Angeles 2. Ethernet.
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.
COMPUTER NETWORKS Lecture-8 Husnain Sherazi. Review Lecture 7  Shared Communication Channel  Locality of Reference Principle  LAN Topologies – Star.
Computer Engineering and Networks, College of Engineering, Majmaah University LAN TECHNOLOGIES Mohammed Saleem Bhat CEN-444 Networks Structure.
5-1 Last time □ Multiple access protocols ♦ Channel partitioning MAC protocols TDMA, FDMA ♦ Random access MAC protocols Slotted Aloha, Pure Aloha, CSMA,
1 Ch 8 LAN Technologies and Network Topology. 2 Scope  Describes the concepts underlying local network technologies  Describes basic network topology.
Chapter 8 LAN Technologies and Network Topology
Example DLL Protocols 1. High-Level Data Link Control (HDLC).
Link Layer 5.1 Introduction and services
Advanced Computer Networks
Random Access Protocols
Chapter 5 Link Layer and LANs
Local Area Networks: Topologies
High Speed LANs – Ethernet and Token Ring
Chapter 14 LAN Systems Ethernet (CSMA/CD) ALOHA Slotted ALOHA CSMA
Ethernet Outline Multiple Access and Ethernet Intro Ethernet Framing
Ethernet and Token Ring LAN Networks
CS 457 – Lecture 6 Ethernet Spring 2012.
Net301 lecture9 11/5/2015 Lect 9 NET301.
Data Link Issues Relates to Lab 2.
Mac Addressing, Ethernet, and Interconnections
Ethernet and Token Ring LAN Networks
Chapter 12 Local Area Networks
Data Link Issues Relates to Lab 2.
Data-link Layer Computer Networks.
Ethernet Neil Tang 9/17/2008 CS440 Computer Networks.
CS4470 Computer Networking Protocols
Protocol layering and data
Link Layer and LANs Not everyone is meant to make a difference. But for me, the choice to lead an ordinary life is no longer an option 5: DataLink Layer.
7- chapter Seven Local Area Networks (LAN)
Chapter 12 Local Area Networks
Protocol layering and data
Local Area Networks (LANs)
Figure 3.1 Internet model.
Chapter 12 Local Area Networks
Computer Interfacing and Protocols
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.
Ethernet and Token Ring LAN Networks
Presentation transcript:

CS4470 Computer Networking Protocols 5/20/2018 CS4470 Computer Networking Protocols 4. Data Link Layer 2 Huiping Guo Department of Computer Science California State University, Los Angeles

Outline LANs Topologies Ethernet Extended LANs 4. LAN 2 CS4470_F17 5/20/2018 Outline LANs Topologies Ethernet Extended LANs 4. LAN 2 CS4470_F17

Point-to-Point communication 5/20/2018 Point-to-Point communication Each communication channel connects exactly two computers 4. LAN 2 CS4470_F17

Point-to-Point communication (cont.) Disadvantages: The number of connections grows quickly as the size of the network increases The number of connections needed for N computers is proportional to N2 Direct connections required = (N2-N)/2 The expense is especially high 4. LAN 2 CS4470_F17

Shared communication channels Local Area Networks Devised as alternatives to expensive, dedicated point-to-point connections. Rely on the shared medium A set of computers attach to a cable The computers take turns sending data Sharing reduces cost! 4. LAN 2 CS4470_F17

Comparison Networks based on the shared medium Used for LOCAL communication. Point-to-point connections Used for long-distance networks Why not shared medium? 4. LAN 2 CS4470_F17

Shared medium not suitable for long distance networks Computers attached to a shared network must coordinate use of the network Coordination requires communication, introduces longer delays Shared networks with long delays are inefficient they spend more time coordinating the use of the shared medium and less time sending data 4. LAN 2 CS4470_F17

LAN: A definition LAN --- Local Area Network 5/20/2018 LAN: A definition LAN --- Local Area Network A LAN is computer network in which devices (computers, printers) are connect to a shared medium (wire or cable) to exchange data or share resources within a small geographic area An office, the floor of a building, a building itself, or a small campus Not always clear where a “local area” ends and a “wide area” begins Some say when you need to involve a 3rd party such as a phone company or other telecom provider that’s where the “local area” ends 4. LAN 2 CS4470_F17

LANs are popular LANs are the most popular form of computer network 5/20/2018 LANs are popular LANs are the most popular form of computer network They are relatively cheap They are typically fast Deployed today in not just workplace and offices, but also in the home 4. LAN 2 CS4470_F17

Features Limited to short distance Rely on shared media Topologies 5/20/2018 Features Limited to short distance Rely on shared media Topologies Many LAN technologies exist Determined by the link layer protocol 4. LAN 2 CS4470_F17

Network Topology Specify general “shape” of a network Often applied to LAN LAN Topologies Bus Star Tree 4. LAN 2 CS4470_F17

Star topology All computers attach to a central point. hub or switch 4. LAN 2 CS4470_F17

Bus topology The computers are attached to a single , long cable (bus) Any attached computer can send a signal down the cable and all computers receive the signal. 4. LAN 2 CS4470_F17

Ring topology All computers are connected in a closed loop The ring refers to logical connection, not physical connection Data flow in one direction 4. LAN 2 CS4470_F17

Choice of Topology Reliability Expandability Performance Needs considering in context of: Medium Wiring layout Access control 4. LAN 2 CS4470_F17

Example ring network: IBM Token Ring 5/20/2018 Example ring network: IBM Token Ring Access the shared medium -- ring Use token passing token passing ring networks Media access control A computer must wait for permission before it can send data Once it obtains permission, the sending computer has complete control of the network The data pass from the sender to the next computer, then to the next computer and so on until the data pass completely around the ring and arrive back at the sender 4. LAN 2 CS4470_F17

Example ring network: IBM Token Ring (cont.) 5/20/2018 Example ring network: IBM Token Ring (cont.) Token A special reserved bit pattern which gives a computer permission to send data The token passes around the ring How to make sure data doesn’t contain the token? A computer cannot hold a token forever! Receive a token Remove it from the ring Send a frame Release the token 4. LAN 2 CS4470_F17

Example ring network: IBM Token Ring (cont.) Station waits for token before sending Signal travels around entire ring Sender receives its own transmission 4. LAN 2 CS4470_F17

Pros and Cons Advantages Disadvantages Easy detection of Broking ring Hardware failures Interference Disadvantages Each computer attached to a ring must pass bits of a frame to the next computer Failure of a single machine or link can disable the entire network Point-to-Point wiring: difficult to add/remove a satation 4. LAN 2 CS4470_F17

Failure recovery in ring networks Automatic failure recovery Introduced by FDDI Uses two rings Terminology Dual-attached Counter rotating Self healing 4. LAN 2 CS4470_F17

Illustration of failure recovery Normal operation uses one of two rings 4. LAN 2 CS4470_F17

Illustration of failure recovery Normal operation uses one of two rings Second ring used for loopback during failure 4. LAN 2 CS4470_F17

Outline LANs Topologies Ethernet Extended LANs 4. LAN 2 CS4470_F17

Ethernet Ethernet uses bus topologies “dominant” wired LAN technology: First widely used LAN technology Simpler, cheaper than token ring, FDDI and ATM Kept up with speed race: 10 Mbps – 10 Gbps 4. LAN 2 CS4470_F17

Shared medium in a LAN Shared medium used for all transmissions Only one station transmits at any time Stations “take turns” using medium Media Access Control (MAC) policy ensures fairness 4. LAN 2 CS4470_F17

Illustration Of Ethernet Transmission Only one station transmits at any time Signal propagates across entire cable All stations receive transmission CSMA/CD media access scheme 4. LAN 2 CS4470_F17

CSMA/CD Paradigm Multiple Access (MA) Carrier Sense (CS) Multiple computers attach to shared media Each uses same access algorithm Carrier Sense (CS) Wait until medium idle Begin to transmit frame CSMA plus Collision Detection (CD) Listen to medium during transmission Detect whether another station’s signal interferes 4. LAN 2 CS4470_F17

Transmitter algorithm When a station has a frame to send and the line is idle, it transmits the frame immediately There is no negotiation with other adaptors The frame size is up to 1,500 bytes which means that the station can occupy the line for only a fixed length of time When an adaptor has a frame to send and the line is busy, it waits for the line to go idle and then transmits immediately The Ethernet is said to be 1-persistent protocol because a station with a frame to send transmits with prob. 1 whenever a busy line goes idle In general, a p-persistent algorithm transmits with prob. P after a line becomes idle 4. LAN 2 CS4470_F17

Transmitter algorithm Collisions Two stations find the line idle and transmit at the same time While a station on one end starts to transmit a frame, the other station on the opposite end doesn’t sense the line busy and transmits While a station is transmitting, it keeps listing to the line If there is a collision, the station stops transmission and sends a jam signal Back off from the interference and try again 4. LAN 2 CS4470_F17

Backoff after collision Exponential backoff after the mth collision, chooses a K at random from {0,1,2,…,2m-1} waits K·512 bit times Bit time: 1 microsec for 10 Mbps Ethernet ; For K=1023, wait time is about 50 msec 4. LAN 2 CS4470_F17

Backoff after collision (cont.) Goal adapt retransmission attempts to estimated current load heavy load: random wait will be longer first collision choose K from {0,1}; delay is K· 512 bit transmission times after second collision choose K from {0,1,2,3}… after ten collisions, choose K from {0,1,2,3,4,…,1023} 4. LAN 2 CS4470_F17

Addressing: Identifying A Destination A pair of computers communicate across a LAN All other computer in the LAN receive and process each copy of the message How to avoid this? 4. LAN 2 CS4470_F17

Addressing: Identifying A Destination (cont.) Allow sender to specify destination Each station assigned unique 48-bit address: MAC address Address assigned when network interface card (NIC) manufactured Each frame contains address of intended recipient 4. LAN 2 CS4470_F17

Ethernet Address Recognition 4. LAN 2 CS4470_F17

Broadcast On Ethernet All 1s address specifies broadcast Sender Places broadcast address in frame Transmits one copy on shared network All stations receive copy Receiver always accepts frame that contains Station’s address The broadcast address 4. LAN 2 CS4470_F17

Frame header and frame format Each LAN defines the exact frame format used with the technology General format: Frame header+DATA All frames with the same LAN technology have the same header size 4. LAN 2 CS4470_F17

Ethernet Frame Structure Preamble: 7 bytes with pattern 10101010 followed by one byte with pattern 10101011 used for synchronization 8 6 6 2 4 4. LAN 2 CS4470_F17

Ethernet Frame Structure (more) Addresses: 6 bytes if adapter receives frame with matching destination address, or with broadcast address it passes data in frame to net-layer protocol otherwise, adapter discards frame Type: indicates the higher layer protocol (mostly IP but others may be supported such as Novell IPX and AppleTalk) CRC: checked at receiver, if error is detected, the frame is simply dropped 4. LAN 2 CS4470_F17