Layer 2 functionality – bridging and switching

26
Review of Topology and Access Techniques / Switching Concepts BSAD 141 Dave Novak Sources: Network+ Guide to Networks, Dean 2013

description

Layer 2 functionality – bridging and switching. BSAD 141 Dave Novak Sources: Network + Guide to Networks, Dean 2013. Overview. Layer 2 functionality Error detection Bridging Broadcast and collision domains How bridges work Types of bridges Switching Types of switches Buffering. - PowerPoint PPT Presentation

Transcript of Layer 2 functionality – bridging and switching

Page 1: Layer 2 functionality – bridging and switching

Review of Topology and Access Techniques / Switching ConceptsBSAD 141Dave Novak

Sources: Network+ Guide to Networks, Dean 2013

Page 2: Layer 2 functionality – bridging and switching

Overview Three “base” wired topologies

Bus, star, ring Two wireless topologies

Ad-hoc, infrastructure Three basic access techniques

CSMA/CD, CSMA/CA, and token passing CSMA and delay Packet switching versus circuit switching

Page 3: Layer 2 functionality – bridging and switching

Architecture Basic level – any topology will support any

architectureStar topology may support client – server

(CS) or peer-to-peer (P2P) architectureLikewise, P2P or CS architecture may be

implemented using star, bus, or ring topology

Page 4: Layer 2 functionality – bridging and switching

Architecture –vs- Topology Topology –physical or logical design or

layout of the networkWhat is the difference between a physical

star and logical star topology? Architecture – describes the functionality

and “administrative” structure of the networkHow devices interactWhether there are servers and exactly what

these devices do

Page 5: Layer 2 functionality – bridging and switching

Access Technique

The access technique describes how the devices that are using a particular networking technology (such as Wi-Fi or Ethernet) share or coordinate the use of, the communication medium

This is relevant because the vast majority of networking technologies and implementations involve the sharing of the communications medium

Page 6: Layer 2 functionality – bridging and switching

Access Technique

CSMA/CD?

CSMA/CA?

Page 7: Layer 2 functionality – bridging and switching

Access Technique

Token Passing?

Page 8: Layer 2 functionality – bridging and switching

Distance limitation and LANs Distance is a fundamental consideration in

the design of any network – particularly when it comes to popular LAN technologies such as Wi-Fi and Ethernet

The length of an Ethernet network cannot be continually increased by adding new segments using switches, hubs or repeaters

Page 9: Layer 2 functionality – bridging and switching

Ethernet and Delay CSMA/CD (and CSMA/CA for that matter)

designed to function with limited latencyScheme fails if length is too long or too many

segments are connected Serious performance problems if you string a

bunch of Ethernet segments together with repeaters

Discussion

Page 10: Layer 2 functionality – bridging and switching

Packet Concept

In data networks, the data are broken up into smaller packets as opposed to transmitting large streams of data

Page 11: Layer 2 functionality – bridging and switching

Packet Concept Packets promote “equity” Enables many devices to share the

medium Data networks not designed to transfer

data as a stream of continuous bits Data are divided into small generic blocks

called packets Dividing data into packets helps determine

which blocks have errors and which do not

Page 12: Layer 2 functionality – bridging and switching

Packet Concept

Think about the concept of encapsulation What happens when data are

encapsulated?

What is the difference between a packet and a frame?

Page 13: Layer 2 functionality – bridging and switching

Switching Determines how connections are

established between different nodes on the network

Focus on 2 types of switching1)

2)

Page 14: Layer 2 functionality – bridging and switching

Type of switching Why is this an issue?

Page 15: Layer 2 functionality – bridging and switching

Circuit switching A connection-based transmission

technology where 2 nodes establish a dedicated connection for the duration of the communication session

Requires that the sending node contact receiving node to establish the connection

Based on the concept of streaming large amounts of data

What is a potential drawback to a dedicated connection?

Page 16: Layer 2 functionality – bridging and switching

Circuit switching Some amount of bandwidth on circuit/channel is

dedicated and remains available until connection is terminated

Conceptually a reserved path from sender to receiver is created that provides an “open road” for non-stop transfer Not sharedWhile nodes are connected, all data follow

same pathData arrive in order

Page 17: Layer 2 functionality – bridging and switching

Circuit switching1. Pick up the phone and listen for a dial tone. This lets you know that

you have a connection to the local office of your telephone carrier2. Dial the number of the party you wish to talk to3. Your call is routed through the switch at your local carrier to the

party you are calling4. A connection is made between your phone and the other party's

phone using several interconnected switches along the way5. The phone at the other end of the connection rings, and someone

answers the call.6. The connection opens a dedicated circuit for the duration of the call7. You talk for a period of time and then hang up your phone8. When you hang up, the communication circuit or channel is closed,

freeing the bandwidth along the circuit in between the caller and the receiver

Source: http://computer.howstuffworks.com/ip-telephony2.htm

Page 18: Layer 2 functionality – bridging and switching

Advantages of Circuit Switching

Dedicated connection between 2 hosts – full use of communication channel for duration of communication session

Highly reliable (with respect to path, variation in delay, and constant bit rate)

Requires little packet overhead during transmission because path / communication circuit is dedicated and known

Makes optimal use of available bandwidth (ratio of overhead to data is very small) during transmission but not if channel is idle

Page 19: Layer 2 functionality – bridging and switching

Disadvantages of Circuit Switching

Inflexible with respect to many internet-based applications (data are bursty)

Involves a lot of communication overhead and time with respect to ESTABLISHING the connection on the communication channel

Can waste a lot of bandwidth if data are not continually being sent (inefficient if idle)

In event of failure, data are not packetized and do not seek an alternate path – path may be lost and all data may be lost

Page 20: Layer 2 functionality – bridging and switching

Packet switching A digital networking communication method

where data are broken into small packets and each packet can be transmitted independently

Delivers variable rate data streams During transmission packets are buffered and

queued which leads to variable delay and throughput

No communication is needed to explicitly establish a connection with receiving node ahead of time

Page 21: Layer 2 functionality – bridging and switching

Packet switching Two modes

1) Connectionless (datagram) 2) Connection-based (virtual circuit)

Implication: modern, data-oriented, digital, packet-switched networks can take advantage of both connectionless and connection-based transfer

Page 22: Layer 2 functionality – bridging and switching

Packet switching 1) Connectionless mode (datagram)

Asynchronous communication – no coordination

Each packet much include complete routing information because each packet can be routed individually• Out-of-order delivery, different paths

Page 23: Layer 2 functionality – bridging and switching

Packet switching 2) Connection-based mode (virtual circuit)

Protocols establish a virtual connection between sender and receiver • This connection is established via software rather

than physically• A temporary dedicated channel is established

Connection set up and torn down as needed Packets include connection identifierPackets are typically delivered in order

Page 24: Layer 2 functionality – bridging and switching

Advantages of Packet switching

Bandwidth from end-to-end is optimized • Unused circuits are torn down and bandwidth is

reallocatedSupports variable data transfer ratesIn event of failure, packets can rerouteDesigned to support “bursty” data transfer

Page 25: Layer 2 functionality – bridging and switching

Disadvantages of Packet switching

Variable delayPackets can be lost or corruptSophisticated protocols are needed to

provide some level of reliability during transfer

Not good for certain types of applications that require constant bit rates, limited variation in delay, or no data loss (e.g. real-time video)

Page 26: Layer 2 functionality – bridging and switching

Summary

Three “base” wired topologiesBus, star, ring

Two wireless topologiesAd-hoc, infrastructure

Three basic access techniquesCSMA/CD, CSMA/CA, and token passing

Packet switching versus circuit switching