Computer Basics 17: How Routers and Packets work

Subscribers:
10,700,000
Published on ● Video Link: https://www.youtube.com/watch?v=f9M6P9IVn7k



Duration: 2:54
29,722 views
320


http://FreeCodeCamp.com is a community of busy people who learn to code, then practice by building projects for nonprofits. Learn Full-stack JavaScript, build a portfolio, and get great references with our open source community.

Follow us on twitter: https://twitter.com/intent/user?screen_name=freecodecamp

Follow us on Twitch: twitch.tv/freecodecamp

Like us on Facebook: https://www.facebook.com/freecodecamp

Follow Quincy on Quora: http://www.quora.com/Quincy-Larson

In this video, we go into a little more detail about routers and packets, important concepts to understand about how the internet works.
Let's talk more about routers and how they relate to networking.
Routers are the things that connect different small area networks.
I want to give a metaphor for this: I'm a teacher and I work at a school.
Say I have a package that I need to get to someone who works in the district offices.
I don't know where she is, I don't know where her office is located, but I know her name.
I go to my secretary, like my first router, and I say \Hey, I need to get this to so-and-so at the district office, can you please help me?\ and she'll say \Sure, I don't know exactly where her office is either, but I know the next step, I can get it to the district\.
So she goes on and sends it to the secretary at the district office, the next router.
That secretary has no idea who I am or where I am, but she sees the name on the package and knows the end location.
What I'm trying to get across here is that each router only has to know its own little network, the stops right next to it.
It doesn't have to know the whole internet, but just its own connections.
It can take information and say, alright, I don't know exactly where that's going, but I'll pass it along in the right direction.
That's really all it takes.
Routers can be different sizes, different capacities, but what they do is know their own neighborhood, take the information, and pass it in the right direction.
Another thing we'll get into a little later is that the routers don't even have to have the full package of information.
If one comptuer is trying to send information to another, the data might get split up between different routers and that's okay.
The computers still know how to put the information back together correctly.
The little pieces of information that are sent are called packets.
Packets are actually little pieces of binary code (drawn on board).
This is an example of what packets might look like, a visual representation of the electrical current that the computer can translate into 1's and 0's, which we all know is binary that can represent literally any digital data.
These little packets are sent across through routers, and if a file is too large for one packet, it can be broken up into frames (smaller little packets).
The frames don't have to take the same route to the end destination.
They can take whichever route is open, whichever is fastest, and since they have the end IP address, all of the routers know where to send them.
Once they get to the end destination, that computer knows how to put all of the information back together.







Tags:
Free Code Camp
JavaScript
Pair Programming
Node.js
AngularJS
MongoDB
SQL
code
learn to code
hour of code
nonprofits
full stack
coding bootcamp
software engineer
open source
Office
Software
Technology
Network Packet (Unit Of Data Size)
Router (Computer Peripheral Class)
Computer Network (Industry)
News
Social Network (Industry)
Industry (Organization Sector)
System
Work
Business
Training
Information
Systems
Security
Computer Security (Software Genre)