Application Layer Flashcards

1
Q

What is the Application Layer?

A

Application Layer is the top part of the TCP/IP model. It helps programs like web browsers, email apps, and file-sharing tools talk over the internet

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

Where do network applications run?

A

On the network edge (end-systems), not on the network core (routers).

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

What is a process in networking?

A

It’s a program on your device that can talk to other programs, either on the same device or over the internet

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

Difference between client and server processes?

A

Client starts the talk, server waits for it.

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

What are the two types of application architectures?

A

Client-Server: One main server, clients ask for stuff.
P2P (Peer-to-Peer): Everyone can share and ask; no main server.

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

What is a socket?

A

The connection point where a program talks to the network using the transport layer

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

What identifies a socket?

A

Unique combination of an IP address and port number

e.g., 194.80.24.5:80

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

What transport services might applications need?

A

Data Integrity: Ensures accurate file transfer.

Timing: Important for real-time services like gaming and VoIP.

Throughput: Measures data rate, important for video streaming.

Security: Ensures safe communication, e.g., with HTTPS.

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

Compare TCP and UDP.

A

TCP: Reliable, connects before sending data, controls flow and congestion.

UDP: Unreliable, no connection, no flow or congestion control.

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

What is HTTP?

A

The Application Layer protocol used by the World Wide Web. It doesn’t keep track of previous interactions and follows a client-server mode

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

HTTP default ports?

A

HTTP: Port 80
HTTPS: Port 443

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

What is the difference between non-persistent and persistent HTTP?

A

Non-persistent: A new connection is made every time something is needed.
➤ Like calling someone again and again for each question you ask.

Persistent: One connection is kept open to get everything needed.
➤ Like calling someone once and asking all your questions in one call.

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

HTTP request message components?

A

Request Line: Says what you want.
➤ Like “I want the homepage” (e.g., GET /index.html HTTP/1.1)

Header Lines: Extra info about the request.
➤ Like “Here’s who I am” or “I’m using Chrome” (e.g., Host, User-agent)

Blank Line: Just a separator.
➤ Like leaving a line blank before writing a message.

Optional Body: Extra stuff you send (if needed).
➤ Like sending a filled form (e.g., name, email).

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

Common HTTP methods?

A

GET, POST, HEAD, DELETE, CONNECT

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

Common HTTP response status codes?

A

200 OK
301 Moved Permanently
400 Bad Request
404 Not Found
505 HTTP Version Not Supported

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

What are the 3 main components of email?

A

User Agents (e.g., Outlook)
Mail Servers
SMTP protocol

17
Q

What is SMTP? Simple Mail Transfer Protocol

A

Used to send emails between servers.

Port: 25

Protocol: TCP (means it’s reliable)

Structure: Client-Server (the sender is the client, the receiver’s mail server is the server)

18
Q

Phases of SMTP message transfer?

A

Handshaking
Message Transfer
Connection Closure

19
Q

What are common mail access protocols?

A

POP3: Simple, stateless
IMAP: Stores emails server-side, allows folder use
HTTP: Used for webmail clients

20
Q

Difference between POP3 and IMAP?

A

POP3 (Post Office Protocol 3):

Downloads email to one device

Removes it from the server

Think: Like picking up a letter from the post office, you have it now, but it’s gone from the post office

IMAP (Internet Message Access Protocol):

Emails stay on the server

You can see the same emails on all devices

Think: Like checking email from the cloud, every device sees the same thing

21
Q

What is DNS?

A

Application Layer protocol that turns website names into IP addresses. It’s like the Internet’s address book

22
Q

Why is DNS distributed and hierarchical?

A

Make it easy to grow,
Don’t rely on one part that can break everything,
And keep things fast with less traffic and delay.

23
Q

Three main layers of DNS hierarchy?

A

Root DNS servers
TLD DNS servers (e.g., .com, .uk)
Authoritative DNS servers

24
Q

What are local DNS servers?

A

Send your DNS questions to the global system and save the answers to respond faster next time

25
Common DNS record types?
Type A – Hostname to IP Type CNAME – Alias name Type NS – Domain name server Type MX – Mail server