<?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: Abul Basar</title>
    <description>The latest articles on DEV Community by Abul Basar (@basar).</description>
    <link>https://dev.to/basar</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%2F1285795%2F15da54ec-8c6f-4564-80f3-72535dfc5042.png</url>
      <title>DEV Community: Abul Basar</title>
      <link>https://dev.to/basar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/basar"/>
    <language>en</language>
    <item>
      <title>Fundamental of Networking For Beginner: How Data Flows on the Internet. Part-1</title>
      <dc:creator>Abul Basar</dc:creator>
      <pubDate>Wed, 08 May 2024 20:09:20 +0000</pubDate>
      <link>https://dev.to/basar/fundamental-of-networking-for-beginner-how-data-flows-on-the-internet-part-1-3ho8</link>
      <guid>https://dev.to/basar/fundamental-of-networking-for-beginner-how-data-flows-on-the-internet-part-1-3ho8</guid>
      <description>&lt;p&gt;We all use the Internet. Right? But do you know when we send or receive any data through internet then how it's works? Don't worry. You will learn about the basics of networking and how data flows on the internet by reading this article step by step. Be ready and prepare for this smooth journey.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Table of Contents:&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;We will learn the networking in some steep. Let's see the step: &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Learn about Network devices.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Learn OSI Model.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Learn how multiple devices (host) are communicate in a network.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Learn how switch and router are work in a network.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Learn how data flows from one device to another through internet with practical example.&lt;/em&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In this Part we will discuss only the &lt;strong&gt;Network Devices&lt;/strong&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Network Devices:&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;To understand networks, we must first learn about network devices. Here are key devices and terms to know:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Host,&lt;/li&gt;
&lt;li&gt;IP Address,&lt;/li&gt;
&lt;li&gt;Network,&lt;/li&gt;
&lt;li&gt;Repeter,&lt;/li&gt;
&lt;li&gt;Hub,&lt;/li&gt;
&lt;li&gt;Bridge,&lt;/li&gt;
&lt;li&gt;Switch,&lt;/li&gt;
&lt;li&gt;Router&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Host:&lt;/em&gt;&lt;/strong&gt; A host is a device, such as a &lt;em&gt;computer&lt;/em&gt;, &lt;em&gt;mobile phone&lt;/em&gt;, or &lt;em&gt;printer&lt;/em&gt;, that connects to and communicates within a network. &lt;br&gt;
For instance, consider a scenario where you have a PDF document on your computer that you want to print. When you connect your computer to a printer and send the print command, both your computer and the printer act as host within this network.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;IP Address:&lt;/em&gt;&lt;/strong&gt; IP Address is the address or the identity of each Host. To identify each host we need IP Address. &lt;br&gt;
An IP Address is composed of &lt;em&gt;32 bits&lt;/em&gt; and is typically represented in four &lt;strong&gt;octets&lt;/strong&gt;. For instance, &lt;strong&gt;192.168.0.1&lt;/strong&gt; is an example of an IP Address. &lt;br&gt;
In our example the computer have an IP Address and Printer also have an IP Address.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Network:&lt;/em&gt;&lt;/strong&gt; Let's say we connect our Printer with our Computer through a cable, and it's communicating each other with this cable and build a connection. This is a network.&lt;/p&gt;

&lt;p&gt;According to AWS:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://aws.amazon.com/what-is/computer-networking/"&gt;&lt;em&gt;Computer networking refers to interconnected computing devices that can exchange data and share resources with each other.&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It's means when we connect multiple host together and they are share data with each other it's called network.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F15vni80dv52n8pplux1f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F15vni80dv52n8pplux1f.png" alt="networkImg" width="342" height="182"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Repeter:&lt;/strong&gt;&lt;/em&gt; When hosts are connected in a small network then it can communicate easily but in a larger network, data can't reach its destination and loss the data before reach the destination. So we need a device to regenerate data and make the signal strong enough to reach its destination. Repeter dose the same. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4aymtv1e0c3wvgtgm7to.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4aymtv1e0c3wvgtgm7to.png" alt="repeter" width="482" height="96"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Hub:&lt;/em&gt;&lt;/strong&gt; Let's say we have a network which has two host connected each others.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8kkwcrsbt4nb8ar1vnuo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8kkwcrsbt4nb8ar1vnuo.png" alt="hub1" width="482" height="72"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now i want to add another two host in this network. so I have to connect those 4 host with each others. and if i want to add more then it would be very much complicated. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr71ic1kyzf02a3c73r4g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr71ic1kyzf02a3c73r4g.png" alt="hub2" width="482" height="222"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What if we have a device to connect every host of the network with this device to communicate each others easily. Hub dose the same thing. It remains in the center of the network and all host is connected with the hub to communicate with others. And when any host share any data in a hub then the hub shared the data with all the connected host of the hub.&lt;/p&gt;

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

&lt;p&gt;Now if i want to add more host in this network i have to connect the host with the hub and that's it. &lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Bridge:&lt;/strong&gt;&lt;/em&gt; Now Let's say I have one network with two hub connected each others. Like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7h2e0rmq3a0znq6fb7h4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7h2e0rmq3a0znq6fb7h4.png" alt="Bridge" width="712" height="251"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here &lt;strong&gt;Host 1.1&lt;/strong&gt; send data in &lt;strong&gt;Hub 1&lt;/strong&gt; and &lt;strong&gt;Host 1.1&lt;/strong&gt; don't want to share the data with &lt;strong&gt;Hub 2&lt;/strong&gt; . In that case when &lt;strong&gt;Host 1.1&lt;/strong&gt; will send the data in &lt;strong&gt;Hub 1&lt;/strong&gt; then the data will also flow in &lt;strong&gt;Hub 2&lt;/strong&gt; because it's connected each other. To keep this two Hub separated in a single network we need to add a device called Bridge. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjj51re5geo8ekwxpsq29.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjj51re5geo8ekwxpsq29.png" alt="Bridge2" width="712" height="291"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Switch:&lt;/em&gt;&lt;/strong&gt; Switch is the combination of both &lt;strong&gt;&lt;em&gt;Hub&lt;/em&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;em&gt;Bridge&lt;/em&gt;&lt;/strong&gt;. When a Host send data in a hub then it share the data with all connected Host of the hub. But if any host want to send some data to another host without sharing the data with others then how it will do? Here we need Switch. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhlm1pknfz1lrqzjoytsh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhlm1pknfz1lrqzjoytsh.png" alt="_Switch" width="302" height="281"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here we connect host with a switch in a network. now if the Host 1.1  send the data to Host 1.3 in the network then Switch will send the data to Host 1.3 only. others host will not receive the data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Router:&lt;/em&gt;&lt;/strong&gt; All the devices we discuss above is used to communicate each host in a single network. But we didn't discuss how a network build a connection with other network. For learning that we can imagine a scenario.&lt;/p&gt;

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

&lt;p&gt;Let's say we have a network in Dhaka and the IP Address is &lt;strong&gt;162.150.1.x&lt;/strong&gt; and we have another network in Cox's Bazar and the IP Address is &lt;strong&gt;162.150.2.x.&lt;/strong&gt; &lt;br&gt;
If any host want to communicate with each other inside the network of Dhaka then they can communicate with switch. But if any host of Dhaka want to communicate with any host of Cox's Bazar network then the network of Dhaka &lt;strong&gt;(162.150.1.x)&lt;/strong&gt; need to connect with the network of Cox's Bazar &lt;strong&gt;(162.150.2.x)&lt;/strong&gt; through the router and internet.&lt;br&gt;
 Router connect one network with other network. Router have a default get way to connect with other network. for the network of Dhaka &lt;strong&gt;(162.150.1.x)&lt;/strong&gt; default gateway is 162.150.1.1 and for the network of Cox's Bazar &lt;strong&gt;(162.150.2.x)&lt;/strong&gt; default gateway is &lt;strong&gt;162.150.2.1&lt;/strong&gt;.&lt;br&gt;
When any host send data in a switch and if the switch can't find the destination IP Address in the network then it send the data through the default gateway of the router and it reach its destination through internet. &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Conclusion:&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In this part we learn about the devices of Network. in next part we will learn about OSI Model. Keep flowing to learn Software development with me. &lt;/p&gt;

&lt;p&gt;Reference : &lt;a href="https://youtube.com/playlist?list=PLIFyRwBY_4bRLmKfP1KnZA6rZbRHtxmXi&amp;amp;si=nDpQn3Be7713Hbrf"&gt;https://youtube.com/playlist?list=PLIFyRwBY_4bRLmKfP1KnZA6rZbRHtxmXi&amp;amp;si=nDpQn3Be7713Hbrf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Follow me on:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.linkedin.com/in/abulbashar5403/"&gt;LinkedIn.&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://twitter.com/basarofficial54"&gt;Twitter&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://medium.com/@abulbasarofficial5403"&gt;Medium&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thanks of Reading. &lt;/p&gt;

</description>
      <category>networking</category>
      <category>networkingdevices</category>
      <category>softwaredevelopment</category>
      <category>fundamentalofnetworking</category>
    </item>
  </channel>
</rss>
