Module-1 (1 and 2 Chapter)
Module-1 (1 and 2 Chapter)
BCS502
Textbook:
1. Behrouz A. Forouzan, Data Communications and Networking, 5th Edition, Tata McGraw-
Hill,2013.
COURSE OUTCOMES
❖ CO1:Explain the fundamentals of computer networks.
❖ CO2:Apply the concepts of computer networks to demonstrate the working of
various layers and protocols in communication network.
❖ CO3:Analyze the principles of protocol layering in modern communication
systems.
❖ CO4:Demonstrate various Routing protocols and their services using tools
such as Cisco packet tracer.
MODULE-1
INTRODUCTION TO PHYSICAL LAYER
1-1 DATA COMMUNICATIONS
• Data communications are the exchange of data between two devices via
some form of transmission medium such as a wire cable.
Data communications system depends on four fundamental characteristics
1. Delivery
2. Accuracy
3. Timeliness
4. Jitter
Delivery. The system must deliver data to the correct destination. Data must be
received by the intended device or user and only by that device or user.
Accuracy. The system must deliver the data accurately. Data that have been altered in
transmission and left uncorrected are unusable.
2. Sender: The sender is the device that sends the data message.
Text
Numbers
Images
Audio
Video
Data Representation(Forms of data)
Text:
• represented a sequence of bits (0’s or 1’s).
• Different set of bit patterns are designed to represent text
symbols. Each set is called a code.
• process of representing symbols is coding.
• Unicode
• prevalent coding system today.
• uses 32 bits to represent a symbol or character used in any
language
• ASCII
Data Representation(Forms of data)
Numbers:
• represented by bit patterns.
• the number is directly converted to a binary number.
Images:
• represented by bit patterns.
• an image is composed of a matrix of pixels (picture elements)
• pixel is a small dot , the size of the pixel depends on the
resolution.
• methods to represent color images.
Data Representation(Forms of data)
Audio:
• Audio refers to the recording or broadcasting of sound or
music.
• It is continuous, not discrete.
Video:
• refers to the recording or broadcasting of a picture or movie.
• Video can either be produced as a continuous entity or it can
be a combination of images
• each a discrete entity, arranged to convey the idea of
motion.
Data Flow
• A link can be a cable, air, optical fiber, or any medium which can
transport a signal carrying information.
Network Criteria
2. Reliability
3. Security
• Performance can be measured using transit time and response time.
• Transit time: amount of time required for a message to travel from one device to
another.
• Response time: elapsed time between an inquiry and a response.
• Delay (low)
Reliability
• Reliability is measured by:
• Frequency of failure
Security
Advantages
• Each connection carry its own data load (no traffic problems)
• A mesh topology is robust
• Privacy or security
• Fault identification and fault isolation
Disadvantages
• Big amount of cabling
• Big number of I/O ports
• Installation and reconnection are difficult
• Sheer bulk of the wiring can be greater than the available space
• Hardware connect to each I/O could be expensive
• Disadvantages
• Dependency of the whole topology on one single point (hub)
• More cabling than other topologies ( ring or bus)
• Used in LAN
Bus topology
• It is multipoint
• One long cable acts as a backbone
• Used in the design of early LANS, and Ethernet LANs
• Nodes connect to cable by drop lines and taps
• Signal travels along the backbone and some of its energy is
transformed to heat
• Limit of number of taps and the distance between taps
Disadvantages
• Difficult reconnection and fault isolation ( limit of taps)
• Adding new device requires modification of backbone
• Fault or break stops all transmission
• The damaged area reflects signals back in the direction of the
origin, creating noise in both directions
Ring topology
• Each device has dedicated point-to-point connection with only
the two devices on either side of it.
• A signal is passed along the ring in one direction from device to
device until it reaches its destination
• Each devices incorporates a Repeater
Disadvantages
• Unidirectional
• One broken device can disable the entire network.
• This weakness can be solved by using a dual ring
Figure 1.9 A hybrid topology: a star backbone with three bus networks
1.3 Networks types
• WANS
1. Switched WAN
Backbone of the Internet
2. point-to-point WAN
Leased line from a telephone company
Figure 1.11 WANs: a switched WAN and a point-to-point WAN
Internetwork
◼ When two or more networks are connected, they make
an internetwork, or internet.
Figure 1.11 An internetwork made of two LANs and one point-to-point WAN
Figure 1.12 A heterogeneous network made of four WANs and two LANs
Switching
• Internet is a switched network in which a switch connects at
least two links together.
• A switch needs to forward data from a network to another
network when required.
Disadvantage:
• Most of the time, the network is inefficient because it is
working at partial capacity.
Switching
Packet Switched Network
• the communication between the 2 ends is done in blocks of data
called packets.
• The switch is used for both storing and forwarding because a
packet is an independent entity that can be stored and sent later.
Switching
Packet switched networks
Advantage:
• A packet-switched network is more efficient than a circuit
switched network.
Disadvantage:
• The packets may encounter some delays.
The Internet
• internet is two or more networks that can communicate
with each other.
• Internet is composed of thousands of interconnected
networks.
• Internet is made up of
1) Backbones
2) Provider networks
3) Customer networks
1. Dial-up service
• A modem can be added to the telephone line.
• A modem converts data to voice.
• The software installed on the computer
• dials the ISP
• imitates making a telephone connection.
Disadvantages:
• The dial-up service is very slow.
• When line is used for Internet connection, it cannot be used for
voice connection.
• It is only useful for small residences.
2. DSL Service
• allows the line to be used simultaneously for voice & data
communication.
• Some telephone companies have upgraded their telephone
lines to provide higher speed Internet services to
residences.
2. Using Cable Networks
• A residence can be connected to the Internet by using cable
service.
• Cable service provides a higher speed connection.
Protocol : defines the rules that both the sender and receiver and
all intermediate devices need to follow to be able to communicate
effectively.
• Advantages:
1. It allows us to separate the services from the implementation.
2. There are intermediate systems that need only some layers, but not
all.
• Disadvantage:
1. Having a single layer makes the job easier. There is no need for each
layer to provide a service to the upper layer and give service to the
lower layer.
Principles Protocol Layering
1)First Principle
• If we want bidirectional communication, we need to make each
layer able to perform 2 opposite tasks, one in each direction.
2)Second Principle
• The two objects under each layer at both sites should be
identical.
Logical Connections
• layer-to-layer communication.
• TCP provides
• flow control
• error control and
• congestion control
4. Transport Layer
2. UDP:
• is an unreliable, connectionless protocol.
• It does not provide flow, error, or congestion control.
• Each datagram is transported separately & independently.
• It is suitable for application program that
• needs to send short messages
• cannot afford the retransmission
3. SCTP:
• support for newer applications such as voice over the Internet.
• It combines the best features of UDP and TCP.
5. Application Layer
• logical connection between the two application layers is
end to end.
• The two application layers exchange messages between
each other
• Communication at the application layer is between two
processes.
• To communicate, a process sends a request to the other
process and receives a response.
• Process-to-process communication is the duty of the
application layer.
5. Application Layer
• HTTP:Hypertext Transfer Protocol
• vehicle for accessing the World Wide Web.