Hong Kong Baptist University · FACULTY OF COMPUTER SCIENCE

AIDM7450 Chap.4 Network Layers and HTTP Exchanges

- one subject, every graph, every model, every mark
7 Chapters3-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 4 of 7 · AIDM7450

Network Layers and HTTP Exchanges

Layered diagnosis for web communication

The chapter places HTTP above transport, addressing and local transmission. OSI and TCP/IP are treated as different descriptions of the same communication rather than rival paths. IP supplies addressing and routing, TCP supplies reliable ordered connections identified by ports, and HTTP carries a method and target to the server and returns status, content type and body.

The practical method is to name the lowest confirmed success, then inspect the next contract above it.

Evidence narrows the layer at fault. Reaching the intended host supports the addressing path; opening a reliable connection supports the transport contract; seeing a request at the server supports both. The remaining diagnosis then moves to method, target, route, status, representation type and body.

UDP provides a contrasting transport with no connection or enforced reliability, useful when current delivery matters more than recovery of every older update. The choice belongs to application requirements, not to a claim that one transport is always faster or better.

In this chapter

What this chapter covers

  • 01

    OSI and TCP/IP layer mappings

  • 02

    IP source and destination addressing

  • 03

    TCP ports and reliable ordered delivery

  • 04

    UDP connectionless delivery

  • 05

    HTTP methods and request targets

  • 06

    Response status and content type

  • 07

    Protocol capture as debugging evidence

Worked example · free

Separate network success from HTTP failure

Q [9 marks]. AskSia-authored practice. A host is reachable and a connection opens, but an error page returns status 200 with a plain-text content type. Diagnose by layer. The marks shown are an AskSia study allocation.
HTTP sits above transport, addressing and local transmission.HTTP sits above transport, addressing and local transmission. The nested bands show the request depending on lower-layer services without taking over their jobs.One web exchange crosses several responsibilitiesHTTP: request and responseTCP: reliable ordered connectionIP: address and routelink: local transmissionclientserver
HTTP sits above transport, addressing and local transmission. The nested bands show the request depending on lower-layer services without taking over their jobs.
  • 2State which lower layers are confirmed working.
  • 3Identify the false success status.
  • 4Correct the representation type and route outcome.
The marks here organise a diagnostic exercise and are not an official university marking scheme. Addressing and transport are working because the host is reached and the connection opens. The application defects remain: the route failed but reported success, and HTML was labelled as plain text. Return the appropriate error status, label the representation as HTML and repair the route or lookup separately. Do not change lower network settings for an exchange that already reached the server.
Sia tip — Write method, path, status and content type before explaining the body. Those fields expose most HTTP mismatches.
Glossary

Key terms

OSI Model
A seven-layer reference model separating responsibilities from physical transmission through application services.
IP Address
A network and host identifier used to route packets toward the intended device.
TCP Port
An endpoint number that distinguishes simultaneous transport connections on one host.
HTTP Method
The request field that states the intended operation, such as retrieval or submission.
Content Type
A representation label telling the recipient how to interpret the response body.
Protocol Analyzer
A tool that captures network traffic so request and response fields can be inspected directly.
FAQ

Network Layers and HTTP Exchanges FAQ

How are OSI and TCP/IP related?

They group the responsibilities of the same communication differently. OSI separates seven layers, while TCP/IP combines the upper application-related responsibilities and the lower link responsibilities. Name the function first, then place it in the model being used rather than treating packets as choosing between models.

What is the practical difference between TCP and UDP?

TCP maintains a connection and aims for reliable, ordered transmission. UDP keeps no session and does not enforce reliability. The choice follows application needs: some systems value every ordered item, while others prefer a current update even if an older packet is lost.

Why can an error page carry status 200?

A server can send any body with any status unless code aligns them. The human-readable page may say error while the protocol reports success, causing monitoring and clients to record a false result. Status describes outcome separately from body content.

Study strategy

Exam move

Capture or sketch one HTTP exchange and label method, path, status, content type and body. Then place HTTP, TCP and IP at their respective responsibilities. Introduce one deliberate mismatch, such as a wrong path, false status or incorrect content type, and predict which fields change. This turns the layered models into a debugging order rather than a vocabulary list.

Translate the same exchange into both the OSI and TCP/IP descriptions, naming the responsibility before assigning a layer. Make a small table comparing IP address, port and application path so each identifier is attached to its owner. Contrast one ordered file transfer with one current-score update and explain what TCP and UDP respectively guarantee or omit; avoid choosing a transport from its name alone.

For HTTP, write a request line and response summary from memory, then inspect a real record and correct your version. Test an error body paired with status 200 and explain why a person and an automated client can reach different conclusions. Repeat with the wrong content type, noting that the bytes can arrive intact while the recipient interprets their representation incorrectly.

Close by stating the lowest confirmed success and only one next boundary to inspect. Maintain an evidence ladder for each test, crossing out lower-layer hypotheses only when a packet, connection or application field actually confirms the corresponding contract.

Working through Network Layers and HTTP Exchanges in AIDM7450? Sia is AskSia’s AI Computer Science tutor — ask any AIDM7450 Network Layers and HTTP Exchanges question and get a clear, step-by-step explanation grounded in how AIDM7450 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 16 of your subjects at Hong Kong Baptist University, plus 1,000+ more Bibles across the AskSia library.
Sia - your AIDM7450 tutor, unlimited, worked the way the exam marks it
The full 3-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