[email protected]

Website: Contact: UNIT V

[email protected]


Traditional applications -Electronic Mail (SMTP, POP3, IMAP, MIME) – HTTP – Web Services – DNS – SNMP

Two of the most popular  The World Wide Web and  Email.  Broadly speaking, both of these applications use the request/reply paradigm— users send requests to servers, which then respond accordingly.  It is important to distinguish between application programs and application protocols.  For example, the HyperText Transport Protocol (HTTP) is an application protocol that is used to retrieve Web pages from remote servers.  There can be many different application programs—that is, Web clients like Internet Explorer, Chrome, Firefox, and Safari—that provide users with a different look and feel, but all of them use the same HTTP protocol to communicate with Web servers over the Internet.

Two very widely-used, standardized application protocols:  SMTP: Simple Mail Transfer Protocol is used to exchange electronic mail.  HTTP: HyperText Transport Protocol is used to communicate between Web browsers and Web servers. 5.1 Electronic Mail (SMTP, POP3, IMAP, MIME) An email system involves: o o o o

User interface or agent Companion protocols that defines message format (RFC 822 and MIME) Mail Readers (IMAP and POP) Message transfer protocol (SMTP) [email protected] [email protected]

FIG: Alice sends a mail to Bob

1. User Agent User agent (UA) is software that is either command (eg. pine, elm) or GUI based (eg. Microsoft Outlook, Netscape). It facilitates:  Compose: helps to compose messages by providing template with built-in editor.  Read: checks mail in the incoming box and provides information such as sender, size, subject and flag (read, new).  Reply: allows user to reply (send message) back to sender.  Forward: facilitates forwarding message to a third party.  Mailboxes: creates two mailboxes for each user, namely inbox (to store received emails) and outbox (to keep all sent mails). Message Format  RFC 822 defines message to have two parts namely header and a body.  Each header line contains a type and value separated by a colon (:) terminated by .  It is filled by the user or system. Some are: o From: identifier sender of the message. o To: mail address of the recipient(s). o Subject: says about purpose of the message. o Date: timestamp of when the message was transmitted.  E-mail address consists of user_name@domain_name where domain_name is hostname of the mail server.  Body contains the actual message. Header is separated from the body by a blank line.  Email system was designed to send messages only in NVT 7-bit ASCII format.  Languages such as French, German, Chinese, Japanese were not supported.  Image, audio and video files cannot be sent. 2. Multipurpose Internet Mail Extensions (MIME)  MIME is a supplementary protocol that allows non-ASCII data to be sent through e-mail.  MIME transforms non-ASCII data to NVT ASCII and delivers to client MTA. [email protected] [email protected]

 

The NVT ASCII data is converted back to non-ASCII form at the recipient mail server. MIME defines five headers. They are:  MIME-Version:specifies the current version, i.e., 1.1  Content-Type:defines message type and subtype such as text/plain, text/html, Image/jpeg, image/gif, application/postscript, application/MS word, video/mpeg.  Content-Transfer-Encoding: defines how message is encoded (default 7-bit). Base 64 encoding is used to encode binary data into ASCII format.  Content-Id: unique identifier for the whole message if it contains multiple types.  Content-Description: describes type of the message body.  If more than one type exists, then Content-Type is multipart/mixed. Each type has a header line, describing its type. Example MIME-Version: 1.1 Content-Type: multipart/mixed; boundary="-------417CA6-------" From: Alice Smith To: [email protected] Subject: photo Date: Mon, 07 Sep 1998 19:45 ---------417CA6------Content-Type: text/plain Content-Transfer-Encoding: 7bit PFA my photo ---------417CA6------Content-Type: image/jpeg Content-Transfer-Encoding: base64 3. Message Transfer Agent (MTA)   

MTA is a mail daemon (sendmail) that transmits/receives mails and runs on each host. Simple Mail Transfer Protocol (SMTP) defines client/server MTA communication. SMTP uses TCP on port 25 to forward the entire message and store at intermediate mail gateways until it reaches the recipient mail server. Commands are sent from the client MTA to server MTA. Some are: Command HELO MAIL FROM RCPTTO DATA QUIT

Argument Sender's host name Sender of the message Recipient of the message Body of the mail Terminate [email protected] [email protected]

Responses are sent from server MTA to client MTA. Some are: Code 221 250 354 450 500

Description Service closing transmission channel Request completed Start mail input Mailbox not available Syntax error; unrecognized command

Example HELO 250 Hello [email protected] [] MAIL FROM: 250 OK RCPT TO: 250 OK DATA 354 Start mail input; end with . Blah blah blah... . 250 OK QUIT 221 Closing connection  In each exchange, client posts a command and the server responds with a code and human-readable explanation for the code.  Eventually, client sends a period (.) that terminates the connection. 4. Message Access Agent (MAA)  MAA or mail reader allows user to retrieve messages from the mailbox, so that user can perform actions such as reply, forwarding, etc.  Message access protocols are Post Office Protocol (POP) and Internet Message Access Protocol (IMAP).  SMTP is a push type protocol whereas POP and IMAP are pop type protocol. IMAP4  IMAP is a client/server protocol running over TCP. Current version 4, known as IMAP4.  Client on user machine issues commands and the mail server responds. [email protected] [email protected]

FIG: IMAP4 Transaction

    

Exchange begins with the client authenticating itself to access the mailbox. LOGIN, AUTHENTICATE, SELECT, EXAMINE, CLOSE, LOGOUT, FETCH, STORE, DELETE, etc., are some commands that the client can issue. Server responses are OK, NO (no permission), BAD (incorrect command), etc. When user asks to FETCH a message, server returns it in MIME format and the mail reader decodes it. IMAP defines message attributes (size) and flags (Seen, Answered, Deleted, and Recent).

POP3  POP is simple and limited in functionality. Current version is 3, known as POP3.  POP client is installed on the recipient computer and POP server on the mail server.  Client opens a connection to the server using TCP on port 110.  Client sends username and password to access mailbox and to retrieve messages.  POP works in two modes namely, delete and keep mode. o In delete mode, mail is deleted from the mailbox after retrieval o In keep mode, mail after reading is kept in mailbox for later retrieval. [email protected] [email protected]

FIG: POP3 Transaction Advantages of IMAP over POP.  IMAP4 is more powerful and more complex than POP3.  User can check the e-mail header prior to downloading.  User can search e-mail for a specific string of characters prior to downloading.  User can download partially. This is useful if bandwidth is limited and e-mail contains multimedia data.  User can create, delete, or rename mailboxes on the mail server. 5.2 WWW or HTTP protocol or URL  WWW is a distributed client/server service, in which a client (Browsers such as IE, Firefox, etc.) can access services at a server (Web server such as IIS, Apache).  HyperText Transfer Protocol (HTTP) is a stateless request/response protocol that governs client/server communication using TCP on port 80.  Uniform Resource Locator (URL) provides information about its location on the Web http://www.domain_name/filename  When user enters URL, browser forms a request message and sends it to the server.  Web server retrieves the requested URL and sends back a response message.  Web browser renders the response in HTML or appropriate format. [email protected] [email protected]

 

HyperText Transfer Protocol (HTTP) is a stateless request/response protocol that governs client/server communication. HTTP uses TCP connection on port 80 to transfer data between client and server.

Message Format START_LINE MESSAGE_HEADER MESSAGE_BODY Request Messages Request Line Request Header : Value Blank Line Body (optional) Request Line  Request line contains three fields namely Request Type, URL and HTTP version.  HTTP version specifies current version of the protocol i.e., 1.1  Request type specifies methods that operate on URL are: Method Description retrieve document specified as URL GET retrieve meta-information about the URL document HEAD send information from client to the server POST store document under specified URL PUT echoes the incoming request TRACE delete specified URL DELETE Request Header Request header specifies client configuration and preferred document format. Some are: RequestHeader Description specifies the character set the client can handle Accept-charset specifies what permissions the client has Authorization [email protected] [email protected]

From Host If-modified-since Referrer User-agent

specifies e-mail address of the user specifies host name and port number of the server server sends the URL if it is newer than specified date specifies URL of the linked document specifies name of the browser

For example, the request line to retrieve file index.html on host is: GET index.html HTTP/1.1 Host: Response Messages Status Line Response Header : Value Blank Line Body Status line  The Status line contains three fields namely HTTP version, Code and Status Phrase.  Status code has three digits (1xx–Informational, 2xx–Success, 3xx–Redirection, 4xx– Client error and 5xx–Server error). Status phrase gives brief description about status code. Some are: Code Phrase 100 Continue 200 OK 301 Moved permanently 404 Not found 500 Internal server error Response Header

Description Initial request received, client to continue process Request is successful Requested URL is no longer in use Document not found There is an error, such as a crash, at the server site

Response Header Description Content-encoding specifies the encoding scheme specifies the medium type Content-type gives date and time up to which the document is valid Expires gives date and time when the document was last updated Last-modified specifies location of the created or moved document Location  For example, response for a moved page is: [email protected] [email protected]

HTTP/1.1 301 Moved Permanently Location: TCP Connections  HTTP 1.1 allows persistent connection, i.e., client and server can exchange multiple messages over the same TCP connection.  The advantages are:  Eliminates connection setup overhead and additional load on the server.  Congestion window is very efficient by avoiding slow start phase for each page. Server closes connection on time out, i.e., there is no request from client for some period. Caching  Caching enables the client to retrieve document faster and reduces load on the server.  Caching can be implemented at different places.  ISP router can cache pages and responds to further request from its clients.  Proxy server copies responses to recent requests. Client's request is intercepted by proxy server and either responds or forwards to the server.  Browser also caches pages.  Server assigns expiration date (using Expires header) to each page, beyond which the page is not cached.  Cache document is verified whether it is a recent copy using If-Modified-Since header.  A page must not be cached if no-cache directive is specified.

5.3 Web Services 

Web services are architectures that offer remotely accessible services for client applications to form network applications, such as business-to-business (B2B) and enterprise application integration (EAI). An example is, an application from tracking shipping of a book order by interacting with application on Two web services architectures are WSDL/SOAP (custom) and REST (generic):  WSDL and SOAP are frameworks based on XML for specifying and implementing application protocols and transport protocols, customized to a network application  REST treats individual web services as WWW resources, identified by URI and accessed via HTTP.

Web Service Description Language (WSDL)  WSDL is an operation model, where a web interface is a set of named operations that represents interaction between client and web service. [email protected] [email protected]

 Each operation specifies a message exchange pattern (MEP) that provides the sequence in which the messages are to be transmitted.  Commonly used MEPs are In-Only (a message from client to service) and In-Out (request from a client and corresponding reply from the service).  Message formats are defined as an abstract data model using XML Schema.  Concrete part specifies how MEPs are mapped onto it (binding). Predefined bindings exist for HTTP and SOAP-based protocols.  Specification of a web service may contain multiple WSDL documents, and these documents could be used in other web service.  Each WSDL document specifies URI of the target XML namespace.  A WSDL document can incorporate components of another by o including the second document if both share the same target namespace o importing it if the target namespaces differ. SOAP 

SOAP is used to define transport protocols with features required to support a particular application protocol.  A SOAP feature specification includes:  URI that identifies the feature.  State information and processing required at each SOAP node for implementation.  Information to be relayed to the next node.  If MEP then, life cycle and temporal relationships of the messages exchanged.  SOAP is binded to an underlying protocol, to derive its features. This is known as layering. For example a request-response protocol is obtained by binding SOAP to HTTP.  A SOAP message consists of an envelope, which contains a header that contains header blocks, and a body that contains data.

FIG: SOAP message structure 

A SOAP header block contains information that corresponds to a particular feature. [email protected] [email protected]

 A SOAP module is a specification of syntax and semantics of one or more header blocks.  A given message may be processed not only by sender/receiver, but also by SOAPaware nodes based on SOAP role.  For example, role next implies all nodes can process, whereas role ultimateReceiver specifies only receiver can process.  Each header block specifies a role. A node processes header blocks that specify a role assumed by the node and forwards the message.  A SOAP fault is generated if a node does not understand the blocks it should process. Representational State Transfer (REST)  REST web services architecture is based on re-applying the model underlying the WWW architecture.  In REST model, complexity is shifted from protocol to the payload.  Payload is a representation of the abstract state of a resource. For example, a GET returns a representation of current state of the resource.  Message size is reduced by transmitting parts of a state by reference or URI.  XML and JSON are widely used as presentation language to define document structure.  REST uses infrastructure deployed to support the Web. For example, proxies can enforce security mechanism.  Web supports intermediary nodes as in SOAP. For example, since GET is readonly, nodes can cache the response.

DNS Name Service (DNS)  In most of this book, we have been using addresses to identify hosts.  While perfectly suited for processing by routers, addresses are not exactly userfriendly.  It is for this reason that a unique name is also typically assigned to each host in a network.  Host names differ from host addresses in two important ways.  First, they are usually of variable length and mnemonic, thereby making them easier for humans to remember.  Second, names typically contain no information that helps the network locate (route packets toward) the host.  We first introduce some basic terminology.  First, a name space defines the set of possible names. [email protected] [email protected]

 A name space can be either flat (names are not divisible into components), or it can be hierarchical (Unix file names are an obvious example).  Second, the naming system maintains a collection of bindings of names to values. The value can be anything we want the naming system to return when presented with a name; in many cases it is an address.  Finally, a resolution mechanism is a procedure that, when invoked with a name, returns the corresponding value. A name server is a specific implementation of a resolution mechanism that is available on a network and that can be queried by sending it a message.

Names translated into addresses, where the numbers 1–5 show the sequence of steps in the process

Domain Hierarchy  DNS implements a hierarchical name space for Internet objects. Unlike Unix file names, which are processed from left to right with the naming components separated with slashes, DNS names are processed from right to left and use periods as the separator.  Like the Unix file hierarchy, the DNS hierarchy can be visualized as a tree, where each node in the tree corresponds to a domain, and the leaves in the tree correspond to the hosts being named. [email protected] [email protected]

Example of a domain hierarchy

Name Servers  The complete domain name hierarchy exists only in the abstract.  We now turn our attention to the question of how this hierarchy is actually implemented.  The first step is to partition the hierarchy into subtrees called zones.  Each zone can be thought of as corresponding to some administrative authority that is responsible for that portion of the hierarchy.  For example, the top level of the hierarchy forms a zone that is managed by the Internet Corporation for Assigned Names and Numbers (ICANN).  Each name server implements the zone information as a collection of resource records.  In essence, a resource record is a name-to-value binding, or more specifically a 5tuple that contains the following fields:  [email protected] [email protected]

Name resolution in practice, where the numbers 1–10 show the sequence of steps in the process.

Simple Network Management Protocol (SNMP)  SNMP is essentially a specialized request/reply protocol that supports two kinds of request messages: GET and SET.  The former is used to retrieve a piece of state from some node, and the latter is used to store a new piece of state in some node.  SNMP is used in the obvious way.  A system administrator interacts with a client program that displays information about the network.  This client program usually has a graphical interface. Whenever the administrator selects a certain piece of information that he or she wants to see, the client program uses SNMP to request that information from the node in question. (SNMP runs on top of UDP.)  An SNMP server running on that node receives the request, locates the appropriate piece of information, and returns it to the client program, which then displays it to the user. [email protected] [email protected]

Website: Contact:

[email protected]

Thank you [email protected]


Download. Connect more apps... Try one of the apps below to open or edit this item. UNIT V APPLICATION LAYER.pdf. UNIT V APPLICATION LAYER.pdf. Open.

957KB Sizes 5 Downloads 227 Views

Recommend Documents

Unit V Review.pdf
300 Sensational journalism intended to sell papers with little regard for the truth. 400 The addition of new territory to an existing nation. 500 A belief that nations ...

Unit 3 PCH Application Problems.pdf
Download. Connect more apps... Try one of the apps below to open or edit this item. Unit 3 PCH Application Problems.pdf. Unit 3 PCH Application Problems.pdf.

System V Application Binary Interface - GitHub
pdf. The C++ object model that is expected to be followed is described in http: · 6. Intel386 ABI 1.2 – June ... Table 2.1 shows the correspondence between ISO C scalar types and the proces- sor scalar types. ... 9. Intel386 ABI 1.2 .

System V Application Binary Interface - GitHub
pdf. The C++ object model that is expected to be followed is described in http: .... In addition to registers, each function has a frame on the run-time stack.

Employment Application (v. 032316).pdf
Coastal. Point Loma. La Jolla. Encinitas. Carlsbad. Page 3 of 5. Employment Application (v. 032316).pdf. Employment Application (v. 032316).pdf. Open. Extract.

System V Application Binary Interface - GitHub
Jan 28, 2018 - 0.98 Various clarifications and fixes according to feedback from Sun, thanks to ...... and the signals specified by signal (BA_OS) as shown in table 3.1. ...... same as the result of R_X86_64_DTPMOD64 for the same symbol. 5This documen

System V Application Binary Interface - GitHub
Jul 3, 2015 - Intel MCU ABI 0.7 – July 3, 2015 – 7:58 .... devspecs/abi386-4.pdf, which describes the ABI for processors compati- ble with the Intel MCU ...

System V Application Binary Interface - GitHub
Jun 17, 2016 - X87, the 16-bit exponent plus 6 bytes of padding belongs to class X87UP. ..... Basically code models differ in addressing (absolute versus.

System V Application Binary Interface - GitHub
Apr 13, 2016 - System V Application Binary Interface ... 4 Development Environment .... compiler generated function in a compilation unit, all FDEs can access.

System V Application Binary Interface - GitHub
Feb 16, 2016 - AMD64 ABI Draft 0.99.8 – February 16, 2016 – 10:06 ..... instead of AMD64. 2The architecture specification is available on the web at ...... of the unwinder on the host to store internal information, for instance to remember .....

System V Application Binary Interface
Jun 14, 2005 - 0.94 Add sections in Development Environment, Program Loading, .... define a word as a 16-bit object, a doubleword as a 32-bit object, ...

System V Application Binary Interface
Mar 5, 2015 - 3.6.2 DWARF Register Number Mapping . ... 5.2.2 Initialization and Termination Functions . ..... Specify that _Bool is booleanized at the caller.

System V Application Binary Interface - GitHub
Dec 7, 2015 - devspecs/abi386-4.pdf, which describes the Linux IA-32 ABI for proces- sors compatible with the .... 8. Intel386 ABI 1.1 .... may use the faster femms instruction. 10. Intel386 ABI 1.1 – December 7, 2015 – 8:57 ...

System V Application Binary Interface - GitHub
Mar 23, 2017 - devspecs/abi386-4.pdf, which describes the Linux IA-32 ABI for proces- ... tion of these new features for interoperability between various tools. .... 8 ...... actions Indicates what processing the personality routine is 

meeting agenda neighborhood planning unit – v -
Susan Komen 2012 Atlanta 3-day ... S & A Investors, LLC d/b/a Chevron Food Mart temporary alcohol application Mr. Shan Rehman 923 Lee Street,. SW, Atlanta ...

Unit V - Business Organization and New Economic Environment ...
Palmer,Trump, Regan named in scheme. to divert Wharton funds to Contras. By JAY BEGUN. and RANDALL ..... Whoops! There was a problem loading this page. Retrying... Unit V - Business Organization and New Economic Environment MEFA.pdf. Unit V - Busines

Unit V Study Guide 2015.pdf
Freesoiler, C. Bleeding Kansas, D. Republican Party Platform of 1856, E. A House Divided, F. National. Democratic Party Platform of 1860, G. Union Must and ...

as an integral component of socio-economic transformation. The development strategy .... and services. 3. Foreign exchange earning: Growth of small scale industries gives rise to higher production of goods and commodities. In our country, ..... date

DEE -Unit Transfer Application Form 2017.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. DEE -Unit ...

How to complete the 'Volunteer (V) blue card application form'
Commission for a blue card on the volunteer's behalf. ... provided on the blue card application form. ... usual residence is more than 50kms from the business .... Current Credit Card or account card from a bank/building society/credit union (with ..

How to complete the 'Volunteer (V) blue card application ... - SportsTG
their identity and checking these against the details provided ... Step 1: check the volunteer has completed Part B ... If an identification document is in a former name, an .... Frequently Asked Questions available on the Commission's website at ...

How to complete the 'Volunteer (V) blue card application ... - SportsTG
... (section 23), and record the document number/s (if applicable). ... usual residence is more than 50kms from the business address or the .... 1800 113 611. Fax:.

2017.08.18 St. James CEC APPLICATION Submission 8.16.17 V. 2.PDF
2017.08.18 St. James CEC APPLICATION Submission 8.16.17 V. 2.PDF. 2017.08.18 St. James CEC APPLICATION Submission 8.16.17 V. 2.PDF. Open. Extract.

Unit Type Unit Charter Organization Unit Leader Unit Leader Phone ...
Unit Leader E-mail. Boy Scout Troop. 152. First United Methodist Church, ... Keith Hanselman. 330-929-6679 [email protected]. Boy Scout Troop.