Computer Networks


๐ŸŒ COMPUTER NETWORKS โ€“ DETAILED NOTES


๐Ÿง  1. Introduction to Computer Networks

๐Ÿ”น Definition

computer network is a collection of interconnected computers that share resources and data using communication channels.

๐Ÿ”น Goals of Networking

  • Resource sharingย (hardware/software)
  • Communicationย (email, chat)
  • Data sharing
  • Backup and reliability
  • Scalability

โš™๏ธ 2. Types of Computer Networks

TypeCoverage AreaExample
PAN (Personal Area Network)Within a few metersBluetooth, Hotspot
LAN (Local Area Network)Within a building/campusOffice network
MAN (Metropolitan Area Network)Within a cityCable TV network
WAN (Wide Area Network)Across countriesInternet
WLAN (Wireless LAN)Wireless version of LANWi-Fi
SAN (Storage Area Network)High-speed data storageData centers

๐Ÿ”— 3. Network Topologies

๐Ÿ”น Definition

Network topology defines the physical or logical arrangement of devices in a network.

TypeDescriptionAdvantagesDisadvantages
BusSingle backbone cableEasy to installDifficult fault detection
StarCentral hub connects all nodesEasy to manageHub failure breaks network
RingEach node connects to next forming a circlePredictable data flowOne node failure affects all
MeshEvery node connects to every otherReliable, fault-tolerantExpensive
TreeHierarchical structureEasy to expandRoot failure affects all
HybridMix of topologiesFlexibleComplex

๐Ÿงฎ 4. Network Devices

DeviceFunction
HubBroadcasts data to all devices (Layer 1).
SwitchForwards data to specific device (Layer 2).
RouterConnects different networks (Layer 3).
BridgeConnects two LAN segments.
GatewayConverts data between protocols (Layer 7).
ModemConverts digital โ†” analog signals.
RepeaterRegenerates weak signals.
Access PointEnables wireless connectivity.
FirewallMonitors & filters traffic for security.

๐Ÿงฉ 5. Network Models

๐Ÿ”น A. OSI Model (Open Systems Interconnection)

Developed by ISO โ€” defines 7 layers of network communication.

Layer No.NameFunctionDevices/Protocols
7ApplicationNetwork services to userHTTP, FTP, SMTP
6PresentationData translation, encryptionSSL, JPEG, ASCII
5SessionManage sessions between devicesNetBIOS, RPC
4TransportReliable data deliveryTCP, UDP
3NetworkLogical addressing & routingIP, ICMP, Router
2Data LinkError detection, framingSwitch, Ethernet, PPP
1PhysicalTransmission of bitsCables, Hubs

๐Ÿ”น Mnemonic:

๐Ÿ‘‰ All People Seem To Need Data Processing


๐Ÿ”น B. TCP/IP Model

LayerDescriptionExample Protocols
ApplicationUser interactionHTTP, FTP, DNS
TransportEnd-to-end connectionTCP, UDP
InternetLogical addressing & routingIP, ICMP
Network AccessPhysical transmissionEthernet, Wi-Fi

๐Ÿ”น Comparison (OSI vs TCP/IP)

OSITCP/IP
7 layers4 layers
Theoretical modelPractical model
Strictly definedFlexible
Developed by ISODeveloped by DoD (U.S.)

๐Ÿง  6. Transmission Media

๐Ÿ”น A. Guided Media (Wired)

TypeDescriptionBandwidthExample
Twisted Pair CableTwo wires twisted to reduce interferenceLowTelephone, LAN
Coaxial CableCentral copper core with insulationMediumCable TV
Optical FiberUses light signalsVery HighBackbone networks

๐Ÿ”น B. Unguided Media (Wireless)

TypeExampleRange
Radio WavesWi-Fi, BluetoothShort to medium
MicrowavesCellular networksLong
InfraredRemote controlsShort
Satellite CommunicationGPS, TV broadcastingGlobal

๐Ÿ“ก 7. Network Protocols

ProtocolPurposeLayer
HTTP/HTTPSWeb accessApplication
FTP/SFTPFile transferApplication
SMTP/POP3/IMAPEmailApplication
DNSDomain name resolutionApplication
DHCPDynamic IP allocationApplication
ARPMaps IP to MACData Link
ICMPError reporting (ping)Network
IP (IPv4/IPv6)Logical addressingNetwork
TCPReliable, connection-orientedTransport
UDPFast, connectionlessTransport

๐Ÿงฎ 8. Switching Techniques

TypeDescriptionExample
Circuit SwitchingDedicated path for entire sessionTelephone
Packet SwitchingData divided into packetsInternet
Message SwitchingEntire message stored then forwardedTelegraph

๐Ÿง  9. Transmission Modes

ModeDescriptionExample
SimplexOne-way communicationMonitor
Half DuplexBoth ways, one at a timeWalkie-talkie
Full DuplexBoth directions simultaneouslyTelephone

๐Ÿ“ถ 10. IP Addressing

๐Ÿ”น IPv4

  • 32-bit address (e.g., 192.168.1.1)
  • Represented inย dotted decimalย format
  • Classes:
ClassRangeDefault MaskUse
A0โ€“127255.0.0.0Large networks
B128โ€“191255.255.0.0Medium networks
C192โ€“223255.255.255.0Small networks
D224โ€“239Multicasting
E240โ€“255Experimental

๐Ÿ”น IPv6

  • 128-bit address (e.g., 2001:0db8::1)
  • Supports huge address space
  • Includes built-in security & QoS

๐Ÿงฉ 11. Routing

๐Ÿ”น Definition

Routing is the process of selecting best path for data transmission in a network.

๐Ÿ”น Types of Routing

TypeDescription
Static RoutingFixed manually by admin
Dynamic RoutingRouters update routes automatically
Default RoutingAll unknown packets go to default router

๐Ÿ”น Routing Algorithms

AlgorithmTypeExample
Distance VectorBased on distance (hop count)RIP
Link StateUses complete network topologyOSPF
HybridCombines bothEIGRP

๐Ÿงฎ 12. Error Detection and Correction

MethodDescription
Parity BitAdds extra bit to detect errors
ChecksumSummation of data blocks
CRC (Cyclic Redundancy Check)Polynomial-based error detection
Hamming CodeDetects & corrects single-bit errors

๐Ÿ” 13. Network Security

๐Ÿ”น Security Goals

  1. Confidentialityย โ€“ Prevent unauthorized access
  2. Integrityย โ€“ Data not altered
  3. Availabilityย โ€“ Services always available

๐Ÿ”น Common Attacks

AttackDescription
PhishingFraudulent emails/websites
DoS / DDoSOverloading systems to crash
SpoofingFaking IP or identity
SniffingIntercepting data packets
Malware / Trojan / WormsMalicious software

๐Ÿ”น Security Mechanisms

  • Encryption (AES, RSA)
  • Authentication (Username/Password, OTP)
  • Firewalls & Intrusion Detection Systems (IDS)
  • VPN (Virtual Private Network)

๐Ÿงฉ 14. Cryptography Basics

TermMeaning
PlaintextOriginal message
CiphertextEncrypted message
EncryptionConverting plaintext โ†’ ciphertext
DecryptionCiphertext โ†’ plaintext
KeySecret used in encryption/decryption

๐Ÿ”น Types

TypeDescriptionExample
SymmetricSame key used for bothAES, DES
AsymmetricPublic & private keysRSA
HashingOne-way encryptionSHA, MD5

๐Ÿ“‚ 15. Network Layers in TCP/IP Stack

LayerProtocolRole
ApplicationHTTP, DNS, FTPUser interaction
TransportTCP, UDPData delivery
InternetIP, ICMPRouting
Network AccessEthernet, Wi-FiData transmission

๐Ÿงฎ 16. Network Address Translation (NAT)

๐Ÿ”น Definition

Technique used to map private IPs to public IPs for internet access.

๐Ÿ”น Types

TypeDescription
Static NATOne-to-one mapping
Dynamic NATMany-to-many mapping
PAT (Port Address Translation)Many-to-one mapping (home routers)

๐Ÿงฑ 17. Domain Name System (DNS)

๐Ÿ”น Purpose

Converts domain names to IP addresses.
e.g., www.google.com โ†’ 142.250.196.36

๐Ÿ”น Hierarchy

Root โ†’ TLD (.com, .org) โ†’ Domain โ†’ Subdomain


๐Ÿ’ก 18. Network Performance Metrics

MetricMeaning
BandwidthData rate (bits/sec)
LatencyDelay in transmission
ThroughputActual data transmitted/sec
JitterVariation in delay
Packet LossLost packets during transmission

๐Ÿงญ 19. Wireless Networking

TechnologyDescription
Wi-Fi (IEEE 802.11)Wireless LAN
Bluetooth (IEEE 802.15)Short-range PAN
WiMAX (IEEE 802.16)Long-range wireless broadband
4G/5GMobile communication
NFCContactless payment tech

๐Ÿš€ 20. Emerging Networking Technologies

  • IoT (Internet of Things)ย โ€“ Connecting smart devices
  • SDN (Software-Defined Networking)ย โ€“ Centralized network control
  • Cloud Networkingย โ€“ Virtualized networks in cloud
  • Edge Computingย โ€“ Data processing near source
  • 6G Networks (Future)ย โ€“ High-speed, AI-driven communication

โœ… 21. Summary Table

ConceptKey Point
NetworkInterconnected devices
TopologyPhysical arrangement
ProtocolCommunication rules
OSI Model7 layers
TCP/IP4 layers
IP AddressLogical identifier
SwitchingPath selection
RoutingFinding best route
Error ControlCRC, Hamming
SecurityEncryption, Firewall
Wireless

Leave a Comment

Your email address will not be published. Required fields are marked *