NETW-3Lesson 3 of 39 min

Names to numbers, and the handshake

Two more pieces complete the picture: how a name like results.college.example becomes an address, and how two computers open a connection. Both are common targets.

DNS: from names to addresses

Figure NETW-3.1From a name to an open connection
1/7

What happens between typing a web address and seeing the page? Two things this lesson covers come first: finding the address, then opening a connection.

Step 1 of 7

The TCP handshake

Before TCP sends any data, the two sides exchange three short messages: SYN (“let us connect”), SYN-ACK (“received, and yes”) and ACK (“received”). This is the three-way handshake. Only after it does the TLS handshake from station KEYS begin.

Why this matters for security

  • If an attacker can make a DNS resolver give the wrong address, users who type the right name are sent to the wrong server. Signed DNS answers (DNSSEC) and certificate checks (station SIGN) both guard against this.
  • A server sets aside a little memory for each half-opened handshake. Station NDEF shows how a flood of first messages that are never completed can exhaust it.
  • DNS lookups often travel unencrypted, so they can show which sites you visit even when the sites themselves use https. Newer options encrypt the lookups too.

NETW-3 counts as completed once you step through the figure to its last step.