Professional Documents
Culture Documents
Section VII
The Layered Model
Layered Communication
Location A
I like
Message
rabbits
L: Dutch Information
Ik hou for the
Remote
van Translator
konijnen
Section VII
Layered Communication
Location A Location B
I like J’aime
Message
rabbits les lapins
Fax #:---
Fax #:--- Information L: Dutch
L: Dutch for the Ik hou
Ik hou Remote
van
van Secretary
konijnen
konijnen
Section VII
Layered Communication
Location A Location B
Layers
I like J’aime
rabbits
Message
3 les lapins
Fax #:---
Fax #:--- Information L: Dutch
L: Dutch for the Ik hou
Ik hou remote
van secretary 1 van
konijnen
konijnen
Section VII
Why a Layered Network Model?
Section VII
Devices Function at Layers
7 Application
6 Presentation
NIC Card
5 Session
4 Transport
3 Network
2 Data Link
1 Physical
Hub
Section VII
Host Layers
7
6
5
4
3
Application
Presentation
Session
Transport
Network
} Host layers: Provide
accurate data delivery
between computers
2 Data Link
1 Physical
Section VII
Media Layers
}
7 Application
6 Presentation Host layers: Provide
5 Session accurate data delivery
between computers
4 Transport
3 Network
2
1
Data Link
Physical
} Media layers: Control
physical delivery of messages
over the network
Section VII
Layer Functions
Section VII
Layer Functions
Section VII
Layer Functions
Section VII
Layer Functions
Section VII
Layer Functions
Section VII
Layer Functions
7 Application Network services to applications
Section VII
Layer Functions
7 Application Network services to applications
Host A Host B
7 Application Application
6 Presentation Presentation
5 Session Session
4 Transport Segments Transport
3 Network Packets Network
2 Data Link Frames Data Link
1 Physical Bits Physical
Section VII
Data Encapsulation
Host A Host B
Application Application
Presentation
Session
Transport
} { Data Presentation
Session
Transport
Network Network
Physical Physical
Section VII
Data Encapsulation
Host A Host B
Application Application
Presentation
Session
Transport
} { Data
Network Data
Header
Presentation
Session
Transport
Network Network
Physical Physical
Section VII
Data Encapsulation
Host A Host B
Application Application
Presentation
Session
Transport
} { Data
Network Data
Header
Presentation
Session
Transport
Network Network
Physical Physical
Section VII
Data Encapsulation
Host A Host B
Application Application
Presentation
Session
Transport
} { Data
Network Data
Header
Presentation
Session
Transport
Network Network
Physical Physical
0101101010110001
Section VII
Layers 1 & 2:
Physical & Data Link Layers
Physical and Logical Addressing
0000.0c12.3456
Section VII
MAC Address
24 bits 24 bits
0000.0c12. 3456
ROM
RAM
Which
Which Path?
Path?
Section VII
Network Layer: Communicate Path
5
2 9
6 8
4
10 11
1 3
7
Network Node
1 1
2.1
2
3 1.2
3 1
Section VII
Protocol Addressing Variations
Network Host
TCP/IP
Example 10. 8.2.48 (Mask 255.0.0.0)
Network Node
Novell IPX
Example 1aceb0b. 0000.0c00.6e25
Section VII
Network Layer
Protocol Operations
X Y
C
C
A
A
Section VII
Network Layer
Protocol Operations
X Y
C
C
A
A
B
B
Host X Host Y
Application Application
Presentation Presentation
Session Router A Router B Router C Session
Transport Transport
Network Network Network Network Network
Data Link Data Link Data Link Data Link Data Link
Physical Physical Physical Physical Physical
Routing Tables
IPX 3a.0800.5678.12ab
Novell Apple
IP 15.16.50.3
IPX 4b.0800.0121.ab13 DEC IP Token
Ring
AppleTalk 100.110
VAX
Routers pass traffic from all routed protocols over the internetwork
Section VII
Routed Versus Routing Protocol
• Routed protocol
used between
routers to direct
user traffic
Section VII
Routed Versus Routing Protocol
• Routed protocol
used between
routers to direct
user traffic
• Routing protocol
used only between
routers to maintain
routing tables
Examples: RIP, IGRP, OSPF
Section VII
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
Section VII
Static Route Example
Point-to-point or
A
A circuit-switched
connection
“Stub” network
Fixed route to address reflects
administrator’s knowledge
Section VII
Adapting to Topology Change
A
A B
B
D
D C
C
A
A B
B
X
D
D C
C
Section VII
Adapting to Topology Change
A
A B
B
X
D
D C
C
Network 2
Host 4 Network 3
Host 5
Token
E1 Ring
Network 1 E0 To0
Routing Table
Destination Outgoing
Network Interface
1 E0
2 To0
3 E1
Section VII
LAN-to-LAN Routing
Routing Table
Destination Outgoing
Network Interface
1 E0
2 To0
3 E1
Section VII
LAN-to-WAN Routing
Data
A
A
To
WAN Frame
Relay
B
B
2.4
To
LAN
Section VII
LAN-to-WAN Routing
Data
B
B
2.4
To
LAN
Section VII
LAN-to-WAN Routing
Data
Section VII
Transport Layer—
Segments Upper-Layer Applications
Session
Segments
Section VII
Transport Layer—
Establishes Connection
Sender Receiver
Synchronize
Negotiate Connection
Synchronize
Acknowledge
Connection Established
Data Transfer
(Send Segments)
Section VII
Transport Layer—
Sends Segments with Flow Control
Transmit
Sender Receiver
Buffer Full
Not Ready
Stop
Process
Segments
Go Ready
Buffer OK
Resume Transmission
Section VII
Transport Layer—
Reliability with Windowing
• Window Size = 1
Send 1 Receive 1
Ack 2
Sender Send 2 Receive 2 Receiver
Ack 3
• Window Size = 3
Send 1 Receive 1
Send 2 Receive 2
Sender
Send 3 Receive 3 Receiver
Ack 4
Send 4
Section VII
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
Ack 7
Section VII
Transport to Network Layer
End-to-End Segments
Routed Packets
Section VII
Session Layer
Service Request
Service Reply
Coordinates applications as
they interact on different hosts
Section VII
Presentation Layer
• Text • Graphics
• Data • Visual images
ASCII PICT
login:
EBCDIC TIFF
Encrypted JPEG
• Sound GIF
MIDI
• Video
MPEG
QuickTime
Section VII
Introduction to TCP/IP
Agenda
What Is TCP/IP?
IP Addressing
Section VII
TCP / IP
Internet uses TCP / IP to establish the
connections between the clients and servers
and reliably move messages between them.
IP = Internet Protocol
TCP = Transmission Control Protocol
Section VII
TCP / IP
Establishes the connection (agreement to
communicate) between the source and the
destination computers
Breaks down the connection when the
programs are finished communicating
Carries the source and destination network
addresses (computer address)
Routers look at the destination address to
determine how to route the message to the
correct destination
Section VII
TCP / IP
Identifies the source and destination
programs (ports) so the operating system
know which program should receive the
incoming packets (page 24)
Keeps track of every packet sent and received
to help ensure that packets are not lost
Section VII
What Is TCP/IP?
A suite of protocols
Rules that dictate how packets
Error checking
Section VII
IP
Section VII
TCP/IP Transport Layer
Application layer
File Transfer Protocol (FTP)
Remote Login (Telnet)
E-mail (SMTP)
Transport layer
Transport Control Protocol (TCP)
User Datagram Protocol (UDP)
Network layer
Internet Protocol (IP)
Data link & physical layer
LAN Ethernet, Token Ring, FDDI, etc.
WAN Serial lines, Frame Relay, X.25, etc.
Section VII
TCP Transmission Control Protocol
Section VII
UDP User Datagram Protocol
• Unreliable
• Fast
• Assumes application will retransmit on error
• Often used in diskless workstations
Section VII
ICMP Ping
Section VII
IPv4 Addressing
• 32-bit addresses
• Commonly expressed in dotted
decimal format (e.g., 192.168.10.12)
• Each “dotted decimal” is commonly
called an octet (8 bits)
Section VII
IP Addressing—Three Classes
• Class A: NET.HOST.HOST.HOST
• Class B: NET.NET.HOST.HOST
• Class C: NET.NET.NET.HOST
Section VII
IP Addressing—Class A
• 10.222.135.17
• Network # 10
• Host # 222.135.17
• Range of class A network IDs: 1–126
• Number of available hosts: 16,777,214
Section VII
IP Addressing—Class B
• 128.128.141.245
• Network # 128.128
• Host # 141.245
• Range of class B network IDs:
128.1–191.254
• Number of available hosts: 65,534
Section VII
IP Addressing—Class C
• 192.150.12.1
• Network # 192.150.12
• Host # 1
• Range of class C network IDs:
192.0.1–223.255.254
• Number of available hosts: 254
Section VII
IP Network Address Classes
Class B 128.5.0.0
Network Address Space
Class C 132.33.33.0
Section VII
IP Subnetting
Section VII
IP Subnet Mask
Given:
Address = 131.108.2.160
Subnet = 131.108.2.0
Section VII
IP Address Assignment
Section VII
IPv6 Addressing
• 128-bit addresses
– 340,282,366,920,938,463,463,374,607,431,768,211,456 addresses
• Example: 5F1B:DF00:CE3E:E200:0020:0800:5AFC:2B36
• Example: 0:0:0:0:0:0:192.1.1.17
Section VII
Summary
Section VII
Message Routing
Message
MISTI.com
12.15.134.163
Message
Section VII
TCP/IP Packet
IP Header
TCP Header
Application Data
Section VII
IP Header
Source Address
Destination Address
Options + Padding
Section VII
TCP Header
Sequence Number
Acknowledgement Number
Message Length
Section VII
Section VII
Intranets
Section VII
Extranets
Section VII
Your
Company
Company Company
A B
Section VII
Architecture of the Web
Section VII
Architecture of the Web
Internet Backbones
Telecom companies build high speed
networks (>45Mbps) that have nodes in
cities or countries called:
Network Access Points (NAPs)
Metropolitan Area Ethernets (MAEs)
Section VII
Internet Service Provider (ISP)
A company or organization that provides
connectivity to the Internet
To connect to the Internet you must
connect to an ISP
Organizations are their own ISPs
for Intranet connections
some Internet connections
Section VII
Network Access Point (NAP)
ISPs interconnect (forming the Internet)
via NAPs and peering points
NAP is a router that interconnects ISPs
to a backbone circuit
The backbone circuits (provided by
telecom companies) interconnect NAPs
ISPs pay fees to connect to a NAP
which gets charged back to you by the ISP
Section VII
Network Access Point (NAP)
Peering - ISPs exchange so much data
between them they install a private
circuit between the ISPs
When 3 or more ISPs build a peering
connection … called a Private Network
Access Point (PNAPs)
PNAPs can interconnect ISPs and also
connect to a NAP.
… confused yet?
Section VII
Summary
NAPs connect to other NAPs
PNAPs connect to NAPs and PNAPs
National Backbones connect to NAPs
Regional ISPs connect to National
Backbones, PNAPs or NAPs
Local ISPs connect to Regional ISPs
Section VII
The Internet Hierarchy
Section VII
Internet Backbone
Section VII
Internet Backbone
Section VII
Internet Backbone
Internet Backbone
Network Access Points
Nasa Ames
Internet
Exchange - PAIX - SEA
Sunnyvale Ameritech NAP
(CHI)
MAE West NY Internet
(MCI Exchange
Worldcom) (NYIIX)
- San Jose
Sprint NAP
Palo Alto - NJ
Internet
Exchange MAE Central MAE EAST
(PAIX) (MCI (MCI
Worldcom) - Worldcom)
LA Internet Dalllas
PAIX - PAIX - - DC
Exchange
Dallas ATL
(LAIIIA)
Network Access
Points
National Backbone
Government
Backbone
Regional ISPs
Local ISPs
The Internet: A Network of
Networks
Section VII
Internet Hierarchy
Boston
ISP ISP
POP POP
Backbone
NAP NAP
San Francisco
• Routers and circuits
• Multiple paths
• Adaptive routing
Section VII
The New Business Model
104
The Internet Is Changing the Way
Everyone Does Business
Internet
Compression of:
Time
Distance
Business cycles
Market turbulence
Networked business Section VII
Forces Driving Change
Compressed Need to
Product Do “More
Lifestyle with Less”
Blurring of Blurring of
Geographical Industries
Boundaries
Section VII
Traditional Business Model Versus New
Business Model
Traditional New
Closely held Widely distributed among
knowledge base partners, suppliers
Intranets
Extranets
E-commerce
Section VII
Intranets
What Is an Intranet?
Section VII
Typical Intranet Applications
Employee self-
service
Distance learning
Technical support
Videoconferencing
Section VII
Example: Employee
Self-Service
What can you do with employee
self-service?
Business management and planning
Internal communications
Market intelligence
Section VII
Benefits of Intranets
Increase employee productivity
Provide easy access to information
Improve design productivity and
compress time to market
Improve global communications
Minimize downtime and cut
maintenance costs
Realize cost savings
Section VII
Extranets
What Is an Extranet?
An extension of the
company network,
facilitating secure
collaborative
connections with:
Key customers
Suppliers
Partners
Section VII
Typical Extranet Applications
Supply-chain management
Customer communications
Distributor promotions
Online continuing education/training
Customer service
Order status inquiry
Inventory inquiry
Account status inquiry
Warranty registration
Claims
Online discussion forums
Section VII
Example: Supply Chain Management
Distributors/
Suppliers Manufacturers Wholesalers Retailers Consumers
Section VII
E-Commerce
E-Commerce Market
Growing Rapidly 349
327
Online catalog
Order entry
Configuration
Pricing
Order verification
Credit authorization
Invoicing
Payment and receivables
Inventory management
Section VII
Benefits of E-Commerce
Increase revenues
Sell into global markets
Improve customer satisfaction with
self-service application
Manage inventory levels more
effectively
Decrease costs
Section VII
Technology Implications of Internet
Applications
Technology Implications of Internet
Applications
Higher bandwidth
requirements
Security
Networks
EDI
Section VII
Applications Need Bandwidth
Kbps
Leased Line,
1544 Frame Relay, Video, Multimedia
XDSL
128
Simple Video, Voice
64 ISDN, FR
Firewall ISDN
Gateway Campus
PSTN
Internet Backbone
Public
Web 3178454
Server
Token
Firewalls Intranet Card
Servers AAA Server
Network Address Translation (NAT)
Encryption: IPSec, DES, 3DES
Token cards
AAA Section VII
Virtual Private Network
IP Packet
(Private, • Extends private network through public Internet
Encrypted) • Lower cost than private WAN
• Relies on tunneling and encryption
IP Header (Public)
Internet
Geneva
Frankfurt
Section VII
Electronic Data Interchange (EDI)
Internet
Boston
EDI Format Purchase
San Francisco Order (Encrypted)
Public IP Packet
Internet business
solutions create competitive
advantage Employees Customers
Higher customer
satisfaction
Lower costs
Partners Suppliers
Competitive
agility Ubiquitous
connectivity
Accelerated time-to-
where the
business
market runs on the
network
Higher employee efficiency
Section VII
Firewalls
Section VII
Firewalls
Incoming messages
message passes to the organization’s ISP
message is forwarded to the firewall
firewall determines through its configuration
rules if the message is allowed to enter the
organization’s network.
if OK - the message is sent to the router and to
the correct internal destination
Section VII
How a Company Connects to the Internet
Section VII
IP Addresses
Four ways of referencing a location on
the Internet:
Fully qualified domain name (FQDN)
Dotted decimal notation
Decimal address
Binary IP address
www.misti.com
Section VII
Section VII
Section VII
Section VII
IP Addresses
Dotted Decimal Notation
xxx.xxx.xxx.xxx
Section VII
Section VII
Section VII
Section VII
Section VII
IP Addresses
Decimal Address
Decimal representation of the binary
address
Section VII
IP Addresses
Binary IP Address
32-bit number (4 - 1 Byte numbers)
12.15.134.163
Section VII
bits & Bytes
128 64 32 16 8 4 2 1
---------------------------------------------
0 0 0 0 1 1 0 0 = 12
0 0 0 0 1 1 1 1 = 15
1 0 0 0 0 1 1 0 = 134
1 0 1 0 0 0 1 1 = 163
1 1 1 1 1 1 1 1 = 255
Section VII
Domain Naming
www.misti.com is a domain name
.com = root domain
.misti = second level label
www = third level zone
Section VII
Domain Name System (DNS)
Section VII
Domain Name System (DNS)
When a user requests to visit a location
such as www.misti.com
Browser sends a request to the local DNS
asking for the matching IP address
If the local DNS server does not have the
entry, it goes to a higher DNS server asking
for the IP address
Keeps trying until successful or cannot find
the IP address
Section VII
URL - Universal Resource Locator
Service://HOST/PATH_TO_FILE_OR PAGE
HOST =
IP address (12.15.134.163) -or-
FQDN (www.misti.com)
Section VII
Section VII
TCP/IP Ports
Port Number = Every program on a
computer that is accessible through a
network connection has a unique identifier
IETF has designated specific port numbers
to use for popular and standard applications
Port 80 = web server program default
Port numbers are divided into 3 ranges
Well known ports = 0 -- 1023
Registered ports = 1024 -- 49151
Dynamic / private = 49152 -- 65535
Section VII
Sample List of Ports and Their Applications
Port Application
7 Echo
20-21 FTP (file transfer)
23 telnet (remote login)
25 SMTP (simple mail transfer)
53 DNS (domain name system)
69 TFTP (trivial file transfer)
80 HTTP (hypertext transport protocol - WWW)
Security of environment
Continuous Testing
Risk Assessment
Recognition that Internet is part
of the network infrastructure
Section VII
Thin / Thick Client
Dial-in
VPN Partner SSL ?
Internet
XYZ, Inc.
E-Business
Router
Environment
DMZ
Web Server