Networking Engineering / NETWORK FOUNDATIONS & IP ROUTING / NET-001

Request Path

Explore concept graph

Latihan soal

Uji request dan connection failure

Jalankan fixture yang tersedia dalam repo pada Node 24:

node generation/fixtures/NET-001/request-path.mjs

Prediksi terlebih dahulu tiga baris output:

http-created=201
http-unavailable=503
connect-error=ECONNREFUSED

Dua baris pertama berasal dari respons HTTP. Baris ketiga terjadi setelah listener dihentikan, tanpa respons HTTP.

Konsep 1 / 3

Explain the role of each boundary in an HTTP request without mistaking an OSI diagram for a wire trace.

Coba prediksi atau perbaiki

A diagram labels HTTP as the protocol that selects a router's next hop. Which box should be responsible for route selection?

Kalau jawabanmu berbeda

Kesalahan yang mungkin: Assuming every request uses HTTP over TCP and every network precisely implements a seven-layer OSI stack.

Mengapa tidak bekerja: OSI is a reference model; real stacks combine responsibilities. HTTP/3, for example, is not HTTP/1.1 over TCP.

Coba perbaiki: Label the diagram 'HTTP/1.1 over TCP/IPv4 on Ethernet' and draw only the layers used by that scenario.

Periksa hasil sendiri

Hasil yang diharapkan: Your drawing has HTTP→TCP→IP→Ethernet for outbound encapsulation and the inverse on the receiver.

Kalau berbeda: Check whether you are mixing the direction of sending with how inbound frames are decapsulated.

Konsep 2 / 3

Trace the client, router and server roles for POST /transfers and explain what changes at a hop.

Coba prediksi atau perbaiki

At a router, which should guide normal IPv4 forwarding: the HTTP URL /transfers or the packet destination address?

Kalau jawabanmu berbeda

Kesalahan yang mungkin: Assuming the destination MAC address stays constant from client to remote backend.

Mengapa tidak bekerja: Ethernet addresses are scoped to one link; routers rewrite link framing for the next interface.

Coba perbaiki: Redraw one frame on each hop while maintaining the higher-level request narrative.

Periksa hasil sendiri

Hasil yang diharapkan: Your path labels client, router and server with IP forwarding and per-hop Ethernet framing.

Kalau berbeda: Verify that you did not place HTTP request parsing on a normal IP router.

Konsep 3 / 3

Classify six request failures by boundary and produce an observable diagnostic for each.

Coba prediksi atau perbaiki

A CLI prints ECONNREFUSED when POSTing /transfers. Which layer should be investigated before debugging HTTP status handling?

Kalau jawabanmu berbeda

Kesalahan yang mungkin: Reporting a 503 when the TCP connection was refused.

Mengapa tidak bekerja: 503 requires an HTTP response from an HTTP origin or intermediary. A failed transport connection has no HTTP response.

Coba perbaiki: Record the observed error string or status and name which component generated it.

Periksa hasil sendiri

Hasil yang diharapkan: The fixture prints two HTTP status lines and one ECONNREFUSED transport error.

Kalau berbeda: Check that Node supports the built-in http module and that the script is run without modifying its server lifecycle.

Lima pertanyaan pembeda

Jawab tanpa melihat pembahasan dulu. Kamu bisa memperbaiki jawaban dan mencoba lagi. Kuis ini latihan mandiri dan tidak menyimpan skor atau progres.

Dalam contoh HTTP/1.1 melalui TCP/IPv4/Ethernet, urutan encapsulation saat client mengirim pesan adalah?
Apa yang biasanya digunakan router IPv4 untuk keputusan forwarding biasa?
Client menerima ECONNREFUSED tanpa status HTTP. Diagnosis pertama yang paling kuat adalah?
Apa arti hasil http-unavailable=503 di fixture lokal?
Reverse proxy mengembalikan HTTP 502 saat backend tak bisa dihubungi. Mana yang benar?