University of Leeds · FACULTY OF ELECTRICAL ENGINEERING

ELEC1401 Chap.7 Web and Email Protocols

- one subject, every graph, every model, every mark
6 Chapters4-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 7 of 10 · ELEC1401

Web and Email Protocols

Web and Email Protocols compares application message flows with different purposes. HTTP uses request-response exchanges between browser and server processes. A base HTML object can reference additional resources, so one visible page may require several requests. Non-persistent operation creates a transport connection for each object, while persistent operation can reuse a connection and reduce repeated setup.

Round-trip time provides a simplified timing unit, but lookup, security setup, transmission, parallelism and queueing must be stated or excluded. Email separates sending, relay and user access. SMTP moves a message from a sending mail server to a receiving mail server, where storage allows the recipient to retrieve it later. The recipient device need not be online at send time.

Strong protocol traces label each process role and action rather than treating a page or email as one unexplained arrow.

In this chapter

What this chapter covers

  • 01

    HTTP request-response

  • 02

    Web object references

  • 03

    Persistent connections

  • 04

    Round-trip timing

  • 05

    SMTP mail relay

  • 06

    Mail server storage and access

Worked example · free

Compare simplified HTTP delays

Q [6 marks]. RTT is 80 ms. A base page references three small objects. Ignore DNS and transmission time. Compare sequential non-persistent HTTP with one persistent connection without pipelining. This mark allocation is not an official University assessment scheme.
The timing ladder shows connection setup, a response and a later request reusing the same persistent HTTP connection between client and server.The timing ladder shows connection setup, a response and a later request reusing the same persistent HTTP connection between client and server.clientserverconnection setupresponsenext requestpersistent HTTP reuses one connection for later object requests
The timing ladder shows connection setup, a response and a later request reusing the same persistent HTTP connection between client and server.
  • 3Count four objects including the base page. Non-persistent operation uses two RTTs per object, giving 8 RTTs or 640 ms.
  • 2Persistent operation uses two RTTs for the first object and one for each later object, giving 5 RTTs or 400 ms.
  • 1State the simplified saving of 240 ms and list the ignored delays.
The simplified delays are 640 ms and 400 ms, so connection reuse saves 240 ms under the stated assumptions. The weighting is original practice guidance.
Sia tip — Count the base object before multiplying by the round-trip assumptions.
Glossary

Key terms

HTTP
An application protocol using requests and responses to transfer web resources.
Persistent connection
A transport connection reused for more than one application exchange.
SMTP
An application protocol used to transfer email between mail processes and servers.
FAQ

Web and Email Protocols FAQ

Why can one page require many requests?

The base HTML document can reference images, style sheets, scripts and other objects. A browser interprets those references and issues additional requests, possibly across reused or parallel connections and even different servers.

What does persistent HTTP save?

Connection reuse avoids repeating transport setup for every later object and can reduce round-trip overhead. The real saving depends on security negotiation, object size, parallel requests, server behaviour and whether an existing connection is available.

Can email arrive while the recipient is offline?

Yes. Sending and receiving mail servers store and forward the message independently of the recipient user agent. The recipient retrieves or synchronises stored mail later through an access mechanism.

Why is a successful mail relay not the same as reading?

Relay transfers a message between mail services and storage places it in the recipient system. Reading requires a later access action by the recipient user agent. Keep submit, relay, store and retrieve as distinct events when tracing delays or failures.

Study strategy

Exam move

Draw a browser and server as vertical timelines. Label connection establishment, the base-object request, response and later object requests. Repeat the trace for non-persistent and persistent operation. Before calculating, list the assumptions about DNS, security setup, transmission time, parallelism and connection reuse. Use several object counts so you learn the RTT model rather than one answer.

For email, draw four roles: sender user agent, sending mail server, receiving mail server and recipient user agent. Label SMTP relay separately from recipient access. Practise cases where the recipient is offline and explain how storage preserves the message. Compare HTTP and SMTP by purpose, initiating process, message sequence and storage behaviour; do not reduce the answer to port numbers.

Build a vocabulary list for request, response, relay, queue, mailbox and retrieval. In typed explanations, state which process acts as client for that exchange, because a mail server can be an SMTP client when sending onward. Review web questions by counting objects, not visible pages, and add a final sentence that limits the simplified timing result.

For every protocol arrow, write what message crosses the socket and what response is expected. Finish by reconstructing both traces from memory with neutral process names so the logic is independent of one familiar application brand. Add a table separating submission, relay, storage and retrieval so an email being accepted is not mistaken for being read.

Change the object count and server destination in each HTTP exercise, then decide which connections can actually be reused. Recalculate with a nonzero transmission term to see when large resources dominate round-trip overhead. For mail, mark when each process is online and show why store-and-forward delivery decouples the two user agents.

Diagnose a failed web load by testing lookup, connection, status response and missing object in sequence. End with two role statements: the browser initiates a resource request, while a sending mail server can itself act as a client during relay.

Working through Web and Email Protocols in ELEC1401? Sia is AskSia’s AI Electrical Engineering tutor — ask any ELEC1401 Web and Email Protocols question and get a clear, step-by-step explanation grounded in how ELEC1401 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 8 of your subjects at University of Leeds, plus 1,000+ more Bibles across the AskSia library.
Sia - your ELEC1401 tutor, unlimited, worked the way the exam marks it
The full 4-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works
ELEC1401 · Introduction to Communication Systems - independent study guide on the AskSia Library. More University of Leeds subjects · Microeconomics across all universities