Study Notes on Local Area Networks and VLANs

Introduction to Local Area Networks (LAN)

  • Definition of LAN: A local area network (LAN) connects multiple devices within a limited geographical area, such as a computer science department and an engineering department.

Direct Communication in LANs

  • Devices in a LAN can communicate directly without needing hops or intermediaries.
  • Each department's systems connect to switches, facilitating communication within the same LAN.

Switches in LAN

  • A switch connects devices within a LAN, allowing them to share data.
  • Area switches or local switches facilitate communication among devices in the same network.
  • When devices are connected, any device can directly communicate with another within the network.

Broadcast Messages

  • Definition of Broadcast: A broadcast message is sent to all devices on a network.
  • Reasons for broadcasting:
      - DHCP Requests: A new node joins the network and requires an IP address.
      - ARP Requests: Determining the MAC address associated with an IP address.
  • Switch Behavior: When a switch does not know the destination MAC address of a packet, it floods the message to all interfaces except the incoming one.

Broadcast Flooding Process

  • A message sent from a device on the computer science network can reach other departments' switches.
  • If a switch does not recognize a device's MAC address, it will broadcast the message across all its links.
  • This mechanism grants access to any device within the same or connected LAN network.

Network Security and Restrictions

  • The need for network segmentation arises from security concerns as sensitive data should not be shared across departments.
  • Implementing VLANs (Virtual Local Area Networks) restricts broadcast messages to designated departments:
      - Computer Science VLAN: Functions as a separate entity from electrical engineering.
      - Communication Limits: Controls which devices can see which messages, enhancing security.

VLAN Implementation

  • VLANs allow separation of networks while maintaining intercultural communication for authorized devices.
  • For faculty working between departments, VLANs enhance flexibility while controlling access.

Routers and VLANs

  • Router Role: Facilitates communication between separated VLANs, allowing different department systems to communicate effectively.
  • Implementing VLANs on switches involves configuring specific ports to belong to particular VLANs.

Packet Forwarding Between Switches

  • For inter-VLAN communication, a single port on each switch is allocated to connect to a router.
  • Optimization: Instead of using multiple ports for multiple VLANs, employ trunk ports to efficiently manage traffic between VLANs.

VLAN Tagging

  • Each packet sent through a VLAN carries additional information in the frame header, which identifies its VLAN.
  • Internet Frame Composition: A typical Internet frame includes:
      - MAC Addresses (6 bytes each for source and destination)
      - Type address
      - IP Headers
  • VLAN tagging adds identification labels to frames to manage proper routing.

Tunneling for Virtual LANs

  • Connecting geographically separated VLANs through tunneling involves special protocols to encapsulate packets.
  • The encapsulated packets retain additional headers that inform routers of their VLAN affiliation to ensure appropriate handling.

Final Considerations and Topics for Review

  • Key concepts for upcoming exams include:
      - Dynamics of the link state routing algorithms (Dijkstra's algorithm and the distance vector)
      - Intra-Autonomous System (AS) and Inter-AS protocols, specifically OSPF and differences with link state protocols.
      - Software-Defined Networking (SDN) principles and functionality, focusing on OpenFlow.
  • Importance of understanding IP addressing, subnetting, and corresponding calculations for hosts.