5.1 Flashcards

1
Q

What is the Internet?

A

A network of networks. (global system of computers connected together)

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

What means that the Internet is redundant?

A

Can reach a computer through multiple paths

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

What means that the Internet is hierarchical?

A

Organized into ever smaller groups

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

The Internet allows computers to send

A

information (bytes) to each other.

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

Explain the birth of the Internet.

A

It started in 1957 in response to Sputnik.
US initiative lead to ARPA.
ARPANET in 1969 connected 4 universities.

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

There was an evolution on the internet. Distinguish between early-use, 1990s and today.

A

Early-use: email, file transfer, scientific calculations.
1990s: user-friendly tools, public subscriptions.
Today: 15,14 billion nodes, 5,19 billion nodes, over 330000000 TB of daily data!

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

When you use a website, you are…

A

connected to a large network of computers in the internet.

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

Explain what’s the server and the client in the client-server network model.

A

Server: power computer that can provide resources or services to one or more clients.

Client: a computing device that needs access to the resources or services provided by your server.

The client is connected to a network of computers & your server should be connected to this network as well.

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

Most servers tend to have a…

A

one-to-many relationship with clients.

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

Explain what the traceroute command does.

A

It’s a tool that shows the path data takes from your computer to a destination on the Internet. It displays the IP addresses of the routers it passes through & measures how long it takes to reach each one.

We can diagnose network issues & understand the route data follows.

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

Explain how the client-server model works.

A
  1. client asks server for information (request)
  2. request is sent to server
  3. server decodes request, sends back information (response)
  4. client interprets response
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Explain the client-server model with an example.

A

If you are loading a website, then the client is your computer, the server is another computer at the URL and the request is ask for a webpage.

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

Internet is a type of network, which one? Develop the answer.

A

Internet is a WAN in which all computers communicate using a standardized protocol known as IP.

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

URL:

A

Uniform Resource Locator

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

Protocol:

A

rules for information

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

Domain Name:

A

gets converted to an IP adress via a Domain Name Server (DNS)

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

IP Adress:

A

computer-readable

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

Hierarchy:

A

each byte of the adress gets more specific

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

A protocol specifies how the communication is handled by establishing a…

A

standardized vocabulary.

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

A protocol can specify two things:

A

Hardware details: frequency at which the data is transmitted.

Software details: representation of an address (name in the network).

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

Which is the protocol suite used for the Internet?

A

TCP/IP

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

The TCP/IP Protocol sets…

A

the rules for sending information between computers.

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

Why is the TCP/IP Protocol important? What would happen if it didn’t exist?

A

The TCP/IP is important because we need a standardized vocabulary for the Internet, also be able to have global communication, reliability, security, good addressing and routing… If these protocols didn’t exist, we will lack of standardized rules for communication, data exchange, or addressing. Therefore, the network will become chaotic and unreliable with low efficiency

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

Which are the layers in the TCP/IP Protocol?

A

Application layer
Transport layer
Internet layer
Network layer

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

Explain briefly the network layer.

A

Captures the physical aspects of data transmission such as the media used (wire/wireless) & the hardware related protocols.

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

Explain briefly the internet layer.

A

Looks after the logical transmission of data. We define the logical address (IP) of our devices connected to the Internet in this layer.

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

Explain briefly the transport layer.

A

This layers is responsible for end-to-end communication, specifically error-free transfer. Ex: TCP & UDP protocols.

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

Explain briefly the application layer.

A

This is where your server needs to define its networking preferences such as using SSL, etc.

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

In the application layer, arrival protocols facilitate…

A

data conversion & interpretation for specific applications.

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

In the application layer, arrival protocols define…

A

rules for data presentation (HTML/CSS), encryption, and session management (cookies).

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

Name two types of protocols related to the application layer. (what are they used for?)

A

HTTP (Hypertext Transfer Protocol): used for web browsing, defines how web browsers & servers communicate.

SMTP (Simple Mail Transfer Protocol): used for email transmission between mail servers.

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

The transport layer is responsible for…

A

end-to-end communication & data integrity.

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

The transport layer handle

A

data segmentation, sequencing, error correction, & flow control.

34
Q

Name two core Internet protocols for data handling.

A

TCP (Transmission Control Protocol)
UDP (User Datagram Protocol)

35
Q

TCP is…

A

reliable

36
Q

UDP is…

A

faster

37
Q

A packet is…

A

data parcel sent across a network

38
Q

TCP separates information into…

A

chunks (packets)

39
Q

TCP … packets

A

sends & reassembels

40
Q

TCP ensures

A

information is complete & correct

41
Q

Most computing networks are connected to the Internet

A

adhere to the TCP/IP protocol

42
Q

Every device is assigned a unique…

A

4-byte IP adress (IPv4)

43
Q

From where do you get your IP adress?

A

Through the ISP (Internet Serves Provider) when using the Internet.

44
Q

Which are the two types of IP adresses? (related to change)

A

Static: your IP adress does not change
Dynamic: your IP adress changes frequently

45
Q

Which are the two types of IP adresses? (related to privacy)

A

Public: this IP adress is accessible from anywhere on the Internet
Private: are only valid within in a local network

46
Q

If you Google your IP adresss…

A

you are presented with your public adresses.

47
Q

Explain the difference between IPv4 and IPv6.

A

IPv4 is a 4-byte IP address typically expressed in dotted-decimal format, like “192.168.1.1.”

IPv6 is a 16-byte IP address expressed in hexadecimal notation with colons, like “2001:0db8:85a3:0000:0000:8a2e:0370:7334.”

48
Q

Why do we need IPv6?

A

Because we run out of combinations for IPv4 as there’s too many people and to many devices.

49
Q

What are domain names (give an example) and why we need them?

A

We have domain names because we need an easy-to-remember IP address representation. A real life-example of a domain name is www.wikihow.com.

50
Q

What does the DNS (Domain Name System) do?

A

Tracks domain names and IP addresses.

51
Q

Give examples of top-level domains:

A

.edu, .org, .nl

52
Q

Describe how domain names are hierarchical. (use an example)

A

Domain names are hierarchical as they have the top-level domain (TLD) which is the highest level in the hierarchy, like .edu, .org, .com. etc. For example, in www.wikihow.com the top-level domain is .com, the second-level domain is wikihow and the subdomain is www. Each byte of the address gets more specific.

53
Q

What is DNS spoofing?

A

When a client sends a request to a real website, but the DNS Resolver is attacked by an attacker, who uses his server to send a spoofed response to the DNS Resolver and then, the DNS Resolver sends that response to the client. So, the request resolves to fake website.

54
Q

What does the Network Layer do?

A

Define the physical connection between devices.
Specify cable types, signal standards, and data rates.

55
Q

Ethernet is…

A

standard for wired connections (twisted-pair or coaxial cables)

56
Q

Wi-Fi is…

A

standard for wireless connections, using radio frequency technology.

57
Q

Wi-Fi handles communication to/from…

A

router.

58
Q

Who governs the Internet?

A

No single entity runs the Internet.
Is governed by shared protocols, procedures, technologies (standardisation).
Supervised by ICANN.

59
Q

What is ICANN?

A

Internet Corporation for Assigned Names & Numbers.

60
Q

A router helps us in two ways:

A

Forward packets to the clients & servers.
Handle the allocation & deallocation of Private IP addresses.

61
Q

What is our solution relating to the expensive memory and CPU?

A

We link cheap computers into a “giant” computer (each computer solves/stores part of the problem)

62
Q

What are the challenges to the solution related to expensive memory and CPU?

A

Computer failures
Storing information across multiple computers
Waiting for all computers to finish calculations

63
Q

Application Programming Interface acts as an…

A

intermediary between two applications (usually client & server)

64
Q

What APIs do?

A

Define what operation can be performed on the server and how those operations can be executed, and the data format used for communication.

65
Q

APIs allow:

A

abstraction & access. This means it allows you to use functionalities of a web server without knowing how it works.

66
Q

Define API.

A

Set of rules & commands for data access.
Is a set of rules, protocols, and tools that allows different software applications to communicate with each other.

67
Q

Give an example of an API.

A

The weather bureau’s software system contains daily weather data, so your phone “communicates/talks” with this system via APIs and then shows you daily weather updates on your phone.

68
Q

Why we want to serialize & deserialize data?

A

Because we want to be able to transfer code to any other language and then run it in any device.

69
Q

Give an example of serializing & deserializing data:

A

Serialize Swift into JSON and deserialize JSON to Python.

70
Q

What is JSON?

A

JSON is JavaScript Object Notation, when structuring data for APIs we commonly use JSON as it’s easy to understand for humans and it has a highly versatile format.

71
Q

What is special of JSON?

A

From JSON we can transfer code to any other language!

72
Q

What is formatting data?

A

Structuring data for APIs (organization & format(JSON))

73
Q

Identify the main components of an API. (7)

A

Endpoint
Method
Headers
Request body
Response
Authentication
Documentation

74
Q

Explain Endpoint function.

A

This is the URL of the API, which specifies the location of the API and the resources it can access.

75
Q

Explain Method function.

A

This specifies the type of request being made to the API, such as GET, POST, PUT, DELETE, etc.

76
Q

Explain Headers function.

A

These contain additional information about the request, such as authentication details, content type, and other metadata.

77
Q

Explain Request body function.

A

This is the data sent to the API as part of the request.

78
Q

Explain Response function.

A

This is the data that the API sends back in response to the request. It may include a status code, headers, and a response body.

79
Q

Explain Authentication function.

A

This is a mechanism to verify the caller’s identity and ensure that only authorized users can access the API.

80
Q

Explain Documentation function.

A

This is information about using the API, including details about the endpoint, methods, parameters, and response format.