Computer Networks

CP - Complete Notes
Computer Networks

Table of Contents

Table of Contents 1

Network Theory 3

Data Communication 3

Networks 3

OSI Model 5

Physical Layer 5

Data Link Layer 7

Network Layer 8

Transport layer 8

Session Layer 8

Presentation Layer 9

Application Layer 9

Encapsulation 9

TCP/IP 11

Definition 11

Benefits of Layering (MIFTS) 11

TCP/IP Layers 12

TCP/IP Network Layer 13

Modes of Data Transfer 13

Protocol 14

Internet Protocol (IP) 14

IPv4 Address 15

Types of Addresses 16

Classful Addressing Scheme 17

Finding Network Address 17

IPv6 Address 18

Address Resolution Protocol (ARP) 19

Network Address Translation (NAT) 19

Classless Inter-Domain Relationship (CIDR) 19

Network Devices 20

Checksum 21

TCP/IP Transport Layer 23

Purpose 23

Protocols 23

Sockets 29

Types of Architecture 30

Client-Server Architecture 30

Peer-to-Peer Architecture 32

TCP/IP Application Layer 33

Dynamic Host Configuration Protocol (DHCP) 33

Domain Name System (DNS) 34

Hyper Text Transfer Protocol (HTTP) 35

Simple Mail Transfer Protocol (SMTP) 35

Post Office Protocol v3 (POP3) 36

Internet Message Access Protocol v4 (IMAP4) 36

File Transfer Protocol (FTP) 36

Sockets 37

Basics 37

Identification (IP + Port) 37

Client vs Server 37

Data Transmission 38

Receiving Data 38

Socket Methods (Core) 38

Blocking Behavior 38

Server Types 39

Protocol Design 39

Templates 40

Web Applications 41

HTML 41

Jinja 45

Flask 47

Network Security 50

Encryption 50

Authentication 51

Malware 51

Web Applications 54

Web and Native Applications 54

HTTP 55