Skip to main content

How the Router works?



Router is device which forward data packets from the device to the internet and bring the requested data packets from the internet to the device, accurately.

Router is the gateway of the internet.Router is used for the purpose of splitting the signal to share it, with more then one devices at the same time.

To understand the concept of the router ?
How it works?

Let’s take an example, suppose you have to post a letter to your friend living in Delhi. For that you have to mention postal address in the letter. And post in the post box. From the post box it goes to the nearest post office from their it goes to nearest post office of the mentioned postal address. Now post office send this letter to the destination.

Now, in this example consider letter as “data packets” and postal address as “IP address”, post office as “router”.

Imagine the same scenario what will happen:


When you request for some on internet data packet is send to the router with the IP address of the destination. Router search for the shortest path to reach the destination router from where it can send the data packet to the destination IP address.

Note: When the data packets are sent through one router to another it gets converted into Analog form when it reaches the destination router. The router converts it into digital signal again before it sent to the destination IP address. This conversion is done with the help of modem which come in built in the router now a days.

What is modem you will be thinking of the word?

We, will talk about this term in next blog.



Until then peace out.


Comments

Popular posts from this blog

Hustle

The innate hunger to build,create,do something & try. Hustle isn't just working on the things you like,it means doing the things you don't enjoy so you can do the things you love. Hustle:The ability to make things happen in light of knowing,how to get there ,but operate with the general principle that action breed results. Hustle stands for: H - How U - U  S -  Survive T -  The L - life  E - Everyday Some days I'm Humble. Some days I  Struggle. But everyday I Hustle. Remember Every Boss started as a worker.

TCP Segment

A TCP segment is made up of a TCP header and a data section. Source Port :  A source port is a high numbered port chosen from a special section of ports known as ephemeral ports. A source port is needed so that when the web server replies, the computer making the original request can send this data to the program that was actually requesting it. It is in this way that when it web server responds to your requests to view a web page that this response gets received by your web browser and not your word processor. Destination Port : port on which the client in request the data( The destination port is the port of the service the traffic is intended for ) Sequence Number :This is a 32-bit number that's used to keep track of where in a sequence of TCP segments this one is expected to be.There are limits to the total size of what we send across the wire. In Ethernet frame, it's usually limited in size to 1,518 bytes, but we usually need to send way more data than that. At the transp...

Troubleshooting and debugging

Troubleshooting is the process of identifying, analyzing, and solving problems.  Debugging is the process of identifying, analyzing, and removing bugs in a system. We sometimes use troubleshooting and debugging interchangeably.  But generally, we say troubleshooting when we're fixing problems in the system running the application, and debugging when we're fixing the bugs in the actual code of the application. Debuggers let us follow the code line by line, inspect changes in variable assignments, interrupt the program when a specific condition is met, and more. System calls are the calls that the programs running on our computer make to the running kernel.   A reproduction case is a way to verify if the problem is present or not. Where to check for log file in OS? On Linux , you'd read system logs like /var/log/syslog and user-specific logs like the .xsession-errors file located in the user's home directory. On MacOs , on top of the system logs, you'd go through...