434_assignment4 (1)

.docx

School

Texas A&M University, Commerce *

*We aren’t endorsed by this school

Course

434

Subject

Computer Science

Date

May 13, 2024

Type

docx

Pages

2

Uploaded by GrandSteel14470 on coursehero.com

CSCI434 Assignment 4 Due: 11:59PM on Friday (18 SEPT) Instruction : Show your work (at least 50% penalty otherwise) Do not copy and paste from textbook and any other resources to answer questions (at least 50% penalty otherwise) Submitted format should be a single PDF file (10% penalty otherwise) Submit to the assignment folder in D2L: you can submit multiple times but the last submission will be considered as your submission and graded. After submitting, double check if you submitted the correct one: No excuse in case of incorrect submission *Important*: Welcome to contact the instructor/TA for clarifying questions, but do not ask questions like whether your answer is correct, or so. Problem 1 . Throughput ( 10 pt.) Suppose Host A wants to send a large file to Host B . The path from Host A to Host B has three links, or rates R 1 = 0.5 Mbps, R 2 = 2Mbps, and R 3 = 1 Mbps. a. Assuming no other traffic in the network, what is the throughput for the file transfer? The throughput for the file transfer in the minimum (R1, R2, R3) i.e. minimum (0.5mbps, 2mbps,1 mbps) Therefore, the throughput for the file transfer is 0.5mbps. b. Suppose the file is 2 MB. Dividing the file size by the throughput, roughly how long will it take to transfer the file to Host B? Here, The size of the file = 2MB Converting it in the bits we get = 16000000bits Now, 0.5mbps= 500kbps= 500000bps Then total time= file size/throughout for the file transfer = 16000000/500000 = 32 seconds Now assume R 3 reduced to 300 Kbps. c. What is the throughput? The throughout for the file transfer is the Minimum (R1,R2,R3) i.e. minimum (0.5mbps, 2mbps, 300kbps). Since R3= 300kbps The throughout for the file transfer is 300kbps. d. What is the file transfer time? Here, The size of the file = 2MB Converting it in the bits we get = 16000000bits Now, 300kbps= 300000bps Then total time= file size/throughout for the file transfer = 16000000/300000 = 53.33 seconds 1
Problem 2. HTTP Connections ( 10 pt.) Consider a scenario that a client accesses a Web server. Suppose that the HTML file accessed by the client references five very small objects on the same server. Assuming RTT=100 ms between the client and the server and negligible transmission times (≈ 0 ms), how much time elapses with the following method? a. Non-persistent HTTP with no parallel TCP connections? Given RTT= 100ms For the Non-persistent HTTP with no parallel TCP, two RTT are required. As we are transmitting five images per objects= 2*(5RTT) = 10RTT Now total time= 2+10= 12 RTT= 12*100ms= 1200ms b. Persistent HTTP with pipelining? Given RTT= 100ms For the Pipelining, only one RTT is required. As we can send all images/objects in 1RTT Now, total time=2+1= 3RTT= 3*100ms= 300ms Problem 3 . WireShark ( 10 pt. ) Capture a HTTP GET request packet. Expand the section of “Hypertext Transfer Protocol” for details (in the middle windowpane). Report the connection type explicitly. Do NOT ask whether what you captured is correct – determine it by yourself by analyzing the captured content. (Hint: You may want to set “display filter” to filter out non-HTTP traffic.) 2
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help