Chapter 2 Flashcards

1
Q

User vs network oriented application layer protocols:

A

User = interact with end user
network = manage network

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

Why was LDAP implemented

A

Lightweight Directory Access Protocol:

Simplify access control to various applications being used on a network

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

3 Different types of network architecture:

A

1) Client-server
2) Peer-to-Peer
3) N-tier

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

What is a daemon?

A

Server software that starts when computer is started until shut down

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

What is the drawback of the Client-server network architecture?

A

Client always initiates communication

Fix: Peer-to-peer architecture

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

What is good about P2P ( Peer-to-peer ) networks?

A

No central server
Workloads shared among all nodes

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

Challenges of a P2P network?

A

Security + management

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

What is the 4 email protocols:

A

X.400
SMTP
POP3
IMAP4

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

What standard does the x.400 refer to?

A

ITU-T standards

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

What are the different elements that could be in a X.400 header?

A

C = country
A = admin management domain
P = private management domain
O = organization name
OU = organization unit
G = Given name
I = Initials
S = surname

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

How does x.400 notation look like

A

“I=J;S=Doe;O=acme;OU=sales;A=sapo;C=za”

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

Who will this x.400 email be sent to?
“I=J;S=Doe;O=acme;OU=sales;A=sapo;C=za”

A

J Doe who works at Acme in sales in south africa. sapo = south african post office

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

What does smtp stand for?

A

Simple mail transfer protocol

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

What rfc is SMTP defined by?

A

5321

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

What does smtp use to handle messages?

A

“agents”

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

What are the 2 agents in smtp?

A

MUA (mail user agent) MTA (mail transfer agent)

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

What is used to transfer an email for one UA to another UA?

A

1+ mta’s ( since the email needs to be transferred from one user to another )

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

What is the task of the MUA in SMTP?

A

Simply a piece of code that accepts a message and forwards it to a MTA ( sender )
Accept incoming mail and store in directory (receiver )

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

What is the task of the MTA in SMTP?

A

Find a route from sender to receiver and forward email along that route.

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

How do you indicate which MTA you would prefer to use?

A

Using the “preference”

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

What do MTA’s add to emails they process?

A

A header line “Received: “

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

What is the first thing you send to the SMTP server once you have connected to it?

A

HELO or EHLO ( extended hello )

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

How do you indicate who the email is from in SMTP?

A

MAIL FROM:

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

How do you indicate who the recipient of an email is with SMTP

A

RCPT TO:

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

What do you send to a SMTP server when you want to send data?

A

DATA

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

How do you end the email off with SMTP?

A

Single “.” on its own line

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

How do you terminate the connection with a SMTP/POP3 server?

28
Q

Which port is used to communicate between MTA’s?

29
Q

What is the SMTP submit port and its port number?

A
  1. When email software speaks to 1st MTA
30
Q

What is the most common protocol used for web based email software?

31
Q

What protocols do typical email programs combine?

A

SMTP + POP3

32
Q

How do you enter the username on a POP3 server?

A

USER username

33
Q

Does POP3 need auth? What about SMTP?

A

SMTP = no. POP3 = yes

34
Q

How do you enter your password on a POP3 server?

A

PASS password

35
Q

How do you retrieve/delete the 1st message on a POP3 server?

A

RETR 1 or DELE 1

36
Q

What port does POP3 servers use?

37
Q

What does POP3 stand for?

A

Post office protocol version 3

38
Q

What does IMAP4 stand for?

A

Internet Message Access Protocol v4

39
Q

How does IMAP4 “show” messages?

A

When a user clicks on a email it downloads it from the server and then displays it on the computer. But it remains stored on the server

40
Q

Why is IMAP better than POP3?

A

POP3 permanently stores the downloaded emails, but now we want to view it on multiple devices hence IMAP4 is used more often

41
Q

Key words for an IMAP session:

A

LOGIN, SELECT (folder), FETCH (message, can be used with ALL, FULL, FAST), TERMINATE

42
Q

What does ALL FULL and FAST do?

A

ALL = everything about the email besides the body
FULL = ALL + body
FAST = flags + date + size but no header/email body

43
Q

What does the \deleted, \answered, \seen flags indicate?

A

Deleted = true if the message is deleted.
same for the rest

44
Q

Port number for IMAP servers?

45
Q

Why were virtual terminals developed?

A

To connect remotely to another computer over the network

46
Q

Why is telnet bad?

A

Because username and password is transmitted as clear text

47
Q

what port does telnet use?

48
Q

What do you use if you want to echo ( view ) the characters you enter on a virtual terminal?

A

set localecho.

49
Q

What happens if you dont “set localecho”.

A

you wont see anything you enter ( if remote computer doesnt echo the characters )

50
Q

Problem with set localecho?

A

Password will be displayed as you log in

51
Q

What is a trusted virtual terminal protocol?

52
Q

Which port is SSH?

53
Q

commands to upload/download files with FTP?

A

get,put,mget,mput

54
Q

What will mput * abc * do?

A

upload all files with names that contain abc in the current client directory

55
Q

What does “get” correlate to on the FTP server?

56
Q

What does “put” correlate to on the FTP server?

57
Q

Does browsers contain functionality that corresponds to mget, put or mput?

58
Q

What was the special username used to download public files?

A

anonymous ( yes actually anonymous)

59
Q

What is the control connection port of FTP?

60
Q

What is the data connection port of FTP?

61
Q

What is PASV mode in FTP?

A

A different way to connect to FTP server.

Usually data channel is from server to client ( problems with firewall ) But with pasv client connects to server with data channel

62
Q

What is the only requests a web server has to support?

A

GET and HEAD

63
Q

What port does HTTP use?

64
Q

What port does HTTPS use?

65
Q

At what layer does HTTPS use encryption?

A

HT(T)PS = transfer = transport layer = layer 4

66
Q

Best known tool to sniff traffic?

67
Q

When sniffing traffic, which layer’s packet will you sniff?

A

Layer 2 ( but 3-7 packets would also be included as a payload ( builds from 7 - 1)