Application Layer Protocol Amitava Nag Assistant Professor amitavanag.09@gmail.com April 6, 2012 Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 1 / 37
Architecture of WWW Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 2 / 37
Architecture of WWW The WWW is a distributed client-server service, in which a client using a browser can access a service using a server. Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 2 / 37
Architecture of WWW The WWW is a distributed client-server service, in which a client using a browser can access a service using a server. The service provided is distributed over many locations called sites. Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 2 / 37
Architecture of WWW Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 3 / 37
Browser Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 4 / 37
Internet apps: application, transport protocols Application Application layer Underlying protocol transport protocol email SMTP[RFC2821] TCP remote terminal Telnet[RFC854] TCP access web HTTP[RFC2616] TCP file transfer FTP[RFC959] TCP Remote File Server NFS UDP/TCP Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 5 / 37
Web Page Identifier Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37
Web Page Identifier Known as Uniform Resource Locator (URL) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37
Web Page Identifier Known as Uniform Resource Locator (URL) Encodes Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37
Web Page Identifier Known as Uniform Resource Locator (URL) Encodes - Access protocol to use Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37
Web Page Identifier Known as Uniform Resource Locator (URL) Encodes - Access protocol to use - Domain name of server Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37
Web Page Identifier Known as Uniform Resource Locator (URL) Encodes - Access protocol to use - Domain name of server - Protocol port number (optional) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37
Web Page Identifier Known as Uniform Resource Locator (URL) Encodes - Access protocol to use - Domain name of server - Protocol port number (optional) - Path through servers file system (optional) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37
Web Page Identifier Known as Uniform Resource Locator (URL) Encodes - Access protocol to use - Domain name of server - Protocol port number (optional) - Path through servers file system (optional) - Parameters (optional) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37
Web Page Identifier Known as Uniform Resource Locator (URL) Encodes - Access protocol to use - Domain name of server - Protocol port number (optional) - Path through servers file system (optional) - Parameters (optional) - Query (optional) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37
Web Page Identifier Known as Uniform Resource Locator (URL) Encodes - Access protocol to use - Domain name of server - Protocol port number (optional) - Path through servers file system (optional) - Parameters (optional) - Query (optional) Format http: // hostname [: port] / path [; parameters] [? query] Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37
Web and HTTP Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 7 / 37
Web and HTTP Web page consists of objects Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 7 / 37
Web and HTTP Web page consists of objects Object can be HTML file, JPEG image, Java applet, audio file, Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 7 / 37
Web and HTTP Web page consists of objects Object can be HTML file, JPEG image, Java applet, audio file, Web page consists of base HTML-file which includes several referenced objects Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 7 / 37
Web and HTTP Web page consists of objects Object can be HTML file, JPEG image, Java applet, audio file, Web page consists of base HTML-file which includes several referenced objects Each object is addressable by a URL Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 7 / 37
Web and HTTP Web page consists of objects Object can be HTML file, JPEG image, Java applet, audio file, Web page consists of base HTML-file which includes several referenced objects Each object is addressable by a URL Example URL:www.someschool.edu/someDept/pic.gif Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 7 / 37
HTTP Characteristics Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 8 / 37
HTTP Characteristics Application level Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 8 / 37
HTTP Characteristics Application level Request / response paradigm Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 8 / 37
HTTP Characteristics Application level Request / response paradigm Stateless Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 8 / 37
HTTP Characteristics Application level Request / response paradigm Stateless Permits bi-directional transfer Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 8 / 37
HTTP Characteristics Application level Request / response paradigm Stateless Permits bi-directional transfer Offers capability negotiation Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 8 / 37
HTTP Characteristics Application level Request / response paradigm Stateless Permits bi-directional transfer Offers capability negotiation Support for caching Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 8 / 37
HTTP Characteristics Application level Request / response paradigm Stateless Permits bi-directional transfer Offers capability negotiation Support for caching Support for intermediaries Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 8 / 37
HTTP overview Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 9 / 37
HTTP overview ( continued ) Uses TCP : Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 10 / 37
HTTP overview ( continued ) Uses TCP : HTTP client initiates TCP connection (creates socket) to ( www.someschool.edu/ ) server on port 80 (default port number for HTTP). Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 10 / 37
HTTP overview ( continued ) Uses TCP : HTTP client initiates TCP connection (creates socket) to ( www.someschool.edu/ ) server on port 80 (default port number for HTTP). HTTP server accepts TCP connection from client Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 10 / 37
HTTP overview ( continued ) Uses TCP : HTTP client initiates TCP connection (creates socket) to ( www.someschool.edu/ ) server on port 80 (default port number for HTTP). HTTP server accepts TCP connection from client HTTP messages (application-layer protocol messages) exchanged between browser ( HTTP client ) and Web server ( HTTP server ) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 10 / 37
HTTP overview ( continued ) Uses TCP : HTTP client initiates TCP connection (creates socket) to ( www.someschool.edu/ ) server on port 80 (default port number for HTTP). HTTP server accepts TCP connection from client HTTP messages (application-layer protocol messages) exchanged between browser ( HTTP client ) and Web server ( HTTP server ) TCP connection closed Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 10 / 37
HTTP connections Nonpersistent HTTP Persistent HTTP At most one object is sent over Multiple objects can be sent over a TCP connection. single TCP connection between client and server. HTTP/1.0 uses nonpersistent HTTP HTTP/1.1 uses persistent connections in default mode Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 11 / 37
FTP: the file transfer protocol Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 12 / 37
FTP: the file transfer protocol transfer file to/from remote host Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 12 / 37
FTP: the file transfer protocol transfer file to/from remote host client/server model Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 12 / 37
FTP: the file transfer protocol transfer file to/from remote host client/server model client: side that initiates transfer (either to/from remote) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 12 / 37
FTP: the file transfer protocol transfer file to/from remote host client/server model client: side that initiates transfer (either to/from remote) server: remote host Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 12 / 37
FTP: the file transfer protocol transfer file to/from remote host client/server model client: side that initiates transfer (either to/from remote) server: remote host ftp: RFC 959 Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 12 / 37
FTP: the file transfer protocol transfer file to/from remote host client/server model client: side that initiates transfer (either to/from remote) server: remote host ftp: RFC 959 ftp server: port 21 Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 12 / 37
FTP overview Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 13 / 37
FTP:connections Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 14 / 37
Opening the control connection Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 15 / 37
Creating the data connection Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 16 / 37
FTP: separate control, data connections Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37
FTP: separate control, data connections FTP client contacts FTP server at port 21, specifying TCP as transport protocol Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37
FTP: separate control, data connections FTP client contacts FTP server at port 21, specifying TCP as transport protocol Client obtains authorization over control connection Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37
FTP: separate control, data connections 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. Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37
FTP: separate control, data connections 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 Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37
FTP: separate control, data connections 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. Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37
FTP: separate control, data connections 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. Server opens a second TCP data connection to transfer another file. Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37
FTP: separate control, data connections 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. Server opens a second TCP data connection to transfer another file. Control connection: out of band Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37
FTP: separate control, data connections 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. Server opens a second TCP data connection to transfer another file. Control connection: out of band FTP server maintains state: current directory, earlier authentication Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37
Remote Login: Telnet Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 18 / 37
Remote Login: Telnet TELNET is a general-purpose client-server application program Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 18 / 37
Remote Login: Telnet TELNET is a general-purpose client-server application program TELNET enables the establishment of a connection to a remote system in such a way that the local terminal appears to be a terminal at the remote system. Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 18 / 37
Figure:Local login Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 19 / 37
Figure:Remote login Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 20 / 37
Electronic Mail Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 21 / 37
Electronic Mail Three major components: Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 21 / 37
Electronic Mail Three major components: 1 user agents Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 21 / 37
Electronic Mail Three major components: 1 user agents 2 mail servers Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 21 / 37
Electronic Mail Three major components: 1 user agents 2 mail servers 3 simple mail transfer protocol: SMTP Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 21 / 37
Electronic Mail Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 22 / 37
Electronic Mail: mail servers Mail Servers Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 23 / 37
Electronic Mail: mail servers Mail Servers mailbox contains incoming messages for user Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 23 / 37
Electronic Mail: mail servers Mail Servers mailbox contains incoming messages for user message queue of outgoing (to be sent) mail messages Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 23 / 37
Electronic Mail: mail servers Mail Servers mailbox contains incoming messages for user message queue of outgoing (to be sent) mail messages SMTP protocol between mail servers to send email messages Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 23 / 37
Electronic Mail: mail servers Mail Servers mailbox contains incoming messages for user message queue of outgoing (to be sent) mail messages SMTP protocol between mail servers to send email messages client: sending mail server Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 23 / 37
Electronic Mail: mail servers Mail Servers mailbox contains incoming messages for user message queue of outgoing (to be sent) mail messages SMTP protocol between mail servers to send email messages client: sending mail server server: receiving mail server Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 23 / 37
Electronic Mail: SMTP [RFC 2821] Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37
Electronic Mail: SMTP [RFC 2821] uses TCP to reliably transfer email message from client to server, port 25 Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37
Electronic Mail: SMTP [RFC 2821] uses TCP to reliably transfer email message from client to server, port 25 direct transfer: sending server to receiving server Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37
Electronic Mail: SMTP [RFC 2821] uses TCP to reliably transfer email message from client to server, port 25 direct transfer: sending server to receiving server three phases of transfer Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37
Electronic Mail: SMTP [RFC 2821] uses TCP to reliably transfer email message from client to server, port 25 direct transfer: sending server to receiving server three phases of transfer handshaking (greeting) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37
Electronic Mail: SMTP [RFC 2821] uses TCP to reliably transfer email message from client to server, port 25 direct transfer: sending server to receiving server three phases of transfer handshaking (greeting) transfer of messages Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37
Electronic Mail: SMTP [RFC 2821] uses TCP to reliably transfer email message from client to server, port 25 direct transfer: sending server to receiving server three phases of transfer handshaking (greeting) transfer of messages closure Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37
Electronic Mail: SMTP [RFC 2821] uses TCP to reliably transfer email message from client to server, port 25 direct transfer: sending server to receiving server three phases of transfer handshaking (greeting) transfer of messages closure command/response interaction Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37
Electronic Mail: SMTP [RFC 2821] uses TCP to reliably transfer email message from client to server, port 25 direct transfer: sending server to receiving server three phases of transfer handshaking (greeting) transfer of messages closure command/response interaction commands: ASCII text Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37
Electronic Mail: SMTP [RFC 2821] uses TCP to reliably transfer email message from client to server, port 25 direct transfer: sending server to receiving server three phases of transfer handshaking (greeting) transfer of messages closure command/response interaction commands: ASCII text response: status code and phrase Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37
Electronic Mail: SMTP [RFC 2821] uses TCP to reliably transfer email message from client to server, port 25 direct transfer: sending server to receiving server three phases of transfer handshaking (greeting) transfer of messages closure command/response interaction commands: ASCII text response: status code and phrase messages must be in 7-bit ASCII Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37
Scenario: Alice sends message to Bob Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 25 / 37
Scenario: Alice sends message to Bob 1 Alice uses UA to compose message and to bob@someschool.edu Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 25 / 37
Scenario: Alice sends message to Bob 1 Alice uses UA to compose message and to bob@someschool.edu 2 Alices UA sends message to her mail server; message placed in message queue Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 25 / 37
Scenario: Alice sends message to Bob 1 Alice uses UA to compose message and to bob@someschool.edu 2 Alices UA sends message to her mail server; message placed in message queue 3 Client side of SMTP opens TCP connection with Bobs mail server Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 25 / 37
Scenario: Alice sends message to Bob 1 Alice uses UA to compose message and to bob@someschool.edu 2 Alices UA sends message to her mail server; message placed in message queue 3 Client side of SMTP opens TCP connection with Bobs mail server 4 SMTP client sends Alices message over the TCP connection Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 25 / 37
Scenario: Alice sends message to Bob 1 Alice uses UA to compose message and to bob@someschool.edu 2 Alices UA sends message to her mail server; message placed in message queue 3 Client side of SMTP opens TCP connection with Bobs mail server 4 SMTP client sends Alices message over the TCP connection 5 Bobs mail server places the message in Bobs mailbox Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 25 / 37
Scenario: Alice sends message to Bob 1 Alice uses UA to compose message and to bob@someschool.edu 2 Alices UA sends message to her mail server; message placed in message queue 3 Client side of SMTP opens TCP connection with Bobs mail server 4 SMTP client sends Alices message over the TCP connection 5 Bobs mail server places the message in Bobs mailbox 6 Bob invokes his user agent to read message Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 25 / 37
Figure: Alice sends message to Bob Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 26 / 37
Mail access protocols Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 27 / 37
Mail access protocols SMTP: delivery/storage to receivers server Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 27 / 37
Mail access protocols SMTP: delivery/storage to receivers server Mail access protocol: retrieval from server Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 27 / 37
Mail access protocols SMTP: delivery/storage to receivers server Mail access protocol: retrieval from server POP: Post Office Protocol [RFC 1939] Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 27 / 37
Mail access protocols SMTP: delivery/storage to receivers server Mail access protocol: retrieval from server POP: Post Office Protocol [RFC 1939] authorization (agent < −− >server) and download Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 27 / 37
Mail access protocols SMTP: delivery/storage to receivers server Mail access protocol: retrieval from server POP: Post Office Protocol [RFC 1939] authorization (agent < −− >server) and download IMAP: Internet Mail Access Protocol [RFC 1730] Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 27 / 37
Mail access protocols SMTP: delivery/storage to receivers server Mail access protocol: retrieval from server POP: Post Office Protocol [RFC 1939] authorization (agent < −− >server) and download IMAP: Internet Mail Access Protocol [RFC 1730] more features (more complex) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 27 / 37
Mail access protocols SMTP: delivery/storage to receivers server Mail access protocol: retrieval from server POP: Post Office Protocol [RFC 1939] authorization (agent < −− >server) and download IMAP: Internet Mail Access Protocol [RFC 1730] more features (more complex) manipulation of stored msgs on server Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 27 / 37
Mail access protocols SMTP: delivery/storage to receivers server Mail access protocol: retrieval from server POP: Post Office Protocol [RFC 1939] authorization (agent < −− >server) and download IMAP: Internet Mail Access Protocol [RFC 1730] more features (more complex) manipulation of stored msgs on server HTTP: Hotmail , Yahoo! Mail, etc. Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 27 / 37
Figure:Mail access protocols Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 28 / 37
Network Management Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37
Network Management Management = Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37
Network Management Management = Initialization, Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37
Network Management Management = Initialization, Monitoring, Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37
Network Management Management = Initialization, Monitoring, Control Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37
Network Management Management = Initialization, Monitoring, Control Today: automated, reliable diagnosis, and automatic control are still in a primitive stage Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37
Network Management Management = Initialization, Monitoring, Control Today: automated, reliable diagnosis, and automatic control are still in a primitive stage Architecture: Manager, Agents and Management Information Base (MIB) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37
Network Management Management = Initialization, Monitoring, Control Today: automated, reliable diagnosis, and automatic control are still in a primitive stage Architecture: Manager, Agents and Management Information Base (MIB) Observe that management-plane has a new interface to the network distinct from data and control-plane Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37
Simple Network Management Protocol (SNMP) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 30 / 37
Simple Network Management Protocol (SNMP) SNMP is a framework for managing devices in an internet using the TCP/IP protocol suit Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 30 / 37
Simple Network Management Protocol (SNMP) SNMP is a framework for managing devices in an internet using the TCP/IP protocol suit A manager, usually a lost that, controls and monitor a set of agents,usually routers Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 30 / 37
Simple Network Management Protocol (SNMP) SNMP is a framework for managing devices in an internet using the TCP/IP protocol suit A manager, usually a lost that, controls and monitor a set of agents,usually routers The manager is a host that runs the SNMP client program. Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 30 / 37
Simple Network Management Protocol (SNMP) SNMP is a framework for managing devices in an internet using the TCP/IP protocol suit A manager, usually a lost that, controls and monitor a set of agents,usually routers The manager is a host that runs the SNMP client program. The agent is a router or host that runs the SNMP server program Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 30 / 37
Figure:Mail access protocols Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 31 / 37
MANAGEMENT COMPONENTS Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 32 / 37
MANAGEMENT COMPONENTS SNMP requires the use of two other protocols: Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 32 / 37
MANAGEMENT COMPONENTS SNMP requires the use of two other protocols: 1 Structure of Management Information (SMI) and Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 32 / 37
MANAGEMENT COMPONENTS SNMP requires the use of two other protocols: 1 Structure of Management Information (SMI) and 2 Management Information Base (MIB) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 32 / 37
MANAGEMENT COMPONENTS SNMP requires the use of two other protocols: 1 Structure of Management Information (SMI) and 2 Management Information Base (MIB) Network management on the Internet is done through the cooperation of SNMP, SMI, and MIB. Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 32 / 37
Management Information Base(MIB) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 33 / 37
Management Information Base(MIB) MIB is a second component used in network management Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 33 / 37
Management Information Base(MIB) MIB is a second component used in network management Each agent has its own MIB, a collection of all the objects that the manager can manage. Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 33 / 37
Figure:Management Information Base, version 2 (MIB2) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 34 / 37
SNMP Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 35 / 37
SNMP SNMP is an application program that allows Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 35 / 37
SNMP SNMP is an application program that allows 1 a manager to retrieve the value of an object defined in an agent; Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 35 / 37
SNMP SNMP is an application program that allows 1 a manager to retrieve the value of an object defined in an agent; 2 a manager to store a value in an object defined in an agent; and Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 35 / 37
SNMP SNMP is an application program that allows 1 a manager to retrieve the value of an object defined in an agent; 2 a manager to store a value in an object defined in an agent; and 3 an agent to send an alarm message about an abnormal situation to the manager Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 35 / 37
Figure:SNMP Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 36 / 37
The End Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 37 / 37

Application layer protocol

  • 1.
    Application Layer Protocol AmitavaNag Assistant Professor amitavanag.09@gmail.com April 6, 2012 Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 1 / 37
  • 2.
    Architecture of WWW AmitavaNag (Academy of Technology) Application Layer Protocol April 6, 2012 2 / 37
  • 3.
    Architecture of WWW TheWWW is a distributed client-server service, in which a client using a browser can access a service using a server. Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 2 / 37
  • 4.
    Architecture of WWW TheWWW is a distributed client-server service, in which a client using a browser can access a service using a server. The service provided is distributed over many locations called sites. Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 2 / 37
  • 5.
    Architecture of WWW AmitavaNag (Academy of Technology) Application Layer Protocol April 6, 2012 3 / 37
  • 6.
    Browser Amitava Nag (Academyof Technology) Application Layer Protocol April 6, 2012 4 / 37
  • 7.
    Internet apps: application,transport protocols Application Application layer Underlying protocol transport protocol email SMTP[RFC2821] TCP remote terminal Telnet[RFC854] TCP access web HTTP[RFC2616] TCP file transfer FTP[RFC959] TCP Remote File Server NFS UDP/TCP Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 5 / 37
  • 8.
    Web Page Identifier AmitavaNag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37
  • 9.
    Web Page Identifier Knownas Uniform Resource Locator (URL) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37
  • 10.
    Web Page Identifier Knownas Uniform Resource Locator (URL) Encodes Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37
  • 11.
    Web Page Identifier Knownas Uniform Resource Locator (URL) Encodes - Access protocol to use Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37
  • 12.
    Web Page Identifier Knownas Uniform Resource Locator (URL) Encodes - Access protocol to use - Domain name of server Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37
  • 13.
    Web Page Identifier Knownas Uniform Resource Locator (URL) Encodes - Access protocol to use - Domain name of server - Protocol port number (optional) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37
  • 14.
    Web Page Identifier Knownas Uniform Resource Locator (URL) Encodes - Access protocol to use - Domain name of server - Protocol port number (optional) - Path through servers file system (optional) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37
  • 15.
    Web Page Identifier Knownas Uniform Resource Locator (URL) Encodes - Access protocol to use - Domain name of server - Protocol port number (optional) - Path through servers file system (optional) - Parameters (optional) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37
  • 16.
    Web Page Identifier Knownas Uniform Resource Locator (URL) Encodes - Access protocol to use - Domain name of server - Protocol port number (optional) - Path through servers file system (optional) - Parameters (optional) - Query (optional) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37
  • 17.
    Web Page Identifier Knownas Uniform Resource Locator (URL) Encodes - Access protocol to use - Domain name of server - Protocol port number (optional) - Path through servers file system (optional) - Parameters (optional) - Query (optional) Format http: // hostname [: port] / path [; parameters] [? query] Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37
  • 18.
    Web and HTTP AmitavaNag (Academy of Technology) Application Layer Protocol April 6, 2012 7 / 37
  • 19.
    Web and HTTP Webpage consists of objects Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 7 / 37
  • 20.
    Web and HTTP Webpage consists of objects Object can be HTML file, JPEG image, Java applet, audio file, Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 7 / 37
  • 21.
    Web and HTTP Webpage consists of objects Object can be HTML file, JPEG image, Java applet, audio file, Web page consists of base HTML-file which includes several referenced objects Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 7 / 37
  • 22.
    Web and HTTP Webpage consists of objects Object can be HTML file, JPEG image, Java applet, audio file, Web page consists of base HTML-file which includes several referenced objects Each object is addressable by a URL Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 7 / 37
  • 23.
    Web and HTTP Webpage consists of objects Object can be HTML file, JPEG image, Java applet, audio file, Web page consists of base HTML-file which includes several referenced objects Each object is addressable by a URL Example URL:www.someschool.edu/someDept/pic.gif Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 7 / 37
  • 24.
    HTTP Characteristics Amitava Nag(Academy of Technology) Application Layer Protocol April 6, 2012 8 / 37
  • 25.
    HTTP Characteristics Application level AmitavaNag (Academy of Technology) Application Layer Protocol April 6, 2012 8 / 37
  • 26.
    HTTP Characteristics Application level Request/ response paradigm Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 8 / 37
  • 27.
    HTTP Characteristics Application level Request/ response paradigm Stateless Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 8 / 37
  • 28.
    HTTP Characteristics Application level Request/ response paradigm Stateless Permits bi-directional transfer Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 8 / 37
  • 29.
    HTTP Characteristics Application level Request/ response paradigm Stateless Permits bi-directional transfer Offers capability negotiation Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 8 / 37
  • 30.
    HTTP Characteristics Application level Request/ response paradigm Stateless Permits bi-directional transfer Offers capability negotiation Support for caching Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 8 / 37
  • 31.
    HTTP Characteristics Application level Request/ response paradigm Stateless Permits bi-directional transfer Offers capability negotiation Support for caching Support for intermediaries Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 8 / 37
  • 32.
    HTTP overview Amitava Nag(Academy of Technology) Application Layer Protocol April 6, 2012 9 / 37
  • 33.
    HTTP overview (continued ) Uses TCP : Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 10 / 37
  • 34.
    HTTP overview (continued ) Uses TCP : HTTP client initiates TCP connection (creates socket) to ( www.someschool.edu/ ) server on port 80 (default port number for HTTP). Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 10 / 37
  • 35.
    HTTP overview (continued ) Uses TCP : HTTP client initiates TCP connection (creates socket) to ( www.someschool.edu/ ) server on port 80 (default port number for HTTP). HTTP server accepts TCP connection from client Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 10 / 37
  • 36.
    HTTP overview (continued ) Uses TCP : HTTP client initiates TCP connection (creates socket) to ( www.someschool.edu/ ) server on port 80 (default port number for HTTP). HTTP server accepts TCP connection from client HTTP messages (application-layer protocol messages) exchanged between browser ( HTTP client ) and Web server ( HTTP server ) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 10 / 37
  • 37.
    HTTP overview (continued ) Uses TCP : HTTP client initiates TCP connection (creates socket) to ( www.someschool.edu/ ) server on port 80 (default port number for HTTP). HTTP server accepts TCP connection from client HTTP messages (application-layer protocol messages) exchanged between browser ( HTTP client ) and Web server ( HTTP server ) TCP connection closed Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 10 / 37
  • 38.
    HTTP connections Nonpersistent HTTPPersistent HTTP At most one object is sent over Multiple objects can be sent over a TCP connection. single TCP connection between client and server. HTTP/1.0 uses nonpersistent HTTP HTTP/1.1 uses persistent connections in default mode Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 11 / 37
  • 39.
    FTP: the filetransfer protocol Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 12 / 37
  • 40.
    FTP: the filetransfer protocol transfer file to/from remote host Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 12 / 37
  • 41.
    FTP: the filetransfer protocol transfer file to/from remote host client/server model Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 12 / 37
  • 42.
    FTP: the filetransfer protocol transfer file to/from remote host client/server model client: side that initiates transfer (either to/from remote) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 12 / 37
  • 43.
    FTP: the filetransfer protocol transfer file to/from remote host client/server model client: side that initiates transfer (either to/from remote) server: remote host Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 12 / 37
  • 44.
    FTP: the filetransfer protocol transfer file to/from remote host client/server model client: side that initiates transfer (either to/from remote) server: remote host ftp: RFC 959 Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 12 / 37
  • 45.
    FTP: the filetransfer protocol transfer file to/from remote host client/server model client: side that initiates transfer (either to/from remote) server: remote host ftp: RFC 959 ftp server: port 21 Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 12 / 37
  • 46.
    FTP overview Amitava Nag(Academy of Technology) Application Layer Protocol April 6, 2012 13 / 37
  • 47.
    FTP:connections Amitava Nag (Academyof Technology) Application Layer Protocol April 6, 2012 14 / 37
  • 48.
    Opening the controlconnection Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 15 / 37
  • 49.
    Creating the dataconnection Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 16 / 37
  • 50.
    FTP: separate control,data connections Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37
  • 51.
    FTP: separate control,data connections FTP client contacts FTP server at port 21, specifying TCP as transport protocol Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37
  • 52.
    FTP: separate control,data connections FTP client contacts FTP server at port 21, specifying TCP as transport protocol Client obtains authorization over control connection Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37
  • 53.
    FTP: separate control,data connections 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. Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37
  • 54.
    FTP: separate control,data connections 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 Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37
  • 55.
    FTP: separate control,data connections 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. Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37
  • 56.
    FTP: separate control,data connections 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. Server opens a second TCP data connection to transfer another file. Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37
  • 57.
    FTP: separate control,data connections 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. Server opens a second TCP data connection to transfer another file. Control connection: out of band Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37
  • 58.
    FTP: separate control,data connections 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. Server opens a second TCP data connection to transfer another file. Control connection: out of band FTP server maintains state: current directory, earlier authentication Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37
  • 59.
    Remote Login: Telnet AmitavaNag (Academy of Technology) Application Layer Protocol April 6, 2012 18 / 37
  • 60.
    Remote Login: Telnet TELNETis a general-purpose client-server application program Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 18 / 37
  • 61.
    Remote Login: Telnet TELNETis a general-purpose client-server application program TELNET enables the establishment of a connection to a remote system in such a way that the local terminal appears to be a terminal at the remote system. Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 18 / 37
  • 62.
    Figure:Local login Amitava Nag(Academy of Technology) Application Layer Protocol April 6, 2012 19 / 37
  • 63.
    Figure:Remote login Amitava Nag(Academy of Technology) Application Layer Protocol April 6, 2012 20 / 37
  • 64.
    Electronic Mail Amitava Nag(Academy of Technology) Application Layer Protocol April 6, 2012 21 / 37
  • 65.
    Electronic Mail Three majorcomponents: Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 21 / 37
  • 66.
    Electronic Mail Three majorcomponents: 1 user agents Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 21 / 37
  • 67.
    Electronic Mail Three majorcomponents: 1 user agents 2 mail servers Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 21 / 37
  • 68.
    Electronic Mail Three majorcomponents: 1 user agents 2 mail servers 3 simple mail transfer protocol: SMTP Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 21 / 37
  • 69.
    Electronic Mail Amitava Nag(Academy of Technology) Application Layer Protocol April 6, 2012 22 / 37
  • 70.
    Electronic Mail: mailservers Mail Servers Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 23 / 37
  • 71.
    Electronic Mail: mailservers Mail Servers mailbox contains incoming messages for user Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 23 / 37
  • 72.
    Electronic Mail: mailservers Mail Servers mailbox contains incoming messages for user message queue of outgoing (to be sent) mail messages Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 23 / 37
  • 73.
    Electronic Mail: mailservers Mail Servers mailbox contains incoming messages for user message queue of outgoing (to be sent) mail messages SMTP protocol between mail servers to send email messages Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 23 / 37
  • 74.
    Electronic Mail: mailservers Mail Servers mailbox contains incoming messages for user message queue of outgoing (to be sent) mail messages SMTP protocol between mail servers to send email messages client: sending mail server Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 23 / 37
  • 75.
    Electronic Mail: mailservers Mail Servers mailbox contains incoming messages for user message queue of outgoing (to be sent) mail messages SMTP protocol between mail servers to send email messages client: sending mail server server: receiving mail server Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 23 / 37
  • 76.
    Electronic Mail: SMTP[RFC 2821] Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37
  • 77.
    Electronic Mail: SMTP[RFC 2821] uses TCP to reliably transfer email message from client to server, port 25 Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37
  • 78.
    Electronic Mail: SMTP[RFC 2821] uses TCP to reliably transfer email message from client to server, port 25 direct transfer: sending server to receiving server Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37
  • 79.
    Electronic Mail: SMTP[RFC 2821] uses TCP to reliably transfer email message from client to server, port 25 direct transfer: sending server to receiving server three phases of transfer Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37
  • 80.
    Electronic Mail: SMTP[RFC 2821] uses TCP to reliably transfer email message from client to server, port 25 direct transfer: sending server to receiving server three phases of transfer handshaking (greeting) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37
  • 81.
    Electronic Mail: SMTP[RFC 2821] uses TCP to reliably transfer email message from client to server, port 25 direct transfer: sending server to receiving server three phases of transfer handshaking (greeting) transfer of messages Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37
  • 82.
    Electronic Mail: SMTP[RFC 2821] uses TCP to reliably transfer email message from client to server, port 25 direct transfer: sending server to receiving server three phases of transfer handshaking (greeting) transfer of messages closure Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37
  • 83.
    Electronic Mail: SMTP[RFC 2821] uses TCP to reliably transfer email message from client to server, port 25 direct transfer: sending server to receiving server three phases of transfer handshaking (greeting) transfer of messages closure command/response interaction Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37
  • 84.
    Electronic Mail: SMTP[RFC 2821] uses TCP to reliably transfer email message from client to server, port 25 direct transfer: sending server to receiving server three phases of transfer handshaking (greeting) transfer of messages closure command/response interaction commands: ASCII text Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37
  • 85.
    Electronic Mail: SMTP[RFC 2821] uses TCP to reliably transfer email message from client to server, port 25 direct transfer: sending server to receiving server three phases of transfer handshaking (greeting) transfer of messages closure command/response interaction commands: ASCII text response: status code and phrase Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37
  • 86.
    Electronic Mail: SMTP[RFC 2821] uses TCP to reliably transfer email message from client to server, port 25 direct transfer: sending server to receiving server three phases of transfer handshaking (greeting) transfer of messages closure command/response interaction commands: ASCII text response: status code and phrase messages must be in 7-bit ASCII Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37
  • 87.
    Scenario: Alice sendsmessage to Bob Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 25 / 37
  • 88.
    Scenario: Alice sendsmessage to Bob 1 Alice uses UA to compose message and to bob@someschool.edu Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 25 / 37
  • 89.
    Scenario: Alice sendsmessage to Bob 1 Alice uses UA to compose message and to bob@someschool.edu 2 Alices UA sends message to her mail server; message placed in message queue Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 25 / 37
  • 90.
    Scenario: Alice sendsmessage to Bob 1 Alice uses UA to compose message and to bob@someschool.edu 2 Alices UA sends message to her mail server; message placed in message queue 3 Client side of SMTP opens TCP connection with Bobs mail server Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 25 / 37
  • 91.
    Scenario: Alice sendsmessage to Bob 1 Alice uses UA to compose message and to bob@someschool.edu 2 Alices UA sends message to her mail server; message placed in message queue 3 Client side of SMTP opens TCP connection with Bobs mail server 4 SMTP client sends Alices message over the TCP connection Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 25 / 37
  • 92.
    Scenario: Alice sendsmessage to Bob 1 Alice uses UA to compose message and to bob@someschool.edu 2 Alices UA sends message to her mail server; message placed in message queue 3 Client side of SMTP opens TCP connection with Bobs mail server 4 SMTP client sends Alices message over the TCP connection 5 Bobs mail server places the message in Bobs mailbox Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 25 / 37
  • 93.
    Scenario: Alice sendsmessage to Bob 1 Alice uses UA to compose message and to bob@someschool.edu 2 Alices UA sends message to her mail server; message placed in message queue 3 Client side of SMTP opens TCP connection with Bobs mail server 4 SMTP client sends Alices message over the TCP connection 5 Bobs mail server places the message in Bobs mailbox 6 Bob invokes his user agent to read message Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 25 / 37
  • 94.
    Figure: Alice sendsmessage to Bob Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 26 / 37
  • 95.
    Mail access protocols AmitavaNag (Academy of Technology) Application Layer Protocol April 6, 2012 27 / 37
  • 96.
    Mail access protocols SMTP:delivery/storage to receivers server Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 27 / 37
  • 97.
    Mail access protocols SMTP:delivery/storage to receivers server Mail access protocol: retrieval from server Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 27 / 37
  • 98.
    Mail access protocols SMTP:delivery/storage to receivers server Mail access protocol: retrieval from server POP: Post Office Protocol [RFC 1939] Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 27 / 37
  • 99.
    Mail access protocols SMTP:delivery/storage to receivers server Mail access protocol: retrieval from server POP: Post Office Protocol [RFC 1939] authorization (agent < −− >server) and download Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 27 / 37
  • 100.
    Mail access protocols SMTP:delivery/storage to receivers server Mail access protocol: retrieval from server POP: Post Office Protocol [RFC 1939] authorization (agent < −− >server) and download IMAP: Internet Mail Access Protocol [RFC 1730] Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 27 / 37
  • 101.
    Mail access protocols SMTP:delivery/storage to receivers server Mail access protocol: retrieval from server POP: Post Office Protocol [RFC 1939] authorization (agent < −− >server) and download IMAP: Internet Mail Access Protocol [RFC 1730] more features (more complex) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 27 / 37
  • 102.
    Mail access protocols SMTP:delivery/storage to receivers server Mail access protocol: retrieval from server POP: Post Office Protocol [RFC 1939] authorization (agent < −− >server) and download IMAP: Internet Mail Access Protocol [RFC 1730] more features (more complex) manipulation of stored msgs on server Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 27 / 37
  • 103.
    Mail access protocols SMTP:delivery/storage to receivers server Mail access protocol: retrieval from server POP: Post Office Protocol [RFC 1939] authorization (agent < −− >server) and download IMAP: Internet Mail Access Protocol [RFC 1730] more features (more complex) manipulation of stored msgs on server HTTP: Hotmail , Yahoo! Mail, etc. Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 27 / 37
  • 104.
    Figure:Mail access protocols AmitavaNag (Academy of Technology) Application Layer Protocol April 6, 2012 28 / 37
  • 105.
    Network Management Amitava Nag(Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37
  • 106.
    Network Management Management = AmitavaNag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37
  • 107.
    Network Management Management =Initialization, Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37
  • 108.
    Network Management Management =Initialization, Monitoring, Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37
  • 109.
    Network Management Management =Initialization, Monitoring, Control Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37
  • 110.
    Network Management Management =Initialization, Monitoring, Control Today: automated, reliable diagnosis, and automatic control are still in a primitive stage Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37
  • 111.
    Network Management Management =Initialization, Monitoring, Control Today: automated, reliable diagnosis, and automatic control are still in a primitive stage Architecture: Manager, Agents and Management Information Base (MIB) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37
  • 112.
    Network Management Management =Initialization, Monitoring, Control Today: automated, reliable diagnosis, and automatic control are still in a primitive stage Architecture: Manager, Agents and Management Information Base (MIB) Observe that management-plane has a new interface to the network distinct from data and control-plane Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37
  • 113.
    Simple Network ManagementProtocol (SNMP) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 30 / 37
  • 114.
    Simple Network ManagementProtocol (SNMP) SNMP is a framework for managing devices in an internet using the TCP/IP protocol suit Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 30 / 37
  • 115.
    Simple Network ManagementProtocol (SNMP) SNMP is a framework for managing devices in an internet using the TCP/IP protocol suit A manager, usually a lost that, controls and monitor a set of agents,usually routers Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 30 / 37
  • 116.
    Simple Network ManagementProtocol (SNMP) SNMP is a framework for managing devices in an internet using the TCP/IP protocol suit A manager, usually a lost that, controls and monitor a set of agents,usually routers The manager is a host that runs the SNMP client program. Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 30 / 37
  • 117.
    Simple Network ManagementProtocol (SNMP) SNMP is a framework for managing devices in an internet using the TCP/IP protocol suit A manager, usually a lost that, controls and monitor a set of agents,usually routers The manager is a host that runs the SNMP client program. The agent is a router or host that runs the SNMP server program Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 30 / 37
  • 118.
    Figure:Mail access protocols AmitavaNag (Academy of Technology) Application Layer Protocol April 6, 2012 31 / 37
  • 119.
    MANAGEMENT COMPONENTS Amitava Nag(Academy of Technology) Application Layer Protocol April 6, 2012 32 / 37
  • 120.
    MANAGEMENT COMPONENTS SNMP requiresthe use of two other protocols: Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 32 / 37
  • 121.
    MANAGEMENT COMPONENTS SNMP requiresthe use of two other protocols: 1 Structure of Management Information (SMI) and Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 32 / 37
  • 122.
    MANAGEMENT COMPONENTS SNMP requiresthe use of two other protocols: 1 Structure of Management Information (SMI) and 2 Management Information Base (MIB) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 32 / 37
  • 123.
    MANAGEMENT COMPONENTS SNMP requiresthe use of two other protocols: 1 Structure of Management Information (SMI) and 2 Management Information Base (MIB) Network management on the Internet is done through the cooperation of SNMP, SMI, and MIB. Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 32 / 37
  • 124.
    Management Information Base(MIB) AmitavaNag (Academy of Technology) Application Layer Protocol April 6, 2012 33 / 37
  • 125.
    Management Information Base(MIB) MIBis a second component used in network management Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 33 / 37
  • 126.
    Management Information Base(MIB) MIBis a second component used in network management Each agent has its own MIB, a collection of all the objects that the manager can manage. Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 33 / 37
  • 127.
    Figure:Management Information Base,version 2 (MIB2) Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 34 / 37
  • 128.
    SNMP Amitava Nag (Academyof Technology) Application Layer Protocol April 6, 2012 35 / 37
  • 129.
    SNMP SNMP is anapplication program that allows Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 35 / 37
  • 130.
    SNMP SNMP is anapplication program that allows 1 a manager to retrieve the value of an object defined in an agent; Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 35 / 37
  • 131.
    SNMP SNMP is anapplication program that allows 1 a manager to retrieve the value of an object defined in an agent; 2 a manager to store a value in an object defined in an agent; and Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 35 / 37
  • 132.
    SNMP SNMP is anapplication program that allows 1 a manager to retrieve the value of an object defined in an agent; 2 a manager to store a value in an object defined in an agent; and 3 an agent to send an alarm message about an abnormal situation to the manager Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 35 / 37
  • 133.
    Figure:SNMP Amitava Nag (Academyof Technology) Application Layer Protocol April 6, 2012 36 / 37
  • 134.
    The End Amitava Nag(Academy of Technology) Application Layer Protocol April 6, 2012 37 / 37