<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: MS</title>
    <description>The latest articles on DEV Community by MS (@mithunsreeram).</description>
    <link>https://dev.to/mithunsreeram</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F994536%2Ffab706b0-7948-48c0-ba13-eb10c8f8b647.jpg</url>
      <title>DEV Community: MS</title>
      <link>https://dev.to/mithunsreeram</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mithunsreeram"/>
    <language>en</language>
    <item>
      <title>VLAN</title>
      <dc:creator>MS</dc:creator>
      <pubDate>Tue, 16 Jan 2024 07:41:16 +0000</pubDate>
      <link>https://dev.to/mithunsreeram/vlan-1n8e</link>
      <guid>https://dev.to/mithunsreeram/vlan-1n8e</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;First , No more wait I will be keep on posting content from now on . Lets start so in order to know about VLAN's we need to understand basics of the switch &lt;/p&gt;

&lt;h3&gt;
  
  
  Purpose of Switch and VLAN
&lt;/h3&gt;

&lt;p&gt;Switches are placed between your router and devices for multiple uses but main purpose is for isolation between organizations and departments (just like subnetting but at an earlier stage) then within that comes our hero VLAN and its main purpose is.... same as switch and subnetting which is isolation . I know it might be confusing [ It will :) ] &lt;/p&gt;

&lt;h3&gt;
  
  
  WorkFlow
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F04748c4nq28g4xc2zqg4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F04748c4nq28g4xc2zqg4.png" alt="Flow" width="800" height="502"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you have seen , First step is the router then switch then comes our VLAN .Lets break it down with an example , Consider you have an office which has multiple departments and each department has multiple teams under it . &lt;/p&gt;

&lt;p&gt;Office - Router&lt;br&gt;
Department - switches&lt;br&gt;
Teams  - VLAN &lt;/p&gt;

&lt;p&gt;Now you see why we need so much isolation , While doing R&amp;amp;D I had a doubt why use VLAN we can just add mutiple switches right ? No , Think about the space and cost and we are using VLANs to have separate broadcast domains under the same switch (same department has mutiple teams under it)&lt;/p&gt;

&lt;h2&gt;
  
  
  How do they communicate
&lt;/h2&gt;

&lt;p&gt;Each VLAN has a tag (like an identity for it) . Consider a router which has two switches A &amp;amp; B and each switch has 2 VLANs ( Switch A - A1 , A2 ) and ( Switch B - B1 , B2 ). &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;If devices under a VLAN has to communicate , they can communicate directly as they are under same broadcast domain.(Like a team sitting in a same room can communicate directly)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If devices in VLAN A1 has to communicate with A2 then they send the MAC address of the device they wanna communicate to the switch (A) then the switch identifies that the MAC address specified in the packet belongs to it but different VLAN so it redirects to that VLAN and goes to the particular device&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If devices in VLAN A1 wants to communicate with B1 or B2 ( different switch ) , Initially they will send the packet to the switch then the switch identifies it belongs to different  switch and adds the VLAN Tag of A1 and sends to the router , the router checks the destination IP address in its routing table and check to which VLAN does it belong (In our case B1 ) so it adds B1's VLAN Tag and checks for the switch it belongs and forwards to it then the switch B check the VLAN Tag and forward to the specific VLAN and then to the device.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Its a hell of a topic and there are still much details to cover , I have just added what is it ? , How does it work and whats the purpose of it . If you have any doubts or clarification comment down below , I will be addressing it ASAP&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpwbs0qxh8f67dqalyu6e.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpwbs0qxh8f67dqalyu6e.gif" alt="Okay BYE" width="540" height="325"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Be Nice in comments :)&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>networking</category>
      <category>network</category>
      <category>security</category>
    </item>
    <item>
      <title>No Idea...</title>
      <dc:creator>MS</dc:creator>
      <pubDate>Mon, 08 Jan 2024 11:44:43 +0000</pubDate>
      <link>https://dev.to/mithunsreeram/no-idea-4456</link>
      <guid>https://dev.to/mithunsreeram/no-idea-4456</guid>
      <description>&lt;p&gt;Lets get right into the topic , i have no idea what to post next so if you guys have any concepts to get an idea on in security or networking . Kindly let me know in the comments so I can rip that topic off and make it easier to understand!!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>IP Address</title>
      <dc:creator>MS</dc:creator>
      <pubDate>Mon, 27 Nov 2023 07:43:07 +0000</pubDate>
      <link>https://dev.to/mithunsreeram/ip-address-3cm</link>
      <guid>https://dev.to/mithunsreeram/ip-address-3cm</guid>
      <description>&lt;p&gt;Well here comes the major question in the entire IT industry , What is an IP Address and why do we need IP address , Who uses IP Address and much more..&lt;/p&gt;

&lt;p&gt;Here I am who has done some R&amp;amp;D in this question and found something for you guys , So watch closely (read carefully)!!&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;First this post is only gonna give an idea of what is IP address and how it works in real world so there is no theory part (definitions) and no indepth content to become the next network engineer the world has never seen. This post contains just info that every people need to know as IT employee or CS Student or who are all interested in this field&lt;/p&gt;

&lt;h2&gt;
  
  
  Lets Get Started
&lt;/h2&gt;

&lt;p&gt;IP Address are assigned to your devices like lap , pc , mobile by your router.There were two types IPv4 and IPv6&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;IPv4 Address&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Uses 32 bits addressing scheme so it has over 4 billion combinations which was not enough since we had more population than it (LOL :))&lt;/li&gt;
&lt;li&gt;IPv4 addresses are typically expressed in dotted-decimal format (e.g., 192.168.0.1)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;IPv6 Address&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Uses 128 bits which had more combinations than IPv4&lt;/li&gt;
&lt;li&gt;IPv6 addresses are typically expressed as eight groups of four hexadecimal digits, separated by colons (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Among these we had separate types of IP address based on their usage&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Public IP&lt;/li&gt;
&lt;li&gt;Private IP&lt;/li&gt;
&lt;li&gt;Static IP&lt;/li&gt;
&lt;li&gt;Dynamic IP&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And you may find much types in different sites. And these are 4 types based on day to day usage&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Private IP&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Lets start with private IP , then it will be easy for you to understand public IP after this.&lt;/li&gt;
&lt;li&gt;This IP is provided by the DHCP in the router which has a few set of IP addresses in the pool (kind of storage) which will be assigned to your devices like laptop ,mobile,printer.&lt;/li&gt;
&lt;li&gt;Using this private IP , they communicate with each other under same network if you wanna print a image from your mobile or lap just give print and if your printer is connected it just prints out right. This is because they are connected using their private IP address&lt;/li&gt;
&lt;li&gt;All sharing data from PC to mobile applications works using the private IP's , Thats why it says to connect under same wifi network &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg8x2w8869gg0xxza3gau.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg8x2w8869gg0xxza3gau.jpg" width="732" height="472"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Public IP&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This address is given to the router by the ISP provider , so when you are using your laptop to search a youtube video which is in internet&lt;/li&gt;
&lt;li&gt;When your laptop sends a request to the internet , the router uses a mechanism called Network Address Translation (NAT) to map your laptop's private IP address to the public IP address of the router.&lt;/li&gt;
&lt;li&gt;So the internet ( outside your home network ) only knows your public address so when response gets back to the public IP ( which is router ) , the router has the mapping who asked youtube video and it finds with your private IP so okay this device asked so it sends back the response to your laptop&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6rxernrp5ubkfusf4hj6.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6rxernrp5ubkfusf4hj6.jpg" width="800" height="379"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Static IP&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;From name we can identify that it never changes unless intentionally changed&lt;/li&gt;
&lt;li&gt;For eg : Public IP which is assigned by your ISP to your router will never change unless you contact your ISP to change it for you , Even in some organization using LAN network when you connect and disconnect you always have same IP which means they configured that LAN to have static IP&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Dynamic IP&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Same as saw earlier in static , this one changes each time you connect to the network  try it with your home network and you might see different IP address each time you connect to the internet &lt;/li&gt;
&lt;li&gt;So how this works , As i said earlier there will be range of ip address available for router(DHCP) to assign so initially you connected to an IP (192.168.25.1) and disconnected , so that IP returns to available state in DHCP's pool and when you reconnect there might be few other available IP addresses too&lt;/li&gt;
&lt;li&gt;So the router asks DHCP for available IP address and it picks the available address from the pool and sends back to router and from router to your device &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;And there raises a question , When i disconnect my older IP will it also be available in pool so is there a chance to get old IP itself ?&lt;/strong&gt;&lt;br&gt;
Ans : Yes , DHCP follows a lease functionality so when you disconnect and reconnect if the lease of that IP is not expired then it connects to the same device . And if the lease is expired and if it is not assigned to any other device and you may get the same IP based on just luck , There is no assurance here.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In simple words , IP addresses are names assigned to your devices. Lets end with a real world example , In your home you will be called by your nickname among your family and you communicate with each other using that But when you go outside of your home , your nickname doesn't work there so thats where your realname comes in play. And when you receive a courier to your home , The guy asks for your real name and your family understands that and gets you the package.&lt;br&gt;
Now nickname - Private IP and Realname - Public IP , it strikes now right&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw5901tplafh1uxk8oov1.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw5901tplafh1uxk8oov1.gif" alt="Peace" width="540" height="325"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And See you in next one :) and Be Nice in the comments and If you have any suggestions say it here &lt;/p&gt;

</description>
      <category>beginners</category>
      <category>networking</category>
      <category>security</category>
      <category>network</category>
    </item>
    <item>
      <title>Subnetting</title>
      <dc:creator>MS</dc:creator>
      <pubDate>Thu, 23 Nov 2023 11:09:24 +0000</pubDate>
      <link>https://dev.to/mithunsreeram/subnetting-2oa</link>
      <guid>https://dev.to/mithunsreeram/subnetting-2oa</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;I see a lot of posts in dev but I haven't seen a clean one to explain about Subnetting , So why wait for others lets just jump on and created one myself.. ( And its pretty good Trust me )&lt;/p&gt;

&lt;h2&gt;
  
  
  Lets Get Started
&lt;/h2&gt;

&lt;p&gt;Subnetting is a technique used in computer networking to divide a single, large network into smaller, more manageable sub-networks or subnets. Each subnet is identified by its own unique subnet address, allowing for efficient utilization of IP addresses and improving overall network performance and security (Thanks to ChatGPT for this one)&lt;/p&gt;

&lt;p&gt;First when you check for the IP address in your terminal , You will see 3 addresses &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;IP Address&lt;/li&gt;
&lt;li&gt;Subnet Mask&lt;/li&gt;
&lt;li&gt;Broadcast&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzbbyc33kpsc4gl1bxdn2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzbbyc33kpsc4gl1bxdn2.png" alt="Terminal Image" width="800" height="330"&gt;&lt;/a&gt;&lt;br&gt;
Lets say for an example we have an IP address : 192.168.241.9 and Subnet mask of 255.255.255.0 , Here 255 symbolizes that it doesn't change for other devices under the same network while 0 can be changed for other devices.&lt;/p&gt;

&lt;p&gt;That is 192.168.241.&lt;strong&gt;2&lt;/strong&gt; , 192.168.241.&lt;strong&gt;245&lt;/strong&gt; exists while 192.168.&lt;strong&gt;24.56&lt;/strong&gt; doesn’t exist , From here you may got an idea of range for IP Address 192.168.241.0 -&amp;gt; 192.168.241.255 But here is a catch , Both the First address and last one are not assigned to any devices as their IP Because they have their own specific purpose&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;192.168.241.0   -&amp;gt; Network channel&lt;/li&gt;
&lt;li&gt;192.168.241.255 -&amp;gt; Broadcast channel&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Network Channel&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The network address is like the label for the entire subnet. &lt;/li&gt;
&lt;li&gt;It indicates the base address of the subnet.
Devices within the subnet use the network address as a reference point to understand that they are part of the same network.&lt;/li&gt;
&lt;li&gt;For example, if a computer is configured with the IP address 192.168.241.5 and another device is configured with 192.168.241.10, both devices recognize that they are in the same network because they share the common network address, 192.168.241.0.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Broadcast Channel&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The broadcast address is used to send messages to all devices within the subnet. For instance, if a device sends a broadcast message to 192.168.241.255, all devices in the subnet will receive that message. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Why we need Subnetting&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The key purpose is to organize IP addresses for better traffic control and security purpose&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Consider you are maintaining a college with different&lt;br&gt;
depts like science , maths , admin and much more. Without subnetting if science people want to share a specfic info to their science nerds when they use broadcast channel other depts will also be receiving the info and What if all the depts access the broadcast address simultanously , See this causes Traffic&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Another scenario where one device is got hacked or corrupted then the entire network and all the devices in it will be affected&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now if we use subnetting , all have their separate own space (Isolation) so the traffic is less , if one device got affected only the devices in that subnet share the effect while other depts can calm and chill&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Funoy17mn7yylldp5s9mk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Funoy17mn7yylldp5s9mk.png" alt="Small Subnetting chain" width="800" height="462"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In a simple way , When you have all your games , anime , movies and stuff under a same folder , That's pretty nasty right . Organize it and you are good to go! [Same stuff but for IP address and device communication]&lt;/p&gt;

&lt;p&gt;See you again , Comment down how was it [ Be Nice :) ]&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fly64n06rm88lnoq49xlx.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fly64n06rm88lnoq49xlx.gif" alt="Peace out Gif" width="540" height="325"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>cybersecurity</category>
      <category>networking</category>
      <category>network</category>
    </item>
  </channel>
</rss>
