
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

















Receive packets from all interfaces; listen
also for ARP responses.
Maintain A MAC table to remember which
interface has what ethernet addresses on
it (ignore IP addresses).
Determine which interface(s) to send it
out on (based upon MAC table)
Forward the packet only on those
interface(s).
If there are no interfaces listed for the
ethernet address, flood the packet to
all interfaces (simulating "one wire").
This takes care of initiating
communication with a host that has
been "quiet" for a long time.
When a packet is received on an interface
Save excess packets in a finite queue.
If queue fills, discard excess packets
Gradually empty the queue onto the
interface, one packet at a time.
If too many packets are received for an
outgoing interface
How a switch works
Recall: How a switch works
Thursday, October 13, 2005
8:55 AM
Docsity.com
In discussing "layer 2 switching", we must
be careful to avoid talking about IP
addresses: switches do not -- as a rule --
react to them.
Instead, ARP is built on top of an existing
layer 2 infrastructure.
Whatever layer 2 architecture you build --
possibly containing many switches -- must
act logically like "one bus".
Even though a typical modern switch
architecture is not a tree.
Finesse in separating layer 2 from layer 3:
What is "layer 2"?
Thursday, March 01, 2012
11:53 AM
Docsity.com
□ only one packet can be transferred at a time.
□ No packet queueing.
□ Collisions occur and are mitigated via 802.
typical cable router: single-plane switch.
□ packet queueing
multiple queues corresponding to service
classes.
□
eight or more simultaneous "planes" of
communication; several packets can be
transmitted at once.
□
typical backbone switch:
Switches are not created equal
Multi-plane switches:
Multi-plane switches
Monday, October 17, 2005
4:40 PM
Docsity.com
Typical modern switch architecture
on-card switching is asynchronous from
switching on other cards.
Multiple cards, each an autonomous switch.
Off-card traffic (as determined by MAC
table) is either flooded to all cards or
directed to one card connected to the
MAC address.
multi-channel (16+ channel) backplane bus
between cards.
Modern switch architecture
Monday, October 17, 2005
4:40 PM
Docsity.com
Switching: requires all switches to
remember MAC information (the MAC table
is fixed size).
How many MAC addresses can be
connected to a switch.
How many MAC addresses can be used
in one switch fabric.
How many layers of switching one can
have in a fabric.
Thus there is a practical size limit on
Flooding does not travel over routers.
Hosts connected to a router have no
concept of the MAC address of other
hosts connected to it.
No limit to the number of hosts on any
port of a router.
Routing: makes boundaries between
switch fabrics
Should we route or switch an enterprise?
Routing versus switching
Thursday, March 01, 2012
12:06 PM
Docsity.com
When forwarding an ARP request.
When the switch has seen no traffic
from the ethernet address.
In the switching algorithm, there are
several cases in which packets are
forwarded to all interfaces ("flooding a
packet")
Flooding
"Flooding"
Thursday, March 01, 2012
11:51 AM
Docsity.com
If a switch fabric is topologically a tree ,
then no flood storms are possible.
If a switch receives a flood packet, it sends
the packet on all other interfaces.
Each switch receives the packet exactly
once.
Key observation
Key observation
Thursday, March 01, 2012
12:09 PM
Docsity.com
Assign priorities to the switches,
indicating how important it is that they be
in the tree.
The highest-priority switch becomes the
root switch and it is connected to all other
switches via a tree.
Every other switch computes its least-cost
path to the root.
(By convexity, any path from an outer
switch travels along the same path as that
of an inner switch.)
Break ties via unique switch and port
numbering.
Path costs are computed from link speeds:
the faster the link, the lower the cost.
Making a fabric a tree: Spanning Tree
Protocol (STP)
Making a fabric a tree
Thursday, March 01, 2012
12:13 PM
Docsity.com
MAC Address table, but does not forward
frames.
Forwarding - A port receiving and
sending data, normal operation. STP still
monitors incoming BPDUs that would
indicate it should return to the blocking
state to prevent a loop.
Disabled - Not strictly part of STP, a
network administrator can manually
disable a port
Pasted from
<http://en.wikipedia.org/wiki/Spanning_Tree_Protoc
ol#Data_rate_and_STP_path_cost>
Docsity.com
Why use STP?
If a switch fails, the network recovers if
possible.
Switches constantly exchange information
with the root switch.
The root switch informs all switches in the
network of changes.
In the worst case, the root fails, and a new
root takes over.
STP and 802.1D failover
STP and failover
Thursday, March 01, 2012
12:25 PM
Docsity.com
Want to share 10.1/16 and 10.2/16 among two
different buildings.
Old solution: string wires for both networks.
New solution: set up a trunk between the buildings
that carries traffic for both.
Typical VLAN application:
Wiring is expensive and fragile.
Tagging routers are cheap and robust.
Especially if the interconnect is fiber.
Advantages:
Must maintain tags - maintenance is
expensive.
Tags must match between switches or
connection is broken.
Disadvantages:
Typical 802.1q application
Monday, October 17, 2005
4:40 PM
Docsity.com
connection is broken.
Docsity.com
Feature of advanced switches
Limited priority-queueing.
Ability to put packets into one of 7 priority
queues.
Highest-priority queue wins in a contest.
Uses: streaming audio/video, downplaying
background computations.
Quality-of-service
associate %bandwidth on channel with priority.
send on queue 1 until 80% of window done
or when you finish.
send on queue 2 for the rest of the
window.
for each time window:
"priority 1 gets 80%, priority 2 gets 20%"
Practical configuration
802.1p
Tuesday, October 18, 2005
9:08 AM
Docsity.com
Students in computer science were using
80% of the incoming bandwidth for ftp
(e.g., downloading linux). TCCS staff were
complaining.
(It turned out that the culprit was me ; I
was downloading every conceivable linux
distribution for a project. )
Code ftp as QOS 2, everything else as
Allocate 20% of available downlink
bandwidth to ftp.
Result: choke ftp connections; other
connections work fine.
Later, staff learned how to do this on
their switches.
My solution:
Real-life case study: 2000- 2001
Real life priority queue example
Tuesday, October 18, 2005
9:08 AM
Docsity.com