Networks Lecture 7.

Slides:



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

University of Calgary – CPSC 441.  Ethernet, defined under IEEE 802.3, is one of today's most widely used data communications standards  It finds its.
The ALOHA Protocol “Free for all”: whenever station has a frame to send, it does so. –Station listens for maximum RTT for an ACK. –If no ACK after a specified.
Ethernet – CSMA/CD Review
1 Computer Networks Local Area Networks. 2 A LAN is a network: –provides Connectivity of computers, mainframes, storage devices, etc. –spans limited geographical.
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)
Distributed systems Module 1 -Basic networking Teaching unit 1 – LAN standards Ernesto Damiani University of Bozen-Bolzano Lesson 4 – Ethernet frame.
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:
EEC-484/584 Computer Networks Lecture 13 Wenbing Zhao
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…
Distributed Systems Module 1 -Basic networking Teaching unit 1 – LAN standards Ernesto Damiani University of Bozen-Bolzano Lesson 3 – Introduction to Ethernet.
Ethernet Outline Multiple Access and Ethernet Intro Ethernet Framing CSMA/CD protocol Exponential backoff.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Ethernet, ARP.
Lecture 8: Ethernet and Token Ring Networks. Ethernet Carrier Sense, Multiple Access and Collision Detect (CSMA/CD) LAN Ethernet Standard-DEC, Intel,
Spring 2006CS 3321 Chapter 2 Tidbits Outline A little hardware Ethernet Realistic data transfer rates.
Enhanced CSMA Additional improvement  Use CSMA access  Listen while transmitting  Stop immediately if collision sensed  Called collision detection.
Chapter 6 High-Speed LANs Chapter 6 High-Speed LANs.
5: DataLink Layer5-1 LAN technologies Data link layer so far: m services, error detection/correction, multiple access Next: LAN technologies m addressing.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 17.
Links Mike Freedman COS 461: Computer Networks Lectures: MW 10-10:50am in CS 104
Introduction1-1 Data Communications and Computer Networks Chapter 5 CS 3830 Lecture 27 Omar Meqdadi Department of Computer Science and Software Engineering.
LAN Technologies MAC protocols used in LANs, to control access to the channel Token Rings: IEEE (IBM token ring), for computer room, or department.
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
Multiple Access Readings: Kurose & Ross, 5.3, 5.5.
Data Link Layer Moving Frames. Link Layer Protocols: ethernet, wireless, Token Ring and PPP Has node-to-node job of moving network layer.
Networks and Protocols CE Week 2b. Topologies, CSMA/CD, CSMA/CA.
1Ethernet Lecture # 12 Computer Communication & Networks.
17 - Winter 2005 ECE ECE 766 Computer Interfacing and Protocols 1 Local Area Networks Need for high performance communications for physically close devices.
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.
Ethernet Overview it the IEEE standard for Ethernet.
1 Hardware Addressing and Frame Type Identification.
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 CSE 3213 Fall February Introduction Rapid changes in technology designs Broader use of LANs New schemes for high-speed LANs High-speed.
1 Ethernet History –developed by Xerox PARC in mid-1970s –roots in Aloha packet-radio network –standardized by Xerox, DEC, and Intel in 1978 –similar to.
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.
Lec # 23 Data communucation Muhammad Waseem Iqbal 1ethernet.
1 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
Computer Engineering and Networks, College of Engineering, Majmaah University LAN TECHNOLOGIES Mohammed Saleem Bhat CEN-444 Networks Structure.
CS380 Int. to Comp. Networks Data Link Networks - Part II1 Reliable Transmission How to fix corrupted frames. –Error correcting codes too expensive –Should.
1 Kyung Hee University Chapter 13 Wired LANs: Ethernet.
Example DLL Protocols 1. High-Level Data Link Control (HDLC).
Data Link Layer Lower Layers Local Area Network Standards
Link Layer 5.1 Introduction and services
The University of Adelaide, School of Computer Science
CS4470 Computer Networking Protocols
Advanced Computer Networks
Lab 7 – CSMA/CD (Data Link Layer Layer)
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
CS 457 – Lecture 6 Ethernet Spring 2012.
Data Link Issues Relates to Lab 2.
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.
Outline A little hardware Ethernet Realistic data transfer rates
Protocol layering and data
Ethernet – CSMA/CD Review
7- chapter Seven Local Area Networks (LAN)
Chapter 12 Local Area Networks
Protocol layering and data
Chapter 12 Local Area Networks
Ethernet Outline Multiple Access and Ethernet Intro Ethernet Framing
Computer Interfacing and Protocols
Ethernet 16EC351 Computer networks unit II Mr.M.Jagadesh,AP/ECE.
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 Outline Multiple Access and Ethernet Intro Ethernet Framing
Presentation transcript:

Networks Lecture 7

Review – Physical Layer Link Network Transport Application Physical Bit-signal Transformation Bit-rate control Circuit Switching Bit synchronization Multiplexing Transmission media

Review - Basics Transmission media Communication Channel Properties: To be transmitted the individual bits must be transformed into electromagnetic signals Transmission media Communication Channel Properties: -- Bandwidth -- Transmission and Propagation Delay -- Loss/Error rates -- Buffering

Network Manager Headaches Ethernet Ethernet Hardware Outline Network Manager Headaches Ethernet Ethernet Hardware

Network Manager Headaches

More users from hell The nursing director complains to the system adm that she needs a new monitor. "I went to her office, and sure enough, her screen was discolored and unfocused," says the sys adm. "I lifted her new boombox off the top of the monitor, and the screen cleared up instantly. So she got a short lesson on magnets and computer equipment, and she moved her boombox to another part of the room.“ This company offers several ways to contact IT for help, ranging from an intranet ticketing system to emergency pagers. "I got a panicked call directly from one user who had tracked me down via a company receptionist who was aware of the emergency pager schedule," reports a network adm on the scene. "At the same time, I noticed a 911 emergency call had been placed from the same user's office moments before. Upon investigation, he confessed that he had intentionally dialed 911 in an attempt to contact our emergency technical support line.

Ethernet

Introduction History Bandwidth Problem Developed by Xerox PARC, mid 70s Roots in Aloha packet radio network Standardized by Xerox, DEC and Intel in 1978 Similar to IEEE 802.3 IEEE 802.3u standard defines Fast Ethernet (100 Mbps) Switched Ethernet now popular Bandwidth 10 Mbps – 100 Mbps – 1 Gbps Problem Distributed algorithm that provides fair efficient access to a share medium

Ethernet – CSMA/CD CS – Carrier Sense MA - Multiple Access Nodes can distinguish between an idle and a busy link MA - Multiple Access A set of nodes send and receive frames over a shared link CD – Collision Detection Nodes listen during transmission to determine if there has been interference

Ethernet Topologies Bus Topology: Shared All nodes connected to a wire Star Topology: All nodes connected to a central repeater

Ethernet Specifications Coaxial Cable upto 500m Taps > 2.5m apart Transceiver Idle detection Sends/Receives signal Repeater Joins multiple Ethernet segments < 5 repeaters between any two hosts < 1024 hosts

10Mb Ethernet Specification Broadcast Encoding Manchester 10 Mbps -> Transmission at 20Mhz Framing Sentinel marks end of frame Bit oriented (similar to HDLC) Data-dependent length Error Detection 32-bit CRC

Ethernet in Practice Number of hosts Range Round Trip Time Topology Limited to 200 in practice, standard allows 1024 Range Typically much shorter than 2.5km limit in standard Round Trip Time Typically 5 or 10 s Topology Star easier to administer than bus

Ethernet Performance Ethernet is the most popular network model for LAN Ethernet is like talking at a dinner table! Anyone may talk at anytime If two people attempt to talk at the same time, neither is heard Each waits (a random amount of time) and then tries to talk again

Ethernet Algorithm Sender/Transmitter If line is idle (carrier sensed) Send immediately Send maximum of 1500B data (1527B total) Wait 9.6 s before sending again If line is busy (no carrier sense) Wait until line becomes idle Send immediately (1-persistent) If collision detected Stop sending and jam signal Try again later

Ethernet Frame Just like each of the layers, ethernet adds information to the data packet. Preamble SFD DA SA type data + layer information Pad CRC Data + layer: 0 – 1500 bytes of data Type: 2 bytes which indicates protocol of encapsulated data (e.g. IP = 0x0800) SA & DA: each is a 48-bit globally unique address assigned by manufacturer. SFD: 10101011 - Start of Frame Delimiter Preamble: 7 bytes of alternating 1’s and 0’s used to sync the clock Pad: 0 to 46 bytes of 0’s used to ensure minimum frame length CRC: 4 byte Cyclic Redundancy Check

Ethernet Addresses Unique, 6 bytes or 48-bit address assigned to each adapter by manufacturer. It is read in : notation, for example: 8:0:e4:b1:2 An address with all 1s is a broadcast address. multicast: first bit is 1 In order to make the address unique, first 24 bits are assigned to manufacturers and the last 24 bits are assigned locally. Each adaptor accept the packet if the destination address is its own address, broadcast address or multicast to which this adaptor belongs

Keeping Addresses Straight 32-bit IP address: network-layer address used to get datagram to destination IP network LAN (or MAC or physical or Ethernet) address: used to get datagram from one interface to another physically-connected interface (same network) 48 bit MAC address (for most LANs) burned in the adapter ROM

Manufacturer Addresses Examples of Manufacturer IDs Cisco : 00-00-0C- : 00-60-09- 3Com : 00-60-8C- : 00-60-08- Xircom : 00-80-C7- IBM : 08-00-5A Sun : 08-00-20- Nokia : 00-40-43-

Discover the MAC Address How do you find the MAC address on a windows machine?

Transmission Algorithm Sender/Transmitter If line is idle (carrier sensed) Send immediately Send maximum of 1500B data (1527B total) Wait 9.6 s before sending again If line is busy (no carrier sense) Wait until line becomes idle Send immediately (1-persistent) If collision detected Stop sending and jam signal Try again later

Receiver Algorithm Security Problem!!! Sender handles all access control Receiver simply pulls the frame from the network Ethernet controller/card Sees all frames Selectively passes frames to host processor Acceptable frames Addressed to host Addressed to broadcast Addressed to multicast address to which host belongs Anything (if in promiscuous mode) Need this for packet sniffers/TCPDump Security Problem!!!

Collision Behavior I While the transmitting station is sending the frame, it monitors the medium for a collision If a collision is detected, the transmitting station stops sending the frame data and sends a 32-bit "jam sequence The sequence jam is transmitted to ensure that the length of the collision is sufficient to be noticed by the other transmitting stations After sending the jam sequence the transmitting station waits a random period of time This process is called "backoff" How?

Collision Behavior II If repeated collisions occur, then transmission is repeated But the random delay is increased with each attempt This process repeats until a station transmits a frame without collision Once a station successfully transmits a frame, it clears the collision counter it uses to increase the backoff time after each repeated collision

Transmission Flow Chart

Exponential Backoff I If a deterministic delay, that is a fixed delay for each machine, is used after a collision then collisions will occur again in lockstep If a random delay (with fixed mean) is applied by each machine then Few senders  needless waiting Too many senders  too many collisions Goal: adapt retransmission attempts to estimated current load heavy load: random wait will be longer

Exponential Backoff II Exponentially increasing random delay Infer senders from # of collisions More senders  increase wait time 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} What is the formula for the range of K?

Ethernet Hardware

Repeaters A repeater is an amplifier used to expand the maximal distance of an Ethernet-LAN segment Regenerate signals on the receiving port, amplify them, and sent these signals to all connected net segments No buffering, just a short delay Local repeaters directly connect two coaxial segments Repeater

Network Devices I Ethernet devices are connected to one another through intermediary devices in order to form networks There are several classes of these network devices, but they primarily fall into one of four categories: Hubs – the most basic device, it is a repeater, simply copying data coming in on one of its ports as the data outgoing on all of its other ports Switches – A hub structure becomes ineffective for large networks simply because it copies redundant data. A switch is essentially a smart hub, only providing relevant data at a destination port

Network Devices II Routers – At a higher level of complexity, the routers act as switches between networks Routers are different from switches in that they connect networks together, whereas switches are used to connect devices together on a local LAN Gateways – At even a higher level of complexity are the gateways They are used to interconnect networks at a higher level by mapping addresses from one network to another They are also used to perform the required protocol conversions from one network to another