You’re reading the free preview.Unlock every conversation for €2.99
FreeFree previewChapter 3

Chapter 3 · Free preview
Networking - The Invisible Highway
What Really Happens When You Click
What you will understand
- Describe the journey of an HTTP request from browser to server
- Explain the difference between TCP and UDP with examples
- Understand how DNS translates a domain name into an IP address
- Explain what ports are and why they matter
- Describe the difference between a process and a thread
Written by EduVerse for this preview; the slides below are the book’s own words.
Slides from the chapter
Each slide is a passage from the book with the figure or listing it talks about. Swipe, use the arrow keys or the buttons.
Slide 1 of 4
DNS: The Internet's Phone Book
3.2 · p. 67
Conversation from The Software Realm, Decoded
Chapter 3 · 3.2 DNS: The Internet's Phone Book · p. 67

Peter
I never type 54.239.28.85. I type google.com. How does my computer know what IP address that is?

Senior developer
DNS. Domain Name System. It’s like a phone book. You give it a name, it gives you a number.
Ports: The Apartment Numbers
3.3 · p. 68
Conversation from The Software Realm, Decoded
Chapter 3 · 3.3 Ports: The Apartment Numbers · p. 68

Peter
But wait. . . the server has just one IP address. It runs a React app, a Spring backend, a database, and Redis. How does my request know where to go?

Senior developer
Great question! This is where a lot of developers get confused at first.
Ports. Think of the IP address as a building’s street address. The port is the apartment number.
What the book shows with it
Figure from The Software Realm, Decoded
Chapter 3 · 3.3.1 Understanding Ports · p. 69
Common ports you’ll use:
Explore this table
Pick one to highlight it and read what the book says about it.
Other cells in the table (13)
Description
Table: 'Common Ports Overview', listing each 'Port' with its 'Purpose': 80 HTTP websites (unencrypted traffic), 443 HTTPS websites (encrypted traffic), 3000 React development server, 8080 Spring Boot / Java applications, 5432 PostgreSQL database, 3306 MySQL database, 27017 MongoDB database and 6379 Redis cache server.
Description written by EduVerse; the figure itself is from the book.
Putting It All Together: The Complete Journey
3.7 · p. 80
Figure from The Software Realm, Decoded
Chapter 3 · 3.7 Putting It All Together: The Complete Journey · p. 80
Explore this figure
Pick one to highlight it and read what the book says about it.
Other labels in the figure (22)
Description
Two-column layer diagram. Left, 'Sending (Encapsulation)': 'Your Browser' creates an HTTP request, 'GET /browse', which moves down through the TCP, IP and Ethernet layers, each step labelled 'wrap', is converted at the 'Physical Layer' and crosses the 'Network'. Right, 'Receiving (Decapsulation)': the same layers 'unwrap' it upward to 'Amazon’s Server'.
Description written by EduVerse; the figure itself is from the book.
Slide 1 of 4
Try it yourself
A simulation built by EduVerse around this chapter. It runs in your browser; nothing is sent anywhere.
The full chapter
This preview shows 5 of the chapter’s 46 passages. The full chapter has:
- 8 sections
- 28 conversations
- 3 figures and tables
- 7 What They Say boxes
- 7 knowledge-check questions
Sections in this chapter
- 3.1How Computers Find Each Other: IP Addresses
- 3.2DNS: The Internet's Phone Book
- 3.3Ports: The Apartment Numbers
- 3.4How Data Travels: TCP and UDP
- 3.5HTTP: The Language of the Web
- 3.6Where Data Lives: Memory, Processes, and Threads
- 3.7Putting It All Together: The Complete Journey
- 3.8Peter's Takeaways