Professional Documents
Culture Documents
HEDSPI Project
Hanoi University of Technology
by
Ngo Hong Son
1
Today outline
Layering architecture
OSI reference model
Internet identifiers
Name resolution
2
Layering architecture
Examples
Why layering?
3
Functionality division: Hierarchical Model
Teller Listener
Information you
want to tell Receiving information
Japanese?
Language English? Language
Method to
communicate
Letter?
Telephone? There is no problem if the
E-Mail? same thing is used on both 4
side of each layer
Example of layering (1)
Layered Not layered
Cassette
AV Component
All functions are included in
Player
one cassette.
Speaker
Replace all when changing
Amplifier
5
Example of layering (2)
airplane routing airplane routing airplane routing airplane routing airplane routing
6
Why layering?
7
Reference models
8
OSI - Open System Interconnection: 7
layers model
Application layer
Application
Presentation layer HTTP, FTP, SMTP…
Session layer
Transport layer TCP UDP
Network layer IP
Datalink layer Network Interface
Physical layer Physical
10
Layering Internet
Example of process from the sources, passing
intermediate node (router), and arriving the address
FTP FTP
TCP TCP
IP IP IP
Wrap paper
Decorate ribbon
Stick address
address address
12
TCP/IP protocol stack and
encapsulation
Sender
Each layer adds necessary information (header) and
transfers to the lower layer
Receiver
Each layer processes data based on information of
header, after removing that part of header, transfer to
the upper layer.
Ex:HTTP header
Application
Application
Data
Data
TCP header
TCP
TCP
IP header IP IP
Physical
Physical
Signal 13
Sender
Receiver
PDU: Protocol Data Unit
Protocol N+1
Layer (N+1) (N+1) PDU
Service interface
Protocol N
Layer (N) (N) PDU HN
Service interface
Protocol N-1
Layer (N-1) (N-1) PDU HN HN-1
14
SAP: Service Access Point
Protocol 1
Client 1 Server 1
Client 2 Protocol 1 Server 2
Server 3 Protocol 1 Client 3
Application
SAP SAP
Network TCP/UDP
TCP/UDP TCP/UDP
protocol
Internet
15
Protocol stack and
encapsulation
FTP FTP
TCP TCP
IP IP IP IP
Pay load
16
Protocol stack and
encapsulation
FTP FTP
TCP TCP
IP IP IP IP
FTP FTP
TCP TCP
IP IP IP IP
FTP FTP
TCP TCP
IP IP IP IP
FTP FTP
TCP TCP
IP IP IP IP
FTP FTP
TCP TCP
IP IP IP IP
FTP FTP
TCP TCP
IP IP IP IP
FTP FTP
TCP TCP
IP IP IP IP
FTP FTP
TCP TCP
IP IP IP IP
FTP FTP
TCP TCP
IP IP IP IP
FTP FTP
TCP TCP
IP IP IP IP
Payload
26
Summary: Advantages of layering
27
Internet Identifiers
MAC Address
IP Address
Port Number
28
Identifier
Identifier is used for specifying one object
Name
Nguyen Thuc Hai
Address
1 Dai Co Viet, Hai Ba Trung, Ha Noi
Telephone number
8680896
Email
hai--xxx@it.hut.edu.vn
29
Identifier and Hierarchy
Identifier expressing address has the hierarchy
It’s possible to manage huge identifier space logically,
efficiently
Scalable
So 1
30
Internet Identifiers and Layers
TCP/UDP
31
Identifier Data Link layer
Physical address/MAC address
Used on Data link layer
Fixed on every NIC ( Network Interface card)
Utilized for identifying computer inside a broadcast
domain
HEX
BIN
00:11:24:79:8e:82
00000000 00010001 00100100 01111001 10001110 10000010
2001:200:0:8803::53 (ipv6)
33
Identifier used in Transport layer
Port number
The auxiliary address which is assigned in IP
address
Application is specified by an IP address and a
port number
Address: Building C1, 1 Dai Co Viet, Ha Noi => IP
Address
Room number:Room 325 => Port number
34
Identifier translation
Domain name
Name resolution
nslookup
arp
35
Domain Name
Domain Name
(FQDN: Fully Qualified Domain Name)
Domain name is identifier of computer,
network and the like, uses alphabet and
number to express
www.keio.ac.jp
www.hedspi.hut.edu.vn
mail.hut.edu.vn
36
Domain name space
pc24.cs.keio.ac.jp 37
Name and address
Before communicating, host must be specified
Host is identified by the unique IP address
Host is identified by the unique name(For user’s convenience)
Name
Variable length
Easy to remember for human
Not relate with physical position of host
Address
Fixed length
The computer is easy to process
There is the restriction with the routing
203.162.7.194 www.hedspi.hut.edu.vn
38
www.hut.edu.vn 202.47.142.40
Example of name resolution
• The computer understands
the number I want to see the website
• On the other hand, human www.hedspi.hut.edu.vn
can remember name
User
easier than number
Please access to
Necessity of name the server 202.47.142.40
resolution
Name server
domain name
Name resolution
Mechanism of Name resolution
The mechanism of finding the value (IP address) that
corresponds to Name (host name)
Name server
One realization method of name resolution
Mostly used on Internet
40
Simple example
User
(1)
www.hedspi.hut.edu.vn
(2)
Name www.hedspi.hut.edu.vn
Web browser
server
(3)
202.47.142.40 (4) 202.47.142.40
Web server
nslookup www.hedspi.hut.edu.vn!
Non-authoritative answer:
Name: www.hedspi.hut.edu.vn
Address: 202.47.142.140
32bit IP address
ARP RARP
43
Ex: ARP table
(Example of Windows)
MAC address
44
Summary
Layering architecture
Why layering
TCP/IP model vs. OSI model
SAP, PDU, Interface
Internet Identifier
IP address, MAC address, Domain Name, Port
number
Name resolution
45