Introduction to Computer Networks
Introduction to Computer Networks
Computer network -- A computer network is a system that connects two or more devices—
like computers, printers, and servers—to share data, resources, and services over physical
cables or wireless connections.
INTRODUCTION TO DATA COMMUNICATION--
Data Communication--
Data communication refers to the process of transmitting and receiving data between two or
more devices over a communication channel. It involves the conversion of data into signals
that can be transmitted and then decoding those signals at the receiving end. Effective data
communication requires the use of appropriate protocols, encoding techniques, and hardware
devices.
Components of Data Communication--
Data communication systems consist of several components that work together to enable the
transfer of data. These components include:
Sender: The device or system that initiates the data transmission.
Receiver: The device or system that receives the transmitted data.
Medium/Channel: The physical pathway through which data is transmitted, such as
cables or wireless connections.
Protocol: A set of rules and conventions that govern the transmission and reception of
data.
Modem: Short for modulator-demodulator, a device that converts digital signals into
analog signals for transmission and vice versa.
Types of Data Transmission--
Data transmission can occur in two primary ways:
Serial Transmission: In serial transmission, data is transmitted bit by bit over a single
communication channel. It is commonly used for long-distance communication and is more
reliable but slower compared to parallel transmission.
Parallel Transmission: In parallel transmission, multiple bits are transmitted
simultaneously over separate communication channels. It allows for faster data transfer but
is more susceptible to errors in long-distance transmissions.
Network application—
A network application is a software program which operates over a network and allows
communication and data sharing between multiple devices and users. Various essential
technologies, often referred to as building blocks, serve as foundational elements that
developers can utilize to create scalable and effective applications within a networking
infrastructure.
There is a wide range of network applications that are used on different devices like
smartphones, tablets, laptops, servers, etc. In fact, every device connected to a network relies
on some form of network application to communicate effectively within that network.
Types of network applications
Network applications come in various forms, each serving different purposes and use cases.
Here are some common types:
Client-server applications
These applications involve a client requesting services or resources from a server. The
server then provides the requested information or performs the necessary actions.
Examples include web browsers accessing web servers and email clients
communicating with mail servers.
Peer-to-peer applications
Unlike client-server applications, peer-to-peer (P2P) applications enable direct
communication between devices without relying on a central server. Popular examples
include file-sharing programs like BitTorrent and communication tools like Skype.
Real-time applications These applications require low latency and high-speed data
transfer to function effectively. Examples include video conferencing tools like Zoom
and online gaming platforms, where real-time interaction is crucial.
Batch applications Batch applications process data in batches rather than in real-time.
They are often used for tasks such as data backup, file transfer, and large-scale data
processing. Examples include automated backup systems and batch file transfer utilities.
Network Hardware—
Network hardware is a set of physical or network devices that are essential for interaction and
communication between hardware units operational on a computer network. These are
dedicated hardware components that connect to each other and enable a network to function
effectively and efficiently.
Network hardware plays a key role as industries grow as it supports scalability. It integrates
any number of components depending on the enterprise’s needs. Network hardware helps
establish an effective mode of communication, thereby improving the business standards. It
also promotes multiprocessing and enables sharing of resources, information, and software
with ease.
Network equipment is part of advancements of the Ethernet network protocol and utilizes a
twisted pair or fiber cable as a connection medium. Routers, hubs, switches, and bridges are
some examples of network hardware.
Let’s look at the fundamental devices of a computer network.
Modems: A modem enables a computer to connect to the internet via a telephone line.
The modem at one end converts the computer’s digital signals into analog signals and
sends them through a telephone line. At the other end, it converts the analog signals to
digital signals that are understandable for another computer.
Routers: A router connects two or more networks. One common use of the router is to
connect a home or office network (LAN) to the internet (WAN). It generally has a
plugged-in internet cable along with cables that connect computers on the LAN.
Alternatively, a LAN connection can also be wireless (Wi-Fi-enabled), making the
network device wireless. These are also referred to as wireless access points (WAPs).
Hubs, bridges, and switches: Hubs, bridges, and switches are connecting units that
allow multiple devices to connect to the router and enable data transfer to all devices on
a network. A router is a complex device with the capabilities of hubs, bridges, and even
switches.
Hubs: A hub broadcasts data to all devices on a network. As a result, it consumes a lot
of bandwidth as many computers might not need to receive the broadcasted data. The
hub could be useful in linking a few gaming consoles in a local multiplayer game via a
wired or wireless LAN.
Bridges: A bridge connects two separate LAN networks. It scans for the receiving
device before sending a message. This implies that it avoids unnecessary data transfers
if the receiving device is not there. Moreover, it also checks to see whether the receiving
device has already received the message. These practices improve the overall
performance of the network.
Switches: A switch is more powerful than a hub or a bridge but performs a similar role.
It stores the MAC addresses of network devices and transfers data packets only to those
devices that have requested Thus, when the demand is high, a switch becomes more
efficient as it reduces the amount of latency.
Network interface cards: A network interface card (NIC) is a hardware unit installed
on a computer, which allows it to connect to a network. It is typically in the form of a
circuit board or chip. In most modern machines, NICs are built into the motherboards,
while in some computers, an extra expansion card in the form of a small circuit board
is added externally.
Network cables: Cables connect different devices on a network. Today, most networks
have cables over a wireless connection as they are more secure, i.e., less prone to attacks,
and at the same time carry larger volumes of data per second.
Firewall: A firewall is a hardware or software device between a computer and the rest
of the network open to attackers or hackers. Thus, a LAN can be protected from hackers
by placing a firewall between the LAN and the internet connection. A firewall allows
authorized connections and data-like emails or web pages to pass through but blocks
unauthorized connections made to a computer or LAN.
Protocol—
A protocol is a set of rules that determines how data is sent and received over a network. The
protocol is just like a language that computers use to talk to each other, ensuring they
understand and can respond to each other's messages correctly. Protocols help make sure that
data moves smoothly and securely between devices on a network.
To make communication successful between devices, some rules and procedures should be
agreed upon at the sending and receiving ends of the system. Such rules and procedures are
called Protocols. Different types of protocols are used for different types of communication.
Protocols
In the above diagrams, Protocols are shown as a set of rules. Communication between the
Sender and Receiver is not possible without Protocol.
Key Elements of Protocol
Syntax: Syntax refers to the structure or the format of the data that gets exchanged
between the devices. Syntax of the message includes the type of data, composition of
the message, and sequencing of the message. The starting 8 bits of data are considered
as the address of the sender. The next 8 bits are considered to be the address of the
receiver. The remaining bits are considered as the message itself.
Semantics: Semantics defines data transmitted between devices. It provides rules and
norms for understanding message or data element values and actions.
Timing: Timing refers to the synchronization and coordination between devices while
transferring the data. Timing ensures at what time data should be sent and how fast data
can be sent. For example, If a sender sends 100 Mbps but the receiver can only handle
1 Mbps, the receiver will overflow and lose data. Timing ensures preventing of data
loss, collisions, and other timing-related issues.
Sequence Control: Sequence control ensures the proper ordering of data packets. The
main responsibility of sequence control is to acknowledge the data while it get received,
and the retransmission of lost data. Through this mechanism, the data is delivered in
correct order.
Flow Control: Flow control regulates device data delivery. It limits the sender's data or
asks the receiver if it's ready for more. Flow control prevents data congestion and loss.
Error Control: Error control mechanisms detect and fix data transmission faults. They
include error detection codes, data resend, and error recovery. Error control detects and
corrects noise, interference, and other problems to maintain data integrity.
Security : Network security protects data confidentiality, integrity, and authenticity.
which includes encryption, authentication, access control, and other security
procedures. Network communication's privacy and trustworthiness are protected by
security standards.
Introduction to Layered Architecture--
Every network consists of a specific number of functions, layers, and tasks to perform. Layered
Architecture in a computer network is defined as a model where a whole network process is
divided into various smaller sub-tasks. These divided sub-tasks are then assigned to a specific
layer to perform only the dedicated tasks. A single layer performs only a specific type of task.
To run the application and provide all types of services to clients a lower layer adds its services
to the higher layer present above it. Therefore layered architecture provides interactions
between the sub-systems. If any type of modification is done in one layer it does not affect the
next layer.
Layered Architecture
As shown in the above diagram, there are five different layers. Therefore, it is a five-layered
architecture. Each layer performs a dedicated task. The lower-level data for example from
layer 1 data is transferred to layer 2. Below all the layers Physical Medium is present. The
physical medium is responsible for the actual communication to take place. For the transfer of
data and communication layered architecture provides simple interface.
Features of Layered Architecture--
Use of Layered architecture in computer network provides with the feature of
modularity and distinct interfaces.
Layered architecture ensures independence between layers, by offering services to
higher layers from the lower layers and without specifying how these services are
implemented.
Layered architecture segments as larger and unmanageable design into small sub tasks.
In layer architecture every network has different number of functions, layers and
content.
In layered architecture, the physical route provides with communication which is
available under the layer 1.
In layered architecture, the implementation done by one layer can be modified by
another layer.
Elements of Layered Architecture
There are three different types of elements of a layered architecture. They are described below:
Service: Service is defined as a set of functions and tasks being provided by a lower
layer to a higher layer. Each layer performs a different type of task. Therefore, actions
provided by each layer are different.
Protocol: Protocol is defined as a set rule used by the layer for exchanging and
transmission of data with its peer entities. These rules can consists details regarding a
type of content and their order passed from one layer to another.
Interface: Interface is defined as a channel that allows to transmit the messages from
one layer to the another.
Data Translation: In data translation, the presentation layer simply converts data from
one format to another, whichever is suitable for the upper and lower layers. An example
is converting ASCII to EBCDIC or binary text.
Data Compression: When we talk about data compression, the presentation layer
reduces the data size to save bandwidth and storage space.
Data Encryption: In order to maintain the integrity as well as privacy of the data, the
presentation layer encrypts it.
5. Session Layer
The session layer assists in establishing, maintaining, and terminating sessions between
different applications. It is a logical connection responsible for allowing continuous data
exchange between two applications. Apart from that, it also helps manage authentication,
authorization, and synchronization.
Functions of Sessions Layer
Some of the important functions of the session layer are:
Segmentation and Reassembly: In this case, the transport layer simply divides the data
into small segments that can further be transmitted over the network. It also assists in
reassembling the segments at the destination device.
Error Control: The transport layer is responsible for detecting and correcting errors in
the data with the help of checksums, acknowledgements, and retransmissions.
Flow Control: In the end, the transport layer controls the rate at which the data is
transmitted by using windowing, buffering, and many congestion avoidance techniques
available.
3. Network Layer
The network layer assists in routing the packets from one device to another in a network. It is
also responsible for determining the best path for the packets based on various factors such as
distance, cost, and traffic. Apart from that, the network layer also handles addressing,
fragmentation, and packet switching.
Function of Network Layer
Now, let’s discuss some of the crucial functions of the network Layer.
Logical Addressing: In this, the network layer simply assigns logical addresses, such as
IP addresses, to a network device in a network. It also maps logical addresses to physical
addresses, such as MAC addresses, using protocols such as ARP and RARP.
Routing: It is the work of the network layer to decide the best path for the packet using
algorithms such as Dijkstra’s and Bellman-Ford.
Fragmentation: Fragmentation simply means splitting large packets into small segments
that can fit the maximum transmission unit (MTU) of the underlying network. Here,
the network layer also comes into action.
Packet Switching: The network layer is also responsible for switching the packets from
one network to another using devices such as routers and gateways.
Some of the common protocols of the network layer are IP, ICMP, ARP, and RARP.
2. Data Link Layer
The data link layer is used for the node-to-node delivery of data. It further defines the format
of data and also assists in providing reliable and efficient communication between two
devices. It is also responsible for handling access control, error detection, and correction.
The data link layer is further divided into two sub-layers. These are:
1. Logical Link Control: LLC assists in providing services to the upper layers. These
services include flow control, error control, and multiplexing.
2. Media Access Control: MAC is the one that controls how devices access and share the
physical medium, such as Ethernet, Wi-Fi, or Bluetooth.
Functions of Data Link Layer
Now, let’s discuss the different functions of the data link layer.
Framing: The data link layer assists in dividing the data into frames that further contain
a header, a payload, and a trailer. When we talk about the header, it contains information
such as MAC addresses of the source and destination, frame types, and frame numbers.
The trailer part contains a checksum for detecting the error.
Error Detection: This layer helps in detecting the errors in the frames by using methods
such as parity check, cyclic redundancy check (CRC), and checksum.
Error Correction: The data link layer is also responsible for correcting the errors in the
frames by using methods such as stop-and-wait, go-back-N, and selective repeat.
Access Control: The data link layer regulates how devices access and share the physical
medium by using methods such as CSMA/CD, CSMA/CA, and token passing.
1. Physical Layer
The last layer of the OSI model is the physical layer. It is closest to the physical medium and
is responsible for transmitting as well as receiving individual bits from one device to another.
Apart from that, the physical layer specifies the mechanical, electrical, and procedural
characteristics of the physical medium.
Functions of Physical Layer
Below, we have explained some of the important functions of the physical layer.
Physical Layer
Functions of the Physical Layer
Bit Synchronization: The physical layer provides the synchronization of the bits by
providing a clock. This clock controls both sender and receiver thus providing
synchronization at the bit level.
Bit Rate Control: The Physical layer also defines the transmission rate i.e. the number
of bits sent per second.
Physical Topologies: Physical layer specifies how the different, devices/nodes are
arranged in a network i.e. bus topology, star topology, or mesh topology.
Transmission Mode: Physical layer also defines how the data flows between the two
connected devices. The various transmission modes possible are Simplex, half-duplex
and full duplex.
Layer 2: Data Link Layer (DLL)
The data link layer is responsible for the node-to-node delivery of the message. The main
function of this layer is to make sure data transfer is error-free from one node to another, over
the physical layer. When a packet arrives in a network, it is the responsibility of the DLL to
transmit it to the Host using its MAC address. Packet in the Data Link layer is referred to as
Frame. Switches and Bridges are common Data Link Layer devices.
The Data Link Layer is divided into two sublayers:
Logical Link Control (LLC)
Media Access Control (MAC)
The packet received from the Network layer is further divided into frames depending on the
frame size of the NIC (Network Interface Card). DLL also encapsulates Sender and
Receiver’s MAC address in the header.
The Receiver’s MAC address is obtained by placing an ARP (Address Resolution Protocol)
request onto the wire asking, "Who has that IP address?" and the destination host will reply
with its MAC address.
Functions of the Data Link Layer
Framing: Framing is a function of the data link layer. It provides a way for a sender to
transmit a set of bits that are meaningful to the receiver. This can be accomplished by
attaching special bit patterns to the beginning and end of the frame.
Physical Addressing: After creating frames, the Data link layer adds physical addresses
(MAC addresses) of the sender and/or receiver in the header of each frame.
Error Control: The data link layer provides the mechanism of error control in which it
detects and retransmits damaged or lost frames.
Flow Control: The data rate must be constant on both sides else the data may get
corrupted thus, flow control coordinates the amount of data that can be sent before
receiving an acknowledgment.
Access Control: When a single communication channel is shared by multiple devices,
the MAC sub-layer of the data link layer helps to determine which device has control
over the channel at a given time.
Application
Layer
Functions of the Application Layer
The main functions of the application layer are given below.
Network Virtual Terminal (NVT): It allows a user to log on to a remote host.
File Transfer Access and Management (FTAM): This application allows a user to
access files in a remote host, retrieve files in a remote host, and manage or control files
from a remote computer.
Mail Services: Provide email service.
Directory Services: This application provides distributed database sources and access
for global information about various objects and services.
Data Flows in the OSI Model--
When we transfer information from one device to another, it travels through 7 layers of OSI
model. First data travels down through 7 layers from the sender's end and then climbs back 7
layers on the receiver's end.
Data flows through the OSI model in a step-by-step process:
Application Layer: Applications create the data.
Presentation Layer: Data is formatted and encrypted.
Session Layer: Connections are established and managed.
Transport Layer: Data is broken into segments for reliable delivery.
Network Layer: Segments are packaged into packets and routed.
Data Link Layer: Packets are framed and sent to the next device.
Physical Layer: Frames are converted into bits and transmitted physically.
Each layer adds specific information to ensure the data reaches its destination correctly, and
these steps are reversed upon arrival.
We can understand how data flows through OSI Model with the help of an example mentioned
below.
Let us suppose, Person A sends an e-mail to his friend Person B.
Step 1: Person A interacts with e-mail application like Gmail, outlook, etc. Writes his email
to send. (This happens at Application Layer).
Step 2: At Presentation Layer, Mail application prepares for data transmission like
encrypting data and formatting it for transmission.
Step 3: At Session Layer, there is a connection established between the sender and receiver
on the internet.
Step 4: At Transport Layer, Email data is broken into smaller segments. It adds sequence
number and error-checking information to maintain the reliability of the information.
Step 5: At Network Layer, addressing of packets is done in order to find the best route for
transfer.
Step 6: At Data Link Layer, data packets are encapsulated into frames, then MAC address is
added for local devices and then it checks for error using error detection.
Step 7: At Physical Layer, Frames are transmitted in the form of electrical/ optical signals
over a physical network medium like ethernet cable or WiFi.
Establishing
1: Physical Physical
Bits USB, SONET/SDH, etc.
Layer Connections
between Devices.
Node to Node
2: Data Link
Delivery of Frames Ethernet, PPP, etc.
Layer
Message.
Protocol
Layer Working Data Unit Protocols
Transmission of data
3: Network from one host to IP, ICMP, IGMP, OSPF,
Packets
Layer another, located in etc.
different networks.
Establishes
Connection,
5: Session Maintenance, NetBIOS, RPC, PPTP,
Data
Layer Ensures etc.
Authentication and
Ensures security.
Helps in identifying
7:
the client and FTP, SMTP, DNS, DHCP,
Application Data
synchronizing etc.
Layer
communication.
The OSI Model defines the communication of a computing system into 7 different layers. Its
advantages include:
It divides network communication into 7 layers which makes it easier to understand and
troubleshoot.
It standardizes network communications, as each layer has fixed functions and
protocols.
Diagnosing network problems is easier with the OSI model.
It is easier to improve with advancements as each layer can get updates separately.
Disadvantages of OSI Model
The OSI Model has seven layers, which can be complicated and hard to understand for
beginners.
In real-life networking, most systems use a simpler model called the Internet protocol
suite (TCP/IP), so the OSI Model is not always directly applicable.
Each layer in the OSI Model adds its own set of rules and operations, which can make
the process more time-consuming and less efficient.
The OSI Model is more of a theoretical framework, meaning it's great for understanding
concepts but not always practical for implementation.
TCP
Layers of TCP/IP Model
1. Application Layer
The Application Layer is the top layer of the TCP/IP model and the one closest to the user.
This is where all the apps you use like web browsers, email clients, or file sharing tools connect
to the network. It acts like a bridge between your software (like Chrome, Gmail, or WhatsApp)
and the lower layers of the network that actually send and receive data.
It supports different protocols like HTTP (for websites), FTP (for file transfers), SMTP (for
emails), and DNS (for finding website addresses). It also manages things like data formatting,
so both sender and receiver understand the data, encryption to keep data safe, and session
management to keep track of ongoing connections.
2. Transport Layer
The Transport Layer is responsible for making sure that data is sent reliably and in the correct
order between devices. It checks that the data you send like a message, file, or video arrives
safely and completely. This layer uses two main protocols: TCP and UDP, depending on
whether the communication needs to be reliable or faster.
TCP is used when data must be correct and complete, like when loading a web page or
downloading a file. It checks for errors, resends missing pieces, and keeps everything in order.
On the other hand, UDP (User Datagram Protocol) is faster but doesn’t guarantee delivery
useful for things like live video or online games where speed matters more than perfect
accuracy.
3. Internet Layer
The Internet Layer is used for finding the best path for data to travel across different networks
so it can reach the right destination. It works like a traffic controller, helping data packets move
from one network to another until they reach the correct device. This layer uses the Internet
Protocol (IP) to give every device a unique IP address, which helps identify where data should
go.
The main job of this layer is routing deciding the best way for data to travel. It also takes care
of packet forwarding (moving data from one point to another), fragmentation (breaking large
data into smaller parts), and addressing.
4. Network Access Layer
The Network Access Layer is the bottom layer of the TCP/IP model. It deals with the actual
physical connection between devices on the same local network like computers connected by
cables or communicating through Wi-Fi. This layer makes sure that data can travel over the
hardware, such as wires, switches, or wireless signals.
It also handles important tasks like using MAC addresses to identify devices,
creating frames (the format used to send data over the physical link), and checking for
basic errors during transmission.
Working of TCP/IP Model
The working of TCP/IP can be explained with the help of the diagram given below and
explained:
OSI
Reason Explanation
Protocol-Driven TCP/IP was designed based on working protocols, while the OSI
Design model is more of a theoretical framework.
Reason Explanation
Flexibility and TCP/IP adapts well to different hardware and networks and
Robustness includes error handling, routing, and congestion control.
Actual Use vs The OSI model is great for education and design principles, but
Conceptual Model TCP/IP is the one actually used in real-world networking.
Internet History--
The internet as we know it today is a vast, interconnected network that has transformed how
we communicate, work, learn, and interact. But it wasn't always this way. The origin of the
internet dates back to the 1950s when the world was grappling with the Cold War, and
researchers sought to create a communication system that could withstand disruptions. From
its humble beginnings as a military project to the global web it is now, the history of the
internet is a tale of human ingenuity, collaboration, and the relentless pursuit of connectivity
and a fascinating journey of innovation, collaboration, and rapid technological advancement.
Key Milestones in Internet History
1969: Launch of ARPANET, the first operational packet-switching network.
1971: The first email is sent by Ray Tomlinson.
1983: Adoption of TCP/IP as the standard protocol for ARPANET.
1989-1990: Tim Berners-Lee invents the World Wide Web.
1993: The first graphical web browser, Mosaic, is released.
1998: Google is founded, revolutionizing search engines.
2007: The iPhone introduces widespread mobile Internet access.
2010s: Rise of cloud computing, social media, and streaming services.
Vint Cerf and Bob Kahn
Known as
"The Fathers of the Internet"
Key Contributions:
Invented TCP/IP protocol in 1974
Created the foundation for data transmission
Developed internet architecture
Established basic internet communication standards
Internet standards are fundamental to the global internet, which given the complex and diverse
nature of the systems and technologies on the internet attempts to prove how these systems
can interact. These are standardization patterns that are provided by the Internet Engineering
Task Force (IETF), which has worked on its protocols for a long time and has a strict
mechanism for revising and approving them.
These standards will facilitate web affinity to signal, security, and innovation. In this article,
we will look into the standardization process in Internet Standard, its importance, examples,
etc.
Primary Technologies
Internet Standard(STD): proposed as its formal specification of the rule and policy
promoting the uniform and compatibility usage of Internet architecture across the
world.
Request For Comments (RFC): The entire collection of documents that formed the
foundation for developing the internet standards and protocols and also for their
promotion and implementation.
Proposed Standard: It is used at a certain level of the work in order to prove that the
current specification is not just prepared by somebody and exists in the form of a
planned work, but has gone through the basic level of evaluation and the review and
standardization phase of this work.
Draft Standard: A better-defined progression of a concept that is a previously rational
and developed idea that has been implemented in other settings.
Internet Standard: A frequently adopted and highly stable standard that has turned out
to be very effective in actual practice as far as interconnect is concerned.
Internet Administration is basically a group that coordinates and guides the Internet with its
growth and development. It makes sure that all the protocols are followed by the devices and
network for the smooth functioning of the internetwork. Some of the organizations that
overlook the growth and development of the internet are -
A sine wave can be represented by three parameters: the peak amplitude, the frequency, and
the phase. These three parameters fully describe a sine wave.
Peak Amplitude
The peak amplitude of a signal is the absolute value of its highest intensity, proportional to the
energy it carries. For electric signals, peak amplitude is normally measured in volts. Figure
shows two signals and their peak amplitudes.
Period and Frequency
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 sec. 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, as the following formulas show.
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.
Two Extremes
What if a signal does not change at all? What if it maintains a constant voltage level for the
entire time it is active? In such a case, its frequency is zero. Conceptually, this idea is a simple
one. If a signal does not change at all, it never completes a cycle, so its frequency is 0 Hz.
But what if a signal changes instantaneously? What if it jumps from one level to
another in no time? Then its frequency is infinite. In other words, when a signal changes
instantaneously, its period is zero; since frequency is the inverse of period, in this case, the
frequency is 1/0, or infinite (unbounded).
If a signal does not change at all, its frequency is zero.
If a signal changes instantaneously, its frequency is infinite.
Phase
The term phase describes the position of the waveform relative to time 0. If we think of the
wave 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.
Phase describes the position of the waveform relative to time 0.
Phase is measured in degrees or radians [360° is 2n rad; 1° is 2n/360 rad, and 1 rad is 360/(2n)].
A phase shift of 360° corresponds to a shift of a complete period; a phase shift of 180°
corresponds to a shift of one-half of a period; and a phase shift of 90° corresponds to a shift of
one-quarter of a period (see Figure ).
we can say that
I. A sine wave with a phase of 0° starts at time 0 with a zero amplitude. The
amplitude is increasing.
2. A sine wave with a phase of 90° starts at time 0 with a peak amplitude. The
amplitude is decreasing.
3. A sine wave with a phase of 180° starts at time 0 with a zero amplitude. The
amplitude is decreasing.
Wavelength-
Wavelength is another characteristic of a signal traveling through a transmission
medium. Wavelength binds the period or the frequency of a simple sine wave to the
propagation speed of the medium.
Wavelength (λ) is the physical length from one point of a wave to the same point on the next
wave.
DIGITAL SIGNALS--
In addition to being represented by an analog signal, information can also be represented by a
digital signal. For example, a 1 can be encoded as a positive voltage and a 0 as zero voltage.
A digital signal can have more than two levels. In this case, we can send more than 1 bit for
each level. Figure shows two signals, one with two levels and the other with four.
Figure--Two digital signals: one with two signal levels and the other with four signal levels
We send 1 bit per level in part a of the figure and 2 bits per level in part b of the
figure. In general, if a signal has L levels, each level needs log2L bits.
Bit Rate--
Most digital signals are nonperiodic, and thus period and frequency are not appropriate
characteristics. Another term-bit rate (instead of frequency)-is used to describe
digital signals. The bit rate is the number of bits sent in Is, expressed in bits per
second (bps).
Bit Length--
We discussed the concept of the wavelength for an analog signal: the distance one cycle
occupies on the transmission medium. We can define something similar for a digital signal:
the bit length. The bit length is the distance one bit occupies on the transmission medium.
Bit length =propagation speed X bit duration
TRANSMISSION IMPAIRMENT--
Signals travel through transmission media, which are not perfect. The imperfection causes
signal impairment. This means that the signal at the beginning of the medium is not the same
as the signal at the end of the medium. What is sent is not what is received. Three causes of
impairment are attenuation, distortion, and noise (see Figure).
Attenuation--
Attenuation means a loss of energy. When a signal, simple or composite, travels
through a medium, it loses some of its energy in overcoming the resistance of the
medium. That is why a wire carrying electric signals gets warm, if not hot, after a while. Some
of the electrical energy in the signal is converted to heat. To compensate for this loss, amplifiers
are used to amplify the signal. Figure shows the effect of attenuation and amplification.
Figure-
Decibel--
To show that a signal has lost or gained strength, engineers use the unit of the decibel. The
decibel (dB) measures the relative strengths of two signals or one signal at two different points.
Note that the decibel is negative if a signal is attenuated and positive if a signal is amplified.
Variables PI and P2 are the powers of a signal at points 1 and 2, respectively. Note that some
engineering books define the decibel in terms of voltage instead of power. In this case, because
power is proportional to the square of the voltage, the formula is dB = 20 log 10 (V2IV1). In
this text, we express dB in terms of power.
Distortion--
Distortion means that the signal changes its form or shape. Distortion can occur in a composite
signal made of different frequencies. Each signal component has its own propagation speed
(see the next section) through a medium and, therefore, its own delay in arriving at the final
destination. Differences in delay may create a difference in phase if the delay is not exactly
the same as the period duration. In other words, signal components at the receiver have phases
different from what they had at the sender. The shape of the composite signal is therefore not
the same. Figure shows the effect of distortion on a composite signal.
Noise--
Noise is another cause of impairment. Several types of noise, such as thermal noise, induced
noise, crosstalk, and impulse noise, may corrupt the signal. Thermal noise is the random
motion of electrons in a wire which creates an extra signal not originally sent by the transmitter.
Induced noise comes from sources such as motors and appliances.
These devices act as a sending antenna, and the transmission medium acts as the
receiving antenna. Crosstalk is the effect of one wire on the other. One wire act as a sending
antenna and the other as the receiving antenna. Impulse noise is a spike (a signal with high
energy in a very short time) that comes from power lines, lightning, and so on. Figure shows
the effect of noise on a signal.
Figure--
DATA RATE LIMITS--
A very important consideration in data communications is how fast we can send data, in bits
per second. over a channel. Data rate depends on three factors:
1. The bandwidth available
2. The level of the signals we use
3. The quality of the channel (the level of noise)
Two theoretical formulas were developed to calculate the data rate: one by Nyquist for a
noiseless channel. another by Shannon for a noisy channel.
Noiseless Channel: Nyquist Bit Rate--
For a noiseless channel, the Nyquist bit rate formula defines the theoretical maximum bit rate
BitRate = 2 x bandwidth X log2 L
In this formula, bandwidth is the bandwidth of the channel, L is the number of signal levels
used to represent data, and BitRate is the bit rate in bits per second.
According to the formula, we might think that, given a specific bandwidth, we can have any
bit rate we want by increasing the number of signa11eve1s. Although the idea is theoretically
correct, practically there is a limit. When we increase the number of signal1eve1s, we impose
a burden on the receiver. If the number of levels in a signal is just 2, the receiver can easily
distinguish between a 0 and a 1. If the level of a signal is 64, the receiver must be very
sophisticated to distinguish between 64 different levels. In other words, increasing the levels
of a signal reduces the reliability of the system. Increasing the levels of a signal may reduce
the reliability of the system.
Noisy Channel: Shannon Capacity--
In reality, we cannot have a noiseless channel; the channel is always noisy. In 1944, Claude
Shannon introduced a formula, called the Shannon capacity, to determine the theoretical
highest data rate for a noisy channel:
Capacity =bandwidth X log2 (1 +SNR)
In this formula, bandwidth is the bandwidth of the channel, SNR is the signal-to-noise ratio,
and capacity is the capacity of the channel in bits per second. Note that in the Shannon formula
there is no indication of the signal level, which means that no matter how many levels we have,
we cannot achieve a data rate higher than the capacity of the channel. In other words, the
formula defines a characteristic of the channel, not the method of transmission.
Signal-to-Noise Ratio (SNR)--
The signal-to-noise ratio is defined as
average signal power
SNR =
average noise power
We need to consider the average signal power and the average noise power because these may
change with time.
SNR is actually the ratio of what is wanted (signal) to what is not wanted (noise).
A high SNR means the signal is less corrupted by noise; a low SNR means the signal is more
corrupted by noise. Because SNR is the ratio of two powers, it is often described in decibel
units, SNRdB, defined as
SNRdB = 10 log10 SNR
Unguided
Media
1. Radio Waves--
Radio waves are electromagnetic signals used for various wireless
communication technologies, such as Wi-Fi, Bluetooth and radio broadcasting.
Electromagnetic waves ranging in frequencies between 3 kHz and 1 GHz are normally called
radio waves. Radio waves are omnidirectional. When an antenna transmits radio waves, they
are propagated in all directions. This means that the sending and receiving antennas do not
have to be aligned. A sending antenna sends waves that can be received by any receiving
antenna. The omnidirectional property has a disadvantage, too. The radio waves transmitted
by one antenna are susceptible to interference by another antenna that may send signals using
the same frequency or band.
Let's talk about the Omni directional Antenna now.
Omni Directional Antenna
Radio waves use omnidirectional antennas that send out signals in all directions. Based on
the wavelength, strength, and the purpose of transmission, we can have several types of
antennas. Figure shows an omnidirectional antenna.
Types of Microwaves
There are two types of microwaves:
1. Terrestrial Microwave
Terrestrial Microwave are microwaves that transmits the beam of a radio signal from one
ground based antenna to another ground based antenna.
Characteristics of Terrestrial Microwave
Frequency range: The frequency range of terrestrial microwave is from 4 GHz to 23
GHz.
Bandwidth: Terrestrial Microwave supports the bandwidth range from 1 to 10 Mbps.
Short distance: Terrestrial Microwave inexpensive for short distance.
Long distance: Terrestrial Microwave expensive because it requires a higher tower
length for a longer distance.
Attenuation: Attenuation refer loss of signal. It is because of environmental conditions
and antenna size.
Advantages Of Terrestrial Microwave
Terrestrial microwave is cheaper than using cables for communication.
Terrestrial microwave does not require land for installation so it is free from taking any
land space.
Terrestrial microwave transmission provides easy communication in trains because
installation of cables in trains is not a easy task.
Communication over oceans is achieved by using microwave.
Disadvantages of Terrestrial Microwave
Line of Sight Required: The signals need a clear path between antennas. Obstructions
like buildings, trees, or mountains can block the signal.
Weather Interference: Bad weather, especially rain, can disrupt the signal, leading to
poor performance.
Distance Limitations: Range for communication is limited. For longer distances,
multiple stations are needed, which increases cost and complexity.
High Initial Cost: Setting up the infrastructure, including towers and antennas, can be
expensive.
Maintenance: Regular maintenance is necessary to keep the system running smoothly,
which can be costly and time-consuming.
Limited Bandwidth: Compared to some other communication methods, the bandwidth
available for terrestrial microwave can be limited, restricting data transfer rates.
2. Satellite Microwave Communication--
A satellite is a object that revolve around the earth. A satellite microwave is a type of
communication technology that uses microwave radio waves to transmit data between a
ground-based station and an orbiting satellite.
How Does Satellite work?
A satellite get signal from ground-based station, enhance that signal and transfer back to
another ground-based station that is situated at different location on the earth. They orbit high
above the planet, allowing them to cover large areas. This process enables long-distance
communication, GPS navigation, and weather monitoring.
Advantages of Satellite Microwave Communication
Wide Coverage: Satellites can cover large areas of the Earth, reaching remote and rural
locations where other communication methods might not be available.
Long Distance Communication: They allow for communication over very long
distances, including international and intercontinental connections, without the need for
physical infrastructure on the ground.
Reliable: Satellites are less affected by geographical obstacles like mountains or
buildings, providing a more consistent and reliable signal.
Broadcast Capabilities: Satellites can efficiently broadcast information to a large
number of receivers simultaneously, making them ideal for television and radio
transmissions.
Flexibility: They can be used for various applications, including internet, phone
services, TV broadcasting, and emergency communication.
Disadvantages Of Satellite Microwave Communication
High Cost: Launching and maintaining satellites is very expensive.
Signal Delay: Signals travel a long distance to and from satellites, which can affect real-
time communications like phone calls and video conferencing.
Weather Sensitivity: Bad weather, such as heavy rain or storms, can interfere with
satellite signals, leading to disruptions.
3. Infrared--
Infrared waves, with frequencies from 300 GHz to 400 THz (wavelengths from 1 mm to 770
nm), can be used for short-range communication. Infrared waves, having high frequencies,
cannot penetrate walls. This advantageous characteristic prevents interference between one
system and another; a short range communication system in one room cannot be affected by
another system in the next room. When we use our infrared remote control, we do
not interfere with the use of the remote by our neighbours. Infrared signals useless for long-
range communication. In addition, we cannot use infrared waves outside a building because
the sun's rays contain infrared waves that can interfere with the communication. It is used in
TV remotes, wireless mouse, keyboard, printer, etc.
Radio Transmission--
Radio frequency is easier to generate and because of its large wavelength it can penetrate
through walls and structures alike. Radio waves can have wavelength from 1 mm 100,000 km
and have frequency ranging from 3 Hz (Extremely Low Frequency) to 300 GHz (Extremely
High Frequency). Radio frequencies are sub-divided into six bands.
Radio waves at lower frequencies can travel through walls whereas higher RF can travel in
straight line and bounce back. The power of low frequency waves decreases sharply as they
cover long distance. High frequency radio waves have more power.
Lower frequencies such as VLF, LF, MF bands can travel on the ground up to 1000 kilometers,
over the earths surface.
Radio waves of high frequencies are prone to be absorbed by rain and other obstacles. They
use Ionosphere of earth atmosphere. High frequency radio waves such as HF and VHF bands
are spread upwards. When they reach Ionosphere, they are refracted back to the earth.
Microwave Transmission--
Electromagnetic waves above 100 MHz tend to travel in a straight line and signals over them
can be sent by beaming those waves towards one particular station. Because Microwaves
travels in straight lines, both sender and receiver must be aligned to be strictly in line-of-sight.
Microwaves can have wavelength ranging from 1 mm 1 meter and frequency ranging from
300 MHz to 300 GHz.
Microwave antennas concentrate the waves making a beam of it. As shown in picture above,
multiple antennas can be aligned to reach farther. Microwaves have higher frequencies and do
not penetrate wall like obstacles.
Microwave transmission depends highly upon the weather conditions and the frequency it is
using.
Infrared Transmission--
Infrared wave lies in between visible light spectrum and microwaves. It has wavelength of
700-nm to 1-mm and frequency ranges from 300-GHz to 430-THz.
Infrared wave is used for very short range communication purposes such as television and its
remote. Infrared travels in a straight line hence it is directional by nature. Because of high
frequency range, Infrared cannot cross wall-like obstacles.
Light Transmission--
Highest most electromagnetic spectrum which can be used for data transmission is light or
optical signaling. This is achieved by means of LASER.
Because of frequency light uses, it tends to travel strictly in straight line. Hence the sender and
receiver must be in the line-of-sight. Because laser transmission is unidirectional, at both ends
of communication the laser and the photo-detector needs to be installed. Laser beam is
generally 1mm wide hence it is a work of precision to align two far receptors each pointing to
lasers source.
Fig--GSM