Week 2: Introduction - M199205zn/Datacomm-CS3 GitHub Wiki

Introduction to Data and Network Communication


I. Objectives:

  1. Understand the basic concepts of data and network communication.
  2. Explain the concept of Local Area Networks (LANs) and their types.
  3. Describe perimeter networks and their significance.
  4. Identify various network topologies and standards.
  5. Understand Ethernet standards and their role in network communication.

Introduction to Data and Network Communication

  • Definition: Data communication refers to the transmission of digital or analog data between two or more devices. Network communication is the exchange of data over a shared network.

  • Key Components:

    • Sender: Originates the data (e.g., a computer or mobile device).
    • Receiver: Destination device receiving the data.
    • Transmission Medium: The physical or logical path for data transfer (e.g., cables or wireless signals).
    • Protocols: Rules governing communication (e.g., TCP/IP).
  • Example: A user sends an email, which travels from their device to an email server and eventually to the recipient's device.


Local Area Network (LAN)

  • Definition: A LAN is a network confined to a limited geographical area, such as an office, school, or home. It allows devices to communicate and share resources like printers, files, and applications.

  • Characteristics:

    • Small coverage area.
    • High-speed connectivity.
    • Owned and managed privately.
  • Example: A network connecting all computers in a library to a central database server.


Types of LAN

  1. Wired LAN:

    • Uses physical cables (e.g., Ethernet).
    • Reliable and fast but limited by cable reach.

    Example: Office LAN using Ethernet cables.

  2. Wireless LAN (WLAN):

    • Uses wireless signals (e.g., Wi-Fi).
    • Offers mobility and ease of setup.

    Example: Wi-Fi network at a coffee shop.

  3. Virtual LAN (VLAN):

    • Logical segmentation of a LAN into smaller groups for improved management and security.

    Example: Separating student and faculty networks in a university.


Virtual LAN (VLAN)


1. What is a VLAN?

A Virtual Local Area Network (VLAN) is a network configuration that logically segments a physical LAN into smaller, isolated networks. Devices in a VLAN act as though they are on the same physical network, regardless of their actual location, providing flexibility and better network management.


2. Key Characteristics of VLAN

  1. Logical Segmentation:

    • VLANs segment a network logically, not physically. Devices in the same VLAN can communicate even if they're on different physical switches.
  2. Improved Security:

    • VLANs isolate sensitive data and devices, reducing access for unauthorized users.
  3. Broadcast Control:

    • VLANs limit broadcast traffic to devices within the VLAN, improving network performance.
  4. Flexibility:

    • Users and devices can be grouped into VLANs based on function, department, or application requirements rather than physical location.
  5. Enhanced Network Efficiency:

    • VLANs reduce congestion by minimizing unnecessary traffic across the network.

3. Components of VLAN

  1. Switch:

    • VLANs are typically implemented on managed switches that can support VLAN tagging.
  2. VLAN ID:

    • A unique identifier assigned to each VLAN for tagging and differentiation of traffic.
  3. Trunk Ports:

    • These allow multiple VLANs to pass through a single connection between switches using VLAN tagging (e.g., IEEE 802.1Q protocol).
  4. Access Ports:

    • Ports assigned to a specific VLAN, where end devices (e.g., computers) connect.
  5. Router/Layer 3 Switch:

    • Enables communication between VLANs if required, using inter-VLAN routing.

4. Types of VLANs

  1. Default VLAN:

    • The pre-configured VLAN on a switch (usually VLAN 1) that includes all ports unless manually reassigned.
  2. Data VLAN:

    • Segments traffic for general user data.
  3. Voice VLAN:

    • Dedicated to voice traffic, ensuring Quality of Service (QoS) for VoIP communications.
  4. Management VLAN:

    • Used for network management, such as accessing and configuring switches and routers.
  5. Native VLAN:

    • The VLAN assigned to untagged traffic on a trunk port.

5. Example Use Case

Imagine a company with three departments: HR, Finance, and IT. Using VLANs:

  • HR VLAN (VLAN 10) ensures only HR devices can communicate within their segment.
  • Finance VLAN (VLAN 20) isolates sensitive financial systems and traffic.
  • IT VLAN (VLAN 30) supports administrative devices like servers and switches.

This segmentation isolates traffic, enhances security, and improves network performance.


6. VLAN Tagging

  • VLAN tagging is a method of identifying packets as belonging to a specific VLAN.
  • The IEEE 802.1Q standard appends a VLAN tag to Ethernet frames, which includes the VLAN ID, allowing switches to recognize and route traffic properly.

7. Advantages of VLAN

  1. Enhanced Security:

    • Segments sensitive information and devices, reducing the risk of breaches.
  2. Improved Traffic Management:

    • Limits broadcast domains, reducing unnecessary traffic and improving speed.
  3. Flexibility:

    • VLANs can be reconfigured without changing physical connections.
  4. Cost-Effective:

    • Eliminates the need for additional switches or routers for segmentation.
  5. Simplified Management:

    • Easier to manage groups of devices logically instead of relying on physical layouts.

8. Disadvantages of VLAN

  1. Complex Configuration:

    • Setting up and managing VLANs requires technical expertise.
  2. Dependency on Switches:

    • Requires managed switches that support VLANs, which can be more expensive.
  3. Inter-VLAN Routing Overhead:

    • Communication between VLANs needs routing, which adds complexity and latency.

9. Diagram: VLAN Setup

A simple VLAN setup typically includes:

  • Switch with VLAN IDs (10, 20, 30):
    • Devices in VLAN 10 (e.g., HR computers) communicate only with other devices in VLAN 10.
    • Devices in VLAN 20 (e.g., Finance) and VLAN 30 (e.g., IT) are similarly isolated.
  • Trunk Link:
    • Connects two switches, carrying traffic for all VLANs using VLAN tagging.
  • Router:
    • Provides inter-VLAN routing for communication between VLANs when necessary.

Diagram Description


Perimeter Networks

  • Definition: Also called a DMZ (Demilitarized Zone), a perimeter network is a small network placed between an organization's internal network and the external internet. It adds a layer of security by isolating public-facing services.

  • Use Cases:

    • Hosting web servers, email servers, or DNS servers.
  • Example: An organization places its web server in the perimeter network to prevent direct access to its internal network.


Identifying Network Topologies and Standards

  • Network Topologies:

    1. Bus Topology: Devices are connected to a single central cable (backbone).

      • Advantages: Simple and cost-effective.
      • Disadvantages: Single point of failure.
    2. Star Topology: Devices are connected to a central hub or switch.

      • Advantages: Easy to manage and scalable.
      • Disadvantages: Hub failure affects the entire network.
    3. Ring Topology: Devices form a closed loop.

      • Advantages: Equal access for all devices.
      • Disadvantages: A break in the ring disrupts communication.
    4. Mesh Topology: Every device is connected to every other device.

      • Advantages: High fault tolerance.
      • Disadvantages: Expensive and complex.
  • Standards:

    • Govern the design, implementation, and management of networks.
    • Example: IEEE 802.3 (Ethernet), IEEE 802.11 (Wi-Fi).

Ethernet Standards

  • Definition: Ethernet is the most common LAN technology, defined by IEEE 802.3 standards.

  • Key Types:

    1. Fast Ethernet (100 Mbps):
      • Uses Cat 5 cables.
      • Suitable for small to medium networks.
    2. Gigabit Ethernet (1 Gbps):
      • Uses Cat 5e or Cat 6 cables.
      • Ideal for high-speed requirements.
    3. 10-Gigabit Ethernet:
      • Used in data centers and high-performance networks.
  • Example: A Gigabit Ethernet connection ensures fast file transfers between computers and servers in a corporate network.


Maximized the Local Area Network (LAN)


1. Introduction to LAN

A Local Area Network (LAN) is a private network designed to connect devices within a limited geographical area, such as homes, schools, offices, or university campuses. LANs are critical for enabling resource sharing, efficient communication, and seamless data transfer between connected devices.


2. Characteristics of LAN

a. Limited Coverage Area

  • A LAN typically spans a single building, room, or campus, offering connectivity within a confined location.

b. High-Speed Connectivity

  • LANs support high data transfer speeds, ranging from 10 Mbps (older standards) to 10 Gbps (modern standards), ensuring fast file sharing and smooth communication.

c. Owned and Managed Privately

  • LANs are usually maintained by individuals, organizations, or institutions without reliance on external providers.

d. Resource Sharing

  • Devices connected to a LAN can share resources like:
    • Printers (e.g., multiple employees printing from a single printer).
    • Storage (e.g., shared drives or servers).
    • Applications (e.g., centralized software licensing).

e. Reliability

  • LANs are highly reliable due to their simplicity and robust design, often featuring redundant paths and backup systems.

3. Advantages of LAN

  • Cost-Effective: Sharing resources like printers and storage reduces operational costs.
  • Centralized Control: Simplifies management through network policies and centralized servers.
  • Scalability: Easy to expand by adding more devices.
  • Secure: Data stays within the network, reducing risks of external breaches.

4. Types of LAN

a. Wired LAN

  • Devices are connected using cables (e.g., Ethernet).
  • Example: Office network with desktop PCs connected via Ethernet to a switch.

b. Wireless LAN (WLAN)

  • Devices connect wirelessly using Wi-Fi.
  • Example: A university Wi-Fi network enabling students to access the internet across campus.

c. Virtual LAN (VLAN)

  • Logical segmentation of a physical LAN into smaller groups for better management and security.
  • Example: Separating the accounting and marketing departments’ networks within an organization.

5. Example: A Library Network

In a library:

  • Devices: Computers for patrons, a database server, and network printers are connected via LAN.
  • Functionality:
    • Users can search for books on the database server.
    • Documents can be printed on a shared printer.
    • Staff computers can access inventory and user management systems.

6. LAN Diagram Examples

Diagram 1: Basic Wired LAN

  • Setup: Devices (e.g., desktops, servers, and printers) connected to a central switch using Ethernet cables.

  • Description:

    • All devices communicate through the switch.
    • The router connects the LAN to the internet.

Diagram 2: Wireless LAN (WLAN)

  • Setup: Devices like laptops, smartphones, and tablets connect to an access point (AP) wirelessly.

  • Description:

    • The access point (AP) manages wireless communication.
    • Devices share resources like a server or printer through the WLAN.

Maximized Topic: Diagram 2 - Wireless LAN (WLAN)


1. What is a Wireless LAN (WLAN)?

A Wireless LAN (WLAN) is a network that enables devices to communicate and share resources without the need for physical cables. It uses radio waves for data transmission and is commonly found in homes, offices, schools, and public areas like coffee shops or airports. WLANs are flexible, convenient, and support mobility, allowing users to connect from various locations within the network's coverage area.


2. Key Characteristics of WLAN

  1. Wireless Connectivity:

    • Devices communicate over radio frequencies instead of Ethernet cables.
  2. Ease of Installation:

    • No need for extensive cabling; setup is simpler and faster.
  3. Mobility:

    • Users can connect to the network while moving within the WLAN's range.
  4. Access Points (APs):

    • Central devices (like Wi-Fi routers) provide wireless access and manage data flow between devices.
  5. Shared Medium:

    • All devices in the WLAN share the same radio frequency for communication.

3. Components of a WLAN

a. Access Point (AP):

  • The AP acts as a bridge between wireless devices and the wired network (or the internet).
  • It transmits and receives radio signals, enabling communication.

b. Router:

  • Connects the WLAN to the internet, assigns IP addresses, and manages data traffic.

c. Devices (Clients):

  • Wireless-enabled devices like laptops, smartphones, tablets, and printers connect to the WLAN.

d. Internet:

  • The external network accessed by WLAN users through the AP and router.

4. Example WLAN Setup

In a university library:

  • Devices: Laptops, tablets, and smartphones connect wirelessly to the network via an access point.
  • Functionality:
    • Students access the internet, library databases, or e-books without plugging in cables.
    • A wireless printer allows users to print documents from their devices.

5. Diagram Explanation: Wireless LAN (WLAN)

Setup Overview

The diagram showcases a wireless LAN where multiple devices communicate with an Access Point (AP) for both internal communication and internet access.


Diagram Structure

  1. Devices:

    • Laptop: A wireless-enabled device accessing the network.
    • Smartphone: A mobile device connected to the network.
    • Printer: A networked wireless printer used for shared printing.
  2. Access Point (AP):

    • Central wireless hub that allows communication between devices.
    • It connects to the Router for internet access.
  3. Router:

    • Manages traffic between the WLAN and the internet.
  4. Internet:

    • External network accessed by WLAN users through the AP and router.

Flow of Data in WLAN

  1. Within the WLAN:

    • Devices like the laptop and printer communicate wirelessly via the AP.
    • For example, a user sends a document from their laptop to the printer.
  2. Accessing the Internet:

    • A smartphone requests a webpage. The data travels:
      • From the SmartphoneAPRouterInternet.
    • The response follows the same path back to the smartphone.

6. Advantages of WLAN

  1. Flexibility and Mobility:

    • Users can connect from anywhere within the network's range.
  2. Scalability:

    • Easily add more devices without laying cables.
  3. Cost-Efficiency:

    • Reduces the need for extensive cabling and associated costs.
  4. Convenience:

    • Ideal for environments where frequent device movement occurs (e.g., offices, schools).

7. Challenges of WLAN

  1. Interference:

    • Radio signals can be disrupted by other devices or obstacles like walls.
  2. Security Risks:

    • Open wireless signals can be vulnerable to unauthorized access if not secured properly.
  3. Limited Range:

    • The coverage area is constrained by the AP's signal strength.

Diagram 3: VLAN

  • Setup: Logical segmentation of one physical LAN into two VLANs (e.g., for employees and guests).

  • Description:

    • VLAN 1 and VLAN 2 are logically separated even though they share the same physical infrastructure.
    • Data between VLANs is isolated for security.

7. Key LAN Components

  1. Switch: Connects devices in a LAN and facilitates communication.
  2. Router: Connects the LAN to the internet and manages traffic.
  3. Access Point (AP): Enables wireless connectivity in a WLAN.
  4. Server: Centralized resource for file storage, databases, or applications.
  5. End Devices: Computers, printers, and other devices that use network resources.

8. Technologies in LAN

  1. Ethernet:
    • Wired LAN technology defined by IEEE 802.3 standards.
    • Speeds: 10 Mbps to 10 Gbps.
  2. Wi-Fi:
    • Wireless LAN technology based on IEEE 802.11 standards.
    • Speeds: Up to 9.6 Gbps (Wi-Fi 6).

9. Practical Applications of LAN

  • Corporate Offices: Employees share resources like printers and databases.
  • Schools: Enables communication between teachers, students, and administrators.
  • Homes: Devices like smart TVs, laptops, and IoT gadgets connect to a single network.

10. Classroom Activity

Activity 1: Diagram Creation

  • Objective: Students will create a diagram for a LAN in a school setup, including components like computers, servers, printers, and a router.
  • Instructions:
    1. Sketch the physical connections.
    2. Label each device (e.g., PC1, Switch, Printer).
    3. Identify the connection type (wired or wireless).