HCM 2014 9/85Protocol Protocol is a set of rules, or an agreement, that determines the format and transmission of data that make communication on a network more efficient... A com
Trang 1OSI AND TCP/IP MODEL
MODULE 2 - NETWORK MODEL
Trang 2MODEL OF COMMUNICATION
Trang 3Khoa CNTT – ĐH Nông Lâm TP HCM 2014 3/85
Analyzing network in layers
What is flowing ?
Data
What is flowing ?
Data
What different forms flow ?
Text, Graphic, Video
What different forms flow ?
Text, Graphic, Video
What rules govern flow ?
Trang 4Khoa CNTT – ĐH Nông Lâm TP HCM 2014 4/85
Trang 5Khoa CNTT – ĐH Nông Lâm TP HCM 2014 5/85
Communication process
Source
Medium Packets
Protocols
Trang 6Khoa CNTT – ĐH Nông Lâm TP HCM 2014 6/85
Trang 7Khoa CNTT – ĐH Nông Lâm TP HCM 2014 7/85
Trang 8Khoa CNTT – ĐH Nông Lâm TP HCM 2014 8/85
Trang 9Khoa CNTT – ĐH Nông Lâm TP HCM 2014 9/85
Protocol
Protocol is a set of rules, or an
agreement, that determines the format
and transmission of data that make
communication on a network more
efficient
Trang 10Khoa CNTT – ĐH Nông Lâm TP HCM 2014 10/85
Protocol examples
In transportation
In communication
In social
Trang 11OSI MODEL
Trang 12Khoa CNTT – ĐH Nông Lâm TP HCM 2014 12/85
Trang 13Khoa CNTT – ĐH Nông Lâm TP HCM 2014 13/85
OSI model development
Researched and developed by the ISO -
International Organization for
Standardizations.
1977: establish a subcommittee to
develop a communications architecture
1984: publish ISO-7498, the Open
System Interconnection (OSI) reference model
Trang 14Khoa CNTT – ĐH Nông Lâm TP HCM 2014 14/85
OSI model
which networking standards can be
developed
It provided vendors with a set of standards that ensured greater compatibility and
interoperability between the various types
of network technologies that were produced
by the many companies around the world
Proprietary vs Open
Trang 15Khoa CNTT – ĐH Nông Lâm TP HCM 2014 15/85
A layered model
The communications functions are
partitioned into a hierarchical set of
layers
Each layer performs a related subset of the functions required to communicate
Each layer relies on the next lower layer
to perform more primitive functions and provides services to the next higher
layer
The OSI Model define a set of layers and
the services performed by each layer
Trang 16Khoa CNTT – ĐH Nông Lâm TP HCM 2014 16/85
Why a layered model?
Reduces complexity
Standardizes interfaces
Facilitates modular engineering
Ensures interoperable technology
Accelerates evolution
Simplifies teaching and learning
Trang 17Khoa CNTT – ĐH Nông Lâm TP HCM 2014 17/85
7 layers of the OSI reference
Trang 18Khoa CNTT – ĐH Nông Lâm TP HCM 2014 18/85
The Seven Layers of the OSI
Model
Trang 19Khoa CNTT – ĐH Nông Lâm TP HCM 2014 19/85
The Seven Layers of the OSI Model
(Cont.)
Trang 20Khoa CNTT – ĐH Nông Lâm TP HCM 2014 20/85
The Seven Layers of the OSI Model
(Cont.)
Trang 21Khoa CNTT – ĐH Nông Lâm TP HCM 2014 21/85
The Seven Layers of the OSI Model
(Cont.)
Trang 22Khoa CNTT – ĐH Nông Lâm TP HCM 2014 22/85
The Seven Layers of the OSI Model
(Cont.)
Trang 23Khoa CNTT – ĐH Nông Lâm TP HCM 2014 23/85
The Seven Layers of the OSI Model
(Cont.)
Trang 24Khoa CNTT – ĐH Nông Lâm TP HCM 2014 24/85
The Seven Layers of the OSI Model
(Cont.)
Trang 25Khoa CNTT – ĐH Nông Lâm TP HCM 2014 25/85
Encapsulation example: Air-mail
Trang 26Khoa CNTT – ĐH Nông Lâm TP HCM 2014 26/85
Encapsulation example: E-mail
Trang 27Khoa CNTT – ĐH Nông Lâm TP HCM 2014 27/85
Encapsulation
Trang 28Khoa CNTT – ĐH Nông Lâm TP HCM 2014 28/85
Layer-to-layer communications
Request services Provide services
Trang 29Khoa CNTT – ĐH Nông Lâm TP HCM 2014 29/85
Peer-to-peer communications
Trang 30Khoa CNTT – ĐH Nông Lâm TP HCM 2014 30/85
Protocols
Is a formal set of rules and conventions
that governs how computers exchange information over a network medium
Implements the functions of one or more
of the OSI layers
A communication protocol is concerned with exchanging data between two peer layers
Protocol Data Units (PDUs) : Block of
data that a protocol exchange
Trang 31TCP/IP MODEL
Trang 32Khoa CNTT – ĐH Nông Lâm TP HCM 2014 32/85
TCP/IP model development
The late-60s The Defense Advance
Research Projects Agency (DARPA)
originally developed Transmission
Control Protocol/Internet Protocol
(TCP/IP) to interconnect various defense department computer networks
The Internet, an International Wide Area Network, uses TCP/IP to connect
networks across the world
Trang 33Khoa CNTT – ĐH Nông Lâm TP HCM 2014 33/85
4 layers of the TCP/IP model
Layer 4: Application
Layer 3: Transport
Layer 2: Internet
Layer 1: Network access
It is important to note that some of the layers in the TCP/IP model have the same
name as layers in the OSI model
Do not confuse the layers of the two models
Trang 34Khoa CNTT – ĐH Nông Lâm TP HCM 2014 34/85
TCP/IP Stack vs the OSI Model
Trang 35Khoa CNTT – ĐH Nông Lâm TP HCM 2014 35/85
The network access layer
Concerned with all of the issues that an
IP packet requires to actually make the physical link All the details in the OSI physical and data link layers
Electrical, mechanical, procedural and
functional specifications.
Data rate, Distances, Physical connector.
Frames, physical addressing.
Synchronization, flow control, error control.
Trang 36Khoa CNTT – ĐH Nông Lâm TP HCM 2014 36/85
The internet layer
Send source packets from any network
on the internetwork and have them
arrive at the destination independent of the path and networks they took to get there
Packets, Logical addressing.
Internet Protocol (IP).
Route , routing table, routing protocol.
Trang 37Khoa CNTT – ĐH Nông Lâm TP HCM 2014 37/85
The transport layer
The transport layer deals with the
quality-of-service issues of reliability,
flow control, and error correction
Segments, data stream, datagram.
Connection oriented and connectionless.
Transmission control protocol (TCP).
User datagram protocol (UDP).
End-to-end flow control.
Error detection and recovery.
Trang 38Khoa CNTT – ĐH Nông Lâm TP HCM 2014 38/85
The application layer
Handles high-level protocols, issues of
representation, encoding, and dialog control.
The TCP/IP combines all application-related
issues into one layer, and assures this data is properly packaged for the next layer
FTP, HTTP, SMNP, DNS
Format of data, data structure, encode …
Dialog control, session management …
Trang 39Khoa CNTT – ĐH Nông Lâm TP HCM 2014 39/85
TCP/IP protocol stack
Trang 40Khoa CNTT – ĐH Nông Lâm TP HCM 2014 40/85
Comparing TCP/IP with OSI
Trang 41Khoa CNTT – ĐH Nông Lâm TP HCM 2014 41/85
Comparing TCP/IP with OSI (cont.) Similarities:
Both have layers
Both have application layers, though they include very different services
Both have comparable transport and network layers
Packet-switched technology is
assumed
Networking professionals need to
know both
Trang 42Khoa CNTT – ĐH Nông Lâm TP HCM 2014 42/85
Comparing TCP/IP with OSI (cont.) Differences:
TCP/IP combines the presentation and session layer issues into its
application layer
TCP/IP combines the OSI data link
and physical layers into one layer
TCP/IP appears simpler because it has fewer layers
Typically networks aren't built on the OSI protocol, even though the OSI
model is used as a guide
Trang 43Khoa CNTT – ĐH Nông Lâm TP HCM 2014 43/85
Focus of the Curriculum
Trang 44Khoa CNTT – ĐH Nông Lâm TP HCM 2014 44/85
Summary of ISO & TCP/IP Model
Trang 45LOCAL AREA NETWORK
Trang 46Khoa CNTT – ĐH Nông Lâm TP HCM 2014 46/85
Are you able to describe this
diagram?
Trang 47Khoa CNTT – ĐH Nông Lâm TP HCM 2014 47/85
Physical & Logical Topologies
Trang 48Khoa CNTT – ĐH Nông Lâm TP HCM 2014 48/85
Mesh
Trang 49Khoa CNTT – ĐH Nông Lâm TP HCM 2014 49/85
Physical Topology: Bus
Trang 50Khoa CNTT – ĐH Nông Lâm TP HCM 2014 50/85
Physical Topology: Ring
No backbone
A host is directly connected to each of its neighbors
Trang 51Khoa CNTT – ĐH Nông Lâm TP HCM 2014 51/85
Physical Topology: Star
All devices connected to a central point
Center of star is usually a hub or a switch
Trang 52Khoa CNTT – ĐH Nông Lâm TP HCM 2014 52/85
Physical Topology: Extended Star
Connects individual star topologies
Trang 53Khoa CNTT – ĐH Nông Lâm TP HCM 2014 53/85
Physical Topology: Hierarchical
Like the extended star except a
computer controls traffic (not a hub or a switch)
Trang 54Khoa CNTT – ĐH Nông Lâm TP HCM 2014 54/85
Physical Topology: Mesh
Each host has its own connection to every other host
Used in situations where communication
must not be interrupted.
Trang 55Khoa CNTT – ĐH Nông Lâm TP HCM 2014 55/85
Logical Topologies
Broadcast
Token Passing
Trang 56Khoa CNTT – ĐH Nông Lâm TP HCM 2014 56/85
Logical Topology: Broadcast
Each host on the LAN sends its data (or broadcasts its data) to every other
host
First-come, first-serve
Trang 57Khoa CNTT – ĐH Nông Lâm TP HCM 2014 57/85
Logical Topology: Token Passing
Access to media is controlled by an
electronic token
Possession of the token gives the host the right to pass data to its destination
Trang 58Khoa CNTT – ĐH Nông Lâm TP HCM 2014 58/85
Technologies
Ethernet
FDDI
Token Ring
Trang 59Khoa CNTT – ĐH Nông Lâm TP HCM 2014 59/85
Technology: Token Ring
Token Ring
Token Passing
Trang 60Khoa CNTT – ĐH Nông Lâm TP HCM 2014 60/85
Technology: FDDI
FDDI
Token Passing
Trang 61Khoa CNTT – ĐH Nông Lâm TP HCM 2014 61/85
Technology: Ethernet
Ethernet
Broadcast
Trang 62Khoa CNTT – ĐH Nông Lâm TP HCM 2014 62/85
Hosts
Printer
NIC
Trang 63Khoa CNTT – ĐH Nông Lâm TP HCM 2014 63/85
LAN Media Symbols
Token Ring
FDDI Ring
Ethernet
Line
Serial Line
Trang 64Khoa CNTT – ĐH Nông Lâm TP HCM 2014 64/85
OSI Review: Layer 1
Responsibility:
Transmission of an unstructured bit
stream over a physical link between
Trang 65Khoa CNTT – ĐH Nông Lâm TP HCM 2014 65/85
LAN Device: Transceiver
Connect different media technologies
Layer 1 device
UTP
BNC
AUI
Trang 66Khoa CNTT – ĐH Nông Lâm TP HCM 2014 66/85
LAN Device: Repeater
Regenerates and repeats the signal
Layer 1 device
Trang 67Khoa CNTT – ĐH Nông Lâm TP HCM 2014 67/85
LAN Device: Hub
A multi-port repeater
Layer 1 device
Trang 68Khoa CNTT – ĐH Nông Lâm TP HCM 2014 68/85
OSI Review: Layer 2
Trang 69Khoa CNTT – ĐH Nông Lâm TP HCM 2014 69/85
LAN Device: NIC
Network interface of hosts
Build-in physical address
Layer 2 device
Trang 70Khoa CNTT – ĐH Nông Lâm TP HCM 2014 70/85
LAN Device: Bridge
Keeps traffic local by filtering traffic
based on physical addresses
Layer 2 device
Trang 71Khoa CNTT – ĐH Nông Lâm TP HCM 2014 71/85
LAN Device: Switch
A multi-port bridge
Layer 2 device
Trang 72Khoa CNTT – ĐH Nông Lâm TP HCM 2014 72/85
OSI Review: Layer 3
Logical address: Hierarchical
Networks and Hosts addressing
Route , Routing table, Routing protocol
“Network”
Trang 73Khoa CNTT – ĐH Nông Lâm TP HCM 2014 73/85
LAN Device: Router
Makes decisions based on network
addresses (logical addresses)
Layer 3 device
Trang 74Khoa CNTT – ĐH Nông Lâm TP HCM 2014 74/85
LAN Device: Router Functions
The router re-encapsulates the
packet in the protocol needed for the specified port and then switches the packet out that port
Trang 75Khoa CNTT – ĐH Nông Lâm TP HCM 2014 75/85
LAN Device: Cloud
Another network
Include layer 1 – 7 devices
Trang 76Khoa CNTT – ĐH Nông Lâm TP HCM 2014 76/85
Devices function at Layers
Trang 77Khoa CNTT – ĐH Nông Lâm TP HCM 2014 77/85
Teaching Topology
Trang 78DATA FLOW THROUGH LANs
Trang 79Khoa CNTT – ĐH Nông Lâm TP HCM 2014 79/85
Air Mail Example
Trang 80Khoa CNTT – ĐH Nông Lâm TP HCM 2014 80/85
Encapsulation
Trang 81Khoa CNTT – ĐH Nông Lâm TP HCM 2014 81/85
Encapsulation: Example
Trang 82Khoa CNTT – ĐH Nông Lâm TP HCM 2014 82/85
Host to host communication
Trang 83Khoa CNTT – ĐH Nông Lâm TP HCM 2014 83/85
Packet Flow: Layer 1 Device
Trang 84Khoa CNTT – ĐH Nông Lâm TP HCM 2014 84/85
Packet Flow: Layer 2 Device
Trang 85Khoa CNTT – ĐH Nông Lâm TP HCM 2014 85/85
Packet Flow: Layer 3 Device
Trang 86Khoa CNTT – ĐH Nông Lâm TP HCM 2014 86/85
Packet Flow: Layer 1-7 Device