2105mt16s1

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Suppose two hosts are connected by a direct link of 1 Mbps. A stop-and-wait protocol is used to transfer 10 packets from the sending host to the receiving host. Each packet is 1000 bytes long. RTT is 24 milliseconds. No packet is lost or corrupted during transmission and ACK packets are of negligible size. What is the throughput of the transmission? A. 0.25 Mbps B. 0.04 Mbps C. 0.87 Mbps D. 0.77 Mbps E. 1 Mbps

A. 0.25 Mbps

Two hosts A and B are connected by a router R as shown in the following diagram. A <-link1-> R <-link2-> B For link 1, link transmission rate is 1 Kbps and propagation delay is 100 milliseconds. For link 2, link transmission rate is 250 bps and propagation delay is 150 milliseconds. Suppose Host A sends 2000 packets to Host B continuously and each packet is 500 bits long. Host A starts sending the 1st packet at time 𝑡 = 0. When (in seconds) will Host B receive the 𝑘𝑡ℎ packet (1 ≤ 𝑘 ≤ 2000)? A. 0.75 + 2𝑘 B. 2.75𝑘 C. 0.6 + 2𝑘 D. 0.6 + 2.15𝑘 E. None of the above

A. 0.75 + 2k how long it will take to reach B via link 2: link 1 rate is much higher than link 2. So R will always have packets --> so once R sends out to B, it will send out the next packet immediately (directly behind previous packet) --> so link 2 has no propagation delay Transmission delay: 500 bits/1,000 bits = 0.5secs Propagation delay = 0.1sec/0.6sec 200/250 = 2secs + propogation delay 150ms = 2.15s 0.6 + 2.15k 0.6 = 2.15 = 2.75 2.75 _+2 = 4.75 4.75 + 2 = 6.75 0.75 + 2k refer to pipelining question in tutorial

] It's said that a TCP Client/Server connection formation is "asymmetric" because a TCP server must exist before a TCP client can communicate with it. What can be said about UDP-based connection formation? A. A UDP client may send data to a non-existing UDP server without noticing that server is offline. B. A UDP server must exist before a client can send data to it. Otherwise client will encounter an exception. C. A UDP client and server must exchange control information before the client can send data to the server. D. Two UDP clients on one host cannot communicate with the same UDP server at the same time. E. None of the above

A. A UDP client may send data to a non-existing UDP server without noticing that server is offline

Consider a sender and a receiver communicating using Selective Repeat protocol. Every packet embeds a 3-bit sequence number field. Sender just sends a packet with sequence number 6. Sender's window size is 3. Which of the following CANNOT possibly be the sequence number of the next packet transmitted by sender? A. 0 B. 2 C. 4 D. 5 E. 6

B. 2

A port number in TCP is _________ bytes long. A. 1 B. 2 C. 4 D. 16 E. 32

B. 2 bytes (16 bits)

Consider the following Java code snippet. Socket socket = new ServerSocket(2105).accept(); What port number is socket bound to when above statement finish execution? A. It depends on the client's port that's making the connection. B. TCP port 2105 C. Cannot say; it's operation system dependent and is usually a randomly chosen port. D. UDP port 2105 E. None of the above

B. TCP port 2105

UDP uses _________ to dispatch incoming packets to different processes in the same host. A. multiplexing B. de-multiplexing C. congestion control D. flow control E. IP address

B. de-multiplexing

The _______ layer of the Internet protocol stack is responsible for delivering data from sending process to receiving process. A. application B. transport C. network D. link E. physical

B. transport

Which of the following statement about DNS is FALSE? A. DNS provides hostname to IP address mapping. B. A hostname may be mapped to multiple IP addresses. C. All DNS queries must go to the root servers. D. DNS servers typically listen to UDP port 53. E. Failure to contact DNS servers can cause disruption in access to Internet services.

C. All DNS queries must go to the root servers.

In a _________ network, data is first divided into manageable chunks before being sent. A. connection-oriented B. connection-less C. circuit-switching D. packet-switching E. telephone

D. packet-switching

In HTTP, a response status code of 404 tells you A. Web server is unavailable B. Web server is currently busy C. your browser needs to be updated to the latest version D. the requested Web object is not found E. your HTTP request is malformed

D. the requested

A huge file is transferred over an existing TCP connection (i.e., 3-way handshake is already done). The connection is still open after transmission. The first and last TCP segments have the sequence numbers 12,345 and 2,105 respectively. MSS is 1,024 bytes and TCP sends as much data as possible in a segment. How many TCP segments are used to transfer the file, assuming the communication channel is perfectly reliable? A. 10 B. 4,194,294 C. 4,194,303 D. 33,554,360 E. 8,388,599

E. 8,388,599

Which of the following statement about HTTP is FALSE? A. HTTP typically runs on top of TCP. B. HTTP is an application layer protocol. C. In HTTP/1.0, the server will usually close the connection after every request. D. In HTTP/1.1, the default connection type is persistent. E. HTTP is only used to download HTML data from a Web server.

E. HTTP is only used to download HTML data from a Web server.

A sender and a receiver communicate over an unreliable channel of the following characteristics: packets may be lost or delayed for arbitrarily long time but won't be corrupted or reordered. We would like to design a stop-and-wait, NAK-free protocol called rdt 4.0 to ensure reliable transmission. In rdt 4.0, sender keeps a timer for a sent but unacknowledged packet. When timer expires, sender deems the packet is lost and will retransmit it. You are to design other features of rdt 4.0 to make it a reliable protocol for the given scenario. The features you design must not conflict with the features/specifications given above. Which of the following statement about your rdt 4.0 is TRUE? A. Receiver may receive duplicate packets. However, receiver should simply ignore duplicate packets and do not send ACKs. B. Receiver must maintain a timer for the ACK sent. If no packet arrives before timer expires, receiver should retransmit the ACK. C. Sender must resend data packet if a duplicate ACK is received. D. Sender won't receive duplicate ACKs at all. E. None of the above

E. None of the above Not B - there's a timer on sender side --> if sender doesn't get ACK, it will just resend the packet Not C - because ACK signify receiver already have that data, it is bad to resend that data again. Not D - Receiver will send duplicate ACK if the ACK is lost.


Kaugnay na mga set ng pag-aaral

Chapter 25: Assessment of Cardiovascular Function

View Set

Maternity Test 2 Chapter 23 Application

View Set

Season 34 J!Archive (11/15/17-1/22/18)

View Set

AP ART HISTORY: ch 19 artwork, vocab, and questions

View Set

Chapter 21 - America and the Great War

View Set