134
Application Layer Protocol Amitava Nag Assistant Professor [email protected] April 6, 2012 Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 1 / 37

Application layer protocol

Embed Size (px)

Citation preview

Page 1: Application layer protocol

Application Layer Protocol

Amitava Nag

Assistant Professor

[email protected]

April 6, 2012

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 1 / 37

Page 2: Application layer protocol

Architecture of WWW

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 2 / 37

Page 3: Application layer protocol

Architecture of WWW

The WWW is a distributed client-server service, in which a clientusing a browser can access a service using a server.

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 2 / 37

Page 4: Application layer protocol

Architecture of WWW

The WWW is a distributed client-server service, in which a clientusing 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

Page 5: Application layer protocol

Architecture of WWW

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 3 / 37

Page 6: Application layer protocol

Browser

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 4 / 37

Page 7: Application layer protocol

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

Page 8: Application layer protocol

Web Page Identifier

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37

Page 9: Application layer protocol

Web Page Identifier

Known as Uniform Resource Locator (URL)

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37

Page 10: Application layer protocol

Web Page Identifier

Known as Uniform Resource Locator (URL)

Encodes

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37

Page 11: Application layer protocol

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

Page 12: Application layer protocol

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

Page 13: Application layer protocol

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

Page 14: Application layer protocol

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

Page 15: Application layer protocol

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

Page 16: Application layer protocol

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

Page 17: Application layer protocol

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)

Formathttp: // hostname [: port] / path [; parameters] [? query]

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 6 / 37

Page 18: Application layer protocol

Web and HTTP

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 7 / 37

Page 19: Application layer protocol

Web and HTTP

Web page consists of objects

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 7 / 37

Page 20: Application layer protocol

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

Page 21: Application layer protocol

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 severalreferenced objects

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 7 / 37

Page 22: Application layer protocol

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 severalreferenced objects

Each object is addressable by a URL

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 7 / 37

Page 23: Application layer protocol

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 severalreferenced 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

Page 24: Application layer protocol

HTTP Characteristics

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 8 / 37

Page 25: Application layer protocol

HTTP Characteristics

Application level

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 8 / 37

Page 26: Application layer protocol

HTTP Characteristics

Application level

Request / response paradigm

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 8 / 37

Page 27: Application layer protocol

HTTP Characteristics

Application level

Request / response paradigm

Stateless

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 8 / 37

Page 28: Application layer protocol

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

Page 29: Application layer protocol

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

Page 30: Application layer protocol

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

Page 31: Application layer protocol

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

Page 32: Application layer protocol

HTTP overview

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 9 / 37

Page 33: Application layer protocol

HTTP overview ( continued )

Uses TCP :

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 10 / 37

Page 34: Application layer protocol

HTTP overview ( continued )

Uses TCP :

HTTP client initiates TCP connection (creates socket) to (www.someschool.edu/ ) server on port 80 (default port number forHTTP).

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 10 / 37

Page 35: Application layer protocol

HTTP overview ( continued )

Uses TCP :

HTTP client initiates TCP connection (creates socket) to (www.someschool.edu/ ) server on port 80 (default port number forHTTP).

HTTP server accepts TCP connection from client

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 10 / 37

Page 36: Application layer protocol

HTTP overview ( continued )

Uses TCP :

HTTP client initiates TCP connection (creates socket) to (www.someschool.edu/ ) server on port 80 (default port number forHTTP).

HTTP server accepts TCP connection from client

HTTP messages (application-layer protocol messages) exchangedbetween browser ( HTTP client ) and Web server ( HTTP server )

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 10 / 37

Page 37: Application layer protocol

HTTP overview ( continued )

Uses TCP :

HTTP client initiates TCP connection (creates socket) to (www.someschool.edu/ ) server on port 80 (default port number forHTTP).

HTTP server accepts TCP connection from client

HTTP messages (application-layer protocol messages) exchangedbetween browser ( HTTP client ) and Web server ( HTTP server )

TCP connection closed

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 10 / 37

Page 38: Application layer protocol

HTTP connections

Nonpersistent HTTP Persistent HTTP

At most one object is sent over Multiple objects can be sent overa TCP connection. single TCP connection between

client and server.

HTTP/1.0 uses nonpersistent HTTP HTTP/1.1 uses persistentconnections in default mode

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 11 / 37

Page 39: Application layer protocol

FTP: the file transfer protocol

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 12 / 37

Page 40: Application layer protocol

FTP: the file transfer protocol

transfer file to/from remote host

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 12 / 37

Page 41: Application layer protocol

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

Page 42: Application layer protocol

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

Page 43: Application layer protocol

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

Page 44: Application layer protocol

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

Page 45: Application layer protocol

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

Page 46: Application layer protocol

FTP overview

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 13 / 37

Page 47: Application layer protocol

FTP:connections

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 14 / 37

Page 48: Application layer protocol

Opening the control connection

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 15 / 37

Page 49: Application layer protocol

Creating the data connection

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 16 / 37

Page 50: Application layer protocol

FTP: separate control, data connections

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37

Page 51: Application layer protocol

FTP: separate control, data connections

FTP client contacts FTP server at port 21, specifying TCP astransport protocol

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37

Page 52: Application layer protocol

FTP: separate control, data connections

FTP client contacts FTP server at port 21, specifying TCP astransport protocol

Client obtains authorization over control connection

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37

Page 53: Application layer protocol

FTP: separate control, data connections

FTP client contacts FTP server at port 21, specifying TCP astransport protocol

Client obtains authorization over control connection

Client browses remote directory by sending commands over controlconnection.

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37

Page 54: Application layer protocol

FTP: separate control, data connections

FTP client contacts FTP server at port 21, specifying TCP astransport protocol

Client obtains authorization over control connection

Client browses remote directory by sending commands over controlconnection.

When server receives a command for a file transfer, the server opens aTCP data connection to client

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37

Page 55: Application layer protocol

FTP: separate control, data connections

FTP client contacts FTP server at port 21, specifying TCP astransport protocol

Client obtains authorization over control connection

Client browses remote directory by sending commands over controlconnection.

When server receives a command for a file transfer, the server opens aTCP data connection to client

After transferring one file, server closes connection.

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 17 / 37

Page 56: Application layer protocol

FTP: separate control, data connections

FTP client contacts FTP server at port 21, specifying TCP astransport protocol

Client obtains authorization over control connection

Client browses remote directory by sending commands over controlconnection.

When server receives a command for a file transfer, the server opens aTCP 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

Page 57: Application layer protocol

FTP: separate control, data connections

FTP client contacts FTP server at port 21, specifying TCP astransport protocol

Client obtains authorization over control connection

Client browses remote directory by sending commands over controlconnection.

When server receives a command for a file transfer, the server opens aTCP 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

Page 58: Application layer protocol

FTP: separate control, data connections

FTP client contacts FTP server at port 21, specifying TCP astransport protocol

Client obtains authorization over control connection

Client browses remote directory by sending commands over controlconnection.

When server receives a command for a file transfer, the server opens aTCP 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

Page 59: Application layer protocol

Remote Login: Telnet

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 18 / 37

Page 60: Application layer protocol

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

Page 61: Application layer protocol

Remote Login: Telnet

TELNET is a general-purpose client-server application program

TELNET enables the establishment of a connection to a remotesystem in such a way that the local terminal appears to be a terminalat the remote system.

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 18 / 37

Page 62: Application layer protocol

Figure:Local login

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 19 / 37

Page 63: Application layer protocol

Figure:Remote login

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 20 / 37

Page 64: Application layer protocol

Electronic Mail

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 21 / 37

Page 65: Application layer protocol

Electronic Mail

Three major components:

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 21 / 37

Page 66: Application layer protocol

Electronic Mail

Three major components:1 user agents

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 21 / 37

Page 67: Application layer protocol

Electronic Mail

Three major components:1 user agents2 mail servers

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 21 / 37

Page 68: Application layer protocol

Electronic Mail

Three major components:1 user agents2 mail servers3 simple mail transfer protocol: SMTP

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 21 / 37

Page 69: Application layer protocol

Electronic Mail

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 22 / 37

Page 70: Application layer protocol

Electronic Mail: mail servers

Mail Servers

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 23 / 37

Page 71: Application layer protocol

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

Page 72: Application layer protocol

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

Page 73: Application layer protocol

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

Page 74: Application layer protocol

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

Page 75: Application layer protocol

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 serverserver: receiving mail server

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 23 / 37

Page 76: Application layer protocol

Electronic Mail: SMTP [RFC 2821]

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37

Page 77: Application layer protocol

Electronic Mail: SMTP [RFC 2821]

uses TCP to reliably transfer email message from client to server, port25

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37

Page 78: Application layer protocol

Electronic Mail: SMTP [RFC 2821]

uses TCP to reliably transfer email message from client to server, port25

direct transfer: sending server to receiving server

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37

Page 79: Application layer protocol

Electronic Mail: SMTP [RFC 2821]

uses TCP to reliably transfer email message from client to server, port25

direct transfer: sending server to receiving server

three phases of transfer

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37

Page 80: Application layer protocol

Electronic Mail: SMTP [RFC 2821]

uses TCP to reliably transfer email message from client to server, port25

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

Page 81: Application layer protocol

Electronic Mail: SMTP [RFC 2821]

uses TCP to reliably transfer email message from client to server, port25

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

Page 82: Application layer protocol

Electronic Mail: SMTP [RFC 2821]

uses TCP to reliably transfer email message from client to server, port25

direct transfer: sending server to receiving server

three phases of transfer

handshaking (greeting)transfer of messagesclosure

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37

Page 83: Application layer protocol

Electronic Mail: SMTP [RFC 2821]

uses TCP to reliably transfer email message from client to server, port25

direct transfer: sending server to receiving server

three phases of transfer

handshaking (greeting)transfer of messagesclosure

command/response interaction

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37

Page 84: Application layer protocol

Electronic Mail: SMTP [RFC 2821]

uses TCP to reliably transfer email message from client to server, port25

direct transfer: sending server to receiving server

three phases of transfer

handshaking (greeting)transfer of messagesclosure

command/response interaction

commands: ASCII text

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37

Page 85: Application layer protocol

Electronic Mail: SMTP [RFC 2821]

uses TCP to reliably transfer email message from client to server, port25

direct transfer: sending server to receiving server

three phases of transfer

handshaking (greeting)transfer of messagesclosure

command/response interaction

commands: ASCII textresponse: status code and phrase

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37

Page 86: Application layer protocol

Electronic Mail: SMTP [RFC 2821]

uses TCP to reliably transfer email message from client to server, port25

direct transfer: sending server to receiving server

three phases of transfer

handshaking (greeting)transfer of messagesclosure

command/response interaction

commands: ASCII textresponse: status code and phrase

messages must be in 7-bit ASCII

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 24 / 37

Page 87: Application layer protocol

Scenario: Alice sends message to Bob

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 25 / 37

Page 88: Application layer protocol

Scenario: Alice sends message to Bob

1 Alice uses UA to compose message and to [email protected]

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 25 / 37

Page 89: Application layer protocol

Scenario: Alice sends message to Bob

1 Alice uses UA to compose message and to [email protected]

2 Alices UA sends message to her mail server; message placed inmessage queue

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 25 / 37

Page 90: Application layer protocol

Scenario: Alice sends message to Bob

1 Alice uses UA to compose message and to [email protected]

2 Alices UA sends message to her mail server; message placed inmessage 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

Page 91: Application layer protocol

Scenario: Alice sends message to Bob

1 Alice uses UA to compose message and to [email protected]

2 Alices UA sends message to her mail server; message placed inmessage 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

Page 92: Application layer protocol

Scenario: Alice sends message to Bob

1 Alice uses UA to compose message and to [email protected]

2 Alices UA sends message to her mail server; message placed inmessage 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

Page 93: Application layer protocol

Scenario: Alice sends message to Bob

1 Alice uses UA to compose message and to [email protected]

2 Alices UA sends message to her mail server; message placed inmessage 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

Page 94: Application layer protocol

Figure: Alice sends message to Bob

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 26 / 37

Page 95: Application layer protocol

Mail access protocols

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 27 / 37

Page 96: Application layer protocol

Mail access protocols

SMTP: delivery/storage to receivers server

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 27 / 37

Page 97: Application layer protocol

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

Page 98: Application layer protocol

Mail access protocols

SMTP: delivery/storage to receivers server

Mail access protocol: retrieval from serverPOP: Post Office Protocol [RFC 1939]

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 27 / 37

Page 99: Application layer protocol

Mail access protocols

SMTP: delivery/storage to receivers server

Mail access protocol: retrieval from serverPOP: Post Office Protocol [RFC 1939]

authorization (agent < −− >server) and download

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 27 / 37

Page 100: Application layer protocol

Mail access protocols

SMTP: delivery/storage to receivers server

Mail access protocol: retrieval from serverPOP: 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

Page 101: Application layer protocol

Mail access protocols

SMTP: delivery/storage to receivers server

Mail access protocol: retrieval from serverPOP: 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

Page 102: Application layer protocol

Mail access protocols

SMTP: delivery/storage to receivers server

Mail access protocol: retrieval from serverPOP: 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

Page 103: Application layer protocol

Mail access protocols

SMTP: delivery/storage to receivers server

Mail access protocol: retrieval from serverPOP: 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

Page 104: Application layer protocol

Figure:Mail access protocols

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 28 / 37

Page 105: Application layer protocol

Network Management

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37

Page 106: Application layer protocol

Network Management

Management =

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37

Page 107: Application layer protocol

Network Management

Management = Initialization,

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37

Page 108: Application layer protocol

Network Management

Management = Initialization, Monitoring,

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37

Page 109: Application layer protocol

Network Management

Management = Initialization, Monitoring, Control

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37

Page 110: Application layer protocol

Network Management

Management = Initialization, Monitoring, Control

Today: automated, reliable diagnosis, and automatic control are stillin a primitive stage

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37

Page 111: Application layer protocol

Network Management

Management = Initialization, Monitoring, Control

Today: automated, reliable diagnosis, and automatic control are stillin a primitive stage

Architecture: Manager, Agents and Management Information Base(MIB)

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37

Page 112: Application layer protocol

Network Management

Management = Initialization, Monitoring, Control

Today: automated, reliable diagnosis, and automatic control are stillin a primitive stage

Architecture: Manager, Agents and Management Information Base(MIB)

Observe that management-plane has a new interface to the networkdistinct from data and control-plane

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 29 / 37

Page 113: Application layer protocol

Simple Network Management Protocol (SNMP)

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 30 / 37

Page 114: Application layer protocol

Simple Network Management Protocol (SNMP)

SNMP is a framework for managing devices in an internet using theTCP/IP protocol suit

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 30 / 37

Page 115: Application layer protocol

Simple Network Management Protocol (SNMP)

SNMP is a framework for managing devices in an internet using theTCP/IP protocol suit

A manager, usually a lost that, controls and monitor a set ofagents,usually routers

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 30 / 37

Page 116: Application layer protocol

Simple Network Management Protocol (SNMP)

SNMP is a framework for managing devices in an internet using theTCP/IP protocol suit

A manager, usually a lost that, controls and monitor a set ofagents,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

Page 117: Application layer protocol

Simple Network Management Protocol (SNMP)

SNMP is a framework for managing devices in an internet using theTCP/IP protocol suit

A manager, usually a lost that, controls and monitor a set ofagents,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

Page 118: Application layer protocol

Figure:Mail access protocols

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 31 / 37

Page 119: Application layer protocol

MANAGEMENT COMPONENTS

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 32 / 37

Page 120: Application layer protocol

MANAGEMENT COMPONENTS

SNMP requires the use of two other protocols:

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 32 / 37

Page 121: Application layer protocol

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

Page 122: Application layer protocol

MANAGEMENT COMPONENTS

SNMP requires the use of two other protocols:1 Structure of Management Information (SMI) and2 Management Information Base (MIB)

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 32 / 37

Page 123: Application layer protocol

MANAGEMENT COMPONENTS

SNMP requires the use of two other protocols:1 Structure of Management Information (SMI) and2 Management Information Base (MIB)

Network management on the Internet is done through thecooperation of SNMP, SMI, and MIB.

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 32 / 37

Page 124: Application layer protocol

Management Information Base(MIB)

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 33 / 37

Page 125: Application layer protocol

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

Page 126: Application layer protocol

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 themanager can manage.

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 33 / 37

Page 127: Application layer protocol

Figure:Management Information Base, version 2 (MIB2)

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 34 / 37

Page 128: Application layer protocol

SNMP

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 35 / 37

Page 129: Application layer protocol

SNMP

SNMP is an application program that allows

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 35 / 37

Page 130: Application layer protocol

SNMP

SNMP is an application program that allows1 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

Page 131: Application layer protocol

SNMP

SNMP is an application program that allows1 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

Page 132: Application layer protocol

SNMP

SNMP is an application program that allows1 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; and3 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

Page 133: Application layer protocol

Figure:SNMP

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 36 / 37

Page 134: Application layer protocol

The End

Amitava Nag (Academy of Technology) Application Layer Protocol April 6, 2012 37 / 37