SlideShare a Scribd company logo
1 of 15
Download to read offline
05/01/09 MCSE201 : Communication Network 1
Layered Architecture
Layered Architecture
Anjan.K
II Sem M.Tech
Dept of CSE
M.S.R.I.T
1
05/01/09 MCSE201 : Communication Network 2
Outline
Outline
 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 2
MCSE201 : Communication Network
05/01/09 MCSE201 : 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/09 MCSE201 : Communication Network 4
05/01/09 MCSE201 : 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)
(
Oneor m
orenodes
w
ithin thenetw
ork
Endhost
Application
Presentation
Session
Transport
Netw
ork
Datalink
Physical
Netw
ork
Datalink
Physical
Netw
ork
Datalink
Physical
Endhost
Application
Presentation
Session
Transport
Netw
ork
Datalink
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/09 MCSE201 : 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/09 MCSE201 : 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/09 MCSE201 : Communication Network 7
7
Application Programming Interfaces(API)- Sockets
Application 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/09 MCSE201 : Communication Network
05/01/09 MCSE201 : Communication Network 8
Socket System Calls
Socket 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/09 MCSE201 : Communication Network 8
05/01/09 MCSE201 : Communication Network 9
Socket Calls
Socket Calls
05/01/09 MCSE201 : Communication Network 9
Copyright © Communication Networks by Leon Garcia
TCP Socket Calls UDP Socket Calls
05/01/09 MCSE201 : 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 Telephony SIP [RFC 3261] UDP
Remote terminal
access
Telnet [RFC 854] TCP
Domain Name
server
DNS[RFC 883] UDP
05/01/09 MCSE201 : 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/09 MCSE201 : Communication Network 13
IP Utilities
IP Utilities
05/01/09 MCSE201 : 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/09 MCSE201 : Communication Network 14
Summary
Summary
 Layered Architecture
◦ OSI Reference Model
◦ TCP/IP Model
◦ Socket Programming with Demo
◦ TCP
• UDP
 Applications
◦ FTP
◦ IP Utilities
05/01/09 14
MCSE201 : Communication Network
05/01/09 MCSE201 : Communication Network 15
References
References
[1] Larry L Peterson, “Communication
Networks”,3rd
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”, 2nd
Edition
[5] RFC’s From http://www.ietf.org
[6] Leslie Miller, “ISO Reference Model of OSI”
ACM transaction in Nov 1981
05/01/09 MCSE201 : Communication Network 15

More Related Content

Similar to layeringanjanv1-090522005231-phpapp01.pdf

Advanced TCP/IP-based Industrial Networking for Engineers & Technicians
Advanced TCP/IP-based Industrial Networking for Engineers & TechniciansAdvanced TCP/IP-based Industrial Networking for Engineers & Technicians
Advanced TCP/IP-based Industrial Networking for Engineers & TechniciansLiving Online
 
Ccna v5-S1-Chapter 5
Ccna v5-S1-Chapter 5Ccna v5-S1-Chapter 5
Ccna v5-S1-Chapter 5Hamza Malik
 
Datacom_Section_2_-_Protocols.ppt
Datacom_Section_2_-_Protocols.pptDatacom_Section_2_-_Protocols.ppt
Datacom_Section_2_-_Protocols.pptKristopher Hefner
 
Get into Networking by Clearing Comptia Network+ Test
Get into Networking by Clearing Comptia Network+ TestGet into Networking by Clearing Comptia Network+ Test
Get into Networking by Clearing Comptia Network+ Testcertblaster
 
CCNA RS_NB - Chapter 10
CCNA RS_NB - Chapter 10CCNA RS_NB - Chapter 10
CCNA RS_NB - Chapter 10Irsandi Hasan
 
Introduction to Building Communication Protocols
Introduction to Building Communication Protocols Introduction to Building Communication Protocols
Introduction to Building Communication Protocols Mahmoud Ahmed
 
Banking and ATM networking reports
Banking and ATM networking reportsBanking and ATM networking reports
Banking and ATM networking reportsShakib Ansaar
 
Chapter 05 - Ethernet
Chapter 05 - EthernetChapter 05 - Ethernet
Chapter 05 - EthernetYaser Rahmati
 
Chapter 5 : Ethernet
Chapter 5 : EthernetChapter 5 : Ethernet
Chapter 5 : Ethernetteknetir
 
CCNAv5 - S1: Chapter 5 - Ethernet
CCNAv5 - S1: Chapter 5 - EthernetCCNAv5 - S1: Chapter 5 - Ethernet
CCNAv5 - S1: Chapter 5 - EthernetVuz Dở Hơi
 
Edge Device Multi-unicasting for Video Streaming
Edge Device Multi-unicasting for Video StreamingEdge Device Multi-unicasting for Video Streaming
Edge Device Multi-unicasting for Video StreamingTal Lavian Ph.D.
 
CSC1202_3_The_OSI_Reference_Model_-_V2.pptx
CSC1202_3_The_OSI_Reference_Model_-_V2.pptxCSC1202_3_The_OSI_Reference_Model_-_V2.pptx
CSC1202_3_The_OSI_Reference_Model_-_V2.pptxMuhammad Sohail
 
OSI model (7 LAYER )
OSI model (7 LAYER )OSI model (7 LAYER )
OSI model (7 LAYER )AAKASH S
 
CCNA RS_NB - Chapter 5
CCNA RS_NB - Chapter 5CCNA RS_NB - Chapter 5
CCNA RS_NB - Chapter 5Irsandi Hasan
 
MK-PPT Chapter 1.ppt
MK-PPT Chapter 1.pptMK-PPT Chapter 1.ppt
MK-PPT Chapter 1.pptNuthanR3
 
CCNA ppt Day 2
CCNA ppt Day 2CCNA ppt Day 2
CCNA ppt Day 2VISHNU N
 
computer network NCC l4dc assingment
computer network NCC l4dc assingment computer network NCC l4dc assingment
computer network NCC l4dc assingment David Parker
 

Similar to layeringanjanv1-090522005231-phpapp01.pdf (20)

Advanced TCP/IP-based Industrial Networking for Engineers & Technicians
Advanced TCP/IP-based Industrial Networking for Engineers & TechniciansAdvanced TCP/IP-based Industrial Networking for Engineers & Technicians
Advanced TCP/IP-based Industrial Networking for Engineers & Technicians
 
Ccna v5-S1-Chapter 5
Ccna v5-S1-Chapter 5Ccna v5-S1-Chapter 5
Ccna v5-S1-Chapter 5
 
Datacom_Section_2_-_Protocols.ppt
Datacom_Section_2_-_Protocols.pptDatacom_Section_2_-_Protocols.ppt
Datacom_Section_2_-_Protocols.ppt
 
Get into Networking by Clearing Comptia Network+ Test
Get into Networking by Clearing Comptia Network+ TestGet into Networking by Clearing Comptia Network+ Test
Get into Networking by Clearing Comptia Network+ Test
 
QSpiders - Dod Model
QSpiders - Dod ModelQSpiders - Dod Model
QSpiders - Dod Model
 
chapter 4.pptx
chapter 4.pptxchapter 4.pptx
chapter 4.pptx
 
CCNA RS_NB - Chapter 10
CCNA RS_NB - Chapter 10CCNA RS_NB - Chapter 10
CCNA RS_NB - Chapter 10
 
Introduction to Building Communication Protocols
Introduction to Building Communication Protocols Introduction to Building Communication Protocols
Introduction to Building Communication Protocols
 
Banking and ATM networking reports
Banking and ATM networking reportsBanking and ATM networking reports
Banking and ATM networking reports
 
CCNA Icnd110 s01l05
CCNA Icnd110 s01l05CCNA Icnd110 s01l05
CCNA Icnd110 s01l05
 
Chapter 05 - Ethernet
Chapter 05 - EthernetChapter 05 - Ethernet
Chapter 05 - Ethernet
 
Chapter 5 : Ethernet
Chapter 5 : EthernetChapter 5 : Ethernet
Chapter 5 : Ethernet
 
CCNAv5 - S1: Chapter 5 - Ethernet
CCNAv5 - S1: Chapter 5 - EthernetCCNAv5 - S1: Chapter 5 - Ethernet
CCNAv5 - S1: Chapter 5 - Ethernet
 
Edge Device Multi-unicasting for Video Streaming
Edge Device Multi-unicasting for Video StreamingEdge Device Multi-unicasting for Video Streaming
Edge Device Multi-unicasting for Video Streaming
 
CSC1202_3_The_OSI_Reference_Model_-_V2.pptx
CSC1202_3_The_OSI_Reference_Model_-_V2.pptxCSC1202_3_The_OSI_Reference_Model_-_V2.pptx
CSC1202_3_The_OSI_Reference_Model_-_V2.pptx
 
OSI model (7 LAYER )
OSI model (7 LAYER )OSI model (7 LAYER )
OSI model (7 LAYER )
 
CCNA RS_NB - Chapter 5
CCNA RS_NB - Chapter 5CCNA RS_NB - Chapter 5
CCNA RS_NB - Chapter 5
 
MK-PPT Chapter 1.ppt
MK-PPT Chapter 1.pptMK-PPT Chapter 1.ppt
MK-PPT Chapter 1.ppt
 
CCNA ppt Day 2
CCNA ppt Day 2CCNA ppt Day 2
CCNA ppt Day 2
 
computer network NCC l4dc assingment
computer network NCC l4dc assingment computer network NCC l4dc assingment
computer network NCC l4dc assingment
 

More from ImXaib

ERD introduction in databases model.pptx
ERD introduction in databases model.pptxERD introduction in databases model.pptx
ERD introduction in databases model.pptxImXaib
 
SDA presentation the basics of computer science .pptx
SDA presentation the basics of computer science .pptxSDA presentation the basics of computer science .pptx
SDA presentation the basics of computer science .pptxImXaib
 
terminal a clear presentation on the topic.pptx
terminal a clear presentation on the topic.pptxterminal a clear presentation on the topic.pptx
terminal a clear presentation on the topic.pptxImXaib
 
What is Machine Learning_updated documents.pptx
What is Machine Learning_updated documents.pptxWhat is Machine Learning_updated documents.pptx
What is Machine Learning_updated documents.pptxImXaib
 
Grid Computing and it's applications.PPTX
Grid Computing and it's applications.PPTXGrid Computing and it's applications.PPTX
Grid Computing and it's applications.PPTXImXaib
 
Firewall.pdf
Firewall.pdfFirewall.pdf
Firewall.pdfImXaib
 
4966709.ppt
4966709.ppt4966709.ppt
4966709.pptImXaib
 
lecture2.ppt
lecture2.pptlecture2.ppt
lecture2.pptImXaib
 
Tools.pptx
Tools.pptxTools.pptx
Tools.pptxImXaib
 
lec3_10.ppt
lec3_10.pptlec3_10.ppt
lec3_10.pptImXaib
 
ch12.ppt
ch12.pptch12.ppt
ch12.pptImXaib
 
Fullandparavirtualization.ppt
Fullandparavirtualization.pptFullandparavirtualization.ppt
Fullandparavirtualization.pptImXaib
 
mis9_ch08_ppt.ppt
mis9_ch08_ppt.pptmis9_ch08_ppt.ppt
mis9_ch08_ppt.pptImXaib
 
rooster-ipsecindepth.ppt
rooster-ipsecindepth.pptrooster-ipsecindepth.ppt
rooster-ipsecindepth.pptImXaib
 
Policy formation and enforcement.ppt
Policy formation and enforcement.pptPolicy formation and enforcement.ppt
Policy formation and enforcement.pptImXaib
 
Database schema architecture.ppt
Database schema architecture.pptDatabase schema architecture.ppt
Database schema architecture.pptImXaib
 
Transport layer security.ppt
Transport layer security.pptTransport layer security.ppt
Transport layer security.pptImXaib
 
Trends in DM.pptx
Trends in DM.pptxTrends in DM.pptx
Trends in DM.pptxImXaib
 
AleksandrDoroninSlides.ppt
AleksandrDoroninSlides.pptAleksandrDoroninSlides.ppt
AleksandrDoroninSlides.pptImXaib
 
dm15-visualization-data-mining.ppt
dm15-visualization-data-mining.pptdm15-visualization-data-mining.ppt
dm15-visualization-data-mining.pptImXaib
 

More from ImXaib (20)

ERD introduction in databases model.pptx
ERD introduction in databases model.pptxERD introduction in databases model.pptx
ERD introduction in databases model.pptx
 
SDA presentation the basics of computer science .pptx
SDA presentation the basics of computer science .pptxSDA presentation the basics of computer science .pptx
SDA presentation the basics of computer science .pptx
 
terminal a clear presentation on the topic.pptx
terminal a clear presentation on the topic.pptxterminal a clear presentation on the topic.pptx
terminal a clear presentation on the topic.pptx
 
What is Machine Learning_updated documents.pptx
What is Machine Learning_updated documents.pptxWhat is Machine Learning_updated documents.pptx
What is Machine Learning_updated documents.pptx
 
Grid Computing and it's applications.PPTX
Grid Computing and it's applications.PPTXGrid Computing and it's applications.PPTX
Grid Computing and it's applications.PPTX
 
Firewall.pdf
Firewall.pdfFirewall.pdf
Firewall.pdf
 
4966709.ppt
4966709.ppt4966709.ppt
4966709.ppt
 
lecture2.ppt
lecture2.pptlecture2.ppt
lecture2.ppt
 
Tools.pptx
Tools.pptxTools.pptx
Tools.pptx
 
lec3_10.ppt
lec3_10.pptlec3_10.ppt
lec3_10.ppt
 
ch12.ppt
ch12.pptch12.ppt
ch12.ppt
 
Fullandparavirtualization.ppt
Fullandparavirtualization.pptFullandparavirtualization.ppt
Fullandparavirtualization.ppt
 
mis9_ch08_ppt.ppt
mis9_ch08_ppt.pptmis9_ch08_ppt.ppt
mis9_ch08_ppt.ppt
 
rooster-ipsecindepth.ppt
rooster-ipsecindepth.pptrooster-ipsecindepth.ppt
rooster-ipsecindepth.ppt
 
Policy formation and enforcement.ppt
Policy formation and enforcement.pptPolicy formation and enforcement.ppt
Policy formation and enforcement.ppt
 
Database schema architecture.ppt
Database schema architecture.pptDatabase schema architecture.ppt
Database schema architecture.ppt
 
Transport layer security.ppt
Transport layer security.pptTransport layer security.ppt
Transport layer security.ppt
 
Trends in DM.pptx
Trends in DM.pptxTrends in DM.pptx
Trends in DM.pptx
 
AleksandrDoroninSlides.ppt
AleksandrDoroninSlides.pptAleksandrDoroninSlides.ppt
AleksandrDoroninSlides.ppt
 
dm15-visualization-data-mining.ppt
dm15-visualization-data-mining.pptdm15-visualization-data-mining.ppt
dm15-visualization-data-mining.ppt
 

Recently uploaded

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 

Recently uploaded (20)

Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 

layeringanjanv1-090522005231-phpapp01.pdf

  • 1. 05/01/09 MCSE201 : Communication Network 1 Layered Architecture Layered Architecture Anjan.K II Sem M.Tech Dept of CSE M.S.R.I.T 1
  • 2. 05/01/09 MCSE201 : Communication Network 2 Outline Outline  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 2 MCSE201 : Communication Network
  • 3. 05/01/09 MCSE201 : 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
  • 4. 05/01/09 MCSE201 : Communication Network 4 05/01/09 MCSE201 : 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) ( Oneor m orenodes w ithin thenetw ork Endhost Application Presentation Session Transport Netw ork Datalink Physical Netw ork Datalink Physical Netw ork Datalink Physical Endhost Application Presentation Session Transport Netw ork Datalink 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.,).
  • 5. 05/01/09 MCSE201 : 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
  • 6. Problem 05/01/09 MCSE201 : 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 ………..
  • 7. 05/01/09 MCSE201 : Communication Network 7 7 Application Programming Interfaces(API)- Sockets Application 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/09 MCSE201 : Communication Network
  • 8. 05/01/09 MCSE201 : Communication Network 8 Socket System Calls Socket 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/09 MCSE201 : Communication Network 8
  • 9. 05/01/09 MCSE201 : Communication Network 9 Socket Calls Socket Calls 05/01/09 MCSE201 : Communication Network 9 Copyright © Communication Networks by Leon Garcia TCP Socket Calls UDP Socket Calls
  • 10.
  • 11. 05/01/09 MCSE201 : 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 Telephony SIP [RFC 3261] UDP Remote terminal access Telnet [RFC 854] TCP Domain Name server DNS[RFC 883] UDP
  • 12. 05/01/09 MCSE201 : 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
  • 13. 05/01/09 MCSE201 : Communication Network 13 IP Utilities IP Utilities 05/01/09 MCSE201 : 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
  • 14. 05/01/09 MCSE201 : Communication Network 14 Summary Summary  Layered Architecture ◦ OSI Reference Model ◦ TCP/IP Model ◦ Socket Programming with Demo ◦ TCP • UDP  Applications ◦ FTP ◦ IP Utilities 05/01/09 14 MCSE201 : Communication Network
  • 15. 05/01/09 MCSE201 : Communication Network 15 References References [1] Larry L Peterson, “Communication Networks”,3rd 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”, 2nd Edition [5] RFC’s From http://www.ietf.org [6] Leslie Miller, “ISO Reference Model of OSI” ACM transaction in Nov 1981 05/01/09 MCSE201 : Communication Network 15