Layered Architecture

annjan 22,731 views 15 slides May 22, 2009
Slide 1
Slide 1 of 15
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15

About This Presentation

A compressed slideson the layered architecture with high rating .


Slide Content

05/01/09MCSE201 : Communication Network 1
Layered ArchitectureLayered Architecture
Anjan.K
II Sem M.Tech
Dept of CSE
M.S.R.I.T
1

05/01/09MCSE201 : Communication Network 2
OutlineOutline
Layered Architecture
• Need For Layering
◦OSI Reference Model
◦TCP/IP Model
◦Problems
◦Socket Programming
◦TCP
◦UDP
◦Sockets Demo
Applications
FTP
• IP Utilities
05/01/09 2MCSE201 : Communication Network

05/01/09MCSE201 : Communication Network 3
Need For Layering
Allows Complex problems are decomposed in to
small manageable units.
Implementation details of the layer are abstracted.
Separation of implementation and specification
Layers are work as one by sharing the services
provided by each other.
Layering allows reuse functionality i.e., lower layers
implement common once.
Provide framework to implement multiple specific
protocols per layer

05/01/09MCSE201 : Communication Network 405/01/09MCSE201 : Communication Network 4
The ISO/OSI Reference Model
Need For Standard Architecture is various
vendors with various architectures. Hence ISO:
International Standards Organization
(Estd in 1947)(
OSI: Open Systems Interconnection
(1970’s)(
One or more nodes
within the network
End host
Application
Presentation
Session
Transport
Network
Data link
Physical
Network
Data link
Physical
Network
Data link
Physical
End host
Application
Presentation
Session
Transport
Network
Data link
Physical
Copyright © Computer Networks by Larry Peterson
Physical
•Transmit raw bits over the
medium.
Data Link
◦Abstraction of an error free
medium (frame)m
◦Flow Control
Network
◦Routing (Packets)R
◦Addressing (IP address)A
Transport
◦Error free end to end, type of
service
◦Port Addresses
Session
◦establishing Sessions,
◦dialog Control & token
management
Presentation - Handles Syntax and
semantics
Application- Protocols commonly
needed by applications (http,ftp
,etc.,).

05/01/09MCSE201 : Communication Network 5
TCP/IP Reference Model
Also called the Internet
Architecture
No Strict enforcement of
layering
Usually shown as a 4 or 5
layer model
Copyright © Communication Networks by Leon Garcia

Problem
05/01/09MCSE201 : Communication Network
Suppose that the TCP entity receives a
1.5 megabyte file from the application
layer and that the IP layer is willing to
carry blocks of maximum size 1500
bytes. Calculate the amount of
overhead incurred from segmenting
the file into packet-sized units.
Solution:
•MTU=1500 MSS= 1460
•1.5 Mbyte / 1460 byte = 1027.4,
therefore 1028 blocks are needed to
transfer the file.
•Overhead = ((1028 x 1500 -
1.5M)/1.5M) x 100 = 2.8%
Copyright © Communication Networks by Leon Garcia
1.5MB File
Application
1.5MB File
MTU 1
MSS+
Header
MTU 2

MTU 1028………..

05/01/09MCSE201 : Communication Network 77
Application Programming Interfaces(API)- SocketsApplication Programming Interfaces(API)- Sockets
API are required to implement an Network application
Socket interface, part of Berkeley Unix, is now supported
by all OS.
Socket - point where a local abstraction process
attaches to the network.
Interface defines operations
◦Creating a socket
◦Attaching the socket to the network,
◦Sending/Receiving messages and
◦ closing the socket.
05/01/09MCSE201 : Communication Network

05/01/09MCSE201 : Communication Network 8
Socket System CallsSocket System Calls
Create a socket
int socket(int family, int type, int protocol);
Bind –binds socket to local address
int bind(int socket,struct sockaddr *address, int addr.len);
Listen defines how many connections can be pending
int listen(int socket,int backlog);
Accept carries out the passive operation
int accept( int socket,struct sockaddr *address,int
addr.len)a
int connect(int socket,struct sockaddr *address, int addr.len);
int send(int socket, char *message, int msg.len, int flags);
int recv(int socket, char *buffer, int buf.len, int flags);
05/01/09MCSE201 : Communication Network 8

05/01/09MCSE201 : Communication Network 9
Socket CallsSocket Calls
05/01/09MCSE201 : Communication Network 9
Copyright © Communication Networks by Leon Garcia
TCP Socket Calls UDP Socket Calls

05/01/09MCSE201 : Communication Network 11
Application Protocol Examples
Application Protocol Underlying
Transport
Protocol
Electronic Mail SMTP [RFC 2821] TCP
Web HTTP [RFC 1945] TCP
File Transfer FTP [RFC 959] TCP
Streaming
Multimedia
RTP [RFC 1889] TCP/UDP
Internet TelephonySIP [RFC 3261] UDP
Remote terminal
access
Telnet [RFC 854] TCP
Domain Name
server
DNS[RFC 883] UDP

05/01/09MCSE201 : Communication Network 12
File Transfer Protocol (FTP) [RFC 959]
FTP client contacts FTP server at
port 21, specifying TCP as transport
protocol
Client obtains authorization over
control connection
Client browses remote directory by
sending commands over control
connection.
When server receives a command
for a file transfer, the server opens
a TCP data connection to client
After transferring one file, server
closes connection.
FTP
client
FTP
server
TCP control
connection
port 21
TCP data connection
port 20

05/01/09MCSE201 : Communication Network 13
IP UtilitiesIP Utilities
05/01/09MCSE201 : Communication Network 13
PING
◦Determines whether a host
is online and available and
make use of ICMP messages
◦Inform the sending host
about errors in IP datagram
◦Used to measure round-trip
delay between hosts
NETSTAT
◦Queries about its TCP/IP
network status
◦Finds status of network
drivers and their interface
cards
TRACEROUTE – debugging tool
◦Used to track route of packet
from local host to remote host
◦Informs about latency and
reachability
◦Makes use of both ICMP and
UDP
IPCONFIG
◦Utility to display TCP/IP
information about a host
available in Windows
◦Simplest form returns IP
address, subnet mask, default
gateway, DNS servers
◦Available with various options

05/01/09MCSE201 : Communication Network 14
SummarySummary
Layered Architecture
◦OSI Reference Model
◦TCP/IP Model
◦Socket Programming with Demo
◦TCP
•UDP
Applications
◦FTP
◦IP Utilities
05/01/09 14MCSE201 : Communication Network

05/01/09MCSE201 : Communication Network 15
ReferencesReferences
[1] Larry L Peterson, “Communication
Networks”,3
rd
Edition
[2] S.keshav, “An Engineering Approach to
Computer Networking”,Pearson
Education
[3] Andrew.S Tannenbaum, “Computer
Network”, 4th Edition
[4] Leon Garcia et.al., “Communication
Networks”, 2
nd
Edition
[5] RFC’s From http://www.ietf.org
[6] Leslie Miller, “ISO Reference Model of OSI”
ACM transaction in Nov 1981
05/01/09MCSE201 : Communication Network 15
Tags