< Return to Video

The Internet: IP addresses and DNS

  • 0:01 - 0:04
    (upbeat piano and drum music)
  • 0:10 - 0:12
    - Hi. My name is Paola,
  • 0:12 - 0:15
    and I am a software engineer at Microsoft.
  • 0:15 - 0:17
    Let's talk about how the internet works.
  • 0:17 - 0:20
    My job relies on networks being able
  • 0:20 - 0:22
    to talk with one another.
  • 0:22 - 0:25
    But back in the 1970s, there was no
  • 0:25 - 0:27
    standard method for this.
  • 0:27 - 0:30
    It took the work of Vint Cerf and Bob Kahn
  • 0:30 - 0:32
    to invent the Internetworking Protocol
  • 0:32 - 0:34
    to make communication possible.
  • 0:35 - 0:37
    This invention laid the groundwork
  • 0:37 - 0:39
    for what we now call the internet.
  • 0:40 - 0:42
    - The internet is a network of networks.
  • 0:42 - 0:46
    It links billions of devices
    together all around the globe.
  • 0:47 - 0:49
    Maybe you're connected with a laptop
  • 0:49 - 0:51
    or a phone through wifi.
  • 0:51 - 0:53
    But then that wifi connection
  • 0:53 - 0:56
    connects to an Internet
    Service Provider, or ISP.
  • 0:56 - 0:58
    And that ISP connects you
    to billions and billions
  • 0:58 - 1:00
    of devices around the world
  • 1:00 - 1:02
    through hundreds of thousands of networks
  • 1:02 - 1:04
    that are all interconnected.
  • 1:05 - 1:09
    One thing that most
    people do not appreciate,
  • 1:09 - 1:12
    is that the internet is
    really a design philosophy
  • 1:12 - 1:16
    and an architecture expressed
    in a set of protocols.
  • 1:17 - 1:20
    A protocol is a well-known set
    of rules and standards that,
  • 1:20 - 1:21
    if all parties agree to use it,
  • 1:21 - 1:24
    will allow them to
    communicate without trouble.
  • 1:25 - 1:29
    How the internet actually
    physically works is less important
  • 1:29 - 1:32
    than the fact that this
    design philosophy has allowed
  • 1:32 - 1:34
    the internet to adapt and absorb
  • 1:34 - 1:36
    new communication technologies.
  • 1:36 - 1:38
    This is because in order
    for a new technology
  • 1:38 - 1:41
    to use the internet in some fashion,
  • 1:41 - 1:43
    it just needs to know which
    protocols to work with.
  • 1:45 - 1:47
    All the different devices on the internet
  • 1:47 - 1:48
    have unique addresses.
  • 1:48 - 1:51
    An address on the
    internet is just a number,
  • 1:51 - 1:54
    similar to a phone number,
    or a sort of street address
  • 1:54 - 1:56
    that's unique to each computer or device
  • 1:56 - 1:58
    at the edge of the network.
  • 1:59 - 2:02
    This is similar to how most
    homes and businesses have
  • 2:02 - 2:03
    a mailing address.
  • 2:03 - 2:04
    You don't need to know a person
  • 2:04 - 2:06
    to send them a letter in the mail,
  • 2:06 - 2:08
    but you do need to know their address,
  • 2:08 - 2:10
    and how to write the address properly,
  • 2:10 - 2:12
    so the letter can be
    carried by the mail system
  • 2:12 - 2:14
    to its destination.
  • 2:14 - 2:16
    The addressing system for computers
  • 2:16 - 2:18
    on the internet is similar,
  • 2:18 - 2:21
    and it forms part of one
    of the most important
  • 2:21 - 2:23
    protocols used in internet communication,
  • 2:23 - 2:26
    simply called the
    Internet Protocol, or IP.
  • 2:27 - 2:30
    A computer's address, then,
    is called its IP address.
  • 2:31 - 2:33
    Visiting a website is really
    just your computer asking
  • 2:33 - 2:35
    another computer for information.
  • 2:35 - 2:38
    Your computer sends a message
    to the other computer's
  • 2:38 - 2:41
    IP address, and it also sends
    along its origin address
  • 2:41 - 2:44
    so the other computer knows
    where to send its response.
  • 2:46 - 2:48
    - You may have seen an IP address.
  • 2:48 - 2:50
    It's just a bunch of numbers.
  • 2:50 - 2:53
    These numbers are
    organized in a hierarchy.
  • 2:53 - 2:56
    Just like a home address has a country,
  • 2:56 - 2:59
    a city, a street, and a house number,
  • 2:59 - 3:01
    an IP address has many parts.
  • 3:01 - 3:03
    Just like all digital data,
  • 3:03 - 3:06
    each of these numbers
    is represented in bits.
  • 3:07 - 3:10
    Traditional IP addresses are 32 bits long,
  • 3:10 - 3:14
    with eight bits for each
    part of the address.
  • 3:14 - 3:16
    The earlier numbers usually identify
  • 3:16 - 3:19
    the country and regional
    network of the device.
  • 3:19 - 3:21
    Then come the subnetworks.
  • 3:21 - 3:24
    And then, finally, the address
    of the specific device.
  • 3:24 - 3:28
    This version of IP
    addressing is called IPv4.
  • 3:28 - 3:31
    It was designed in 1973,
  • 3:31 - 3:33
    and widely adopted in the early '80s,
  • 3:33 - 3:37
    and provides for more than
    4 billion unique addresses
  • 3:37 - 3:40
    for devices connecting to the internet.
  • 3:40 - 3:43
    But the internet has turned
    out to be much more popular
  • 3:43 - 3:45
    than even Vint Cerf imagined,
  • 3:45 - 3:49
    and 4 billion unique
    addresses won't be enough.
  • 3:49 - 3:51
    We're now in the middle
    of a multi-year transition
  • 3:51 - 3:56
    to a longer IP address format called IPv6,
  • 3:56 - 4:00
    which uses 128 bits per address,
  • 4:00 - 4:05
    and provides over 340
    undecillion unique addresses.
  • 4:05 - 4:08
    That's more than enough for
    every grain of sand on Earth
  • 4:08 - 4:10
    to have its own IP address.
  • 4:11 - 4:15
    - Most users never see or
    care about internet addresses.
  • 4:15 - 4:18
    A system called the Domain
    Name System, or DNS,
  • 4:18 - 4:22
    associates names, like www.example.com,
  • 4:22 - 4:24
    with the corresponding addresses.
  • 4:24 - 4:27
    Your computer uses the DNS
    to look up domain names
  • 4:27 - 4:30
    and get the associated
    IP address, which is used
  • 4:30 - 4:33
    to connect your computer to the
    destination on the internet.
  • 4:33 - 4:35
    - [Voiceover] And it goes a
    little something like this.
  • 4:35 - 4:36
    - Hey, hi there.
  • 4:36 - 4:39
    I want to go to www.code.org
  • 4:41 - 4:45
    - Yeah, well I don't know the
    IP address for that domain.
  • 4:45 - 4:47
    Let me ask around.
  • 4:47 - 4:50
    Hey, anyone know how to get to a...
  • 4:50 - 4:52
    code.org?
  • 4:53 - 4:54
    - Yeah, I got it right here.
  • 4:54 - 4:57
    It's 174 dot 129
  • 4:57 - 5:00
    dot 14 dot 120.
  • 5:01 - 5:02
    - Oh, okay, great. Thanks.
  • 5:02 - 5:04
    Yeah, I'm gonna write that
    down and save it for later
  • 5:04 - 5:05
    in case I need it.
  • 5:05 - 5:07
    Hey, here's that address you wanted.
  • 5:07 - 5:09
    - Awesome. Thank you.
  • 5:11 - 5:14
    (piano flourish)
  • 5:14 - 5:17
    - So how do we design a
    system for billions of devices
  • 5:17 - 5:21
    to find any one of billions
    of different websites?
  • 5:21 - 5:24
    There is no way one DNS server
  • 5:24 - 5:27
    can handle all of the
    requests from all devices.
  • 5:28 - 5:31
    The answer is that DNS
    servers are connected
  • 5:31 - 5:34
    in a distributed hierarchy,
    and are divided into zones,
  • 5:34 - 5:37
    splitting up responsibility
    for the major domains
  • 5:37 - 5:41
    such as .org, .com, .net, et cetera.
  • 5:42 - 5:44
    DNS was originally created to be
  • 5:44 - 5:47
    an open and public communication protocol
  • 5:47 - 5:50
    for government and
    educational institutions.
  • 5:50 - 5:52
    Because of its openness,
  • 5:52 - 5:55
    DNS is susceptible to cyber attacks.
  • 5:55 - 5:58
    An example attack is DNS spoofing.
  • 5:58 - 6:02
    That's when a hacker
    taps into a DNS server
  • 6:02 - 6:04
    and changes it to match a domain name
  • 6:04 - 6:07
    with the wrong IP address.
  • 6:07 - 6:12
    This lets the attacker send
    people to one imposter website.
  • 6:12 - 6:13
    If this happens to you,
  • 6:13 - 6:16
    you are vulnerable for more problems
  • 6:16 - 6:20
    because you are using that
    fake website as if it is real.
  • 6:21 - 6:26
    The internet is huge, and
    getting bigger every day.
  • 6:26 - 6:29
    But the Domain Name System
    and Internet Protocol
  • 6:29 - 6:30
    are designed to scale,
  • 6:30 - 6:33
    no matter how much the internet grows.
Title:
The Internet: IP addresses and DNS
Description:

more » « less
Video Language:
English
Team:
Khan Academy
Duration:
06:45

English subtitles

Revisions