CN-I Topologies, Models Part 1 2016 Batch 4-1 ECEpdf
CN-I Topologies, Models Part 1 2016 Batch 4-1 ECEpdf
UNIT-1
1
UNIT I
Introduction: OSI, TCP/IP and other Networks models,
Examples of Networks: Novell Networks, Arpanet,
Internet, Network Topologies WAN, LAN, MAN
Physical Layer: Transmission media, magnetic media,
twisted pair, coaxial cable, fiber optics, wireless
transmissions.
UNIT II
Data link layer: Design issues in data link layer: Logical
Link layer, Logical Link control,framing, flow control,
Protocol-stop and wait, Sliding, Error detection and
correction, CRC, HDLC, ATM.
2
UNIT III
Medium Access sub layer: ALOHA, MAC addresses,
carrier sense multiple access, ISDN, IEEE 802 X, Standard
Ethernet, Wireless LANS, Bridges.
UNIT IV
Network Layer: Virtual circuit and Datagram subnets-
Routing algorithm: Shortest path routing, Flooding,
Hierarchical routing, Broad cast, Multi cast, distance vector
routing
3
UNIT V
Congestion Control and Algorithm: General Principles of
Congestion, Congestion Prevention Policies.
Internetworking: The Network layer in the Internet and in the ATM
Networks.
UNIT VI
Transport Layer: Transport Services, Connection management,
TCP and UDP protocols; ATM AAM Protocol layer.
Application Layer: Network Threats, confidentiality, authenticity,
DES and RSA algorithms.
Domain name system, Electronic Mail, WWW, Multimedia.
4
Computer Networks Text books
TEXT BOOKS :
1. Computer Networks — Andrew S Tanenbaum,4th Edition.
Pearson Education/PHI
2. Data Communications and Networking – Behrouz A.
Forouzan. Third Edition TMH.
REFERENCES:
1. An Engineering Approach to Computer Networks-
S.Keshav,2nd Edition, Pearson Education
2.Understanding communications and Networks,3rd Edition,
W.A.Shay,
5
INTRODUCTION:
Communication: Sharing Information
This sharing can be Local or Remote
Local Communication occurs face to face
Remote communication takes place over a distance
Communication System has Five Components:
Rule1:
Rule1: Rule 2:
Rule 2: ….
…. Rule n:
Rule n:
Message
Sender Receiver
Medium
6
INTRODUCTION:
Message: The Message is the information to be
communicated
Information includes text,numbers,pictures,audio
and video
Sender: The Sender is the Device that sends the
data message
It can be a computer ,workstation, telephone.
Receiver: The Receiver is the Device that
Receives the data message
It can be a computer ,workstation, telephone.
7
Introduction:
8
Transmission Media:
Data Flow: Communication between two devices can be
Simplex, Half-duplex or Full-duplex.
Keyboard monitor
9
Transmission Media:
Half-Duplex: Each station can both transmit and receive but
not at the same time
when one device is sending ,the other can only receive, and
vice versa.
station station
Direction of data at time 2
10
Transmission Media:
Full –Duplex: Both Stations can transmit and receive
simultaneously.
Example: The Telephone Network
When two people are communicating by a telephone line,
both can talk and listen at the same time.
station station
11
Physical Structures:
A Network is two or more devices connected through links
A link is a communication path way that transfers data from
one device to another
There are two possible types of connections:
point–to–point
multipoint
12
Physical Structures:
point–to–point:
Link
station station
Multipoint:
station station
server
station
13
Types of Networks
2 Types of Networks:
Peer- to – Peer Networks
Client-server Networks
14
Topology:
Two or more devices connected to a link
Two or more links form a topology
Categories of Topology:
Topology
15
Mesh Topology
Every device has a dedicated point-to-point link to every
other device.
The term dedicated means that the link carries traffic only
between two devices it connects.
16
Mesh Topology
Advantages:
Dedicated link guarantees that each connection can
carry its own data load, eliminating traffic
problems.
security: When every message travels along a
Bulk of wiring.
17
Star Topology:
18
Star Topology:
Disadvantages:
The dependency of the whole topology on one single point,
the hub. If the Hub goes down the whole system is dead.
19
Bus Topology:
A Bus Topology is multipoint. One long cable acts as a
backbone to link all the devices in a network
20
Bus Topology:
Advantages:
Ease of installation.
Less cabling than mesh or star topologies.
Disadvantages:
A bus is usually designed to be optimally efficient at
installation ,then it is difficult to add new devices.
A fault or break in the bus cable stops all transmission ,even
between devices on the same side of the problem.
21
Ring Topology:
22
Ring Topology
Advantages:
Easy to install and reconfigure
Easy to add or delete a device
Disadvantage:
Unidirectional traffic
23
Network hardware
Transmission technology
Broadcast networks:
Have a single communication channel that is shared by all the
machines on the network.
Smaller networks.
Point-to-Point networks:
Consists of many connections between individual pairs of machines.
Routing algorithms play an important role.
Larger networks.
24
Network Hardware
25
LAN (Local Area Networks)
LANs, are privately-owned networks within a single building or campus of
up to a few miles in size.
To connect personal computers and workstations in company offices and
factories to share resources (e.g. printers) and exchange information.
LANs are distinguished from other kinds of networks by three
characteristics: 1) their size, 2) their transmission technology, and 3) their
topology.
Restricted in size
Use a transmission technology consisting of a single cable to which all the
machines are attached, like the telephone company party lines once used in
rural areas.
Traditional LANs run at speeds of 10 to 100 Mbps, have low delay (tens of
microseconds), and make very few errors.
26
Local Area Networks
27
LAN (Local Area Networks)
28
Metropolitan Area Networks:
It is a bigger version of LAN
Ex: Local Cable Television Network.
It supports 802.6( IEEE standard) called DQDB
(Distributed Queue Dual Bus)
DQDB consists of two unidirectional buses(cables) to
which all computers are connected.
A metropolitan area network (MAN) is a network that
interconnects users with computer resources in a geographic
area or region larger than that covered by even a large local
area network (LAN) but smaller than the area covered by a
wide area network (WAN).
city-10km
29
Metropolitan Area Networks
30
Wide Area Network
Network spread geographically ( country or across
globe) is called WAN.
WAN contain hosts these are connected by a
communication subnet.
The job of the subnet is to carry messages from host to
host.
Ex: The telephone system carries words from speaker
to listener.
Relation between hosts and the subnet
Country : 100 km and 1,000 km
31
Definition of Router and Subnet
33
Definition of Switch, Hub & Host
Switch: In networks, a device that filters and
forwards packets between LAN segments. Switches operate at the
data link layer (layer 2) and sometimes the network layer (layer 3) of
the OSI Reference Model and therefore support any packet protocol.
LANs that use switches to join segments are called switched LANs
or, in the case of Ethernet networks, switched Ethernet LANs.
36
Internetworks: 10,000km
Internetworks
A collection of interconnected networks is called an
internetwork or internet.
37
Point-to-Point Topologies
39
Network Software: Protocol Hierarchies
40
Data Transfer
•No data is transferred directly from one machine to
another on that layer – the layers can only talk to the
ones above or below them on their host.
41
Network Architecture
42
Protocol Hierarchies (2)
43
Layered Architecture (Review 1/2)
44
Review (2/2)
45
Services to Protocols Relationship
The relationship between a service and a protocol.
46
Services to Protocols Relationship
A service is a set of primitives that a layer provides to the layer
above it.
A service relates to an interface between two layers, with the
lower layer being the service provider and the upper layer
being the service user.
Service only defines what operations the layer can be
performed, it doesn’t say how operations are implemented.
A protocol is a set of rules that governing the format and
meaning of the frames, packets, or messages that are
exchanged by the peer entities within a layer.
Protocols are packets sent between peer entities on different
machines.
Implementation of the service is not visible to the user of the service. 47
The OSI Reference Model
48
The OSI Reference Model
Principles
A layer should be created where a different level of abstraction is needed.
Each layer should perform a well defined function.
The function of each layer should be chosen with an eye toward defining
internationally standardized protocols.
The layer boundaries should be chosen to minimize the information flow
across the interfaces.
The number of layers should be large enough that distinct functions need
not be thrown together in the same layer out of necessity, and small enough
that the architecture does not become unwieldy.
49
Reference Models
The OSI
reference
model.
50
Physical layer:
It helps in the transmission of data between two machines that
are communicating through a physical medium.
Makes sure that when one side sends a 1 bit ,the other side
receives it as a 1.
51
Physical layer:
53
Data link layer-Hop by Hop
54
Data link layer
55
Data link layer
56
Network Layer
58
Differences between Lower and Upper Layers
59
Transport Layer
Basic function is to accept data from above layers
and split up into small units , then pass these to the
Network layer and see that all arrive in the same
order at the other end.
It also determines what type of service to be
provided to the session Layer.
Port number (addressing)
Segmentation(Data split into smaller unit)
Flow and Error control
End-to-End delivery (across networks)
60
Transport Layer
61
Transport Layer
62
Session Layer:
Session layer establishes, manages, and ends the connections or
sessions b/w the applications on the communicating computers.
For ex: Web conf application has to maintain separate sessions
for each user participating in the conference . The server runs
one conference application , but tracks each session individually.
It offers Dialogue control ( keeping track of whose turn it is to
transmit), Token management ( preventing two parties from
attempting the same critical operation at the same time).
Synchronization :Session introduces checkpoints at various
places so that in case the connection is broken , it re-establishes
the connection and data transformation continued to the
database.
It ensures that the data transfer starts from where it breaks.
63
Session Layer:
64
Presentation Layer:
It is concerned with the syntax and semantics of the information
transmitted (i.e. Data compression and cryptography is frequently required
for privacy and authentication).
Encoding data in a standard, agreed upon way. Most user programs do not
exchange binary bits strings, they exchange things such as people's names,
dates, amounts of money, and invoices. These items are represented as
character strings, integers, floating point numbers, and data structures
composed of several simpler items.
65
Presentation Layer
66
Application layer:
It provides network services to the user's applications (i. e.
spreadsheet programs, word processing programs and drawing
programs).
Closest to user.
Provide services to applications outside the OSI model. It does
not provide services to any other OSI layer
It adds all higher level protocols to given message
HTTP: Hypertext Transfer Protocol
SMTP: Simple mail transfer protocol
FTP: File Transfer Protocol
POP: post office protocol
Simplified: Browsers
67
OSI REFERENCE MODEL
Message APDU
Application
Presentation Header
Data PPDU
Session Header
Data SPDU
TPDU
Transport Header
Data
Network Header
Data Packet
68
Summary:
What is a mnemonic device to help remember the OSI model 7
layers?
All People Seem To Need Data Processing
69
Tcp / IP Reference model:
OSI TCP / IP
Application (Layer7)
Session (Layer 5)
70
Tcp / IP Reference model:
Application Layer:
This layer contains all of the higher-level protocols
TELNET (Virtual Terminal) – It allows a user on one
machine to log into distinct machine and work there.
DNS service must translate the name into the
corresponding
IP address…..Ex: www.example.com(198.105.232.4)
Mapping host name onto this network address
FTP
SMTP
POP
HTTP
71
Transport Layer
Just like the OSI transport layer.
There are two protocols defined for this:
TCP (Transmission Control Protocol)
reliable, connection-oriented
UDP (User Datagram Protocol)
unreliable, connectionless
73
Transport Layer:ACK
74
Tcp / IP Reference model:
Internet Layer
Routes data between hosts
Connectionless
Every packet routed independently
75
Packet switching and circuit switching:
Packet switching :
Messages are divided into packets before they are sent
Each packet is then transmitted individually and can even
follow different routes to its destination.
Once all the packets forming a message arrive at the
destination, they are recompiled into the original message.
Circuit switching:
It is normal telephone service, is based on a circuit-
switching technology, in which a dedicated line is allocated
for transmission between two parties.
Circuit-switching is ideal when data must be transmitted
quickly and must arrive in the same order in which it's sent.
This is the case with most real-time data, such as live audio
and video.
76
Tcp / IP Reference model:
Host-to-Network Layer
Host has to connect to the network using some
protocol to send IP packets to it.
Varies from host to host and network to network.
Packaged in frames
Has a Frame header that includes address and control
information
Has a frame trailer that is used for error detection.
Access the communication network
77
Protocols and networks in the TCP/IP model initially
78
TCP/IP Model overview
79
TCP/IP Model overview
80
The differences between the TCP/IP and
OSI models.
OSI model clearly defined the distinction between services,
interfaces and protocols, where the TCP/IP model does not.
This fits in nicely with OO programming concepts as the layer hide
information.
Protocols can easily be replaced in the OSI model, but not in the
TCP/IP model.
OSI reference model was devised before the protocols were invented.
With the TCP/IP the reverse was true the protocols came first, and the
model was really just a description of the existing protocols.
81
The Differences (cont’d)
The OSI model has no biases for protocols, but the OSI
model was overly general and did not help with the creation
of new protocols.
OSI model has seven layers and the TCP/IP has four layers.
OSI supports connectionless and connection-oriented in the
network layer, but TCP/IP supports only connectionless in
the network layer.
OSI supports only connection-oriented in the transport
layer, but TCP/IP supports both in the transport layer, giving
user a choice.
82
Novell Netware:
• The most popular network system in the pc world.
• Novell Netware is based on the client-server model
• Novell Network also looks like TCP/IP reference model.