[CS61C FA20] Lecture 31.5 - I/O: Networking — Transcript
Full transcript
- 0:00[Music]
- 0:10hello
- 0:11and welcome back to the wrap-up of the
- 0:14module
- 0:14that has been dealing with operating
- 0:17systems
- 0:18virtual memory and io devices other
- 0:21devices
- 0:22that we have talked about so far
- 0:25generally deal with the devices that are
- 0:28within
- 0:28one machine one computer disks
- 0:32keyboards mice displays and so on
- 0:38do we do something different to connect
- 0:41our computer to our computers
- 0:43through networking well it's all done on
- 0:47the same principles
- 0:48so let's just quickly recap what do we
- 0:50do
- 0:51with the networking so
- 0:54the idea of networking started
- 0:56originally to share
- 0:58devices between the computers like
- 1:00printers in the office
- 1:03then people started getting
- 1:08much more interest in moving files
- 1:11between computers
- 1:12instead of just copying them on a device
- 1:14that we used to have that was called the
- 1:16floppy disk
- 1:18um you could just send them directly to
- 1:20another
- 1:22device by using ftp or file transfer
- 1:24protocol
- 1:26then they figured out that it don't
- 1:29have to be like typed up files about
- 1:32you know some documents or a
- 1:34presentation or something like that
- 1:36people started using email
- 1:39then we started communicating between
- 1:44the networks of computers
- 1:46so we ended up with file sharing
- 1:49networks world wide web
- 1:51and many many many other things
- 1:55that run today's world how did the
- 1:58internet uh
- 1:59start about well um it started with
- 2:02ideas a long time ago around 1962.
- 2:07um look like they're all also known as
- 2:10lick while he was at
- 2:14dod's arpa which is nowadays darpa
- 2:18wrote a memo describing a desire to
- 2:20connect computers
- 2:22and he was targeting actually research
- 2:24network that would be connecting
- 2:26computers at stanford berkeley and ucla
- 2:30in 1969 so-called arpanet
- 2:35debuted and connected computers at ucla
- 2:39sri staff research institute
- 2:42utah and uc santa barbara not berkeley
- 2:47then robert khan and vincerp invented
- 2:51the
- 2:51tcp which is now part of
- 2:55the internet practical suite this is a
- 2:58way
- 2:59how the computers talk to each other
- 3:04internet from day one this
- 3:07desire to connect computers was very
- 3:10appealing
- 3:11and internet has been growing
- 3:13exponentially
- 3:14from then until now and into a for
- 3:18foreseeable future worldwide web
- 3:22came around when i was in college
- 3:2589 and it was clunky early on it was
- 3:29uh implemented by term tim berners-lee
- 3:32uh started at cern
- 3:36and then i think tim moved over to
- 3:40mit um it
- 3:44was called the system of inter
- 3:46interlinked hypertext documents
- 3:48on the internet um the idea
- 3:51originates uh early on to whenever bush
- 3:54um
- 3:55one of the really big computing pioneers
- 3:59that called envisioned a system like
- 4:01that but did not
- 4:02implement it
- 4:06well um timber nursery implemented
- 4:10the http
- 4:13and server using the internet
- 4:17it didn't take very long for the whole
- 4:19world to explode
- 4:21we witnessed the dot com boom
- 4:24and the bust after that that followed in
- 4:272001
- 4:28but everything recovered and we have
- 4:30access everywhere
- 4:33so what is behind the protocol there
- 4:37generally we send packets of data
- 4:41these packets of data are produced by
- 4:44software
- 4:46the software will
- 4:49you know the software application will
- 4:52copy
- 4:52the data to the os buffer os will
- 4:55calculate some kind of a checksum such
- 4:57that if there are errors during
- 4:58transmission because when
- 4:59data go on a far you know far or
- 5:03long trip some bits may get corrupted
- 5:06uh start a timer and then os sends the
- 5:09data to a network interface a hardware
- 5:11network
- 5:12interface and says start
- 5:16the data is packaged in a particular way
- 5:18as it's shown here
- 5:21that has its address of the destination
- 5:25of the source the link because some of
- 5:27these packets may be variable linked
- 5:29has some acknowledgement info and the
- 5:32payload which may be
- 5:34comments addresses or data and finally
- 5:36there's a
- 5:37has a trailer in the form of a checksum
- 5:40india
- 5:40checksum in the end now
- 5:43um on the receive side
- 5:47the data will show up in another network
- 5:49interface
- 5:51you know that's a special card um and
- 5:55will be transferred to the
- 5:56operating system buffer i think you're
- 5:58guessing what how would would end up
- 6:00being
- 6:01transferred to the uh os buffer or as
- 6:03we'll
- 6:04check if the checksum is correct if it
- 6:06matches
- 6:07if it is okay it will send the
- 6:09acknowledgement back
- 6:10to the sender if
- 6:14it is not okay then it will delete the
- 6:16message
- 6:18and um
- 6:22the sender is going to send it again
- 6:24center is also going to send it again
- 6:26if the if it does not receive an
- 6:28acknowledgement
- 6:30after the timer expires
- 6:33if everything is okay the message has
- 6:35been received
- 6:36and the os will copy it to the user
- 6:39space
- 6:39and signal supplication to continue and
- 6:42i think we all know
- 6:43the mechanism mechanisms how to do that
- 6:48what do we need in order to implement
- 6:49all this wonderful thing
- 6:51well we know everything we traditionally
- 6:54it is done
- 6:54using a network interface card um it's a
- 6:57card
- 6:58like this one that you will find
- 6:59nowadays in servers
- 7:02if it is a laptop it really shrunk to
- 7:04something
- 7:05that is just a chip on a board and you
- 7:08will generally find the wired or
- 7:09wireless interfaces
- 7:12how is the data transferred in some
- 7:13older cards it was done by using
- 7:16programmed i o in eurocards it's a dma
- 7:21so the dma is the mechanism
- 7:24to transfer data that is going to go
- 7:28on a long wedge over the internet from
- 7:32the main memory in the same way when it
- 7:34arrives
- 7:35to the to the destination its network
- 7:37interface card
- 7:38is going to use dma to transfer it back
- 7:41to the memory and that's it
- 7:45we have concluded this module we have
- 7:48actually
- 7:49done something again another big step
- 7:52we have figured out how computers work i
- 7:54mean i know that
- 7:55we all know how computers work but we
- 7:58now
- 7:59really know how they work we also
- 8:02figured out
- 8:02how does the os work and how can we
- 8:06interact with it
- 8:07we do have to take more classes to
- 8:09actually write an operating system
- 8:11but we may not need to do that
- 8:15we may be happy with just knowing how to
- 8:18interact it and pick some other classes
- 8:20the tourist classes are cool
- 8:23we also in the process built a virtual
- 8:25memory system and figured out how
- 8:27various kinds of physical devices work
- 8:30and why do we have such
- 8:32huge differences in
- 8:35speeds and affordability of different
- 8:37classes of memory
- 8:39so we get physical reasons why we had to
- 8:42build this big memory here hierarchy
- 8:46so that we can build this illusion of
- 8:50infinitely fast and infinitely big
- 8:53memory
- 8:54system and in the end we figured out
- 8:57how to attach peripherals to perform
- 9:01input and output and the same mechanism
- 9:04is used for
- 9:06connecting disks
- 9:09and ethernet cards to connect
- 9:12to the rest of the world
- 9:15that's it for this whole module
- 9:19we'll see you in the parallelism module
- 9:21after a longer break
About this transcript
This page contains the full transcript of [CS61C FA20] Lecture 31.5 - I/O: Networking by CS 61C Departmental, generated from the public captions YouTube serves with the video. The transcript has 1,152 words across 221 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.