












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













Data communication Basics 1.1 Data communication Data communication is the process of sharing ideas, information and messages with others in a particular time and place. This sharing can be local or remote. Between individuals, local communication usually occurs face to face, while remote communication takes place over distance. The term telecommunication , which includes telephony, telegraphy, and television, means communication at a distance (“tele ” is Greek for “far”). It refers to the exchange of data between two or more parties. Parities may refer to person’s organization or devices or machines. Computer communication is a process in which two or more computers or devices transfer or transmit data, instructions, and information. In other words, computer data communications is the movement of computer information from one point to another by means of electrical or optical transmission systems (called networks). The word data refers to information presented in whatever form is agreed upon by the parties creating and using the data. Data communication is a subset of telecommunication involving the transmission of data to and from computers and components of computer systems. More specifically, data Communication is the exchange of data (in the form of 0’s and 1’s) between two or more devices (computers) via some form of the transmission medium such as wires, coaxial cables, fiber optics, or radiated electromagnetic waves such as broadcast radio, infrared light, microwaves, and satellites. For data communication to occur, the communicating devices must be a part of a communication system made up of some specific kind of hardware and software. This type of a system is known as a data communication system. The effectiveness of a data communications system depends on four fundamental characteristics: delivery, accuracy, timeliness, and jitter. i. Delivery. The system must deliver data to the correct destination. Data must be received by the intended device or user and only by that device or user. ii. Accuracy. The system must deliver the data accurately. Data that have been altered in transmission and left uncorrected are unusable. iii. Timeliness. The system must deliver data in a timely manner. Data delivered late are useless. In the case of video and audio, timely delivery means delivering data as they are produced, in the same order that they are produced, and without significant delay. This kind of delivery is called real-time transmission. iv. Jitter. Jitter refers to the variation in the packet arrival time. It is the uneven delay in the delivery of audio or video packets. Components of Data Communication System A data communications system has five components as it is shown on Fig 1.1. Fig 1.1 Five components of data communication
a. Message. The message is the information (data) to be communicated. Popular forms of information include text, numbers, pictures, audio, and video. b. Sender. The sender is the device that sends the data message. It can be a computer, workstation, telephone handset, video camera, and so on. c. Receiver. The receiver is the device that receives the message. It can be a computer, workstation, telephone handset, television, and so on. d. Transmission medium. The transmission medium is the physical path by which a message travels from sender to receiver. Some examples of transmission media include twisted-pair wire, coaxial cable, fiber-optic cable, and radio waves. e. Protocol. A protocol is a set of rules that govern data communications. It represents an agreement between the communicating devices. Without a protocol, two devices may be connected but not communicating. A modified communication system Fig 1.2 Elements of a modified communication system 1.2 Data representation Information today comes in different forms such as text, numbers, images, audio, and video. Text: In data communications, text is represented as a bit pattern, a sequence of bits (0s or 1s). Different sets of bit patterns have been designed to represent text symbols. Each set is called a code, and the process of representing symbols is called coding. Today, the prevalent coding system is called Unicode, which uses 32 bits to represent a symbol or character used in any language in the world. The American Standard Code for Information Interchange (ASCII), developed some decades ago in the United States, now constitutes the first 127 characters in Unicode and is also referred to as Basic Latin. Numbers : Numbers are also represented by bit patterns. However, a code such as ASCII is not used to represent numbers; the number is directly converted to a binary number to simplify mathematical operations. Images: Images are also represented by bit patterns. In its simplest form, an image is composed of a matrix of pixels (picture elements), where each pixel is a small dot. The size of the pixel depends on the resolution. After an image is divided into pixels, each pixel is assigned a bit pattern. The size and the value of the pattern depend on the image. For an image made of only black-and-white dots (e.g., a chessboard), a 1-bit pattern is enough to represent a pixel. Audio : Audio refers to the recording or broadcasting of sound or music. Audio is by nature different from text, numbers, or images. It is continuous, not discrete. Even when we use a microphone to change voice or music to an electric signal, we create a continuous signal. Video : Video refers to the recording or broadcasting of a picture or movie. Video can either be produced as a continuous entity (e.g., by a TV camera), or it can be a combination of images, each a discrete entity, arranged to convey the idea of motion
1.4 Signal Encoding Techniques Basic terminologies Data rate/bit rate - defines the number of data elements (bits) sent in 1s. The unit is bits per second (bps). Signal rate- the number of signal elements sent in 1s. The unit is the baud. The signal rate is sometimes called the pulse rate, the modulation rate, or the baud rate. Amplitude refers to the strength of a signal, usually measured in volts. Period refers to the amount of time, in seconds, a signal needs to complete 1 cycle. Frequency refers to the number of periods in 1 s. Note that period and frequency are just one characteristic defined in two ways. Period is the inverse of frequency, and frequency is the inverse of period i.e. f=1/T and T=1/f. Frequency is formally expressed in Hertz (Hz), which is cycle per second. Frequency is the rate of change with respect to time. Change in a short span of time means high frequency. Change over a long span of time means low frequency. Phase/phase shift - describes the position of the signal relative to time 0. If we think of the signal as something that can be shifted backward or forward along the time axis, phase describes the amount of that shift. It indicates the status of the first cycle_._ Bandwidth - The range of frequencies contained in a composite signal is its bandwidth. The bandwidth is normally a difference between two numbers. For example, if a composite signal contains frequencies between 1000 and 5000, its bandwidth is 5000 − 1000, or 4000Hz. One goal in data communications is to increase the data rate while decreasing the signal rate. Increasing the data rate increases the speed of transmission; decreasing the signal rate decreases the bandwidth requirement. Bandpass channel — a channel with a bandwidth that does not start from zero. This type of channel is more available than a low-pass channel. If the available channel is a bandpass channel, we cannot send the digital signal directly to the channel; we need to convert the digital signal to an analog signal before transmission. Low-pass channel – is a channel that passes frequencies between 0 and f. Baseband transmission- is a transmission of digital or analog signal without modulation, using a low-pass channel. Broadband transmission- is a transmission of signals using modulation of a higher frequency signal. The term implies a wide-bandwidth data combined from different sources. 1.4.1 Digital data to digital signal conversion In this part we are going to see how to convert digital data into digital signals. It can be done in three ways; line coding, block coding and scrambling. For all communications, line coding is necessary whereas block coding and scrambling are not mandatory. A. Line Coding The process for converting digital data into digital signal is said to be Line Coding. Digital data is found in digital format, which is a binary bit. It is represented (stored) internally as series of 1s and 0s. At the sender, digital data are encoded into a digital signal; at the receiver, the digital data are recreated by decoding the digital signal.
Fig 1.3 Line coding and decoding Digital signals which represents digital data, represented as discrete signals. Three types of line coding schemes are available: unipolar, polar and bi-polar. i. Unipolar encoding Unipolar encoding scheme uses single voltage level to represent data. In this case, to represent binary 1 high voltage is transmitted and to represent 0 no voltage is transmitted. It is also called Unipolar-Non-Return-to- Zero, because there is no rest condition i.e. it either represents 1 or 0. Fig 1. 4 Unipolar NRZ Encoding ii. Polar encoding In polar encoding schemes multiple voltage levels are used to represent binary values. Polar encodings are available in four types: a. Polar-NRZ (Non-Return to Zero) It uses two different voltage levels to represent binary values, generally positive voltage represents 1 and negative value represents 0. It is also NRZ because there is no rest condition. NRZ scheme has two variants: NRZ-L and NRZ-I. Fig 1. 5 Polar-NRZ schemes: NRZ-L and NRZ-I
Fig 1. 8 Bipolar schemes: AMI and Pseudoternary B. Block Coding To ensure accuracy of data frame received, redundant bits are used. For example, in even parity one parity bit is added to make the count of 1s in the frame even. This way the original numbers of bits are increased. It is called Block Coding. Block coding is represented by slash notation, mB/nB, that is m-bit block is substituted with n-bit block where n > m. Block coding involves three steps: division, substitution and combination. After block coding is done it is line coded for transmission. 1.4.2 Analog data to digital data conversion Microphones creates analog voice and camera creates analog videos, which here in our case is treated is analog data. To transmit this analog data over digital signals we need an analog to digital conversion. Analog data is waveform continuous stream of data whereas digital data is discrete. To convert analog wave into digital data we use Pulse Code Modulation and Delta Modulation. A. Pulse Code Modulation It is one of the most commonly used methods to convert analog data into digital form. It involves three steps: Sampling, Quantization and Encoding. Sampling: The analog signal is sampled every T interval. Most important factor in sampling is the rate on which analog signal is sampled. According to Nyquist Theorem, the sampling rate must be at least two times of the highest frequency of the signal. To elaborate the theorem, first, we can sample a signal only if the signal is band-limited. In other words, a signal with an infinite bandwidth cannot be sampled. Second, the sampling rate must be at least 2 times the highest frequency, not the bandwidth. If the analog signal is low-pass, the bandwidth and the highest frequency are the same value. If the analog signal is bandpass, the bandwidth value is lower than the value of the maximum frequency. Nyquist sampling rate: fs =2 f; where f is the highest frequency. Quantization: is a method of assigning integral values in a specific range to sampled instances. The result of sampling is a series of pulses with amplitude values between the maximum and minimum amplitudes of the signal. The set of amplitudes can be infinite with nonintegral values between the two limits. These values cannot be used in the encoding process. The following are the steps in quantization:
Encoding: In encoding, each approximated value is then converted into binary format. Fig 1. 9 Quantization and encoding of a sampled signal Normalized PAM values=(Actual amplitude/Δ) Normalized quantized values=quantization value from the middle of each zone Normalized error= Normalized quantized values- Normalized PAM values (Read Behrouz A. Forouzan.(2013).Data communication and networkings,5th^ edition. Section 4 .2.1) B. Delta Modulation PCM is a very complex technique whereas DM is the simplest modulation technique. PCM finds the value of the signal amplitude for each sample; DM finds the change from the previous sample. Fig 1. 10 Delta modulation
D. Quadrature phase shift keying QPSK alters the phase to reflect 2 binary digits at once. This is done in two different phases. The main stream of binary data is divided equally into two sub-streams. The serial data is converted in to parallel in both sub- streams and then each stream is converted to digital signal using NRZ technique. Later, both the digital signals are merged together. 1.4.4 Analog-to-analog conversion Analog signals are modified to represent analog data. This conversion is also known as Analog Modulation. Analog modulation is required when bandpass is used. Analog to analog conversion can be done in three ways: Amplitude, frequency and phase modulation. A. Amplitude modulation In this modulation, the amplitude of the carrier signal is modified to reflect the analog data. Fig 1. 14 Amplitude Modulation Amplitude modulation is implemented by means of a multiplier. The amplitude of modulating signal (analog data) is multiplied by the amplitude of carrier frequency, which then reflects analog data. The frequency and phase of carrier signal remain unchanged. B. Frequency modulation In this modulation technique, the frequency of the carrier signal is modified to reflect the change in the voltage levels of the modulating signal (analog data).
Fig 1. 15 Frequency Modulation The amplitude and phase of the carrier signal are not altered. C. Phase modulation In the modulation technique, the phase of carrier signal is modulated in order to reflect the change in voltage (amplitude) of analog data signal. Fig 1. 16 Phase Modulation Phase modulation practically is similar to Frequency Modulation, but in Phase modulation, frequency of the carrier signal is not increased. Frequency in carrier signal is changed (made dense and sparse) to reflect voltage change in the amplitude of modulating signal. 1.5 Modes of Data Transmission
faster than parallel because of way bits processed (e.g. USB and SATA drives). It is suitable for transmission over Long distance. Note : Received signal is never same as transmitted. Clock signal samples & regenerates the original bits as it was transmitted. Received signal should be sampled at right instant. Otherwise it will cause bit error. There are two types of serial transmissions. A. Asynchronous serial transmission It is named so because there is no importance of timing. Data-bits have specific pattern and helps receiver recognize when the actual data bits start and where it ends. For example, a 0 is prefixed on every data byte and one or more 1s added at the end. Two continuous data-frames (bytes) may have gap between them. In asynchronous serial transmission
1.6 Data transmission error detection and correction Introduction Networks must be able to transfer data from one device to another with complete accuracy. A system that cannot guarantee that the data received by one device is identical to the data transmitted by another device is essentially useless. Anytime the data is transmitted from source to destination, it gets corrupted on the way. Many factors including noise can alter or wipe out one or more bits of a given data unit. Reliable systems must have a mechanism for detecting and correcting such errors. Error detection and Correction is implemented either at the data link layer or at the transport layer. 1.6.1 Type of errors There are two types of error: single-bit and burst errors. Whenever an electromagnetic signal flows from one point to the other, it is subject to unpredictable interference from heat, magnetism and other forms of electricity. This interference can change the shape or timing of the signal. If the signal is carrying encoded binary data, such changes can alter the meaning of the data. Single Bit error In a single-bit error, a 0 is changed to a 1 or a 1 to a 0. For example, a 0.01 second burst of impulse noise on a transmission with a data rate of 1200 bps might change all or some of 12 bits of information. Fig 1. 19 Single bit error The term single bit error means that only one bit of a given data unit (such as a byte, character, or a packet) is changed from 1 to 0 or from 0 to 1. Figure shows the effect of a single bit error on a data unit. Single bit errors are the least likely type of error in serial data transmission. To see why, imagine a sender sends data at 1Mbps. This means that each bit lasts only 1/1,000,000 seconds or 1 microsecond. For single bit error to occur the noise must have duration of 1 microsecond which is very rare, noise lasts much longer than that. However, single bit error can occur if we are sending data using parallel transmission. For example, if 8 wires are used to send all of the eight bits of a byte at the same time and one of the wires is noise, one bit can be corrupted in each byte. Burst Errors The term burst error means that two or more bits in the data unit have changed from 1 to 0 or from 0 to 1. Fig 1. 20 Burst error The above figure shows the effect of a burst error on a data unit. In this case 0100010001000011 was sent but 0101110101000011 was received. Note that a burst error does not necessarily mean that error occur in consecutive bits.
Fig 1. 22 Even partiy checking As it is shown on the figure above, we want to transmit the binary data unit 1100001. Adding together the number of 1’s gives us 3, an odd number. Before transmitting, we pass the data unit through a parity generator, which counts the 1’s and appends the parity bit (1) to the end. The total number of 1’s is now 4, an even number. The system now transfers the entire expanded across the network link. When it reaches its destination, the receiver puts all 8 bits through an even parity checking function. If the receiver sees 11100001, it counts four ones, an even number and the data unit passes. Instead of 11100001, if receiver sees 11100101, then the parity checker counts the 1’s, it gets 5 an odd number and therefore rejects the whole unit. Some systems may also use odd parity checking. The principal is the same as even parity. B. Longitudinal Redundancy Check (LRC) In LRC, a block of bits is organized in a table (rows and columns). For example instead of sending 32 bits, we organize them in a table made of 4 rows and 8 columns. Fig 1. 23 Longtidunal Redundancy Checking We then calculate the Parity bit for each column and create a new row of 8 bits which are the parity bits for the whole block. Note that the first parity bit in the 5th^ row is calculated based on all the first bits. The second parity bit is calculated based on all the second bits and so on. We then attach the 8 parity bits to the original data and send them to the receiver. C. Cyclic Redundancy Check (CRC)
Fig 1. 24 Cyclic Redundancy Checking First a string of n 0’s is appended to the data unit. The number ‘n’ is one less than the number of bits in the predetermined divisor, which is “n+1” bits. Secondly, newly elongated data unit is divided by the divisor using a process called binary division. The remainder resulting from this division is the CRC. Third, the CRC of ‘n’ bits replaces the appended 0’s at the end of the data unit. Note that CRC may consist of all zeros. The data unit arrives at the receiver followed by the CRC. The receiver treats the whole string as a unit and divides it by the same divisor that was used to find the CRC remainder. If string arrives without an error, the CRC checker yields a remainder of zero and data unit passes. If the string has been changed in transit, the division yields a non-zero remainder and the data unit does not pass. D. CHECKSUM
Fig 1.2 7 Hamming code recovering a single-bir error Further reading assignment