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.
Table of Contents:
We will learn the networking in some steep. Let's see the step:
- Learn about Network devices.
- Learn OSI Model.
- Learn how multiple devices (host) are communicate in a network.
- Learn how switch and router are work in a network.
- Learn how data flows from one device to another through internet with practical example.
In this Part we will discuss only the Network Devices.
Network Devices:
To understand networks, we must first learn about network devices. Here are key devices and terms to know:
- Host,
- IP Address,
- Network,
- Repeter,
- Hub,
- Bridge,
- Switch,
- Router
Host: A host is a device, such as a computer, mobile phone, or printer, that connects to and communicates within a network.
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.
IP Address: IP Address is the address or the identity of each Host. To identify each host we need IP Address.
An IP Address is composed of 32 bits and is typically represented in four octets. For instance, 192.168.0.1 is an example of an IP Address.
In our example the computer have an IP Address and Printer also have an IP Address.
Network: 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.
According to AWS:
It's means when we connect multiple host together and they are share data with each other it's called network.
Repeter: 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.
Hub: Let's say we have a network which has two host connected each others.
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.
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.
Now if i want to add more host in this network i have to connect the host with the hub and that's it.
Bridge: Now Let's say I have one network with two hub connected each others. Like this:
Here Host 1.1 send data in Hub 1 and Host 1.1 don't want to share the data with Hub 2 . In that case when Host 1.1 will send the data in Hub 1 then the data will also flow in Hub 2 because it's connected each other. To keep this two Hub separated in a single network we need to add a device called Bridge.
Switch: Switch is the combination of both Hub and Bridge. 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.
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.
Router: 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.
Let's say we have a network in Dhaka and the IP Address is 162.150.1.x and we have another network in Cox's Bazar and the IP Address is 162.150.2.x.
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 (162.150.1.x) need to connect with the network of Cox's Bazar (162.150.2.x) through the router and internet.
Router connect one network with other network. Router have a default get way to connect with other network. for the network of Dhaka (162.150.1.x) default gateway is 162.150.1.1 and for the network of Cox's Bazar (162.150.2.x) default gateway is 162.150.2.1.
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.
Conclusion:
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.
Reference : https://youtube.com/playlist?list=PLIFyRwBY_4bRLmKfP1KnZA6rZbRHtxmXi&si=nDpQn3Be7713Hbrf
Follow me on:
Thanks of Reading.
Top comments (0)