Internet Flashcards

1
Q

What are individual computer(“nodes”) on the internet called and what do they do?

A

Host: they collect into networks on different scales; household, corporate, regional, national.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the internet?

A

A massive worldwide system of inter-networked hosts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is inter-networking?

A

Networks that are joined with other networks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

True or False, is your computer connect to a router and if so what is the rounder connect to?

A

True our computer is in fact connected to a router. The router is connected to a modem.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does your modem connect to? Add examples.

A

It connect to your internet service provide (ISP).
ex: Bell, Videotron (we pay to connect to their ISPs, hardware they maintain and operate.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the internet service provider (ISP) connect to?

A

They connect to n even bigger network called Network Service Providers (NSPs)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does NSPs provide access to?

A

They provide access to the “internet backbone”, the high speed “highways” of the internet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do we send messages to and from Europe? Asia, Africa, etc? How are these wires connected?

A

Network services provides have access to seafloor cables. (Re,beer that they are deep in the water, and that there are so many of them just in case a cable malfunctions and we need to keep the flow going)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The World Wide Web ( internet) uses clients-server architecture. What happens when a web browser (client) sends a request to a web server?

A

When the client sends a request to a web server it’s to create or retrieve a resource ( like an HTML page, a single webpage)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the two ways to access a webpage?

A
  1. Know the exact Internet protocol (IP) address of the side.
  2. Have a link or reference from another webpage ( which is why we call it web!)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does linkrot mean?

A

It means that we are slowly loosing references to these webpages, which means the web is always slowly dying.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What happens when you access your IG, Tik Tok, etc?

A

You are sending a request to view that website from your client(phone or laptop). Part of this request, you provide your credentials(email, password ) to prove you are you, and have correct access to these documents.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What do we call when data is broken down into fixed-sized bundles?

A

Packets equipped with meta data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does metadata include?

A

It includes the source and destination address to identify where it came from and is going (think of a piece of mail).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What did we used to do before packet switching?

A

Circuit switching ( we simply connected each device physically to one another!).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How does the 4 layer structure work?

A

Link: Network hardware handles this layer.
Network: This is where packets come in. OS handles this layer.
Transport: Abstraction on top of packets. Applications are programming against this layer.
Application: What are we actually doing with this network, all previous examples are applications.

17
Q

What is each node ( a host or a router) in the internet assigned with?

A

It’s assigned an IP address, which looks like 142.251.41.46. This is a 4 byte integer, separated by decimal.

18
Q

What are Domain Name systems “DNS”?

A

Servers which map URLs(Uniform Resource Locators) to IP adresses.

19
Q

Routers are intermediary devices. What solves the routing problem?

A

The network layer solves the routing problem.

20
Q

Given a destination address where should a router forward a packet to next?

A

Routers use a data structure called a routine table that expresses for a given range of destination address, where the package should be sent next?

21
Q

Why is IP unreliable?

A

IP does not guarantee message deliver.
-Messages could be lost or corrupted in transit.
-Messages could arrive out of order at their destination
A transport-layer protocol accounts for this.

22
Q

There are several Transport Layer Protocols (ex: TCP and UDP)
What are the characteristics of TCP (transport control protocol)?

A

TCP is built on top of IP.
-Connection oriented. Enpoitns wanting to communicate first establish a connection by a special back-and-forth exchange of IP packets
-Stream abstraction. The connected endpoints communicate by sending streams of bytes, not breaking it up into packets
-Reliability. TCP includes acknowledge of receipt fo data. Data loss or corruption is detected and packets are re-esnt automatically as needed
The OS implements TCP for you.

23
Q

What does TCP establish and what is the “handshake” procedure?

A

TCP establishes a connection between two parties
One party is the server, the other is the client
“Handshake” procedure:
1.A server starts listening for incoming connections
2.A client requests to connect to the listening server
3.The server accepts or rejects the connection
4.The client acknowledges the connection was rejected or accepted

24
Q

What is HTTP?

A

HTTP is one protocol of application layer that structure requests and responses of server. Most commonly, HTTP is used to request HTML pages from web sites, but it also facilitates the exchange of all sorts of data.

25
Q

HTTP structure request

A

HTTP specifies very clearly what kinds of requests you can make and the kinds of réponses you can expect. This is the purpose of an application layer protocol: to structure communication to and from computers.

26
Q

What does the HTTP request have?

A

1.A request line specifying:
a)the HTTP method (GET, PUT, DELETE…), resource (name of the file we’re trying to access, like index.html), and HTTP version

2.Headers, providing metadata about the request, like:
a)the host (the url you’re trying to access), user-agent (your client), and accept (what kind of data it’s asking for (ex text))

3.A body (optional)
a)In the instance where we want to add data to server, it would go here.

27
Q

HTTP responses.

A

Just as requests are hugely structure, so are responses from servers.

HTTP responses have 3 main components:
1.Status line
a)The HTTP version, status code (100, 200, 300 etc.) indicating the kind of response and some human readable reason

2.Headers
a)Such as the content type of the response (text, json, etc), length of the response

3.Body (optional)
A)Contains the actual data requested. In the case of requesting HTML files, the body would be the actual code of the website in HTML!

28
Q

What are API calls?

A

APIs (Application Programming Interfaces) are rules that allow programs to communicate with each other. We use APIs to get data from servers, send data (like filling out forms), or even control computers remotely.

29
Q

Note; responses can include more request!

A

Websites often have extra files, like images, that also need to be loaded. Since browsers can only request one thing at a time, every time a page includes a <src>, <link></link>, or

 tag, another HTTP request is made to the server hosting that resource. This is why some images take time to lead your browser is still waiting for the HTTP response. You can see these requests in. Action by checking the “Network” tab in your browser’s developer tools.
</src>
30
Q

What is the curl command.

A

Short for Client URL is a command line library for transferring data to and from servers on the application layer. It supports many different protocols, and as we see it for HTTP!
We use -x GET, here we are literally programming our request will be a GET request.

31
Q

What are HTTP servers configured to accept?

A

They are configured to accept HTTP requests (usually on port 80) and serve the correct file depending on the request.
Python has a very convenient module that will turn my directory in an http server using python -m http.server.

32
Q

What is the difference between circuit switching and packet switching?

A

Circuit switching reserves a dedicated line for communication, while packet switching sends data in packets over shared paths, making it more flexible and efficient.