Docsity

Communication Networks | ECE 438, Exams of Organizational Communication

Toggle sidebar
bg1
CS/ECE 438: Communication Networks for Computers Spring 2007
Midterm Study Guide
The class midterm examination will be held in 2405 SC from 7:00 to 9:00 p.m. on Wednesday March 7th. The exam
will begin and end promptly. Please arrive before 7:00 to allow everyone to settle into their seats before the test
begins. No extensions will be granted to those who are late, nor will any non-emergency excuse for absence be
accepted after Tuesday March 4th.
You may not consult any materials during the exam: no textbooks, no crib sheets, no calculator, etc.
The midterm will contain three to four parameterized problems and a set of short-answer questions. About half the
total points on the exam will be for each type of problem. Each parameterized problem will consist of multiple parts,
and all parameterized problems will carry approximately equal weight overall, but may break down unevenly
amongst the parts. The short-answer questions require you to explain or comment on a topic relevant to the course
in twenty-five words or less.
The problems and questions on the midterm will all be variants of some of the problems and questions that are
either on this study guide or were in problem sets 1-3.
On the midterm, you must show all work and reasoning, writing both work and solution legibly, and should box all
answers. If the course staff cannot read a solution, no credit will be given. All short-answer questions must be
stated in twenty-five words or less; longer answers will be graded by looking at only the first 25 words of the answer.
Be concise, but do not spend your time counting words.
Parameterized Problems
1. Channel Rates and Shared Media
You are entrusted with the design of a network to interconnect a set of geographically distributed hosts within your
corporation. After some research, you narrow the options to two choices, a fiber-based token ring or a copper-based
switched network. The pertinent statistics appear in the table below.
type fiber-based token ring copper-based switched network
signal bandwidth 10 MHz 1 MHz
signal-to-noise ratio at transmitter 20 dB 20 dB
attenuation rate 1 dB/km 2 dB/km
The longest link in the network in either case is 10 km.
(a) What link bandwidth is possible according to Shannon's Law
i. for the fiber network?
ii. for the copper network?
(b) Assuming that hosts in the copper network can all transmit at their link rate (the values found in part
(a)) simultaneously, roughly how many hosts are necessary for the networks to provide equal
aggregate bandwidth (the sum of bandwidth for all hosts)?
(c) Using the copper-based network with a 32-point QAM encoding, what modulation rate (baud) is
necessary to obtain the bandwidth found in part (a)?
2. Error Detection with Cyclic Redundancy Checks
Use the CRC-8 generator polynomial x8+x2+x+1 for both parts of this problem.
(a) Calculate the CRC value of the bit sequence 0011 1100 0011.
(b) Recall that error detection with a CRC works by appending a CRC value to the message to make it a
multiple of the generator polynomial. Find a 12-bit burst error polynomial E(x) = x11 + … + 1 that
cannot be detected by a CRC check (with CRC-8).
pf3
pf4
pf5
pf8

Partial preview of the text

Download Communication Networks | ECE 438 and more Exams Organizational Communication in PDF only on Docsity!

CS/ECE 438: Communication Networks for Computers Spring 2007

Midterm Study Guide

The class midterm examination will be held in 2405 SC from 7:00 to 9:00 p.m. on Wednesday March 7 th. The exam will begin and end promptly. Please arrive before 7:00 to allow everyone to settle into their seats before the test begins. No extensions will be granted to those who are late, nor will any non-emergency excuse for absence be accepted after Tuesday March 4th.

You may not consult any materials during the exam: no textbooks, no crib sheets, no calculator, etc.

The midterm will contain three to four parameterized problems and a set of short-answer questions. About half the total points on the exam will be for each type of problem. Each parameterized problem will consist of multiple parts, and all parameterized problems will carry approximately equal weight overall, but may break down unevenly amongst the parts. The short-answer questions require you to explain or comment on a topic relevant to the course in twenty-five words or less.

The problems and questions on the midterm will all be variants of some of the problems and questions that are either on this study guide or were in problem sets 1-3.

On the midterm, you must show all work and reasoning, writing both work and solution legibly, and should box all answers. If the course staff cannot read a solution, no credit will be given. All short-answer questions must be stated in twenty-five words or less; longer answers will be graded by looking at only the first 25 words of the answer. Be concise, but do not spend your time counting words.

Parameterized Problems

1. Channel Rates and Shared Media

You are entrusted with the design of a network to interconnect a set of geographically distributed hosts within your corporation. After some research, you narrow the options to two choices, a fiber-based token ring or a copper-based switched network. The pertinent statistics appear in the table below.

type fiber-based token ring copper-based switched network signal bandwidth 10 MHz 1 MHz signal-to-noise ratio at transmitter 20 dB 20 dB attenuation rate 1 dB/km 2 dB/km

The longest link in the network in either case is 10 km. (a) What link bandwidth is possible according to Shannon's Law i. for the fiber network? ii. for the copper network? (b) Assuming that hosts in the copper network can all transmit at their link rate (the values found in part (a)) simultaneously, roughly how many hosts are necessary for the networks to provide equal aggregate bandwidth (the sum of bandwidth for all hosts)? (c) Using the copper-based network with a 32-point QAM encoding, what modulation rate (baud) is necessary to obtain the bandwidth found in part (a)?

2. Error Detection with Cyclic Redundancy Checks

Use the CRC-8 generator polynomial x 8 +x 2 +x+1 for both parts of this problem.

(a) Calculate the CRC value of the bit sequence 0011 1100 0011. (b) Recall that error detection with a CRC works by appending a CRC value to the message to make it a multiple of the generator polynomial. Find a 12-bit burst error polynomial E(x) = x 11 + … + 1 that cannot be detected by a CRC check (with CRC-8).

3. Medium Access Control

This question concerns medium access control on a microwave network using carrier sense multiple access with collision detection (CSMA/CD, the algorithm used with Ethernet). The network consists of four hosts distributed as shown in the figure below. The microwaves are broadcast, and the signal travels directly along a line of sight from sender to all receivers. Assume that the signals propagate at the speed of light in a vacuum, 3 × 10 8 m/sec.

(a) If a transmitter sends at 1 Mbps, how long must packets be to guarantee collision detection by the transmitter?

(b) Divide time into slots the length of the maximum round-trip propagation delay in the network. One packet may be transmitted each time slot. Assume that each of the four hosts attempts to transmit with probability p in each time slot. What is the probability of a successful transmission in any given slot if i. p = ¼? ii. p = ½? iii. p = ¾?

(c) Using the minimum transmission length from part (a) and the probability of successful transmission from part (b)(ii) (for p = ½), calculate the average throughput of the network if each packet requires 20 bytes of header/trailer and i. 10 bytes of data, and ii. 50 bytes of data.

4. Workstations as Switches

You are entrusted with the purchase of a workstation to serve as a switch between two high-speed local area networks (LAN's). One of the networks is an UltraRING, a 1 Gbps token ring LAN with 80 bytes of total overhead (headers and trailers) required for each frame. The other network is an OmniNet, a 1.3 Gbps Ethernet-like LAN with 100 bytes of overhead required for each frame. All packets sent on either network have exactly 1,000 bytes of data. After some research, you narrow the options to the two architectures described in the table below.

Name Admiral J9000 SPQ CPU handles 100,000 packets/second 60,000 packets/second Number of I/O buses 3 1 I/O bus bandwidth 480 Mbps 1 Gbps Memory bus bandwidth 2 Gbps 1.4 Gbps Price $10,000 $8,

(a) Pick one. Justify your decision, showing all work. (b) Draw a block diagram of the workstation architecture that you have chosen in part (a), labeling all components with appropriate names and data rates. (c) At the maximum sustainable bandwidth (i.e., with no packets dropped), what is the transmission rate - the total number of bits per second, including headers and trailers - sent over each network link?

A

B

D

C

40 km 51 km

57 km

90 km

54 km

57 km

(d) Given a go-back-n algorithm (with RWS=1), assume that data frames are received with probability p = 0.9 and that acknowledgements (ACK's) are always received (probability of 1). Further assume that the retransmission timeout used by the sender is a negligible amount of time longer than the round-trip time, implying that a packet is retransmitted as soon as the sender could possibly detect its loss on the previous transmission. Calculate the average transmission rate (in bits per second) achieved for long streams of data.

7. Spanning Tree Algorithm for Intelligent Bridges

The Perlman spanning tree algorithm and the bridge learning algorithm for forwarding are used for the network shown below.

Dick

Jane

Spot

A

B

C

D

E

F

G

(a) Indicate which bridge is root, which ports are root ports (i.e., the preferred port for reaching the root bridge), which bridge is the designated bridge for each LAN, and which ports are designated ports (i.e., the ports that connect some LAN to its designated bridge). Hint: Bridges that are not designated bridges for any LAN, and ports that are neither root ports nor designated ports, do not play a role in the routing of packets. The remaining bridges, together with the LAN's, form a spanning tree. (b) After the spanning tree algorithm has settled, which switch transmits configuration messages onto LAN C? Which bridge(s) listen for such messages? Which bridge(s) forward such messages? Answer the same questions for LAN B. (c) Hosts Dick, Jane, and Spot send consecutive messages immediately after the configuration is complete (i.e., assume that each message crosses all necessary LAN's before the next message is sent). For each of the following three messages, indicate on which LAN's the message is heard. (i) Spot sends a message to Dick, (ii) Jane sends a message to Spot, and (iii) Dick sends a message to Jane. (d) Suppose a multicast group is formed with Dick Jane and as active members. After the forwarding tables at the bridges have settled, on what LAN's are messages for the multicast group heard?

8. Bit- and Byte-Stuffing

Consider a data stream of 8-bit ASCII characters with values 0 to 255. Assume that the probability of a byte assuming each possible is equal (i.e., is exactly 1/256).

(a) Using the bit-stuffing protocol discussed in class, what is the average number of bits that must be stuffed (inserted) per byte in the stream? (b) Answer the same question posed in part (a) for a byte-stuffing protocol in which the DLE character (value 16) must be escaped by stuffing a second DLE byte. Now assume that the data stream contains only values in the range 32 to 127, again with a uniform probability distribution amongst the possible values.

(a) Recalculate your answer to part (a) with the new probability distribution. (b) Recalculate your answer to part (b) with the new probability distribution.

9. Token Ring

Consider a token ring with latency of 500 μsec. Answer for both a single active host and for “many” active hosts. For the latter, assume that there are sufficiently many hosts transmitting that the time spent advancing the token can be ignored. Assume a packet size of 1500 B (a) Assuming that the delayed token release strategy is used, what is the effective throughput rate that can be achieved if the ring has a bandwidth of 3 Mbps? (b) Assuming that the immediate token release strategy is used, what is the effective throughput rate that can be achieved if the ring has a bandwidth of 3 Mbps? (c) With delayed release, what is the effective throughout rate that can be achieved if the ring has a bandwidth of 100 Mbps? (d) With immediate release, what is the effective throughout rate that can be achieved if the ring has a bandwidth of 100 Mbps?

  1. Suppose packets on a wireless link consist of N data bits and H header bits each, where H is fixed. Suppose bits are received in error with probability P , independently of each other, and that N is adjusted to maximize the throughput of data in bits per second. If P gets larger, does the optimal value of N get larger or smaller? Why?
  2. Name the four components that uniquely specify a TCP connection and state the length of each component in bits.
  3. Consider a frame consisting of two characters of four bits each. Assume that the probability of error is 10-3^ , independent for each bit. What is the probability that the frame is received correctly? Add a parity bit to each character. Now what is the probability?
  4. Describe the problem solved by framing.
  5. State an advantage of direct memory access (DMA) over programmed input/output (PIO).
  6. Name the OSI layer or layers in which error detection is addressed in the Internet architecture and state whether error detection is typically handled in hardware, in software, or in both.
  7. Name and explain two effects that complicate the process of signal transmission.
  8. Explain the main drawback of the use of multiple logical channels for reliable transmission.
  9. To provide more reliability than a single parity bit can give, an error detecting coding scheme uses one parity bit for checking all the odd numbered bits and a second parity bit for all the even numbered bits. What is the hamming distance of this code?
  10. What does 4B/5B encoding accomplish, besides expanding the number of bits by 25%?
  11. Describe the problem solved by error detection.
  12. Explain the hidden terminal problem and how it is solved.
  13. Name and describe the type of multiplexing traditionally employed in data networks.
  14. In a sliding window protocol with RWS=SWS=5, a very large set of possible sequence numbers (assume no wrapping), and in-order packet arrivals, why can't a receiver receive frame number 10 if it is currently expecting frame 17?
  15. The data rate of a QAM system using M -ary symbols can be doubled by increasing M and holding the bandwidth and baud rate constant. How must larger must M be, and why?
  16. Draw a protocol graph for the Internet, including at least the following: ATM, Ethernet, FDDI, FTP, HTTP, IP, TCP, TFTP, and UDP.
  17. In the Perlman distributed spanning tree algorithm, why does the root bridge periodically send messages even after the tree is determined?
  18. Name the OSI layer or layers in which reliable transmission is addressed and state whether reliable transmission is typically handled in hardware, in software, or in both in the Internet architecture.
  19. What Hamming distance is necessary for n-bit error detection? n-bit error correction?
  20. Why are many new local area networks built using multi-mode fiber, despite the fact that single-mode fiber provides higher capacities?
  1. Explain a drawback of datagram-based forwarding.
  2. State the recursive definition of a network.
  3. Explain a drawback of virtual-circuit-based forwarding.
  4. Why is byte stuffing necessary with some sentinel-based framing schemes?
  5. Explain why a CSMA/CD type protocol cannot be used in a wireless environment.
  6. For a small data packet, which is more relevant, bandwidth or latency? Explain.
  7. Explain the benefits gained by framing.
  8. Under what circumstances will error detection using CRC fail?
  9. Describe the benefits of error correction over error detection.
  10. In a sliding window protocol, what are timeouts used for and what is the impact of inaccurate timeout values.
  11. Explain the relationship between Receive Window Size (RWS), Next Frame Expected (NFE) and Last Frame Acceptable (LFA) in a sliding window protocol.
  12. In Ethernet, how does a sender detect a collision?
  13. Why does Ethernet use binary exponential backoff during contention resolution?
  14. Describe the role of the receiver in Ethernet. How is this different from the role of the receiver in IEEE 802.11?
  15. Why does Ethernet have a minimum packet size? How is it determined?
  16. What is the role of a monitor in a token ring network?
  17. What do “learning” bridges actually learn? What do the use this information for?
  18. What are the limitations of bridges?
  19. What is the difference between a cumulative and a selective acknowledgement?
  20. In a sliding window protocol, explain why would you ever use an RWS that is not equal to the SWS.
  21. The correctness of the sliding window protocol discussed in class depends on the assumption that Frames are not reordered. Why is this assumption necessary?
  22. How do sniffers work? Will they work on all networks?
  23. Why does Ethernet used fixed time slots during backoff? What could go wrong if the fixed slots were not used?
  24. In Token Ring networks, why would we want to emulate a shared medium with point-to-point links?
  25. What is the role of the NAV in IEEE 802.11?