Netwoking concept for Devops

Netwoking concept for Devops

Β·

3 min read

  • Understand OSI & TCP/IP Models 🧩

The OSI (Open Systems Interconnection) and TCP/IP (Transmission Control Protocol/Internet Protocol) models are frameworks used to understand how data flows across networks.

  • OSI Model (7 Layers) πŸ“š

  1. Application Layer πŸ–₯️

    • Purpose: Provides network services directly to applications.

    • Example: HTTP/HTTPS (used for web browsing), FTP (file transfer), SMTP (email).

  2. Presentation Layer 🎨

    • Purpose: Translates data into a format the application can understand (e.g., encryption, compression).

    • Example: SSL/TLS (encryption for HTTPS).

  3. Session Layer 🀝

    • Purpose: Manages connections between devices.

    • Example: RPC (Remote Procedure Call).

  4. Transport Layer 🚚

    • Purpose: Ensures reliable data transfer between devices.

    • Example: TCP (reliable, connection-oriented), UDP (fast, connectionless).

  5. Network Layer 🌐

    • Purpose: Handles routing and forwarding of data packets.

    • Example: IP (Internet Protocol), ICMP (used by ping).

  6. Data Link Layer πŸ”—

    • Purpose: Manages data transfer between devices on the same network.

    • Example: Ethernet, MAC addresses.

  7. Physical Layer ⚑

    • Purpose: Transmits raw bits over a physical medium.

    • Example: Cables, switches, and hubs.

TCP/IP Model (4 Layers) πŸ“¦

  1. Application Layer πŸ–₯️

    • Combines OSI’s Application, Presentation, and Session layers.

    • Example: HTTP, DNS, SSH.

  2. Transport Layer 🚚

    • Same as OSI’s Transport Layer.

    • Example: TCP, UDP.

  3. Internet Layer 🌐

    • Same as OSI’s Network Layer.

    • Example: IP, ICMP.

  4. Network Access Layer πŸ”—

    • Combines OSI’s Data Link and Physical layers.

    • Example: Ethernet, Wi-Fi.

  • Protocols and Ports for DevOps πŸ”

  • In DevOps, understanding protocols and ports is crucial for configuring servers, deploying applications, and ensuring secure communication. we are using ports like Http 80,ssh 22, https 443, SMTP 25 in devops

AWS EC2 and Security Groups ☁️

AWS EC2 (Elastic Compute Cloud) is a popular service for launching virtual servers. Security Groups act as virtual firewalls to control inbound and outbound traffic to your EC2 instances

Security groups in AWS act like firewalls for EC2. You can set rules for inbound and outbound traffic on any ports you choose.

Hands-On with Networking Commands πŸ’»

Here’s a cheat sheet for essential networking commands every DevOps engineer should know:

CommandPurposeExample
pingCheck connectivity to a host.ping google.com
traceroute/tracertTrace the route packets take to a host.traceroute google.com
netstatDisplay network statistics and connections.`netstat -angrep LISTEN`
curlMake HTTP requests from the command line.curl -I https://google.com
dig/nslookupPerform DNS lookups.dig google.com

Conclusion 🎯

Understanding the OSI & TCP/IP models, mastering protocols and ports, configuring AWS EC2 Security Groups, and using networking commands are essential skills for anyone in DevOps or cloud engineering

Β