Computer Network Applications
Computer Network Applications
• http://class.stanford.edu/networking/Fall2012
• http://ocw.mit.edu/courses/electrical-
engineering-and-computer-science/6-263j-
data-communication-networks-fall-2002
Applications
• Physical layer
– Television channels are 6 MHz wide. How many bits/sec can be
sent if four-level digital signals are used? Assume a noiseless
channel.
Rețele de Comunicații 2
1
11/1/2012
Applications
• Physical layer
– The following character encoding is used in a data
link protocol: A: 01000111; B: 11100011; FLAG:
01111110; ESC: 11100000 Show the bit sequence
transmitted (in binary) for the four-character
frame: A B ESC FLAG when each of the following
framing methods are used:
• (a) Character count.
• (b) Flag bytes with byte stuffing.
• (c) Starting and ending flag bytes, with bit stuffing.
Rețele de Comunicații 3
Applications
• Physical layer
– A bit string, 0111101111101111110, needs to be
transmitted at the data link layer. What is the string
actually transmitted after bit stuffing?
2
11/1/2012
Applications
• Physical layer
– A bit stream 10011101 is transmitted using the standard
CRC method described in the text. The generator
polynomial is x3 + 1. Show the actual bit string transmitted.
Suppose the third bit from the left is inverted during
transmission. Show that this error is detected at the
receiver's end.
Applications
• Physical layer
– Consider an error-free 64-kbps satellite channel used to send
512-byte data frames in one direction, with very short
acknowledgements coming back the other way. What is the
maximum throughput for window sizes of 1, 7, 15, and 127? The
earth-satellite propagation time is 270 msec.
3
11/1/2012
Applications
• Data Layer
– AE: ACK Expected
– NS: Next Frame to Send
– FE: Frame Expected
– WT: Transmit Window
– WR: Receive Window
– MAXSEQ: Maximum Sequence Number
• WT+WR MAXSEQ+1
Applications
• Go Back N
– AE=1; NS=2; FE=2; WT=7; WR=1; MAXSEQ=7
• Send 6 packets; second packet is lost
– AE=0; NS=2; FE=1; WT=7; WR=1; MAXSEQ=7
• Send 6 packets; second packet is lost
– AE=6; NS=7; FE=6; WT=3; WR=1; MAXSEQ=8
• Send 5 packets; third packet is lost
4
11/1/2012
Applications
• Selective Repeat
– AE=1; NS=2; FE=2; WT=4; WR=2; MAXSEQ=7
• Send 7 packets; second packet is lost