Unit V CN Revised
Unit V CN Revised
8
Inverse Domain
• Inverse domain is used to map an address to a name.
• For example, a client send a request to the server for
performing a particular task, server finds a list of
authorized client. The list contains only IP
addresses of the client.
• The server sends a query to the DNS server to map
an address to a name to determine if the client is on
the authorized list.
• This query is called an inverse query.
• This query is handled by first level node called arpa.
• Internet is divided into over 200 top- level
domains, where each domain covers many
hosts.
• Each domain is partitioned into
subdomains, and these are further
partitioned, and so on.
• All these domains can be represented by a
tree.
12
7.1.1. The DNS Name Space
26
7.1.2. Resource Records
27
7.1.2. Resource Records
Part of the DNS name space showing the division into zones.
37
7.1.3. Name Servers
• Architecture and
Services
• The User Agent
• Message Formats
• Message Transfer
• Final Delivery
• Architecture and
Services
• The User Agent
• Message Formats
• Message Transfer
• Final Delivery
53
7.2.3 Message Formats – RFC 822
Messages consist of :
• a primitive envelope,
• some number of header
fields,
• a blank line,
• and then message body
From: [email protected]
To: [email protected]
Subject: An RFC 822 formatted message
58
MIME – Multipurpose Internet
Mail Extensions
•In the early days of the ARPANET, e-
mail consisted exclusivly of text
messages written in English and
expressed in ASCII.
•For this environment, RFC 822 did the
job completely: it specified the headers
but left the content entirely up to the
users.
57
• Multipurpose Internet Mail Extension (MIME) is
a standard that was proposed by Bell
Communications in 1991 in order to expand the
limited capabilities of email.
• MIME is a kind of add-on or a supplementary
protocol that allows non-ASCII data to be sent
through SMTP.
• It allows the users to exchange different kinds of
data files on the Internet: audio, video, images,
application programs as well.
Working of MIME –
67
7.2.4. Message Transfer
72
SMTP
• SMTP stands for Simple Mail Transfer Protocol.
• SMTP is a set of communication guidelines that allow
software to transmit an electronic mail over the internet is
called Simple Mail Transfer Protocol.
• It is a program used for sending messages to other
computer users based on e-mail addresses.
• It provides a mail exchange between users on the same or
different computers, and it also supports:
• It can send a single message to one or more recipients.
• Sending message can include text, voice, video or
graphics.
• It can also send the messages on networks outside the
internet.
• The main purpose of SMTP is used to set
up communication rules between servers.
The servers have a way of identifying
themselves and announcing what kind of
communication they are trying to perform.
• They also have a way of handling the
errors such as incorrect email address.
• For example, if the recipient address is
wrong, then receiving server reply with an
error message of some kind
Components of SMTP
• Local user or client-end utility known as the mail user
agent (MUA) A Mail User Agent (MUA), also referred to as
an email client, is a computer application that allows you to
send and retrieve email.
• Server known as mail submission agent (MSA) A message
submission agent (MSA), or mail submission agent, is a
computer program or software agent that receives electronic
mail messages from a mail user agent (MUA) and cooperates
with a mail transfer agent (MTA) for delivery of the mail.
• Mail transfer agent (MTA) An MTA is just an element of the
email delivery process. It receives an email from the
mail/message submission agent (MSA), which, in turn,
receives it from the mail user agent (MUA).
• Mail delivery agent (MDA) Mail Delivery Agent (MDA) is
invoked by the MTA to file incoming emails in the proper
user’s mailbox.
Working of SMTP
• Composition of Mail: A user sends an e-mail by composing
an electronic mail message using a Mail User Agent (MUA). Mail
User Agent is a program which is used to send and receive mail.
The message contains two parts: body and header. The body is
the main part of the message while the header includes
information such as the sender and recipient address. The
header also includes descriptive information such as the subject
of the message. In this case, the message body is like a letter
and header is like an envelope that contains the recipient's
address.
• Submission of Mail: After composing an email, the mail client
then submits the completed e-mail to the SMTP server by using
SMTP on TCP port 25.
• Delivery of Mail: E-mail addresses contain two parts: username
of the recipient and domain name. For example,
[email protected], where "vivek" is the username of the recipient
and "gmail.com" is the domain name.
• If the domain name of the recipient's email
address is different from the sender's domain
name, then MSA will send the mail to the Mail
Transfer Agent (MTA).
• Receipt and Processing of Mail: Once the
incoming message is received, the exchange
server delivers it to the incoming server (Mail
Delivery Agent) which stores the e-mail where it
waits for the user to retrieve it.
• Access and Retrieval of Mail: The stored email
in MDA can be retrieved by using MUA (Mail User
Agent). MUA can be accessed by using login and
password.
Message Transfer
Transferring a message
from
[email protected]
to
[email protected].
Disadvantages of SMTP:
• SMTP’s common port can be blocked by several firewalls.
• SMTP security is a bigger problem.
• Its simplicity restricts how useful it can be.
• Just 7 bit ASCII characters can be used.
• If a message is longer than a certain length, SMTP servers
may reject the entire message.
POP3
• The POP protocol is an abbreviation for Post Office
Protocol. As we all know, SMTP is a message
transport agent. When a message is transmitted,
SMTP is used to transfer it from the client to the
server, and then to the receiving server.
• The message is transmitted from the receiving
server to the real server via the Message Access
Agent.
• The Message Access Agent supports two
protocols: POP3 and IMAP.
POP(Post Office Protocol):
(a) Sending and reading mail when the receiver has a permanent
Internet connection and the user agent runs on the same machine as
the message transfer agent. (b) Reading e-mail when the
receiver has a dial-up connection to an ISP.
BLM431 Computer Networks
Dr.Refik Samet
74
7.2.5. Final Delivery - POP3
75
7.2.5. Final Delivery - IMAP
• IMAP – Internet Message Access Protocol
•IMAP assumes that all the e-mail will remain
on the server indefinitely in multiple
mailboxes.
•But POP3 basically assumes that the user will
clear out the mailbox on every contact and
work off-line after that.
•IMAP – provides extensive mechanisms
for reading message or even parts of
messages. Dr.Refik Samet
A compariso n o f P O P 3 and IMAP.
BL M431 C omp ute r Ne two rks
77
Dr.Refik Samet
SNMP
Response
The SNMP Agent retrieves the requested OID from the MIB and sends the data to
the SNMP Manager.
GetNext
This command requests the value of the next OID in the MIB tree. When you need
to obtain more than one piece of data from a network device, you can efficiently
use Get followed by GetNext instead of two separate Get commands.
GetBulk
Using this single command, the SNMP Manager can retrieve multiple pieces of
information from a network device. This command is supported by SNMP v2 and
later versions.
Inform
This is similar to a Trap command, but here the SNMP Manager
acknowledges receipt of the agent’s notification. This command is available
only in SNMP v2 and later.
Trap
This is an agent-initiated command through which the agent informs the
manager of specific events. For example, you can configure an agent to
notify the manager when CPU utilization on a specific device exceeds 80
percent for one minute.
Set
SNMP managers can use a Set command to change configurations on a
managed device.
Advantages of SNMP
Agents are widely implemented.
It is easy to implement.
Limitation of SNMP
It does not scale well.
• Then browser requests the Domain Name Server for the IP address
corresponding to www.tutorialspoint.com.
• After receiving IP address, browser sends the request for web page to the web
server using HTTP protocol which specifies the way the browser and web
server communicates.
• Then web server receives request using HTTP protocol and checks its search
for the requested web page. If found it returns it back to the web browser and
close the HTTP connection.
• Now the web browser receives the web page, It interprets it and display the
contents of web page in web browser’s window.
Components of Web:
URL
• Method:
The method is the protocol used to retrieve the
document from a server. For example, HTTP.
• Host:
27.110
• Port:
The URL can also contain the port number of
the server, but it's an optional field. If the port
number is included, then it must come between
the host and path and it should be separated
from the host by a colon.
• Path:
27.112
Figure 27.16 Example 27.1
27.113
Figure 27.17 Example 27.2
27.114
URLs – Uniform Resource Locaters
Some common URLs.
CSC 450/550
WEB DOCUMENTS
Static Web pages:
27.122
Note
27.123
HTTP
• HTTP stands for HyperText Transfer Protocol.
• It is a protocol used to access the data on the World
Wide Web (www).
• The HTTP protocol can be used to transfer the data in
the form of plain text, hypertext, audio, video, and so
on.
• This protocol is known as HyperText Transfer Protocol
because of its efficiency that allows us to use in a
hypertext environment where there are rapid jumps
from one document to another document.
• HTTP is used to carry the data in the form of MIME-
like format.
• HTTP is similar to SMTP as the data is transferred
between client and server. The HTTP differs from the
SMTP in the way the messages are sent from the
client to the server and from server to the client.
SMTP messages are stored and forwarded while
HTTP messages are delivered immediately.
HTTP uses a client-server model where-
Web browser is the client.
Client communicates with the web server hosting the
website.
Features of HTTP:
Connectionless protocol:
• HTTP is a connectionless protocol.
3. Stateless:
HTTP is a stateless protocol as both the client
27.128
HTTP Connections
HTTP Version
URL
HTTP Method
HTTP Request Headers
HTTP Body
<Method> <Request-URI> <HTTP-Version>
<Header-Name>: <Header-Value>
...
<Header-Name>: <Header-Value>
<Optional-Body>
//http
GET /index.html HTTP/1.1
Host: www.example.com
User-Agent: Mozilla/5.0
Accept: text/html
Method: The HTTP method (e.g., GET, POST)
indicating the action to be performed.
Request-URI: The resource being requested
(e.g., /index.html).
HTTP-Version: The version of HTTP being used
(e.g., HTTP/1.1).
Header-Name: The name of the header (e.g.,
Host, User-Agent).
Header-Value: The value associated with the
header.
Optional-Body: The body of the message,
typically present in POST requests.
HTTP Response
<html>
<body>
<h1>Welcome to Example.com!</h1>
</body>
</html>
Status-Code: A three-digit code indicating the
result of the request (e.g., 200, 404).
Reason-Phrase: A brief description of the
status code.
Header-Name and Header-Value: Similar to
request messages.
Optional-Body: The body of the response,
often containing HTML, JSON, or other data.
Table 27.1 Methods
27.140
Example
Request
GET /index.html HTTP/1.1
Method: GET (used to retrieve data)
Path: /index.html (resource requested)
HTTP Version: HTTP/1.1
Response
HTTP/1.1 200 OK
Date: Wed, 04 Dec 2024 10:00:00 GMT
Server: Apache/2.4.41 (Ubuntu)
Last-Modified: Tue, 03 Dec 2024 15:30:00 GMT
Content-Type: text/html
Content-Length: 349
Figure 27.14 Request and status lines
HTTP Status Code
HTTP Status Codes are the 3-digit codes that tell the
message or simply tell us about the HTTP Request
whether it has been completed or not. There are
simply 5 types of status codes.
Informational
Successful
Re-directional
Client-Error
Server-Error
Table 27.2 Status codes
27.144
Table 27.2 Status codes (continued)
27.145
HTTP caching
155
What is Streaming Technology
Data
Source
Network
157
Disadvantages
158
3 Types of delivery methods of
streaming media
159
Media Player or Helper Application
160
Accessing Audio & Video
thru a Web server
Web
HTTP
Browser
Web Server
Client
With Audio
Files Files
Media
Player
161
Accessing Audio & Video
thru a Meta File
HTTP request/response
Client Web
Browser Web
Server
meta file
RTSP Streaming Command
Streaming
Media Server
Player RTP Audio / Video
Content
164
RTSP
165
RTSP Features
Client-Server architecture
166
RTP
167
RTSP Operation
HTTP GET
Web Web HTTP
Browser Presentation Description File Server
Setup
Play
Medi Medi
a Media Stream a
RTSP
Player Pause Player
Teardown
168
Presentation Description File
<title> Music </title>
<session> <group language=en lipsync>
<switch>
<track type=audio
e=”PCMU/8000/1”
src=”rtsp://audio.com/music/audio.en/lofi”>
<track type=audio
e=”DV14/16000/2” pt=”90 DV14/8000/1”
src=”rtsp://audio.com/music/audio.en/hifi”>
</switch>
<track type=”video/jpeg”
src=”rtsp://video.com/music/video”>
</group> </session>
169