SlideShare a Scribd company logo
3
Most read
4
Most read
15
Most read
05/01/09 MCSE201 : Communication Network Layered Architecture Anjan.K II Sem M.Tech  Dept of CSE M.S.R.I.T
05/01/09 MCSE201 : Communication Network 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 MCSE201 : Communication Network
05/01/09 MCSE201 : Communication Network 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 05/01/09 MCSE201 : Communication Network 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) ‏ Copyright © Computer Networks by Larry Peterson Physical   Transmit raw bits over the medium.  Data Link Abstraction of an error free medium (frame) ‏ Flow Control Network   Routing (Packets) ‏ Addressing (IP address) ‏ 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 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
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% Problem 05/01/09 MCSE201 : Communication Network 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 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 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) ‏ 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
05/01/09 MCSE201 : Communication Network Socket Calls 05/01/09 MCSE201 : Communication Network Copyright © Communication Networks by Leon Garcia TCP Socket Calls UDP Socket Calls
 
05/01/09 MCSE201 : Communication Network 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 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 IP Utilities 05/01/09 MCSE201 : Communication Network 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 Summary Layered Architecture OSI Reference Model TCP/IP Model Socket Programming  with Demo TCP UDP Applications FTP IP Utilities 05/01/09 MCSE201 : Communication Network
05/01/09 MCSE201 : Communication Network References [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/09 MCSE201 : Communication Network

More Related Content

PPT
TCP/IP Network ppt
PPTX
Framing in data link layer
PPTX
computer network OSI layer
PPT
Oracle backup and recovery
PPTX
Data link layer
PPT
Chapter 4 data link layer
PPT
Chapter 4-The Medium Access Control Sublayer.ppt
PPT
Ports & sockets
TCP/IP Network ppt
Framing in data link layer
computer network OSI layer
Oracle backup and recovery
Data link layer
Chapter 4 data link layer
Chapter 4-The Medium Access Control Sublayer.ppt
Ports & sockets

What's hot (20)

PPT
System models in distributed system
PPTX
Lecture 3 threads
DOCX
Distributed system Tanenbaum chapter 1,2,3,4 notes
PPT
Communication primitives
PPTX
Replication in Distributed Systems
PPTX
Expert system
PPTX
Introduction to Distributed System
PPTX
Data communication and networks by B. Forouzan
PPTX
Network Layer
PPTX
Distributed transaction
PPTX
Distributed operating system
PPTX
object oriented methodologies
PPT
remote procedure calls
PPT
Chapter 2 - Network Models
PPT
OSI Model
PPTX
peer to peer and client server model
PPTX
INTER PROCESS COMMUNICATION (IPC).pptx
PPT
File replication
PPTX
Distributed web based systems
PDF
Network layer logical addressing
System models in distributed system
Lecture 3 threads
Distributed system Tanenbaum chapter 1,2,3,4 notes
Communication primitives
Replication in Distributed Systems
Expert system
Introduction to Distributed System
Data communication and networks by B. Forouzan
Network Layer
Distributed transaction
Distributed operating system
object oriented methodologies
remote procedure calls
Chapter 2 - Network Models
OSI Model
peer to peer and client server model
INTER PROCESS COMMUNICATION (IPC).pptx
File replication
Distributed web based systems
Network layer logical addressing
Ad

Similar to Layered Architecture (20)

PDF
layeringanjanv1-090522005231-phpapp01.pdf
PDF
Cisco discovery d homesb module 6 - v.4 in english.
PPTX
CSC1202_3_The_OSI_Reference_Model_-_V2.pptx
PPT
Hardware9
PDF
Yu linux-tsm2004
PPTX
16.) layer 3 (basic tcp ip routing)
PPTX
Basics of Computer Networks
PDF
Free CCNA workbook by networkers home pdf
PPTX
CSC1202_3_The_OSI_Reference_Model_-_V2.pptx
PPT
ch2 day 1 -Communicating over the Network---2.ppt
PPTX
Presentation 3 for Students of professordkinney.com
PPT
class28.ppt
PPT
class30.ppt
PPT
Advances in computer networks, computer architecture
PDF
CSC1202_3_The_OSI_Reference_Model_-_V2.pdf
PDF
CCNA 200-120 Exam Quick Notes
PDF
Network security on Cisco routers and switches
PPTX
Internet protocol (ip) ppt
PPT
Session 2 Tp 2
PPTX
ComNet-Ethernet101.GW (1) routing and switching.pptx
layeringanjanv1-090522005231-phpapp01.pdf
Cisco discovery d homesb module 6 - v.4 in english.
CSC1202_3_The_OSI_Reference_Model_-_V2.pptx
Hardware9
Yu linux-tsm2004
16.) layer 3 (basic tcp ip routing)
Basics of Computer Networks
Free CCNA workbook by networkers home pdf
CSC1202_3_The_OSI_Reference_Model_-_V2.pptx
ch2 day 1 -Communicating over the Network---2.ppt
Presentation 3 for Students of professordkinney.com
class28.ppt
class30.ppt
Advances in computer networks, computer architecture
CSC1202_3_The_OSI_Reference_Model_-_V2.pdf
CCNA 200-120 Exam Quick Notes
Network security on Cisco routers and switches
Internet protocol (ip) ppt
Session 2 Tp 2
ComNet-Ethernet101.GW (1) routing and switching.pptx
Ad

More from Dr Anjan Krishnamurthy (14)

PPTX
Document typesetting using LateX
PPTX
Open Issues On Sqam
PPT
Cdma Anjan V1
PPT
Research Paper On Correlation
PPT
SSL/TLS implementation using JSSE
PPT
Mining Gnome Data
PPT
Potter’S Wheel
PPT
Elementary Concepts of data minig
PPT
Kettle – Etl Tool
PPT
Mathematical analysis of Graph and Huff amn coding
PPT
Expressive And Modular Predicate Dispatch In Java
PPT
Interfaces & Packages V2
Document typesetting using LateX
Open Issues On Sqam
Cdma Anjan V1
Research Paper On Correlation
SSL/TLS implementation using JSSE
Mining Gnome Data
Potter’S Wheel
Elementary Concepts of data minig
Kettle – Etl Tool
Mathematical analysis of Graph and Huff amn coding
Expressive And Modular Predicate Dispatch In Java
Interfaces & Packages V2

Recently uploaded (20)

PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PPTX
Pharma ospi slides which help in ospi learning
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Open Quiz Monsoon Mind Game Final Set.pptx
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
Pre independence Education in Inndia.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Cardiovascular Pharmacology for pharmacy students.pptx
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Cell Structure & Organelles in detailed.
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Microbial diseases, their pathogenesis and prophylaxis
Week 4 Term 3 Study Techniques revisited.pptx
Pharma ospi slides which help in ospi learning
O7-L3 Supply Chain Operations - ICLT Program
01-Introduction-to-Information-Management.pdf
Open Quiz Monsoon Mind Game Final Set.pptx
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Anesthesia in Laparoscopic Surgery in India
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Pre independence Education in Inndia.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Cardiovascular Pharmacology for pharmacy students.pptx
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Cell Structure & Organelles in detailed.
human mycosis Human fungal infections are called human mycosis..pptx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...

Layered Architecture

  • 1. 05/01/09 MCSE201 : Communication Network Layered Architecture Anjan.K II Sem M.Tech Dept of CSE M.S.R.I.T
  • 2. 05/01/09 MCSE201 : Communication Network 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 MCSE201 : Communication Network
  • 3. 05/01/09 MCSE201 : Communication Network 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 05/01/09 MCSE201 : Communication Network 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) ‏ Copyright © Computer Networks by Larry Peterson Physical Transmit raw bits over the medium. Data Link Abstraction of an error free medium (frame) ‏ Flow Control Network Routing (Packets) ‏ Addressing (IP address) ‏ 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 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. 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% Problem 05/01/09 MCSE201 : Communication Network 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 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 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) ‏ 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
  • 9. 05/01/09 MCSE201 : Communication Network Socket Calls 05/01/09 MCSE201 : Communication Network Copyright © Communication Networks by Leon Garcia TCP Socket Calls UDP Socket Calls
  • 10.  
  • 11. 05/01/09 MCSE201 : Communication Network 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 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 IP Utilities 05/01/09 MCSE201 : Communication Network 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 Summary Layered Architecture OSI Reference Model TCP/IP Model Socket Programming with Demo TCP UDP Applications FTP IP Utilities 05/01/09 MCSE201 : Communication Network
  • 15. 05/01/09 MCSE201 : Communication Network References [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/09 MCSE201 : Communication Network

Editor's Notes

  • #2: <number><number><number><number><number><number><number><number><number><number><number><number><number><number><number><number><number><number><number><number><number><number><number><number><number><number><number><number>111111121212121212121212121212