[go: up one dir, main page]

0% found this document useful (0 votes)
124 views5 pages

Networking Fundamentals for DevOps

Uploaded by

rvemula818
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
124 views5 pages

Networking Fundamentals for DevOps

Uploaded by

rvemula818
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Networking for DevOps - Detailed Explanation

### Basic Concepts

1. **What is a Network?**
A network connects two or more devices to communicate and share
resources like files, printers, or internet access. Networks can be
wired (Ethernet) or wireless (Wi-Fi).
- **Example**: In an office, employees' computers are connected to
a local network that allows file sharing and internet access.

2. **Types of Networks:**
- **LAN (Local Area Network)**: Small-scale network, typically used
in homes, offices, or schools.
**Example**: Office computers connected via Ethernet cables.
- **WAN (Wide Area Network)**: Connects devices over large
distances, often using leased telecommunication lines.
**Example**: The Internet is the largest WAN.
- **MAN (Metropolitan Area Network)**: Covers a city or
metropolitan area.
**Example**: City-wide Wi-Fi networks.
- **SONET (Synchronous Optical Network)**: High-speed network
for transmitting data over optical fiber, often used for undersea
communication.
**Example**: Fiber-optic cables connecting continents.
3. **Network Components:**
- **Switch**: Connects devices within a network and forwards data
only to the intended recipient.
- **Router**: Connects different networks and decides the best path
for data transmission.
- **Modem**: Converts digital signals for transmission over phone
lines.
- **Hub**: Basic device that broadcasts data to all connected
devices, irrespective of the recipient. Less efficient than a switch.
- **NIC (Network Interface Card)**: Hardware enabling devices to
connect to a network. Integrated into most modern devices.
**Example**: A Wi-Fi adapter in a laptop.

4. **IP Addressing:**
- **IPv4**: A 32-bit address (e.g., `[Link]`) limited to 4.3 billion
addresses.
- **IPv6**: A 128-bit address (e.g., `[Link]`) offering
a vast number of addresses.
- **Public vs. Private IPs**:
- **Public IP**: Globally unique, used to access the internet.
- **Private IP**: Used within internal networks (`192.168.x.x` or
`10.x.x.x`).
- **Static vs. Dynamic IPs**:
- **Static**: Manually assigned and do not change.
- **Dynamic**: Automatically assigned by DHCP and may change
periodically.
### Intermediate Topics

1. **Subnetting:**
- Dividing a large network into smaller, manageable sub-networks.
- **Example**: A `[Link]/24` network can be split into two
subnets:
- Subnet 1: `[Link]/25` (supports 126 hosts)
- Subnet 2: `[Link]/25` (supports 126 hosts).

2. **Protocols:**
- **HTTP**: Protocol for web browsing.
**Example**: Accessing `[Link]` uses HTTP or HTTPS.
- **FTP**: Protocol for transferring files.
**Example**: Uploading files to a web server.
- **TCP/IP**: Core internet protocols for reliable communication.
**Example**: Ensures emails are sent without errors.

3. **OSI & TCP/IP Models:**


- **OSI Model**: Standardized 7-layer model explaining network
communication:
1. Physical Layer (e.g., cables, signals).
2. Data Link Layer (e.g., Ethernet, Wi-Fi).
3. Network Layer (e.g., IP addressing, routing).
4. Transport Layer (e.g., TCP, UDP).
5. Session Layer (e.g., managing sessions between devices).
6. Presentation Layer (e.g., encryption, compression).
7. Application Layer (e.g., HTTP, FTP).
- **TCP/IP Model**: Simplified 4-layer model used in real-world
applications:
- Link, Internet, Transport, Application.

### Advanced Topics

1. **CIDR (Classless Inter-Domain Routing):**


- Efficient method for IP allocation by removing fixed class rules.
- **Example**: Instead of reserving a whole `[Link]/24` network
(256 IPs), CIDR allows assigning smaller blocks like `[Link]/26`
(64 IPs).

2. **DNS (Domain Name System):**


- Translates domain names into IP addresses.
- **Example**: Typing `[Link]` resolves to an IP like
`[Link]`.
- **Process**:
1. User types the domain name.
2. DNS server looks up the IP address.
3. Browser connects to the server using the resolved IP.

3. **Networking Tools:**
- **Ping**: Tests connectivity between devices.
**Command**: `ping [Link]`.
- **Traceroute**: Tracks the path data takes to reach its destination.

**Command**: `traceroute [Link]`.


- **Telnet**: Connects to remote devices on specific ports for
testing.
**Command**: `telnet [Link] 80`.
- **Curl**: Interacts with servers using HTTP/HTTPS.
**Command**: `curl [Link]
- **Netstat**: Displays active network connections.
**Command**: `netstat -a`.
- **Nmap**: Scans networks to discover hosts, services, and open
ports.
**Command**: `nmap -A [Link]`.

4. **Routing:**
- Determines the best path for data to travel across networks.
- **Example**: In AWS, a routing table might route traffic within a
VPC (`[Link]/16`) while sending other traffic to the internet
(`[Link]/0`).

You might also like