DCN Unit - 1
DCN Unit - 1
AND NETWORKING
2
Contents
• Introduction
- Data Communication
- Networks:
Topologies
PAN, LAN, MAN, WAN
- The Internet
- Protocols and Standards
- Network Models:
OSI Model
Layers in the OSI Model
TCP/IP Protocol Suite
• Physical Layer and Media
- Guided Media
- UnGuided Media
3
Introduction:
Data Communications
• Data – refers to information presented in whatever form is
agreed upon by the parties creating and using the data.
• Communication – process of exchanging information
• “Data Communications are the exchange of data between two
devices via some form of transmission medium.”
• For data communications to occur, the communicating devices
must be part of a communication system made up of a
combination of hardware (physical equipment) and software
(programs). 4
• Effectiveness of data communications system depends on
four fundamental characteristics:
zero.
5
Introduction
6
Introduction
Components
- A data communications system has five components.
7
Introduction
Data Representation
- Information comes in different forms such as text, numbers, images,
audio, and video.
Text – ASCII(American Standard Code for Information
Interchange)
Unicode
Numbers – represented by bit patterns.
number is directly converted to a binary number
Images – represented by bit patterns.
color images – RGB, YCM
Audio – refers to the recording or broadcasting of sound or music.
It is different from text, numbers, or images.
It is continuous, not discrete.
Video – refers to the recording or broadcasting of a picture or movie.
8
Introduction
Data Flow
full-duplex
9
Introduction
Half-Duplex – each station can both transmit and receive, but not
10
Introduction
Full-Duplex – both stations can transmit and receive
simultaneously
- Ex: Telephone
11
Networks:
• A network is a set of devices (often referred to as nodes) connected by
communication links.
• A node can be a computer, printer, or any other device capable of sending
and/or receiving data generated by other nodes on the network.
• Distributed Processing, in which a task is divided among multiple computers.
Instead of one single large machine being responsible for all aspects of a
process, separate computers handle a subset.
• Network Criteria
A network must be able to meet a certain number of criteria. The most
important of these are performance, reliability, and security.
12
Networks
Physical Structures
Types of Connection
- A network is two or more devices connected through links.
- A link is a communications pathway that transfers data from one
device to another.
- For visualization purposes, it is simplest to imagine any link drawn
between two points.
- For communication to occur, two devices must be connected in
some way to the same link at the same time.
13
Networks
• There are two types of connections: point-to-point and multipoint.
• Point-to-point
- there is a dedicated link between two devices.
- entire capacity of the link is reserved for transmission between
those two devices.
- connection can be a physical wire or cable or a microwave or a
satellite link
14
Networks
• Multipoint
- also called multidrop
- more than two specific devices share a single link
- capacity of the channel is shared, either spatially or temporally.
- if several devices can use the link simultaneously –
spatially shared connection
- if users must take turns – time shared connection
15
Networks:Topologies
Topology
• Refers to the way in which a network is laid out physically.
16
Fig. A fully connected mesh topology
17
Topology
Mesh
- every device has a dedicated point-to-point link to every other device.
- to have a mesh network with n nodes, n(n-1)/2 physical links are
needed.
- to accommodate that many links, every device on the network must
have n-1 input/output (I/O) ports
- Advantages:
1. use of dedicated links eliminate traffic problems
2. robust
3. there is the advantage of privacy or security.
4. fault identification and fault isolation easy
- Disadvantages:
1. installation and reconnection are difficult.
2. the sheer bulk of the wiring can be greater than the available space
3. hardware required to connect each link is prohibitively expensive
- limitedly used 18
Star Topology
19
Topology
Star
- every device has a dedicated point-to-point link only to a central
controller, usually called a hub.
- devices are not directly linked to one another.
- does not allow direct traffic between devices.
- the controller acts as an exchange: If one device wants to send data to
another, it sends data to the controller, which then relays the data to the other
connected device.
20
Star
-Advantages:
1. less expensive than mesh, each device needs only one link and one I/O
port to connect it to any number of others.
4. robustness
- Disadvantages:
- used in LANs
21
Bus Topology
22
Bus
- It is multipoint
- one long cable acts as a backbone to link all the devices in a network
- Nodes are connected to the bus cable by drop lines and taps.
- a drop line is a connection running between the device and the main cable
into heat.
- therefore, the signal becomes weaker and weaker as it travels farther and
farther.
- for this reason there is a limit on the number of taps a bus can support and
- Advantages:
1. ease of installation
- Disadvantages:
25
Ring
- each device has a dedicated point-to-point connection with only the two
- a signal is passed along the ring in one direction, from device to device,
- when a device receives a signal intended for another device, its repeater
26
Ring
- Advantages:
- Disadvantages:
1. unidirectional traffic
27
Hybrid Topology
28
Networks
Categories of Networks
- a network is a group of connected communicating devices such as
computers or printers etc.
31
WAN
• provides long-distance transmission of data, image, audio and video
information over large geographic areas that may comprise a country, a
continent, or even the whole world.
• a WAN can be as complex as the backbones that connect the Internet or as
simple as a dial-up line that connects a home computer to the Internet
• normally refer to the first as a switched WAN and to the second as a point-to-
point WAN
32
33
WAN
• Swithced WAN connects the end systems, through a router to another LAN
or WAN.
• point-to-point WAN is normally a line leased from a telephone or cable TV
provider that connects a home computer or a small LAN to an Internet
Service Provider (ISP).
• Wireless WAN is becoming more and more popular today.
34
MAN
• covers the area inside a
town or a city.
• designed for customers
who need a high- speed
connectivity, and have
end-points spread over a
city or part of city.
Fig. a MAN
35
PAN
• A personal area network is a network concerned with the exchange of
information in the vicinity of a person.
• A personal area network (PAN) connects electronic devices within a
user's immediate area.
• The size of a PAN ranges from a few centimeters to a few meters (10m).
• Typically, these systems are wireless and involve the transmission of data
between devices such as smart phones, personal computers, tablet etc. One
of the most common real-world examples of a PAN is the connection
between a Bluetooth earpiece and a smartphone, computers, etc.
36
• Wired PAN is connected through • Wireless Personal Area Network
cables/wires such as Firewire or (WPAN) is connected through
USB (Universal Serial Bus). signals such as infrared, ZigBee,
Bluetooth and ultra wideband
etc.
37
internet
Interconnection of Networks: internetwork
internetwork, or internet.
38
Internet
The Internet
- the most notable internet is called the Internet, a collaboration of more than
hundreds of thousands of interconnected networks
39
Internet
- millions of people are users.
History
- this extraordinary communication system came into being in 1969.
40
Internet
- In 1969, ARPANET came to reality. Software called the Network Control
Protocol (NCP) provided communication between the hosts.
- In 1972, NCP had been given a new name Transmission Control Protocol
(TCP) that achieves end-to-end delivery of packets and includes the concepts
such as encapsulation, datagram and the functions of a gateway.
41
Internet
The Internet Today
- today, Internet is not a simple hierarchical structure
- today most end users who want Internet connection use the services of
Internet Service Providers (ISPs).
42
- The Internet today is run by private companies, not the government.
Internet Today
• ISP (Internet service providers)
• NISP (national ISP)
• NAP (network access point)
43
Internet
International Internet Service Providers
- at the top of the hierarchy are the international service providers that
connect nations together.
- some national ISP networks are also connected to one another by private
switching stations called peering points (normally operate at a high data
rate upto 600Mbps.
44
Internet
Regional Internet Service Providers
- these are smaller ISPs that are connected to one or more national ISPs.
- they are at the third level of the hierarchy with a smaller data rate.
47
Protocols and Standards
De facto
- meaning “by fact” or “by convention”
- these are the standards that have not been approved by an organized
body but have been adopted as standards through widespread use.
De jure
- meaning “by law” or “by regulation”
48
Standards Organizations
– Forums
49
Standards Creation Committees
• ISO (International Organization for Standardization)
• Regulatory Agencies
51
Internet Standards
• An Internet standard is a thoroughly tested specification that is useful to and
adhered to by those who work with the Internet
• There is a strict procedure by which a specification attains Internet standard status.
• Internet Draft
Software consists of instruction sets that make possible the services that
we expect from a network.
• Computer networks are created by different entities.
53
Network Models – Layered Tasks
55
OSI Model
• ISO is the organization. OSI is the model
56
OSI Model
- Each layer defines a family of functions distinct from those of the other
layers.
another machine.
58
Network Models – OSI Model
- At the physical layer, communication is direct.
- Each layer in the sending device adds its own information to the
message it receives from the layer just above it and passes the whole
each process receiving and removing the data meant for it.
- Each interface defines the information and services a layer must provide
60
An exchange using the OSI model
• The data portion of a packet at level N – 1 carries the whole packet from
level N. The concept is called encapsulation; level N-1 is not aware of which
part of the encapsulated packet is data and which part is the header or trailer.
• Encapsulation with header and possibly trailer
61
Physical Layer
• Coordinates the functions required to carry a bit stream over a physical medium.
• Deals with mechanical and electrical specification, the procedures and functions
62
Physical Layer: Duties
• Representation of bits
• Data rate
• Synchronization of bits
• Line configuration
• Physical topology
• Transmission mode
63
Data Link Layer
• The data link layer is responsible for moving frames from one hop (node)
to the next
• Transform the physical layer to a reliable (error-free) link
64
Data Link Layer: Duties
• Framing
• Physical addressing
• Flow control
• Error control
• Access control
65
Hop-to-Hop Delivery
2-66 66
Network Layer
• The network layer is responsible for the delivery of packets
from the source host to the destination host
67
Network Layer: Duties
• Logical addressing and routing
2-68 68
Transport Layer
• The transport layer is responsible for delivery of a message from one
process to another
69
Transport Layer: Duties
• Connection control
• Flow control
• Error control
70
Reliable Process-to-Process Delivery of a
Message
71
Session Layer
• Session layer is responsible for dialog control and
synchronization
72
Presentation Layer
• Presentation layer is responsible for translation, compression, and
encryption
73
Application Layer
• Application layer is responsible for providing services to the user
74
Application Layer: Services
• Mail services
• Directory services
75
Summary of Layers
76
TCP/IP and OSI Model
77
TCP/IP Protocol Suite
• Host-to-network : Physical and data link layer
– No specific protocol
• Network layer
79
Relationship of Layers and
Addresses
80
Physical Address
07:01:02:01:2C:4B
A 6-byte (12 hexadecimal digits) physical address.
81
Logical (IP) Address
• The physical addresses will change from hop to hop, but the logical addresses
82
usually remain the same
Port Address
• The physical addresses change from hop to hop, but the logical and port
addresses usually remain the same.
83
Specific Address
• Some application have user-friendly addresses that are designed for
that specific address
• Example 1: e-mail address: kchung@kw.ac.kr
84
Introduction
Transmission media are actually located below the physical
layer and are directly controlled by the physical layer.
We can say that transmission media belong to layer zero.
85
• A transmission medium can be broadly defined as anything that can carry
information from a source to a destination.
• In data communications, transmission media can be divided into two broad
categories:
86
Guided Media
• It provides a physical channel from one device to another.
• Twisted pair and co-axial 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.
Images of cables
87
Guided Media - TPC
A twisted pair consists of two conductors, 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 ground reference.
The receiver uses the difference between the two.
In addition to the signal sent by the sender on one of the wires, interference
(noise) and crosstalk may affect both wires and create unwanted signals.
Twisting makes it probable that both wires are equally affected by external
influences (noise or cross talk).
The number of twists per unit of length (e.g., inch ) has some effect on the
quality of the cable.
89
Categories of UTP Cables
The Electronic Industries Association (EIA) has developed standards to classify
UTP cable into seven categories.
Categories are determined by cable quality, with 1 as the lowest and 7 as the
highest.
Category Data Rate Use
(Mbps)
1 < 0.1 Telephone
2 2 T-1 lines
3 10 LANs
4 20 LANs
5 100 LANs
5E 125 LANs
6 200 LANs
7 600 LANs 90
UTP Connector
• RJ45 (RJ stands for registered jack) – most commonly used
91
Coaxial Cable
• Carries signals of higher frequency ranges than those in twisted-pair cable.
• 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.
• This outer conductor is also enclosed in an insulating sheath, and the whole cable
is protected by a plastic cover.
• Outer metallic wrapping serves both as a shield against noise and as the second
conductor.
92
Coaxial Cable Standards
• Coaxial cables are categorized by their radio government (RG) ratings.
• Each RG no. denotes a unique set of physical specifications, including the
wire gauge of the inner conductor, the thickness and type of the inner
insulator, the construction of the shield, and the size and type of the outer
casing.
93
Coaxial Cable Connectors
• To connect coaxial cable to devices, we need coaxial connectors.
• BNC connector is used to connect the end of the cable to a device, such as a
TV set.
• BNC T connector is used in Ethernet networks.
• BNC terminator is used at the end of the cable to prevent the reflection of the
signal.
94
Images of RJ and BNC Connectors
BNC Connector
95
Fiber-Optic Cable – Working principle
• It is made of glass or plastic
96
• Angle of Incidence(I): the angle the ray makes with the line perpendicular to
the interface between the two substances.
• If I < critical angle, the ray refracts and moves away from the interface.
If I > critical angle, the ray reflects and travels again in the denser substance.
Optical Fiber 98
Fiber-Optic Cable – Modes of operation
• Current technology supports two modes for propagating light along optical
channels, each requiring fiber with different physical characteristics.
Propagation
Modes 99
Multimode
• Multiple beams from a light source move through the core in different paths.
• In multimode step-index fiber, the density of the core remains constant from
the center to the edges.
• At the interface, there is an abrupt change due to a lower density; this alters the
angle of the beam’s motion.
• The term step index refers to the suddenness of this change, which distorts
the signal as it passes through the fiber.
• The multimode graded-index fiber decreases this distortion.
• A graded-index fiber is one with varying densities, highest at the center of the
core and decreases gradually to its lowest at the edge.
100
Singlemode
• Single-mode uses step-index fiber and a highly focused source of light.
• Single-mode fiber has a much smaller diameter than that of multimode fiber,
and low density.
• The decrease in density results in a critical angle that is close enough to 90 0 to
make the propagation of beams almost horizontal.
• In this case, propagation of different beams is almost identical, delays are
negligible. All the beams arrive at the destination “together” and can be
recombined with little distortion to the signal.
101
Modes
102
Fiber Types
• Optical fibers are defined by the ratio of the diameter of their core to the
diameter of their cladding, both expressed in µm.
103
Fiber Construction
• Outer jacket is made of either PVC or Teflon.
• The fiber is at the center of the cable, and it consists of cladding and core.
104
Fiber-optic Cable Connectors
• SC (subscriber channel) connector used for cable TV. It uses push/pull
locking system.
• ST (straight-tip) connector used for connecting cable to networking devices.
It uses a reliable bayonet locking system.
• MT-RJ is the same size as RJ45
105
Advantages/Disadvantages of Optical Fiber
• Advantages
Applications:
– Higher bandwidth
Often found in backbone
– Less signal attenuation
networks because its wide
– Immunity to electromagnetic interference bandwidth is cost-effective.
– Resistance to corrosive materials - Cable TV
– Light weight
- LAN etc.
– Greater immunity to tapping
• Disadvantages
– Installation and maintenance
– Cost 106
Summary
Twisted Pair Cable Coaxial Cable Fiber Optic Cable
Two conductors, each A central copper conductor of solid or Outer jacket is made of
with stranded wire enclosed in an insulating either PVC or Teflon, inside
It’s own plastic sheath, which in turn, encased in an outer of this Kevlar strands,
insulation, conductor of metal foil, braid, or a below to it another plastic
twisted together combination of the two. This outer coating, inside of this the
conductor is enclosed in an insulating fiber consisting of both core
sheath, and the whole cable is protected by a and cladding
plastic cover
Two types are available: Multimode step-index,
UTP, STP multimode graded index,
single mode step-index
1 to 5, 5E, 6 and 7 RG-59, RG-58, RG-11
categories are available
supporting increasing
data rates
RJ45 connectors BNC connector, BNC T connector and BNC SC, ST and MT-RJ
terminator connectors
Used for Telephones, T1 Used for Telephones(600Mbps), Cable TV, Used for Cable TV and
lines, LANs (upto Thin and Thick Ethernet(10Mbps) LANs(1000Mbps); can go
600Mbps) for 1600Gbps 107
Unguided Media: Wireless
• Transport signals without using a physical conductor.
• Signals are sent through air and thus are available to anyone who has a
device capable of receiving them.
• Fig. shows a part of the electromagnetic spectrum, used for wireless
communication.
108
Frequency Bands
109
Propagation of Waves
• Unguided signals can travel from the source to destination in several ways:
ground propagation, sky propagation, and line-of-sight propagation.
• Ground propagation:
- low-frequency signals
110
• Sky propagation:
111
Propagation Methods
112
Wireless Transmission Waves
113
Radio wave
• Radio waves are used for broadcast communications, such as radio,
television, cordless phones, paging systems etc.
• For radio waves, the sending and receiving antennas do not have to be
aligned.
• Radio waves are omni-directional.
• Radio waves use omni-directional antennas that send signals in all directions.
114
Microwave
• Microwaves are used for unicast communication such as cellular telephones,
satellite networks, and wireless LANs.
• Microwaves are unidirectional.
115
Omnidirectional & Unidirectional
Antennas
116
Infrared
• Infrared waves with frequencies from 300 GHz to 400 THz for short-range
communication in a closed area using line-of-sight propagation
• Having high frequencies, it cannot penetrate through walls
117
118