Online Programz

Monthly Archives : August, 2009

MIME and Its Applications

MIME stands for Multipurpose Internet mail extension used in RFC 2045. It is a open standard for sending multipart, multimedia through internet email.It can be send either binary, multiple ASCII or non ASCII characters sets.It also supports almost a hundred predefined types of content.

Types of content are classified into two levels

type  ->what kind of data is contained(picture,text,movie)

subtype -> specific type of data(html, plain, GIF,JPEG)

Applications:

  • The data returned by an HTTP1.0 or 1.1 web browser is sent in MIME format.
  • MIME is also used for posting forms to web servers, a  common way for an applet to communicate with the server.
  • Java relies on MIME types to pick the appropriate content handler for a particular stream of data.

URI And Their Types

URI stands for Uniform Resource Identifier. URI is a string of characters in a particular syntax that identifies a resource. The resource may be a file on a server, email address, a news message, a book, person’s name, Internet host or something else.

Syntax :

Scheme: Scheme-specific_part.

Types Of URI :

  • Uniform Resource Identifier.
  • Uniform Resource Name.

URN :

URN is a name for a particular resource but without reference to a particular location.

Ex: urn:isbn:1565928709 is a URN referring to a book.

The main goal of URN’s is to handle resources that are mirrorred in many different locations. They identify the resource itself, not the place where the resource lives.

Syntax :

URN : name : resource_name

namespace  -> name of a collection of certain resource contained by some authority.

resource_name -> name of the resource within that collection.

URL :

URL stands for uniform resource locator.Url identifies the location of the resource in the internet. It specifies protocol used, name of the server, location of file on that server.

Syntax :

protocol://username@hostname:port/path/filename#fragment?query.

Basic operations Of TCP

TCP stands for transmission control protocol. It provides a means for the users to exchange data as streams of octets and these streams are transmitted in segments each in turn consists of TCP header and a portion of the users data.

  • Data are passed to TCP by a user in a sequence of TCP send primitives
  • The data are buffered in send buffer.
  • TCP assembles the data from the send buffer in a segment and transmits the segment.
  • The segment received by the TCP entity will be stripped off its header and the data is placed in the receive buffer.
  • The user will be notified by the TCP deliver primitive that data are available for delivery.