Exam Flashcards

1
Q

What are the 5 layers?

A

Application, Transport, Network, Link, Physical

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

What is c/s architecture?

A

Client/Server. Always on central server that requests and receives services from client devices

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

what is p2p archetecture.

A

Peer-to-peer. No central server, just peers pooling resources

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

Formula for dtrans

A

dtrans = L/R (packet size[bits]/ link bandwidth[bits/sec])

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

Formula non-persistant HTTP response time

A

2RTT + dtrans for file and each object

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

Throughput formula

A

min rate along the path

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

Formula dnodal

A

dnodal = dproc + dqueue + dtrans + dprop

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

Formula dprop

A

dprop = m/s (length[m]/prop speed[m/s])

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

Formula de2e

A

de2e = total packet size/e2e throughput

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

How many bits is IPv4

A

32

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

How many bits is port number

A

16

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

What are the reserved port numbers

A

0-1023

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

What is UDP and how many bytes is the header

A

connectionless transport protocol, 8 byte header

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

How to do checksum

A

1’s complement sum. Add numbers and wrap around extra bit. Flip each bit. Add together and should be all 1’s

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

Formula utilization with no window size

A

U = L/R / (L/R) +RTT

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

Formula utilization with window size N

A

U = N(L/R) / (L/R) +RTT

17
Q

What is TCP and how many bytes is the header

A

connection-oriented, needs handshake

18
Q

Formula Estimated RTT

A

EstRTT = (1-a)estRTT + asampleRTT

19
Q

Formula Dev RTT

A

DevRTT = (1-B)DevRTT + B|sampleRTT-estimatedRTT|

20
Q

What is average TCP throughput

A

Avg TCP throughput ≈ 3/4 * W/RTT segments/sec

21
Q

How many bits is IPv6

A

128

22
Q

How big is IPv4 datagram

A

20B fixed, 40B optional

23
Q

How big is IPv6 datagram

A

fixed 40 B

24
Q

What does DHCP stand for

A

Dynamic Host Configuration Protocol

25
Q

What are the 5 DHCP messages

A

Discover, Offer, Request, Ack, Release

26
Q

RSA key generation process

A

Large primes p, q
n = pq z = (p-1)(q-1)
choose e such that 1 < e < z and is coprime to z
choose key d such that 1 < d < z and e*d mod z = 1

27
Q

RSA encryption formula

A

c = m^e mod n

28
Q

RSA decryption formula

A

m = c^d mod n

29
Q

Diffie-Hellman key exchange

A

Each person has private key a,
public key A = r^a mod p
and secret key k = B^a mod p

30
Q

Number of attempts to find a collision for a hash of length n

A

1.25 sqrt(2^n)

31
Q

Formula dc/s

A

max { NF/us, F/di }

32
Q

Formula dp2p

A

max { F/us , NF/(us + Nui) , F/di }