Docsity

Practice Midterm Exam - Computer Networks | CSC 570, Exams of Computer Systems Networking and Telecommunications

Toggle sidebar
bg1
CSC 570 Section 001
Midterm test
October 14, 2003
Questions 1 – 5 each carry 10 marks. Answer each in the space provided Make your
answer brief, but include any calculation, intermediate steps and justification when
reasonably called for.
Question 6 – 8 each carry 15 marks. Attempt EITHER question 7 OR question 8. If
both are attempted, the answer to only one will be graded, choosing arbitrarily. Answer
in the space provided, providing adequate intermediate steps or reasoning you have to
use.
It should be possible to answer the questions in the space provided. Use the back of the
paper or attach extra sheets only if you absolutely have to. You may consult any books,
notes, etc., but no other person. You must not use a cellphone, and if you are using a
computer you must demonstrate to the proctor’s satisfaction that you are not using it for
any communication.
This is a one hour test.
First Name: _____________________________
Last Name: _____________________________
Student ID: _____________________________
Pledge of Honor: I pledge on my honor that I have answered the questions
in this test purely on my own individual ability, and have neither given help
to nor received help from another person.
Signature: __________________________________________
pf3
pf4
pf5

Partial preview of the text

Download Practice Midterm Exam - Computer Networks | CSC 570 and more Exams Computer Systems Networking and Telecommunications in PDF only on Docsity!

CSC 570 Section 001

Midterm test

October 14, 2003

Questions 1 – 5 each carry 10 marks. Answer each in the space provided Make your answer brief, but include any calculation, intermediate steps and justification when reasonably called for. Question 6 – 8 each carry 15 marks. Attempt EITHER question 7 OR question 8. If both are attempted, the answer to only one will be graded, choosing arbitrarily. Answer in the space provided, providing adequate intermediate steps or reasoning you have to use. It should be possible to answer the questions in the space provided. Use the back of the paper or attach extra sheets only if you absolutely have to. You may consult any books, notes, etc., but no other person. You must not use a cellphone, and if you are using a computer you must demonstrate to the proctor’s satisfaction that you are not using it for any communication. This is a one hour test. First Name: _____________________________ Last Name: _____________________________ Student ID: _____________________________ Pledge of Honor: I pledge on my honor that I have answered the questions in this test purely on my own individual ability, and have neither given help to nor received help from another person. Signature: __________________________________________

  1. Consider the transmission delay and propagation delay in DLC channels. (a) Is it true that a data link with higher transmission delay must also have a higher propagation delay? (b) Can the transmission delay be larger than the propagation delay?
  2. A communication channel has a bandwidth of 6 Mhz, and the SNR limits the number of distinct states that can be recognized at the receiver to 20. (a) What is the maximum bitrate this channel can support? (b) To achieve this bitrate, how many bits must be transmitted per “time slot” (i.e. the time during which a single state of the channel must be held)? (c) If we want to transmit only a whole number of bits per slot and avoid fractional bits, what would be the maximum bitrate achievable?
  3. Consider the difference between pure circuit-switching and packet-switching (ignore the possibility of virtual circuit switching). We know copper cable media such as coax or twisted pairs in the physical layer can be used for either communication approach. Comment briefly on the applicability of each method of switching in relation to a physical layer of optical fiber.
  1. Consider a DLC using the Selective Repeat Protocol. The frame transmission time is t, the timeout for each packet, measured from the end of the frame transmission, is T, T = 6t. The propagation delay is r, r = 3t. The window being used is W = 5. The first frame is sequence numbered “1”. Whenever the receiver receives a correct frame that is not beyond its receive window, it sends an ACK with the sequence number of the frame that was received. No NAKs are used: frames that are beyond the receiver’s window are quietly discarded by the receiver. The sender keeps each ACK and maintains separate timeout for each frame as usual with SRP. The following events occur: Frame #2 is lost the first time it is transmitted, the ACK for frame #5 is lost the first time that frame is transmitted. All other transmissions of frames and ACKs are successful. (a) Draw a timing diagram of the above from time zero, when the first transmission of frame #1 starts, to the time when the first transmission of frame #7 ends. You can use the facing page. Tip: You should plan your diagram to show about 20t duration. (b) With different scenarios, the first transmission of frame #7 would occur at different times. (E.g. If there were no errors, it would start at 8t.) The above is only one of the different ways that the first transmission of frame #7 would occur at the time that it does in this scenario. If every frame transmission has the probability pf of being successful, and every ACK transmission has the probability pa of being successful, find the total probability that the first transmission of frame #7 occurs at this time.
  1. In a particular packet-switched communication system, the protocol stack consists of the application, transport, network, DLC, and physical layers. The application layer generates PDUs of variable sizes. The transport and network layer each adds 20 bytes of overhead as headers. The DLC layer adds 10 + n /2 bytes of overhead as header and trailer, where n is the size of the application layer PDU in bytes. The physical layer does not add any header, and provides a bitpipe of bit rate 10 6 bit/s. (a) Consider the case where the application layer generates only PDUs of four different sizes, 100, 150, 200, and 250 bytes. The four types are generated with equal probability. What is the bitrate as experienced by the application layer data? (b) Now consider the case that all packet sizes n = 100 i are possible, i = 1, 2, 3, … with corresponding probabilities P[ n = 100 i ] = 2- i^. What is the bitrate as experienced by the application layer data?