Computer Networking a topdown approach 6th ed Chapter 3 Quiz PDF

Title Computer Networking a topdown approach 6th ed Chapter 3 Quiz
Course Computer Networks
Institution National University of Computer and Emerging Sciences
Pages 2
File Size 171.9 KB
File Type PDF
Total Downloads 104
Total Views 199

Summary

Computer Networking a topdown approach 6th ed Chapter 3 Quiz solution...


Description

National University of Computer and Emerging Sciences, Lahore Campus Course Name: Program: Duration: Paper Date: Exam Type:

Computer Networks BS (Computer Science) 1 Day 05-Nov-2020 Assignment 6 (mini Assign – Chapter 3)

Course Code: Semester: Total Marks: Weight Page(s):

CS327 Fall 2020 20 2

Student: Name: _____________________________ Roll No.________________ Section: _______ 1. User datagram protocol is called connectionless because _____________ a) all UDP packets are treated independently by transport layer b) it sends data as a stream of related packets c) it is received in the same order as sent order d) it sends data very quickly 2. Transport layer protocols deals with ____________ a) application to application communication b) process to process communication c) node to node communication d) man to man communication

3. In TCP, sending and receiving data is done as _______ a) Stream of bytes b) Sequence of characters c) Lines of data d) Packets 4. TCP groups a number of bytes together into a packet called _______ a) Packet b) Buffer c) Segment d) Stack 5. In segment header, sequence number and acknowledgement number fields refer to _______ a) Byte number b) Buffer number c) Segment number d) Acknowledgment 6. In TCP specification, how are out-of-order segments handled at receiver a) TCP specs uses sequence numbers to reorder segments b) It doesn’t say anything about reordering segments c) It is the job of the application layer to reorder segments d) Presentation layer presents the reordered segments to application layer 7. The value of acknowledgment field in a segment defines a) Number of previous bytes to receive b) Total number of bytes to receive c) Sequence number of next bytes to receive d) Sequence of zero’s and one’s Department of Computer Science

Page1

8. What is the header size of a UDP packet? a) 8 bytes b) 8 bits c) 16 bytes d) 124 bytes 9. The receiver of the data controls the amount of data that are to be sent by the sender is referred as a) Flow control b) Error control c) Congestion control d) Error detection 10. Size of source and destination port address of TCP header respectively are ___________ a) 16-bits and 32-bits b) 16-bits and 16-bits c) 32-bits and 16-bits d) 32-bits and 32-bits Q11. What do you think TCP or UDP would be better suited for following application and briefly explain why? State any assumptions if you are making any. (5 points)  Multiplayer online first-person shooting game UDP – reliability is needed here, but so is low latency. Fast-paced multiplayer games (first person shooters, arena games, etc), use the UDP protocol to sync player movement and update game state. Q12. Enlist 5 differences between TCP & UDP? (5 points)

TCP

UDP

TCP is a connection-oriented protocol. Connectionorientation means that the communicating devices should establish a connection before transmitting data and should close the connection after transmitting the data.

UDP is the Datagram oriented protocol. This is because there is no overhead for opening a connection, maintaining a connection, and terminating a connection. UDP is efficient for broadcast and multicast type of network transmission.

TCP is reliable as it guarantees delivery of data to the destination router.

The delivery of data to the destination cannot be guaranteed in UDP.

Retransmission of lost packets is possible in TCP, but not in UDP.

There is no retransmission of lost packets in User Datagram Protocol (UDP).

TCP is comparatively slower than UDP.

UDP is faster, simpler and more efficient than TCP.

TCP has a (20-80) bytes variable length header.

UDP has a 8 bytes fixed length header.

TCP is used by HTTP, HTTPs, FTP, SMTP and Telnet.

UDP is used by DNS, DHCP, TFTP, SNMP, RIP, and VoIP.

Department of Computer Science

Page2...


Similar Free PDFs