Docsity

Layer 2 Network Design, Exercises of Network Design

Partial preview of the text

Download Layer 2 Network Design and more Exercises Network Design in PDF only on Docsity!

Layer 2

Network Design

Layer-2 Network Design

 A good network design is modular and

hierarchical, with a clear separation of

functions:

 Core: Resilient, few changes, few features, high bandwidth, CPU power  Distribution: Aggregation, redundancy  Access: Port density, affordability, security features, many adds, moves and changes

Layer-2 Network Design - Redundant

ISP

ISP

Access Core Network Border Distribution

In-Building and Layer 2

 There is usually a correspondence between

building separation and subnet separation

 Switching inside a building  Routing between buildings

 This will depend on the size of the network

 Very small networks can get by with doing switching between buildings  Very large networks might need to do routing inside buildings

Ethernet Functions

 Source and Destination identification

 MAC addresses

 Detect and avoid frame collisions

 Listen and wait for channel to be available  If collision occurs, wait a random period before retrying  This is called CASMA-CD: Carrier Sense Multiple Access with Collision Detection

Ethernet Frame

 SFD = Start of Frame Delimiter

 DA = Destination Address

 SA = Source Address

 CRC = Cyclick Redundancy Check

Switched Star Topology Benefits

 It’s modular:

 Independent wires for each end node  Independent traffic in each wire  A second layer of switches can be added to build a hierarchical network that extends the same two benefits above  ALWAYS DESIGN WITH MODULARITY IN MIND

Hub

 Receives a frame on one port and sends it out

every other port, always.

 Collision domain is not reduced

 Traffic ends up in places where it’s not needed

Switch

 Learns the location of each node by looking

at the source address of each incoming frame,

and builds a forwarding table

 Forwards each incoming frame to the port

where the destination node is

 Reduces the collision domain  Makes more efficient use of the wire  Nodes don’t waste time checking frames not destined to them

Switch

Switch Address Port AAAAAAAAAAAA 1 BBBBBBBBBBBB 5 A

B

Forwarding Table

Switch vs. Router

 Routers more or less do with IP packets what

switches do with Ethernet frames

 A router looks at the IP packet destination and checks its routing table to decide where to forward the packet

 Some differences:

 IP packets travel inside ethernet frames  IP networks can be logically segmented into subnets  Switches do not usually know about IP, they only deal with Ethernet frames

Switch vs. Router

 Routers do not forward Ethernet broadcasts.

 Switches reduce the collision domain  Routers reduce the broadcast domain

 This becomes really important when trying to

design hierarchical, scalable networks that can

grow sustainably

S R S

Traffic Domains

 Try to eliminate collision domains

 Get rid of hubs!  Actually hubs are very rare today.

 Try to keep your broadcast domain limited to

no more than 250 simultaneously connected

hosts

 Segment your network using routers

Layer 2 Network Design Guidelines

 Always connect hierarchically

 If there are multiple switches in a building, use an aggregation switch  Locate the aggregation switch close to the building entry point (e.g. fiber panel)  Locate edge switches close to users (e.g. one per floor)  Max length for Cat 5 is 100 meters