Transcript for:
Khan Academy IP Ports and DNS

hi my name is paula and i am a software engineer at microsoft let's talk about how the internet works my job relies on networks being able to talk with one another but back in the 1970s there was no standard method for this it took the work of vint cerf and bob bobcon to invent the internet working protocol to make communication possible this invention laid the groundwork for what we now call the internet the internet is a network of networks it links billions of devices together all around the globe so maybe you're connected with a laptop or a phone through wi-fi but then that wi-fi connection connects to an internet service provider or isp and that isp connects you to billions and billions of devices around the world through hundreds of thousands of networks that are all interconnected one thing that most people do not appreciate is that the internet is really a design philosophy and an architecture expressed in a set of protocols a protocol is a well-known set of rules and standards that if all parties agree to use it will allow them to communicate without trouble how the internet actually physically works is less important than the fact that this design philosophy has allowed the internet to adapt and absorb new communication technologies this is because in order for a new technology to use the internet in some fashion it just needs to know which protocols to work with all the different devices on the internet have unique addresses an address on the internet is just a number similar to a phone number or a sort of street address that's unique to each computer or device at the edge of the network this is similar to how most homes and businesses have a mailing address you don't need to know a person to send them a letter in the mail but you do need to know their address and how to write the address properly so the letter can be carried by the mail system to its destination the addressing system for computers on the internet is similar and it forms part of one of the most important protocols used in internet communication simply called the internet protocol or ip a computer's address then is called its ip address visiting a website is really just your computer asking another computer for information your computer sends a message to the other computer's ip address and it also sends along its origin address so the other computer knows where to send its response you may have seen an ip address it's just a bunch of numbers these numbers are organized in a hierarchy just like a home address has a country a city a street and a house number an ip address has many parts just like all digital data each of these numbers is represented in bits traditional ip addresses are 32 bits long with 8 bits for each part of the address the earlier numbers usually identify the country and regional network of the device then come the subnetworks and then finally the address of the specific device this version of ip addressing is called ipv4 it was designed in 1973 and widely adopted in the early 80s and provides for more than four billion unique addresses for devices connecting to the internet but the internet has turned out to be much more popular than even vans surf imagine and 4 billion unique addresses won't be enough we're now in the middle of a multi-year transition to a longer ip address format called ipv6 which uses 128 bits per address and provides over 340 on the zillion unique addresses that's more than enough for every grain of sun on earth to have its own ip address most users never see or care about internet addresses a system called the domain name system or dns associates names like www.example.com with the corresponding addresses your computer uses the dns to look up domain names and get the associated ip address which is used to connect your computer to the destination on the internet it goes a little something like this hey hi there i want to go to www.code.org yeah i don't know the uh the ip address for that domain let me ask around hey hey know how to get to uh code.org y'all got it right here it's uh 174.129.14.120. oh okay great thanks yeah i'm gonna i'm gonna write that down and save it for later in case i need it hey here's that address you wanted awesome thank you so how do we design a system for billions of devices to find any one of billions of different websites there is no way one dns server can handle all the requests from all devices the answer is that vns servers are connected in a distributed hierarchy and are divided into zones splitting up responsibility for the major domains such as org.com.net etc vns was originally created to be an open and public communication protocol for government and educational institutions because of its openness dns is susceptible to cyber attacks an example attack is dns spoofing that's when a hacker taps into a dns server and changes it to match a domain name with the wrong ip address this lets the attacker send people to one imposter website if this happens to you you are vulnerable for more problems because you are using that fake website as if it is real the internet is huge and getting bigger every day but the domain name system and internet protocol are designed to scale no matter how much the internet grows