CH 5 Application Layer Protocols 20m
CH 5 Application Layer Protocols 20m
Q.5 Construct a diagram to show the application of cookies in a scenario in which the server uses
cookies for advertisement. (Note: Any other diagram shall be considered) 4M
Use of Cookies for advertisements:
A cookie is also used by advertising agencies. An advertising agency can place banner ads on some main
website that is often visited by users. The advertising agency supplies only a URL that gives the banner
address instead of the banner itself. When a user visits the main website and clicks on the icon of an
advertised corporation, a request is sent to the advertising agency.
The advertising agency sends the banner, a GIF file, for example, but it also includes a cookie with the ill of
the user.
Any future use of the banners adds to the database that profiles the Web behaviour of the user. The
advertising agency has compiled the interests of the user and can sell this information to other parties. This
use of cookies has made them very controversial. Hopefully, some new regulations will be devised to
preserve the privacy of users.
OR
Figure below shows a scenario in which an electronic store can benefit from the use of cookies.
A shopper wants to buy a toy from an electronic store named BestToys.com.
The Server sends the Webpage, but it also includes a cookie with the ID 12343.
Using this a file is created such that the information clicked by the user is sent and stored in the file, which
are used by the server.
Q.7 Explain about standard and non standard protocols at the application layer. 4M
(Note: Any other protocol shall be considered).
HTTP
• The Hypertext Transfer Protocol (HTTP) is a Application layer protocol used mainly to access data on the
World Wide Web.
• HTTP uses the services of TCP on well-known port 80.
FTP
• FTP (File Transfer Protocol) is standard TCP/IP protocol to transfer files.
• It uses the services of TCP. It needs two TCP connections.
• The well-known port 21 is used for the control connection and the well-known port 20 for the data
connection.
SMTP
• It stands for Simple Mail Transfer Protocol. It is a part of the TCP/IP standard protocol.
• Using a process called “store and forward,” SMTP moves your email on and across networks.
• It works closely with something called the Mail Transfer Agent (MTA) to send your communication to the
right computer and email inbox.
• Port number for SMTP is 25.
TELNET
• TELNET is an abbreviation for TErminaLNETwork. It is the standard TCP/IP protocol for virtual terminal
service
• 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.
• There are two parties involved TELNET Client and TELNET server.
DNS
• It stands for Domain Name Service. Every time you use a domain name, therefore, a DNS service must
translate the name into the corresponding IP address.
• For example, the domain name www.abc.com might translate to 198.105.232.4.
• Port number for DNS is 53.
DHCP
• It stands for Dynamic Host Configuration Protocol (DHCP). It gives IP addresses to hosts.
• There is a lot of information a DHCP server can provide to a host when the host is registering for an IP
address with the DHCP server.
• Port number for DHCP is 67, 68.
POP3
• Post Office Protocol, version 3 (POP3) is simple and limited in functionality.
• POP works as a Message Access Agent.
• The client POP3 software is installed on the recipient computer; the server POP3 software is installed on
the mail server.
• Mail access starts with the client when the user needs to download e-mail from the mailbox on the mail
server.