Home Python C Language C ++ HTML 5 CSS Javascript Java Kotlin SQL DJango Bootstrap React.js R C# PHP ASP.Net Numpy Dart Pandas Digital Marketing

CS Networking Basics


Cyber Security Networking Basics


Protocols and networking are foundational concepts in computer science and information technology. Protocols refer to a set of rules or standards that govern how data is transmitted and communicated between devices on a network. Networking, on the other hand, involves the design, implementation, and management of networks that facilitate this communication.


The OSI Model

The OSI (Open Systems Interconnection) model is a conceptual framework that standardizes the functions of a communication system into seven layers. Each layer has specific responsibilities in handling data as it travels across a network. Here's an overview of the OSI model and its layers:


Layer What it does
7 - Application Where humans process data and information
6 - Presentation Ensures data is in a usable format
5 - Session Capable of maintaining connections
4 - Transport Data is forwarded to a service capable of handling requests
3 - Network Layer Responsible for which path packets should travel on a network
2 - Data Link Responsible for which physical devices packets should go to
1 - Physical The physical infrastructure to transport data

The top 3 layers are typically implemented in software within the Operating System:


Layer Where it is implemented
7 - Application Software
6 - Presentation Software
5 - Session Software

The bottom 3 layers are typically implemented in hardware within devices on the network, e.g. Switches, Routers and Firewalls:


Layer Where it is implemented
3 - Network Layer hardware
2 - Data Link hardware
1 - Physical Layer hardware

Layer 4, the Transport layer, connects the software with the hardware layers.

SDN ("Software Defined Networking") is technology which allows more layers of the hardware to be implemented via software.



Layer 7 - Application Layer

Layer 7 of the OSI model is the Application Layer. This layer is responsible for providing network services directly to end-users and applications. It enables communication between software applications and the network. Functions of the Application Layer include:


  1. Data Representation and Encryption: It handles the conversion of data formats between the application and network layers, including data encryption and decryption for secure communication.
  2. Application Services: This layer provides various network services such as email, file transfer, remote access, directory services, and network management.
  3. User Interface: The Application Layer provides interfaces for users to interact with applications, including GUIs (Graphical User Interfaces) and command-line interfaces.
  4. Protocols: It defines protocols specific to application-level communication, such as HTTP for web browsing, SMTP for email, FTP for file transfer, and DNS for domain name resolution.
  5. Data Storage and Retrieval: Some application layer protocols and services involve data storage and retrieval mechanisms, such as databases accessed over a network.

Layer 6 - Presentation Layer

Typically an unseen layer, but is responsible of adapting, transforming and translating data. This is to ensure the application and layers beneath can understand one another.



Layer 5 - Session Layer

This layer's responsibility is handling connections between the application and the layers below. It involves establishing, maintaining and terminating connections, otherwise referred to as sessions.

Common protocols which represent the Session Layer well are:




Layer 4 - Transport


The layer which allows applications to be represented on the network.

Some well known applications on this layer:




Layer 3 - Network

A layer responsible of routing packets between networks via routers.

On this layer, the following protocols reside:




Layer 2 - Link

Link networks, as the name implies, consist of protocols designed to send packets through the actual links (physical connections) that network nodes are connected to. A simpler way of thinking of it is that the Link Layer is responsible for moving data from physical over to logical (to the network layer).

Protocols on this layer include:




Layer 1 - Physical

Physical layer represents the signaling which allows bits and bytes to transfer between a physical medium. It can be transferred via radio or signals over a cable, using electrical signals or light, for example fiber.

Examples of the Physical Layer protocols includes:



Advertisement





Q3 Schools : India


Online Complier

HTML 5

Python

java

C++

C

JavaScript

Website Development

HTML

CSS

JavaScript

Python

SQL

Campus Learning

C

C#

java