Professional Documents
Culture Documents
Unit 121
Computer Network (Level 6)
Outcome 3
Sockets Programming and Implementation
Client/Server Programs
Unit 121 - Basic Concept of Computer Network, Layered Architecture and Protocols
FTP & TFTP Server
Web server
Responds to client requests by providing resources
URI (Uniform Resource Identifier)
Web server and client communicate with platform-independent Hypertext
Transfer Protocol (HTTP)
Web Server
How the WWW Works
Web Server
Domain Name Server System
Web Server
Format of an email
Format of an email
Mail Server
Connection Establishment
Mail Server
Message Progress
Mail Server
Connection Termination
No authentication mechanisms
Messages are sent un-encrypted
Susceptible to misuse (Spamming,
faking sender address)
Mail Server
First scenario
Second scenario
Third scenario
POP is used to retrieve mail for a single user, typically the POP server has
access from database email messages created by an SMTP server.
POPv1 is launched on October 1984. It was published in RFC 918.
POPv3 is the recently standard
POP use port 110
The server host starts the POP3 service by listening on TCP port 110.
A client establishes a TCP connection with the server host.
When the connection is established the server sends a greeting.
The client and the server exchange commands and responses until the
connection is closed or aborted.
The server can respond with a positive status sending "+OK" to the client
or with a negative status sending "-ERR" to the client (both in uppercase).
Mail Server
Authorization state
In this state, the client sends identification to the server. This is
implemented in two ways (More information on authentication is described
in RFC 1734):
- Using USER and PASS commands
- Using APOP command
Transaction state
In this state, the client can issue commands for listing, retrieving, and
deleting. Please note that the deleting action is not taken in this state. The
client must send the QUIT command and then the server goes to the
update state.
Update state
In this state, the server updates the mailbox according to the commands
received from the client in the transaction state and the TCP connection
ends. If the connection is broken for any reason before the quit command is
received from the client, the server does not enter the update state.Thus,
the server will not update anything.
Mail Server
POP3 works by reviewing the inbox on the mail server, and downloading the
new messages to your computer. IMAP downloads the headers of the new
messages on the server, then retrieves the message you want to read when
you click on it.
When using POP3, your mail is stored on your PC. When using IMAP, the mail
is stored on the mail server. Unless you copy a message to a "Local Folder"
the messages are never copied to your PC.
Mail Server
SMTP range
Mail Server
Pop3 and IMAP4
Mail Server
WEB-BASED MAIL
E-mail is such a common application that some websites today provide this service
to anyone who accesses the site. Three common sites are Hotmail, Yahoo, and
Google. The idea is very simple. Let us go through two cases: