Vous êtes sur la page 1sur 10

INFS 612 Assignment 1

CHAPTER 1 5) a) Time taken for a packet to arrive at host B after starting from host A is called propagation delay, denoted by dprop. dprop=(m/s)seconds where m is the distance between host A and host B and s is the propagation speed along the link. b) Time taken to push all of the packets bits into the link is called transmission delay, denoted by dtrans. dtrans= (L/R)seconds where L is the size of the packet and R is the single link connection between host A and host B. c) The end-to-end delay is given as, dend-to-end = N(dproc + dtrans + dprop) but assuming that queuing delay and processing delays are not considered, the end-to-end delay is the sum of transmission delay and propagation delay. dend-to-end = (m/s + L/R) seconds. d) The last bit of the packet is just leaving the Host A, since the time taken to transmit from host is dtrans. e) The first bit is in the channel at a distance of L from host A and has not reached Host B, since dprop>dtrans. f) The first bit has reached Host B, since dprop<dtrans at t=dtrans. g) According to the problem, dprop = m/s ; dtrans = L/R; dprop = dtrans (m / s)= (L / R) m= (L/R)*s = (120/ (56*103))*(2.5*108) = 535.714km. 22) a) The time taken will be the average throughput for a packet of L bits to arrive at the client. Since the packets were sent back to back, the time elapsed from when the last bit of the first packet arrives until the last bit of the second packet is the time taken for the packet

of length L bits to arrive at the client. So, the inter arrival time of 2 packets of length L bits sent back with the rate Rs bits/sec, at the destination is (L/R )seconds.

b) As per the given condition Rs>Rc, hence only Rc is considered throughout the network. The second packet will be queued up at the input queue of the Rc link as the transmission is faster on Rs line and slow on Rc line. Hence (L/R) is the time taken for a packet to reach the client. So the time T after which the second packet is transmitted does not encounter any queue is to be greater than the time it takes for one packet to reach the client completely i.e., T>=L/Rc. CHAPTER 2 4) a) URL: gaia.cs.umass.edu b) Version: HTTP 1.1 c) It is a persistent connection. It is known by, Connection: Keep-alive. d) The IP address is not provided in the ASCII statements. e) User-Agent: Mozilla/5.0 (WindowsiUi Windows NT 5.1i en-USi rv: 1. 7. 2) Gecko/20040804 Netscape/7.2 (ax). The browser is the user agent through which the HTTP request is sent. So, while a response is sent the browser type is considered by the server. 10) For a non-persistence connection, SYNACK & SYNC have to be replied for each and every parallel download, but for a persistence connection we need not have to reply with SYNC & SYNACK for each and every parallel connection. Hence, by using the persistence connection we can save huge amount of time and the speeds are much faster in the persistent connection.

WIRESHARK INTRODUCTORY LAB 1) SSDP, ICMPv6, DNS, TCP, HTTP 2) HTTP GET message was sent at - 21: 07: 03. 793494000 HTTP OK reply 21: 07: 04.361921000 Time gap between the HTTP GET and HTTP OK was 0.568427 seconds 3) Server IP Address: 128. 119. 245. 12 Client IP Address (my home IP address): 192. 168. 1. 9 4) a)

b)

HTTP LAB 1) Client browser http version: 1.1 Server browser http version: 1.1 2) Accept-Language: en-us, en; 3) IP address of my computer: 192. 68. 1. 9 IP address of gaia.cs.umass.edu server: 128. 119. 245. 12 4) Status code: 200 5) Last-Modified: Thu, 04 Oct 2012 02:01:01 GMT\r\n 6) Bytes of content returned to my browser: 482 7) No, there is no header present in packet content window and not in packet listing window.

8) No, I dont see an IF-MODIFIED-SINCE in the HTTP GET.

9) Yes, the server explicitly returned the contents of the file. Content-Type: text/html Content-Length: 371\r\n

10) Yes, I see an IF-MODIFIED-SINCE in the HTTP GET. It is followed by If-None-Match: "d6c96-173-f16bff40"\r\n

11) HTTP status code: 304 Response Phase: Not Modified A status code 304 is sent by the server, which indicates that the resource for the requested URL has not changed since last accessed.

12) One HTTP GET request message was sent by my browser. 13) Four data-containing TCP segments were needed to carry the single HTTP response. [Frame: 198, payload: 0-1459 (1460 bytes)] [Frame: 199, payload: 1460-2919 (1460 bytes)] [Frame: 201, payload: 2920-4379 (1460 bytes)] [Frame: 202, payload: 4380-4802 (423 bytes)]

14) Status code: 200 Response Phrase: OK

15) No, HTTP status lines in the transmitted data associated with a TCP-induced Continuation.

16) Three HTTP get request messages were sent by the browser. gaia.cs.umass.edu: 128. 119. 245. 12 (IP Address) www.personhighered.com: 165. 193. 140, 14 (IP Address) manic.cs.umass.edu: 128. 119. 240. 90 (IP Address)

17) Serial, because the HTTP GET messages time and their respective HTTP OK time are different for each pair.

18) Status code: 401 Response Phrase: Authorization Required

19) The Authorization field is added. Authorization: Basic d2lyZXNoYXJrLXN0dWRlbnRzOm5ldHdvcms Credentials: wireshark-students: network

Vous aimerez peut-être aussi