Solution manual for data and computer communications


















You could design a code in which all codewords are at least a distance of 3 from all other codewords, allowing all single-bit errors to be corrected. Suppose that some but not all codewords in this code are at least a distance of 5 from all other codewords. Then for those particular codewords, but not the others, a double- bit error could be corrected.

For 10, characters, there are 20, extra bits. The file takes 10 frames or additional bits. Ten times as many extra bits and ten times as long for both.

There are 7 data bits, 1 start bit, 1. Write down a few dozen characters. Since some 1's will intervene before you find that zero, you will have moved the starting point of the framing process. Eventually, you will achieve proper framing. The stop bit is needed so that the start bit can be recognized as such. The start bit is the synchronization event, but it must be recognizable. The start bit is always a 0, and the stop bit is always a 1, which is also the idle state of the line.

When a start bit occurs, it is guaranteed to be different from the current state of the line. Then a frame is 12T long. Let a clock period be T'. The last bit bit 12 is sampled at For a fast running clock, the condition to satisfy is T There are more bits that can be in error since the parity bit is now included. The parity bit may be in error when there are no errors in the corresponding data bits.

Therefore, the inclusion of a parity bit with each character would change the probability of receiving a correct message. The modulo 2 scheme is easy to implement in circuitry. It also yields a remainder one bit smaller than binary arithmetic.

Each 1 bit will merge with a 1 bit exclusive-or to produce a 0; each 0 bit will merge with a 0 bit to produce a zero. The CRC bits are The string is sent. The errors are detected.

The errors are not detected. The HDLC standard provides the following explanation. The addition of XK L X corresponds to a value of all ones.

This addition protects against the obliteration of leading flags, which may be non-detectable if the initial remainder is zero. The addition of L X to R X ensures that the received, error- free message will result in a unique, non-zero remainder at the receiver. The non-zero remainder protects against the potential non-detectability of the obliteration of trailing flags.

The implementation is the same as that shown in Solution 6. At both transmitter and receiver, the initial content of the register is preset to all ones. The final remainder, if there are no errors, will be For a codeword w to be decoded as another codeword w', the received sequence must be at least as close to w' as to w. Therefore all errors involving t or fewer digits are correctable.

Data transmitted by one side are received by the other. In order to operate a synchronous data link without a modem, clock signals need to be supplied.

The Transmitter and Receive Timing leads are cross-connected for this purpose. Flow control: The sending station must not send frames at a rate faster than the receiving station can absorb them. Error control: Bit errors introduced by the transmission system should be corrected. Addressing: On a multipoint line, such as a local area network LAN , the identity of the two stations involved in a transmission must be specified. Control and data on same link: The receiver must be able to distinguish control information from the data being transmitted.

Link management: The initiation, maintenance, and termination of a sustained data exchange require a fair amount of coordination and cooperation among stations. Procedures for the management of this exchange are required. With smaller frames, errors are detected sooner, and a smaller amount of data needs to be retransmitted. The window changes dynamically to allow additional packets to be sent. The sliding window flow control technique can send multiple frames before waiting for an acknowledgment.

Efficiency can be greatly improved by allowing multiple frames to be in transit at the same time. A station retransmits on receipt of a duplicate acknowledgment or as a result of a timeout. When an error is detected, the frame in question is retransmitted, as well as all subsequent frames that have been previously transmitted. Selective-reject ARQ. Based on sliding-window flow control.

When an error is detected, only the frame in question is retransmitted. Frames issued by the primary are called commands. Secondary station: Operates under the control of the primary station. Frames issued by a secondary are called responses. The primary maintains a separate logical link with each secondary station on the line.

Combined station: Combines the features of primary and secondary. A combined station may issue both commands and responses. The primary may initiate data transfer to a secondary, but a secondary may only transmit data in response to a command from the primary.

Asynchronous balanced mode ABM : Used with a balanced configuration. Either combined station may initiate transmission without receiving permission from the other combined station. Asynchronous response mode ARM : Used with an unbalanced configuration. The secondary may initiate transmission without explicit permission of the primary. The primary still retains responsibility for the line, including initialization, error recovery, and logical disconnection.

This is achieved by bit stuffing. Additionally, flow and error control data, using the ARQ mechanism, are piggybacked on an information frame. Supervisory frames S-frames provide the ARQ mechanism when piggybacking is not used. Unnumbered frames U-frames provide supplemental link control functions. Because only one frame can be sent at a time, and transmission must stop until an acknowledgment is received, there is little effect in increasing the size of the message if the frame size remains the same.

All that this would affect is connect and disconnect time. This would lower line efficiency, because the propagation time is unchanged but more acknowledgments would be needed. For a given message size, increasing the frame size decreases the number of frames. This is the reverse of b. Then, using Equation 7. Using Equation 7. The first frame takes 10 msec to transmit; the last bit of the first frame arrives at B 20 msec after it was transmitted, and therefore 30 msec after the frame transmission began.

It will take an additional 20 msec for B's acknowledgment to return to A. Thus, A can transmit 3 frames in 50 msec. B can transmit one frame to C at a time. The REJ improves efficiency by informing the sender of a bad frame as early as possible. Station A sends frames 0, 1, 2 to station B. Station B receives all three frames and cumulatively acknowledges with RR 3. Because of a noise burst, the RR 3 is lost. A times out and retransmits frame 0. B has already advanced its receive window to accept frames 3, 0, 1, 2.

Thus it assumes that frame 3 has been lost and that this is a new frame 0, which it accepts. The sender never knows that the frame was not received, unless the receiver times out and retransmits the SREJ. This would contradict the intent of the SREJ frame or frames. However, for simplicity, bit stuffing is used on this field.

When a flag is used as both an ending and starting flag that is, one 8-bit pattern serves to mark the end of one frame and the beginning of the next , then a single-bit error in that flag alters the bit pattern so that the receiver does not recognize the flag. Accordingly, the received assumes that this is a single frame.

If a bit error somewhere in a frame between its two flags results in the pattern , then this octet is recognized as a flag that delimits the end of one frame and the start of the next frame.

Any discrepancies result in discarding the frame. Bit-stuffing at least eliminates the possibility of a long string of 1's. This is the number of the next frame that the secondary station expects to receive. The LAPB control field includes, as usual, a sequence number unique to that link. The MLC field performs two functions. First, LAPB frames sent out over different links may arrive in a different order from that in which they were first constructed by the sending MLP.

Second, if repeated attempts to transmit a frame over one link fails, the DTE or DCE will send the frame over one or more other links. The MLP sequence number is needed for duplicate detection in this case. In essence, a transmitter must subtract the echo of its own transmission from the incoming signal to recover the signal sent by the other side. This explains the basic difference between the 1. A scheme such as depicted in Figure 8. Each Hz signal can be sampled at a rate of 1 kHz.

If 4-bit samples are used, then each signal requires 4 kbps, for a total data rate of 16 kbps. This scheme will work only if the line can support a data rate of 16 kbps in a bandwidth of Hz.

In time-division multiplexing, the entire channel is assigned to the source for a fraction of the time. If there is spare bandwidth, then the incremental cost of the transmission can be negligible. The new station pair is simply added to an unused subchannel.

If there is no unused subchannel it may be possible to redivide the existing subchannels creating more subchannels with less bandwidth. If, on the other hand, a new pair causes a complete new line to be added, then the incremental cost is large indeed. What the multiplexer receives from attached stations are several bit streams from different sources. What the multiplexer sends over the multiplexed transmission line is a bit stream from the multiplexer.

As long as the multiplexer sends what can be interpreted as a bit stream to the demultiplexer at the other end, the system will work. The multiplexer, for example, may use a self-clocking signal. The incoming stream may be, on the other hand, encoded in some other format. The multiplexer receives and understands the incoming bits and sends out its equivalent set of multiplexed bits.

In synchronous TDM, using character interleaving, the character is placed in a time slot that is one character wide. The character is delimited by the bounds of the time slot, which are defined by the synchronous transmission scheme. Thus, no further delimiters are needed. When the character arrives at its destination, the start and stop bits can be added back if the receiver requires these.

TDM's focus is on the medium rather than the information that travels on the medium. Its services should be transparent to the user. It offers no flow or error control.

These must be provided on an individual-channel basis by a link control protocol. The actual bit pattern is If a receiver gets out of synchronization it can scan for this pattern and resynchronize.

This pattern would be unlikely to occur in digital data. Analog sources cannot generate this pattern. It corresponds to a sine wave at 4, Hz and would be filtered out from a voice channel that is band limited.

One SYN character, followed by 20 bit terminal characters, followed by stuff bits. The available capacity is 1. This is a practical limit based on the performance characteristics of a statistical multiplexer. If the receiver is on the framing pattern no searching , the minimum reframe time is 12 frame times the algorithm takes 12 frames to decide it is "in frame".

Hence it must search the maximum number of bits 55 to find it. Each search takes 12T f. Assuming the system is random, the reframing is equally to start on any bit position. Hence on the average it starts in the middle or halfway between the best and worst cases. Therefore, the channel cost will be only one-fourth, since one channel rather than four is now needed. The same reasoning applies to termination charges.

The present solution requires eight low speed modems four pairs of modems. The new solution requires two higher-speed modems and two multiplexers. The reliability of the multiplexed solution may be somewhat less. The new system does not have the redundancy of the old system. A failure anywhere except at the terminals will cause a complete loss of the system. Each multiplexer also acts as a buffer. It can accept bits in asynchronous form, buffer them and transmit them in synchronous form, and vice versa.

The filling sequence is the same length as the original sequence, so there is no data rate penalty. This approach is susceptible to sudden gain changes and is rather inefficient.

For PM, the phase is proportional to the modulating signal. For FM, the derivative of the phase is proportional to the modulating signal. Map this level as indicated by the definition for 1 and 0 for each of the other codes. Second, under worst case, E-NRZ provides a minimum of one transition for every 14 bits, reducing the synchronization problem.

Third, the parity bit provides an error check. The disadvantages of E-NRZ are added complexity and the overhead of the extra parity bit. Bipolar-AMI 5. For AMI, positive and negative pulses are used alternately for binary 1. The pulse in position 1 represents the third binary 1 in the data stream and should have a positive value. First consider NRZ-L. For the remaining codes, one must first determine the average number of pulses per bit.

For example, for Biphase-M, there is an average of 1. These higher components cause the signal to change more rapidly over time. Hence, DM will suffer from a high level of slope overload noise. PCM, on the other hand, does not estimate changes in signals, but rather the absolute value of the signal, and is less affected than DM.

The demodulator portion of a modem expects to receive a very specific type of waveform e. Thus, it would not function as the coder portion of a codec. The case against using a codec in place of a modem is less easily explained, but the following intuitive argument is offered. If the decoder portion of a codec is used in place of the modulator portion of a modem, it must accept an arbitrary bit pattern, interpret groups of bits as a sample, and produce an analog output.

Some very wide value swings are to be expected, resulting in a strange-looking waveform. Given the effects of noise and attenuation, the digital output produced at the receiving end by the coder portion of the codec will probably contain many errors. The actual step size, in volts, is: 0. Thus the actual maximum quantized voltage is: 0. The normalized step size is 2—8. The maximum error that can occur is one-half the step size. A stop binary one follows the character.

One side transmitter or receiver pulses the line regularly with one short pulse per bit time. The other side uses these regular pulses as a clock. An other alternative is to embed the clocking information in the data signal.

For digital signals, this can be accomplished with Manchester or differential Manchester encoding. For analog signals, a number of techniques can be used; for example, the carrier frequency itself can be used to synchronize the receiver based on the phase of the carrier. That is, it provides more information that can be used to detect errors. You could design a code in which all codewords are at least a distance of 3 from all other codewords, allowing all single-bit errors to be corrected.

Suppose that some but not all codewords in this code are at least a distance of 5 from all other codewords. Then for those particular codewords, but not the others, a double- bit error could be corrected.

For 10, characters, there are 20, extra bits. The file takes 10 frames or additional bits. Ten times as many extra bits and ten times as long for both. There are 7 data bits, 1 start bit, 1. Write down a few dozen characters. Since some 1's will intervene before you find that zero, you will have moved the starting point of the framing process. Eventually, you will achieve proper framing. The stop bit is needed so that the start bit can be recognized as such.

The start bit is the synchronization event, but it must be recognizable. The start bit is always a 0, and the stop bit is always a 1, which is also the idle state of the line. When a start bit occurs, it is guaranteed to be different from the current state of the line. Then a frame is 12T long. Let a clock period be T'. The last bit bit 12 is sampled at For a fast running clock, the condition to satisfy is T There are more bits that can be in error since the parity bit is now included.

The parity bit may be in error when there are no errors in the corresponding data bits. The modulo 2 scheme is easy to implement in circuitry.

It also yields a remainder one bit smaller than binary arithmetic. Each 1 bit will merge with a 1 bit exclusive-or to produce a 0; each 0 bit will merge with a 0 bit to produce a zero. The CRC bits are The string is sent.

The errors are detected. The errors are not detected. The HDLC standard provides the following explanation. The addition of XK L X corresponds to a value of all ones. This addition protects against the obliteration of leading flags, which may be non-detectable if the initial remainder is zero. The addition of L X to R X ensures that the received, error- free message will result in a unique, non-zero remainder at the receiver. The non-zero remainder protects against the potential non-detectability of the obliteration of trailing flags.

The implementation is the same as that shown in Solution 6. At both transmitter and receiver, the initial content of the register is preset to all ones.

The final remainder, if there are no errors, will be For a codeword w to be decoded as another codeword w', the received sequence must be at least as close to w' as to w. Therefore all errors involving t or fewer digits are correctable. Data transmitted by one side is received by the other. In order to operate a synchronous data link without a modem, clock signals need to be supplied. The transmitter and Receive Timing leads are cross-connected for this purpose.

Flow control: The sending station must not send frames at a rate faster than the receiving station can absorb them. Error control: Bit errors introduced by the transmission system should be corrected. Addressing: On a multipoint line, such as a local area network LAN , the identity of the two stations involved in a transmission must be specified.

Control and data on same link: The receiver must be able to distinguish control information from the data being transmitted. Link management: The initiation, maintenance, and termination of a sustained data exchange require a fair amount of coordination and cooperation among stations. Procedures for the management of this exchange are required. With smaller frames, errors are detected sooner, and a smaller amount of data needs to be retransmitted.

The window changes dynamically to allow additional packets to be sent. The sliding window flow control technique can send multiple frames before waiting for an acknowledgment. Efficiency can be greatly improved by allowing multiple frames to be in transit at the same time. A station retransmits on receipt of a duplicate acknowledgment or as a result of a timeout. When an error is detected, the frame in question is retransmitted, as well as all subsequent frames that have been previously transmitted.

Selective-reject ARQ. Based on sliding-window flow control. When an error is detected, only the frame in question is retransmitted. Frames issued by the primary are called commands. Secondary station: Operates under the control of the primary station.

Frames issued by a secondary are called responses. The primary maintains a separate logical link with each secondary station on the line. Combined station: Combines the features of primary and secondary. A combined station may issue both commands and responses.

The primary may initiate data transfer to a secondary, but a secondary may only transmit data in response to a command from the primary. Asynchronous balanced mode ABM : Used with a balanced configuration.

Either combined station may initiate transmission without receiving permission from the other combined station. Asynchronous response mode ARM : Used with an unbalanced configuration.

The secondary may initiate transmission without explicit permission of the primary. The primary still retains responsibility for the line, including initialization, error recovery, and logical disconnection. This is achieved by bit stuffing. Additionally, flow and error control data, using the ARQ mechanism, are piggybacked on an information frame.

Supervisory frames S-frames provide the ARQ mechanism when piggybacking is not used. Unnumbered frames U-frames provide supplemental link control functions. Because only one frame can be sent at a time, and transmission must stop until an acknowledgment is received, there is little effect in increasing the size of the message if the frame size remains the same. All that this would affect is connect and disconnect time. This would lower line efficiency, because the propagation time is unchanged but more acknowledgments would be needed.

For a given message size, increasing the frame size decreases the number of frames. This is the reverse of b. Then, using Equation 7. Using Equation 7. The first frame takes 10 msec to transmit; the last bit of the first frame arrives at B 20 msec after it was transmitted, and therefore 30 msec after the frame transmission began.

It will take an additional 20 msec for B's acknowledgment to return to A. Thus, A can transmit 3 frames in 50 msec. B can transmit one frame to C at a time. The NAK improves efficiency by informing the sender of a bad frame as early as possible. Station A sends frames 0, 1, 2 to station B.

Station B receives all three frames and cumulatively acknowledges with RR 3. Because of a noise burst, the RR 3 is lost. A times out and retransmits frame 0. B has already advanced its receive window to accept frames 3, 0, 1, 2. Thus it assumes that frame 3 has been lost and that this is a new frame 0, which it accepts. The sender never knows that the frame was not received, unless the receiver times out and retransmits the SREJ.

This would contradict the intent of the SREJ frame or frames. Any discrepancies result in discarding the frame. The last three enhancements allow the rejection of frames when the closing flag has been destroyed. Bit-stuffing at least eliminates the possibility of a long string of 1's. This is the number of the next frame that the secondary station expects to receive.

The LAPB control field includes, as usual, a sequence number unique to that link. The MLC field performs two functions. First, LAPB frames sent out over different links may arrive in a different order from that in which they were first constructed by the sending MLP. The absolute value of the difference between the lowest and highest frequencies. Why would analog data have to be modulated onto an analog signal? To move it to a different frequency. To prepare an analog signal for transmission with other analog signals.

How does a differential code such as differential Manchester code differ from a nondifferential code such as the NRZs? Differential code is based on the signal difference between two bits. What does it mean when a signal is self-clocking? The signal changes at a regular interval, thus providing a type of clock signal. What is the definition of baud rate? Number of signal changes per second. How does baud rate differ from bits per second?

One baud change can represent multiple bits of information, or one bit of information could involve multiple baud signal changes. What are the three main types of shift keying? What is the difference between pulse code modulation and delta modulation?

Pulse code modulation takes a snapshot at intervals and converts each snapshot into an n-bit sample. Delta modulation simply tracks a signal and uses a 1 or a 0 to denote the signal rising or falling. What is meant by the sampling rate of analog data? How many times per second an analog signal is sampled. ASCII can incorporate parity checking. Unicode can support multiple languages. Suggested Solutions to Exercises 1. What is the frequency in Hertz of a signal that repeats 80, times within one minute?

What is its period? What is the bandwidth of a signal composed of frequencies from 50 Hz to Hz? What is the baud rate of a digital signal that employs differential Manchester and has a data transfer rate of bps? What is the data transfer rate in bps of a signal that is encoded using phase modulation with 8 different phase angles and a baud rate of ?

If quadrature amplitude modulation is used to transmit a signal with a baud rate of , what is the corresponding bit rate? Draw or give an example of a signal for each of the following conditions: the baud rate is equal to the bit rate, the baud rate is greater than the bit rate, and the baud rate is less than the bit rate.

The NRZ schemes have baud rate equal to bit rate; the Manchester schemes have baud rate greater than bit rate; an encoding scheme that uses four or more amplitude, frequency, or phase changes. A signal starts at point X. As it travels to point Y, it loses 8 dB.

At point Y, the signal is boosted by 10 bB. As the signal travels to point Z, it loses 7 dB. What is the dB strength of the signal at point Z? In the preceding problem, if the signal started at point X with a strength of watts, what would be the power level of the signal at point Z?

Draw an example signal similar to those shown in Figure , using NRZI, in which the signal never changes for 7 bits. What does the equivalent differential Manchester encoding look like? If you transmit 7 0s in a row, using NRZI the voltage will be a straight line. If you transmit those 7 0s using differential Manchester, the voltage will change at the beginning of each bit, and once again in the middle of each bit.

Show the equivalent analog sine-wave pattern of the bit string using amplitude shift keying, frequency shift keying, and phase-shift keying. Too messy to draw the analog signals here.

Twenty-four voice signals are to be transmitted over a single high-speed telephone line. What is the bandwidth required in bps if the standard analog to digital sampling rate is used and each sample is converted into an 8 bit value? Assume each voice channel is Hz. To convert from analog to digital, you must sample at 2 times the bandwidth, thus 2 times equals samples per second.



0コメント

  • 1000 / 1000