WEB TECH LAB

Web Tech
Lab.

Five chapters of Internet and Web Technology, rebuilt as things you can poke. Send packets down the layers, break an IRC network, post a review on a Web 2.0 page and race HTTP/1.0 against HTTP/1.1.

The hourglass. Every application above and every medium below only has to speak IP.

Chapters

Your weak spots

Slide mistakes to watch for

  • HTTP/1.0 is RFC 1945, published in 1996. The slide says "RFC in 1945".
  • In persistent HTTP the connection stays open. Only the request and response repeat for each object.
  • Web 1.0 starts in 1991, not the late 1990s.
  • Web services use XML and HTTP. The slide says HTML. HTTPS is HTTP plus SSL/TLS, and "HTTL" is a typo.
01

Internet

Must remember

  1. ARPANET began in 1969 under ARPA (US DoD). IP was added so different networks could talk.
  2. LAN reaches about 1 mile at 10 Mbps to 10 Gbps. MAN covers 5 to 50 km. WAN covers a country or the world.
  3. Pure P2P has no server (Gnutella, Freenet). Hybrid P2P leans on servers (Skype).
  4. OSI has 7 layers (1984). TCP/IP in the slides has 5. TCP is reliable, UDP is connectionless.
  5. IP is the narrow waist of the hourglass. A URN names, a URL locates and a URI covers both.
  6. ICANN runs names and numbers, W3C runs web standards and RIRs hand out IP blocks by region.
1.4

LAN, MAN or WAN

Try it

Pick a network size and see how far it reaches, how fast it runs and where you meet one in real life.

1.5

Who talks to whom

Try it

Switch between pure P2P, hybrid P2P and client-server, then send a request and watch the path it takes.

1.6

Send a request down the layers

Try it

Step through encapsulation. Each layer on the sender adds its header, the bits cross the wire and each layer on the receiver strips its header off. Click any layer to read what it does.

1.7

URL dissector

Try it

Paste any URL or pick an example. The parts light up and the DNS hierarchy is read from the root.

1.7

URN or URL

Try it

Every URN and every URL is a URI. Decide whether each identifier names a thing or tells you where to fetch it.

1.8

ISP tiers

Try it

Click a tier to read its role, or trace a connection from one home to another across the tiers.

1.9

Who runs the Internet

Try it

Pick an organisation, then pick its job. Correct pairs lock in green.

1.10

Cyber citizen or not

Try it

Judge each situation against the tenets of cyber ethics.

Check

Chapter 1 check

02

Internet and Its Applications

Must remember

  1. Email is store and forward. SMTP moves mail between MTAs. POP3 or IMAP retrieves it from the MDA.
  2. Ray Tomlinson sent the first email in 1971. Webmail is reading mail through a browser.
  3. FTP copies files over TCP with a control and a data connection. Use SFTP for security.
  4. VoIP beats a dedicated 64 Kbps circuit per call and uses nothing when idle.
  5. IRC suffers on scalability, reliability, congestion and privacy because of its spanning tree.
  6. Telnet uses port 23 and an NVT, negotiating with DO, WILL, WON'T and DON'T. Usenet (1979) uses NNTP.
2.2

Follow an email

Try it

Step a message from Zul to Aina through every agent, then compare POP3 and IMAP on two devices.

2.3

FTP on the wire

Try it

Play an FTP session and see what someone sniffing the network can read. Then switch to SFTP.

2.4

VoIP bandwidth

Try it

An office with phone lines. Compare dedicated 64 Kbps circuits with VoIP calls on the data network.

2.4

Break the IRC tree

Try it

IRC servers must form a spanning tree. Click any link to cut it and watch the network split.

2.5

Telnet option negotiation

Try it

Both ends act as a Network Virtual Terminal. Options are agreed with four commands. Run a negotiation.

2.6

Which newsgroup

Try it

Usenet sorts discussion into hierarchies. Decide where each post belongs.

2.1

Service, protocol, port

Try it

Match each job to the protocol that does it. The port number comes along for free.

Check

Chapter 2 check

3.1

The World Wide Web

Must remember

  1. The web is a service running on the Internet. Tim Berners-Lee created it at CERN.
  2. HTTP is the protocol, HTML is the content and the URL is the address.
  3. Static pages are plain HTML. Dynamic pages are built by PHP, ASP or JSP.
  4. A website is many pages under one domain. A web application lets users act on data.
  5. A web application serves people. A web service serves other applications using XML and HTTP.
  6. Web apps are client-server, built as two-tier, three-tier or N-tier.
3.1.1

The web sits on the Internet

Try it

The Internet is the roads. The web is one kind of traffic on them. Click the three technologies that make the web work.

3.1.3

Static or dynamic

Try it

Request each page as a different visitor. One never changes. The other is built for you on the server.

3.1.3

Page, site, application or service

Try it

Click a card, then click the box it belongs in.

3.1.4

Two-tier, three-tier, N-tier

Try it

Switch architectures and send a request through each one.

3.1.5

Name the web challenge

Try it

Each situation shows one of the ten challenges of the WWW. Spot which.

Check

Chapter 3.1 check

3.2

Web Evolution

Must remember

  1. Web 1.0 (1991 to 2003) is the read-only web of cognition, built on HTML.
  2. Web 2.0 (2004 to 2010) is the read-write social web of XML and RSS. Tim O'Reilly coined it.
  3. Web 3.0 (2006 to now) is the read-write-execute semantic web of RDF, RDFS and OWL.
  4. The semantic web core is explicit metadata, ontologies, a logic module and software agents.
  5. The 7 Vs are volume, variety, velocity, veracity, variability, visualisation and value.
  6. Big Data comes from social networks, traditional business systems and the Internet of Things.
3.2.2

Web time machine

Try it

The same nasi lemak stall online in three eras. Read it in 1.0, post a review in 2.0 and let a software agent reason over it in 3.0.

3.2.4

Semantic Web stack

Try it

Each layer builds on the one below. Click a layer to see its job.

3.2.5

Which web is it

Try it

Sort each feature into Web 1.0, 2.0 or 3.0.

3.2.6

The 7 Vs of Big Data

Try it

Open each V, then name the V behind each Malaysian example.

3.2.6

Three types of Big Data

Try it

Social networks are loosely structured, business systems highly structured and IoT data is machine-generated. Sort the sources.

Check

Chapter 3.2 check

04

HTTP

Must remember

  1. HTTP is request/response, a pull protocol, stateless and media independent (MIME types).
  2. HTTP/1.0 (RFC 1945, 1996) is non-persistent. HTTP/1.1 is persistent. HTTP/2.0 arrived in 2015.
  3. For n objects, non-persistent costs 2n RTT and persistent costs n + 1 RTT. Ten objects means 20 against 11.
  4. The four steps are handshaking (DNS, then TCP to port 80), request, response and closing.
  5. Request = start line (method, URL, version) + headers + optional body. Response = status line (version, code, phrase) + headers + optional body.
  6. HTTPS is HTTP plus SSL/TLS, made by Netscape, against eavesdropping and man-in-the-middle attacks.
4.4

Persistent vs non-persistent race

Try it

Set the number of objects and the round trip time. Both timelines are drawn to the same scale.

4.4

RTT drill

Try it

Exam-style calculation questions with fresh numbers every time.

4.5

The four steps

Try it

Type a domain and run the whole conversation, from the DNS lookup to closing. Try one DNS cannot find.

4.6

Request lab

Try it

Build a real HTTP request, send it to a practice server and read the raw response. Log in, then visit your profile with and without the cookie to feel what stateless means.

4.7

Status code classes

Try it

The first digit tells you the class. Name it.

4.8

Café Wi-Fi attacker

Try it

Log in to a bank over public Wi-Fi with HTTP, then with HTTPS. See what the attacker gets in each case.

Check

Chapter 4 check

EX

Mixed exam

Questions from every chapter, shuffled. Misses feed your weak spots on Home.
Length
FC

Flashcards

Click the card or press Space to flip. Mark it known or send it to the back.