Packet, routers, and reliability | Internet 101 | Computer Science | Khan Academy

Khan Academy
23 Apr 201906:25

Summary

TLDRIn this video, Lynn Root, a Software Engineer at Spotify, discusses the Internet's reliability and the complex process behind data delivery. The script explains how the Internet Protocol (IP) and Transmission Control Protocol (TCP) work together to ensure data packets are sent, received, and reassembled correctly, even if they travel different routes or arrive out of order. The video highlights the Internet's fault tolerance and scalability, emphasizing its ability to grow without interrupting service.

Takeaways

  • ๐ŸŒ The Internet's reliability is often taken for granted, yet it handles an astonishing amount of data efficiently.
  • ๐Ÿš€ Data on the Internet doesn't travel on direct, dedicated lines but through a less direct, packet-based system.
  • ๐Ÿ›ฃ๏ธ Information travels in packets, which can change paths dynamically, similar to how one might choose different routes in a car based on traffic.
  • ๐Ÿ“ฆ Large files, like images, are broken down into smaller packets for transmission, which are then reassembled at the destination.
  • ๐Ÿ” Routers act as traffic managers on the Internet, directing packets through the most efficient routes based on various factors.
  • ๐Ÿ” Packets may take different routes and arrive out of order, but the system is designed to handle this and maintain data integrity.
  • ๐Ÿ›ก๏ธ The Internet Protocol (IP) ensures that routers keep track of multiple paths, enhancing the network's fault tolerance.
  • ๐ŸŽต TCP (Transmission Control Protocol) acts as a reliable mail service, ensuring all packets of a data request are delivered correctly.
  • ๐Ÿ”„ If packets are missing or incomplete, TCP will request retransmission until all parts are successfully received.
  • ๐ŸŒŸ The scalability of TCP and routers allows the Internet to function smoothly even as the number of devices grows exponentially.
  • ๐ŸŒ The Internet's interconnectedness is facilitated by agreed-upon standards, allowing diverse systems to communicate effectively.

Q & A

  • What does Lynn Root admit to taking for granted about the Internet?

    -Lynn Root admits to often taking for granted the reliability of the Internet.

  • How does the Internet typically deliver data to users?

    -Data travels on the Internet in a less direct fashion, not through direct, dedicated connections, but rather through a system of packets that can take various routes to reach their destination.

  • Who is Bob Kahn and what was his contribution to the Internet?

    -Bob Kahn is Lynn Root's partner, and together they began working on the design of what we now call the Internet in the early 1970s, focusing on the Internet's protocols and architecture.

  • What is a packet in the context of the Internet?

    -A packet is a unit of data that travels from one computer to another on the Internet, similar to how a car travels from one place to another depending on traffic or road conditions.

  • How does the Internet handle large amounts of data, such as a large image?

    -Large amounts of data, like an image, are broken down into smaller parts called packets. These packets can take different routes and be reassembled at the destination.

  • What are routers and what role do they play in the Internet?

    -Routers are special computers on the Internet that act like traffic managers, keeping packets moving through the networks smoothly and choosing the best available path for each packet based on various factors.

  • What does 'cheapest' mean in the context of choosing a path for data packets?

    -'Cheapest' in this context refers to the most efficient path in terms of time and non-technical factors such as politics and relationships between companies, rather than monetary cost.

  • What is the Transmission Control Protocol (TCP) and how does it ensure data delivery?

    -TCP is a protocol that manages the sending and receiving of data packets. It ensures all packets are delivered by doing a full inventory upon arrival and sending back acknowledgements for each packet received. Missing packets are resent until all are accounted for.

  • How does the TCP protocol handle missing or incomplete packets?

    -If TCP detects missing or incomplete packets, it will request the sender, such as Spotify, to resend them. Only after TCP verifies the delivery of all packets will the data, like a song, start to play.

  • Why is the Internet considered scalable and reliable?

    -The Internet is scalable and reliable due to its principles of fault tolerance and redundancy. The system can work with a small or large number of devices, and adding more routers increases the network's reliability.

  • How do the different systems that make up the Internet communicate and work together?

    -The different systems on the Internet communicate and work together based on agreed-upon standards for how data is sent around, allowing for seamless data transfer across various networks and devices.

Outlines

00:00

๐ŸŒ Internet's Indirect Data Delivery

This paragraph introduces the concept of how the Internet delivers data in an indirect manner, contrary to the common misconception of direct connections. It explains that data travels in packets, similar to how one might choose different routes in a car based on traffic or road conditions. The paragraph also highlights the early development of the Internet by Bob Kahn and the narrator, emphasizing the importance of protocols and architecture in the Internet's design. It uses the analogy of transporting a space shuttle in pieces to illustrate how large data sets are broken down into smaller packets for transmission.

05:01

๐Ÿ”„ The Role of TCP in Internet Data Reliability

The second paragraph delves into the role of the Transmission Control Protocol (TCP) in ensuring the reliable delivery of data over the Internet. It describes TCP as a system that manages packet transmission, akin to a guaranteed mail service, where packets are sent, received, and acknowledged. The paragraph explains how TCP ensures all data packets are delivered correctly by requesting retransmission of any missing or incomplete packets. It also touches on the scalability and fault tolerance of the Internet, highlighting how the addition of routers enhances network reliability without disrupting service. The paragraph concludes by emphasizing the agreed-upon standards that allow diverse systems to communicate and function cohesively on the Internet.

Mindmap

Keywords

๐Ÿ’กInternet

The Internet is a global network of interconnected computers and devices that communicate with each other using standardized protocols. It is the central theme of the video, as it discusses the reliability and functioning of the Internet. The script uses the term to describe the complex system that allows for the transfer of data, such as when playing a song from Spotify, which is not a direct connection but rather a series of interconnected networks.

๐Ÿ’กPacket

In the context of the video, a packet refers to a unit of data that is sent over the Internet. It is the fundamental way information is transmitted, with each packet containing parts of a larger message. The script illustrates this with the analogy of a car, where packets, like cars on a road, may take different routes to reach their destination, and can arrive out of order but are reassembled at the destination.

๐Ÿ’กRouters

Routers are specialized computers on the Internet that act as traffic managers, directing packets to their destinations. They are crucial to the video's theme of Internet reliability, as they determine the best path for data to travel based on various factors. The script explains that routers keep track of multiple paths and choose the most efficient one, contributing to the fault tolerance of the network.

๐Ÿ’กTCP (Transmission Control Protocol)

TCP is a protocol that ensures the reliable transmission of data over the Internet. It is highlighted in the script as a 'guaranteed mail service' that manages the sending and receiving of data packets. TCP checks for missing packets and requests retransmission if necessary, ensuring that data, such as a song from Spotify, is delivered in its entirety and plays perfectly.

๐Ÿ’กReliability

Reliability in the video refers to the consistent and dependable delivery of data over the Internet. It is a key principle of the Internet's design, as explained by the script, which emphasizes the network's ability to keep sending packets even when something goes wrong. The script also mentions that the Internet's reliability is based on its fault tolerance and redundancy.

๐Ÿ’กIP Address

An IP address is a numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication. In the script, it is mentioned that each packet has the IP address of its origin and destination, which helps routers direct the packets to their correct paths.

๐Ÿ’กBob Kahn

Bob Kahn is one of the 'fathers of the Internet,' as mentioned in the script. He, along with his partner, is credited with designing the Internet's protocols and architecture. His contribution is essential to the video's narrative, as it discusses the origins and development of the Internet.

๐Ÿ’กCongestion

Congestion in the video refers to the state of being overcrowded or packed full, particularly in the context of data traffic on the Internet. The script explains that if one route is congested, individual packets may take alternative routes, which is part of the Internet's design to maintain smooth data flow.

๐Ÿ’กFault Tolerance

Fault tolerance is the ability of a system to continue operating properly in the event of the failure of some of its components. The script describes the Internet as fault-tolerant, meaning it can keep functioning and sending packets even if parts of the network fail, which is a key aspect of its reliability.

๐Ÿ’กRedundancy

Redundancy in the video is the presence of backup systems or components that can take over in case of a failure. It is related to the concept of fault tolerance, as the script explains that having multiple paths for data to travel makes the network more reliable by providing alternative routes when needed.

๐Ÿ’กProtocols

Protocols in the video are the set of rules governing the format and transmission of data over the Internet. The script mentions that the Internet's protocols and architecture were designed by the speaker and Bob Kahn, which are essential for the reliable and efficient functioning of the Internet.

Highlights

The Internet's reliability is often taken for granted despite the vast amount of information being transmitted.

The Internet does not operate on direct, dedicated connections but uses a less direct method for data transmission.

In the 1970s, the design of the Internet's protocols and architecture was initiated by Bob Kahn and Vint Cerf.

Data on the Internet travels in packets, which can change paths dynamically during transmission.

Packets of information on the Internet are similar to transporting goods in vehicles, adapting to traffic and road conditions.

Large files like images are broken down into smaller packets for transmission.

Routers on the Internet act as traffic managers, directing packets based on the destination IP address.

Packets may take different routes and arrive out of order, but are reassembled at the destination.

The 'cheapest' path for data is determined by factors like time and non-technical aspects, not cost.

The Internet's fault tolerance allows continuous packet transmission even when some components fail.

TCP (Transmission Control Protocol) ensures reliable data delivery by managing packet sending and receiving.

TCP verifies the delivery of all packets, requesting retransmission of any missing or incomplete packets.

The scalability of TCP and router systems allows the Internet to handle billions of devices without service interruption.

The Internet's growth and scaling can occur without disrupting service due to its principles of fault tolerance and redundancy.

Hundreds of thousands of networks and billions of devices connect and communicate through agreed-upon Internet standards.

Computing devices and routers help packets reach their destinations, where they are reassembled in the correct order.

The Internet facilitates billions of data transmissions daily for various activities like emails, web browsing, video chats, and IoT communications.

Transcripts

play00:00

- [Voiceover] Seven, six, five, four, three, two, one.

play00:02

(funky music)

play00:08

- Hi, my name is Lynn Root. I am the Software Engineer

play00:10

here at Spotify, and I will be the first to admit that I

play00:13

often take for granted the reliability of the Internet.

play00:17

The sheer amount of information zooming around the

play00:19

Internet is astonishing. But how's it possible for every

play00:22

piece of data to be delivered to you reliably?

play00:26

Say you want to play a song from Spotify.

play00:28

It seems like your computer connects directly to

play00:30

Spotify's servers, and Spotify sends you a song

play00:33

on a direct, dedicated line. But actually, that's not

play00:35

how the Internet works.

play00:38

If the Internet were made of direct, dedicated connections,

play00:41

it would be impossible to keep things working as

play00:43

millions of users join, especially since there is no

play00:46

guarantee that every wire and computer is

play00:48

working all the time.

play00:49

Instead, data travels on the Internet in a much less

play00:53

direct fashion.

play00:55

- Many, many years ago, in the early 1970s,

play00:58

my partner, Bob Kahn, and I began working on

play01:01

the design of what we now call the Internet.

play01:04

Bob and I had the responsibility and the opportunity

play01:08

to design the Internet's protocols and its architecture.

play01:12

So, we persisted in participating in the Internet's growth

play01:16

and evolution for all of this time,

play01:18

up to, and including, the present.

play01:21

The way information gets transferred from one computer

play01:24

to another is pretty interesting.

play01:27

It need not follow a fixed path.

play01:29

In fact, your path may change in the midst of a

play01:31

computer-to-computer conversation.

play01:34

Information on the Internet goes from one computer

play01:36

to another in what we call a packet of information,

play01:40

and a packet travels from one place to another on

play01:42

the Internet a lot like how you might get from one place

play01:45

to another in a car, depending on traffic congestion or

play01:49

road conditions, you might choose or be forced to take

play01:52

a different route to get to the same place each time

play01:55

you travel.

play01:58

And just as you can transport all sorts of stuff

play02:00

inside a car, many kinds of digital information can be

play02:03

sent with IP packets, but there are some limits.

play02:08

What if, for example, you need to move a space shuttle

play02:11

from where it was built to where it will be launched?

play02:13

A shuttle won't fit in one truck, so it needs to be broken

play02:16

down into pieces, transported using a fleet of trucks.

play02:19

They could all take different routes, and might get to

play02:21

the destination at different times, but once all the pieces

play02:24

are there, you can reassemble the pieces into the

play02:27

complete shuttle, and it'll be ready for launch.

play02:31

On the Internet, the details work similarly.

play02:34

If you have a very large image that you want to send

play02:36

to a friend or upload to a website, that image might

play02:40

be made up of tens of billions of bits of ones and zeroes,

play02:43

too many to send along in one packet.

play02:46

Since it's data on a computer, the computer sending

play02:48

the image can quickly break it into hundreds or even

play02:50

thousands of smaller parts called packets.

play02:55

Unlike cars or trucks, these packets don't have drivers,

play02:57

and they don't choose their route. Each packet has

play03:00

the internet address of where it came from and where

play03:02

it's going. Special computers on the Internet,

play03:05

called routers, act like traffic managers to keep the

play03:07

packets moving through the networks smoothly.

play03:11

If one route is congested, individual packets may

play03:14

travel different routes through the Internet,

play03:16

and they may arrive at the destination at slightly

play03:18

different times, or even out of order.

play03:22

- So, let's talk about how this works.

play03:24

As part of the Internet Protocol, every router

play03:26

keeps track of multiple paths for sending packets,

play03:29

and it chooses the cheapest available path for

play03:32

each piece of data, based on destination

play03:34

IP address for the packet.

play03:36

"Cheapest," in this case, doesn't mean cost,

play03:38

but time and non-technical factors such as politics

play03:41

and relationships between companies.

play03:44

Often the best route for data to travel isn't necessarily

play03:47

the most direct. Having options for paths makes the

play03:50

network fault tolerant, which means the network can

play03:53

keep sending packets, even if something goes horribly,

play03:55

horribly wrong. This is the basis for a key principle of

play03:59

the Internet, reliability.

play04:03

Now, what if you want to request some data

play04:05

and not everything is delivered?

play04:07

Say you want to listen to a song.

play04:09

How can you bee 100% sure all the data will be

play04:12

delivered so the song plays perfectly?

play04:14

Introducing your new best friend, TCP,

play04:16

Transmission Control Protocol.

play04:19

TCP manages the sending and receiving of all your data

play04:22

as packets. Think of it like a guaranteed mail service.

play04:26

When you request a song on your device,

play04:28

Spotify sends the song broken up into many packets.

play04:32

When your packets arrive, TCP does a full inventory

play04:35

and sends back acknowledgements of each packet received.

play04:39

If all packets are there, TCP signs for your delivery,

play04:42

and you're done.

play04:43

(upbeat music)

play04:50

If TCP finds some packets are missing,

play04:52

it won't sign. Otherwise, your song wouldn't sound as good,

play04:55

or portions of the song could be missing.

play04:58

For each missing or incomplete packet,

play05:00

Spotify will resend them. Once TCP verifies the delivery

play05:04

of many packets for that one song request,

play05:07

your song will start to play.

play05:08

(upbeat music)

play05:11

What's great about the TCP and router systems is

play05:14

they're scalable. They can work with eight devices or

play05:16

8,000,000,000 devices. In fact, because of these principles

play05:19

of fault tolerance and redundancy, the more routers we add,

play05:22

the more reliable the Internet becomes.

play05:25

What's also great is we can grow and scale the

play05:27

Internet without interrupting service for anybody using it.

play05:31

- The Internet is made of hundreds of thousands of

play05:33

networks and billions of computers and devices

play05:36

connected physically. These different systems that make up

play05:40

the Internet connect to each other, communicate with

play05:43

each other, and work together because of agreed upon

play05:46

standards for how data is sent around on the Internet.

play05:50

Computing devices, or routers along the Internet,

play05:53

help all the packets make their way to the destination

play05:56

where they're reassembled, if necessary, in order.

play06:01

This happens billions of times a day, whether you and

play06:05

others are sending an email, visiting a webpage,

play06:08

doing a video chat, using a mobile app, or when sensors

play06:12

or devices on the Internet talk to each other.

Rate This
โ˜…
โ˜…
โ˜…
โ˜…
โ˜…

5.0 / 5 (0 votes)

Related Tags
Internet ProtocolData ReliabilityPacket TransferTCPSpotifyBob KahnLynn RootRoutersFault ToleranceNetwork ScalabilityDigital Communication