Computer Communication EC 407
Computer Communication EC 407
EC 407
1
Syllabus
2
Syllabus
3
Syllabus
4
Syllabus
5
References
6
UNIT 1
7
Social Network
In social science, a social relation or social interaction refers to a
relationship between two , three or more individuals (e.g. a
social group).
9
Social Network
To protect user privacy, social networks usually have controls
that allow users to choose who can view their profile, contact
them, add them to their list of contacts, and so on.
10
Pictorial Representation of Social
Networks
Simple
Complex
11
Aim for Networking
12
Fundamental Concepts
Communication
Means Sharing of information.
Sharing may be
Local
Transmits information locally
Remote
Sending information to remote places.
Data
Information is called data.
Data communication
Sharing of information between two devices
13
FUNDAMENTAL CONCEPTS
Effectiveness of Data Communication Depends on
Delivery
Accuracy
Timeless
14
Data Communication Model
Protocol Protocol
Medium Receiver
Sender
Protocols
15
Transmission Modes
DEE
16
17
Parallel Transmission
18
Serial Transmission
19
Asynchronous Transmission
20
Asynchronous Transmission
21
Synchronous Transmission
22
Synchronous Transmission
Speed is high since there is no addition of start or stop bits and gaps
between bytes and removal of these at the receiving end
23
Isochronous Transmission
24
Other modes of transmission
Unidirectional Simplex
Bidirectional Half Duplex
Full Duplex
25
Mode of Transmission.
Unidirectional (Simplex)
Information is communicated in only one direction.
Examples
One way street
26
Mode of Transmission
Simplex
Sender Receiver
Half Duplex
Sender Receiver
27
Mode of Transmission.
Half duplex
Information is communicated in both direction, but not
simultaneously.
It requires definite turn around time to change from transmitting
mode to receiving mode.
Due to this delay communication is slower .
It can be implemented by two wire. One for Data and other is
ground
Examples
One line traffic in narrow bridges.
Walkie-talkies.
28
Mode of Transmission
Full Duplex
It can perform in two direction at a time
Sender Receiver
It can perform in two direction but not between same two
stations
Receiver Receiver/Sender Sender
Examples
Two way traffic.
Telephone Conversation.
30
Network Components
31
Network Components
1. Physical Media
2. Interconnecting Devices
3. Computers
4. Networking Software
Network Components
Physical media
Physical Media
34
Introduction to Computer Networks
Networking Devices
35
Switching
36
Connecting devices
Switch
HUB
37
Switch
Network consists of a set of inter connected nodes called
switches
38
Switch
Switches can be a valuable asset to networking.
40
Network Switch
41
Switch
Some switches have additional features, including
the ability to route packets.
42
Switch
Cut-through switches only examine the destination
address before forwarding it on to its destination
segment.
43
Switch
44
Switches in a Network
45
Switches in Network
46
Switches in Network
47
Switching
48
Switching
49
Switching
Switching can be classified in to
50
Circuit Switching
51
Circuit Switching
It is a methodology of implementing a telecommunications
network in which two network nodes establish a dedicated
communications channel (circuit).
52
Circuit Switching
Circuit switching is also termed as connection
oriented networks
55
Circuit Switching
56
Circuit Switching
57
Circuit Switching
58
Circuit Switching
Set Up phase
Teardown phase
59
Circuit Switching
60
Circuit Switching
Efficiency is low
Total delay = Delay for connection establishment +
delay for data transfer + delay for teardown
61
Packet Switching
69
Packet Switching
70
Switch
71
Switching
72
Packet Switching
Network layer offer two services
Connectionless service
73
1. Data gram Network
Routes from source to destination are not worked out in
advance.
74
Data grams
A 4 3 2 1 Y
1
1
3 3 1
3
4
4
3 1
2 4
4
2
2 2 4 3 1
B 4 X
75
2. Virtual Circuit
76
i. Switched Virtual Circuit (SVC)
77
Switched Virtual Circuit (SVC)
A Y
B X
78
ii. Permanent Virtual Circuit (PVC)
79
Permanent Virtual Circuit
A Y
B X
80
Data gram Vs Virtual circuit Network
Parameter VC Datagram
81
Computer Networks
82
Computer network
In its simplest form, networking is defined as two computers
being linked together, either physically through a cable or
through a wireless device.
83
What is a Computer network
84 06/25/20
An example of a network
Router
Hub
Bridge Segment Node
Hub
Internet
85
Network Goals
D86
Networks Fundamentals
Network Goals or aims
1.Resource sharing.
3.Data Sharing.
4.Network security
87
Network Criteria
88
Networks Fundamentals
Network Issues/Criteria
89
Network Issues/Criteria
Response Time
90
Network Issues/Criteria
II. Reliability
91
Network Issues/Criteria
Un authorized access
It has two levels
Lower level------Improper/Week password
Higher level------Encryption techniques
92
Network Functions
93
Network Functions
Addressing--- Identify sender and receiver
Congestion control
Security
Failure monitoring
Traffic Monitoring
Network Management
94
Network Connections
95
Types Of Connections
1. POINT-TO-POINT
Provides a direct link between two devices.
Eg. Each computer is connected directly to a
printer .
2. MULTI-POINT/MULTI DROP
Provides a link between three or more devices on a
network.
It will share the link/Channel capacity
96
Types Of Connections
Multi point
It is two types
Time sharing
Sharing the link turn by turn
Spatially shared
Sharing of link simultaneously
97
Types Of Connections
98
Physical Structure-Network
Topology
100
Topology
A network topology is the basic design of a computer
network.
102
Network Topology
Network topology can be classified in to
BUS
STAR
MESH
TREE
RING
HYBRID
104
Bus Topology
105
Bus Topology
Tap Tap
Tap
106
Bus Topology
The simplest and one of the most common of all topologies
107
Bus Topology
Most Local Area Networks (LANs) are Bus Networks
because the network will continue to function even if one
computer is down.
Installation is easy
Less cabling is required
Reconnection and fault isolation is difficult
If backbone fails, it affect entire network
108
Star Topology
109
Star Topology
All devices are connected with a Star setup
communicate through a central Hub by cable segments.
Not directly connected as in mesh
Each device needs only one link and one I/O port to
connect it to any number of others
Signals are transmitted and received through the Hub.
It is the simplest and the oldest and all the telephone
switches are based on this.
In a star topology, each device has separate connection
to the network.
110
Star Topology
111 06/25/20
Star Topology
113
Mesh Topology
114 06/25/20
Mesh Topology
Advantages
Traffic is less since each link carries data from two nodes
Security or privacy is high since only the intended recipient
sees the data.
Fault identification is very easy
Robust- If one link fails, all others are unaffected.
Disadvantages
Cabling and number of I/O ports required is very high
Wiring spans large area
Since every device is connected to every other device,
installation and reconnection are difficult
Hardware required to connect each link(I/O ports and cable)
can be expensive.
115 06/25/20
Mesh Topology
116 06/25/20
Ring Topology
117
Ring Topology
All the nodes in a Ring Network are connected in a closed
circle of cable.
Each device is directly connected to two devices in either
side
Messages that are transmitted travel around the ring until they
reach the computer that they are addressed to, the signal
being refreshed by each node.
118
Ring Topology
Each device processes and retransmits the signal, so it is
capable of supporting many devices in a somewhat slow but
very orderly fashion.
Important feature is that everybody gets a chance to send a
packet and it is guaranteed that every node gets to send a
packet in a finite amount of time.
To add or delete a device, requires changing only two
connections
Fault isolation is simplified. If one device does not receive
a signal with in a specified period, it can issue an alarm.
The alarm alerts the network operator , the problem and
location
Unidirectional traffic can be disadvantage
A break in the ring disable the entire network
119
Ring Topology
120 06/25/20
Ring Topology
121 06/25/20
Ring Topology
122 06/25/20
Tree Topology
123
Tree Topology
124 06/25/20
Tree Topology
125 06/25/20
Hybrid Topology
126
Hybrid Topology
127 06/25/20
Hybrid Topology
128 06/25/20
Network Classification
according to scaling
129
Main Categories of networks
130
Main Categories of Network
131
Network Scaling
132
Network Scaling
Inter processor Processors are located networks
distance in
133
PAN
134
Personal Area Networks (PAN)
• A PAN is a network that is used for communicating
among computers and computer devices (including
telephones) in close proximity of around a few meters
within a room.
• It can be used for communicating between the devices
themselves, or for connecting to a larger network such
as the internet.
• PAN’s can be
• Wired
• Wireless
135 06/25/20
Personal Area Networks (PAN)
136 06/25/20
Personal Area Networks (PAN)
PAN’s can be wired with a computer bus such as a universal
serial bus
USB (a serial bus standard for connecting devices to a
137 06/25/20
Personal Area Networks (PAN)
• Wireless PAN
138 06/25/20
Personal Area Networks (PAN)
• Wireless PAN
139 06/25/20
LAN
140
Local area networks (LAN)
141 06/25/20
Local area networks (LAN)
142
Local area networks (LAN)
Different types:
Peer-to-peer
Client-server
143
Local area networks (LAN)
144
Introduction to Computer Networks
145
MAN
146
Metropolitan area network
A metropolitan area network (MAN) is a computer network
in which two or more computers or communicating devices
or networks which are geographically separated but in same
metropolitan city.
147
MAN
148
Metropolitan area network
Network in a City is call MAN
150
MAN
151
WAN
152
Wide area network (WAN)
153
WAN
154
WAN
155
Types of WANs
Internet Public Data Network (PDN)
Backbone providers charge fees for-profit data
to Internet Service Providers (ISP) communications network
ISPs sell subscriptions to users Fees paid on a per-byte-
transferred basis
Not secure
Good security
Not ideal for businesses
High bandwidth
Private Data Network
Used by corporations, banks and governments
157
Layered Architecture
161
A simple example for communication
162
simple example for communication
164
simple example for communication
Sorting the letter at the post office (ROUTING)
I. Postman collects the letter from post office to the mail box
(Transmitting data bits)
II. Letter was taken from mail box to Home (Removing
header3& Trailer)
III. Open the cover& signature (Removes Header2)
IV. Take the letter from the cover (Removing Header1)
V. Reading letter ( Raw Data)
165
Network architecture
Network architecture is the overall design of a
network
169
Network Models
171
Need for Network Models
• Network communication is an extremely
complex task.
• Layer architecture simplifies the network
design.
172
Need for Network Models
• A standard model helps to describe the task of a
networking product or service
173
Need for Layered Architecture
174
Who define Network Model?
• Need non-profit making organizations
175
OSI Model
176
OSI Reference Model
177
OSI Model
OSI Reference Model
The OSI model is now considered the primary Architectural
model for inter-computer communications.
178
OSI Model
To standardize the design of communication
system, the ISO created the OSI model
ISO standard that covers all aspects of network
communications is the Open Systems
Interconnection (OSI) model.
179
OSI Model
180
Important
181
OSI Model
Application
Presentation
Session
Transport
Network
Data Link
Physical
182
The OSI 7-layer Model
All
People
Seem
To
Need
Data
Processing
183
Peer-to-Peer Process using OSI
184
Relationship of OSI layers
Virtual
Communication
Physical
Communication
185
Data exchange using the OSI model
186
OSI Model
OSI Model
188 DEEPAK.P
Functions of Physical layer
190
Physical Layer
191
OSI Model – Physical Layer
This layer is the lowest layer in the OSI model.
Hardware Specification:
The details of the physical cables, network interface cards,
wireless radios, etc are a part of this layer.
192
OSI Model – Physical Layer
Physical interface between device and transmission
medium
Representation of bits- Bits must be encoded into
electrical or optical signals
Data rate- Number of bits transmitted per second
Synchronization of bits- Sender and Receiver clocks
must be synchronized
Line configuration- Connection of devices to media
Physical topology
Transmission mode
193
Medium used for Physical
Connections
195
Medium used for Physical Connections
196
Note
197
Functions of Data link layer
198
OSI Model – Data Link Layer
• Means of activating, maintaining and
deactivating a reliable link
199
Functions of Data Link Layer
Framing – converts stream of bits from NL into frames
204
Functions of Network layer
205
OSI Model – Network Layer
• Responsible for source to destination delivery of a packet
• Routing
206
Network Layer
207
Source to Destination delivery
4. Logical Addressing
210
Functions of Transport layer
211
Transport Layer
214
Functions of Transport layer
1. Maintain process to process delivery
2. Service point addressing
3. Segmentation and re assembly –Message is divided into
transmittable segments with each segment containing a sequence
number
4. Connection control
Connection oriented Service
Establish connection
Use the connection
Release the connection
Connection less Service
Packet switching
Each message is routed independently
217
Functions of Session layer
218
OSI Model – Session Layer
219
Functions of Session layer
221
Functions of Presentation
layer
222
OSI Model – Presentation Layer
1. Translation – Data encoding scheme of every
system is different. Presentation layer changes
sender dependent format to common format. PL at
receiver side changes common format to receiver
dependent format
2. Data compression – Important in transmission of
multimedia messages like text, audio and video.
3. Encryption – Privacy
223
OSI Model – Presentation Layer
224
Note
225
Functions of Application layer
226
OSI Model – Application Layer
Application
– Layer where the application using the network
resides.
– Common network applications include
Remote login
File transfer, Acecess and management
e-mail
Directory services
Web page browsing etc.
– Means for applications to access OSI environment
227
OSI Model – Application Layer
228
Note
229
Summary of layers
230
• To identify the language (protocol) of each layer,
identifier (header and trailer) are added to data
231 DEEPAK.P
TCP/IP Model
232
TCP/IP Protocol Suit
TCP/IP suite is the set of protocols that implement the
234
TCP/IP Model
Internetwork
Host to network
235
Variation of TCP/IP
Application
Presentation
Session
Transport
Network
Data Link
Physical
236
OSI vs TCP/IP
OSI TCP/IP
7 Layer 4/5 layer
Transport layer guarantees delivery Transport layer does not guarantees
of packets delivery of packets
238
Network Layer Protocols
Internetworking protocol (IP) and four supporting
protocol
239
IP
IP is a transmission mechanism used by TCP/IP
protocols
241
Transport Layer
UDP (User Datagram Protocol):- Process to process
protocol that adds only port address, checksum error
control and length information to the data from upper
layer. Enables connectionless transfer of message.
TCP (Transmission Control Protocol):-Connection
oriented service. At the sending end, TCP divides
stream of data into smaller segments. Each segments
includes a sequence number for reordering, together
with acknowledgement number for the segments
received
SCTP (Stream Control Transmission Protocol):-
Provides support for newer applications such voice
over the internet. Combines the best features of UDP
and TCP
242
TCP/IP Frames
244
TCP/IP Services
Two kinds of services: TCP & UDP.
TCP—Transmission Control Protocol, reliable
connection oriented transfer of a byte stream.
245