09-24-2009, 05:12 AM
I am stuck on a homework problem for computer networks. In the question it explains that the Round Trip Time to transmit a packet over the internet is the time it takes for a server to transmit a packet of data to the client, and for the client to send an ack back to the server saying the packet was correctly recieved. It includes all queuing delays, propagation delays, and the like involved with transmitting bits, or at least that is what I understand. The round trip time given in the problem is 2 msec which to me seems awfully short.
It is simplified to assume that both are running a protocol that a new packet will not be transmitted until the ack for the previous packet is recieved.
So one question says how long will it take to transmit a 1 mb file if it is divided up into 10 equal packets of 100 kb each? So I just assume it will be 10 * the round trip time.
Then the next question asks about how long will it take if the file is instead divided up into 2 equal packets of 500 kbits.
If I try doing it with the idea of multiplying the number of packets times the round trip time then that means it is much faster to transfer a file with 2 , 500 kb packets instead of 10, 100 kb packets which doesnt make sense to me. I always thought it is better to transfer the files in smaller packets than larger ones. Less chance for buffer overflows at routers and if a packet is lost you don't have to retransmit a large amount of data all over again.
Of course the problem is assuming the client and server are the only 2 systems in the world connected to the internet and there is no other traffic and no chance for packet loss or queuing delays or anything.
Pain in the ass but it is actually a pretty fun class though.
It is simplified to assume that both are running a protocol that a new packet will not be transmitted until the ack for the previous packet is recieved.
So one question says how long will it take to transmit a 1 mb file if it is divided up into 10 equal packets of 100 kb each? So I just assume it will be 10 * the round trip time.
Then the next question asks about how long will it take if the file is instead divided up into 2 equal packets of 500 kbits.
If I try doing it with the idea of multiplying the number of packets times the round trip time then that means it is much faster to transfer a file with 2 , 500 kb packets instead of 10, 100 kb packets which doesnt make sense to me. I always thought it is better to transfer the files in smaller packets than larger ones. Less chance for buffer overflows at routers and if a packet is lost you don't have to retransmit a large amount of data all over again.
Of course the problem is assuming the client and server are the only 2 systems in the world connected to the internet and there is no other traffic and no chance for packet loss or queuing delays or anything.
Pain in the ass but it is actually a pretty fun class though.