CS334/534 Networking Study Hub

Computer Networks โ€ข Dr. Ragib Hasan โ€ข UAB CS

๐Ÿ“ก

Module 1: Network Fundamentals

Evolution of Networks, Terminology, OSI & TCP/IP Models

Lectures 0.1, 1.1, 1.2, 1.3 โ€ข Book: Chapter 1 (1.1โ€“1.4)

๐ŸŒ

What is a Network?

  • โ€ข Nodes: Interconnected entities (computers, devices)
  • โ€ข Communication: Transfer of data/signals
  • โ€ข Resource Sharing: Data, hardware, services
  • โ€ข Protocols: Rules governing transmission
๐Ÿ“œ

Network Evolution Timeline

1820sTelegraph (Morse)
1876Telephone (Bell)
1969ARPAnet (4 nodes)
1973Ethernet (Xerox PARC)
1989WWW (Berners-Lee)
1997Wi-Fi (802.11)
๐ŸŽฏ

ARPAnet (1969)

  • โ€ข First public packet-switched network
  • โ€ข First 4 nodes: UCLA, UCSB, Stanford, Utah
  • โ€ข First message: "lo" (intended "login", crashed!)
  • โ€ข First email sent: 1971
  • โ€ข Led to TCP/IP development (1977)
๐Ÿ“ฆ

Packet Switching

  • โ€ข Data broken into packets (modest-sized byte sequences)
  • โ€ข Each packet has header (address, metadata)
  • โ€ข Packets routed independently (stateless)
  • โ€ข Why small packets? Better sharing, faster recovery
Ethernet packet: max 1500 bytes
โšก

Data Rates: bits vs bytes

b = bits (lowercase)
B = Bytes (uppercase)
Mbps = 10โถ bits/sec
1 Byte = 8 bits
Bandwidth: Raw bit rate
Throughput: Effective rate (with overhead)
Goodput: Application-layer usable data
๐Ÿ—๏ธ

Network Layers (Simplified)

Application Layer
Transport Layer
IP/Network Layer
Link/LAN Layer
Physical Layer

Each layer only talks to layers above/below it

๐Ÿ“

OSI Model (7 Layers) vs TCP/IP (4 Layers)

OSI Model (7)

7. Application
6. Presentation
5. Session
4. Transport
3. Network
2. Data Link
1. Physical

TCP/IP Model (4)

Application
Transport (TCP/UDP)
Internet (IP)
Network Access
๐Ÿ”€

Switches vs Routers

๐Ÿ”Œ Switch

  • โ€ข Works at LAN/Link Layer
  • โ€ข Forwards based on MAC address
  • โ€ข Connects devices in same network

๐ŸŒ Router

  • โ€ข Works at IP/Network Layer
  • โ€ข Forwards based on IP address
  • โ€ข Connects different networks

๐Ÿ“Š Module 1 Diagrams & Models

Visual representations of network concepts

Encapsulation: Data Through Layers
Application Data
โ†“ + TCP Header
TCP Data
โ†“ + IP Header
IP TCP Data
โ†“ + Ethernet Header
ETH IP TCP Data CRC

Each layer adds its own header (14+20+20 = 54 bytes of overhead)

Packet Header Sizes

14

Ethernet Header

bytes

20

IP Header

bytes

20

TCP Header

bytes

Total Overhead: 54 bytes per packet

๐Ÿ“‹ Module 1 Key Formulas & Facts

Essential calculations and conversions

Data Rate Conversions

1 Byte = 8 bits

1 kbps = 10ยณ bits/sec

1 Mbps = 10โถ bits/sec

1 Gbps = 10โน bits/sec

Example: File Transfer Time

Given: 500 Mbps connection, 1 MB file

Step 1: Convert Mbps to bytes/sec

500 Mbps = 500 ร— 10โถ bits/sec รท 8 = 62,500,000 bytes/sec

Step 2: Calculate time

1 MB = 1,048,576 bytes (2ยฒโฐ)

Time = 1,048,576 รท 62,500,000 โ‰ˆ 0.017 seconds

Key Network Facts

  • ๐Ÿ“ฆ Max Ethernet packet: 1500 bytes
  • ๐Ÿท๏ธ TCP/IP overhead: 54 bytes (Eth 14 + IP 20 + TCP 20)
  • ๐ŸŒ IPv4 address: 32 bits (4 octets, 4.3 billion addresses)
  • ๐Ÿ“ MAC address: 48 bits (6 bytes)
  • โฐ First ARPAnet message: Oct 29, 1969

Network Utilities Commands

ping - Test if host is reachable
traceroute - Show route to host
ifconfig/ipconfig - Show IP config
route - Show routing table
nslookup - DNS lookup
wireshark - Packet analyzer

๐ŸŽฏ Module 1 Quiz

Network Fundamentals & Models

1. What was the first message sent over ARPAnet?

2. How many layers does the OSI model have?

3. What is the maximum size of an Ethernet packet (payload)?

4. In networking, what does "Mbps" measure?

5. Which device forwards packets based on IP address?

6. Who invented the World Wide Web?

๐ŸŽ“

Module 1: Lecture Walkthrough

Step-by-step guide through Network Fundamentals

๐Ÿ“– Lectures 0.1, 1.1, 1.2, 1.3 โ€ข Book: Chapter 1 (1.1โ€“1.4)

๐Ÿ“˜ Lecture 0.1: Introduction to Networking

Course overview and fundamental concepts

0.1

What is a Computer Network?

โฑ๏ธ 15 min โ€ข Core definitions

๐ŸŽฏ Learning Goals

  • โ€ข Define what a computer network is
  • โ€ข Identify the components of a network
  • โ€ข Explain why networks are essential

๐ŸŒ Key Concepts

  • โ€ข Network: Interconnected nodes that can communicate
  • โ€ข Nodes: Computers, servers, phones, IoT devices
  • โ€ข Links: Physical (cables, fiber) or wireless connections
  • โ€ข Purpose: Resource sharing, communication, reliability

โœ… Checkpoint

What three things do networks allow us to share? โ†’ Data, Hardware, Services

๐Ÿ“˜ Lecture 1.1: Network History

Evolution from telegraph to modern internet

1.1

Network Evolution Timeline

โฑ๏ธ 20 min โ€ข Key milestones and inventors

๐ŸŽฏ Learning Goals

  • โ€ข Recall key dates and inventors in networking history
  • โ€ข Explain the significance of ARPAnet
  • โ€ข Understand the progression from telegraph to internet

๐Ÿ“œ Key Milestones

1820s: Telegraph (Morse)
1876: Telephone (Bell)
1969: ARPAnet (4 nodes)
1973: Ethernet (Metcalfe)
1989: WWW (Berners-Lee)
1997: Wi-Fi (802.11)

๐ŸŽฏ ARPAnet Details

  • โ€ข First 4 nodes: UCLA, UCSB, Stanford, Utah
  • โ€ข First message: "lo" (crashed after 2 letters of "login")
  • โ€ข Date: October 29, 1969

โœ… Checkpoint

Who invented the World Wide Web and when? โ†’ Tim Berners-Lee at CERN in 1989

๐Ÿ“˜ Lecture 1.2: Network Terminology & Concepts

Bandwidth, throughput, latency, and packet switching

1.2.1

Network Terminology

โฑ๏ธ 25 min โ€ข Data rates and units

๐ŸŽฏ Learning Goals

  • โ€ข Distinguish between bandwidth, throughput, and goodput
  • โ€ข Convert between bits and bytes correctly
  • โ€ข Understand latency components

๐Ÿ“Š Data Rate Terms

Bandwidth: Raw bit rate capacity (theoretical max)
Throughput: Effective rate achieved (actual)
Goodput: Usable application data rate
Latency: Time delay from A to B

๐Ÿ”ข Units: bits vs Bytes

b = bits (lowercase), B = Bytes (uppercase)

1 Byte = 8 bits โ€ข 1 Mbps = 10โถ bits/sec

โœ… Checkpoint

What's the difference between bandwidth and throughput? โ†’ Bandwidth is theoretical max, throughput is actual achieved rate

4

Packet Switching

โฑ๏ธ 20 min โ€ข Lecture 1.2

๐Ÿ“ฆ How Packet Switching Works

  • โ€ข Data broken into small packets
  • โ€ข Each packet has a header (destination address, metadata)
  • โ€ข Packets routed independently (may take different paths)
  • โ€ข Reassembled at destination

๐Ÿ’ก Why Small Packets?

  • โ€ข Better sharing of network resources
  • โ€ข Faster error recovery (only retransmit small piece)
  • โ€ข Reduced congestion at any one point

โœ… Checkpoint

What's the maximum Ethernet packet payload size? (Answer: 1500 bytes)

5

OSI & TCP/IP Models

โฑ๏ธ 30 min โ€ข Lecture 1.3

OSI Model (7 Layers)

7. Application
6. Presentation
5. Session
4. Transport
3. Network
2. Data Link
1. Physical

TCP/IP Model (4 Layers)

Application
Transport (TCP/UDP)
Internet (IP)
Network Access

โœ… Checkpoint

How many layers does OSI have vs TCP/IP? (Answer: 7 vs 4)

6

Switches vs Routers

โฑ๏ธ 15 min โ€ข Lecture 1.3

๐Ÿ”Œ Switch

  • โ€ข Works at LAN/Link Layer
  • โ€ข Forwards based on MAC address
  • โ€ข Connects devices in same network

๐ŸŒ Router

  • โ€ข Works at IP/Network Layer
  • โ€ข Forwards based on IP address
  • โ€ข Connects different networks

๐ŸŽ‰ Module 1 Complete!

You've learned network history, terminology, packet switching, layer models, and device differences. Take the quiz!

CS334/534 Computer Networks โ€ข Dr. Ragib Hasan โ€ข UAB Computer Science โ€ข Spring 2026

Textbook: Dordal, An Introduction to Computer Networks (FREE)