EECS148-hw2 2
EECS148-hw2 2
Homework 2.2
Due on Apr 30, 11:59 PM, PT
Also we need RTTo for setup the TCP and another RTTo for
connection
,
and
request receive the
objects .
(9)
-
= RTTIRTTzt -..
- RTTn + 26 RTTo
(b) 4 parrallel
/2
F =
3
RTTItRTTz + -..
- RTTh + I RTTo +. 2 S RTTo - .
=
RTTIRTTz + ...
- RTTh + SRTTo
2
:It is persistent
.
14 RtTo
d) - pipelining
,
c RTTI + RTTz +. -
+ RTTn + 3 RTTo
.
1
2. (11 Points) HTTP/1.1 v.s. HTTP/2
Assume that a webpage consists of an HTML file (http://www.uci.edu/index.html), one
video, and one image. The laptop initiating the request does not initially know the IP
address of www.uci.edu, necessitating a DNS query to the local DNS server as the first step.
The Round-Trip Time (RTT) between the laptop and the local DNS server is denoted as
RT TD , assuming the local DNS server has the cached record of www.uci.edu. Let RT Tcs be
the RTT between the laptop and the UCI webserver. The HTML file is small enough that its
transmission delay is negligible. The video is large, requiring 4 TCP segments (each of the
maximum segment size, MSS Bytes), and the image that follows fits into 2 TCP segments.
The transmission delay for each segment of the video and image is 41 ·RT Tcs . The transmission
delays for all other messages are considered negligible.
Assumptions:
Questions:
(a) Below is a detailed table illustrating all DNS, HTTP, and TCP messages exchanged from
the moment the domain www.uci.edu is resolved (t1 ). Assume HTTP/1.1 is used, with
persistent HTTP and pipelining. Please calculate the time intervals, and fill in the table
below.
(b) If we change HTTP/1.1 to HTTP/2, and assume each TCP segment fits a frame, what
are the durations for the video and the image to be downloaded?
/
3. (10 Points) SMTP and Phishing Email Analysis
Review the following raw SMTP source file of an email. Analyze the headers and the content
to answer the questions below.
on "Wed 10 Apr
and this email is
Content-Type: text/plain; charset="utf-8"
Il
accepted by server
20269 00 : 00 ,
:
Just a reminder about our meeting scheduled for 20th April 2024 at 10:00 AM.
Please let me know if you need to reschedule.
b) the email
Best, clearly
, We
use the time email was accepted by server , subtracts sent
you derive from header about the path taken by either server
this email? of sender and recipient.
(b) Compare the timestamps in the “Received” headers and the “Date” header. What can
you infer about the delay in email transmission?
(c) What is the content type of the email?
(2) the content
type
The following is another rawof
the email is "text/plain"
charset is ,
to be a phishing attempt. Analyze the headers and the content to answer the questions below
and identify any red flags that might suggest it is a phishing email.
PGh0bWw+DQo8aGVhZD48dGl0bGU+QWNjb3VudCBTZWN1cm
l0eSBOb3RpY2U8L3RpdGxlPjwvaGVhZD4NCjxib2R5Pg0K
PHA+RGVhciBKb2huLA0KPHA+V2UgaGF2ZSBkZXRlY3RlZC
B1bnVzdWFsIGFjdGl2aXR5IGluIHlvdXIgYWNjb3VudCBh
bmQgdXJnZW50bHkgcmVxdWlyZSB5b3UgdG8gdXBkYXRlIH
lvdXIgcGFzc3dvcmQgaW1tZWRpYXRlbHkuIFBsZWFzZSBj
3
bGljayBvbiB0aGUgbGluayBiZWxvdyB0byBjb25maXJtIH
lvdXIgaWRlbnRpdHk6IDxhIGhyZWY9Imh0dHA6Ly9tYWx3
YXJlLmV4YW1wbGUuY29tIj5DbGljayBIZXJlPC9hPjwvc
D4NCjxwPlRoYW5rIHlvdSw8YnI+RXhhbXBsZSBTdXBwb3
J0IFRlYW08L3A+DQo8L2JvZHk+DQo8L2h0bWw+
(d) What discrepancies or unusual patterns can you spot in the “Received” headers that
might suggest this email is not legitimate?
(e) The email body includes HTML content encoded in base64, and we have decoded the
content shown below. What red flags are associated with the hyperlink?
<html>
<head><title>Account Security Notice</title></head>
<body>
<p>Dear John,</p>
<p>We have detected unusual activity in your account
and urgently require you to update your password immediately.
Please click on the link below to confirm your identity:
<a href="http://malware.example.com">Click Here</a></p>
<p>Thank you,<br>Example Support Team</p>
</body>
</html>
are inconsistent
4 It uses different server and different protocols,
4
Des -max[in]
>
Suppose there is a task of distributing a file of F = 25 Gbits to N peers using both a server
and a peer-to-peer (P2P) distribution method. The server has an upload rate of us = 30
Mbps, and each peer has a download rate of di = 1.5 Mbps and an upload rate of u. For
various values of N and u:
• Peer upload rates, u = 600 Kbps, 800 Kbps, and 1.2 Mbps.
• Number of peers, N = 20, 200, 2000.
(a) Calculate and chart the minimum distribution time (keep 3 significant digits) for each
combination of N and u for both client-server and P2P distribution. Your chart should
follow the example chart below:
20 0.8 9 62 - 462
20 1.2 4
. 62 462
200 0.6 46, 2
9 . 25
200 1.2 46 : 2 5 . 14
462 11 2
2000 0.6 .
5 71
2000 1.2 482 .
(b) Discuss how changes in the number of peers and their upload rates a↵ect the overall
distribution time and network load. In particular, why P2P model is more efficient
when the number of peers increase?
As number increases, the PrP distribution time will increase but increases
peer ,
slower than Client-Server Time .
And as peer upload rate increase , the distribution
time decreases the load decrease
/
5
5. (15 Points) DNS
You are provided with the output of a dig command query for the domain “srv.qifanz.com”.
Analyze the provided dig result and answer the questions below.
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;srv.qifanz.com. IN A
;; ANSWER SECTION:
srv.qifanz.com. 300 IN CNAME qifanz-srv.dsp-lab.eng.uci.edu.
qifanz-srv.dsp-lab.eng.uci.edu. 43200 IN A 128.195.180.83
;; AUTHORITY SECTION:
uci.edu. 43200 IN NS ns2.service.uci.edu.
uci.edu. 43200 IN NS ns1.service.uci.edu.
;; ADDITIONAL SECTION:
ns1.service.uci.edu. 43200 IN A 128.200.1.201
ns2.service.uci.edu. 43200 IN A 128.200.192.202
(a) To resolve “srv.qifanz.com”, how many levels of name servers are involved during the
recursive resolution process?
(b) Is this query transmitted over TCP or UDP?
(c) What type of DNS record was queried for “srv.qifanz.com”? Is it an alias or canonical
name? If it is an alias name, what is the canonical name and what is the IP address
associated with the canonical name?
(d) Identify the name servers in the dig result. Which domain they are authoritative for?
What is the TTL for those results? Discuss the significance of the TTL values found in
the ANSWER and AUTHORITY sections.
(e) What is the query time about this DNS query?
1)
gifanz comNS
I
2 : roofNSt . comNs + .
And from the next line have for gifanz-stu dsp-lab eng
which means the "value" is the
, we 6 A
type - , , uni edu
c
,
meaning the value is hostname of authoritative name server for this domain.
U Is
e) time imsec
query ,
: