ch. 15 connecting lans

17
Ch. 15 Connecting LANs

Upload: swain

Post on 23-Feb-2016

43 views

Category:

Documents


0 download

DESCRIPTION

Ch. 15 Connecting LANs. 15.1 Connecting Device. Five different categories of connecting devices Passive hub, Repeater, Bridge, Router, Gateway. Passive Hubs and Repeaters. Passive hubs Connects wires Can be considered as a part of transmission medium Repeaters - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Ch. 15 Connecting LANs

Ch. 15 Connecting LANs

Page 2: Ch. 15 Connecting LANs

15.1 Connecting Device

• Five different categories of connecting devices– Passive hub, Repeater, Bridge, Router, Gateway

Page 3: Ch. 15 Connecting LANs

Passive Hubs and Repeaters

• Passive hubs– Connects wires– Can be considered as a part of transmission medium

• Repeaters– Operates only in the physical layer– Connects “segments of a LAN”

-- segments are considered as a single LAN– Forwards every frame by regenerating signals (not by

amplifying)

Page 4: Ch. 15 Connecting LANs

Function of Repeater

• Active hub = multiport repeater (often used to create a physical star topology)

Single LAN

Page 5: Ch. 15 Connecting LANs

Bridges• Operate both in the physical and data link layer• Can check the physical (MAC) addresses– Decide if the received frame should be forwarded to

the other side or dropped Filtering

Page 6: Ch. 15 Connecting LANs

Transparent Bridges

• Stations are completely unaware of the bridge’s existence– Frame must be forwarded Forwarding – Forwarding table is automatically updated

Learning– Only one path exists between two stations No looping

Page 7: Ch. 15 Connecting LANs

Learning

Page 8: Ch. 15 Connecting LANs

Loop Problem

Page 9: Ch. 15 Connecting LANs

Spanning Tree

• Loop-free graph that connects all stations– A LAN can be reached through one path only– Often, find a spanning tree that minimizes some cost (e.g., #

hop distance, delay, bandwidth, etc)• Steps to find a spanning tree:– Elect a root station (e.g., station with smallest ID)– Find the shortest (= minimum cost) path from each station to

the root– Based on the found paths, set forwarding ports and blocking

ports• Can be found automatically by dynamic algorithm

Page 10: Ch. 15 Connecting LANs

Finding a Spanning Tree

Page 11: Ch. 15 Connecting LANs

Forwarding and Blocking Ports

Page 12: Ch. 15 Connecting LANs

Bridge

• An alternative way to prevent loop: Source routing– A sending station defines the bridges that the frame must visit– The addresses of all the bridges are included in the frame

• Issues in bridging different LANs– Frame format– Frame size– Data rate– Bit order– Security– Multimedia support

Page 13: Ch. 15 Connecting LANs

Switches

• Two-layer switch (or Layer-two switch)– E.g., bridges

• Three-layer switch (or Layer-three switch)– Often called “router”– Uses network layer info:

logical address (IP)• Gateway

– Some use gateway and router interchangeably

– Gateway usually operates in “ALL layers” including application layer

Page 14: Ch. 15 Connecting LANs

15.2 Backbone Networks

• A backbone network connects several LANs– Bus, or star backbone

– Connecting remote LANs:use point-to-point links

Page 15: Ch. 15 Connecting LANs

15.3 Virtual LANs

• Virtual local area network (VLAN)– A local area network configured by software (not by

physical wiring)– VLANs group stations that connected to different switches,

and create broadcast domain (or membership for grouping)– Stations can be re-grouped by software configuration

• Advantages– Cost and time reduction– Creating virtual work groups– Security

Page 16: Ch. 15 Connecting LANs

Example

Page 17: Ch. 15 Connecting LANs

Homework

• Exercise– 12, 16, 20