Open In App

Last Minute Notes – Computer Networks

See Last Minute Notes on all subjects here

  1. OSI Model
  2. Physical Layer
  3. Data Link layer
  4. Network Layer
  5. Transport Layer
  6. Presentation & Session layer
  7. Application Layer

OSI Model

OSI stands for Open Systems Interconnection. It has been developed by ISO–  International Organization for Standardization, in the year 1984. It is a seven-layer architecture with each layer having specific functionality to perform. 



OSI Layers, Data Units, and Functions:

Layers Data Units Functions
Application Layer Data Mail Services, Directory Services, FTAM
Presentation Layer Data Encryption/Decryption, Compression
Session Layer Data Session Establishment, Synchronization, Dialog Controller
Transport Layer Segments, Datagram Segmentation
Network Layer Packets Traffic control, Fragmentation, Routing
Data Link Layer Frames Flow control, Error control, Access control
Physical Layer Bits Bit Synchronization, Bit rate control, Physical Topologies

Layers and their uses:

 

Physical Layer

Network Topologies: 



Transmission Modes: 

Manchester Encoding: When there is a long sequence of 0s and 1s, there is a problem at the receiving end. The problem is that the synchronization is lost due to a lack of transmissions.

Data Link Layer

 

Network Layer

Class Full Addressing Table

 

IPv4 header datagram

 

 IP version 6 Header Format:

 

Subnetting: Dividing a bigger network into a smaller network to maintain the security of the network is known as subnetting.

Supernetting: Multiple smaller networks are combined to form a bigger network. It is mainly used in router summarization, etc. 

VLSM: Variable Length Subnet Mask is where the subnet design uses more than one mask in the same network which means more than one mask is used for different subnets of a single class A, B, C, or a network. It is also defined as the process of subnetting a subnet. It is used to increase the usability of subnets as they can be of variable size. 

Internet Control Message Protocol: Since IP does not have an inbuilt mechanism for sending error and control messages. It depends on Internet Control Message Protocol(ICMP) to provide error control.

  1. Source quench message
  2. Parameter problem
  3. Time exceeded message
  4. Destination un-reachable

Difference between DVR and LSR:

 

Hop Count: Hop count is the number of routers between the source and destination network. The path with the lowest hop count is considered the best route to reach a network and therefore placed in the routing table. 

The maximum hop count allowed for RIP is 15 and a hop count of 16 is considered as network unreachable.

Open shortest path first (OSPF): Open the shortest path first (OSPF) is a link-state routing protocol that is used to find the best path between the source and the destination router using its own SPF algorithm.
Designated Router(DR) and Backup Designated Router(BDR) election takes place in the broadcast network or multi-access network.

Routing Information Protocol (RIP): RIP is a dynamic routing protocol that uses hop count as a routing metric to find the best path between the source and the destination network. It is a distance vector routing protocol that has an AD value of 120 and works on the application layer of the OSI model. RIP uses port number 520.

Transport Layer

TCP header

In TCP congestion control Algorithm

TCP 3-Way Handshake Process:

UDP header:

Session & Presentation Layer

Session Layer:

Presentation Layer:

Application Layer

Application Layer: It is the topmost layer of the OSI model and it directly interacts with web applications or application services. This layer provides several ways for manipulating the data (information) which actually enables any type of user to access the network with ease.

Functions of Application Layer: 

Domain Name Server: DNS is a hostname for IP address translation service. DNS is a distributed database implemented in a hierarchy of name servers. It is an application layer protocol for message exchange between clients and servers.

Protocols in Application Layer

Port number and transport mode used by Protocols:

Port Number TCP/UDP Protocol Name
20, 21 TCP File Transfer Protocol (FTP)
22 TCP and UDP Secure Shell (SSH)
23 TCP Telnet
25 TCP Simple Mail Transfer Protocol (SMTP)
53 TCP and UDP Domain Name Server (DNS)
67, 68 UDP Dynamic Host Configuration Protocol (DHCP)
69 UDP Trivial File Transfer Protocol (TFTP)
80 TCP HyperText Transfer Protocol (HTTP)
110 TCP Post Office Protocol (POP3)
119 TCP Network News Transport Protocol (NNTP)
123 UDP Network Time Protocol (NTP)
135-139 TCP and UDP NetBIOS
143 TCP and UDP Internet Message Access Protocol (IMAP4)
161, 162 TCP and UDP Simple Network Management Protocol (SNMP)
179 TCP Border Gateway Protocol (BGP)
389 TCP and UDP Lightweight Directory Access Protocol
443 TCP and UDP HTTP with Secure Sockets Layer (SSL)
500 UDP Internet Security Association and Key Management Protocol (ISAKMP) / Internet Key Exchange (IKE)
636 TCP and UDP Lightweight Directory Access Protocol over TLS/SSL (LDAPS
989/990 TCP FTP over TLS/SSL

Article Tags :