Download presentation
Presentation is loading. Please wait.
Published byAmie Marsh Modified over 9 years ago
1
CMPE 150 – Winter 2009 Lecture 9 February 3, 2009 P.E. Mantey
2
CMPE 150 -- Introduction to Computer Networks Instructor: Patrick Mantey mantey@soe.ucsc.edu http://www.soe.ucsc.edu/~mantey/ mantey@soe.ucsc.edu 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. )
3
Syllabus
4
Internet Layering Level 5 -- Application Layer (rlogin, ftp, SMTP, POP3, IMAP, HTTP..) Level 4-- Transport Layer(a.k.a Host-to-Host) (TCP, UDP, ARP, ICMP, etc.) Level 3-- Network Layer (a.k.a. Internet) (IP) Level 2-- (Data) Link Layer / MAC sub-layer (a.k.a. Network Interface or Network Access Layer) Level 1-- Physical Layer
5
Today’s Agenda Repeaters, Hubs, Switches, Routers, … VLANS Midterm Review
6
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
7
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) LANS have promiscuous mode (i.e. “party line”) –Bridges provide isolation between LANS
8
Data Link Layer Switching Multiple LANs connected by a backbone to handle a total load higher than the capacity of a single LAN.
9
Bridges from 802.x to 802.y Operation of a LAN bridge from 802.11 to 802.3.
10
Bridges from 802.x to 802.y (2) The IEEE 802 frame formats. The drawing is not to scale.
11
Local Internetworking A configuration with four LANs and two bridges.
12
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
13
Spanning Tree Bridges Two parallel transparent bridges – bridges communicate to avoid loops.
14
Spanning Tree Bridges (2) (a) Interconnected LANs. (b) A spanning tree covering the LANs. (The dotted lines are not part of the spanning tree.)
15
Remote Bridges Remote bridges can be used to interconnect distant LANs.
16
Repeaters, Hubs, Bridges, Switches, Routers and Gateways (a) Which device is in which layer. (b) Frames, packets, and headers.
17
Repeaters, Hubs, Bridges, Switches, Routers and Gateways (a) A hub. (b) A bridge. (c) a switch.
18
http://www.cisco.com/warp/public/473/lan-switch-transparent.swf
19
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
20
LAN Interconnection Extend LAN coverage. Interconnect different types of LAN. Connect to an internetwork. Reliability and security.
21
Bridges 1 Operate at the MAC layer. –Interconnect LANs of the same type, or –LANs that speak different MAC protocols. B 1 4 5 8 Frames for 5->8. Frames for 1->4 LAN A LAN B
22
Bridges 2 Function: –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.
23
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.
24
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 more than 2 LANs. LANs may be interconnected by more than 1 bridge.
25
Bridge Protocol Architecture IEEE 802.1D specification for MAC bridges. PHY MAC LLC Station LAN Bridge Station MAC PHY MAC LLC PHY
26
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
27
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].
28
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.
29
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.
30
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.
31
Fixed Routing Fixed route for every source-destination pair of LANs. Does not automatically respond to changes in load/topology.
32
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.
33
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.
34
Loops Alternate routes: loops. Example: –LAN A, bridge 101, –LAN B, bridge 104, –LAN E, bridge 107, –LAN A. LAN A LAN B E 2 45 101 103 104 1 107
35
Loop: Problems A B LAN 1 LAN 2 B1 B2 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.
36
Loop Resolution Goal: remove “extra” paths by removing “extra” bridges. Spanning tree: –Given graph G(V,E), there exists a tree that 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.
37
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.
38
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.
39
Routing Determining where to send frame so that it reaches the destination. Routing by learning: adaptive or backward learning.
40
Note on Terminology: Repeaters and Bridges Repeaters: –Extend scope of LANs. –Serve as amplifiers. –No storage/routing capabilities. Bridges: –Also extend scope of LANs. –Routing/storage capabilities.
41
Bridges Operate at the data link layer. –Only examine DLL header information. –Do not look at the network layer header.
42
Virtual LANs A building with centralized wiring using hubs and a switch.
43
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.
44
The IEEE 802.1Q Standard Transition from legacy Ethernet to VLAN- aware Ethernet. The shaded symbols are VLAN aware. The empty ones are not.
45
The IEEE 802.1Q Standard (2) The 802.3 (legacy) and 802.1Q Ethernet frame formats.
46
Review of Terminology: Repeaters and Bridges Repeaters: Extend scope of LANs. Serve as amplifiers. No storage/routing capabilities. Bridges: Also extend scope of LANs. Routing/storage capabilities.
47
Bridges Operate at the data link layer. Only examine DLL header information. Do not look at the network layer header.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.