CN-Unit-1
CN-Unit-1
Dr. R.Mohandas
CINTEL
SRM IST
Unit1- Introduction to Networks
Computer Networks
What is a computer network?
A computer network is a connection between
two or more network devices, like computers,
routers, and switches, to share network
resources.
OSI
The OSI Model
• OSI “ Open Systems Interconnection".
• OSI model was first introduced in 1984 by the International Organization for Standardization
(ISO).
• Outlines WHAT needs to be done to send data from one computer to another.
• Not HOW it should be done.
• Protocols stacks handle how data is prepared for transmittal (to be transmitted)
• In the OSI model, The specification needed
• are contained in 7 different layers that interact with each other.
What is “THE MODEL?”
Hardware Hardware
& &
Software Software
1
DEVICE A DEVICE B
Evolution of the 7-Layers (6)
Application Application
Presentation Presentation
Session Session
Transport Transport
Network Network
Data-Link Data-Link
Physical Physical
2
• Gives end-user applications access to
network resources
• Where is it on my computer?
• Workstation or Server Service in MS
Windows
3
Presentation Layer
3
Session Layer
• Where is it on my computer?
• Workstation and Server
Service (MS)
• Windows Client for
NetWare (NetWare)
3
Transport Layer
• Responsibilities:
• Network addressing
• Routing
• Example:
• IP from TCP/IP 3
Network layer
3
Data link layer
7 - Application All
6 - Presentation People
5 - Session Seem
4 - Transport To
3 - Network Need
2 - Data Link Data
1 - Physical Processing
TCP/IP Model
What is TCP
Transmission Control Protocol (TCP) is a communications standard that
enables application programs and computing devices to exchange
messages over a network. It is designed to send packets across the
internet and ensure the successful delivery of data and messages over
networks.
TCP/IP Model
What is TCP
• Transmission Control Protocol (TCP) is a communications standard that enables application
programs and computing devices to exchange messages over a network. It is designed to send
packets across the internet and ensure the successful delivery of data and messages over
networks. TCP organizes data so that it can be transmitted between a server and a client.
• It guarantees the integrity of the data being communicated over a network. Before it transmits
data, TCP establishes a connection between a source and its destination, which it ensures remains
live until communication begins. It then breaks large amounts of data into smaller packets, while
ensuring data integrity is in place throughout the process.
TCP/IP Model
What is mean by protocol
• Protocols are sets of rules for message formats and procedures that
allow machines and application programs to exchange information.
• These rules must be followed by each machine involved in the
communication in order for the receiving host to be able to
understand the message. The TCP/IP suite of protocols can be
understood in terms of layers (or levels).
TCP/IP Suite of Protocol
TCP/IP Model How works
• TCP/IP carefully defines how information moves from sender to receiver. First, application
programs send messages or streams of data to one of the Internet Transport Layer Protocols,
either the User Datagram Protocol (UDP) or the Transmission Control Protocol (TCP). These
protocols receive the data from the application, divide it into smaller pieces called packets, add a
destination address, and then pass the packets along to the next protocol layer, the Internet
Network layer.
• The Internet Network layer encloses the packet in an Internet Protocol (IP) datagram, puts in the
datagram header and trailer, decides where to send the datagram (either directly to a destination
or else to a gateway), and passes the datagram on to the Network Interface layer.
TCP/IP Suite of Protocol
Movement of information from sender application to receiver host
TCP/IP Suite of Protocol
Movement of information from Host to Application
TCP/IP Model
What is IP
The Internet Protocol (IP) is the method for sending data from one device to another across the internet. Every
device has an IP address that uniquely identifies it and enables it to communicate with and exchange data with
other devices connected to the internet. Today, it’s considered the standard for fast and secure
communication directly between mobile devices.
IP is responsible for defining how applications and devices exchange packets of data with each other. It is the
principal communications protocol responsible for the formats and rules for exchanging data and messages
between computers on a single network or several internet-connected networks. It does this through the
Internet Protocol Suite (TCP/IP) a group of communications protocols that are split into four abstraction layers.
TCP vs IP: What is the difference?
• TCP and IP are separate protocols that work together to ensure data is delivered to its intended
destination within a network. IP obtains and defines the address—the IP address—of the application or
device the data must be sent to. TCP is then responsible for transporting and routing data through the
network architecture and ensuring it gets delivered to the destination application or device that IP has
defined. Both technologies working together allow communication between devices over long
distances, making it possible to transfer data where it needs to go in the most efficient way possible.
• In other words, the IP address is akin to a phone number assigned to a smartphone. TCP is the
computer networking version of the technology used to make the smartphone ring and enable its user
to talk to the person who called them.
TCP/ IP questions
• What is TCP used for?
• Difference between TCP and IP
Physical layer Overview
• The physical layer in the OSI model controls
how the data is transferred over the physical
medium in a network channel.
• It is also responsible for converting the data
frames received from the Data-link layer into
data bits of 1’s and 0’s for transmission over
the network.
• It is also responsible for maintaining the data
quality by applying the necessary protocols
and maintaining the data bit rate.
Characteristics of Physical layer
1. Signals: When data is sent over physical medium, it needs to be first
converted into electromagnetic signals. Data itself can be analog such as
human voice, or digital such as file on the disk. Both analog and digital data
can be represented in digital or analog signals.
2. Transmission medium:
Wired Medium: The connection is made through cables for data transfer.
E.g., Fiber optic cable, Coaxial cable, etc.
Wireless Medium: The connection established is performed using the wireless
communication network models.
E.g., Bluetooth, Wi-Fi, etc.
Functions of the Physical layer
The physical layer is responsible for sending computer bits from one device to
another along the network.
Defining bits: Determines how bits are converted from zeros and ones to a
signal.
Data rate: Determines how fast the data flows in bits per second.
Synchronization: Ensures that sending and receiving devices are synchronized.
Transmission mode: Determines the direction of data transmissions and
whether those are simplex (one signal is transmitted in one direction), half-
duplex (data goes in both directions but not at the same time) or full-duplex
(data is transmitted in both directions simultaneously).
Functions of the Physical layer
Interface: Determines how devices are connected to a transmission medium,
such as Ethernet or radio waves.
Configuration: Provides point-to-point configurations and multipoint
configurations.
Modulation: Converts data into radio waves.
Switching mechanism: Sends data packets from one port to another.
Signal equalization: Helps create more reliable connections and makes
multiplexing easier.
Latency
Latency is a measurement of delay in a system. Network latency is the amount
of time it takes for data to travel from one point to another across a network.
A network with high latency will have slower response times, while a low-
latency network will have faster response times.
How Latency is measured
Network latency is measured in milliseconds
by calculating the time interval between the
initiation of a send operation from a source
system and the completion of the matching
receive operation by the target system.2
• It indicates the number of data packets that arrive at their destination successfully
and the data packet loss.
Comparison of latency to Throughput
Throughput measures the impact of latency on network bandwidth. It indicates the
available bandwidth after latency. For example, a network's bandwidth may be 100
Mbps, but due to latency, its throughput is only 50 Mbps during the day but increases
to 80 Mbps at night.
Jitter
• Another factor in network performance is jitter. Jitter refers to the variation in
latency of packet flows across a network. A consistent latency is preferable to high
jitter, which can contribute to packet loss—data packets that are dropped during
transmission and never arrive at their destination.
• Jitter is the variation in time delay between data transmission and its receipt over a
network connection. A consistent delay is preferred over delay variations for better
user experience.
Comparison of latency to Jitter
Jitter is the change in the latency of a network over time. Latency causes delays in
data packets traveling over a network, but jitter is experienced when these network
packets arrive in a different order than the user expects.
Relationship between latency, bandwidth and throughput