Network Flashcards

(21 cards)

1
Q

What is the first thing that happens when you type a URL and press enter? And next?

A

The browser checks if the URL is valid and well-formed.

After that the browser tries to find the IP address in the DNS (domain name system) cache. If its not there, it looks for it in the DNS server using a recursive method.
When it finds it, browser then establishes TCP connection with the web server, sends the HTTP request to the server and the server sends back the http response so the browser can render the http content (html, javascript bundles and resources).

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

What does DNS do in this process?

A

DNS translates the domain name (e.g., google.com) into an IP address.

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

What happens after the IP address is resolved?

A

The browser establishes a TCP connection with the server using the resolved IP address.

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

What is a TCP handshake?

A

It is a process of establishing a reliable connection between client and server (SYN, SYN-ACK, ACK).

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

What protocol is used after TCP is established?

A

HTTP or HTTPS protocol is used to request data from the server.

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

What happens during an HTTP request?

A

The browser sends a GET request for the specific resource (HTML, CSS, JS, etc.)

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

What does the server do after receiving the HTTP request?

A

The server processes the request and sends back an HTTP response, usually starting with an HTML file.

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

What happens when the HTML is received?

A

The browser parses the HTML, builds the DOM tree, and may make additional requests for CSS, JS, images, etc.

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

What is the CSSOM?

A

CSSOM is the CSS Object Model; it represents the CSS styles parsed separately from the DOM.

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

What is the Render Tree?

A

The Render Tree combines DOM and CSSOM to determine what is visible and how it should look.

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

What happens during layout?

A

The browser calculates the position and size of each element on the page.

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

What happens during painting?

A

The browser paints pixels on the screen based on the layout and styles.

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

What is compositing?

A

The browser assembles layers (e.g., for animations) and sends them to the GPU for final rendering.

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

What is the final step?

A

The page is displayed to the user; the browser continues to listen for further interactions.

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

What role does the browser cache play?

A

It can speed up page load by storing previously fetched resources like images, scripts, and stylesheets.

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

What is a Service Worker in this context?

A

It can intercept network requests and serve cached content to improve performance and offline access.

17
Q

What is HTTPS and why is it important here?

A

HTTPS encrypts data between the browser and server to ensure privacy and integrity.

18
Q

What is the role of cookies during this request?

A

Cookies may be sent automatically by the browser to provide session information to the server.

19
Q

How does the browser know how to handle a domain?

A

It checks the Same-Origin Policy to apply security rules to requests.

20
Q

What is a critical rendering path?

A

It is the sequence of steps the browser takes to convert HTML, CSS, and JS into pixels on the screen.

21
Q

What does URL stands for?

A

Uniform Resource Locator and consists of scheme (http or https), domain (example.com), path (/product), resource (/id)