Mod 1 PPT
Mod 1 PPT
Mod 1 PPT
AGENDA
Data communication
Networks
Network Types
Network Models
Protocol Layering
TCP/IP protocol
The OSI model
Physical layer
Transmission media
Switching
COMPUTER NETWORKS
MODULE 1
Introduction To Data Communication And Networking
AGENDA
Data communication
Networks
Network Types
Network Models
Protocol Layering
TCP/IP protocol
The OSI model
Physical layer
Transmission media
Switching
Data Communication
Data communication is the transfer of data between the source and the receiver via some form via some form of transmission medium such as a
wire cable.
Source transmits the data and receiver receives it.
Fundamental Characteristics
One node will transmit and another node will Receive the data.
Dataflow or Communication is unidirectional.
Example: keyboard, monitor.
Half duplex
Two way street, i.e. sending data and receiving data at the
same time.
Ex: Telephone network.
Data representation
Data can be represented in five formats
Text-we can send data in text format it is represented in bits format.
Numbers- we can send data in numbers. It is also converted in to bits and transmitted.
Images- we can send data in image format. Image is nothing but matrix of pixels.
Fault tolerant and reliable :Even if one connection breaks, the network
keeps sending data through other paths.
It provides high privacy and security.
In Efficiency
If no data, capacity is wasted
channel capacity is dedicated for the whole duration of a
connection
Delay
Long initial delay-circuit establishment takes time.
Low data delay-after circuit establishment, information is
transmitted at a fixed rate.
DSL: DSL service uses a broadband connection, which makes it much faster than dial-up. DSL
connects to the Internet via a phone line but does not require you to have a landline at home.
Cable Networks: Cable service connects to the Internet via cable TV. It uses a broadband
connection and can be faster than both dial-up and DSL service; however, it is only available
where cable TV is available.
Wireless Network:3G and 4G service is most commonly used with mobile phones, and it
connects wirelessly through your ISP's network.
Protocol Layering
Protocol is a set of rules that both the sender and
receiver needs to follow to make
communication effective.
Layering- decomposing the problem into
manageable components(layers).
Simple communication need simple protocol.
In Complex communication we divide the task
or problem into smaller and form layers to send
those problems.
Scenario1: A single layer protocol
Second Scenario
Principles of Protocol Layering
Frist principle
Both layers need to perform two opposite tasks.
1. First layer is to send and receive mail.
2. Second layer is to encrypt and decrypt.
3. Third layer is to listen or talk.
Logical connection
An imaginary connection established at each layer through which they can
send the object created from that layer.
TCP/IP Protocol suite
This model defines how data is transmitted
over networks, ensuring reliable
communication between devices.
The TCP/IP model consists of five layers: the
application layer, transport layer, network
layer, data link layer and physical layer.
TCP/IP is a hierarchical protocol made up of
interactive modules, and each of them
provides specific functionality..
It is named from two important protocols in it
Transmission control protocol(TCP)
Internet protocol (IP)
Physical layer
This is the lowest layer of the TCP/IP model architecture.
It is responsible for carrying individual bits in a frame across the link.
These two layers are mainly responsible for the transmission of the data
between two devices on the same network.
Network Layer
• An network layer is the third layer of the TCP/IP model.
• Communication at the network layer is host to host communication.
• The main responsibility of the internet layer is to send the packets from
any network, and they arrive at the destination irrespective of the route
they take.
IP protocol is used in this layer, and it is the most significant part of the entire TCP/IP suite.
• IP Addressing: This protocol implements logical host addresses known as IP addresses. The
IP addresses are used by the internet and higher layers to identify the device and to provide
internetwork routing.
• Data Encapsulation and Formatting: An IP protocol accepts the data from the transport
layer protocol. It encapsulates the data into message known as IP datagram.
• Routing: it is responsible for routing packet from source to its destination, which can be
accomplished by routing the IP datagram through various devices such as routers.
ARP
• ARP is a network layer protocol which is used to find the physical address from
the IP address.
ICMP
It creates a virtual circuit between the sender and receiver, and it is active for the duration of the transmission.
TCP is a reliable protocol as it detects the error and retransmits the damaged frames. Therefore, it ensures all the segments must be
received and acknowledged before the transmission is considered to be completed and a virtual circuit is discarded.
At the sending end, TCP divides the whole message into smaller units known as segment, and each segment contains a sequence
number which is required for reordering the frames to form an original message.
At the receiving end, TCP collects all the segments and reorders them based on sequence numbers.
• HTTP: HTTP stands for Hypertext transfer protocol. This protocol allows us to
access the data over the world wide web. It transfers the data in the form of
plain text, audio, video.
• DNS: DNS stands for Domain Name System. It is used by other protocols to find
the network layer address of a computer.
• FTP: FTP stands for File Transfer Protocol. FTP is a standard internet protocol
used for transmitting the files from one computer to another computer.
Encapsulation
The process of adding headers and trailers around data
being sent through a network. At source we have only
encapsulation.
At Application layer: data to be exchanged is called as
message, it doesn’t contain any header and trailer. This
message is passed to transport layer.
At Transport layer: It takes message as payload, adds header
and other information this results in packet, then passes
packet to network layer.
At Network layer: It takes packet, adds header and
necessary information this results in datagram, then passes
datagram or packet to datalink layer.
At Data link layer: Adds its own address to packet, results in
frames and passes it to physical layer for transmission.
Decapsulation and Encapsulation at router
Decapsulation: the reverse process of encapsulation occurs when data is
received on the destination computer.
At router we have both encapsulation and decapsulation.
Data link layer receives set of bits, it decapsulates frame into datagram and
passes to network layer.
At network layer it only inspects source and destination address and consults its
forwarding table to find next hop.
Decapsulation at destination
At destination each layer decapsulates the packet received.
Removes the payload and deliver packet to next higher layer protocol until
message reaches the application layer.
ADDRESSING
• OSI model was developed by the International Organization for Standardization (ISO) in
1984, and it is now considered as an architectural model for the inter-computer
communications.
OSI consists of seven layers, and each layer performs a particular network function.
• OSI model divides the whole task into seven smaller and manageable tasks. Each layer is
assigned a particular task.
Layers of OSI Model
There are the seven OSI layers. Each layer has different functions. A list of
seven layers are given below:
1. Physical Layer
2. Data-Link Layer
3. Network Layer
4. Transport Layer
5. Session Layer
6. Presentation Layer
7. Application Layer
.
OSI VERSUS TCP/IP
The biggest difference between the OSI and TCP/IP models is the OSI model has
seven layers instead of five. Although both the TCP/IP and OSI models transport
data, the ways they send it are slightly different.
The session and presentation layers are separate
in OSI Model, but in TCP/IP model they are not
distinguished.
TCP/IP model, the transport layer has more than
One protocol, so some functionalities of session
Layer are available in some
transport layer protocol.
Physical Layer – Introduction
Transmission media are actually located below the physical layer and are directly controlled by the physical layer.
Guided Media
Guided media, which are those that provide a conduit from one device to another, include twisted-
pair cable, coaxial cable, and fiber-optic cable.
A signal traveling along any of these media is directed and contained by the physical limits of the
medium.
Twisted-pair and coaxial cable use metallic (copper) conductors that accept and transport signals in the
form of electric current. Optical fiber is a cable that accepts and transports signals in the form of light.
Twisted Pair Cable
A twisted pair consists of two conductors (normally copper), each with its own
plastic insulation, twisted together.
One of the wires is used to carry signals to the receiver, and the other is used only as
a ground reference.
By twisting the pairs, a balance is maintained. For example, suppose in one twist, one
wire is closer to the noise source and the other is farther; in the next twist, the reverse
is true.
UTP Vs STP
Categories
Connectors
Performance
Applications
Used to provide voice and data channels
Local-area networks, such as 10Base-T and 100Base-T, also use twisted-pair cables.
Coaxial Cable
Coaxial cable (or coax) carries signals of higher frequency ranges than those in twisted pair cable,
coax has a central core conductor of solid or stranded wire (usually copper) enclosed in an insulating
sheath, which is, in turn, encased in an outer conductor of metal foil, braid, or a combination of the
two.
The outer metallic wrapping serves both as a shield against noise and as the second conductor, which
completes the circuit. This outer conductor is also enclosed in an insulating sheath, and the whole
cable is protected by a plastic cover
Coaxial Cable standards
Coaxial Cable Connectors
A fiber-optic cable is made of glass or plastic and transmits signals in the form of light.
Light travels in a straight line as long as it is moving through a single uniform substance.
If a ray of light traveling through one substance suddenly enters another substance (of a different
density), the ray changes direction.
If the angle of incidence I (the angle the ray makes with the line perpendicular to the interface
between the two substances) is less than the critical angle, the ray refracts and moves closer to the
surface. If the angle of incidence is equal to the critical angle, the light bends along the interface. If the
angle is greater than the critical angle, the ray reflects (makes a turn) and travels again in the denser
substance.
multimode graded-index fiber, decreases this distortion of the signal through the cable. The word index
here refers to the index of refraction.
Density is highest at the center of the core and decreases gradually to its lowest at the edge
Single-Mode
Single-mode uses step-index fiber and a highly focused source of light that limits beams to a small
range of angles, all close to the horizontal. The single-mode fiber itself is manufactured with a much
smaller diameter than that of multimode fiber, and with substantially lower density (index of
refraction).
Fiber Sizes
Cable Composition
The outer jacket is made of either PVC or Teflon. Inside the jacket are Kevlar strands to strengthen the
cable. Kevlar is a strong material used in the fabrication of bulletproof vests.
The fiber is at the center of the cable, and it consists of cladding and core.
Connectors
The subscriber channel (SC) connector is used for cable TV.
The straight-tip (ST) connector is used for connecting cable to networking devices.
Datagrams can arrive out of order with different delays between the packets.
In most protocols it is the responsibility of the upper layer protocol to reorder the
datagrams or ask for lost datagrams before passing them on to the application.
Each packet switch has a routing table which is based on the destination address.
The routing tables are dynamic and are updated periodically.
The destination addresses and the corresponding forwarding output ports are
recorded in the tables.
The destination address in the header of a packet in a datagram network remains the
same during the entire journey of the packet.
When the switch receives the packet, this destination address is examined, the
routing table is consulted to find the corresponding port through which the packet
should be forwarded.
EFFICIENCY
There are three transmission times (3T), three propagation delays (slopes 3of the lines), and two
waiting times (w1 w2).
Virtual circuit switching Network
Characteristics:
The switch, in the setup phase acts as a packet switch, it has a routing table used
to know the output port number
Setup Acknowledgement
When destination B receives the up frame, and it is ready to receive frames from
A, it assign a VCI. This VCI lets the destination know that the frame comes from
A not other sources.
Data transfer and tear down phase
After sending all frames, a special frame is send to end the connection.
Destination B responds with tear down confirmation frame.
Delay in virtual circuit Network