CN CH1
CN CH1
Caching :
When a server asks for a mapping from another server and recive the response it
store the information in the cache memory before sending it to the clint.
**DNS Message :
- DNS has two types of messages that is ( Query ) , (response ) both type of message has
same format.
- the query message consist of a header and question records
- the response message consist of a header, question records, answer records,
authoritive records and additional records
Header :
The header is 12 bytes .
*Fields OF header :
M
Idetification : is a 16 bit field used by clint to match the response with the query
Flags : is a 16 bit field consisting of a subfields
QR (query/respoce) : is a 1 bit subfield that defies the type of message. If it is 0 the
message is a query , if it is 1 the message is a response.
OP CODE : is a 4 bit subfields that defies the type of query or response (0 if
r.
standards, 1 if inverce, 2 if server status req)
AA(authoritative Answer) : is a 1 bit subfield. It only used in a respose message
TC(TrunCated) : is a 1 bit subfields. It is used when DNS uses the service of UDP
RD(recursion Desired) : is a 1 bit subfields. It sets In the query message and
R
response messages.
RA(recursion Avilable) : is a 1 bit subfields. It is set only In the response message.
Reserved : is a 3 bit subfields set to 000
oh
Rcode : is a 4bit field that shows the status of the error in the response .
*E – MAIL :
- Email is most popular application of interenet
- the short form of email is electronic mail.
*User Agent :
it
- The first component of e-mail system is User Agent. It provide service to the user to
make the process of sending and reciving the messages
**Service provided by user Agent :
- The user Agent is a software that provide a service of Composing Messages, Reding Messages,
Reply To Messages, Forwardig Messages, Hadling Messages.
Composing Message : compose means Create
- A user Agent Helps the user to create an e-mail , in some editor built In spell checking ,
grammer checking , cut, copy, past etc formatting functions
Reading message : -
- the next function of user agent is to reed the icoming messages. User agent first check
the mail in the incoming mail box
Reply to message :
- after reading a icommig message user sent reply by using user agent ,
- the user agent allows the user to reply the origal message
Forwarding Messages :
- user agent allow the reciver to forward the message with or without extra coment to
anyone that he know.
Handling mail Box :
M
- user agent can create two mail boxes ie. Inbox & outbox
- inbox ca keeps all recived e-mails until they are deleted by user & the outbox keeps all
the sent e-mails until the user deletes them.
r.
User Agent Can Be of two types -
1) Command Driven A command driven agent accept one character from the keyword to
perform its task
2) GUI based : Modern users are GUI agent
R
**MIME :
- the Multipurpose Internet Mail Extension (MIME) is a protocol that allow seding
oh
non-ASCII data through the e-mail
- The MIME transform non-ASCII data at sender site to NVT(network virtual terminal)
Need : suppose user A wants to sent an email through user agent and it is non-ASCII
format so there is a MIME protocol that convert the non-ASCII value into 7-bit NVT ASCII
format.
it
*Header :
- Header is basically inserted at the beginning of any email.
- MIME defies five headers MIME-version, Content-type, Content type-encoding, Content-id,
content-Description
- that five headers added into the original email header to define the transformation
MIME Vision : this header defines version of MIME. It has the parameter value 1.1
Content-Type : this header defies what type of data used in the message. The data can be text,
image, audio, video
Content-Type-Ecoding – this header defines the method that encode the message into 0s & 1s
Content-ID – This header is used for uniquely identifying the whole message in a multiple
message eviromet
Content-Description – This header defines whether the body is actually image, video or audio
**MESSAGE TRANSFER AGENT (SMTP) :
- the mail transfer is done by message transfer agent (MTA)
-** Simple Mail Transfer Protocol :
- (SMTP) is a protocol that defines communication between MTA of clint & MTA of server
- SMTP is a push protocol it pushes the message from the clint to the server.
M
- SMTP is used In first and second stage of mail delivery
- The SMTP is a TCP/IP protocol that specifies how computer can exchange electronic mail
- SMTP is a push protocol and is used to send mail
Commands And Response :
r.
- SMTP use commands and response to transfer message between MTA clint & MTA server
.
R
- commands are sent by clint server, commands consist of zero or more arguments
- SMPT use 14 commads
oh
* Message Access Aget : POP3 & IMAP4 :
it
- SMTP is a push protocol is used to send the mail and the POP ( post office protocol) and IMAP
(internet message access protocol) are used to recive these mails.
- in simple words POP3 & IMAP4 is used to recive the mails from the mail server.
* POP3 :
- POP stands for Post office protocol.
- POP3 is an application layer standard protocol used by the local clints e-mail to retrieve
e-mail form a remote server over a TCP/IP connection.
- POP3 ca supports simple download-and-delete reqwriments , is a simple protocol with
limited functionality
- POP3 has two modes first one is delete mode and second one is keep mode
- POP4 protocol can not Allow the user to partialy check the content of mail before the
dowloding.
* IMAP4 :
- IMAP stands for Internet mail Access Protocol.
- IMAP4 protocol is similar as to the POP3 protocol but IMAP4 is more powerful and more
complex.
- IMAP4 protocol also can not Allow the user to partialy check the content of mail before
the dowloding.
M
- it provide the functions :
- user can check email header before downlodig.
- user can search the content of the e-mail for a specific string before the downlo.
- user can partially download e-mail.
- User ca create, delete, rename the mailbox.
r.
**FTP (File Trasfer Protocol) :
- FTP is a standard mechanism provided by the TCP/IP protocol for copying the file from one
host to another.
- FTP can transfer the files between ay computer that have an internet connection.
R
- UPLODING : transfer the file from a clint computer to the server computer colled “Uploding”.
- FTP is an clint/server application.
- FTP estabilishes connections betwn the host. One is conection and other is for control
oh
information.
*Clint Components : user interface, clint control process, data transfer process.
*Server Components : control process , data transfer process
- communication with the FTP server is done by the two connections ie. Control and data
conection.
it
-FTP uses port 21 of TCP for control conection and port 20 used for the data connection
- FTP can transfer the ASCII file, Image file EBCDIC file.
- FTP has differet data structures ie. File structure , record structure , page structure.
- FTP hs different modes ie. Streem mode, block mode, compressed mode
** Anonymous FTP : to use FTP user neet acc. & pass. On remote server. Anonymous FTP allows
user without having account on server.
it
oh
R
r.
M