Lecture 3 - Switches and Routers - 2025

Page 1

  • Course Details:

    • Title: Network Essentials

    • Lecture 3: Switches & Routers

    • Instructor: Dr. Jiankang Zhang

    • Contact: jzhang3@bournemouth.ac.uk

    • Location: Room P316

Page 2

  • Linking Networks

    • Networks are interconnected through switches and routers.

    • Networks Visualization:

      • Network A, B, C, and D

    • Packet Travel: How packets move between networks.

Page 3

  • Definition of a Switch:

    • Basics of network switching.

Page 4

  • Network Switch Introduction:

    • Examples: Cisco 2960, Netgear

    • Connection Setup:

      • Connect a PC to the switch with a network cable.

    • Function:

      • Basic building block of Local Area Networks (LANs)

      • Connects different parts of the network and devices.

      • Ports typically include 24 or 48 sockets on models like Cisco 2960.

Page 5

  • Switch Functionality:

    • Network Creation:

      • Establishes a local network (LAN).

    • Connectivity:

      • Devices can connect to the network.

    • Port Characteristics:

      • Number of ports usually a multiple of 4.

      • Provides dedicated bandwidth for each port.

Page 6

  • Data Handling by Switches:

    • Forwards data packets from source to destination port.

    • Allows multiple simultaneous communications between port pairs.

    • Pre-Forwarding: Can start forwarding packets before fully receiving them.

    • Maintains an internal look-up table for ports and node addresses.

Page 7

  • Port to Port Delivery:

    • Switch ports facilitate virtual connections only during data transfers.

    • Only the destination device's port receives the data frame.

Page 8

  • Switch Functions Overview:

    • Performs four main actions using a look-up table:

      • Learn: Identify connected devices.

      • Filter: Determine which packets to keep or discard.

      • Forward: Send packets to correct destination.

      • Flood: Send packets to all ports if destination is unknown.

Page 9

  • Switched Network Architecture Example:

    • Demonstrates sending messages from Host A to Host D via a switch.

Page 10

  • Types of Switches by Manageability:

    • Managed Switches:

      • Configurable, suited for Virtual LANs.

      • Operate at Layer 2 or Layer 3 of the OSI model.

    • Unmanaged Switches:

      • Basic functionality with no configuration options.

Page 11

  • Unmanaged Switches Overview:

    • Examples of NETGEAR switches.

    • Various types include Smart Cloud Switches and Multi-Gig Switches.

Page 12

  • Layer 2 and Layer 3 Switches:

    • Layer 2: Handles MAC addresses.

    • Layer 3: Combines router and switch functionalities; handles both MAC and IP addresses but is less functional than routers.

Page 13

  • Switch Operations Types:

    • Cut Through Processing:

      • Fast; forwards packets after reading the destination address.

    • Stored-and-Forward Processing:

      • Slower; forwards packets after checking for errors.

Page 14

  • Network Expansion:

    • Additional switches can be connected via crossover cables or specialized cables.

Page 15

  • Comparison: Switches vs. Routers:

    • Switches: Create LANs.

    • Routers: Connect different networks.

Page 16

  • Function of Routers:

    • Connect two or more networks.

    • Each network must have its own unique network ID.

Page 17

  • Router Characteristics:

    • Divides networks while resembling a switch.

    • More expensive and requires configuration unlike switches.

Page 18

  • Routers vs. Switches Visual:

    • Diagram showing connections among PCs and switches.

Page 19

  • Routing Network IDs:

    • Each router port requires a different network ID, akin to street names distinguishing roadways at roundabouts.

Page 20

  • Exercise 1 - IP Address Allocation:

    • Task: Allocate Class C IP addresses for provided network configuration.

Page 21

  • Exercise 1 - Answer:

    • Switch ports do not require IP addresses.

    • Sample assignments of IP addresses based on exercise setup.

Page 22

  • Default Gateway/Router Concept:

    • Addresses outside the network sent to the default gateway, configured for each computer.

Page 23

  • Default Gateway Illustration:

    • Diagram explaining how devices know local from external networks through the default gateway.

Page 24

  • Complex Network Routers:

    • Routers can serve as default gateways for other routers, configured using routing algorithms.

Page 25

  • Default Gateway Setup:

    • Details regarding configurations of default gateways for multiple computers on different networks.

Page 26

  • Routers with Multiple Gateways:

    • Routers may act as gateways for other routers, utilizing routing algorithms for optimal path selection.

Page 27

  • Grouping by Location:

    • Visual representation of devices grouped by their physical office locations.

Page 28

  • Grouping by Purpose:

    • Departments grouped based on their operational functions.

Page 29

  • Grouping by Ownership:

    • Shows various locations managed by distinct IT services or teams.

Page 30

  • Grouping by Security Considerations:

    • Different areas within a network address varied security needs.

Page 31

  • IP Configuration Command:

    • Command: ipconfig to find default router and network configurations.

Page 32

  • Router Routing Table Details:

    • Contains network information and updates frequently with route changes communicated among routers.

Page 33

  • Routing Table Entry Components:

    • Descriptions of fields such as Network ID, Subnet Mask, Next Hop, Outgoing Interface, and Metric.

Page 34

  • Example Routing Table:

    • Sample routing table showing destination networks and associated metrics.

Page 35

  • Routing Tables in Routers:

    • Illustration of different networks and their next-hop addresses.

Page 36

  • Static Routing in Routers:

    • Addresses manually entered into routing tables for fixed paths between networks.

Page 37

  • Dynamic Routing Tables in Routers:

    • Networks learn about routes through interactions with other routers to establish paths.

Page 38

  • Resilient Network Properties:

    • Defines how routers use routing tables for alternative routes if a primary path fails.

Page 39

  • Packet Journey:

    • Discusses journey of data packets through various routers until reaching the destination.

Page 40

  • Diverse Routing Paths:

    • Explanation of how packets may take different routes leading to varying delays, particularly in applications like online gaming.

Page 41

  • Routing Step 1:

    • Initial packet sent to the nearest router by the originating computer.

Page 42

  • Routing Step 2:

    • Router examines the packet IP header upon receipt.

Page 43

  • Routing Step 3:

    • Utilizes a forwarding table for packet routing decisions based on destination address.

Page 44

  • Routing Step 4:

    • Final router forwards the packet to the destination based on forwarding decisions.

Page 45

  • Routing Decision Criteria:

    • Longest Prefix Match: Selects routes by longest match.

    • Administrative Distance: Chooses routes with lower administrative distance.

    • Metric: Uses metric values for route selection.

Page 46

  • Switches vs Routers Comparison:

    • Performance: Switches generally faster and cheaper than routers.

    • Operation Levels: Different OSI model layers; switches operate at Layer 2, routers at Layer 3.

Page 47

  • Detailed Comparison Overview:

    • Differences in functionality, configurations, and operational speeds between switches and routers.

Page 48

  • Summary of Key Points:

    • Functions of switches and routers, types of switches, and routing tables.

Page 49

  • Exercise 2:

    • Task: Allocate IP addresses and gateways for devices across different networks.

Page 50

  • Exercise 2 - Answer Overview:

    • Presents an example solution with assigned network IDs and gateways.

Page 51

  • Q&A Session:

    • Invitation for questions and clarifications on the material.