Rakesh Jain Profile picture
Sep 23, 2021 β€’ 17 tweets β€’ 7 min read β€’ Read on X
Networking Basics!

How communication happens?
What are 7 OSI Layers?

#Linux #networking #basics #osi #DevOps

A thread πŸ‘‡
What Is the OSI Model?

The Open Systems Interconnection (OSI) model describes seven layers that computer systems use to communicate over a network. Image
Layer 1: Physical Layer

It represents the electrical and physical representation of the data connection / system.

When a networking problem occurs, many networking pros go right to the physical layer to check that all of the cables are properly connected. Image
It is responsible for the actual physical connection between the devices. The physical layer contains information in the form of bits. Image
Layer 2: Data Link Layer

The data link layer is responsible for the node to node delivery of the message. The main function of this layer is to make sure data transfer is error-free from one node to another, over the physical layer. Image
It is IP address understandable layer, which helps you to define logical addressing so that any endpoint should be identified.

The layer also helps you implement routing of packets through a network. Image
Layer 3: Network Layer

Network layer works for the transmission of data from one host to the other located in different networks. It also takes care of packet routing.

The sender & receiver’s IP address are placed in the header by the network layer. Image
Layer-management protocols that belong to the network layer are:

1. Routing protocols
2. multicast group management
3. network-layer address assignment

Segment in Network layer is referred as Packet. Image
Layer 4: Transport Layer

The Transport Layer deals with the coordination of the data transfer between end systems and hosts. How much data to send, at what rate, where it goes, etc.

The data in the transport layer is referred to as Segments. Image
Two examples of the Transport Layer are the UDP (User Datagram Protocol) and TCP (Transmission Control Protocol) that is build on top of the Internet Protocol (IP model), which work at layer 3. Image
Layer 5: Session Layer

This layer is responsible for establishment of connection, maintenance of sessions, authentication and also ensures security. Image
Important function of Session Layer:

1. It establishes, maintains, and ends a session.
2. Session layer enables two systems to enter into a dialog
3. It also allows a process to add a checkpoint to steam of data. Image
Layer 6: Presentation Layer

The presentation layer is responsible for ensuring that the data is understandable for the end system or useful for later stages. It translates or formats data based on the application’s syntax or semantics. Image
The functions of the presentation layer are :

1. Translation : For example, ASCII to EBCDIC.

2. Encryption/ Decryption : Data encryption translates the data into another form or code.

3. Compression: Reduces the number of bits that need to be transmitted on the network. Image
Layer 7: Application Layer

At this layer the user directly interacts with a software application, so it is closest to the end user. When the user wants to transmit files or pictures, this layer interacts with the application communicating with the nw.
Examples: Web Browsers Image
The functions of the Application layer are :

1. Network Virtual Terminal
2. FTAM-File transfer access and management
3. Mail Services
4. Directory Services

Some common protocols include:

1. POP3 or SMTP for emails
2. FTP for emails
3. Telnet for controlling remote devices Image
Retweet the thread if it's useful.

β€’ β€’ β€’

Missing some Tweet in this thread? You can try to force a refresh
γ€€

Keep Current with Rakesh Jain

Rakesh Jain Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @devops_tech

Aug 9
Top 20 Linux networking commands explained with examples!

A Thread πŸ‘‡ Image
1⃣ ifconfig: Displays network interface configuration.

For example,
ifconfig eth0

shows the configuration details of the Ethernet interface. #LinuxNetworkingExample
2⃣ ip: Versatile command to manage network interfaces, addresses, and routes.

For instance,
ip addr show

displays IP addresses assigned to all interfaces. #LinuxNetworkingExample
Read 23 tweets
Aug 7
Understanding sudo, su, su - and sudo su !

A Thread with examples πŸ‘‡ Image
1/8 🐦 Welcome to today's thread!

Let's dive into the world of user privileges on Linux systems. We'll explore the differences between sudo, su, and sudo su.

#Linux #UserPrivileges
2/8 🐦 First up, sudo!

sudo stands for "Superuser Do." It allows regular users to perform administrative tasks by temporarily gaining root (superuser) privileges. Just add "sudo" before a cmd to execute it with elevated privileges. eg: sudo apt-get update updates packages.
Read 23 tweets
Aug 5
Load Balancer vs Reverse Proxy vs API Gateway

A Thread 🧡 Image
1/ πŸ’‘ Let's dive into the world of networking and infrastructure components: Load Balancer, Reverse Proxy, and API Gateway.

They play distinct roles in managing web traffic.
2/ πŸ”„ Reverse Proxy:
A reverse proxy is like a middleman between clients and servers. It handles requests on behalf of servers, often providing benefits like security, load balancing, and caching.

Example: Nginx, Apache.
Read 26 tweets
Jul 25
All possible reasons a Kubernetes Pod can go into CrashLoopBackOff πŸ§΅πŸ‘‡ PS: https://sysdig.com/wp-content/uploads/What-is-Crashloopbackoff-01.png
1/🧡 What causes a Kubernetes Pod to go into CrashLoopBackOff?
Here’s a deep-dive thread on ALL the possible reasons and how to fix them. πŸš‘πŸ³
#Kubernetes #DevOps #CrashLoopBackOff
2/ Container Exit Code != 0
Your container crashed due to an error in the app.

πŸ› οΈ Fix: Check logs with kubectl logs <pod> and fix code/config causing the error.
Read 36 tweets
Jun 30
🧡 10 Things Every DevSecOps Engineer Must Know About Kubernetes Security β€” with real examples πŸ‘‡ Image
1/
πŸ” RBAC > cluster-admin
Grant access based on roles, not titles.
βœ… Example: Allow devs to view pods only: Image
2/
πŸ•΅οΈ Enable Audit Logs
Track who deleted a service or changed a config.

βœ… Example: Enable auditing via kube-apiserver:
--audit-log-path=/var/log/k8s-audit.log
Read 18 tweets
May 5
🧡 Kubernetes Troubleshooting Series:

Scenario: Pod stuck in ImagePullBackOff or ErrImagePull?

Here’s a step-by-step thread to troubleshoot and fix it like a pro. πŸ’‘

#Kubernetes #DevOps #Containers Image
1/ Why does this happen?

When a pod can’t pull the container image, it may get stuck in ImagePullBackOff or ErrImagePull.

This commonly occurs due to:
- Private Docker registries 🏰
- Wrong image names/tags ❌
- Expired or missing imagePullSecrets πŸ”
2/ Step 1 – Inspect Pod Events

Run:
kubectl describe pod <pod-name>

Check the Events section. Look for errors like:
- pull access denied
- manifest not found
- rpc error from daemon

These reveal the root cause.
Read 13 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(