



















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Good cheat sheet to read and oractice
Typology: Cheat Sheet
1 / 27
This page cannot be seen from the preview
Don't miss anything!




















Created by Lalit Tembhare Created time 15 - 11 - 24 Tags Networking
When two or more computers and computing devices connected together with each other through communication channels, such as cables or wireless media and sharing some files, then it is called a Network. A network is used to: Allow the connected devices to communicate with each other. Enable multiple users to share devices over the network, such as music and video servers, printers and scanners. The Internet is the largest network in the world and can be called "the network of networks".
There are different types of networks. But the main two are LAN and WAN
What is Protocol? A network protocol is a set of rules which is set up by people that determine how a particular data is transmitted between different devices in the same network. e.g.: HTTP, TCP, IP, FTP, SMTP etc.
192.168.x.x 172.31.x.x
There is an organization called IANA (Internet Assigned Numbers Authority) who divides the IP address into different classes. You have to know about binary to decimal conversion to understand this. IPv4 addresses are divided into five classes based on the starting number, which determines their usage in networks. Class Range Purpose A 1.0.0.0 - 126.0.0.0 Large networks, like big organizations. B 128.0.0.0 - 191.255.0.0 Medium-sized networks. C 192.0.0.0 - 223.255.255. Small networks, like home or business LANs. 10.x.x.x 172.16.x.x
D 224.0.0.0 - 239.255.255. Reserved for multicasting. E 240.0.0.0 - 255.255.255. Experimental, used for research. Note: Class A addresses in IPv4 officially start from 1.0.0.0 and go up to 126.0.0.0. The address 0.0.0.0 is not part of the Class A range and has a special purpose in networking. 0.0.0.0 is a special address, not part of the usable IP address range in Class A. The 127.0.0.0 to 127.255.255.255 range, especially 127.0.0.1 , is reserved for loopback addresses in IPv4.
| Class C | 1st, 2nd & 3rd | 4th Octet | | Example: 192.168.1.1| (1) +---------------------+---------------------+----------------- Device Connection Scenario:
Subnetting: Divides a network into smaller, more manageable segments. Example: A network with IP address 192.168.1.0/24 can be divided into subnets like 192.168.1.0/25 and 192.168.1.128/25.
Given network: 192.168.1.0/ 192.168.1.0/24 is a Class C network. /24 indicates a subnet mask of 255.255.255.0 , meaning there are 8 bits for hosts (32 total bits in IPv4 - 24 bits for the network portion 8 bits for hosts). 192.168.1.0/24 provides 256 IP addresses (from 192.168.1.0 to 192.168.1.255).
To divide this into two equal subnets, we can use /25 subnet masks, which allocate 7 bits for hosts (32 - 25 7 bits for hosts).
Subnet Range Subnet Mask Total IPs Usable Host IPs 192.168.1.0/ 192.168.1.0 - 192.168.1. 255.255.255.128 128 126
/0 0.0.0.0 4,294,967,296 Class A* 0.0.0.0/ means entire internet. Often used in public firewall rules Network Models There are mainly two types of network model -
The OSI (Open Systems Interconnection) Model is a set of rules that explains how different computer systems communicate over a network. OSI Model was developed by the International Organization for Standardization (ISO). The OSI Model consists of 7 layers and each layer has specific functions and responsibilities.
Hereʼs a text-based structural diagram that shows the flow through the OSI model from Person X to Person Y : START: Person X Sends a Message │ ├── Application Layer (Layer 7) │ └── Prepare message using messaging app protocol (e.g., SM │ ├── Presentation Layer (Layer 6) │ └── Encode/Encrypt the message into a suitable format. │ ├── Session Layer (Layer 5) │ └── Establish a session with Person Y’s device through the │ ├── Transport Layer (Layer 4) │ └── Break the message into segments and add TCP/UDP header │ ├── Network Layer (Layer 3) │ └── Add source and destination IP addresses for routing. │ ├── Data Link Layer (Layer 2) │ └── Convert segments to frames and add MAC addresses for d │ ├── Physical Layer (Layer 1) │ └── Convert frames into bits (0s and 1s) for transmission. │ └── Transmit through Physical Medium (e.g., Ethernet/Wi-Fi) to │ ├── Person Y Receives Message │ ├── Physical Layer (Layer 1) │ └── Receive bits and reassemble into frames. │ ├── Data Link Layer (Layer 2) │ └── Verify and process frames with MAC addresses. │ ├── Network Layer (Layer 3)
The infographic below summarizes the seven layers of the OSI reference model.
Ethernet : Defines physical addressing and channel access. PPP : Used for point-to-point connections. HDLC : For framing and error control on point-to-point links. ARP : Resolves IP addresses to MAC addresses.
Ethernet (Physical signaling) : Specifies electrical signals, cabling, etc. USB : Used to physically connect devices.
Application Layer (Layer 7) contains the most recognizable protocols with specific port numbers for communication (e.g., HTTP - Port 80 , HTTPS - Port 443 , SMTP - Port 25 ). Layers 2 to 6 typically deal with specific network management functions and do not use port numbers as these layers are responsible for connections and managing data formats. Port numbers are used primarily in the Application and Transport Layers to ensure data is delivered to the correct services and applications running on a computer.
2. TCP/IP Model: The TCP/IP model , also known as the Internet Protocol Suite , is a simplified version of the OSI model with only 4 layers instead of 7. This model is a real model which actually works in real. This model consists of 4 layers. 1. Application Layer = (Application Layer + Presentation Layer + Session Layer) of OSI model 2. Transport Layer 3. Network Layer
amazon.com 403 Forbidden The client does not have enough permission to access the content. 404 Not Found The server canʼt find the requested resource. 408 Request Timeout The response was sent to an idle connection, and the server wants to terminate it. 500 Internal Server Error The server does not know how to handle a request. 502 Bad Gateway The server you are trying to access is a gateway or a reverse proxy (it sits between the client and an actual server that serves the page). You get this error when the gateway gets an incorrect response from a source server. 503 Service Unavailable The server canʼt process the request. This usually happens when a server is down or overloaded. 504 Gateway timeout Similar to 502, the gateway canʼt get a response in time. Find the complete list of status codes with detailed explanations by Mr. Abhishek Veeramalla (Thank you!): iam-veeramalla/http-status-codes: Repo to demonstrate HTTP status codes I have said that HTTP is a stateless protocol, means it never store any data of client in server. Then suppose when you will search for the second time then it should be logged out from the server, and you have to log in again for second time visit, but you don't. In second time, it's automatically
it is possible?? Here, cookies come into the picture.
POP is used to download any email from POP server