Layer 2 switching fundamentals(networking)

25
© 2009, Cisco Systems, Inc. All rights reserved. Module 4 Layer 2 Switching Fundamentals By Dr. Percy DIAS

Transcript of Layer 2 switching fundamentals(networking)

Page 1: Layer 2 switching fundamentals(networking)

© 2009, Cisco Systems, Inc. All rights reserved.

Module 4 Layer 2 Switching

Fundamentals

By Dr. Percy DIAS

Page 2: Layer 2 switching fundamentals(networking)

2© 2009, Cisco Systems, Inc. All rights reserved.

Communication Between Devices in a LAN Network

• Unicast – Communication where a frame is sent from one host addressed to a specific destination. In this case, you have just one sender and one receiver. Unicast transmission is still the predominant form of transmission on LANs and within the Internet.

Page 3: Layer 2 switching fundamentals(networking)

3© 2009, Cisco Systems, Inc. All rights reserved.

Communication Between Devices in a LAN Network

• Broadcast – Communication where a frame is sent from one address to all other devices. In this case, you have just one sender, but the information is sent to all connected receivers by using a universal broadcast address.

• Multicast – Communication where a destination addresses is a specific group of devices, or clients.

Page 4: Layer 2 switching fundamentals(networking)

4© 2009, Cisco Systems, Inc. All rights reserved.

Switch Modes

Page 5: Layer 2 switching fundamentals(networking)

5© 2009, Cisco Systems, Inc. All rights reserved.

Switching Frames

1. A frame is received.

2. If the destination is a broadcast, forward on all ports except the port in which the frame was received.

3. If the destination is a Unicast and the address is not in the address table, forward on all ports except the port in which the frame was received.

4. If the destination is a Unicast and the address is in the address table, and if the associated interface is not the interface in which the frame arrived, forward the frame out the one correct port.

5. Otherwise, filter (do not forward) the frame.

Page 6: Layer 2 switching fundamentals(networking)

6© 2009, Cisco Systems, Inc. All rights reserved.

Data Flow Through a Network

Page 7: Layer 2 switching fundamentals(networking)

7© 2009, Cisco Systems, Inc. All rights reserved.

Switching Methods

• Store-and-forward– Switch copies the entire frame into its onboard

buffers before any forwarding takes place.

– Latency is greater with larger frames.

– Check the entire frame for errors, which allows more error detection.

– Can forward between ports running at different speeds (Asymmetric Switching).

Page 8: Layer 2 switching fundamentals(networking)

8© 2009, Cisco Systems, Inc. All rights reserved.

Frame Transmission Modes

Page 9: Layer 2 switching fundamentals(networking)

9© 2009, Cisco Systems, Inc. All rights reserved.

Switching Methods

• Cut-through– The lowest level of latency.

– Immediately forwards a packet after reading the source and destination address.

• Fragment-free– Switching waits until the first 64 bytes of the

frame is received before forwarding.

– Filters out collision fragments.

Page 10: Layer 2 switching fundamentals(networking)

10© 2009, Cisco Systems, Inc. All rights reserved.

Collisions and Collision Domain

• Collision is a situation that can occur when 2 bits propagate at the same time on the same network.

• Collision domains are the connected physical network segments where collisions can occur.

Page 11: Layer 2 switching fundamentals(networking)

11© 2009, Cisco Systems, Inc. All rights reserved.

Collisions

• Hubs operate at Layer 1, simply repeating all received signals out all other ports

Page 12: Layer 2 switching fundamentals(networking)

12© 2009, Cisco Systems, Inc. All rights reserved.

Collisions and Collision Domain

Page 13: Layer 2 switching fundamentals(networking)

13© 2009, Cisco Systems, Inc. All rights reserved.

Collision Domains with a Switch

Page 14: Layer 2 switching fundamentals(networking)

14© 2009, Cisco Systems, Inc. All rights reserved.

Collision Domains and Full Duplex

• Each port of a switch creates its own collision domain

• A frame in one collision domain does not cause collisions in another collision domain

• The switch’s buffering process prevents the collisions

• When full duplex is enabled:

- NICs/Interfaces can send and receive at same time

- CSMA/CD is no longer needed as collisions can’t occur

- Full duplex cannot be used if a hub is plugged into the port

Page 15: Layer 2 switching fundamentals(networking)

15© 2009, Cisco Systems, Inc. All rights reserved.

Collision Domain Segmentation

• Breaking up or increasing the number of collision domains with layer 2 and 3 devices is known as segmentation

Page 16: Layer 2 switching fundamentals(networking)

16© 2009, Cisco Systems, Inc. All rights reserved.

Collision Domain Segmentation

Page 17: Layer 2 switching fundamentals(networking)

17© 2009, Cisco Systems, Inc. All rights reserved.

Collision Domain Segmentation

Page 18: Layer 2 switching fundamentals(networking)

18© 2009, Cisco Systems, Inc. All rights reserved.

Layer 2 Broadcasts

• When a node needs to communicate with all hosts on the network, it sends a broadcast frame with a destination MAC address 0xFFFFFFFFFFFF.

• Layer 2 devices must flood all broadcast.

• The accumulation of broadcast traffic from each device in the network is referred to as broadcast radiation.

Page 19: Layer 2 switching fundamentals(networking)

19© 2009, Cisco Systems, Inc. All rights reserved.

Broadcasts in a Bridged Environment

Page 20: Layer 2 switching fundamentals(networking)

20© 2009, Cisco Systems, Inc. All rights reserved.

Broadcast Domain Segmentation

Page 21: Layer 2 switching fundamentals(networking)

21© 2009, Cisco Systems, Inc. All rights reserved.

Broadcast Domains

• A broadcast domain is a grouping of collision domains that are connected by Layer 2 devices.

• Broadcasts are forwarded by Layer 2 devices and if excessive, can reduce the efficiency of the entire LAN.

• Broadcasts have to be controlled at Layer 3, as Layer 2 and Layer 1 devices have no way of controlling them.

Page 22: Layer 2 switching fundamentals(networking)

22© 2009, Cisco Systems, Inc. All rights reserved.

Collision Domains and Broadcast Domains

Page 23: Layer 2 switching fundamentals(networking)

23© 2009, Cisco Systems, Inc. All rights reserved.

What is a Network Segment?

Page 24: Layer 2 switching fundamentals(networking)

24© 2009, Cisco Systems, Inc. All rights reserved.

Cisco Academy 3 References

Slide 4: CCNA1 8.1.1

Slide 5: CCNA3 4.2.5

Slide 7-9: CCNA1 8.1.5

Slide 6,11,13, 15-21,23: CCNA1 8.2.1 - 8.2.7

Page 25: Layer 2 switching fundamentals(networking)

25© 2009, Cisco Systems, Inc. All rights reserved.

Cisco Academy 4 Exploration Reference

Slide 4: LAN Switching and Wireless 2.1.1

Slide 5: LAN Switching and Wireless 2.1.1

Slide 7-9: LAN Switching and Wireless 2.2.1-2.2.4

Slide 10-14,15-20: LAN Switching and Wireless 2.1.2