Download Network Layer and Path Determination

Document related concepts

Cracking of wireless networks wikipedia , lookup

Computer network wikipedia , lookup

Zero-configuration networking wikipedia , lookup

Deep packet inspection wikipedia , lookup

Network tap wikipedia , lookup

IEEE 1355 wikipedia , lookup

Airborne Networking wikipedia , lookup

Internet protocol suite wikipedia , lookup

Cisco Systems wikipedia , lookup

Recursive InterNetwork Architecture (RINA) wikipedia , lookup

UniPro protocol stack wikipedia , lookup

Transcript
OSI Reference Model
www.cisco.com
© 1999, Cisco Systems, Inc.
Agenda
• The Layered Model
• Layers 1 & 2: Physical &
Data Link Layers
• Layer 3: Network Layer
• Layers 4–7: Transport,
Session, Presentation,
and Application Layers
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-2
The Layered Model
© 1999, Cisco Systems, Inc.
www.cisco.com
© 1999, Cisco Systems, Inc.
Layered Communication
Location A
I like
rabbits
L: Dutch
Ik hou
van
konijnen
Fax #:--L: Dutch
Ik hou
van
konijnen
CSE: Networking Fundamentals—OSI Model
Message
Information
for the
Remote
Translator
Information
for the
Remote
Secretary
Source: Tanenbaum, 1996
www.cisco.com
© 1999, Cisco Systems, Inc.
2-4
Layered Communication
Location B
Location A
I like
rabbits
L: Dutch
Ik hou
van
konijnen
Fax #:--L: Dutch
Ik hou
van
konijnen
CSE: Networking Fundamentals—OSI Model
J’aime
les lapins
Message
Information
for the
Remote
Translator
L: Dutch
Ik hou
van
konijnen
Information
for the
Remote
Secretary
Fax #:--L: Dutch
Ik hou
van
konijnen
www.cisco.com
© 1999, Cisco Systems, Inc.
2-5
Layered Communication
Location A
I like
rabbits
L: Dutch
Ik hou
van
konijnen
Fax #:--L: Dutch
Ik hou
van
konijnen
CSE: Networking Fundamentals—OSI Model
Layers
Message
Information
for the
remote
translator
Information
for the
remote
secretary
Location B
3
J’aime
les lapins
2
L: Dutch
Ik hou
van
konijnen
1
www.cisco.com
Fax #:--L: Dutch
Ik hou
van
konijnen
© 1999, Cisco Systems, Inc.
2-6
Why a Layered Network Model?
7
Application
6
Presentation
5
Session
4
Transport
3
Network
2
Data Link
1
Physical
CSE: Networking Fundamentals—OSI Model
• Reduces complexity (one big
problem to seven smaller
ones)
• Standardizes interfaces
• Facilitates modular
engineering
• Assures interoperable
technology
• Accelerates evolution
• Simplifies teaching and
learning
www.cisco.com
© 1999, Cisco Systems, Inc.
2-7
Devices Function at Layers
7
Application
6
Presentation
5
Session
4
Transport
3
Network
2
Data Link
1
Physical
NIC Card
Hub
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-8
Host Layers
7
Application
6
Presentation
5
Session
4
Transport
3
Network
2
Data Link
1
Physical
CSE: Networking Fundamentals—OSI Model
}
www.cisco.com
Host layers: Provide
accurate data delivery between
computers
© 1999, Cisco Systems, Inc.
2-9
Media Layers
7
Application
6
Presentation
5
Session
4
Transport
3
Network
2
Data Link
1
Physical
CSE: Networking Fundamentals—OSI Model
}
}
Host layers: Provide
accurate data delivery between
computers
Media layers: Control
physical delivery of messages
over the network
www.cisco.com
© 1999, Cisco Systems, Inc.
2-10
Layer Functions
7
Application
CSE: Networking Fundamentals—OSI Model
Provides network services to application
processes (such as electronic mail, file
transfer, and terminal emulation)
www.cisco.com
© 1999, Cisco Systems, Inc.
2-11
Layer Functions
7
Application
Network services to applications
6
Presentation
Data representation
• Ensures data is readable by
receiving system
• Format of data
• Data structures
• Negotiates data transfer
syntax for application layer
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-12
Layer Functions
7
Application
Network services to applications
6
Presentation
Data representation
5
Session
CSE: Networking Fundamentals—OSI Model
Inter-host communication
• Establishes, manages, and
terminates sessions between
applications
www.cisco.com
© 1999, Cisco Systems, Inc.
2-13
Layer Functions
7
Application
Network services to applications
6
Presentation
Data representation
5
Session
4
Transport
Inter-host communication
End-to-end connection reliability
• Concerned with data transport
issues between hosts
• Data transport reliability
• Establishes, maintains, and
terminates virtual circuits
• Fault detection and recovery
• Information flow control
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-14
Layer Functions
7
Application
Network services to applications
6
Presentation
Data representation
5
Session
4
Transport
3
Network
Inter-host communication
End-to-end connection reliability
Addresses and best path
• Provides connectivity and path
selection between two end
systems
• Domain of routing
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-15
Layer Functions
7
Application
Network services to applications
6
Presentation
Data representation
5
Session
4
Transport
3
Network
Addresses and best path
2
Data Link
Access to media
Inter-host communication
End-to-end connection reliability
• Provides reliable transfer of data
across media
• Physical addressing, network
topology, error notification, flow
control
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-16
Layer Functions
7
Application
Network services to applications
6
Presentation
Data representation
5
Session
4
Transport
3
Network
Addresses and best path
2
Data Link
Access to media
1
Physical
Binary transmission
• Wires, connectors, voltages,
data rates
CSE: Networking Fundamentals—OSI Model
Inter-host communication
End-to-end connection reliability
www.cisco.com
© 1999, Cisco Systems, Inc.
2-17
Peer-to-Peer Communications
Host A
Host B
7
Application
Application
6
Presentation
Presentation
5
Session
Session
4
Transport
3
Network
Segments
Packets
Frames
2
Data Link
1
Physical
CSE: Networking Fundamentals—OSI Model
Transport
Network
Data Link
Bits
Physical
www.cisco.com
© 1999, Cisco Systems, Inc.
2-18
Data Encapsulation
Host A
Host B
Application
Application
Presentation
Session
Transport
} {
Data
Presentation
Session
Transport
Network
Network
Data Link
Data Link
Physical
Physical
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-19
Data Encapsulation
Host A
Host B
Application
Application
Presentation
Session
Transport
Network
} {
Data
Network Data
Header
Presentation
Session
Transport
Network
Data Link
Data Link
Physical
Physical
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-20
Data Encapsulation
Host A
Host B
Application
Application
Presentation
Session
Transport
Network
Data Link
} {
Data
Network Data
Header
Frame Network
Header Header
Data
Physical
CSE: Networking Fundamentals—OSI Model
Presentation
Session
Transport
Network
Frame
Trailer
Data Link
Physical
www.cisco.com
© 1999, Cisco Systems, Inc.
2-21
Data Encapsulation
Host A
Host B
Application
Application
Presentation
Session
Transport
Network
Data Link
Physical
CSE: Networking Fundamentals—OSI Model
} {
Data
Network Data
Header
Frame Network
Header Header
Data
Session
Transport
Network
Frame
Trailer
0101101010110001
www.cisco.com
Presentation
Data Link
Physical
© 1999, Cisco Systems, Inc.
2-22
Layers 1 & 2:
Physical & Data Link
Layers
© 1999, Cisco Systems, Inc.
www.cisco.com
© 1999, Cisco Systems, Inc.
Physical and Logical Addressing
0000.0c12.3456
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-24
MAC Address
24 bits
24 bits
Vendor Code
Serial Number
0000.0c12. 3456
ROM
RAM
• MAC address is burned into ROM on a
network interface card
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-25
Layer 3:
Network Layer
© 1999, Cisco Systems, Inc.
www.cisco.com
© 1999, Cisco Systems, Inc.
Network Layer: Path Determination
Which
Which Path?
Path?
• Layer 3 functions to find the best
path through the internetwork
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-27
Network Layer: Communicate Path
5
2
4
9
6
8
10
1
11
3
7
• Addresses represent the path of media
connections
• Routing helps contain broadcasts
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-28
Addressing—Network and Node
Network
Node
1
1
2
3
2
1
3
1
2.1
1.2
1.3
1.1
3.1
• Network address—Path part used by the router
• Node address—Specific port or device on the network
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-29
Protocol Addressing Variations
General
Example
Network
Node
1
1
TCP/IP
Example
Network
Host
10.
8.2.48
Novell IPX
Example
Network
CSE: Networking Fundamentals—OSI Model
1aceb0b.
(Mask 255.0.0.0)
Node
0000.0c00.6e25
www.cisco.com
© 1999, Cisco Systems, Inc.
2-30
Network Layer
Protocol Operations
X
C
C
Y
A
A
• Each router provides its services to
support upper layer functions
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-31
Network Layer
Protocol Operations
X
C
C
Y
A
A
B
B
Host X
Application
Presentation
Session
Transport
Network
Data Link
Physical
Host Y
Router A
Router B
Router C
Network
Data Link
Physical
Network
Data Link
Physical
Network
Data Link
Physical
• Each router provides its services to
support upper layer
functions
www.cisco.com
CSE: Networking Fundamentals—OSI Model
© 1999, Cisco Systems, Inc.
Application
Presentation
Session
Transport
Network
Data Link
Physical
2-32
Multiprotocol Routing
Routing Tables
IPX 3a.0800.5678.12ab
Novell Apple
IPX 4b.0800.0121.ab13
IP 15.16.50.3
IP
DEC
Token
Ring
AppleTalk 100.110
VAX
DECnet 5.8
Token
Ring
VAX
IP 15.16.42.8
AppleTalk 200.167
DECnet 10.1
IP 15.17.132.6
• Routers pass traffic from all routed protocols over the internetwork
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-33
Routed Versus Routing Protocol
• Routed protocol
used between
routers to direct
user traffic
Examples: IP, IPX,
AppleTalk, DECnet
Network
Protocol
Protocol Name
CSE: Networking Fundamentals—OSI Model
www.cisco.com
Destination Exit Port
Network
to Use
1.0
2.0
3.0
1.1
2.1
3.1
© 1999, Cisco Systems, Inc.
2-34
Routed Versus Routing Protocol
• Routed protocol
used between
routers to direct
user traffic
Examples: IP, IPX,
AppleTalk, DECnet
• Routing protocol
used only between
routers to maintain
routing tables
Examples: RIP, IGRP, OSPF
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-35
Static Versus Dynamic Routes
Static Route
Uses a protocol route that a network
administrator enters into the router
Dynamic Route
Uses a route that a network protocol
adjusts automatically for topology or
traffic changes
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-36
Static Route Example
Point-to-point or
circuit-switched
connection
A
A
Only a single network
connection with no need
for routing updates
• Fixed route to address reflects
administrator’s knowledge
CSE: Networking Fundamentals—OSI Model
www.cisco.com
B
B
“Stub” network
© 1999, Cisco Systems, Inc.
2-37
Adapting to Topology Change
A
A
B
B
D
D
C
C
• Can an alternate route substitute
for a failed route?
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-38
Adapting to Topology Change
B
B
A
A
X
D
D
CSE: Networking Fundamentals—OSI Model
C
C
www.cisco.com
© 1999, Cisco Systems, Inc.
2-39
Adapting to Topology Change
B
B
A
A
X
D
D
C
C
• Can an alternate route substitute
for a failed route?
Yes—With dynamic routing enabled
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-40
LAN-to-LAN Routing Example
Network 2
Network 3
Host 4
Network 1
E0
E1
To0
Token
Ring
Host 5
802.3 Net 2, Host 5
Routing Table
Destination Outgoing
Network
Interface
1
2
3
CSE: Networking Fundamentals—OSI Model
www.cisco.com
E0
To0
E1
© 1999, Cisco Systems, Inc.
2-41
LAN-to-LAN Routing
From LAN
to LAN
Network 2
Network 3
Host 4
Network 1
E0
E1
Token
Ring
To0
Host 5
802.5 Net 2, Host 5
802.3 Net 2, Host 5
Routing Table
Destination Outgoing
Network
Interface
1
2
3
CSE: Networking Fundamentals—OSI Model
www.cisco.com
E0
To0
E1
© 1999, Cisco Systems, Inc.
2-42
LAN-to-WAN Routing
Data
From
LAN
1.3 2.4 Data
1.3
CSE: Networking Fundamentals—OSI Model
Token Ring
1.3 2.4 Data
A
A
To
WAN
To
LAN
Token
Ring
Frame
Relay
2.4
B
B
www.cisco.com
© 1999, Cisco Systems, Inc.
2-43
LAN-to-WAN Routing
Data
From
LAN
1.3 2.4 Data
1.3
Token
Ring
Token Ring
1.3 2.4 Data
1.3 2.4 Data
A
A
To
WAN
To
LAN
CSE: Networking Fundamentals—OSI Model
Frame
Relay
2.4
Frame Relay 1.3 2.4 Data
B
B
www.cisco.com
© 1999, Cisco Systems, Inc.
2-44
LAN-to-WAN Routing
Data
From
LAN
1.3 2.4 Data
1.3
Token
Ring
Token Ring
1.3 2.4 Data
1.3 2.4 Data
A
A
To
WAN
Frame
Relay
Frame Relay 1.3 2.4 Data
1.3 2.4 Data
To
LAN
2.4
B
B
Ethernet
1.3 2.4 Data
1.3 2.4
Data
Data
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-45
Layers 4–7:
Transport, Session,
Presentation, and
Application Layers
© 1999, Cisco Systems, Inc.
www.cisco.com
© 1999, Cisco Systems, Inc.
Transport Layer
•
•
•
•
Segments upper-layer applications
Establishes an end-to-end connection
Sends segments from one end host to another
Optionally, ensures data reliability
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-47
Transport Layer—
Segments Upper-Layer Applications
Application
Presentation
Electronic
Mail
File
Transfer
Terminal
Session
Session
Transport
Application
Port
Data
Application
Port
Data
Segments
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-48
Transport Layer—
Establishes Connection
Sender
Receiver
Synchronize
Negotiate Connection
Synchronize
Acknowledge
Connection Established
Data Transfer
(Send Segments)
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-49
Transport Layer—
Sends Segments with Flow Control
Transmit
Sender
Stop
Go
Receiver
Not Ready
Buffer Full
Process
Segments
Ready
Buffer OK
Resume Transmission
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-50
Transport Layer—
Reliability with Windowing
• Window Size = 1
Send 1
Sender
Receive 1
Ack 2
Receive 2
Ack 3
Send 2
Receiver
• Window Size = 3
Sender
Send 1
Send 2
Send 3
Receive 1
Receive 2
Receive 3
Ack 4
Receiver
Send 4
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-51
Transport Layer—
An Acknowledgement Technique
Sender
Receiver
1 2 3 4 5 6 7
1 2 3 4 5 6 7
Send 1
Send 2
Send 3
Ack 4
Send 4
Send 5
Send 6
Ack 5
Send 5
CSE: Networking Fundamentals—OSI Model
Ack 7
www.cisco.com
© 1999, Cisco Systems, Inc.
2-52
Transport to Network Layer
End-to-End Segments
Routed Packets
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-53
Session Layer
•
•
•
•
•
•
Network File System (NFS)
Structured Query Language (SQL)
Remote-Procedure Call (RPC)
X Window System
AppleTalk Session Protocol (ASP)
DEC Session Control Protocol (SCP)
Service Request
Service Reply
• Coordinates applications as
they interact on different hosts
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-54
Presentation Layer
•
•
•
Text
Data
ASCII
EBCDIC
Encrypted
login:
•
• Sound
Graphics
Visual images
PICT
TIFF
JPEG
GIF
MIDI
• Video
MPEG
QuickTime
• Provides code formatting and
conversion for applications
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-55
Application Layer
COMPUTER
APPLICATIONS
Word Processor
NETWORK
APPLICATIONS
INTERNETWORK
APPLICATIONS
Presentation Graphics Electronic Mail
Spreadsheet
File Transfer
Electronic Data Interchange
Database
Remote Access
World Wide Web
Design/Manufacturing
Client-Server Process
E-Mail Gateways
Project Planning
Information Location
Special-Interest Bulletin Boards
Others
Network Management
Financial Transaction Services
Others
Internet Navigation Utilities
Conferencing (Voice, Video, Data)
• Internetwork applications
Others
can extend beyond the
enterprise (i.e., to suppliers, etc.)
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-56
Summary
• OSI reference model describes building
blocks of functions for program-toprogram communications between
similar or dissimilar hosts
• Layers 4–7 (host layers) provide accurate
data delivery between computers
• Layers 1–3 (media layers) control
physical delivery of data over the network
CSE: Networking Fundamentals—OSI Model
www.cisco.com
© 1999, Cisco Systems, Inc.
2-57
Presentation_ID
© 1999, Cisco Systems, Inc.
www.cisco.com
58