Based on Computer Networking, 4 th Edition by Kurose and Ross



Similar documents
Ethernet. Ethernet Frame Structure. Ethernet Frame Structure (more) Ethernet: uses CSMA/CD

Random Access Protocols

EECS 122: Introduction to Computer Networks Multiaccess Protocols. ISO OSI Reference Model for Layers

CSE331: Introduction to Networks and Security. Lecture 6 Fall 2006

Ethernet, VLAN, Ethernet Carrier Grade

LAN Switching Computer Networking. Switched Network Advantages. Hubs (more) Hubs. Bridges/Switches, , PPP. Interconnecting LANs

Data Link Protocols. TCP/IP Suite and OSI Reference Model

Unit of Learning # 2 The Physical Layer. Sergio Guíñez Molinos sguinez@utalca.cl

Data Link Protocols. Link Layer Services. Framing, Addressing, link access: Error Detection:

Local Area Networks transmission system private speedy and secure kilometres shared transmission medium hardware & software

ESSENTIALS. Understanding Ethernet Switches and Routers. April 2011 VOLUME 3 ISSUE 1 A TECHNICAL SUPPLEMENT TO CONTROL NETWORK

RETI DI TELECOMUNICAZIONI

Lecture 7 Multiple Access Protocols and Wireless

Gigabit Ethernet: Architectural Design and Issues

High Speed Ethernet. Dr. Sanjay P. Ahuja, Ph.D. Professor School of Computing, UNF

Communication Systems Internetworking (Bridges & Co)

Local Area Networks. Guest Instructor Elaine Wong. Elaine_06_I-1

RTT 60.5 msec receiver window size: 32 KB

2. What is the maximum value of each octet in an IP address? A. 128 B. 255 C. 256 D. None of the above

EXAMPLES AND PROBLEMS. Competence Based Education Internet Protocols

Data Link Layer. Page 1. Ethernet

UPPER LAYER SWITCHING

Direct Link Networks. Introduction. Physical Properties. Lecture - Ethernet 1. Areas for Discussion. Ethernet (Section 2.6)

Fast Ethernet and Gigabit Ethernet. Networks: Fast Ethernet 1

Chapter 9A. Network Definition. The Uses of a Network. Network Basics

DATA COMMUNICATION AND NETWORKS

Controlled Random Access Methods

TCOM 370 NOTES LOCAL AREA NETWORKS AND THE ALOHA PROTOCOL

Fast Ethernet and Gigabit Ethernet. Computer Networks: Fast and Gigabit Ethernet

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages

Computer Network. Interconnected collection of autonomous computers that are able to exchange information

LAN Switching and VLANs

Basic Networking Concepts. 1. Introduction 2. Protocols 3. Protocol Layers 4. Network Interconnection/Internet

First Semester Examinations 2011/12 INTERNET PRINCIPLES

Internet Packets. Forwarding Datagrams

Level 2 Routing: LAN Bridges and Switches

Architecture and Performance of the Internet

IT4405 Computer Networks (Compulsory)

Gigabit Ethernet. Abstract. 1. Introduction. 2. Benefits of Gigabit Ethernet

Ethernet. Ethernet. Network Devices

Network Categories. Network Types for the Local Range. Ethernet. Carrier Sense Multiple Access

R2. The word protocol is often used to describe diplomatic relations. How does Wikipedia describe diplomatic protocol?

CS 5480/6480: Computer Networks Spring 2012 Homework 4 Solutions Due by 1:25 PM on April 11 th 2012

CSMA/CA. Information Networks p. 1

Written examination in Computer Networks

Local-Area Network -LAN

DATA COMMUNICATIONS AND NETWORKING. Solved Examples

CSE 123A Computer Networks

Operating System Concepts. Operating System 資 訊 工 程 學 系 袁 賢 銘 老 師

Transport and Network Layer

Technical Support Information Belkin internal use only

CS6956: Wireless and Mobile Networks Lecture Notes: 2/11/2015. IEEE Wireless Local Area Networks (WLANs)

Post-Class Quiz: Telecommunication & Network Security Domain

Introduction to Ethernet

Howstuffworks "How LAN Switches Work" Click here to go back to the normal view!

Mathatma Gandhi University

Candidates should attempt FOUR questions. All questions carry 25 marks.

- Hubs vs. Switches vs. Routers -

Industrial Networks & Databases. Protocols and Networks - Device Bus - - Field Bus -

1 Which network type is a specifically designed configuration of computers and other devices located within a confined area? A Peer-to-peer network

Network Design. Yiannos Mylonas

CCNA R&S: Introduction to Networks. Chapter 5: Ethernet

The OSI and TCP/IP Models. Lesson 2

CS335 Sample Questions for Exam #2

Transport Layer Protocols

How do I get to

20. Switched Local Area Networks

Computer Networks Vs. Distributed Systems

ECE 358: Computer Networks. Homework #3. Chapter 5 and 6 Review Questions 1

COMPUTER NETWORKS HANDOUTS LECTURERS # PREPARED BY: HAMMAD KHALID KHAN. Copyright Virtual University of Pakistan

Performance Evaluation of Wired and Wireless Local Area Networks

CCNA 1: Networking Basics. Cisco Networking Academy Program Version 3.0

INTRODUCTION TO 100BASE-T: FAST (AND FASTER) ETHERNET

Network Categories. Network Types for the Local Range. Ethernet

Network Edge and Network Core

Master Course Computer Networks IN2097

QoS Switching. Two Related Areas to Cover (1) Switched IP Forwarding (2) 802.1Q (Virtual LANs) and 802.1p (GARP/Priorities)

How To Use A Network Over The Internet (Networking) With A Network (Netware) And A Network On A Computer (Network)

GATE CS Topic wise Questions Computer Network

Introduction to LAN/WAN. Network Layer

Overview of Computer Networks

11/22/

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

IT Data Communication and Networks (Optional)

Outline. CSc 466/566. Computer Security. 18 : Network Security Introduction. Network Topology. Network Topology. Christian Collberg

Final for ECE374 05/06/13 Solution!!

RFC 2544 Testing of Ethernet Services in Telecom Networks

How To Understand The Network Protocol Of A Network (Netware) 2.5 (Networchestra) 2 (Netwire) 2) (Netrocessor) 2-Way (Networking) 2,5 (Network)

Wireless Links - Wireless communication relies on radio signals or infrared signals for transmitting data.

Computer Networks and the Internet

The Network Layer Functions: Congestion Control

CSIS CSIS 3230 Spring Networking, its all about the apps! Apps on the Edge. Application Architectures. Pure P2P Architecture


Module 15: Network Structures

Communications and Computer Networks

CORPORATE NETWORKING

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages

Networking Test 4 Study Guide

Names & Addresses. Names & Addresses. Hop-by-Hop Packet Forwarding. Longest-Prefix-Match Forwarding. Longest-Prefix-Match Forwarding

Transcription:

Computer Networks Ethernet Hubs and Switches Based on Computer Networking, 4 th Edition by Kurose and Ross Ethernet dominant wired LAN technology: cheap $20 for NIC first widely used LAN technology Simpler, cheaper than token LANs and ATM Kept up with speed race: 10 Mbps 10 Gbps Also referred to as 802.3 LAN (IEEE 802.3 working group) Metcalfe s Ethernet sketch 1

Star topology Bus topology popular through mid 90s all nodes in same collision domain (can collide with each other) Now star topology prevails Connection choices: or switch (more later) active switch in center each spoke runs a (separate) Ethernet protocol (nodes do not collide with each other) bus: coaxial cable or switch Ethernet Frame Structure Sending adapter 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 adapter receives frame with matching destination address, or with broadcast address (eg ARP packet), 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 2

Unreliable, connectionless service Connectionless: No handshaking between sending and receiving adapter. Unreliable: receiving adapter doesn t send acks or nacks to sending adapter stream of datagrams passed to network layer can have gaps gaps will be filled if app is using TCP otherwise, app will see the gaps Ethernet s MAC protocol: unslotted CSMA/CD adapter doesn t transmit if it senses that some other adapter is transmitting, that is, carrier sense transmitting adapter aborts when it senses that another adapter is transmitting, that is, collision detection Before attempting a retransmission, adapter waits a random time, that is, random access Ethernet CSMA/CD algorithm 1. Adaptor receives datagram from net layer & creates frame 2. If adapter senses channel idle, it starts to transmit frame. If it senses channel busy, waits until channel idle and then transmits 3. If adapter transmits entire frame without detecting another transmission, the adapter is done with frame! 4. If adapter detects another transmission while transmitting, aborts and sends jam signal 5. After aborting, adapter enters exponential backoff: : after the mth collision, adapter chooses a K at random from {0,1,2,,2 m -1}. Adapter waits K 512 bit times and returns to Step 2 3

Ethernet s CSMA/CD (more) Jam Signal: make sure all other transmitters are aware of collision; 48 bits Bit time:.1 microsec for 10 Mbps Ethernet ; for K=1023, wait time is about 50 msec Exponential Backoff: 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} CSMA/CD efficiency T prop = max prop between 2 nodes in LAN t trans = time to transmit max-size frame 1 efficiency= 1+ 5t / prop t trans Efficiency goes to 1 as t prop goes to 0 Goes to 1 as t trans goes to infinity Much better than ALOHA, but still decentralized, simple, and cheap 4

10BaseT and 100BaseT 10/100 Mbps rate; latter called fast ethernet T stands for Twisted Pair Nodes connect to a : star topology ; 100 m max distance between nodes and Hubs are essentially physical-layer layer repeaters: bits coming from one link go out all other links at the same rate no frame buffering no CSMA/CD at : adapters detect collisions provides net management functionality twisted pair 802.3 Ethernet Standards: Link & Physical Layers many different Ethernet standards common MAC protocol and frame format different speeds: 2 Mbps, 10 Mbps, 100 Mbps, 1Gbps, 10G bps different physical layer media: fiber, cable application transport network link physical MAC protocol and frame format 100BASE-TX 100BASE-T2 100BASE-T4 100BASE-SX 100BASE-FX 100BASE-BX copper (twister pair) physical layer fiber physical layer 5

Manchester encoding Used in 10BaseT 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! Hey, this is physical-layer layer stuff! Gbit Ethernet 802.3z uses standard Ethernet frame format allows for point-to to-point links and shared broadcast channels in shared mode, CSMA/CD is used; short distances between nodes required for efficiency uses s, called here Buffered Distributors Full-Duplex at 1 Gbps for point-to to-point links 10 Gbps now (802.3ae) 6

Hubs physical-layer layer ( dumb ) repeaters: bits coming in one link go out all other links at same rate all nodes connected to can collide with one another no frame buffering no CSMA/CD at : host NICs detect collisions twisted pair Switch link-layer layer device: smarter than s, take active role store, forward Ethernet frames examine incoming frame s MAC address, selectively forward frame to one-or- more outgoing links when frame is to be forwarded on segment, uses CSMA/CD to access segment transparent hosts are unaware of presence of switches plug-and-play, self-learning learning switches do not need to be configured 7

Switch: allows multiple simultaneous transmissions hosts have dedicated, direct connection to switch switches buffer packets Ethernet protocol used on each incoming link, but no collisions; full duplex each link is its own collision domain switching: A-to-A and B-to-B simultaneously, without collisions not possible with dumb Switch Table Q: how does switch know that A reachable via interface 4, B reachable via interface 5? A: each switch has a switch table, each entry: (MAC address of host, interface to reach host, time stamp) looks like a routing table! Q: how are entries created, maintained in switch table? something like a routing protocol? C B A B 1 2 6 3 5 4 C A switch with six interfaces (1,2,3,4,5,6) Switch: self-learninglearning switch learns which hosts can be reached through which interfaces when frame received, switch learns location of sender: incoming LAN segment records sender/location pair in switch table C 6 A A A 1 2 3 5 4 Source: A Dest: A B C B A MAC addr interface TTL A 1 60 Switch table (initially empty) 8

Filtering/Forwarding When switch receives a frame: 1. record link associated with sending host 2. index switch table using MAC dest address 3. if entry found for destination then { if dest on segment from which frame arrived then drop the frame else forward the frame on interface indicated } else flood // forward on all but the interface on which the frame arrived Self-learning, learning, forwarding: example frame destination unknown: flood destination A location known: selective send C A A A Source: A Dest: A B 1 2 A 6 A A 3 5 4 A A C B A MAC addr interface TTL A 1 60 A 4 60 Switch table (initially empty) 9

Interconnecting switches A B switch 1 2 3 switch switch switch I D F C G E H address A B E G C interface 1 1 2 3 1 Suppose C sends frame to D Switch receives frame from C notes in bridge table that C is on interface 1 because D is not in table, switch forwards frame into interfaces 2 and 3 frame received by D Suppose D replies back with frame to C Switch receives frame from D notes in bridge table that D is on interface 2 because C is in table, switch forwards frame only to interface 1 frame received by C Switch: traffic isolation switch installation breaks subnet into LAN segments switch filters packets: same-lan LAN-segment frames not usually forwarded onto other LAN segments segments become separate collision domains switch collision domain collision domain collision domain 10

Institutional network to external network router mail server web server switch IP subnet Switches vs. Routers both store-and and-forward devices routers: network layer devices (examine network layer headers) switches are link layer devices routers maintain routing tables, implement routing algorithms switches maintain switch tables, implement filtering, learning algorithms 11

Summary comparison s routers switches traffic isolation no yes yes plug & play yes no yes optimal routing cut through no yes no yes no yes 12