This action might not be possible to undo. Are you sure you want to continue?
BACHELOR OF COMPUTER SCIENCE (HONS.)
MIDTERM EXAMINATION SEMESTER III 2011/2012 ADVANCED COMPUTER NETWORKS (CSNB314)
26 March 2012
Time allowed: 2 hours
INSTRUCTIONS TO CANDIDATES 1. The total marks for this exam is 70 marks. 2. Answer ALL questions in the answer booklet provided. 3. When answering questions involving any kind of calculation, please show your work.
DO NOT OPEN THIS QUESTION PAPER UNTIL YOU ARE INSTRUCTED TO DO SO THIS QUESTION PAPER CONSISTS OF 8 PRINTED PAGES INCLUDING THIS PAGE
Transmission rate. Question 3 Explain the differences between circuit switching and packet switching in terms of: (a) (b) The use of network resources. Packet switching: Transmission rate varies depending on network condition. Page 2 of 8 Semester III 2011/2012 Advanced Computer Networks . Example: WiFi. [6 marks] Answer: (a) Circuit switching: Network resources are reserved for each connection. give an example of a network technology that falls under the category. Companies that provide Internet access service are called __________. Example: Ethernet. [6 marks] Answer: • • • Residential access network. For each category. Company access network.Question 1 Fill in the blanks for each statement below. (a) (b) (c) (d) Devices connected to the Internet are called __________. Example: ADSL. (b) Circuit switching: Transmission rate is constant. Packet switching: Network resources are shared. The body that develops and maintains Internet standards is the __________. The Internet standard documents are called __________. [4 marks] Answer: (a) (b) (c) (d) Hosts / end systems IETF RFCs ISPs Question 2 Name the THREE (3) categories of access networks. Wireless access network.
[3 marks] (c) Which transport layer protocol would you choose? Justify your choice. which of the application requirements can be fulfilled? Give a reason for your answer. [3 marks] (b) If UDP is used.Question 4 A file of size 650 MB is downloaded in 2 hours and 15 minutes. What is the average throughput in bits per second? [4 marks] Answer: File size = 650 x 106 x 8 = 5. which of the application requirements can be fulfilled? Give a reason for your answer. [2 marks] Answer: (a) TCP can fulfill the requirement regarding 85% of the data transmitted must be received correctly. This is because UDP does not have congestion control mechanism.000 bits Time = 135 x 60 = 8.000.200. Page 3 of 8 Semester III 2011/2012 Advanced Computer Networks .000. The application requires that at least 85% of the data transmitted must be correctly received. (b) UDP can fulfill the requirement regarding data must be transmitted with the rate of at least 100 Kbps. UDP cannot guarantee anything on data reception. It also requires data to be transmitted with the data rate of at least 100 Kbps.200. Question 5 You are planning to develop a new network application. the application can control the data rate.3 bits per second. Therefore.000 / 8. it can guarantee 100% of data transmitted to be received. (a) If TCP is used.100 = 641975.100 seconds Average throughput = 5. Once a piece of data is transmitted. This is because since TCP provides a fully reliable data transfer. TCP cannot fulfill this requirement because the congestion control mechanism will control the data rate instead of the application. it must arrive within 150 milliseconds for the transmitted data to be useful.
[2 marks] (c) Persistent connection with pipelining is used.(c) Both protocols can fulfill only one of the three requirements. What do you understand by this statement? [2 marks] (b) What is the HTTP mechanism that can be used to enable a web site to serve content as a function of user identify? [1 mark] (c) If the mechanism in (b) above is implemented. Therefore. Page 4 of 8 Semester III 2011/2012 Advanced Computer Networks . Cookies. what should the web server do when it receives an HTTP request message from a first-time user? [3 marks] Answer: (a) (b) It means the HTTP server does not store user information. [2 marks] Answer: (a) (b) (c) TCP connections: 5. UDP should be a better choice. RTTs: 3 Question 7 (a) The HTTP protocol is stateless. Question 6 A web page contains THREE (3) images and ONE (1) java object. RTTs: 10 TCP connections: 1. RTTs: 6 TCP connections: 1. the third requirement (data must arrive within 150 milliseconds) will have a higher chance to be fulfilled by UDP. [2 marks] (b) Persistent connection without pipelining is used. However. How many TCP connections need to be established and how many RTTs are required in order to view the web page if: (a) Non-persistent connection is used.
(c) Creates a unique identification number. (a) MIME enables email users today to do something that is not possible to be done by email users in the early days of the Internet. What is the difference between the two? [2 marks] Answer: In-band: Only one TCP connection is created. Email content must be in 7-bit ASCII. one of the headers that need to be included is the header Content-Transfer-Encoding. What is this limitation? [1 mark] (c) To use MIME. one for control messages and one for data messages. creates an entry for the user in the back-end database and include the Set-cookie: header in the response message Question 8 Even though both HTTP and FTP can be used to transfer a file between two computers. Question 9 MIME (Multipurpose Mail Extension) is an important enhancement made to the email application. Both data and control messages are transmitted using this one connection. Page 5 of 8 Semester III 2011/2012 Advanced Computer Networks . The header specifies the algorithm that needs to be used to decode the content sent with this email. How does the receiving email client use the information provided by this header? [2 marks] Answer: (a) (b) (c) Send an attachment through email. What is it? [1 mark] (b) MIME overcomes one of the limitations of the SMTP protocol. Out-of-band: Two TCP connections are created. they use different connection architecture. HTTP uses the in-band architecture while FTP uses the out-of-band architecture.
Define these two types of DNS servers.Question 10 An organization must have at least one local DNS server and one authoritative DNS server. A piece of the file to be distributed. Use G = 11001. (a) (b) (c) (d) Torrent Tracker Chunk Seed [4 marks] Answer: (a) (b) (c) (d) The groups of peers participating in a file distribution. Using the CRC method. check whether the received data contains error or not. A node that has the complete copy of the file to be distributed. [4 marks] Answer: Local DNS server: The DNS server directly queried by the clients in the organization. Question 11 Define the following terms related to the BitTorrent protocol. Authoritative DNS server: The DNS server that contains the mapping for publicly accessible hosts that belong to the organization. [2 marks] Answer: • • Reliable data transfer Congestion control Question 13 The following data is received from the network. A node that keeps track of the peers participating in a torrent. Page 6 of 8 Semester III 2011/2012 Advanced Computer Networks . Question 12 Name TWO (2) services provided by TCP but not provided by UDP.
Question 14 The following mechanisms are used to provide reliable data transfer: error detection. [4 marks] Answer: (a) (b) (c) (d) Acknowledgement Retransmission Sequence number Timer Question 15 A sender transmits EIGHT (8) packets. how would the receiver acknowledge when P5 is received? [1 mark] Page 7 of 8 Semester III 2011/2012 Advanced Computer Networks . retransmission. Therefore. P0 – P7. (a) (b) (c) (d) Tell the sender whether the data is received correctly or not. Identify duplicate packets. Assume that when the last packet is received. acknowledgement. how would the receiver acknowledge when P7 is received? [1 mark] (c) If Selective Repeat is used. Detect packet loss. Recover from packet error. the timer has not yet timeout. P4 and P6 are lost. how would the receiver acknowledge when P5 is received? [1 mark] (b) If Go-back-N is used. Identify the mechanism used to provide each of the following function. sequence number. During transmission. the received data contains error.Data: 1010011011110110 [4 marks] Answer: The division should give a remainder of 100. timer. (a) If Go-back-N is used.
P7 P4 and P6 ---End of Questions--- Page 8 of 8 Semester III 2011/2012 Advanced Computer Networks . which packets need to be retransmitted when timeout occurs? [1 mark] (f) If Selective Repeat is used. P6. P5. how would the receiver acknowledge when P7 is received? [1 mark] (e) If Go-back-N is used. which packets need to be retransmitted when timeout occurs? [1 mark] Answer: (a) (b) (c) (d) (e) (f) ACK3 ACK3 ACK5 ACK7 P4.(d) If Selective Repeat is used.
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue listening from where you left off, or restart the preview.