Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
In this section, we divide connecting devices into five different categories based on the layer in which they operate in a network. network.
Passive Hubs Active Hubs Bridges Two-Layer Switches Routers Three-Layer Switches y Gateways
Lecture 7
Connecting LANs, Backbone N t B kb Networks, k and Virtual LANs
Note
Note
Note
Hubs
Figure 15 4 A hi 15.4 hierarchy of h b h f hubs
physical-layer (dumb) repeaters:
bits coming in one link go out all other links at same rate all nodes connected to hub can collide with one another no frame buffering no CSMA/CD at hub: host NICs detect collisions
i d i twisted pair
hub
Note
Note
Switch
link-layer device: smarter than hubs, take active role
store, forward Ethernet frames examine incoming frame s MAC address, selectively frames forward frame to one-or-more outgoing links when frame is to be forwarded on segment, uses CSMA/CD to access segment
C 6 1 23 5 4
transparent
hosts are unaware of presence of switches
plug-and-play, self-learning
switches do not need to be configured
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:
Switch: self-learning g
A C 6 1 23 5 4 C B B
switch learns which hosts can be reached through which interfaces
when frame received switch received, learns location of sender: incoming LAN segment records sender/location pair in switch table
Source: A Dest: A A
A A A C 6 1 23 5 4 C B A A
Switch table (initially empty)
looks like a routing table! Q: how are entries created created, maintained in switch table?
60
Source: A Dest: A A
A A A C 1 6 2 A A 3 5 4 A A B A A
A A A 1 4 60 60
Interconnecting switches
switches can be connected together
S4 S1 A B C S2 D E F G H S3 I
Q Q: sending from A to G - how does S1 know to g forward frame destined to F via S4 and S3? A: self learning! (works exactly the same as in single-switch case!) i l it h !)
Institutional network
to external network mail server router web server IP subnet
routers maintain routing tables, implement routing tables algorithms switches maintain switch tables, implement filtering, , p g, learning algorithms
BACKBONE NETWORKS
A backbone network allows several LANs to be connected. connected. In a backbone network, no station is directly connected to the backbone; the stations are backbone; part of a LAN, and the backbone connects the LANs. LANs.
Note
Note
In a star backbone, the topology of the backbone backbone is a star; the backbone is just one switch switch.
Note
A point to point link acts as a LAN in a point-to-point remote backbone connected by remote bridges. bridges
VIRTUAL LANs
We can roughly define a virtual local area network (VLAN) as a local area network configured by software, not by physical wiring. wiring.
VLANs: motivation
Whats wrong with this picture?
VLANs
What happens if Wh t h if:
CS user moves office to EE, but wants connect to CS switch? single broadcast domain:
all layer-2 broadcast traffic (ARP, DHCP) crosses entire LAN (security/privacy, efficiency issues)
Port-based VLAN: switch ports grouped (by switch management software) so that single physical switch
1 7 8 9 10 15 16
Virtual Local Area Network Switch(es) supporting VLAN capabilities can be configured to define multiple virtual LANS over single physical LAN infrastructure.
Computer Science
Electrical Engineering
Computer Engineering
Port-based VLAN
traffic isolation: frames to/from ports 1-8 can only 18
reach ports 1-8
can also define VLAN based on MAC addresses of endpoints endpoints, rather than switch port
1 2 7 8
9 10
15 16
Computer Science (VLAN ports 9-15) Ports 2,3,5 belong to EE VLAN Ports 4,6,7,8 belong to CS VLAN
dynamic membership: ports can be dynamically assigned y y g among VLANs forwarding between VLANS: done via routing (just as with separate switches)
in practice vendors sell combined switches plus routers
Note