TCP_IP Protocol and Networking - CDACC Study Notes
TCP_IP Protocol and Networking - CDACC Study Notes
Table of Contents
1. Introduction to Networking
2. OSI Model vs TCP/IP Model
9. Routing Protocols
Introduction to Networking
Types of Networks
1. Personal Area Network (PAN): Very short range (1-10 meters)
1. Physical Layer
Transmission of raw bits over physical medium
Defines electrical, mechanical, and procedural specifications
3. Network Layer
Routing and logical addressing
4. Transport Layer
End-to-end communication and reliability
5. Session Layer
Managing sessions between applications
6. Presentation Layer
Data translation, encryption, compression
Format conversion
7. Application Layer
Network services to applications
User interface
Examples: HTTP, FTP, SMTP, DNS
2. Internet Layer
Corresponds to OSI Network layer
3. Transport Layer
Same as OSI Transport layer
End-to-end communication
4. Application Layer
Combines OSI Session, Presentation, and Application layers
Key Characteristics
Open Standard: Not proprietary to any vendor
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Version| IHL |Type of Service| Total Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Identification |Flags| Fragment Offset |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Time to Live | Protocol | Header Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Source Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Destination Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
IPv4 Addressing
TCP Characteristics
Connection-Oriented: Establishes connection before data transfer
Reliable: Guarantees delivery and order
UDP Characteristics
Connectionless: No connection establishment
0 7 8 15 16 23 24 31
+--------+--------+--------+--------+
| Source | Destination |
| Port | Port |
+--------+--------+--------+--------+
| | |
| Length | Checksum |
+--------+--------+--------+--------+
Status Codes: 200 (OK), 404 (Not Found), 500 (Server Error)
File Transfer Protocol (FTP)
Purpose: File transfer between hosts
Port: 53
Record Types: A, AAAA, MX, CNAME, NS, PTR
Class B: 172.16.0.0/12
Class C: 192.168.0.0/16
Subnetting
Subnetting divides a network into smaller subnetworks.
Subnet Mask
Subnetting Example
Network: 192.168.1.0/24
Routing Protocols
Routing Fundamentals
Static Routing: Manually configured routes
Network Security
Security Threats
Eavesdropping: Unauthorized interception of data
Security Measures
Firewalls
Encryption
Authentication
Additional Resources
HTTPS: 443
FTP: 20, 21
SSH: 22
Telnet: 23
SMTP: 25
DNS: 53
DHCP: 67, 68
POP3: 110
IMAP: 143
This comprehensive guide covers all essential TCP/IP and networking concepts required for the CDACC
syllabus. Focus on understanding the relationships between protocols and their practical applications in real
networks.