CMPE 150 Winter 2009

Similar documents
CMPE 150 Winter 2009

Chapter 3 Part 2 Switching and Bridging. Networking CS 3470, Section 1

Chapter 4. The Medium Access Control Sublayer

Hubs. twisted pair. hub. 5: DataLink Layer 5-1

Data Link Layer. Our goals: understand principles behind data link layer services: instantiation and implementation of various link layer technologies

CMPE 150 Winter 2009

Review. Error Detection: CRC Multiple access protocols. LAN addresses and ARP Ethernet. Slotted ALOHA CSMA/CD

Data Communications. Connecting Devices

ISO/OSI Model and Collision Domain NETWORK INFRASTRUCTURES NETKIT - LECTURE 1 MANUEL CAMPO, MARCO SPAZIANI

Switching & ARP Week 3

Chapter 6 Medium Access Control Protocols and Local Area Networks

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Principles behind data link layer services:

Principles behind data link layer services:

Chapter 4. The Medium Access Control Sublayer. Points and Questions to Consider. Multiple Access Protocols. The Channel Allocation Problem.

Telematics I. Chapter 6 Internetworking. (Acknowledement: These slides have been compiled from H. Karl s set of slides)

LANs do not normally operate in isolation. They are connected to one another or to the Internet. To connect LANs, connecting devices are needed.

CompSci 356: Computer Network Architectures. Lecture 8: Spanning Tree Algorithm and Basic Internetworking Ch & 3.2. Xiaowei Yang

Assignment - 1 Chap. 1 Wired LAN s

Chapter 6 Connecting Device

Computer Science Department 2 nd semester- Lecture13

Principles behind data link layer services

Underlying Technologies -Continued-

Configuring your VLAN. Presented by Gregory Laffoon

Cisco Cisco Certified Network Associate (CCNA)

Cisco Interconnecting Cisco Networking Devices Part 1.

7010INT Data Communications Lecture 7 The Network Layer

Lecture 9: Switched Ethernet Features: STP and VLANs

Administrivia CSC458 Lecture 4 Bridging LANs and IP. Last Time. This Time -- Switching (a.k.a. Bridging)

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 18

CS 43: Computer Networks Switches and LANs. Kevin Webb Swarthmore College December 5, 2017

Connecting to the Network

The Internet software layers

Internetworking Part 2

3.5 CONNECTING DEVICES

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Good day. Today we will be talking about Local Internetworking What is Internetworking? Internetworking is the connection of different networks.

Defining Networks with the OSI Model. Module 2

Computer Networks Security: intro. CS Computer Systems Security

Introduction to Computer Networks. CS 166: Introduction to Computer Systems Security

Hubs, Bridges, and Switches (oh my) Hubs

Lecture 7. Network Layer. Network Layer 1-1

Data Communication Prof. A. Pal Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Lecture 34 TCP/ IP I

Link layer: introduction

ECE 4450:427/527 - Computer Networks Spring 2017

CHAPTER 2 - NETWORK DEVICES

E&CE 358: Tutorial 1. Instructor: Sherman (Xuemin) Shen TA: Miao Wang

ET4254 Communications and Networking 1

Network Architecture Models

6.1.2 Repeaters. Figure Repeater connecting two LAN segments. Figure Operation of a repeater as a level-1 relay

Medium Access Protocols

LAN Interconnection. different interconnecting devices, many approaches Vasile Dadarlat- Local Area Computer Networks

Chapter 7. Local Area Network Communications Protocols

CSE 461: Bridging LANs. Last Topic

Internetwork Expert s CCNP Bootcamp. Hierarchical Campus Network Design Overview

Network Security Fundamentals. Network Security Fundamentals. Roadmap. Security Training Course. Module 2 Network Fundamentals

ECE4110 Internetwork Programming. Introduction and Overview

Layer 2 functionality bridging and switching

Summary of MAC protocols

Chapter 4 NETWORK HARDWARE

CSE 123A Computer Networks

Interface The exit interface a packet will take when destined for a specific network.

Communicating over the Network

VXLAN Overview: Cisco Nexus 9000 Series Switches

Copyleft 2005, Binnur Kurt. Objectives

Lecture 7. Reminder: Homework 2, Programming Project 1 due today. Homework 3, Programming Project 2 out, due Thursday next week. Questions?

Communication Networks ( ) / Spring 2011 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

Top-Down Network Design

Fundamentals of IP Networking 2017 Webinar Series Part 4 Building a Segmented IP Network Focused On Performance & Security

Internetworking Part 1

Outline. SC/CSE 3213 Winter Sebastian Magierowski York University. ICMP ARP DHCP NAT (not a control protocol) L9: Control Protocols

KillTest ᦝ䬺 䬽䭶䭱䮱䮍䭪䎃䎃䎃ᦝ䬺 䬽䭼䯃䮚䮀 㗴 㓸 NZZV ]]] QORRZKYZ PV ٶ瀂䐘މ悹伥濴瀦濮瀃瀆ݕ 濴瀦

Connecting LANs. Required reading: Forouzan 17.1 to 17.1 Garcia 6.11 (intro ) CSE 3213, Fall Instructor: N. Vlajic

Distributed Queue Dual Bus

Some portions courtesy Srini Seshan or David Wetherall

CS 3516: Advanced Computer Networks

Revision of Previous Lectures

ECE 158A: Lecture 13. Fall 2015

Hands-On Network Security: Practical Tools & Methods

This tutorial will help you in understanding IPv4 and its associated terminologies along with appropriate references and examples.

Guide to Networking Essentials, 6 th Edition. Chapter 5: Network Protocols

CN [Network Devices]

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

1: Review Of Semester Provide an overview of encapsulation.

Communication Networks

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols

Chapter Motivation For Internetworking

ECE 4450:427/527 - Computer Networks Spring 2017

Introduction to routing in the Internet

Introduction to Communication Networks Spring Unit 13 Network extensions Bridges.

Internet Protocols (chapter 18)

Computer Networks. Wenzhong Li. Nanjing University

Network Layer (1) Networked Systems 3 Lecture 8

Networks Fall This exam consists of 10 problems on the following 13 pages.

Improving Bandwidth Efficiency When Bridging on RPR. November 2001

Telecom Systems Chae Y. Lee. Contents. Overview. Issues. Addressing ARP. Adapting Datagram Size Notes

OSI Reference Model. Computer Networks lab ECOM Prepared By : Eng. Motaz Murtaja Eng. Ola Abd Elatief

L10: Simple Internetworking. Hui Chen, Ph.D. Department of Engineering & Computer Science Virginia State University Petersburg, VA 23806

TCP/IP THE TCP/IP ARCHITECTURE

Transcription:

CMPE 150 Winter 2009 Lecture 9 February 3, 2009 P.E. Mantey

CMPE 150 -- Introduction to Computer Networks Instructor: Patrick Mantey mantey@soe.ucsc.edu http://www.soe.ucsc.edu/~mantey/ / t / Office: Engr. 2 Room 595J Office hours: Tues 3-5 PM, Mon 5-6 PM* TA: Anselm Kia akia@soe.ucsc.edu Web site: http://www.soe.ucsc.edu/classes/cmpe150/winter09/ Text: Tannenbaum: Computer Networks (4 th edition available in bookstore, etc. )

Syllabus

Internet Layering Level 5 Level 4 Level 3 Level 2 Level 1 -- Application Layer (rlogin, ftp, SMTP, POP3, IMAP, HTTP..) -- Transport Layer(a.k.a Host-to-Host) (TCP, UDP, ARP, ICMP, etc.) -- Network Layer (a.k.a. a Internet) (IP) -- (Data) Link Layer / MAC sub-layer (a.k.a. a Network Interface or Network Access Layer) -- Physical Layer

Today s Agenda Repeaters, Hubs, Switches, Routers, VLANS Midterm Review

Data Link Layer Switching Bridges from 802.x to 802.y Local Internetworking Spanning Tree Bridges Remote Bridges Repeaters, Hubs, Bridges, Switches, Routers, Gateways Virtual LANs

Bridges Bridges used to connect multiple LANS Link Layer Do not look at anything in packets Work for any payload within the frame IPv4, IPv6, Apple Talk, etc. (vs. routers which work at packet (IP) level) Individual LANS are shared media (cable or hub) (Few hubs still in use now switched Ethernet)

Data Link Layer Switching Multiple LANs connected by a backbone to Multiple LANs connected by a backbone to handle a total load higher than the capacity of a single LAN.

Bridges from 802.x to 802.y Operation of a LAN bridge from 802.11 to 802.3.

Bridges from 802.x to 802.y (2) The IEEE 802 frame formats. The drawing is not to scale.

Local Internetworking A configuration with four LANs and two g bridges.

Bridge Operations Promiscuous mode send all frames to all connected LANs Discard frames whose destination is same LAN as source Keeps table of (LAN) addresses for each LAN Tables built by flooding Send everything to everybody if not in table See where frame comes from add them to table backward learning Tables have time stamp of last use for each address TTL

Spanning Tree Bridges Two parallel transparent bridges bridges p p g g communicate to avoid loops.

Spanning Tree Bridges (2) (a) Interconnected LANs. (b) A spanning ( ) ( ) p g tree covering the LANs. (The dotted lines are not part of the spanning tree.)

Remote Bridges Remote bridges can be used to interconnect distant LANs.

Repeaters, Hubs, Bridges, Switches, Routers and Gateways (a) Which device is in which layer. (b) Frames, packets, and headers.

Repeaters, Hubs, Bridges, Switches, Routers and Gateways (a) A hub. (b) A bridge. (c) aswitch switch.

http://www.cisco.com/warp/public/473/lan-switch-transparent.swf

Switched Ethernet Point-to-point connections to multi-port hub acting like switch; no collisions. More efficient under high traffic load: break large shared Ethernet into smaller segments. Hub Switch

LAN Interconnection Extend LAN coverage. Interconnect different types of LAN. Connect to an internetwork. Reliability and security.

Bridges 1 Operate at the MAC layer. Interconnect t LANs of the same type, or LANs that speak different MAC protocols. LAN A 1 4 LAN B 5 8 B Frames for 5->8. Frames for 1->4

Function: Bridges 2 Listens to all frames on LAN A and accepts those addressed to stations on LAN B. Using B s MAC protocol retransmits the frames onto B. Does the same for B-to-A traffic.

Bridges 3 Behave like a station; have multiple interfaces, 1 per LAN. Use destination address to forward unicast frames; if destination is on the same LAN, drops frame; otherwise forwards it. Forward all broadcast frames. Have storage and routing capability.

Bridges 4 No additional encapsulation. But they may have to do header conversion if interconnecting different LANs (e.g., 802.3 to 802.4 frame). May interconnect t more than 2 LANs. LANs may be interconnected by more than 1 bridge.

Bridge Protocol Architecture IEEE 802.1D specification for MAC bridges. LLC LLC MAC MAC MAC PHY LAN PHY PHY LAN PHY Station Bridge Station

Need Plug n Play for LANS Delivery of frames at Link layer uses MAC address Switch / Bridge have tables of MAC addresses and corresponding LAN links Any time a port is connected, tables needed to be dynamically updated When a device is disconneceted, tables need to reflect change Switch derives its table for local connections

Address Learning Bridges Problem: determine locations of destinations. Bridges operate in promiscuous mode, i.e., accept all frames. Basic idea: look at source address of received frame to learn where that station is (which direction frame came from). Build routing table so that if frame comes from A on interface N, save [A, N].

Address Learning Bridges (2) When bridges start, all tables are empty. So they flood: every frame for unknown destination, is forwarded on all interfaces except the one it came from. As bridge learns where destinations are -- when its routing table (RT) contains that destination -- it no longer needs to flood for those destinations.

Address Learning 3 RT entries have a time-to-live (TTL). RT entries get refreshed when frames from source already in the table arrive at the bridge. Periodically, process running on bridge scans RT and purges stale entries, i.e., entries older than TTL. Bridge reverts to flooding forwarding for unknown destinations reverts to flooding.

Routing with Bridges Uses MAC (physical) addresses May have alternate paths (via bridges) to destination Choose best path 3 algorithms: Fixed routing. Spanning tree. Source routing.

Fixed Routing Fixed route for every source-destination pair of LANs. Does not automatically respond to changes in load/topology.

Spanning Tree Routing Aka transparent bridges. Bridge routing table is automatically maintained (set up and updated as topology changes). 3 mechanisms: Address learning. Frame forwarding. Loop resolution.

Frame Forwarding Depends on source and destination LAN. If destination LAN (where frame is going to) = source LAN (where frame is coming from), discard frame. If destination LAN source LAN, forward frame. If destination LAN unknown, flood frame. Special purpose hardware used to perform RT lookup and update in few microseconds.

Loops Alternate routes: loops. Example: LAN A LAN A, bridge 101, LAN B, bridge 104, LAN E, bridge 107, 103 LAN A. E 1 101 LAN B 104 2 107 4 5

Loop: Problems LAN 1 B B1 B2 LAN 2 A 1. Station A sends frame to B; bridges B1 and B2 don t know B. 2. B1 copies frame onto LAN1; B2 does the same. 3. B2 sees B1 s frame to unknown destination and copies it onto LAN 2. 4. B1 sees B2 s frame and does the same. 5. This can go on forever.

Loop Resolution Goal: remove extra paths by removing extra bridges. Spanning tree: Given graph G(V,E), there exists a tree that t spans all nodes where there is only one path between any pair of nodes, i.e., NO loops. LANs are represented by nodes and bridges by edges.

Definitions 1 Bridge ID: unique number (e.g., MAC address + integer) assigned to each bridge. Root: bridge with smallest ID. Cost: associated with each interface; specifies cost of transmitting frame through that interface. Root port: interface to minimum-cost path to root.

Routing with Bridges Bridge decides to relay frame based on destination MAC address. If only 2 LANs, decision is simple. If more complex topologies, routing is needed, i.e., frame may traverse more than 1 bridge.

Routing Determining where to send frame so that it reaches the destination. Routing by learning: adaptive or backward learning.

Repeaters: Note on Terminology: Repeaters and Bridges Extend scope of LANs. Serve as amplifiers. No storage/routing capabilities. Bridges: Also extend scope of LANs. Routing/storage capabilities.

Bridges Operate at the data link layer. Only examine DLL header information. Do not look at the network layer header.

Virtual LANs A building with centralized wiring using hubs A building with centralized wiring using hubs and a switch.

Virtual LANs (2) (a) Four physical LANs organized into two VLANs, gray and white, by two bridges. (b) The same 15 machines organized into two VLANs by switches.

The IEEE 802.1Q Standard Transition from legacy Ethernet to VLAN- aware Ethernet. The shaded symbols are VLAN aware. The empty ones are not.

The IEEE 802.1Q Standard (2) The 802.3 (legacy) and 802.1Q Ethernet frame formats.

Review of Terminology: Repeaters and Bridges Repeaters: Extend scope of LANs. Serve as amplifiers. No storage/routing o ting capabilities. Bridges: Also extend scope of LANs. Routing/storage capabilities.

Bridges Operate at the data link layer. Only examine DLL header information. Do not look at the network layer header.