Computer Network Fundamentals
Computer Network Fundamentals
Course Summary
Based on Course Materials
Contents
2 Application Layer 5
2.1 Client-Server Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.2 Peer-to-Peer Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.3 HTTP Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.4 Web Caching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.5 DHCP Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.6 Email Protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.7 DNS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3 Transport Layer 7
3.1 Transport Layer Services . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2 Multiplexing and Demultiplexing . . . . . . . . . . . . . . . . . . . . . . 7
3.3 UDP Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.4 TCP Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.5 TCP Connection Management . . . . . . . . . . . . . . . . . . . . . . . . 8
3.6 Reliable Data Transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.7 Error Detection Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1
4 Network Layer: IP Addressing, Subnets & NAT 8
4.1 IP Addressing Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.2 IP Address Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.3 Subnetting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.4 CIDR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.5 IPv6 Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.6 NAT (Network Address Translation) . . . . . . . . . . . . . . . . . . . . 10
7 Physical Layer 14
7.1 Signal Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
7.2 Digital Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
7.3 Transmission Impairment . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
7.4 Signal Modulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
7.5 Transmission Media . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
7.6 Cable Types and Connections . . . . . . . . . . . . . . . . . . . . . . . . 15
7.7 Error Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2
1 Introduction to Computer Networks
1.1 Components of Data Communication
Data communication consists of five essential components:
• Sender
• Receiver
• Transmission media
• Message
• Protocol
• Links
• Interfaces
• Bus topology: Single cable works as a backbone, every device connects to that cable
3
1.5 Protocol Concept
Protocols define the format, order of messages, and actions taken on message transmission
and receipt. They govern all communication activities in networks.
4
1.10 Addressing
Four levels of addresses used in TCP/IP networks:
2 Application Layer
2.1 Client-Server Architecture
Features of the client-server model:
• Clients: Contact and communicate with server, may have dynamic IP addresses
• No always-on server
5
2.3 HTTP Protocol
HTTP (Hypertext Transfer Protocol) features:
• Client/server model
• Stateless protocol
• Can provide additional information (router address, DNS server, network mask)
6
2.7 DNS
Domain Name System:
3 Transport Layer
3.1 Transport Layer Services
The transport layer:
7
3.4 TCP Protocol
Transmission Control Protocol features:
• Connection-oriented with handshaking
• Reliable, in-order byte stream delivery
• Flow controlled to prevent overwhelming receiver
• Full-duplex data transfer
• Includes congestion control
8
4.2 IP Address Classes
Traditional classful addressing:
4.3 Subnetting
Subnet concepts:
4.4 CIDR
Classless Inter-Domain Routing:
• 128-bit addresses
• No fragmentation/reassembly
9
4.6 NAT (Network Address Translation)
NAT operation:
• Translates (source IP, port) to (NAT IP, new port) for outgoing traffic
• When multiple entries match a destination address, use entry with longest matching
prefix
10
5.4 Routing Algorithms
Two main approaches:
11
5.8 ICMP Protocol
Internet Control Message Protocol:
• Channel Partitioning
• Random Access
• Taking Turns
– Polling
– Token passing
12
6.3 MAC Addressing
Media Access Control addressing:
• Administered by IEEE
6.5 Ethernet
Ethernet technologies:
6.6 Switches
Ethernet switch operation:
13
6.7 VLANs
Virtual Local Area Networks:
• Types: Default VLAN, Data VLAN, Native VLAN, Management VLAN, Voice
VLAN
7 Physical Layer
7.1 Signal Types
Basic signal classifications:
14
7.5 Transmission Media
Types of media for signal transmission:
• Guided Media
• Unguided Media
15