ch.1how the internet works

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/55

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 6:40 PM on 9/22/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

56 Terms

1
New cards

How does the general tech savvy public think about web scrapers?

It's about retrieving HTML data from a domain page, parsing that data for target information, storing the target information, and Optionally moving to another page to repeat the process

2
New cards

What do most programmers actually know about how the internet works?

They only know abstractions that extends as far as what was required for them to solve a particularly tricky problem once in their career

3
New cards

What does this book teach about the internet?

Abstractions that describe the mechanics of the internet and web applications, to the extent needed to scrape the web( and then maybe a little more)

4
New cards

How is the internet governed?

There is no all-powerful governing body; different parts of the internet are governed by several different organizations

5
New cards

How did these internet-governing organizations develop?

Over time on a somewhat ad hoc(impromptu and for a specific purposse)and opt-in basis

6
New cards

What happens if you don't abide by these governing organization’s standards?

Your contributions to the internet may not work

7
New cards

What is web scraping?

Essentially, the practice of substituting a web browser for an application of your own design

8
New cards

Why is it important to understand the standards and protocols of browsers as a web scraper?

As a web scraper, you must both mimic and at times subvert the expected customs of the internet and its practices

9
New cards

In the early days, how were téléphone calls connected to each other?

Each téléphone was connected to a physical wire which was connected to a switchboard and switchboard operators had to create a line of wires between you and the recipient’s phone

10
New cards

In the modern day, how does data know where to go?

The data guides itself, in a process called packet switching

11
New cards

What technology is the one responsible for bring about the internet?

Packet switching

12
New cards

How does the process of packet switching work?

The message to be sent is divided into discrete ordered packets, each with its own sender and destination address

13
New cards

How do packets travel through networks?

Packets in the same message transmission might take different routes across the network and be reordered by the receiving computer when they arrive

14
New cards

Open Systems Interconnection(OSI) model

A way to describe a modern packet switching network

15
New cards

What are the 7 layers of the OSI model?

Physical, data link, network, transport, session, presentation, and application

16
New cards

In what layer of the OSI model do most web application developers spend their time?

Layer 7, the application layer

17
New cards

Which layer does this book focus most on?

Layer 7, application

18
New cards

TLS fingerprinting

A web scraping detection method that involves the transport layer

19
New cards

Why is it important to know about the other layers of the OSI model, not just application?

It can help you troubleshoot errors in your web applications and web scrapers

20
New cards

What does the physical layer of the OSI model do?

Specifies how information is physically transmitted with electricity over the ethernet wire in your house or any local network

21
New cards

What does the physical layer of the OSI model define?

Things like voltage levels that encode 1s and 0s and how fast those voltages can be pulsed; also how radio waves over bluetooth and wifi are interpreted

22
New cards

What does the physical layer of the OSI model not involve?

Programming or digital instructions; it is based purely on physics and electrical standards

23
New cards

What does the data link layer of the OSI model specify?

How information is transmitted between to nodes in a local network, for example, between your computer and a router

24
New cards

What does the data link layer define?

The beginning and ending of a single transmission and provides for error correction if the transmission is lost or garbled

25
New cards

What happens to packets at the data link layer?

They are wrapped in an additional “digital envelope” containing routing information

26
New cards

What are the packets in the data link layer referred to as?

Frames

27
New cards

What happens when the information in the frame is no longer needed?

It is unwrapped and sent across the network as a packet

28
New cards

What happens in the data link layer to all the devices on a network?

They are receiving the same data at all times and there's no actual switching or control over how the data is going

29
New cards

What do devices that don’t have data addressed to them do at the data link layer?

They will generally ignore the data and wait until they get something that's meant for them

30
New cards

What happens at the network layer?

Packet switching and therefore the internet

31
New cards

How are packets forwarded to their destinations in the network server?

by a router

32
New cards

What part of the Transmission Control Protocol/Internet Protocol(TCP/IP) is involved in the network layer?

Internet Protocol

33
New cards

What do IP addresses allow?

Any computer in the world can send data to an address

34
New cards

What is Layer 4?

Transport Layer

35
New cards

What is the transport layer for?

Connecting a specific service or application running on a computer, rather than connecting to the computers themselves; it is also responsible for any error connection or retrying needed in the stream of data

36
New cards

In what way is TCP picky?

It will keep requesting any missing packets until all of them are correctly received

37
New cards

What is TCP often used for?

File transfers

38
New cards

What must be done in TCP file transfer for it to work?

All packets must be correctly received in the right order

39
New cards

What does UDP stand for?

User Datagram Protocol

40
New cards

What will UDP do differently from TCP during file transfers?

It will happily skip over the missing packets in order to keep the data streaming in

41
New cards

In what situations is UDP often used?

Videoconferencing or audioconferencing

42
New cards

Why is UDP often used in video and audioconferencing?

A temporary drop in transmission quality is preferable to a lag in the conversation

43
New cards

Why are port numbers relevant to the transport layer?

Different applications on your computer can have different data reliability needs at the same time

44
New cards

What is an example of different data reliability needs?

Making a phone call while downloading a file

45
New cards

How is your operating system relevant to port numbers?

The OS assigns each application or service running on your computer to a specific port, from where it sends and receives data

46
New cards

Where does the OS write down the port number?

After the IP address, separated by a colon

47
New cards

Session layer

Responsible for opening and closing a session between two applications

48
New cards

What kind of information does the session layer contain?

What data has and hasn’t been sent, and who the computer is communicating with

49
New cards

How long does the session stay open?

Generally, for as long as it takes to complete the data request, and then closes

50
New cards

What does the session layer do if there’s a brief crash or disconnect?

It allows for retrying a transmission

51
New cards

How can the term “sessions” be used differently in computer science?

Sessions in the session layer of the OSI model are different from sessions and session data that the web developers usually talk about

52
New cards

Session variable

Part of a web application, they are a concept in the application layer that are implemented by the web browser software

53
New cards

How long do session variables stay in the browser?

For as long as they need to or until the user closes the browser window

54
New cards

How long do sessions usually last in the OSI model?

For as long as it takes to transmit a single file

55
New cards

Presentation layer

Transforms incoming data from character strings into a format that the application can understand and use; also responsible for character encoding and data compression

56
New cards

Example of what presentation layer does

Cares about whether incoming data received by the application represents a PNG file or an HTML file, and hands this file to the application layer accordingly