Data Communication Basics and Types
Data Communication Basics and Types
Data communications refer to the exchange of data between two devices using a transmission
medium, like a cable or wireless signal. To communicate, both devices must be part of a
communication system that includes hardware (physical equipment like cables, routers) and
software (programs controlling the process).
1. Delivery: The data must be delivered to the correct recipient. Only the intended
device or user should receive the data, ensuring privacy and security.
2. Accuracy: The data must be transmitted without errors. If data get corrupted during
transmission and the errors aren’t fixed, the information becomes unreliable and
unusable.
3. Timeliness: Data must be delivered on time. For example, video and audio should
reach the user as it is being produced, in the correct order, and without delay. This is
especially important for real-time applications like video calls or live streaming.
4. Jitter: This refers to the inconsistency in data packet arrival times, especially in video
or audio. For example, if video packets are supposed to arrive every 30 milliseconds
(ms), but some arrive after 30 ms and others after 40 ms, the video quality can
become uneven or glitchy.
In summary, data communication involves ensuring that information is sent accurately, to the
right place, on time, and without major variations in the delivery process.
COMPONENTS
A data communication system involves the transfer of information between devices. It has
five key components:
1. Message: The information being communicated, which could be in various forms like
text, audio, video, or images.
2. Sender: The device that initiates and sends the message, such as a computer, phone,
or camera.
3. Receiver: The device that receives the message, like another computer, phone, or
television.
4. Transmission Medium: The physical path through which the message travels from
sender to receiver. This could be cables (twisted-pair, coaxial, fiber-optic) or wireless
signals (radio waves).
5. Protocol: A set of rules that ensures proper communication between devices. It
ensures that the sender and receiver follow the same guidelines, making
communication possible even if the devices are different.
DATA FLOW
1. Simplex
One-way communication: Only one device can send data, while the other can only
receive.
Example: A keyboard sends input to a computer, but the computer can’t send
anything back to the keyboard. It’s like a one-way street.
2. Half-Duplex
Two-way communication, but not at the same time: Each device can send and
receive, but one must wait while the other is transmitting.
Example: Walkie-talkies. If one person is speaking, the other has to wait to respond.
It’s like a one-lane road where cars can go in both directions, but only one direction
can go at a time.
3. Full-Duplex
Simultaneous two-way communication: Both devices can send and receive data at
the same time.
Example: A phone call, where both people can talk and listen at the same time. It’s
like a two-way street where traffic flows in both directions without stopping.
In summary, simplex is one-way, half-duplex is two-way but not at the same tim
0
NETWORK
Here’s a simplified explanation of the various concepts related to networks:
1. Network Definition
A network is a collection of devices that can communicate with each other. These devices
can be:
Hosts (End Systems): These are the primary devices that users interact with, such as:
o Large Computers: High-performance machines for complex tasks.
o Desktops: Standard personal computers typically used at home or work.
o Laptops: Portable computers for on-the-go use.
o Workstations: Powerful computers designed for specific tasks, often used in
professional environments.
o Cellular Phones: Mobile devices that can connect to the network wirelessly.
o Security Systems: Devices that monitor and protect physical spaces.
Connecting Devices: These facilitate communication between devices, including:
o Router: Connects different networks together and directs data between them.
o Switch: Connects multiple devices within a single network and manages data
traffic between them.
o Modem (Modulator-Demodulator): Converts digital data from a computer
into analog for transmission over phone lines, and vice versa.
2. Transmission Media
Wired Transmission Media: Cables (like Ethernet cables) that provide a physical
connection.
Wireless Transmission Media: Signals transmitted through the air (like Wi-Fi) that
allow devices to connect without physical cables.
Connecting two computers at home using a plug-and-play router creates a small network,
allowing them to share resources and communicate with each other.
4. Network Criteria
A network must meet several criteria to be effective, including:
Performance
Transit Time: The time it takes for a message to travel from one device to another.
Response Time: The time between sending a request and receiving a response.
Throughput: The amount of data successfully transmitted over the network in a
given time. Higher throughput is desirable.
Delay: The time it takes for data to travel across the network. Lower delay is
preferred.
Factors affecting performance include the number of users, the type of cables or
connections used, the capabilities of devices, and how efficiently the software
operates.
Reliability
Accuracy of Delivery: Ensuring that data sent reaches the correct destination without
errors.
Frequency of Failure: How often the network experiences problems.
Recovery Time: The time it takes for the network to restore itself after a failure.
Robustness: The ability of the network to function or recover during major
disruptions or disasters.
Security
Unauthorized Access Protection: Keeping data safe from people who should not see
it.
Data Integrity: Ensuring that data cannot be changed or damaged inappropriately.
Recovery Policies: Having procedures in place to recover from security breaches or
data losses.
MESH
Mesh Topology is a type of network layout where every device is directly connected to every
other device. Here’s a simple breakdown of its features, advantages, and disadvantages:
Key Features
1. Direct Connections: In a mesh topology, each device (or node) has its own dedicated
link to every other device. This means if you have n devices, each one connects to
n−1others.
2. Physical Links: To determine how many physical links you need:
o Every node connects to n-1nodes.
o The total number of links would be n(n−1) but since each link works both
ways (like a two-way street), you divide that by 2. So, you actually need
n(n−1)/2 links.
3. I/O Ports: Each device needs enough input/output (I/O) ports to connect to all other
devices, which means each device needs n−1ports.
Advantages
1. Dedicated Links: Each connection can handle its own data traffic without slowing
down, as there’s no sharing of links.
2. Robustness: If one connection fails, it doesn’t take down the whole network. Other
connections remain operational.
3. Privacy and Security: Messages travel along dedicated lines, so only the intended
recipient sees the message. This makes it more secure against eavesdropping.
4. Easy Fault Identification: If there’s a problem, it’s easier to pinpoint the exact
location of the fault and manage it, as each link is separate.
Disadvantages
Practical Example
A real-world example of a mesh topology is the connection of regional offices for a telephone
company. Each regional office needs to be connected to every other office to ensure seamless
communication.
Summary
Mesh topology is very efficient and secure, but its complexity and cost make it more suitable
for specific applications rather than widespread use in large networks. It’s often used in a
limited way, like connecting main computers in a hybrid network that incorporates other
topologies.
STAR
Star Topology is a type of network layout where all devices connect to a central device,
usually called a hub or switch. Here’s a simple explanation of its features, advantages, and
disadvantages:
Key Features
1. Central Hub: In a star topology, every device (like computers, printers, etc.) has its
own dedicated connection to a central hub. This means devices are not directly
connected to each other.
2. Data Transfer: When one device wants to send data to another, it sends the data to
the hub. The hub then forwards the data to the intended recipient device.
Advantages
1. Cost-Effective: Star topology is generally less expensive than mesh topology. Each
device only needs one link and one I/O port to connect to the hub, making it cheaper
to set up.
2. Easy Installation: It’s easier to install and configure a star network since you only
have to connect devices to the hub. Adding or removing devices involves just one
connection to the hub.
3. Less Cabling: Although it still requires cabling, a star topology uses significantly less
cable than a mesh topology. It’s more manageable because all cables lead to the
central hub.
4. Robustness: If one device's connection fails, it only affects that device. All other
devices remain operational, making it easier to identify and isolate faults.
5. Centralized Monitoring: The hub can monitor link problems and help bypass any
defective links as long as it is functioning.
Disadvantages
1. Single Point of Failure: The main drawback of a star topology is that it relies heavily
on the hub. If the hub goes down, the entire network stops working, as all data traffic
depends on it.
2. Potentially More Cabling: Although it requires less cable than a mesh topology, star
topology can sometimes use more cabling than other topologies (like ring or bus)
because each device needs a direct link to the hub.
Practical Use
Star topology is commonly used in Local Area Networks (LANs). High-speed LANs often
implement star topology to ensure efficient and reliable communication between devices
through the central hub.
In summary:
BUS
A bus topology is a network setup where all devices are connected to a single, long cable,
called the backbone, which acts as the main communication pathway for all data. Here's how
it works:
1. Backbone Cable: The backbone is the central cable that runs through the network,
and it serves as the data highway for the entire system. Devices communicate by
sending signals through this cable.
2. Drop Lines and Taps: Devices, or nodes, are connected to the backbone through
drop lines and taps. A drop line is a smaller cable that connects each device to the
backbone. A tap is a physical connector that either punctures the cable or attaches to it
to allow the device to send or receive signals.
3. Signal Transmission: When a device wants to send data, it broadcasts a signal onto
the backbone. This signal travels along the cable, and every device on the network can
detect it. However, only the intended recipient processes the message, while other
devices ignore it.
4. Signal Degradation: As the signal travels along the backbone, it loses energy and
becomes weaker. This limits the number of taps (connections) and the overall length
of the cable, as too many taps or a long backbone can cause signal degradation,
leading to communication issues.
5. Termination: Both ends of the backbone must be terminated with resistors to
prevent the signal from reflecting back and causing interference, known as signal
reflection.
Advantages:
Simplicity and Cost: Bus topology is easy to install since only a single backbone
cable is used, and it requires less cabling compared to star or mesh topologies.
Efficiency: It allows devices to be added easily by connecting them to the backbone
with a short drop line, making cabling more efficient.
Disadvantages:
Fault Isolation: If there is a break or fault in the backbone cable, the entire network
goes down, as all devices rely on this single pathway.
Difficult to Troubleshoot: Identifying and fixing faults in the backbone can be
challenging, especially if the network is large.
Limited Scalability: Adding new devices or modifying the network may require
changes to the backbone, which can be disruptive and difficult.
This topology was widely used in early Ethernet LANs but has fallen out of favor due to its
limitations in fault tolerance and scalability.
Historical Context
Bus topology was one of the first designs used in early local area networks (LANs), including
traditional Ethernet LANs. However, it is less common today due to the limitations
mentioned, and newer topologies like star are generally preferred.
Summary
In summary, bus topology is an efficient and cost-effective way to connect multiple devices
using a single backbone cable. However, it has drawbacks related to adding devices and
vulnerability to failures in the main cable, which can disrupt the entire network.
RING
Ring Topology is a type of network layout where each device connects directly to two other
devices, forming a circular pathway for data. Here’s a simple breakdown of its
characteristics, advantages, and disadvantages:
Key Features
1. Circular Connection: In a ring topology, every device (or node) is connected to two
neighbors, creating a closed loop or ring. This means that data travels in one direction
(either clockwise or counterclockwise) around the ring.
2. Repeaters: Each device includes a repeater, which is a component that strengthens
and regenerates the signal it receives. When a device gets a signal meant for another
device, it uses the repeater to boost the signal and send it on to the next device in the
ring.
Advantages
1. Ease of Installation and Reconfiguration: Setting up a ring topology is relatively
straightforward since each device connects only to its immediate neighbors. If you
want to add or remove a device, you only need to change two connections, making the
process simpler.
2. Simplified Fault Isolation: Because signals circulate continuously in a ring, if a
device doesn’t receive a signal within a certain time, it can trigger an alarm. This
feature helps network operators identify problems quickly and locate where the issue
is.
Disadvantages
1. Unidirectional Traffic: In a basic ring topology, data can only travel in one direction.
If there’s a break in the ring (for example, if one device fails), it can disrupt the entire
network since the signal can't complete the loop.
2. Vulnerability to Breaks: If a device goes down or a connection is broken, it can
cause the entire network to fail. To address this, some networks use a dual ring (two
rings that can carry data in both directions) or switches to isolate and manage breaks
in the connection.
Historical Context
Ring topology was widely used in early local area networks, particularly with IBM’s Token
Ring technology. However, as the demand for faster network speeds has grown, this topology
has become less popular compared to other designs like star topology.
Summary
In summary, ring topology provides a simple and effective way to connect devices in a
circular fashion, allowing for straightforward installation and easy fault detection. However,
its reliance on unidirectional traffic and susceptibility to disruptions from a single device's
failure can be significant drawbacks in modern networking environments.
You're correct that in ring topology, devices are connected in a circular fashion, which
means they still rely on a main connection (like a bus) to communicate with each other.
However, the way the connections are managed and the flow of data differ significantly
between ring and bus topologies. Here’s a breakdown of the points regarding the connections
and troubleshooting to clarify:
1. Connection Management
Ring Topology:
o Each device connects directly to two other devices, forming a loop. If you
want to add or remove a device, you only need to break the connection at that
device and reconnect the two neighboring devices.
o This process is usually less disruptive because you’re only affecting two
connections rather than dealing with the entire main cable.
Bus Topology:
o All devices are connected to a single long cable (the bus). Adding or removing
a device often requires dealing with the entire cable, and you might need to
adjust multiple connections along that line.
o If you add a device incorrectly or there’s a problem with the main cable, it can
disrupt the communication for the entire network.
Ring Topology:
o If a device fails or there's a break in the connection, the signal can be
monitored as it circulates around the ring. If one device doesn't receive the
signal within a certain time, it triggers an alert.
o Since devices are linked in a circle, if one link fails, you can often reroute the
signal to keep the network running (in a dual-ring setup, for instance).
Bus Topology:
o A break in the main cable can stop all communication beyond that point. This
makes it challenging to identify where the problem lies, as multiple devices
could be affected.
o The whole network can become inoperable if the bus cable is damaged,
leading to significant troubleshooting efforts to find the fault.
Summary
Both topologies use a main connection concept, but ring topology offers easier management
of individual device connections and better fault isolation. In contrast, bus topology relies
heavily on the integrity of a single cable, making it more vulnerable to disruptions and more
complicated when it comes to adding or removing devices.
A MAC Address is a unique identifier assigned to the NIC by the manufacturer. It is a 48-bit
number, typically expressed in hexadecimal format (e.g., 00:1A:2B:3C:4D:5E), and is
hardcoded into the NIC. The MAC address is unique for each NIC, which ensures that
devices can be uniquely identified on a network.
Unique Identification: Every NIC has a globally unique MAC address, which is used
for network communication at the data link layer (Layer 2) of the OSI model.
Permanent: Unlike IP addresses, MAC addresses are permanently burned into the
NIC and do not change (though some systems allow you to spoof or change the MAC
address for various purposes).
Local Scope: MAC addresses are only used for communication within the local
network. When data needs to be transmitted across networks (like the internet), IP
addresses are used instead.
1. Device Identification: When a device joins a network, its NIC uses its MAC address
to identify itself to other devices on the same local network.
2. Data Transmission: When data is sent over a network, the MAC address of both the
source (sender) and the destination (receiver) are used by switches or routers to ensure
the data reaches the correct device.
3. Address Resolution Protocol (ARP): In Ethernet networks, ARP is used to map an
IP address to a MAC address. If a device knows the IP address of the target but not its
MAC address, ARP is used to retrieve the corresponding MAC address for local
communication.
NETWORK TYPES
[Link]
Here's a simplified explanation of Local Area Networks (LANs):
Definition: A Local Area Network (LAN) is a network that connects computers and
devices within a limited area, such as a single office, building, or campus.
1. Ownership:
o LANs are usually privately owned by individuals, businesses, or
organizations.
2. Configuration:
o A LAN can be as simple as two computers and a printer in a home office or
can extend throughout a company, including multiple computers, printers, and
even audio and video devices.
3. Unique Identifiers:
o Each device (or "host") on the LAN has a unique identifier known as an
address. This address helps in identifying where data packets come from and
where they are going.
4. Data Transmission:
o When one device sends data to another, it includes both the sender's and the
recipient's addresses in the packet. This way, the network knows how to direct
the packet.
Older LANs:
o In the past, LANs often used a common cable to connect all devices. This
meant that when one device sent a packet, it would be received by all devices
on the network. Only the intended recipient would keep the packet, while
others would ignore it.
Modern LANs:
o Today, most LANs use a smart device called a switch. The switch can identify
the destination address of the packet and only sends the packet to the correct
device. This reduces unnecessary traffic on the network.
o Multiple devices can communicate with each other simultaneously without
interfering with each other, as the switch manages the data flow.
Sharing Resources
LANs are designed to allow devices to share resources, such as files, printers, and
internet connections. This makes it easy for users within the network to collaborate
and access shared tools.
Connection to Wider Networks
While LANs can operate independently, they are often connected to other LANs or to
Wide Area Networks (WANs) to facilitate communication over larger distances,
enabling broader connectivity.
Summary
In summary, a Local Area Network (LAN) is a private network that connects devices within a
limited area, allowing for efficient communication and resource sharing. Modern LANs use
switches to manage data traffic intelligently, improving performance and making it easier for
multiple devices to communicate simultaneously
[Link]
Here's a simplified explanation of Wide Area Networks (WANs), along with the key
differences between LANs and WANs:
Definition: A Wide Area Network (WAN) is a network that connects devices over a
large geographic area. Unlike a Local Area Network (LAN), which is limited to a
smaller space like an office or building, a WAN can span cities, states, countries, or
even the entire globe.
1. Geographic Scope:
o LAN: Typically covers a small area like a single office, building, or campus.
o WAN: Covers a much larger area, connecting devices across towns, states, or
countries.
2. Interconnected Devices:
o LAN: Primarily connects individual devices (hosts) like computers and
printers.
o WAN: Connects larger networking devices, such as switches, routers, or
modems, which facilitate communication between different LANs.
3. Ownership:
o LAN: Usually privately owned by the organization that uses it.
o WAN: Typically created and managed by communication companies (like
internet service providers), which lease the network to organizations.
Types of WANs
1. Point-to-Point WAN:
o Description: A point-to-point WAN connects two devices directly through a
transmission medium (like a cable or wireless connection).
o Example: This type of WAN is often used for connecting two networks
directly, such as a company's office to its branch office in another location.
oFigure: Imagine a line connecting two points, representing the direct link
between two devices.
2. Switched WAN:
o Description: A switched WAN connects multiple devices and networks using
switches. It can be seen as a combination of several point-to-point WANs.
o Example: This type of WAN is commonly used in the backbone of global
communications, allowing various networks to connect and communicate with
each other.
o Figure: Picture multiple devices connected to a central switch, allowing them
to communicate with one another and with other networks.
Summary
In summary, a Wide Area Network (WAN) enables communication over large distances,
connecting various devices and networks across cities or even globally. Unlike Local Area
Networks (LANs), which focus on smaller, privately owned areas, WANs are generally
operated by communication companies and can serve many users and devices across
extensive geographic regions. WANs can be categorized into point-to-point connections,
linking two devices directly, and switched connections, which connect multiple devices using
switches for efficient communication.
What is an Internetwork?
Example Scenario
Each office has its own Local Area Network (LAN) that allows employees within that
office to communicate and share resources (like printers and files).
To enable communication between the two offices, the company leases a point-to-
point dedicated WAN from a service provider (like a telephone company).
This WAN connects the two LANs, creating an internetwork.
Visualization of an Internetwork
Figure 1.11: Shows how the two LANs in the east and west coast offices are
connected via a WAN, creating an internetwork.
Figure 1.12: Illustrates a more complex internetwork, where multiple LANs and
WANs are connected. One of the WANs includes several switches that help manage
communication between different devices and networks.
Summary
What is TCP/IP?
Layers of TCP/IP
1. Application Layer: This is where software applications interact with the network. It
creates messages for communication (e.g., web browsing).
2. Transport Layer: This layer ensures that messages are delivered accurately and in
the right order. It manages data flow between computers.
3. Network Layer: This layer decides how data is sent from one computer to another. It
handles routing the data across different networks.
4. Data Link Layer: This layer prepares data for transmission over a specific physical
medium (like cables). It manages how data is framed and checks for errors.
5. Physical Layer: This is the lowest layer that deals with the actual transmission of raw
data bits over a network, like electrical signals or radio waves.
Computer A creates a message in the application layer and sends it down through all
five layers.
Link-Layer Switch: In the network, there are switches that help move the data along
the network at the data link and physical layers.
Router: The router connects different networks. It only works with the network, data
link, and physical layers. It forwards data packets to the right destination.
Link-Layer Switch (2): Another switch in the next link helps forward the data to
Computer B.
Computer B receives the data at the physical layer and processes it through all the
layers up to the application layer.
Summary
Hosts (computers) use all five layers to send and receive data.
Routers manage data routing but don’t handle application data.
Switches work within a single link, dealing with data transfer at the data link and
physical layers.
This layered system makes it easier for different devices to communicate over the internet.
Sure! Let’s use a real-world scenario to explain the TCP/IP protocol suite and its layered
architecture clearly.
As the email travels from Alice’s computer to Bob’s, it passes through different devices:
Switch: In Alice’s local network, a switch helps send her message to the router. Think
of this as a delivery person who takes the box from Alice’s house to the post office.
Router: The router directs the message from Alice’s local network to the internet. It
decides the best way to send the message toward Bob’s computer. This is like a postal
facility sorting and forwarding the box to the right destination [Link] IN
TCP/IP PROTOCOL SUITE
Understanding Layers in Networking
1. Layer Functions:
o In networking, different layers handle different tasks, and they can be
categorized into two main groups:
End-to-End Layers: These include the Application, Transport, and
Network layers. Their responsibility is to ensure that data is sent from
the source host to the destination host over the internet.
Hop-to-Hop Layers: These are the Data Link and Physical layers.
They deal with the data transmission between two consecutive devices,
like routers or switches, in a network. Each device in this case is
considered a "hop."
2. Data Units:
o Each layer creates data units that are processed differently:
In the top three layers (Application, Transport, Network), the data
unit is called a packet. This packet remains unchanged when it passes
through any router or switch in the network.
In the bottom two layers (Data Link and Physical), the data packet
may change slightly as it travels between hops. Routers can modify the
packet, but link-layer switches do not alter it. They simply forward it.
Visualizing Connections
Logical Connections:
o The top three layers create a logical connection that allows data to flow
seamlessly from one host to another across the entire internet.
o The bottom two layers ensure that data can move between two specific
devices, which might be in the same local area network (LAN) or connected
by routers.
Fragmentation
When data is sent over the network, it might be too large for a single packet. In such
cases, a router at the network layer can fragment the packet into smaller pieces. This
means:
o The sender might send one large packet, but the router breaks it down into
several smaller packets before sending them out.
o At the destination, these packets will be reassembled to form the original
packet. Therefore, while the logical connection exists between two hosts, what
is actually received at each hop can be different because of fragmentation.
Summary
In essence, the layers of the TCP/IP protocol suite have different responsibilities and
processes, depending on whether they are handling data across the internet (end-to-end) or
just between two devices (hop-to-hop). Understanding these layers helps clarify how data is
transmitted efficiently in a network.
Certainly! Let's break down the TCP/IP protocol layers and their duties in simple terms. Each
layer has a specific role in facilitating communication over the internet. Here's an overview of
the layers from bottom to top:
1. Physical Layer
Responsibility: This layer deals with the transmission of raw bits over a physical
medium (like cables or air).
Function: It takes individual bits from the data-link layer and sends them as electrical
or optical signals through the transmission medium (e.g., Ethernet cables, fiber optics,
or radio waves).
Key Concept: Although this layer is the lowest, the communication is still considered
logical because it relies on an underlying medium that carries signals, which
transforms the bits from the data-link layer into signals for transmission.
PROTOCOLS USED
Ethernet-then the cable used is Twiated pair cable ,coaxial cable,fibre optic cable
Fast Ehernet/Gigabit Ehernet--same
Device Connection Management: The Data Link Layer is responsible for managing
the connection between two directly connected devices, such as computers, switches,
or routers. This layer ensures that data can be transmitted between devices on the
same local network (or link).
Direct Communication: It facilitates communication over a physical medium, which
can be wired (like Ethernet cables) or wireless (like Wi-Fi). The devices must be
directly connected in the same local area network (LAN) for this layer to function
effectively.
Encapsulation: This layer takes the packets received from the Network Layer (the
layer above it) and encapsulates them into frames. A frame is a structured unit of data
that contains:
o Header: Cotains control information such as the source and destination MAC
addresses, type of protocol, and other essential metadata.
o Payload: The actual data being transmitted, which in this case, is the packet
from the Network Layer.
o Trailer: Often contains error-checking information, such as a checksum or
cyclic redundancy check (CRC).
Error Detection and Correction: The Data Link Layer implements mechanisms to
detect and correct errors that may occur during data transmission over the physical
medium. It uses techniques such as:
o Checksum: A value calculated from the frame's data to check for errors.
o CRC: A more advanced error-detection method that helps identify changes to
raw data.
3. Protocol Independence
Flexibility: The TCP/IP suite does not enforce a specific protocol for the Data Link
Layer, allowing various protocols to be used. This flexibility means that different
technologies can operate seamlessly over the same TCP/IP network. Common
protocols include:
o Ethernet: A widely used protocol for wired LANs, employing various
standards like 10BASE-T, 100BASE-TX, and 1000BASE-T.
o Wi-Fi: A set of protocols (such as IEEE 802.11) for wireless communication
in local area networks.
Different Services: Each protocol may provide different services, such as varying
levels of error correction, speed, and efficiency. This allows network designers to
select the most suitable protocol based on their specific needs and environment.
Responsibility: This layer is responsible for moving packets between hosts across
multiple links, which may involve passing through several routers.
Function: It defines the path that packets take from the source host to the destination
host, handling routing decisions made by routers. It ensures that the packets reach
their intended destination.
Key Protocols:
o Internet Protocol (IP): The main protocol of this layer, which handles
addressing and routing. Each packet is called a datagram.
o Connectionless Protocol: IP is connectionless, meaning it does not establish a
connection before sending packets, nor does it ensure they arrive intact (for
that, the transport layer protocols handle reliability.
o Auxiliary Protocols: Other protocols like ARP (Address Resolution Protocol)
and ICMP (Internet Control Message Protocol) assist IP in routing and error
reporting.
4. Transport Layer
1. Responsibilities of the Transport Layer
The Transport Layer primarily uses three protocols: TCP, UDP, and SCTP. Each protocol
serves different purposes and has distinct characteristics.
5. Application Layer
The Application Layer of the TCP/IP protocol suite is the topmost layer that interacts
directly with user applications and provides the necessary protocols for communication
between them. This layer plays a crucial role in enabling various types of network
applications and services. Here’s a detailed explanation of its responsibilities, functions, and
key protocols:
User Interface: The Application Layer serves as the interface between user
applications and the underlying network protocols. It facilitates user interaction with
the network through various applications.
Protocol Implementation: This layer implements protocols that allow applications to
communicate over the network, ensuring that data is formatted, transmitted, and
received correctly.
Several protocols operate at the Application Layer, each serving different purposes. Here are
some key protocols:
Purpose: HTTP is the foundational protocol for transferring web pages on the
internet. It facilitates communication between web browsers and web servers.
How It Works: When a user enters a URL in a web browser, the browser sends an
HTTP request to the server hosting the webpage. The server processes the request and
responds with the requested HTML page or resource.
Stateless Protocol: HTTP is stateless, meaning each request from a client to server is
treated as an independent transaction, with no stored context from previous
interactions.
Purpose: SMTP is the standard protocol for sending emails across the internet. It is
used for the transmission of email messages from the sender's mail server to the
recipient's mail server.
How It Works: When you send an email, your email client communicates with your
email server using SMTP to relay the message to the recipient’s email server. SMTP
manages the routing of the email until it reaches its final destination.
Purpose: FTP is used for transferring files between hosts over a network. It allows
users to upload and download files from a remote server.
How It Works: FTP operates using a client-server model. A user connects to an FTP
server using an FTP client, authenticates with credentials, and then can browse files
and directories to upload or download files.
Modes: FTP can operate in active or passive mode, which determines how the data
connection is established between client and server.
Purpose: DNS is a critical protocol that resolves human-readable domain names (like
[Link]) into IP addresses (like [Link]) that computers use to identify
each other on the network.
How It Works: When a user types a domain name into a web browser, a DNS query
is sent to a DNS server, which looks up the corresponding IP address and returns it to
the browser, enabling it to connect to the desired web server.
Identical Objects
The communication is structured so that each layer serves a distinct role, which helps
simplify the process of sending and receiving data across networks. By separating
responsibilities, protocols can evolve independently, allowing for better flexibility and
efficiency in network communications.
OSI MODEL
What is the OSI Model?
1. Definition:
o The OSI (Open Systems Interconnection) model is a way to understand how
different computer systems communicate with each other over a network. It
was developed in the late 1970s by the International Organization for
Standardization (ISO).
2. Purpose:
o The main goal of the OSI model is to make it easier for different systems to
talk to each other without needing to change the way their hardware or
software works. Think of it as a common language for computers.
3. Layered Structure:
o The OSI model is organized into seven layers, each responsible for a specific
part of the communication process. These layers work together to move data
across the network.
o [Link]
#what-are-the-7-layers-of-the-osi-model
Summary
Feel free to use this table format or the summary to present your answer!
The Presentation Layer is often called the syntax layer because it ensures that data sent
from one device can be properly understood by another, regardless of differences in data
representation.
Key Responsibilities
1. Data Translation:
o Converts data into a format understandable by the receiving system.
o Examples include converting between ASCII and EBCDIC character
encoding.
2. Data Encryption/Decryption:
o Provides security by encrypting data before transmission and decrypting it
upon reception.
o For example, using SSL/TLS to secure web traffic.
3. Data Compression/Decompression:
o Reduces the size of the data to improve transmission speed and efficiency.
o Examples include compressing images using JPEG or video using MPEG.
4. Data Serialization:
o Formats complex data structures (e.g., objects in programming languages) into
a transmittable format such as JSON or XML.
The Session Layer manages and controls the dialog between two devices or applications. It
establishes, maintains, and terminates sessions.
Key Responsibilities
1. Session Management:
o Establishes a session between two devices, keeps it active, and terminates it
when the communication ends.
o Sessions can be half-duplex, full-duplex, or simplex.
2. Synchronization:
o Places checkpoints during data transmission, so if a failure occurs, the
transmission can resume from the last checkpoint instead of starting over.
o Example: Download managers resuming a download.
3. Dialog Control:
o Ensures proper coordination between devices by controlling who sends data
and when (dialog discipline).
o Example: Preventing both devices from transmitting simultaneously in a half-
duplex connection.
4. Authentication:
o Handles user authentication and session recovery.
o Example: Logging into a remote desktop session.
Summary Table
Would you like a deeper dive into practical implementations or examples of either layer?
4o
TRANSMISSION MEDIA
What is Transmission Medium?
A transmission medium is anything that carries information from one place to another. For
example:
In a conversation: The air carries sound waves from one person to another.
In written messages: A mail carrier or an airplane transports letters.
In Data Communications
Historical Background
Advances in Technology
Electromagnetic Energy
When devices communicate, they send signals as electromagnetic energy, which consists of
electric and magnetic fields. This energy includes:
Power
Radio waves
Infrared light
Visible light
Ultraviolet light
X-rays and more
Each of these types is part of the electromagnetic spectrum, but not all parts can be used for
communication.
Summary
In essence, transmission media are the pathways through which information travels, and they
have evolved significantly from wired telegraph systems to modern wireless and fiber-optic
technologies, improving the speed and reliability of communications.
GUIDED-MEDIA
Guided media are physical transmission paths that provide a structured conduit for communication
between devices. They rely on physical boundaries to guide and contain the transmission of signals.
2. Noise Reduction:
If wires are parallel, they are affected unequally by noise. Twisting ensures alternating
proximity to noise sources, canceling out most interference at the receiver.
CAT 1-4: Low-quality cables for telephony or older networks (e.g., T-1 lines, LANs).
CAT 5: Enhanced for modern LANs with 100 Mbps data rates.
CAT 5E: Extra features for reducing crosstalk and interference, supporting 125
Mbps.
CAT 6: High-quality cables tested at 200 Mbps for LANs.
CAT 7: Shielded cable (SSTP) designed for high-speed (600 Mbps) and low crosstalk
environments.
5. Connectors:
The RJ-45 connector is the most commonly used with UTP cables in networking.
It is keyed to ensure proper connection.
6. Performance:
7. Applications:
Telephony: UTP cables are used in local loops connecting subscribers to central
telephone offices.
DSL (Digital Subscriber Line): High-bandwidth applications for internet
connections.
LANs: Common in Ethernet networks like 10Base-T and 100Base-T.
Summary:
Twisted-pair cables are widely used in communications due to their cost-effectiveness and
flexibility. UTP is preferred for general use, while STP is reserved for environments
requiring high interference resistance. Performance is influenced by cable quality (category),
twisting density, and operating frequency.
Cables are categorized by Radio Government (RG) ratings, which define physical
and electrical characteristics.
Common categories include:
o RG-59: 75 Ω impedance, used in cable TV.
o RG-58: 50 Ω impedance, used in Thin Ethernet.
o RG-11: 50 Ω impedance, used in Thick Ethernet.
3. Connectors:
5. Applications:
Summary:
Coaxial cables offer high bandwidth for various applications, from telephone and cable TV
networks to early Ethernet LANs. While they provide better performance than twisted-pair
cables, their attenuation requires signal repeaters for long distances. Over time, fiber-optic
cables have replaced coaxial cables in many applications due to their superior performance
Fiber-optic cable is a transmission medium that uses light to carry signals. It is composed of
materials like glass or plastic and has significant advantages in bandwidth, speed, and
resistance to interference.
Light Propagation:
o Light travels in straight lines in a uniform medium.
o When it moves between substances of different densities, it can refract (bend)
or reflect.
Critical Angle:
o The angle of incidence at which light reflects entirely back into the denser
substance.
o Optical fibers exploit this principle of total internal reflection to guide light
through their cores.
1. Core:
o Made of glass or plastic, where light travels.
2. Cladding:
o A layer of lower-density material surrounding the core.
o Reflects light back into the core to maintain its path.
3. Outer Jacket:
o A protective outer layer made of PVC or Teflon.
4. Strengthening Layer:
o Often includes Kevlar strands to reinforce the cable.
3. Modes of Propagation
1. Multimode:
o Allows multiple light beams to propagate simultaneously.
o Two types:
a. Step-Index Multimode:
Core has uniform density.
Light reflects sharply at the core-cladding boundary.
Prone to signal distortion due to varied beam paths.
b. Graded-Index Multimode:
Core density decreases gradually from center to edge.
Reduces signal distortion by bending light smoothly.
2. Single Mode:
o Uses a highly focused light source and a smaller core diameter.
o All light beams propagate nearly parallel, minimizing distortion.
o Suitable for long-distance communication.
4. Fiber Sizes
Common sizes:
o 50/125 μm: Multimode, graded index.
o 62.5/125 μm: Multimode, graded index.
o 7/125 μm: Single mode.
6. Performance
Fiber-optic cables experience low attenuation (signal loss), even at high frequencies.
Requires fewer repeaters compared to twisted-pair and coaxial cables (only about
1/10 as many).
Performance improves with Wavelength-Division Multiplexing (WDM), enabling
data transfer rates up to 1600 Gbps.
7. Applications
1. Backbone Networks:
o High bandwidth makes it cost-effective for large-scale data transport in
backbone networks.
o Utilized in SONET networks (Synchronous Optical Network).
2. Cable TV Networks:
o Combines optical fibers for the backbone and coaxial cables near user
premises.
o Offers a hybrid and cost-effective configuration.
3. Local-Area Networks (LANs):
o Common in high-speed networks like 100Base-FX (Fast Ethernet) and
1000Base-X.
_____
The part of the electromagnetic spectrum used for wireless communication ranges
from 3 kHz to 900 THz.
Signals are transmitted using different frequencies and propagation methods.
Propagation Methods
1. Ground Propagation:
o How it works:
Radio waves travel along the earth's surface, hugging the ground.
o Frequency Range: Used for low-frequency signals (below 2 MHz).
o Characteristics:
Waves bend around obstacles and follow the curvature of the earth.
Greater power increases the transmission distance.
o Applications: Long-range communication, such as AM radio.
2. Sky Propagation:
o How it works:
Higher-frequency signals radiate into the ionosphere and are reflected
back to earth.
o Frequency Range: 2–30 MHz.
o Characteristics:
Signals travel long distances with lower power requirements.
o Applications: Shortwave radio, amateur radio.
3. Line-of-Sight (LOS) Propagation:
o How it works:
Very high-frequency signals travel in straight lines between antennas.
o Frequency Range: Above 30 MHz.
o Characteristics:
Requires antennas to be properly aligned and elevated to avoid
obstacles or the earth's curvature.
LOS propagation is less reliable due to interference and signal
dispersion.
o Applications: Satellite communication, television broadcasting, and mobile
communication.
Wireless Bands
The spectrum is divided into bands, each with unique ranges, propagation methods, and
applications. Below are some examples:
Key Takeaways
Packet switching is a fundamental method used in data communication where messages are
divided into smaller units called packets before being sent from one end system to another.
These packets are transmitted independently across the network and reassembled at the
destination to reconstruct the original message. Packet switching is the underlying
mechanism for most modern computer networks, including the Internet.
1. Datagram Networks:
o Each packet is treated independently and can take any path to the destination.
o Packets may arrive out of order at the destination because they may take
different routes.
o Example: The Internet Protocol (IP) is based on a datagram model.
2. Virtual-Circuit Networks:
o A logical path (virtual circuit) is established between the source and
destination before data transfer begins.
o All packets follow the same path, ensuring they arrive in order.
o Example: Multi-Protocol Label Switching (MPLS) networks often use virtual
circuits.
Advantages of Packet Switching
Efficient Resource Utilization: Resources are allocated only when needed, leading to
better utilization of network bandwidth.
Fault Tolerance: Since packets can take alternate paths, the system is resilient to
network failures.
Scalability: Packet switching can handle varying traffic loads effectively, making it
suitable for large-scale networks.
In summary, packet switching provides a flexible and efficient way of transmitting data over
a network, though it introduces challenges such as potential delays and complexity in packet
management.
In a datagram network, each packet is treated independently. Even if multiple packets are
part of the same message, the network does not consider their relationship. This is referred to
as a connectionless approach because no dedicated connection is established before
transmission, and each packet is routed individually.
Advantages:
Challenges:
Summary:
Datagram networks offer a connectionless and flexible way to send data where each packet
is routed independently without establishing a connection, providing efficient resource usage
but with potential delays, loss, and out-of-order delivery. The routing decisions are made
based on dynamic routing tables at each router.
Setup Phase: Before data transfer, the source and destination establish a path through
the network. During this phase, switches create entries for the virtual circuit.
Data Transfer Phase: Data is transferred through established virtual circuits. Each
switch along the path uses a table to route the packets based on their Virtual-Circuit
Identifier (VCI), a local identifier that helps the switch know how to forward the
packet.
Teardown Phase: Once data transfer is complete, a teardown request is sent, and
switches delete the virtual circuit entries.
Global Addressing: Each device (source or destination) uses a global address for
identification within the broader network.
Virtual-Circuit Identifier (VCI): Each packet has a VCI that identifies the virtual
circuit between the source and destination. The VCI is used locally in each switch and
changes as packets pass through different switches, ensuring proper routing.
Packet Switching with Local VCI: In a virtual-circuit network, each packet carries a
VCI, not the final destination address. The VCI helps the intermediate switches know
where to forward the packet. The VCI changes as the packet travels through different
switches.
For example, a packet might start with VCI 14 at Switch 1, change to VCI 22 at
Switch 2, and finally reach the destination with VCI 77.
Setup Request: The source sends a setup frame to the destination, which triggers the
switches to allocate resources for the virtual circuit and add entries to their tables.
Acknowledgment: Once the destination is ready, it sends an acknowledgment back,
completing the switch tables and allowing data transfer.
5. Teardown Phase:
Once data transmission ends, a teardown request is sent, and all switches remove the
corresponding virtual circuit entries.
This overview of a virtual-circuit network highlights how data is transferred via a path that
is set up and managed during the setup phase, how it is routed using locally assigned VCIs,
and how the circuit is eventually torn down after data transfer. The approach combines the
reliability of circuit-switched networks with the flexibility and packet-based nature of
datagram networks.