Data Communication

Created by
BBorhan
Last edited time
Tag

Chapters : 01-06, 08, 10, 12

References :

  • Data Communication and Networking - Behrouz A. Forouzan
  • Mumbai University Archives
  • Articles

Chapter 01: Introduction


Data: Data refers to the raw facts that are collected.

Information: Information refers to processed data that enables us to take decision.

Data Communication: Data communications are the exchange of data between two devices by some form of transmission medium such as a wire cable.

The effectiveness of data communication:

The components of data communication: There are five components.

Data Representation

TextNumbersImagesAudioVideo
- Represented by bit pattern, a sequence of bit.
- Encoding System: ASCII, Unicode
- Stored as a patter of bits- A pixel is the smallest element of an image represented by bits.
- Image is a matrix of pixels
- the recording or broadcasting of sound or music
- Continuous signal
- the recording or broadcasting of a picture or movie.

Data flow

Data flow is the movement of data through a system comprised of software, hardware or a combination of both.

Basic for ComparisonSimplexHalf DuplexFull Duplex
Direction of CommunicationUnidirectionalTwo-directional, one at a timeTwo-directional, simultaneously
Send/ReceiveThe sender can only send dataThe sender can send and receive data, but one a timeThe sender can send and receive data simultaneously
PerformanceWorstBetterBest
ExampleKeyboardWalkie-TalkieTelephone

Network

A network is the interconnection of a set of devices capable of communication.

A network criteria:

ReliabilitySecurityPerformance
Measured by- the frequency of failure
- the time it takes a link to recover from a failure
- protecting data from unauthorized access, damage and developmentmany ways
- transit time, response time
- achieving by higher throughput and smaller delay

Type of Connection

Basis for ComparisonPoint-to-Potin ConnectionMultipoint Connection
Definitiona dedicated link between two devicesmore than two devices share a single link
Sender/Receiverthere is one transmitter and one receiverone transmitter but many receivers
SecurityProvides securityDoesn’t provide security and privacy
ComplexitySimple and StraightforwardComplex
CostCostlierLower
SuitabilityIdeal for dedicated, reliable communicationsBeneficial for integrated systems with multiple devices

Physical Topology

The term physical topology refers to the way in which a network is laid out physically.

TopologyHow does it works?AdvantagesDisadvantages
Bus - All device connected to a single cable, with terminators at each end.

The main cable serves the network’s spine. All nodes are linked to the Taps and Drop lines. Drop lines are the connection between the bus and the nodes. The taps are three way connector that aids in connecting the dropline to the main central cable.

- The travels only one direction, and when it reaches the end the terminal removes it. one computer acts as a server and other computers act as clients.

Example: Connection two floors with a single line.
- Less Cabling
- Less Expensive
- Small network
- Upgradeable
- Reduced signal strength
- Core failure
- Low Security
Mesh- Every device has a dedicated point to point link to every other device.
Duplex-mode links : n*(n-1)/2
n : Total Nodes
Fully-connected mesh : each computer is linked with all
Partially connected mesh: only specific computers are connected to those with whom they frequently communicate

Example: Internet
- Consistent : reliable
- High-speed information exchange
- Easier reconfiguration
- Costly
- High-maintenance
- Reducing network efficiency
Ring- Devices are connected in a closed loop, with each device connected to two other devices.
The last computer is linked to the first, forming a loop. Each computer has exactly two neighbors.
The central computer in this topology is the monitor station, which in charge all operations. Devices use tokens for data transmission between them. The computer station must have the token to transmit data. The token is released when the transmission ends, and other computer stations can use it to send data.

Example: Industrial Control System, where device are interconnected in a ring to monitor and control processes.
- Token System
- Less Cabling
- Easier troubleshooting
- Difficult to upgrade
- When one system crashes, it disturbs the overall network activity.
Star- All devices are connected to a central hub or switch. Each node is connected to the hub with a point-to-point connection. All traffic passes through the hub that serves a repeater.- Easy to install and wire.
- No disruptions to the network when connecting or removing.
- Easy to detect faults and remove parts.
- Requires more cable length
- If the hub, switch or concentrator fails, nodes attached are disables.
- Expensive

Consideration When Choosing a Topology: Money. Length of cable needed, Future growth, Cable type

Network Types

Basis for
Comparison
LANMANWAN
Full formLocal Area NetworkMetropolitan Area NetworkWide Area Network
DefinitionLAN is a network that usually connects a small group of computers in a given geographical areaMAN is comparatively wider network that covers large region, like towns and cities.The WAN network spans to an even large locality - like various countries together.
OwnershipPrivate hospitals, home, schools, officeCan be both private or public. Many organizations and telecom operators.Can be both private or public.
Maintenance and designEasyComparatively difficultVery difficult
SpeedHighModerateLow
Propagation
delay
Very shortModerateHigh
Faulty ToleranceBetterLesserLesser
Communication
on allotment
Typically allows a single pair of devices to communicate. But it may support more too.Allows multiple computers to interact simultaneously with each other.A huge group of computers can easily interact with each other.
CongestionVery lowHigherHigher

Chapter 02: Network Models


Protocol Layering: A layer protocol architecture provides a conceptual framework for diving the complex task of exchanging information between remote hosts into simpler task.

Principle of Protocol Layering:

Internet Protocol Suite/ TCP/IP : The internet protocol suite, commonly knowns as TCP/IP, is a framework for organizing the set of communication protocols used in the internet and similar computer net

Layered Architecture

OSI : Open System Interconnection

Description of Layers in OSI Model

Multiplexing and Demultiplexing

Chapter 03: Introduction to Physical Layer


Analog Datainformation that is continuousHuman voice
Digital Datainformation that has discrete statesData are stored in computer in the form of 0s and 1s
Periodic SignalSignals which repeat itself after a fixed time period
Non-periodic SignalSignal which do not repeat itself after a fixed time period

Analog Signal

Characteristics of an analog signal (Sine wave is analog) : 3 characteristics

Peak Amplitude

  • The peak amplitude of a signal is the absolute value of the highest intensity
  • The amplitude of a signal is proportional to the energy carried by the signal

Frequency and Period

  • Frequency (f)(f) refers to the number of cycles completed by the wave in one second.
    Frequency is the rate of change w.r.t time.
    If signal doesn’t change at all, ff is 00. If it changes instantaneously, ff is \infin
    Frequency is independent of the medium
  • Period (T)(T) refers to the time taken by the wave to complete one cycle

f=1Tf = \frac{1}{T}

Phase

  • Phase describes the position of the waveform w.r.t time.
  • Phase indicates the forward and backward shift of the waveform from the axis.
  • It is measured in degrees or radian

Example: A sine wave is offset 16\frac{1}{6} cycle w.r.t time. What is phase degrees in degrees and radian.

16×360=60°\frac{1}{6} \times 360 = 60 \degree
60°=60×2π360=π3 rad60\degree = 60 \times \frac{2\pi}{360} = \frac{\pi}{3} \text{ rad}

Wavelength

  • The wavelength (λ) (\lambda) is the distance a signal travels in one period.
  • It is depends on medium and frequency
  • It is measured in micrometers

λ=Propagation Speed×T\lambda = \text{Propagation Speed} \times T

λ=Propagation Speed×1f\lambda = \text{Propagation Speed} \times \frac{1}{f}

Time Domain and Frequency Domain

Composite Signal

Digital Signal

  • They have limited number of defined values
  • Information in digital signal can be explained in the form of voltage levels
  • If a signal has LL levels, each level need log2Llog_2L bits.
For the second one 11 = Level 3, 10 = Level 2, …

Bit Length or Interval

  • The bit length is the distance one bit occupies on the transmission medium

Bit length =propagation speed×bit duration\text{Bit length } = \text{propagation speed} \times \text{bit duration} 

Bit Rate

  • It is the the number of bits transmitted in one second
  • Expressed as bits per second (bps)

Example: An analog signal carries 4 bits in each signal unit. If 1000 signal units are send per second. Find the baud rate and bit rate.

Baud rate : 1000 bauds

Bit rate = 4 * 1000 = 400 bps

Baud Rate

  • It is the rate of signal speed
  • The number of signal units per second that are required to represent these bits

Channel

Types of Channels

Low Pas ChannelBand Pass Channel
The channel has the lowest frequency as 0 and highest frequency as some non zero frequency f1.The channel has the lowest frequency as some non-zero frequency ‘f1’ and highest frequency as some non-zero frequency ‘f2’
This channel can pass all the frequencies in the range 0 to f1.The channel can pass all frequencies in the range f1 to f2.
Rough Approximation (minimum) : N/2
First two harmonics : 3N/2
First three harmonic : 5N/2
N = frequency

Baseband TransmissionBroad band transmission
The signal is transmitted without making any change to itA digital signal cannot be transmitted directly through it
The bandwidth of the signal to be transmitted has to be less than the bandwidth of the channelWe use modulation. We change the signal to analog signal before transmitting it.
Ex. Consider a Baseband channel with lower frequency
0Hz and higher frequency 100Hz, hence its bandwidth is 100. We can easily transmit a signal with frequency below 100Hz. Logically a signal with frequency say 120Hz will be blocked
Ex. Consider the bandpass channel with lower frequency 50Hz and higher frequency 80Hz, and the signal to be transmitted has frequency 10Hz.
To pass the analog signal through the bandpass channel, the signal is modulated using a carrier frequency.
The analog signal (10Hz) is modulated by a carrier frequency of 50Hz resulting in an signal of frequency 60Hz which can pass through our bandpass channel.

Bandwidth

Bandwidth of an analog signal:

Bandwidth = 90 - 30 = 60 Hz

Bandwidth of an digital signal

Bandwidth of a Channel

Attenuation : It means a loss of energy. When a signal travels through a medium, it loses some of its energy in overcoming the resistance.

Signal lost ot gained=10log10P2P1 dB\text{Signal lost ot gained} = 10 log_{10}{\frac{P_2}{P_1}} \text{ dB}

Distortion: It means that the signal changes its form or shape. It can occur in a composite signal made of different frequencies. Each signal has its own propagation speed through a medium and therefore its own delay in arriving at the final destination.

SNR : Signal to Noise Ratio

SNR=average signal poweraverage noise power\text{SNR} = \frac{\text{average signal power}}{\text{average noise power}}

SNRdB=10log10SNR\text{SNR}_{dB} = 10 log_{10} \text{SNR}

The maximum data rate of a channel

Data rate depends on three factors:

The Quality of the channel

Noiseless or Perfect ChannelNoisy Channel
An ideal channel with no noiseA realistic channel that has some noise
The Nyquist bit rate gives the bit rateThe Shannon Capacity gives the bit rate

Nyquist Bit Rate

Bit Rate=2×Bandwidth ×log2L\text{Bit Rate} = 2 \times \text{Bandwidth } \times log_2 L

Shannon Capacity

Capacity=Bandwith ×log2(1+SNR)\text{Capacity} = \text{Bandwith } \times log_2 (1 + \text{SNR}) 

Propagation time : Time required for a bit to travel from the source to the destination.

Propagation time=Distance/Propagation Speed\text{Propagation time} = \text{Distance}/ \text{Propagation Speed}

Transmission Time

Transmission Time=Message size/Bandwidth\text{Transmission Time} = \text{Message size} / \text{Bandwidth}

Chapter 05: Digital Transmission


Line Coding

Example: A signal is carrying data in which one data element is encoded as one signal element (r = 1). If the bit rate is 100 kbps, what is the average value of the baud rate if c is between 0 and 1?

S=c×N×1/r=1/2×100000×1/2=50 kbaudS = c \times N \times 1/r = 1/2 \times 100000 \times 1/2 = 50 \text{ kbaud}

Line coding scheme line

all the signal levels are on one side of the time axis

NRZ (Non-Return-to-Zero)

  • Positive voltage defines bit 1 and the zero voltage defines bit 0;

In polar schemes, the voltages are on both sides of the time axis.

NRZ-L (NRZ_Level)

If bit 0 : 1
if bit 1 : 0 (under the reference)

NRZ-I (NRZ Invert)

If bit 0 : No change

if bit 1 : Transition

NRZ-L and NRZ-I both have an average signal rate of N/2 Bd.

Polar RZ (Return to Zero)

1 → Z

0 → Reverse Z

Polar Manchester

0 → + to - transition

1 → - to + transition

Polar Differential Manchester

Bipolar RZ

0 → Reference line
1 → Z, if again 1 reverse Z, continues …

Bipolar AMI

0 → Draw line on reference

1 → Draw line above, then again below, alternating..

Bipolar Pseudoternary

1 → Draw line on reference

0 → Draw line above, below, alternating.

Skipped.

Chapter 05 : Analog Transmission


Digital to Analog Conversation

It is the process of changing one of the characteristics of an analog signal based on the information in digital data.

S=N×1rS = N \times \frac{1}{r}; r=log2Lr = log_2 L

S = signal per second or baud rate\text{S = signal per second or baud rate}

N = data rate/ bit rate/ bits per second \text{N = data rate/ bit rate/ bits per second }

L = number of different signal elements\text{L = number of different signal elements}

Analog Transmission

A method of sending/transmitting information over long distance by encoding it as an analogue signal.

Carrier Signal

In analog transmission. the sending device produces a high-frequency signal that acts as a base for the information signal. The base signal is known as carrier signal or frequency.

Chapter 06


Frame Size = Number of source * output slot carries + synchronization bit

Frame rate = source bandwidth/output slot carries

Frame duration = 1/frame rate

Data rate = frame rate * frame size

Efficiency =

SNRdB=6.02×r+1.76SNR_{\text{dB}} = 6.02 \times r + 1.76

PCM bandwidth : r×Banalogr \times B_{\text{analog}}

Sr. NoHubSwitchRouter
1.Hub is a physical layer device i.e. layer 1.Switch is a data link layer device i.e. layer 2.Router is a network layer device i.e. layer 3.
2.A Hub works on the basis of broadcasting.Switch works on the basis of MAC address.A router works on the basis of IP address.
3.A Hub is a multiport repeater in which a signal introduced at the input of any port appears at the output of the all available ports.A Switch is  a tele-communication  device which receives a message from any device connected to it and then transmits the message only to the device for which the message is intended.A router reads the header of incoming packet and forward it to the port for which it is intended there by determines the route. It can also perform filtering and encapsulation.
4.Hub is not an intelligent device that may include amplifier on repeater.A Switch is an intelligent device as it passes on the message to the selective device by inspecting the address.A route is more sophisticated and intelligent device as it can read IP address and direct the packets to another network with specified IP address. Moreover routers can built address tables that helps in routing decisions.
5.At least single network is required to connect.At least single network is required to connect.Router needs at least two networks to connect.
6.Hub is cheaper as compared to switch and router.Switch is an expensive device than hub.Router is a relatively much more expensive device than hub and switch.
7.Speed of original hub 10Mbps and modern internet hub is 100Mbps.maximum speed is 10Mbps to 100Mbps.maximum speed for wireless is 1-10 Mbps and maximum speed for wired connections is 100 Mbps.
8.Hubs are used in LANs.Switch is used in LANs.Routers are used in LANs, MANs and WANs.
From Anamul_11